@fox-js/foxui-pc 4.0.1-112 → 4.0.1-114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(y,o){typeof exports=="object"&&typeof module<"u"?o(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"],o):(y=typeof globalThis<"u"?globalThis:y||self,o(y.FoxUI={},y.Vue,y.FoxValidator,y.ElementPlus,y.ElementPlusIconsVue,y.FoxI18n))})(this,function(y,o,Qe,p,Te,Fe){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon May 06 2024 08:39:46 GMT+0800 (中国标准时间)
3
- */const Dt=window,Hr=typeof window<"u";function Kr(){return typeof Dt<"u"?Dt.requestAnimationFrame||Dt.webkitRequestAnimationFrame||function(e){Dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Wr(e){Hr?cancelAnimationFrame(e):clearTimeout(e)}const _o=Kr();/*!
1
+ (function(y,l){typeof exports=="object"&&typeof module<"u"?l(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"],l):(y=typeof globalThis<"u"?globalThis:y||self,l(y.FoxUI={},y.Vue,y.FoxValidator,y.ElementPlus,y.ElementPlusIconsVue,y.FoxI18n))})(this,function(y,l,Qe,p,Te,Fe){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Thu May 09 2024 15:27:08 GMT+0800 (中国标准时间)
3
+ */const Dt=window,Wr=typeof window<"u";function Yr(){return typeof Dt<"u"?Dt.requestAnimationFrame||Dt.webkitRequestAnimationFrame||function(e){Dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Gr(e){Wr?cancelAnimationFrame(e):clearTimeout(e)}const _l=Yr();/*!
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 l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=cn($e(e),$e(t)),l==1&&(n==1?e=un(e):t=un(t));let r=qo(e,t);return l?l==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(un(r)):$e(r)}function un(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return qo(t,a)}function $e(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 cn(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function qo(e,t){[e,t]=cn(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var me=(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))(me||{});function mt(e,t=0,l=me.HALF_EVEN){if(l===me.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 r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=mt(e,0,l),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Po(r[1],a,n,l)?(n?"-":"")+fn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Po(s,i,n,l)&&(i=fn(i),i.length>t)?(n?"-":"")+fn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Po(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function fn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function dn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=yt(e),t=yt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,f="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(b+=parseInt(e[u[N]--])*parseInt(t[N]));b+=s,s=Math.floor(b/10),f=b%10+f,d--}return f=yt(Yr(f,a)),l==1&&(f="-"+f),f}function Yr(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 yt(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 hn(e,t,l=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 r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(e.replace(".","")))}let a=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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(l=l+2;a<=l;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Ft(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(mt(s,l-2))}function gn(e,t){return e=e.toString(),t=t.toString(),t=mn(t),Ft(e,t)}function mn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function jo(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),zo(e),zo(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=gn(e,dn(t,mt(hn(e,t),0,me.FLOOR)));return l+n}function zo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ho(e,t){let l=!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),l=!0),[e,t]=cn(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]?l?-1:1:l?1:-1;return 0}class ce{value;static RoundingModes=me;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[l,n]=t.split(/[eE]/);l=$e(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+$e(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<l?(l=s,s=0):s-=l,i=t.substring(s,s+l)+(s<a-l&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return ce.getPrettyValue(this.value,t,l)}static round(t,l=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return mt(t,l,n)}round(t=0,l=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,l))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,l){return t=ce.validate(t),l=ce.validate(l),Ft(t,l)}add(t){return new ce(Ft(this.value,t.getValue()))}static subtract(t,l){return t=ce.validate(t),l=ce.validate(l),gn(t,l)}subtract(t){return new ce(gn(this.value,t.getValue()))}static multiply(t,l){return t=ce.validate(t),l=ce.validate(l),dn(t,l)}multiply(t){return new ce(dn(this.value,t.getValue()))}static divide(t,l,n){return t=ce.validate(t),l=ce.validate(l),hn(t,l,n)}divide(t,l){return new ce(hn(this.value,t.getValue(),l))}static modulus(t,l){return t=ce.validate(t),l=ce.validate(l),jo(t,l)}modulus(t){return new ce(jo(this.value,t.getValue()))}static compareTo(t,l){return t=ce.validate(t),l=ce.validate(l),Ho(t,l)}compareTo(t){return Ho(this.value,t.getValue())}static negate(t){return t=ce.validate(t),mn(t)}negate(){return new ce(mn(this.value))}}function Ko(e,t){return ce.multiply(`${e}`,`${t}`)}function yn(e,t,l=8){return ce.divide(`${e}`,`${t}`,l)}function pn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Wo(e){return ce.negate(e)}function Rt(e,t=-1,l=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):l&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",b=s.split("").reverse();for(let N=0;N<b.length;N++)c+=b[N]+((N+1)%n==0&&N+1!=b.length?r:"");u.length==0?f=`${i}${c.split("").reverse().join("")}`:f=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Yo(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const bn=_o,Gr=Array.isArray,Ur=e=>At(e)==="[object Map]",Xr=e=>At(e)==="[object Set]",Zr=e=>e instanceof Date,vn=e=>typeof e=="function",Go=e=>typeof e=="string",Jr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Uo=e=>ze(e)&&vn(e.then)&&vn(e.catch),Xo=Object.prototype.toString,At=e=>Xo.call(e),wn=e=>At(e)==="[object Object]",Zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Qr(e){return e.__esModule||Zo&&e[Symbol.toStringTag]==="Module"}const ea=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=et(r,d,u)}else u!==void 0&&(t[i]=u)}}return t}function Sn(e,t,l=!1){if(!l)et(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!wn(i))continue;a=Sn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!wn(i))continue;a=Sn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=ea?Promise.resolve():null;function ta(e,...t){xn!==null?t&&t.length>0?xn.then(()=>{e(t)}):xn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const na={"[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 Lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):na[l]||"object"}function Jo(e){return e&&typeof e=="object"&&"setInterval"in e}function Mt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Qo(e){let t=!!e&&"length"in e&&e.length,l=Lt(e);return l==="function"||Jo(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function el(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function oa(e,t=[]){let l=t;return e!=null&&(Qo(Object(e))?el(l,typeof e=="string"?[e]:e):l.push(e)),l}function He(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Lt(e),n=Lt(t);if(l!==n)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],d=t[s];if(!He(u,d))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!He(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function Tn(e){return e==null}function tl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ol(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 l=t.indexOf(".");return l==-1?t.length:l}function ll(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function rl(e,t,l){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(l,"")}function la(e,t=!0,l=!0){t?e=rl(e,".",/\./g):e=e.replace(/\./g,""),l?e=rl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(He(e,l))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(He(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function pt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function al(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function Ce(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const ia=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class $n{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,l,...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 r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):tl(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,l,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Bt(e,t,l,n){const r=new $n(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function sa(e,t,l){const n=l;if(n[be])return n[be];const r=o.inject(be,null),a=new $n(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,o.provide(be,a),o.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function bt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[be]??o.inject(be,null):o.inject(be,null)}const nt=e=>e.default??e;class ua{error(t,l){const n=l,r=bt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=bt(n),i=l.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?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let vt=new ua;function ca(e){vt=e}function fa(e){vt?Object.assign(vt,e):vt=e}function da(e,t){nt(Qe).setValidator(e,t)}function ha(e){nt(Qe).deleteValidator(e)}let il=["blur","clear"];function ga(e){il=e}function sl(){return il}let ul=["focus","change"];function ma(e){ul=e}function cl(){return ul}function ya(e){nt(Qe).messages(e)}function wt(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(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 fl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=o.effectScope(),this.scope.run(()=>{o.watchEffect(()=>{const l=_t(wt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=wt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=vt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,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,l,n=!1){n?nt(Qe).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const l=wt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=wt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=wt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},s=nt(Qe),u=new s(r),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function qt(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new fl(t,l,e)}const dl=Symbol.for("EventEmitterKey");class pa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function St(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function hl(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function ba(e,t){const l=St((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function va(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function Pt(e,t,l,n=0,r=!0,a){let i=t,s=0;if(r){const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),at=Symbol("DataItemsKey");class jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const wa=new jt;function it(){return wa}function We(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Le]??o.inject(Le,null):o.inject(Le,null)}const Cn=Symbol("OriginalDateKey");function Nn(e,t,l=[],n){const r=o.getCurrentInstance(),a=r?.proxy;let i=o.inject(Le,null);i===null&&(i=it());const s=e||t.prop||t.name,u=new jt(s);u.parent=i;const d=h=>{a[Cn]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,c=()=>a[Cn]??null,b=h=>{const g={};et(!0,g,o.toRaw(h)),a[Cn]=g};o.isReactive(t)||typeof t=="function"?o.watch(t,h=>{u.merge(h,l)},{immediate:!0}):u.merge(t,l),t.modelValue&&b(t.modelValue),a[Le]=u,o.provide(Le,u);let N=null,m=null;if(r!==null){const h=o.inject(be,null);N=Bt(a,h,s,n),u.broadcast=N,a[be]=N,o.provide(be,N),a.broadcast=($,w,...k)=>Reflect.apply(N.emit,N,[$,w,...k]);const g=o.inject(Ke,null);m=qt(a,g,{componentName:""}),u.validateSchema=m,a[Ke]=m,o.provide(Ke,m),a[at]=new Map,a.validate=($=!0)=>{const w=[];let k=null;const q={deep:!1};if($===!0)k={name:"*"};else if(Array.isArray($)&&$.length>0){const _=$;k={name:A=>A?_.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const _=$;if(Object.assign(q,_),Array.isArray(_.include)&&_.include.length>0){const A=_.include;k={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const A=_.exclude;k={name:L=>L?A.indexOf(L)===-1:!1}}else k={name:"*"}}if(k){const _=N?.emitToChildren(k,"validate",q);_&&Reflect.apply([].push,w,_)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(_=>{let A=[];return _.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,k=!1)=>{if(k===!0){Reflect.ownKeys($).forEach(_=>{let A=String(_);const B=yl(u,A,{componentName:"",fieldName:A,pureDataValidate:!0},N,m);a[at].set(A,B);const I=$[A];I&&B.validateSchema.setRule(I)});return}if(w){const q=Reflect.ownKeys($),_={name:A=>q.includes(A)};N?.emitToChildren(_,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const k=$;w={name:q=>q?k.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const k=$;if(Array.isArray(k.include)&&k.include.length>0){const q=k.include;w={name:_=>_?q.indexOf(_)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const q=k.exclude;w={name:_=>_?q.indexOf(_)===-1:!1}}else w={name:"*"}}w&&N?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const k={};if(et(!0,k,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=k[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(_=>{w[_]=k[_]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(k).forEach(_=>{q.includes(_)||(w[_]=k[_])})}else Object.assign(w,k);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===s?d($):N?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return o.onUnmounted(()=>{u.destroy(),a[Le]=void 0,a[at]&&(a[at].clear(),a[at]=void 0),N!==null&&(N.destroy(),a[be]=void 0),m!==null&&(m.destroy(),a[Ke]=void 0)}),u}function gl(e,t,l=[]){const r=o.getCurrentInstance()?.proxy;let a=o.inject(Le,null);a===null&&(a=it());const i=e||t.prop||t.name,s=new jt(i);return s.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,u=>{s.merge(u,l)},{immediate:!0}):s.merge(t,l),r[Le]=s,o.provide(Le,s),o.onUnmounted(()=>{s.destroy(),r[Le]=void 0}),s}function ml(e,t,l){const r=We(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(be,null),s=Bt(r,i,a,l);r[be]=s,o.provide(be,s),r.broadcast=(m,h,...g)=>Reflect.apply(s.emit,s,[m,h,...g]);const u=o.inject(Ke,null);e.fieldName=e.fieldName??a;const d=qt(r,u,e);r[Ke]=d,o.provide(Ke,d),ml(r,d,a),r.validate=(m=null)=>{const h=[];let g=!1,$=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)$=!0,g=!0;else if(m&&typeof m=="object"){const w=m,k=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,_=w.ignoreHidden??!0;k===!0&&e.disabled===!0||q===!0&&e.readonly===!0||_===!0&&Mt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),$=!0;if($){const w=d?.validate();h.push(w)}if(g){let w=null;const k={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const q=m;w={name:_=>_?q.indexOf(_)!==-1:!1}}else if(m!=null&&typeof m=="object"){const q=m;if(Object.assign(k,q),Array.isArray(q.include)&&q.include.length>0){const _=q.include;w={name:A=>A?_.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const _=q.exclude;w={name:A=>A?_.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const q=s.emitToChildren(w,"validate",k);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let k=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(k=[...k,...q.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>d?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&d?.setRule(g),h){const $={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren($,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:$=>$?g.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const $=g.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new pa(r);r[dl]=f;const c=St((m="validate")=>{m==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sl()).forEach(m=>{f.on(m,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cl()).forEach(m=>{f.on(m,h=>{c("reset")})}),o.onUnmounted(()=>{s.destroy(),r[be]=void 0,d.destroy(),r[Ke]=void 0,f.destroy(),r[dl]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(m,...h)=>{Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{Reflect.apply(f.off,f,[h])}}}function yl(e,t,l,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};l.fieldName=i,l.validateHandler={getValue(f){return s.getValue()}};const u=qt({},r,l);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,N=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)N=!0,b=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),N=!0,b=m.deep??!1}else typeof f=="boolean"&&(b=f),N=!0;if(N){const m=u?.validate();c.push(m)}if(b){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:$=>$?g.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const $=g.include;m={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;m={name:w=>w?$.indexOf(w)===-1:!1}}else m={name:"*"}}if(m){const g=d.emitToChildren(m,"validate",h);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[i];c&&u?.setRule(c)};const d=Bt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(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 l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function En(e,t,l={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=fe(l.headerHeight??t.headerHeight??-1),e.headerPadding=qe(l.headerPadding??t.headerPadding),e.footerHeight=fe(l.footerHeight??t.footerHeight??-1),e.footerPadding=qe(l.footerPadding??t.footerPadding),e.contentPadding=qe(l.contentPadding??t.contentPadding),n){const u=l.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(i,a)-fe(s,a),e.width=fe(l.width??t.width??0,r)}}function pl(e,t={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;En(n,a,t,!0,i,s,u,d);const f=o.reactive(n),c=e.getForParent(Xe);c&&(n.height=Ht(e,c),n.width=Kt(e,c),o.watch([()=>Ht(e,c),()=>Kt(e,c)],([N,m])=>{f.height=N,f.width=m}));const b=!c;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,m,h=-1,g=-1,$=0,w=0])=>{En(f,m,t,b,h,g,$,w)}),e.set(Xe,f),f}function zt(e){return e.get(Xe)}function xt(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function Tt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function Ht(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=xt(e,t),n=Tt(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Kt(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Sa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function xa(e){return!!e.getForParent(Xe)}var Re=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Re||{});function kn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,l=1,n){const r=We();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(kn(u,n))return u}const i=e.value;return kn(i,n)?i:null}):o.computed(()=>{const a=e.value;return kn(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(l){return se(l)})}function Oe(e){return ke(e,"disabled",0,function(l){return se(l)})}function de(e,t="modelValue",l){const n=o.toRef(e,t);let r=n.value;typeof l=="function"&&(r=l(n.value));const a=o.ref(r);return o.watch(n,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const bl=new Map,Wt=new Map;let In=null;function Ta(e){In=e}function vl(e,t,l){if(l){let n=Wt.get(l);n||(n=new Map,Wt.set(l,n)),n.set(e,t)}else bl.set(e,t)}function Be(e,t,l){!l&&In&&(l=In(e)??void 0);let n=null;if(l){let r=Wt.get(l);r&&(n=r.get(t))}return n||(n=bl.get(t)),n}function $a(e,t){for(let l in e){const n=e[l];vl(l,n,t)}}function Ca(e){Wt.delete(e)}function Na(){return{top:0,left:0,bottom:0,right:0}}function Ea(e=0,t=0){if(tt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:n-fe(e,n)-fe(t,n)};return{rootWidth:l,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class ka{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hl(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Na(),t.safeAreaInset),i=Ea(n,r),s=et({},i.pageLayout,t.pageLayout);l=l??it(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ta(t)}setAPI(t,l,n){vl(t,l,n)}getAPI(t,l,n){return Be(t,l,n)}batchSetAPI(t,l){$a(t,l)}clearScopeAPI(t){Ca(t)}getRootDomain(){return it()}}const Ia=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Oa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Va=e=>{Ia.forEach(t=>{let l=t.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,t)):e.use(t)}),Oa.forEach(t=>{e.use(t)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function xe(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,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}},wl={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}},Sl={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!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},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},xl=[];for(const e in Sl)xl.push(e);const Da=Symbol.for("InnerPageScopeKey"),Fa={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Ra=(e,t)=>({inheritAttrs:!0,props:{...ve,...wl,...Fa},setup(l,{slots:n}){const r=Nn(l.name,l),a=o.inject(Da,!1);if(r){const f=pl(r,l);xe({getPageContentHeight:()=>Ht(r,f),getPageContentWidth:()=>Kt(r,f),getPageHeaderHeight:()=>xt(r,f),getPageFooterHeight:()=>Tt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),s=o.computed(()=>({})),u=o.getCurrentInstance(),d=(f,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,c)};return o.watch([()=>l.rules,()=>l.pureDataRules],([f,c],[b,N])=>{if(f&&b){const m=o.toRaw(b),h=o.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const m=o.toRaw(N),h=o.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const f=o.toRaw(l.rules);d(f)}if(l.pureDataRules){const f=o.toRaw(l.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return o.h("div",f,[n?.default?.()])}}}),{componentName:Aa,create:La,scope:yh}=ie("page"),On=La(Ra(Aa));function Yt(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Vn(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ma=(e,t,l,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},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=We(),s=i?zt(i):null;s&&(s.headerMounted=!0);const u=e,d=o.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=o.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,b=o.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=qe(r.padding??s.headerPadding);return Object.assign(E,T),c&&(s.headerHeight=c),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(T.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(c&&(E.height=c),r.padding){const T=qe(r.padding);Object.assign(E,T)}return E}),N=o.ref(null),m=()=>{if(s&&N.value&&!Mt(N.value)){if(!n){const E=Yt(N.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;o.onMounted(()=>{s&&(Pt(m,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(N.value)))}),o.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=o.computed(()=>{const E={};return b.value.height!==null&&b.value.height!==void 0&&(E.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(E.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(E.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(E.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(E.paddingBottom=`${b.value.bottom}px`),E}),$=o.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function k(){a.emit("click-title")}function q(){a.emit("click-right")}function _(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);E.push(T)}else if(r.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[o.h(r.leftIcon)]);E.push(T)}if(r.leftText){const T=o.h("view",{class:"left-text",onClick:w},[r.leftText]);E.push(T)}}return E.length===0?null:o.h("view",{class:"fox-header-bar__left"},E)},L=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const T=o.h("view",{class:"right-text",onClick:_},[r.rightText]);E.push(T)}if(a.slots.rightIcon){const T=o.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(T)}else if(r.rightIcon){const T=o.h("view",{class:"right-icon",onClick:q},[o.h(r.rightIcon)]);E.push(T)}}return E.length===0?null:o.h("view",{class:"fox-header-bar__right"},E)},B=()=>{if(!r.titleShow)return null;const E=[],T=a.slots.default?a.slots.default():null;if(T)E.push(T);else{if(r.title){const H=o.h("view",{class:"title-text"},[r.title]);E.push(H)}if(a.slots.titleIcon){const H=o.h("view",{class:"title-icon",onClick:k},[a.slots.titleIcon()]);E.push(H)}else if(r.titleIcon){const H=o.h("view",{class:"title-icon",onClick:k},[o.h(r.titleIcon)]);E.push(H)}}return E.length===0?null:o.h("view",{class:"fox-header-bar__title"},E)},I=()=>{const E=[],T=a.slots.bottom?a.slots.bottom():null;return T&&E.push(T),E.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!$.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const H=[],C=A();C&&H.push(C);const O=B();O&&H.push(O);const R=L();if(R&&H.push(R),H.length>0){const W=o.h("view",{class:f.value},H);E.push(W)}const U=I();U&&E.push(U)}if(E.length===0)return null;const T={class:d.value,style:g.value,ref:N};return o.h("view",T,E)}}}),{componentName:Ba,create:_a,scope:qa}=ie("header-bar"),Dn=_a(Ma(Ba,qa,Te.ArrowLeft));function Pa(e,t,l=!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,r){const a=We(),i=a?zt(a):null,s=o.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?fe(n.height):null,d=o.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=qe(n.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=qe(n.padding);Object.assign(m,h)}return m}),f=o.ref(null),c=()=>{if(i&&f.value&&!Mt(f.value)){if(!l){const m=Yt(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;o.onMounted(()=>{i&&(Pt(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(f.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const N=o.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=Ne(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=Ne(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=Ne(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=Ne(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=Ne(d.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:N.value};return o.h("view",h,m)}}}}const{componentName:ja,create:za,scope:ph}=ie("footer-bar"),Fn=za(Pa(ja));function Ha(e,t){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=We(),r=o.computed(()=>({[e]:!0})),a=n?zt(n):null,i=o.computed(()=>{const d={};if(n&&a){if(l.padding){const N=qe(l.padding);Object.assign(a.contentPadding,N)}const f=xt(n,a),c=Tt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,d.height=b,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(l.padding){const f=qe(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),s=o.ref(null),u=()=>{if(a&&s.value){const d=Vn(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return o.onMounted(()=>{u()}),n&&a&&o.watch([()=>xt(n),()=>Tt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ka,create:Wa,scope:bh}=ie("content"),Ya=Wa(Ha(Ka));function Ga(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("div",{ref:"contentRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Rn=Me(Ya,[["render",Ga]]),st="GroupStateKey",Tl=Symbol.for("GroupScopeKey");function Gt(){return o.inject(Tl,!1)}function Ut(e=!0){o.provide(Tl,e)}function Ua(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Tn(r)||(e[n]=r)})}function Xa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ua(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function An(e,t,l=-1,n=-1,r=!1,a,i,s){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const f=fe(a),c=fe(i);s||(s=d.type??"grid");const b=()=>{const N=t===""||t===-1,m=fe(t);let h=pe(l);const g=fe(n);if(!N){let k=(m-(h-1)*g)/h;for(;c!==-1&&k>c;)h++,k=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&k<f;)h--,k=(m-(h-1)*g)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==g&&(w.value.gutter=g,$=!0),w.value.type!==s&&(w.value.type=s,$=!0),$&&o.triggerRef(w)};if(r)b();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&b()},50)}}function Xt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.layout}function Zt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.order}function $l(e,t=1){if(t==="stretch")return-1;const l=pe(t);return l===-1?100:100*l/e}function Jt(e,t,l=1,n=0,r){const a={};let i=0;r?i=fe(r):i=$l(t.column,l),i>0&&(a.width=`${i}%`);const s=$l(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Qt(e,t,l=1,n=0){if(l==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=pe(l);if(r===-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(r>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 a=pe(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Cl=Symbol("RollingStateKey");function Za(e){o.provide(Cl,e)}function Ja(){return o.inject(Cl,null)}function Ln(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function Qa(e){let t=Ln(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=Ln(l),document.body.removeChild(l)}return t}function ei(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const ti={...ve,...wl,...Sl};function ni(e,t,l){return{props:ti,emits:["update:collapse"],setup(n,r){const a=Nn(n.name,n,xl),i=Xa(a,{type:n.type}),s=Gt();Ut(!0);const u=n.rollingDisplay?Ja():null,d=o.ref(null),f=o.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=o.computed(()=>s&&a?Xt(a,!0).value:null),b=o.getCurrentInstance(),N=(P,Y=!1)=>{const Q=b?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(P,!0,Y)};o.watch([()=>n.rules,()=>n.pureDataRules],([P,Y],[Q,ne])=>{if(P&&Q){const S=o.toRaw(Q),G=o.toRaw(P),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),N(G)}if(Y&&ne){const S=o.toRaw(ne),G=o.toRaw(Y),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),N(G,!0)}},{deep:!0});const m=e,h=o.computed(()=>{const P={};P.height=R.value;const Y=s?Zt(a,!0):null;if(c.value&&Y){if(c.value.type==="grid"){const Q=Qt(Y,c.value,n.span,n.offset);Object.assign(P,Q)}else if(c.value.type==="flow"){const Q=Jt(Y,c.value,n.span,n.offset,n.width);Object.assign(P,Q)}}else if(n.width){const Q=Ne(n.width);P.width=Q}return P}),g=o.computed(()=>{const P=i.layout.value.type;return P==="grid"||P==="flow"?{[`${m}--${P}`]:!0,[`${m}--${P}-justify-${n.justify}`]:!0,[`${m}--${P}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${P}`]:!0,[`${m}--gutter`]:!0}}),$=o.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=ei(B.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),w=o.toRef(n,"gutter"),k=o.toRef(n,"column"),q=o.computed(()=>s||f.value?!0:se(n.isWrap)),_=[],A=P=>{_.push(P)},L=()=>{let P=_.length;_.splice(0,P)},B=o.ref(-1),I=P=>{const Y=Vn(P).width;Y>0&&Y!==B.value&&(B.value=Y)};An(a,B.value,k.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([B,k,w],([P,Y,Q])=>{i.order.index=0,An(a,P,Y,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=o.computed(()=>U.value?n.expandText??"":n.collapseText??""),T=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),C=o.ref(),O=o.ref(),R=o.computed(()=>W.value||Ne(n.height)||""),U=o.ref(!1),W=o.ref(""),J=o.ref(!1);let Z=-1;const ee=(P,Y=!0)=>{const Q=C.value;if(Q&&U.value!==P){if(Z=Z===-1?Qa(Q):Z,J.value=!0,Y)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",P||(W.value="",J.value=!1)},P){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${Z}px`,o.nextTick(()=>{W.value=`${ne}px`})}else W.value=`${Z}px`;else if(P){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${ne}px`}else J.value=!1,W.value=`${Z}px`;U.value=P,r.emit("update:collapse",P)}};o.watch(()=>n.collapse,P=>{ee(P)});const re=()=>{D()},D=P=>{P=P??!U.value,ee(P)};xe({toggleCollapse:D,doLayout:()=>{_[0]&&(I(_[0]),An(a,B.value,k.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let F=null,V=!0;const v=P=>{if(n.rules){const Y=o.toRaw(n.rules);N(Y)}if(n.pureDataRules){const Y=o.toRaw(n.pureDataRules);N(Y,!0)}if(tt&&(P&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(_)&&_.length>0)){const Y=_[0];I(Y),window.ResizeObserver&&(F=new window.ResizeObserver(()=>{I(Y)}),F.observe(Y))}},K=()=>{F?.disconnect(),F=null},j=!f.value||u?.acquire();j&&(d.value=f.value?!0:null),o.onMounted(()=>{if(j&&(v(V),V=!1),f.value&&u){let P=null,Y=u.initialHeight;u.observe(C.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(W.value=""),P=setTimeout(()=>{P=null,d.value!==!1&&(v(V),V=!1)},100);else{if(P!==null&&clearTimeout(P),d.value=!1,!U.value)if(V)W.value=u.initialHeight;else{let ne=Ln(C.value);ne<=0?W.value=Y:(W.value=`${ne}px`,Y=W.value)}V||K()}})}}),o.onUnmounted(()=>{F?.disconnect(),u&&u.unobserve(C.value)});const z=(P="right")=>{const Y=[];if(E.value){const S={class:T.value},G=o.h("span",S,[E.value]);Y.push(G)}const Q={class:H.value},ne=l(n.collapseIcon,Q);return ne&&Y.push(ne),Y.length>0?o.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${P}`]:!0},onClick:re},Y):null},M=(P,Y,Q,ne)=>{const S={...g.value};return Y===0&&(S[`${m}__first`]=!0),Q>=ne-1&&(S[`${m}__last`]=!0),o.h("div",{ref:A,key:`${Y}`,class:S,style:$.value},P)};return()=>{if(f.value&&d.value!==!0){const S=n.tag||"div";return o.h(S,{ref:C,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const P=[];let Y=0;if(r.slots.header){const S={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},G=o.h("div",S,[r.slots.header()]);P.push(G)}else{const S=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=z("left");te&&S.push(te)}if(n.title||r.slots.title){if(n.showMark){const te={class:{[`${m}__header-mark`]:!0}};n.markColor&&(te.style={background:n.markColor});const le=o.h("div",te);S.push(le)}if(r.slots.title){const te=o.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);S.push(te)}else if(n.title){const te=o.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);S.push(te)}}if(r.slots.toolbar&&S.push(r.slots.toolbar()),!G&&n.showCollapse){const te=z("right");te&&S.push(te)}if(S.length>0){const te={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},le=o.h("div",te,S);P.push(le)}}L();const Q=r.slots.default?r.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=M(Q,Y++,0,Q.length);P.push(S)}else if(ne==="flow"){const S=M(Q,Y++,0,Q.length);P.push(S)}else for(let S=0;S<Q.length;S++){const G=Q[S],te=M([G],Y++,S,Q.length);P.push(te)}if(q.value){const S=n.tag||"div";return o.h(S,{ref:C,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[P])}else return P}}}}const{componentName:oi,create:li,scope:ri}=ie("group"),Mn=li(ni(oi,ri,(e,t)=>(e=e??Te.ArrowUp,o.h(p.ElIcon,t,{default:()=>[o.h(e)]}))));function ai(e){return e===window}const ii=/matrix\((.+)\)/,Nl=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(ai(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ii.exec(d);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}r=r.parentNode}return l-=a,n-=i,l+=s,n+=u,{x:l,y:n}};class si{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ui{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new si,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const El=new ui,kl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ci,create:fi}=ie("price"),di=fi({props:{...kl},setup(e){const t=o.computed(()=>({[ci]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>pt(e.price)==0?"":Rt(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),hi=["innerHTML"],gi=["innerHTML"];function mi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,hi)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gi)):o.createCommentVNode("",!0)],2)}const en=Me(di,[["render",mi]]),{componentName:Bn,create:yi}=ie("hint-text"),pi=yi({components:{Price:en},props:{...kl,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),s=o.ref(!1),u=o.ref(null),d=(T,H,C,O,R,U)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=T.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},D=[];for(let x=0;x<ee.length;x++){const F=ee[x];if(D[0]=F,Z[1]&&(D[1]=Z[1]),F==="top"){const V=H.y-U-e.arrowSize-e.offset;if(V>=0){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+C-R:v=H.x+C/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="bottom"){const V=H.y+O+e.arrowSize+e.offset;if(V+U<=J){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+C-R:v=H.x+C/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="left"){const V=H.x-R-e.arrowSize-e.offset;if(V>=0){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}else if(F==="right"){const V=H.x+C+e.arrowSize+e.offset;if(V+R<=W){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:D.join("-"),bestInsetRect:re}},f=(T,H,C=10)=>{if(!tt||H===!1||!T)return;n.value=Nl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:W}=d(e.placement,n.value,r.value,a.value,R,O);i.value=U,l.value=W,s.value=!0},c=o.ref(0),b=St(()=>{f(e.message,e.visible)},10),N=o.ref(e.visible);o.watch(()=>e.visible,T=>{N.value=T});const m=o.computed(()=>N.value&&h.value),h=o.ref(!0),g=St(T=>{const H=T[0];H&&(h.value=H.isIntersecting)},10),$=new IntersectionObserver(g);o.watch([()=>e.message,()=>e.visible],([T,H])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),El.watch(e.reference,b),$.observe(e.reference)}),o.onBeforeMount(()=>{El.unwatch(e.reference,b),$.unobserve(e.reference),$.disconnect()});const w=o.computed(()=>{const T={[Bn]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),k=o.computed(()=>{const T={};l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${H}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),q=o.computed(()=>{const T=[`${Bn}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),_=o.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),A=o.computed(()=>({[`${Bn}__arrow`]:!0})),L=o.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),B=o.computed(()=>m.value&&e.closeOnClick),I=o.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:m,tipRef:u,classes:w,styles:k,textClasses:q,textStyles:_,arrowClasses:A,arrowStyles:L,overlayShow:B,overlayStyle:I,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),bi=["innerHTML"];function vi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,bi))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const $t=Me(pi,[["render",vi]]);class Il{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 _n={},wi=new Il,ut=new Map,tn=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}ut.clear()}},Si=e=>{e.unmount=tn;const t=document.getElementById(e.id);if(t){const l=ut.get(e.id);l?e={..._n,...l,...e}:e={..._n,...e},e.transition=!1;const n=o.createVNode($t,e);return o.render(n,t),e.id}},xi=e=>{e.unmount=tn;let t=e.id??`hinttext_${wi.get()}`;e={..._n,...e},e.id=t,ut.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode($t,e);return o.render(n,l),document.body.appendChild(l),t},Ti=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,l={},n=!0){Ti(t);const r=l.id;return r&&ut.has(r)?Si({...l,message:t,reference:e}):(n&&tn(),xi({...l,message:t,reference:e}))},hide(e){tn(e)},install(e){e.config.globalProperties.$hintText=Ve}};function $i(e,t,l,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Se({componentName:e,validate:!1},i);const s=We(),u=Gt();Ut(!1);const d=o.computed(()=>u&&s?Xt(s,!1).value:null),f=e,c=o.ref(null),b=o.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!U.value,S[r.warnMarkClass]=!!O.value,S[r.infoMarkClass]=!!H.value,typeof c.value=="function"){const G=c.value(i);S[G]=!0}else if(typeof c.value=="string"){const G=c.value;S[G]=!0}return S}),N=o.ref(null),m=o.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ne(r.width));else{const G=u&&s?Zt(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const te=Qt(G,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=Jt(G,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof N.value=="function"){const G=N.value(i);G&&Object.assign(S,G)}else if(N.value&&typeof N.value=="object"){const G=N.value;Object.assign(S,G)}return S}),h=o.ref(null),g=o.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(o.toRef(r,"labelPosition"),"labelPosition",Re.Near),k=o.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=o.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${k.value}`]:!0})),_=o.computed(()=>({label:!0,[`label--${k.value}`]:!0})),A=ke(o.toRef(r,"labelWidth"),"labelWidth",Re.Near),L=o.computed(()=>A&&A.value?{width:Ne(A.value)}:{}),B=o.computed(()=>({"label--string":!0,"label--required":g.value})),I=o.computed(()=>({content:!0,[r.contentClass]:!0})),E=o.computed(()=>({...r.contentStyle})),T=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(S){g.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){N.value=S}});const H=o.computed(()=>r.infoTip||T.infoTip),C=o.computed(()=>r.infoIcon||T.infoIcon),O=o.computed(()=>r.warnTip||T.warnTip),R=o.computed(()=>r.warnIcon||T.warnIcon),U=o.computed(()=>r.errorTip||T.errorTip),W=o.computed(()=>r.errorIcon||T.errorIcon),J=o.computed(()=>U.value?"error":O.value?"warn":H.value?"info":""),Z=()=>J.value.length>0,ee=o.computed(()=>J.value==="error"?U.value:J.value==="warn"?O.value:J.value==="info"?H.value:""),re=o.computed(()=>J.value==="error"?W.value:J.value==="warn"?R.value:J.value==="info"?C.value:null),D=o.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),x=o.computed(()=>{const S={};return w&&w.value==="top"||!$()?S["padding-left"]="0px":A&&A.value&&(S["padding-left"]=Ne(A.value)),S}),F=o.ref();let V="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,G,te,le])=>{F.value&&(S&&!ge(G)?V?l.show(F.value,G,{...le,id:V,type:te},!0):V=l.show(F.value,G,{...le,type:te},!0):l.hide(V))});let v=null;const K=()=>{v||!F.value||(v=new IntersectionObserver(S=>{let G=!1;for(let te of S)if(te.intersectionRatio>0){G=!0,G&&a.emit("appear",te);break}G||a.emit("disappear")}),v.observe(F.value))},j=()=>{!v||!F.value||(v.unobserve(F.value),v=null)};o.watch(()=>se(r.appearListen),S=>{S?K():j()}),o.onMounted(()=>{se(r.appearListen)&&K()}),o.onUnmounted(j);const z=()=>{if(!$())return null;const S=[],G=a.slots?.label?.()??r.label,te={class:B.value},le=o.h("div",te,[G]);if(S.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();S.push(oe)}const X={class:_.value,style:L.value};return o.h("div",X,S)},M=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=o.h("div",te,[a.slots.fixedTip()]);S.push(le)}const G={ref:F,class:I.value,style:E.value};return o.h("div",G,S)},P=()=>{const S=re.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--icon"},[S()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(S)]):null},Y=()=>{const S=ee.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--text"},[S()]):o.h("div",{class:"fox-item__tip--text"},[S]):null},Q=()=>{if(!Z())return null;const S=[],G=P();G&&S.push(G);const te=Y();te&&S.push(te);const le={class:D.value,style:x.value};return o.h("div",le,S)},ne=()=>a.slots?.hide?.()??null;return()=>{const S=[],G=[],te=z();te&&G.push(te);const le=M();le&&G.push(le);const X={class:q.value},oe=o.h("div",X,G);S.push(oe);const ae=Q();ae&&S.push(ae);const ue=ne();ue&&S.push(ue);const ye={class:b.value,style:m.value,prop:r.prop};return o.h("div",ye,S)}}}}const{componentName:Ci,create:Ni,scope:Ei}=ie("item"),we=Ni($i(Ci,Ei,Ve,!1));function ki(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const r=We(),a=Gt();Ut(!1);const i=o.computed(()=>a&&r?Xt(r,!1).value:null),s=e,u=o.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),d=o.computed(()=>{const f={},c=a&&r?Zt(r,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=Qt(c,i.value,l.span,l.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=Jt(c,i.value,l.span,l.offset,l.width);Object.assign(f,b)}else return l.width&&(f.width=Ne(l.width)),f;else l.width&&(f.width=Ne(l.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",f,n.slots.default()):o.h("div",f)}}}}const{componentName:Ii,create:Oi,scope:wh}=ie("slot-item"),qn=Oi(ki(Ii));function Vi(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,String],required:!1,default:!1}},setup(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=We(),s=Gt();Ut(!1);const u=o.computed(()=>{const d={};if(s&&i){const f=Xt(i,!1),c=Zt(i,!1);if(f.value&&c)if(f.value.type==="grid"){const b=Qt(c,f.value,l.span,l.offset);Object.assign(d,b)}else if(f.value.type==="flow"){const b=Jt(c,f.value,l.span,l.offset,l.width);Object.assign(d,b)}else l.width&&(d.width=Ne(l.width))}else l.width&&(d.width=Ne(l.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(l.divide)for(let b=0;b<c.length;b++){if(b>0){const N=o.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[b])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return o.h("div",f,d)}}}}const{componentName:Di,create:Fi,scope:Sh}=ie("row-item"),Pn=Fi(Vi(Di)),Pe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Ol={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 Ri(e,t,l){return{props:{...ve,...Ee,...Ol},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),m=C=>{c.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let g=de(n,"hintText"),$=o.ref(!1);const w=C=>{let R=C.target.value;f.value=!0,ge(g.value)||($.value=!0),s("focus",R,C)},k=C=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let R=C.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,C)},q=()=>{s("clear","")},_=o.ref(!1);let A=null;const L=()=>{n.showTooltip&&_.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{_.value=!0},150))},B=()=>{A&&(clearTimeout(A),_.value=!1,A=null)},I=o.computed(()=>_.value||$.value),E=o.computed(()=>_.value?c.value:g.value),T=o.computed(()=>pt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:m,onFocus:w,onBlur:k,onMouseover:L,onMouseleave:B},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=o.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Ol),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ai,create:Li,scope:Mi}=ie("input-item"),jn=Li(Ri(Ai,Mi,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Bi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let _i=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function qi(){const e=o.getCurrentInstance();return new _i(e.proxy)}function Dl(e,t,l){const n=Ze(e,t),r=Ze(e,l);if(n!==r)return!1;const a=Ct(e,t),i=Ct(e,l);return a===i}function Fl(e,t,l,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Vl(e,i);if(Array.isArray(s)&&s.length>0){const u=Fl(e,a,l,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(l==="text")u=Ze(e,i)===a;else if(l==="item")u=Dl(e,i,a);else{let d=Ct(e,i);d==null&&(d=Ze(e,i)),u=d===a}if(u){r.push(i);break}}}}),r}function Pi(e){return{text:e,value:e}}const Rl={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],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},showTooltip:{type:Boolean,default:!1}};function ji(e,t,l){return{props:{...ve,...Ee,...Rl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(P=>Ze(n,P)).join(" "):""),N=(M,P,Y,Q=!0)=>{const ne=Fl(n,M,P,Y);if(ne===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let G=0;G<ne.length;G++){const te=ne[G],le=c.value[G];if(!Dl(n,te,le)){S=!1;break}}if(!S){c.value=ne;let G=[],te=[],le=[];ne.forEach(ue=>{const ye=Ct(n,ue),he=Ze(n,ue);G.push(ye),le.push(he),n.valueType==="text"?te.push(he):n.valueType==="item"?te.push(ue):te.push(ye)});let X,oe,ae;se(n.multiple)?(f.value=G,X=o.toRaw(te),oe=le,ae=o.toRaw(ne)):(f.value=G[0]??"",X=o.toRaw(te[0]??""),oe=le[0]??"",ae=o.toRaw(ne[0])),Q&&(s("update:modelValue",X),s("change",X,ae)),s("update:text",oe)}},m=o.ref(null),h=o.ref(null),g=o.computed(()=>h.value??m.value??[]),$=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,M=>se(M)),w=qi(),k=async(M,P)=>{if(M){const Y=await w.load("select",M,P);if(Y.length>0)if(typeof Y[0]=="string"){let S=Y.map(G=>Pi(G));m.value=S}else m.value=Y;else m.value=null}};o.watch([()=>n.source,()=>n.params],([M,P])=>{h.value=null,k(M,P)},{immediate:!$.value});let q=!1;const _=()=>{q||(q=!0,k(n.source,n.params))};o.watch([()=>m.value,()=>n.modelValue],([M,P])=>{if(I()&&se(n.multiple)){He(P,f.value)||(f.value=P);return}N(P,n.valueType,g.value,!1)});let A=null,L=o.ref(!1);typeof n.remoteMethod=="function"&&(A=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const P=await n.remoteMethod(M);P&&(h.value=P)}catch(P){h.value=null,console.error(P)}L.value=!1});let B=null;typeof n.filterMethod=="function"&&(B=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const P=await n.filterMethod(M,m.value);P&&(h.value=P)}catch(P){h.value=null,console.error(P)}L.value=!1});const I=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=o.ref(!1),T=e,H=o.computed(()=>({[T]:!0})),C=M=>{n.allowCreate||I()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):N(M,"value",g.value,!0)};let O=de(n,"hintText"),R=o.ref(!1);const U=M=>{let Y=M.target.value;E.value=!0,ge(O.value)||(R.value=!0),s("focus",Y,M)},W=M=>{setTimeout(()=>{R.value&&(R.value=!1),E.value=!1},0);let Y=M.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),V.value||s("blur",Y,M)},J=()=>{s("clear","")},Z=o.ref(!1);let ee=null;const re=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},D=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=o.computed(()=>Z.value||R.value),F=o.computed(()=>Z.value?b.value:O.value),V=o.ref(!1),v=M=>{V.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},j=(M,P)=>{const Y=[];return M.forEach((Q,ne)=>{const S=Vl(n,Q);if(Array.isArray(S)&&S.length>0){const G=j(S,P),te=Ze(n,Q),X={key:`${te}_${ne}`,label:te};Y.push(o.h(p.ElOptionGroup,X,{default:()=>G}))}else{const G=Ct(n,Q),te=Ze(n,Q),le=Bi(n,Q),oe={key:`${G}_${ne}`,label:te,disabled:le,value:G};if(typeof P=="function")Y.push(o.h(p.ElOption,oe,{default:()=>P(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=o.h("span",ae,[G]),ye={class:{"fox-select-item__option-right":!0}},he=o.h("span",ye,[te]),gt=o.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);Y.push(o.h(p.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?Y.push(o.h(p.ElOption,oe,{default:()=>[G]})):Y.push(o.h(p.ElOption,oe))}}),Y},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const P={...Pe(r.attrs),ref:z,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:C,onFocus:U,onBlur:W,onVisibleChange:v,onRemoveTag:K};typeof A=="function"&&(P["remote-method"]=A,P.loading=L.value),typeof B=="function"&&(P["filter-method"]=B,P.loading=L.value);const Y={};r.slots.prefix&&(Y.prefix=r.slots.prefix),r.slots.empty&&(Y.empty=r.slots.empty),r.slots.options?Y.default=r.slots.options:Y.default=()=>j(g.value,r.slots.option);const Q=[],ne=o.h(p.ElSelect,P,Y);Q.push(ne);const S={default:()=>Q};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ce(n,Rl),hintText:F.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:D};return $.value&&(te["appear-listen"]=!0,te.onAppear=_),o.h(l,te,S)}}}}const{componentName:zi,create:Hi,scope:Ki}=ie("select-item"),zn=Hi(ji(zi,Ki,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Al={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",f="week",c="month",b="quarter",N="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(C,O,R){var U=String(C);return!U||U.length>=O?C:""+Array(O+1-U.length).join(R)+C},q={s:k,z:function(C){var O=-C.utcOffset(),R=Math.abs(O),U=Math.floor(R/60),W=R%60;return(O<=0?"+":"-")+k(U,2,"0")+":"+k(W,2,"0")},m:function C(O,R){if(O.date()<R.date())return-C(R,O);var U=12*(R.year()-O.year())+(R.month()-O.month()),W=O.clone().add(U,c),J=R-W<0,Z=O.clone().add(U+(J?-1:1),c);return+(-(U+(R-W)/(J?W-Z:Z-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:c,y:N,w:f,d,D:m,h:u,m:s,s:i,ms:a,Q:b}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},_="en",A={};A[_]=w;var L=function(C){return C instanceof T},B=function C(O,R,U){var W;if(!O)return _;if(typeof O=="string"){var J=O.toLowerCase();A[J]&&(W=J),R&&(A[J]=R,W=J);var Z=O.split("-");if(!W&&Z.length>1)return C(Z[0])}else{var ee=O.name;A[ee]=O,W=ee}return!U&&W&&(_=W),W||!U&&_},I=function(C,O){if(L(C))return C.clone();var R=typeof O=="object"?O:{};return R.date=C,R.args=arguments,new T(R)},E=q;E.l=B,E.i=L,E.w=function(C,O){return I(C,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function C(R){this.$L=B(R.locale,null,!0),this.parse(R)}var O=C.prototype;return O.parse=function(R){this.$d=function(U){var W=U.date,J=U.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(g);if(Z){var ee=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(W)}(R),this.$x=R.x||{},this.init()},O.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},O.$utils=function(){return E},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(R,U){var W=I(R);return this.startOf(U)<=W&&W<=this.endOf(U)},O.isAfter=function(R,U){return I(R)<this.startOf(U)},O.isBefore=function(R,U){return this.endOf(U)<I(R)},O.$g=function(R,U,W){return E.u(R)?this[U]:this.set(W,R)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(R,U){var W=this,J=!!E.u(U)||U,Z=E.p(R),ee=function(j,z){var M=E.w(W.$u?Date.UTC(W.$y,z,j):new Date(W.$y,z,j),W);return J?M:M.endOf(d)},re=function(j,z){return E.w(W.toDate()[j].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(z)),W)},D=this.$W,x=this.$M,F=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case N:return J?ee(1,0):ee(31,11);case c:return J?ee(1,x):ee(0,x+1);case f:var v=this.$locale().weekStart||0,K=(D<v?D+7:D)-v;return ee(J?F-K:F+(6-K),x);case d:case m:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case s:return re(V+"Seconds",2);case i:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(R){return this.startOf(R,!1)},O.$set=function(R,U){var W,J=E.p(R),Z="set"+(this.$u?"UTC":""),ee=(W={},W[d]=Z+"Date",W[m]=Z+"Date",W[c]=Z+"Month",W[N]=Z+"FullYear",W[u]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[a]=Z+"Milliseconds",W)[J],re=J===d?this.$D+(U-this.$W):U;if(J===c||J===N){var D=this.clone().set(m,1);D.$d[ee](re),D.init(),this.$d=D.set(m,Math.min(this.$D,D.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},O.set=function(R,U){return this.clone().$set(R,U)},O.get=function(R){return this[E.p(R)]()},O.add=function(R,U){var W,J=this;R=Number(R);var Z=E.p(U),ee=function(x){var F=I(J);return E.w(F.date(F.date()+Math.round(x*R)),J)};if(Z===c)return this.set(c,this.$M+R);if(Z===N)return this.set(N,this.$y+R);if(Z===d)return ee(1);if(Z===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=l,W)[Z]||1,D=this.$d.getTime()+R*re;return E.w(D,this)},O.subtract=function(R,U){return this.add(-1*R,U)},O.format=function(R){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var J=R||"YYYY-MM-DDTHH:mm:ssZ",Z=E.z(this),ee=this.$H,re=this.$m,D=this.$M,x=W.weekdays,F=W.months,V=function(z,M,P,Y){return z&&(z[M]||z(U,J))||P[M].slice(0,Y)},v=function(z){return E.s(ee%12||12,z,"0")},K=W.meridiem||function(z,M,P){var Y=z<12?"AM":"PM";return P?Y.toLowerCase():Y},j={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:E.s(D+1,2,"0"),MMM:V(W.monthsShort,D,F,3),MMMM:V(F,D),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:v(1),hh:v(2),a:K(ee,re,!0),A:K(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z};return J.replace($,function(z,M){return M||j[z]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(R,U,W){var J,Z=E.p(U),ee=I(R),re=(ee.utcOffset()-this.utcOffset())*n,D=this-ee,x=E.m(this,ee);return x=(J={},J[N]=x/12,J[c]=x,J[b]=x/3,J[f]=(D-re)/6048e5,J[d]=(D-re)/864e5,J[u]=D/r,J[s]=D/n,J[i]=D/l,J)[Z]||D,W?x:E.a(x)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return A[this.$L]},O.locale=function(R,U){if(!R)return this.$L;var W=this.clone(),J=B(R,U,!0);return J&&(W.$L=J),W},O.clone=function(){return E.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},C}(),H=T.prototype;return I.prototype=H,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",N],["$D",m]].forEach(function(C){H[C[1]]=function(O){return this.$g(O,C[0],C[1])}}),I.extend=function(C,O){return C.$i||(C(O,T,I),C.$i=!0),I},I.locale=B,I.isDayjs=L,I.unix=function(C){return I(1e3*C)},I.en=A[_],I.Ls=A,I.p={},I})})(Al);var Wi=Al.exports;const je=Ge(Wi);var Ll={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l={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,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var $=g.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},b=function(h,g){var $,w=s.meridiem;if(w){for(var k=1;k<=24;k+=1)if(h.indexOf(w(k,0,g))>-1){$=k>12;break}}else $=h===(g?"pm":"PM");return $},N={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[i,function(h){var g=s.ordinal,$=h.match(/\d+/);if(this.day=$[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[i,function(h){var g=c("months"),$=(c("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(h){var g,$;g=h,$=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,E,T){var H=T&&T.toUpperCase();return E||$[T]||l[T]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,O,R){return O||R.slice(1)})})).match(n),k=w.length,q=0;q<k;q+=1){var _=w[q],A=N[_],L=A&&A[0],B=A&&A[1];w[q]=B?{regex:L,parser:B}:_.replace(/^\[|\]$/g,"")}return function(I){for(var E={},T=0,H=0;T<k;T+=1){var C=w[T];if(typeof C=="string")H+=C.length;else{var O=C.regex,R=C.parser,U=I.slice(H),W=O.exec(U)[0];R.call(E,W),I=I.replace(W,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var ee=J.hours;Z?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}}(E),E}}return function(h,g,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,k=w.parse;w.parse=function(q){var _=q.date,A=q.utc,L=q.args;this.$u=A;var B=L[1];if(typeof B=="string"){var I=L[2]===!0,E=L[3]===!0,T=I||E,H=L[2];E&&(H=L[2]),s=this.$locale(),!I&&H&&(s=$.Ls[H]),this.$d=function(U,W,J){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*U);var Z=m(W)(U),ee=Z.year,re=Z.month,D=Z.day,x=Z.hours,F=Z.minutes,V=Z.seconds,v=Z.milliseconds,K=Z.zone,j=new Date,z=D||(ee||re?1:j.getDate()),M=ee||j.getFullYear(),P=0;ee&&!re||(P=re>0?re-1:j.getMonth());var Y=x||0,Q=F||0,ne=V||0,S=v||0;return K?new Date(Date.UTC(M,P,z,Y,Q,ne,S+60*K.offset*1e3)):J?new Date(Date.UTC(M,P,z,Y,Q,ne,S)):new Date(M,P,z,Y,Q,ne,S)}catch{return new Date("")}}(_,B,A),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&_!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var C=B.length,O=1;O<=C;O+=1){L[1]=B[O-1];var R=$.apply(this,L);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}O===C&&(this.$d=new Date(""))}else k.call(this,q)}}})})(Ll);var Yi=Ll.exports;const Gi=Ge(Yi);var Ml={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),c=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(c)}}})})(Ml);var Ui=Ml.exports;const Xi=Ge(Ui);var Bl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,N,m,h){var g=c.name?c:c.$locale(),$=i(g[b]),w=i(g[N]),k=$||w.map(function(_){return _.slice(0,m)});if(!h)return k;var q=g.weekStart;return k.map(function(_,A){return k[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,b){return c.formats[b]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(c.formats[b.toUpperCase()])},f=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(c){return s(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(Bl);var Zi=Bl.exports;const Ji=Ge(Zi);var _l={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(d),c=i(this).endOf(l);if(f.isBefore(c))return 1}var b=i(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),N=this.diff(b,l,!0);return N<0?i(this).startOf("week").week():Math.ceil(N)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(_l);var Qi=_l.exports;const es=Ge(Qi);var ql={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(ql);var ts=ql.exports;const ns=Ge(ts);var Pl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Pl);var os=Pl.exports;const ls=Ge(os);var jl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(jl);var rs=jl.exports;const as=Ge(rs);var zl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(zl);var is=zl.exports;const ss=Ge(is);je.extend(Ji),je.extend(Xi),je.extend(Gi),je.extend(es),je.extend(ns),je.extend(ls),je.extend(as),je.extend(ss);const Ae={format(e,t){return je(e).format(t)},parser(e,t){return je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},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 l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t){e=e||0;let l=t??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ae.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ae.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Hl={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Kl={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function us(e,t,l){return{props:{...ve,...Ee,...Hl,...Kl},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=o.computed(()=>R.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=o.computed(()=>R.value?"longTermKey":"normalKey"),m=z=>{if(R.value&&n.type==="daterange"){const M=[...c.value];M[0]=z,c.value=M}else c.value=z;s("update:modelValue",c.value),s("change",c.value)},h=o.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,$=o.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=de(n,"hintText"),k=o.ref(!1);const q=z=>{let P=z.target.value;f.value=!0,ge(w.value)||(k.value=!0),s("focus",P,z)},_=z=>{setTimeout(()=>{k.value&&(k.value=!1),f.value=!1},0);let P=z.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),s("blur",P,z)},A=()=>{s("clear","")},L=z=>{s("calendar-change",z)},B=(z,M,P)=>{s("panel-change",z,M,P)},I=z=>{s("visible-change",z)},E=ke(o.computed(()=>n.longTermText),"longTermText",Re.Near),T=ke(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",Re.Near),H=ke(o.computed(()=>n.longTermValue),"longTermValue",Re.Near),C=ke(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Re.Near);let O=null;const R=o.ref(se(n.longTerm)),U=z=>{if(R.value=z,s("update:longTerm",z),z){if(O=c.value,n.type==="daterange"){const M=[];Array.isArray(H.value)?(M[0]=c.value?c.value[0]??H.value[0]:null,M[1]=H.value[1]??H.value[0]):(M[0]=c.value?c.value[0]??H.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else Array.isArray(H.value)?c.value=H.value[1]??H.value[0]:c.value=H.value,c.value||(c.value=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date);s("update:modelValue",c.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=O;s("update:modelValue",c.value),setTimeout(()=>{K()},100)}},W=se(n.isLongTerm);if(W){const z=()=>{if(R.value===!0){if(O=c.value,n.type==="daterange"){const M=[c.value[0]];Array.isArray(H.value)?M[1]=H.value[1]??H.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=H.value;s("update:modelValue",c.value)}else He(H.value,c.value)&&(R.value=!0)};z(),o.watch([()=>n.longTerm],([M])=>{R.value!==M&&z()}),o.watch([()=>c.value],([M])=>{let P=!1;if(n.type==="daterange"&&Array.isArray(M))try{let Y=M[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Ae.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(C.value)&&C.value.findIndex(S=>Y==S)!==-1)&&(P=!0)}catch(Y){console.error(Y)}R.value!==P&&(R.value=P)},{immediate:!0})}const J=o.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=o.ref(),ee=o.ref(),re=/^\d+$/,D=(z,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,M):re.test(z)&&z.length===n.flashFillThreshold,x=(z,M)=>{let P;if(typeof n.flashFillFormat=="function")P=n.flashFillFormat(z,M);else{const Q=n.flashFillFormat??"YYYYMMDD";P=Ae.parser(z,Q)}const Y=n.valueFormat??"YYYY-MM-DD";return Ae.format(P,Y)},F=z=>z?z.endsWith("range"):!1,V=z=>{if(!z.target)return;const M=z.target.value??"";if(D(M,n.type)){const P=x(M,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[0]=P,m(Y)}else m(P)}},v=z=>{if(!z.target)return;const M=z.target.value??"";if(D(M,n.type)){const P=x(M,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[1]=P,m(Y)}else m(P)}},K=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",V),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",V)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",V),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",V)}};return o.onMounted(K),o.onBeforeUnmount(j),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const M={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:A,onFocus:q,onBlur:_,onCalendarChange:L,onPanelChange:B,onVisibleChange:I},P={};r.slots["range-separator"]&&(P["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(P.default=r.slots.cell);const Y=[],Q=o.h(p.ElDatePicker,M,P);Y.push(Q);const ne={default:()=>Y};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),W){if(R.value){const le=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=o.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),oe={class:J.value},ae=o.h("div",oe,{default:()=>[le,X]});Y.push(ae)}if(!i.value&&!a.value){const le={label:T.value||E.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},X=o.h(p.ElCheckbox,le),oe=o.h("div",{class:{[`${g}__append`]:!0}},[X]);ne.append=()=>oe}}const G={...Ce(n,Hl,Kl),ref:Z,class:{[`${g}__wrapper`]:!0,"has-append":W},hintText:w.value,hintVisible:k.value,prop:`${n.prop}_item`};return o.h(l,G,ne)}}}}const{componentName:cs,create:fs,scope:ds}=ie("date-item"),Hn=fs(us(cs,ds,we)),Wl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hs(e,t,l){return{props:{...ve,...Ee,...Wl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0})),m=A=>{c.value=A,s("update:modelValue",A),s("change",A)};let h=de(n,"hintText"),g=o.ref(!1);const $=A=>{let B=A.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",B,A)},w=A=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let B=A.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),s("blur",B,A)},k=()=>{s("clear","")},q=A=>{s("visible-change",A)},_=o.ref();return xe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const L={...r.attrs,ref:_,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:k,onFocus:$,onBlur:w,onVisibleChange:q},B={},I=[],E=o.h(p.ElTimePicker,L,B);I.push(E);const T={default:()=>I};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const C={...Ce(n,Wl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,C,T)}}}}const{componentName:gs,create:ms,scope:ys}=ie("time-item"),Kn=ms(hs(gs,ys,we)),Yl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,l){return{props:{...ve,...Ee,...Yl},emits:["change","update:modelValue","blur","focus","clear"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0})),m=_=>{c.value=_,s("update:modelValue",_),s("change",_)};let h=de(n,"hintText"),g=o.ref(!1);const $=_=>{let L=_.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},k=()=>{s("clear","")},q=o.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:k,onFocus:$,onBlur:w},L={},B=[],I=o.h(p.ElTimeSelect,A,L);B.push(I);const E={default:()=>B};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const H={...Ce(n,Yl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,H,E)}}}}const{componentName:bs,create:vs,scope:ws}=ie("time-select-item"),Wn=vs(ps(bs,ws,we));function Gl(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function Ul(e,t,l=20){if(typeof t=="string"&&(t=pe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ko(`${e}`,`${t}`);return Gl(n)}else{let n=yn(`${e}`,Wo(`${t}`),20);return Gl(n)}}function Ss(e,t=-1,l=!1,n=3,r=","){return Rt(e,t,l,n,r)}function Xl(e,t,l,n,r=!0){if(e=="")return"";if(e=Yo(e),t=pe(t),t==1)return e;if(n)e=Ul(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(pe(l)+2,"0"):e=yn(e,1,pe(l)));else{let a=-1*t;e=Ul(e,a)}return e}function Zl(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=pn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=pn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const Jl={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 xs(e,t,l){return{props:{...ve,...Ee,...Jl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref(!1),d=de(n,"modelValue"),f=o.ref("");o.watch([()=>d.value,()=>n.rates,()=>n.precision],([C,O,R])=>{if(ge(C)){f.value="";return}const U=Xl(C,O,R,!1);f.value!==U&&(f.value=U)},{immediate:!0});const c=o.computed(()=>{let C="";return u.value&&(C=f.value),C}),{t:b}=Fe.useFoxI18n(t),N=o.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(f.value)?C=Ss(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=b(["placeholder",C]),C}),m=e,h=o.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=ke(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const $=o.ref(""),w=o.computed(()=>{let C=$.value;return ge(C)&&(C=n.errorTip??""),C}),k=o.ref(""),q=o.ref(!1),_=(C,O)=>{if(C=`${C}`,ge(C)){f.value="",d.value="",O.forEach(R=>{s(R,"")}),se(n.showTip)&&q.value&&(q.value=!1);return}if(C.length>=2){let R=C;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){o.triggerRef(f);return}}if(C!="-"){if(!nl(C)){o.triggerRef(f);return}if(n.integerLength!=-1&&ol(C)>Number(n.integerLength)){o.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ll(C)>Number(n.decimalLength)){o.triggerRef(f);return}let R=Zl(C,n);if(R.maxValid===!1){$.value=R.message,o.triggerRef(f);return}}else if(n.min!=null&&pe(n.min)>=0){o.triggerRef(f);return}k.value=C,se(n.showTip)&&(q.value=C.length>0),f.value=C,d.value=Xl(C,n.rates,n.precision,!0),O.forEach(R=>{s(R,d.value)})},A=C=>{_(C,["update:modelValue","input"])},L=C=>{_(C,["update:modelValue","change"])},B=C=>{if(u.value=!0,se(n.showTip)){let O=f.value;ge(O)&&(O=n.hintText),ge(O)||(k.value=O,q.value=!0)}$.value="",s("focus",d.value,C)},I=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&q.value===!0&&(q.value=!1)},0),!ge(f.value)){let O=Zl(f.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}s("update:modelValue",d.value,C),s("blur",d.value,C)},E=()=>{s("clear","")},T=o.computed(()=>pt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:A,onChange:L,onFocus:B,onBlur:I},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=o.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Jl),errorTip:w.value,hintText:k.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ts,create:$s,scope:Cs}=ie("money-item"),Yn=$s(xs(Ts,Cs,we)),Ql={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 Ns(e,t,l){return{props:{...ve,...Ee,...Ql},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),m=o.computed(()=>({[`${b}__unit`]:!0})),h=B=>{c.value=B,s("update:modelValue",B),s("input",B)},g=B=>{s("change",B)};let $=de(n,"hintText"),w=o.ref(!1);const k=B=>{let E=B.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",E,B)},q=B=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=B.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,B)},_=()=>{s("clear","")},A=o.computed(()=>pt(n.unit)>0),L=o.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const I={...Pe(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:g,onInput:h,onFocus:k,onBlur:q},E={},T=[],H=o.h(p.ElInputNumber,I,E);T.push(H);const C={default:()=>T};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const R={...Ce(n,Ql),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(A.value){const W={class:m.value},J=o.h("div",W,[n.unit]);C.append=()=>J}return o.h(l,R,C)}}}}const{componentName:Es,create:ks,scope:Is}=ie("input-number-item"),Gn=ks(Ns(Es,Is,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Os(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Vs=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function Ds(){const e=o.getCurrentInstance();return new Vs(e.proxy)}function Un(e,t,l){const n=Ue(e,t),r=Ue(e,l);if(n!==r)return!1;const a=ot(e,t),i=ot(e,l);return a===i}function er(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=er(e,s,l,n);r.push(u)}else{let u=!1;for(let d of a){if(l==="text")u=Ue(e,d)===s;else if(l==="item")u=Un(e,d,s);else{let f=ot(e,d);f==null&&(f=Ue(e,d)),u=f===s}if(u){r.push(d),a=Os(e,d);break}}if(!u)break}}return r}function Fs(e){return{text:e,value:e}}const tr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],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"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Rs(e,t,l){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(P=>Ue(n,P)).join(" "):Ue(n,z)).join(" "):""),N=(j,z,M,P=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===j)return;f.value=j;const S=o.toRaw(j);if(P){const G=K?.value.getCheckedNodes();if(G)if(n.multiple){const te=[];G.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);te.push(oe)}),s("update:pathNodes",te)}else{const le=(G[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",le)}s("update:modelValue",S),s("change",S)}return}const Y=er(n,j,z,M);if(Y===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,P&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=Y[Y.length-1];if(E.value.checkStrictly!==!0&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const S=[];Y.forEach(G=>{const te=`${Ue(n,G)}`;S.push(te)}),S.length>0&&(B.value=S.join(n.separator))}else B.value=null;let ne=!0;if(Y.length!==c.value.length)ne=!1;else for(let S=0;S<Y.length;S++){const G=Y[S],te=c.value[S];if(Array.isArray(G)){if(!Array.isArray(te)||G.length!==te.length)ne=!1;else for(let le=0;le<G.length;le++)if(!Un(n,G[le],te[le])){ne=!1;break}}else Un(n,G,te)||(ne=!1);if(!ne)break}if(!ne){c.value=Y;let S=[],G=[];Y.forEach(le=>{if(Array.isArray(le)){let X=[],oe=[];for(let ae of le)X.push(ot(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(ot(n,ae));S.push(X),G.push(oe)}else S.push(ot(n,le)),n.valueType==="text"?G.push(Ue(n,le)):n.valueType==="item"?G.push(le):G.push(ot(n,le))}),f.value=S;const te=o.toRaw(G);P&&(s("update:pathNodes",Y),s("update:modelValue",te),s("change",te))}},m=o.ref([]),h=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,j=>se(j)),g=Ds(),$=async(j,z)=>{if(j){const M=await g.load("cascader",j,z);if(M.length>0)if(typeof M[0]=="string"){let Q=M.map(ne=>Fs(ne));m.value=Q}else m.value=M}};o.watch([()=>n.source,()=>n.params],async([j,z])=>{$(j,z)},{immediate:!(h.value||n.lazy)});let w=!1;const k=()=>{w||(w=!0,$(n.source,n.params))};o.watch([()=>m.value,()=>n.modelValue],([j,z])=>{N(z,n.valueType,j,!1)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,_=o.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){_.value=!0;try{const z=await n.remoteMethod(j);m.value=z}catch(z){console.error(z)}_.value=!1}});const A=o.ref(!1),L=e,B=o.ref(null),I=o.computed(()=>({[L]:!0,"is-incomplete":B.value&&B.value.length>0})),E=o.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),n.lazy&&(j.lazy=!0,j.lazyLoad=async(z,M)=>{const P=await g.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const Y=z.pathLabels??[];let Q=[];Y.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(B.value=Q.join(n.separator))}else B.value=null;M(P)}),j}),T=j=>{n.allowCreate?(s("update:modelValue",j),s("change",j),f.value=j):N(j,"value",m.value,!0)};let H=de(n,"hintText"),C=o.ref(!1);const O=j=>{let M=j.target.value;A.value=!0,ge(H.value)||(C.value=!0),s("focus",M,j)},R=j=>{setTimeout(()=>{C.value&&(C.value=!1),A.value=!1},0);let M=j.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),x.value||s("blur",M,j)},U=()=>{s("clear","")},W=o.ref(!1);let J=null;const Z=()=>{n.showTooltip&&W.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{W.value=!0},150))},ee=()=>{J&&(clearTimeout(J),W.value=!1,J=null)},re=o.computed(()=>W.value||C.value),D=o.computed(()=>W.value?b.value:H.value),x=o.ref(!1),F=j=>{x.value=j,s("visible-change",j),j||s("selected")},V=j=>{s("remove-tag",j)},v=j=>{s("expand-change",j)},K=o.ref();return xe({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:K,class:I.value,props:E.value,clearable:n.clearable,placeholder:B.value||d.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:T,onFocus:O,onBlur:R,onVisibleChange:F,onRemoveTag:V,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=_.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const P=[],Y=o.h(p.ElCascader,z,M);P.push(Y);const Q={default:()=>P};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const S={...Ce(n,tr),hintText:D.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=k),o.h(l,S,Q)}}}}const{componentName:As,create:Ls,scope:Ms}=ie("cascader-item"),Xn=Ls(Rs(As,Ms,we)),nr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Bs(e,t,l){return{props:{...ve,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0})),m=L=>{c.value=L,s("update:modelValue",L),s("input",L)},h=L=>{s("change",L)},g=L=>{s("select",L)};let $=de(n,"hintText"),w=o.ref(!1);const k=L=>{let I=L.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",I,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let I=L.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,L)},_=()=>{s("clear","")},A=o.ref();return xe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const B={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,onClear:_,onChange:h,onInput:m,onFocus:k,onBlur:q,onSelect:g},I={};r.slots.prepend&&(I.prepend=r.slots.prepend),r.slots.append&&(I.append=r.slots.append),r.slots.prefix&&(I.prefix=r.slots.prefix),r.slots.suffix&&(I.suffix=r.slots.suffix),r.slots.option&&(I.default=r.slots.option);const E=[],T=o.h(p.ElAutocomplete,B,I);E.push(T);const H={default:()=>E};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return o.h(l,O,H)}}}}const{componentName:_s,create:qs,scope:Ps}=ie("autocomplete-item"),Zn=qs(Bs(_s,Ps,we));function js(e,t,l,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(b=>b[n]===f);if(!c)break;i.push(c[l])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l]),u=c[r]}}return i}let zs=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Hs(){const e=o.getCurrentInstance();return new zs(e.proxy)}const or={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 Ks(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){const a=Hs(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([d,f])=>{i.value=await a.load(l.sourceType,d,f)},{immediate:!0});const s=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=js(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)}),u=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const d={...n};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},s.value):o.h(u,d,{default:()=>s.value}):o.h(u,d,s.value)}}}}const{componentName:xh,create:Ws,scope:Th}=ie("mapping"),Nt=Ws(Ks());function Ys(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Gs(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=Ys(i.row,i.column.property);return r.default?o.h(Nt,{...l,modelValue:s},{default:r.default}):o.h(Nt,{...l,modelValue:s})}};return o.h(p.ElTableColumn,{...n},a)}}}}const{componentName:$h,create:Us,scope:Ch}=ie("table-mapping-column"),Jn=Us(Gs()),Xs=Symbol.for("TableStateKey");function lr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Zs(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Xs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=lr(s.row,s.column.property),d=a?lr(a,s.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},b=o.h("span",c,[o.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return o.h("label",N,[b])}};return o.h(p.ElTableColumn,{...n},i)}}}}const{componentName:Nh,create:Js,scope:Eh}=ie("table-radio-column"),Qn=Js(Zs()),Qs={},eu={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"},tu=[o.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 nu(e,t){return o.openBlock(),o.createElementBlock("svg",eu,tu)}const ou=Me(Qs,[["render",nu]]),{componentName:Ih,create:lu,scope:Oh}=ie("table-setting"),ru={tableRef:{type:Object},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:"不固定"}},au=lu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:ou,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...ru},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=o.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=o.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=o.computed(()=>a.value.length>0),f=o.computed(()=>i.value.length>0),c=v=>v.length>1,b=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(P=>P.prop===M.prop?(M.label=P.label,!0):!1)});const j=[];r.value=v.map((M,P)=>(!(M.label===""||M.type)&&M.visible!==!1&&j.push(M.prop),{...M,sortIndex:P})),s.value.length+a.value.length+i.value.length===j.length?w.value=!0:j.length>0&&(k.value=!0),A.value=j},N=v=>v?v.type?v.type:v.label?v.prop:"":"",m=(v,K)=>{if(v.length!==K.length)return!1;const j=v.map(z=>N(z));for(let z of K){const M=N(z);if(j.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),j=K.srcColumnPropertyList;n=j.map((z,M)=>({...z,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&m(j,v)||(v=j)}b(v,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},$=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=o.ref(!1),k=o.ref(!1),q=v=>{const K=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&K.push(z.prop),z.visible=v}),w.value=!1,k.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(k.value=!0),A.value=K,g()},_=()=>{h(n),g()},A=o.ref([]),L=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),w.value=!1,k.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?w.value=!0:v.length>0&&(k.value=!0),g()},B=()=>{h()};o.onMounted(()=>{setTimeout(()=>{h()},50)});const I={currentRow:null,index:null,roleType:null},E=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,E(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(I.roleType=K.dataset.roleType,I.index=K.dataset.index)},H=v=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},C=v=>{const K=v.currentTarget;v.relatedTarget;const j=E(K);if(!j)return;const z=j.dataset&&j.dataset.roleType;I.roleType===z&&(v.preventDefault(),I.currentRow&&I.currentRow!==j&&I.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),I.currentRow=j)},O=v=>{v.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},R=v=>{const K=v.currentTarget,j=E(K);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(I.roleType!==z)return;v.preventDefault();const M=Number(I.index),P=Number(j.dataset.index);if(M!==P){if(M<P){const Y=r.value[M];r.value.splice(M,1),r.value.splice(P,0,Y)}else{const Y=r.value[M];r.value.splice(M,1),r.value.splice(P+1,0,Y)}b(r.value,n),g()}},U=v=>{const K=r.value[v];K.fixed="left",g()},W=v=>{const K=r.value[v];K.fixed="right",g()},J=v=>{const K=r.value[v];K.fixed=void 0,g()},Z=new Map;let ee=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:k,handleCheckAllChange:q,handleReset:_,checkedValue:A,handleCheckChange:L,onShow:B,onDragStart:T,onDragEnd:H,onDragOver:C,onDragLeave:O,onDrop:R,toLeftFixed:U,toRightFixed:W,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,K,j)=>{const z=v.currentTarget;if(z){const M=Math.floor(z.offsetWidth);if(Math.floor(re(z))>M){let Y=Z.get(K);if(Y){if(Y===ee)return;Ve.hide(Y)}Y=Ve.show(z,j,{type:"text",placement:"top",closeOnClick:!1}),Z.set(K,Y),ee=Y}}},onMouseLeaveForOverflowText:(v,K)=>{const j=Z.get(K);j&&(Ve.hide(j),j===ee&&(ee=null))},onMouseOverForTip:(v,K)=>{const j=v.currentTarget;j&&(ee&&Ve.hide(ee),ee=Ve.show(j,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),iu={class:"fox-table-setting"},su={class:"fox-table-setting__header"},uu={class:"fox-table-setting__body"},cu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},fu={key:0,class:"fox-table-setting__body-title"},du=["data-index","draggable"],hu=["onMouseover","onMouseleave"],gu={class:"tools-item"},mu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},yu={key:0,class:"fox-table-setting__body-title"},pu=["data-index","draggable"],bu=["onMouseover","onMouseleave"],vu={class:"tools-item"},wu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Su={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],$u={class:"tools-item"};function Cu(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("RefreshLeft"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("Download"),b=o.resolveComponent("fox-checkbox"),N=o.resolveComponent("FoxCheckboxGroup"),m=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(m,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",iu,[o.createElementVNode("div",su,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",uu,[o.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",cu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",fu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,hu)]),_:2},1032,["label"]),o.createElementVNode("div",gu,[o.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,du))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",mu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",yu,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,bu)]),_:2},1032,["label"]),o.createElementVNode("div",vu,[o.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,pu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",wu,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",Su,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(b,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),o.createElementVNode("div",$u,[o.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,xu))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const nn=Me(au,[["render",Cu]]);let Nu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,s){if(Array.isArray(l)){let d=(n-1)*r,f=d+r;f>l.length&&(f=l.length);const c=l.slice(d,f);return{totalSize:l.length,page:c}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(u,null,[l,n,r,a,i,s]))}};function Eu(){const e=o.getCurrentInstance();return new Nu(e.proxy)}class ku{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function rr(){const e=o.getCurrentInstance();return new ku(e.proxy)}const Iu=Symbol.for("TableStateKey"),ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},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"}},ir={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"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},eo={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:"不固定"}},Ou={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Vu(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function to(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Vu(n,r);if(a!==i)return!1}return!0})}function Du(e,t,l){return{inheritAttrs:!1,props:{...ve,...Ee,...ar,...ir,...eo,...Ou},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Fe.useFoxI18n(t),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...X){return A.value}}},n.prop??r.attrs.name),s=e,u=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),f=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),c=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=o.shallowRef({}),N=o.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),m=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),g=se(n.infiniteLoad);g||(o.watch(()=>n.pageIndex,X=>{m.value=X}),o.watch(()=>n.pageSize,X=>{h.value=X}),o.watch([m,h],([X,oe],[ae,ue])=>{oe!==ue&&(m.value=1,X=1),E(n.data,X,oe,N.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&o.watch([()=>n.data,N],async([X,oe],[ae,ue])=>{$()&&(X!==ae&&(B=!0),!(!Array.isArray(X)&&He(X,ae)&&He(oe,ue))&&(g?(m.value=0,q.value=!0,A.value=[],H()):m.value===1?E(X,m.value,h.value,oe):m.value=1))},{deep:!0});const w=X=>{m.value=X,i("page-index-change",X)},k=X=>{h.value=X,i("page-size-change",X)},q=o.ref(!0),_=o.ref(0),A=o.ref(),L=Eu();let B=!0;const I=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,X=>se(X)),E=async(X,oe,ae,ue,ye)=>{B=!1;try{if(ye===!0){if(!q.value)return!1;const he=await L.load("table",X,oe,ae,ue,B,a.value);return _.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,A.value,he.page),setTimeout(()=>{i("loaded-data")},250),(A.value?.length??0)>=_.value)||he.page.length<ae?(q.value=!1,!1):!0}else{const he=await L.load("table",X,oe,ae,ue,B,a.value);return _.value=he.totalSize,A.value=he.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),_.value=0,A.value=[]}return!1};let T=!1;const H=async()=>{if(!T){if(T=!0,!q.value){T=!1;return}m.value+=1,await E(n.data,m.value,h.value,N.value,!0),T=!1}},C=(X={},oe=!1)=>new Promise(async ae=>{b.value={...o.toRaw(X??{})},oe||(m.value=n.pageIndex??1),g===!0?(m.value=0,A.value=[],q.value=!0,await H()):await E(n.data,m.value,h.value,N.value),ae()}),O=()=>{_.value=0,A.value=[],g===!0&&(m.value=0,q.value=!0)};let R=!1;const U=()=>{R||(R=!0,C())},W=o.ref(null);if(g===!0){let X=null;const oe=()=>{W.value&&(X=new IntersectionObserver(ue=>{let ye=!1;for(let he of ue)if(he.intersectionRatio>0){ye=!0;break}ye&&H()}),X.observe(W.value))},ae=()=>{!X||!W.value||(X.unobserve(W.value),X=null)};o.onMounted(oe),o.onBeforeUnmount(ae)}$()&&!I.value&&C();const J=o.ref(null);o.provide(Iu,{currentRow:J});const Z=(X,oe)=>{J.value=X,i("current-change",X,oe)},ee=(X,oe,ae)=>{i("row-click",X,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(X)},re=[],D=(X,oe)=>{if(i("expand-change",X,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},x=r.attrs.id??n.prop??r.attrs.name,F=rr(),V=o.ref([]);let v=[];const K=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:V.value}),j=X=>{V.value=[...X],M()},z=async()=>{const X=await F.load(x);X&&(V.value=X)},M=()=>{F.save(x,V.value)},P=()=>{F.remove(x)};z();const Y=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=o.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),oe=new Map;if(v=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const ye=Y(ue.props);oe.set(ye,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),V.value.length===v.length){const ae=[];for(let ue of V.value){const ye=Y(ue),he=oe.get(ye);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ne=o.shallowRef(new Map),S=({column:X,rowIndex:oe})=>{const ae=`${oe}_${X.property}`;return ne.value.get(ae)??""},G=X=>typeof X=="function"?oe=>{const ae=[];let ue=S(oe);return ue&&ae.push(ue),ue=X(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:S,te=(X,oe,ae)=>{const ue=`${X}_${oe}`;ae?ne.value.set(ue,ae):ne.value.delete(ue),o.triggerRef(ne)},le=o.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(X,oe)=>{le?.value.toggleRowSelection(X,oe)},toggleRowSelectionByProp:(X,oe)=>{if(!A.value)return;const ae=to(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(X,oe)=>{le?.value.toggleRowExpansion(X,oe)},toggleRowExpansionByProp:(X,oe)=>{if(!A.value)return;const ae=to(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:X=>{le?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!A.value)return;const oe=to(A.value,X);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:X=>{le?.value.clearFilter(X)},doLayout:()=>{le?.value.doLayout()},sort:(X,oe)=>{le?.value.sort(X,oe)},scrollTo:(X,oe)=>{le?.value.scrollTo(X,oe)},setScrollTop:X=>{le?.value.setScrollTop(X)},setScrollLeft:X=>{le?.value.setScrollLeft(X)},loadData:C,clearData:O,getData(){return A.value},getTotalSize(){return _.value},getPageIndex(){return m.value},getPageSize(){return h.value},getColumnSetting:K,setColumnSetting:j,removeColumnSetting:P,setCellClassName:te}),()=>{const oe={...Pe(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:D,data:A.value,ref:le,class:u.value,"cell-class-name":G(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),g===!0){const _e=[];if(q.value){const Vt=o.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(Vt);const Bo=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);_e.push(Bo)}else{const Vt=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);_e.push(Vt)}const rt={ref:W,class:`${s}__infinite`},Mo=o.h("div",rt,_e);ae.append=()=>Mo}const ue=o.h(p.ElTable,oe,ae),ye=[];if(ye.push(ue),!g){let _e=null;if(typeof r.slots.pagination=="function")_e=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:_.value,pageSize:h.value,"onUpdate:pageSize":k,pageSizes:n.pageSizes,currentPage:m.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};_e=o.h(p.ElPagination,rt)}if(n.showSetting){const rt=[];_e&&rt.push(_e);const Mo=o.h(p.ElIcon,{class:d.value},{default:()=>o.h(Te.Setting)}),Vt=al(n,eo),Bo=o.h(nn,{...Vt,tableRef:{getColumnSetting:K,setColumnSetting:j,removeColumnSetting:P}},{default:()=>Mo});rt.push(Bo);const mh=o.h("div",{class:f.value},rt);ye.push(mh)}else _e&&ye.push(_e)}const he={default:()=>ye},Ot={...Ce(n,ar,ir,eo),prop:`${n.prop}_item`};return Ot.contentClass=`${s}__wrap`,Ot.errorMarkClass="is-table-error",I.value&&$()&&(Ot["appear-listen"]=!0,Ot.onAppear=U),o.h(l,Ot,he)}}}}const{componentName:Fu,create:Ru,scope:Au}=ie("table-item"),no=Ru(Du(Fu,Au,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Lu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Mu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Bu(){const e=o.getCurrentInstance();return new Mu(e.proxy)}function sr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ct(e,t),r=ct(e,l);if(n!==r)return!1;const a=Et(e,t),i=Et(e,l);return a===i}function _u(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(l==="text")i=ct(e,a)===t;else if(l==="item")i=sr(e,a,t);else{let s=Et(e,a);s==null&&(s=ct(e,a)),i=s===t}if(i){r=a;break}}return r}function qu(e){return{text:e,value:e}}function Pu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const ur={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 ju(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...ur},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref(null),d=o.ref(null),f=(L,B,I,E=!0)=>{const T=_u(n,L,B,I);if(T===null){if(d.value===null)return;d.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!sr(n,T,d.value)){u.value=L;const C=o.toRaw(T);d.value=C;let O=null;n.valueType==="text"?O=ct(n,C):n.valueType==="item"?O=C:O=Et(n,C),E&&(s("update:modelValue",O),s("change",O))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),N=Bu(),m=async(L,B)=>{if(L){const I=await N.load("radio",L,B);if(I.length>0)if(typeof I[0]=="string"){let H=I.map(C=>qu(C));c.value=H}else c.value=I}};o.watch([()=>n.source,()=>n.params],async([L,B])=>{m(L,B)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,B])=>{f(B,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),k=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,B)=>{const I=[];return L.forEach((E,T)=>{const H=Et(n,E),C=ct(n,E);let O=Lu(n,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=Pu(n,E,T)??{},U=`${H}_${T}`,W={...R,key:U,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?I.push(o.h(p.ElRadioButton,W,{default:()=>[C]})):typeof B=="function"?I.push(o.h(p.ElRadio,W,{default:()=>B(E)})):I.push(o.h(p.ElRadio,W,{default:()=>[C]}))}),I};return()=>{const B={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:k},I=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const T=o.h(p.ElRadioGroup,B,E);I.push(T);const H={default:()=>I};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,ur),hintText:q.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),o.h(l,O,H)}}}}const{componentName:zu,create:Hu,scope:Ku}=ie("radio-item"),oo=Hu(ju(zu,Ku,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Yu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Gu(){const e=o.getCurrentInstance();return new Yu(e.proxy)}function cr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ft(e,t),r=ft(e,l);if(n!==r)return!1;const a=dt(e,t),i=dt(e,l);return a===i}function Uu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(l==="text")s=ft(e,i)===a;else if(l==="item")s=cr(e,i,a);else{let u=dt(e,i);u==null&&(u=ft(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function Xu(e){return{text:e,value:e}}function Zu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const fr={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 Ju(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref([]),d=o.ref([]),f=(L,B,I,E=!0)=>{const T=Uu(n,L,B,I);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(T.length!==d.value.length)H=!1;else for(let C=0;C<T.length;C++){const O=T[C],R=d.value[C];if(!cr(n,O,R)){H=!1;break}}if(!H){d.value=T;let C=[],O=[];T.forEach(U=>{C.push(dt(n,U)),n.valueType==="text"?O.push(ft(n,U)):n.valueType==="item"?O.push(U):O.push(dt(n,U))}),u.value=C;const R=o.toRaw(O);E&&(s("update:modelValue",R),s("change",R))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),N=Gu(),m=async(L,B)=>{if(L){const I=await N.load("checkbox",L,B);if(I.length>0)if(typeof I[0]=="string"){let H=I.map(C=>Xu(C));c.value=H}else c.value=I}};o.watch([()=>n.source,()=>n.params],async([L,B])=>{m(L,B)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,B])=>{f(B,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),k=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,B)=>{const I=[];return L.forEach((E,T)=>{const H=dt(n,E),C=ft(n,E);let O=Wu(n,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=Zu(n,E,T)??{},U=`${H}_${T}`,W={...R,key:U,class:n.itemClass,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?I.push(o.h(p.ElCheckboxButton,W,{default:()=>[C]})):typeof B=="function"?I.push(o.h(p.ElCheckbox,W,{default:()=>B(E)})):I.push(o.h(p.ElCheckbox,W,{default:()=>[C]}))}),I};return()=>{const B={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:pe(n.max),min:pe(n.min),onChange:k},I=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const T=o.h(p.ElCheckboxGroup,B,E);I.push(T);const H={default:()=>I};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:q.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),o.h(l,O,H)}}}}const{componentName:Qu,create:ec,scope:tc}=ie("checkbox-item"),lo=ec(Ju(Qu,tc,we)),dr={modelValue:{type:[Number,String],required:!1}};function nc(e,t,l){return{props:{...ve,...Ee,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>pe(h)),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),N=o.ref(!1);const m=o.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:c},$={},w=[],k=o.h(p.ElRate,g,$);w.push(k);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,dr),hintText:b.value,hintVisible:N.value,prop:`${n.prop}_item`};return o.h(l,A,q)}}}}const{componentName:oc,create:lc,scope:rc}=ie("rate-item"),ro=lc(nc(oc,rc,we)),hr={modelValue:{type:[Boolean,String,Number],required:!1}};function ac(e,t,l){return{props:{...ve,...Ee,...hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue"),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),N=de(n,"hintVisible");const m=o.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],k=o.h(p.ElSwitch,g,$);w.push(k);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,hr),hintText:b.value,hintVisible:N.value,prop:`${n.prop}_item`};return o.h(l,A,q)}}}}const{componentName:ic,create:sc,scope:uc}=ie("switch-item"),ao=sc(ac(ic,uc,we)),gr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function cc(e,t,l){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),s=o.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=de(n,"modelValue"),f=e,c=o.computed(()=>({[f]:!0})),b=_=>{u("update:modelValue",_),u("change",_)};let N=de(n,"hintText"),m=o.ref(!1);const h=_=>{let L=_.target.value;s.value=!0,ge(N.value)||(m.value=!0),u("focus",L,_)},g=_=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,_)},$=()=>{u("clear","")},w=o.ref(!1),k=_=>{w.value=_,u("visible-change",_),_||u("selected")},q=o.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...Pe(r.attrs),ref:q,class:c.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:$,onFocus:h,onBlur:g,onVisibleChange:k},L={};r.slots.option&&(L.default=r.slots.option);const B=[],I=o.h(p.ElTreeSelect,A,L);B.push(I);const E={default:()=>B};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const H={...Ce(n,gr),hintText:N.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,H,E)}}}}const{componentName:fc,create:dc,scope:hc}=ie("tree-select-item"),io=dc(cc(fc,hc,we)),gc={},mc={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"},yc=[o.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 pc(e,t){return o.openBlock(),o.createElementBlock("svg",mc,yc)}const bc=Me(gc,[["render",pc]]),{componentName:Dh,create:vc,scope:Fh}=ie("group-setting"),wc={groupProp:{type:[String]},groupRef:{type:[Object]},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:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Sc=vc({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:bc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...wc},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=rr(),s=D=>D.length>1,u=()=>{const D=[],x=[...a.value];a.value=x.map((V,v)=>(V.visible!==!1&&D.push(V.prop),{...V,sortIndex:v})),a.value.length===D.length?h.value=!0:D.length>0&&(g.value=!0),k.value=D},d=D=>{let x=null;if(typeof D=="string")x=document.querySelectorAll(`.fox-group[prop="${D}"] > div > .fox-item[prop]`);else if(D&&typeof D=="object"){const V=D.$el??D;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const F=[];return x.forEach(V=>{const v=V.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const j=V.getAttribute("prop")??"",M=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:K,prop:j,sortIndex:0,visible:M!=="none"})}),F},f=()=>{if(!r){const D=d(e.groupRef??e.groupProp);if(D.length===0)return!1;r=D}return!0},c=async(D=!1)=>{const x=await i.load(e.groupProp),F=V=>{if(!V||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(j=>{if(j.prop===K.prop){const z=j.label;return Object.assign(j,K),j.label=z,!0}return!1})}),a.value=v.sort((K,j)=>K.sortIndex-j.sortIndex),u(),D&&N(!1)};r?F(!0):Pt(f,e.initDelay,5,50,!1,F)},b=()=>{const D=r??[];a.value=D.map(x=>({...x})),u(),N()},N=(D=!0)=>{D&&i.save(e.groupProp,a.value);const x=a.value.map(F=>({...F}));t("change",x)},m=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=o.ref(!1),g=o.ref(!1),$=D=>{const x=[];a.value.forEach(V=>{D&&x.push(V.prop),V.visible=D}),h.value=!1,g.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(g.value=!0),k.value=x,N()},w=()=>{b()},k=o.ref([]),q=D=>{a.value.forEach(F=>{const V=D.indexOf(F.prop)!==-1;F.visible=V}),h.value=!1,g.value=!1;const x=a.value.length;D.length===x?h.value=!0:D.length>0&&(g.value=!0),N()},_=()=>{c()};o.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=D=>D?D.dataset&&D.dataset.role==="row"?D:D.tagName.toLowerCase()!=="body"?(D=D.parentElement,L(D)):null:null,B=D=>{const x=D.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},I=D=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},E=D=>{const x=D.currentTarget;D.relatedTarget;const F=L(x);F&&(D.preventDefault(),A.currentRow&&A.currentRow!==F&&A.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),A.currentRow=F)},T=D=>{D.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},H=D=>{const x=D.currentTarget,F=L(x);if(!F)return;D.preventDefault();const V=Number(A.index),v=Number(F.dataset.index);if(V!==v){if(V<v){const K=a.value[V];a.value.splice(V,1),a.value.splice(v,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(v+1,0,K)}u(),N()}},C=D=>{const x=a.value[D];a.value.splice(D,1),a.value.splice(0,0,x),u(),N()},O=D=>{const x=a.value[D];a.value.splice(D,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const R=new Map;let U=null;function W(D){const x=document.createRange();return x.setStart(D,0),x.setEnd(D,D.childNodes.length),x.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:$,handleReset:w,checkedValue:k,handleCheckChange:q,onShow:_,onDragStart:B,onDragEnd:I,onDragOver:E,onDragLeave:T,onDrop:H,checkboxLabelStyle:m,toTop:C,toBottom:O,onMouseOverForOverflowText:(D,x,F)=>{const V=D.currentTarget;if(V){const v=Math.floor(V.offsetWidth);if(Math.floor(W(V))>v){let j=R.get(x);if(j){if(j===U)return;Ve.hide(j)}j=Ve.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),R.set(x,j),U=j}}},onMouseLeaveForOverflowText:(D,x)=>{const F=R.get(x);F&&(Ve.hide(F),F===U&&(U=null))},onMouseOverForTip:(D,x)=>{const F=D.currentTarget;F&&(U&&Ve.hide(U),U=Ve.show(F,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:D=>{U&&(Ve.hide(U),U=null)}}}}),xc={class:"fox-group-setting"},Tc={class:"fox-group-setting__header"},$c={class:"fox-group-setting__body"},Cc={class:"fox-group-setting__body-list","data-role":"container"},Nc=["data-index","draggable"],Ec=["onMouseover","onMouseleave"],kc={class:"tools-item"};function Ic(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("Download"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",xc,[o.createElementVNode("div",Tc,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",$c,[o.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",Cc,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,N=>(o.openBlock(),o.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:N.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,N.prop,N.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,N.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(N.label),45,Ec)]),_:2},1032,["label"]),o.createElementVNode("div",kc,[o.createVNode(f,{onClick:m=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"])])],40,Nc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const so=Me(Sc,[["render",Ic]]),Oc=["aria-labelledby"],Vc=o.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Dc=[Vc],Fc=o.defineComponent({__name:"MoreH",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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,Oc))}}),Rc=["aria-labelledby"],Ac=o.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Lc=[Ac],uo=o.defineComponent({__name:"Loading",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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Lc,14,Rc))}}),Mc=["aria-labelledby"],Bc=o.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),_c=[Bc],qc=o.defineComponent({__name:"Close",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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),Pc=["aria-labelledby"],jc=o.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),zc=[jc],Hc=o.defineComponent({__name:"Checklist",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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},zc,14,Pc))}}),Kc=["aria-labelledby"],Wc=o.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Yc=[Wc],Gc=o.defineComponent({__name:"ArrowRight",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 l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yc,14,Kc))}}),Uc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},mr=(e,t)=>t[e.textKey],kt=(e,t)=>t[e.valueKey],Xc=(e,t)=>t[e.visibleKey],yr=(e,t)=>t[e.disabledKey],Zc=(e,t)=>{const l=t[e.doitKey];return se(l)},Jc=(e,t)=>{const l=t[e.numKey];return l==null?null:pe(t[l])},pr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function Qc(e,t,l,n=!1){return{props:{...Uc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=o.computed(()=>{const D={};return D[`${e}`]=!0,D}),u=o.computed(()=>{const D={};return D[`${e}__titles`]=!0,D[`${r.direction}`]=!0,r.align==="left"&&(D.left=!0),r.scroll===!0&&(D.scrollable=!0),r.shape&&(D[`${r.shape}`]=!0),D}),d=o.computed(()=>({})),f=o.computed(()=>{if(!r.gutter)return 0;const D=fe(r.gutter);return D<=0?0:D}),c=o.ref(r.modelValue);o.watch(()=>r.modelValue,D=>{c.value!==D&&(c.value=D,W(!1))});const b=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=o.computed(()=>{const D={};return h.value||(D.display="none"),D}),m=o.ref(),h=o.ref(!1),g=()=>{const D=!h.value;$(D)},$=D=>{const x=D;x?(h.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=o.ref(),k=o.ref([]),q=(D,x)=>{k.value[x]=D},_=D=>x=>{q(x,D)},A=(D,x)=>{const F=w.value,V=k.value;if(!F||!V||!V[D])return;const v=V[D];let K=0;r.direction==="vertical"?K=v.offsetTop-(F.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(F.offsetWidth-v.offsetWidth)/2,L(F,K,x?0:.3,r.direction)},L=(D,x,F,V)=>{let v=0;const K=V==="horizontal"?D.scrollLeft:D.scrollTop,j=F===0?1:Math.round(F*1e3/16);function z(){V==="horizontal"?D.scrollLeft+=(x-K)/j:D.scrollTop+=(x-K)/j,++v<j&&bn(z)}z()},B=(D,x)=>{const F=kt(r,D),V={};return V[`${e}__titles-item`]=!0,V.disabled=yr(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),x&&(x.class&&(V[`${x.class}`]=!0),x.disabled===!0&&(V.disabled=x.disabled)),V},I=(D,x)=>{const F={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(F,x.style),F},E=(D,x)=>`${kt(r,D)??x}`,T=(D,x)=>{const F=kt(r,D),V={};V[`${e}__popup-item`]=!0,V.disabled=yr(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0);const v=pr(r,D,x);return v&&v.disabled===!0&&(V.disabled=v.disabled),V},H=o.computed(()=>(r.data??[]).filter(x=>Xc(r,x)!==!1)),C=(D,x)=>{const F=kt(r,D);if(c.value==F)return;const V=()=>{c.value=F,r.scroll&&A(x,!1),i("update:modelValue",F),i("change",D,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(D,x);Uo(v)?v.then(K=>{K!==!1&&V()}).catch(()=>{V()}):v!==!1&&V()}else V()},O=(D,x)=>function(){C(D,x)},R=(D,x)=>{C(D,x),$(!1)},U=(D,x)=>function(){R(D,x)},W=D=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(F=>kt(r,F)===c.value);x!==-1&&A(x,D)};o.watch(()=>r.data,()=>{setTimeout(W,0)}),o.onMounted(()=>{W(!0)});const J=(D,x)=>{if(a.item)return a.item({item:D,index:x});const F=pr(r,D,x),V=[];if(a.text){const z=a.text({item:D,index:x});V.push(z)}else{const z=[];if(F?.doit===!0||Zc(r,D)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=o.h("view",Q);z.push(ne)}const M=F?.num??Jc(r,D);if(M){let Q="";const ne=pe(M);ne>=100?Q="99+":Q=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},G=o.h("view",S,[Q]);z.push(G)}const P={class:`${e}__titles-item-text`};z.push(mr(r,D));const Y=o.h("view",P,z);V.push(Y)}const v={class:`${e}__titles-item-line`},K=o.h("view",v);V.push(K);const j={ref:_(x),class:B(D,F),style:I(D,F),key:E(D,x),onClick:O(D,x)};return o.h("view",j,V)},Z=()=>{const D=a.default?a.default():[];if(D.length===0)for(let F=0;F<H.value.length;F++){const V=H.value[F],v=J(V,F);D.push(v)}const x={ref:w,class:u.value,style:d.value};return o.h("view",x,D)},ee=()=>{let D=null;a.navigation?D=a.navigation():D=o.h(l);const x={class:`${e}__navigation`,onClick:g};return o.h("view",x,[D])},re=()=>{const D=[];for(let F=0;F<H.value.length;F++){const V=H.value[F];let v=null;a.popupItem?v=a.popupItem({item:V,index:F}):v=mr(r,V);const K={class:T(V,F),key:E(V,F),onClick:U(V,F)},j=o.h("view",K,[v]);D.push(j)}const x={class:b.value,style:N.value};return o.h("view",x,D)};return()=>{const D=[],x=Z();if(D.push(x),r.showQuickNavigation){const V=ee();D.push(V);const v=re();D.push(v)}const F={class:s.value};return o.h("view",F,D)}}}}const{create:ef,componentName:tf,scope:nf}=ie("tabs-bar"),co=ef(Qc(tf,nf,Fc,!1)),br=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function lf(e,t,l=!1){return{props:{...of},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),s={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),o.triggerRef(i)},remove:h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex($=>$.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};o.provide(br,s);const u=h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&(i.value[g].loaded=!0,o.triggerRef(i))};o.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const d=o.ref(null),f=o.ref(null),c=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const N=o.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const $=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*s.tabWidth.value}px, 0)`)),b&&(b=!1,h.transition="transform 0s ease"),h});let m=null;return o.onMounted(()=>{if(!d.value)return;const h=()=>{const g=Yt(d.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(d.value)),h()}),o.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},g=o.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return o.h("view",$,[g])}}}}const{create:rf,componentName:af,scope:sf}=ie("tabs-container"),fo=rf(lf(af,sf,!1)),uf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function cf(e,t,l){return{props:{...uf},setup(n,{emit:r,slots:a}){const i=o.inject(br);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=o.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=o.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},b=n.emptyIcon??l,N=o.h(b,c),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=o.h("view",m,[h]),$={class:`${e}__empty`},w=o.h("view",$,[N,g]);d.push(w)}const f={class:`${e}`,style:s.value};return o.h("view",f,d)}}}}const{create:ff,componentName:df,scope:hf}=ie("tabs-pane"),ho=ff(cf(df,hf,uo)),gf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function mf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function yf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function go(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Sr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function xr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function mo(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class pf{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function bf(){const e=o.getCurrentInstance();return new pf(e.proxy)}function vf(e,t,l,n){return{props:{...gf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=bf(),d=o.ref([]),f=o.computed(()=>d.value.filter(x=>yf(r,x)!==!1)),c=o.ref(-1),b=()=>{const x=r.modelValue,F=f.value.findIndex(V=>vr(r,V)===x);c.value!==F&&(c.value=F,r.scroll&&re(F,!1))};o.watch([()=>r.modelValue,f],()=>{b()});const N=x=>c.value===x,m=x=>{if(x<0&&x>=f.value.length)return!1;const F=f.value[x],v=(mo(r,F,x)??{}).status??go(r,F);return N(x)||v},h=o.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),g=o.computed(()=>({})),$=(x,F,V,v,K)=>{const j={[`${s}__step`]:!0};return K&&(j[`${K}`]=!0),j[`${w.value}`]=!0,v&&(j["is-doit"]=!0),x===c.value?j["is-active"]=!0:F==="done"?j["is-done"]=!0:F==="error"?j["is-error"]=!0:F==="half"?j["is-half"]=!0:V?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=o.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),k=(x,F={})=>{const V={...F};return w.value==="start"&&x===f.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(x,F)=>{let V={};if(F<f.value.length-1){const v=F+1;m(F)&&m(v)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},_=x=>f.value.length-1===x,A=(x,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>c.value||c.value===F)return;const V=c.value,v=F;c.value=F,r.scroll&&re(F,!1);const K=vr(r,x);i("update:modelValue",K);const j={fromIndex:V,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,j)},L=o.ref(!0),B=async(x,F)=>{try{const V=await u.load("stesbar",x,F);Array.isArray(V)&&(d.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([x,F])=>{x&&B(x,F)},{immediate:!0});const I=(x,F,V,v,K)=>{let j=null;if(a.icon)j=a.icon({item:x,index:F,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const P=r.icon??l;j=o.h(P,M)}else{const M=V??`${F+1}`;j=o.h("span",{},[M])}const z={class:"fox-steps-bar__icon",onClick:()=>{K||A(x,F)}};return o.h("view",z,[j])},E=(x,F,V)=>{const v=o.h("i",{class:"fox-steps-bar__line-inner",style:q(x,F)});return o.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const v=r.markIcon??n;x=o.h(v,V)}return o.h("view",{class:"fox-steps-bar__mark"},[x])},H=(x,F,V,v,K)=>{const j=[];if(!_(F)){const P=E(x,F);j.push(P)}const z=I(x,F,V,v,K);j.push(z);const M={class:"fox-steps-bar__head"};return o.h("view",M,j)},C=(x,F,V,v)=>{let K=null;a.main?K=a.main({item:x,index:F,status:V}):K=mf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{v||A(x,F)}};return o.h("view",j,[K])},O=(x,F,V)=>{let v=null;if(a.sub){v=a.sub({item:x,index:F,status:V});const K={class:"fox-steps-bar__sub"};return o.h("view",K,[v])}return null},R=(x,F)=>{const V=mo(r,x,F)??{},v=V.status??go(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const j=V.label??xr(r,x),z=[],M=I(x,F,j,v,K);M&&z.push(M);const P=C(x,F,v,K);if(P&&z.push(P),!_(F)){const te=E(x,F);te&&z.push(te)}const Y=o.h("view",{class:"fox-steps-bar__head"},z),Q=V.class,ne=V.style??{};let S=Sr(r,x);V.doit===!0&&(S=!0);const G={ref:ee(F),class:$(F,v,K,S,Q),style:k(F,ne)};return o.h("view",G,[Y])},U=(x,F)=>{const V=mo(r,x,F)??{},v=V.status??go(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const j=V.label??xr(r,x),z=[],M=r.layout;for(let S of M)if(S==="head"){const G=H(x,F,j,v,K);z.push(G)}else if(S==="main"){const G=C(x,F,v,K);z.push(G)}else if(S==="sub"){const G=O(x,F,v);z.push(G)}else if(S==="mark"){const G=T();z.push(G)}const P=V.class,Y=V.style??{};let Q=Sr(r,x);V.doit===!0&&(Q=!0);const ne={ref:ee(F),class:$(F,v,K,Q,P),style:k(F,Y)};return o.h("view",ne,z)},W=o.ref(),J=o.ref([]),Z=(x,F)=>{J.value[F]=x},ee=x=>F=>{Z(F,x)},re=(x,F)=>{const V=W.value,v=J.value;if(!V||!v||!v[x])return;const K=v[x];let j=0;r.direction==="vertical"?j=K.offsetTop-(V.offsetHeight-K.offsetHeight)/2:j=K.offsetLeft-(V.offsetWidth-K.offsetWidth)/2,D(V,j,F?0:.3,r.direction)},D=(x,F,V,v)=>{let K=0;const j=v==="horizontal"?x.scrollLeft:x.scrollTop,z=V===0?1:Math.round(V*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(F-j)/z:x.scrollTop+=(F-j)/z,++K<z&&bn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const v=f.value[V],K=R(v,V);x.push(K)}else for(let V=0;V<f.value.length;V++){const v=f.value[V],K=U(v,V);x.push(K)}const F={ref:W,class:h.value,style:g.value};return o.h("view",F,x)}}}}const{componentName:wf,create:Sf,scope:xf}=ie("steps-bar"),yo=Sf(vf(wf,xf,Hc,Gc)),Tf=Symbol.for("InnerPageScopeKey"),$f=Symbol.for("PageWrapperKey");function Cf(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(l,n){o.provide(Tf,!0);const r={};o.provide($f,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return o.h(p.ElDialog,d,f)}}}}const{componentName:Rh,create:Nf,scope:Ah}=ie("dialog-item"),po=Nf(Cf());let It=0;const Tr="fox-overflow-hidden",$r=()=>tt?document.body:{classList:[]},Ef=e=>[()=>{if(e())try{!It&&$r().classList.add(Tr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&$r().classList.remove(Tr)}catch{}}],kf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:If,create:Of}=ie("overlay"),Vf=Of({props:{...kf},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=Ef(()=>e.lockScroll),r=o.computed(()=>({[If]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,s=>{s?l():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Df(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const on=Me(Vf,[["render",Df]]),Ff={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Cr=2e3;let Nr=Cr;const Rf=(e,t)=>({components:t,props:{...Ff},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{l.zIndex!==Cr&&(Nr=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Nr,l.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},b=h=>{n("click-overlay",h),l.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},m=h=>{n("closed",h)};return o.watch(()=>l.visible,h=>{l.visible?u():d()}),o.watch(()=>l.closeable,h=>{r.closed=h}),{...o.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:b,onOpened:N,onClosed:m}}}),{componentName:Af,create:Lf}=ie("popup"),Mf=Lf(Rf(Af,{FoxOverLay:on,Close:qc}));function Bf(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),s=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(s)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bo=Me(Mf,[["render",Bf]]),{create:_f}=ie("toast"),qf=_f({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,N=>{N&&i()});const u=o.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=fe(e.iconSize);return o.h(e.icon,{width:N,height:N,color:e.iconColor})},f=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Pf={key:1,class:"fox-toast-title"},jf=["innerHTML"];function zf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",Pf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,jf)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const vo=Me(qf,[["render",zf]]),Hf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Kf=(e,t,l)=>({props:{...Hf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["placeholder"]),u=o.reactive({active:!1}),d=o.computed(()=>({background:n.background})),f=o.computed(()=>({background:n.inputBackground})),c=I=>{let T=I.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),r("update:modelValue",T,I),r("change",T,I)},b=o.ref({}),N=I=>{let T=I.target.value;u.active=!0,b.value=n.focusStyle,r("focus",T,I)},m=I=>{setTimeout(()=>{u.active=!1},0);let T=I.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),b.value={},r("blur",T,I)},h=I=>{r("update:modelValue","",I),r("change","",I),r("clear","")},g=o.computed(()=>String(n.modelValue).length>0),$=o.computed(()=>{const I={};return g.value||(I.display="none"),I}),w=()=>{r("search",n.modelValue)},k=I=>{r("keyup-input",I),I.key.toLocaleUpperCase()==="ENTER"&&w()},q=I=>{r("click-input",I)},_=I=>{r("click-left-icon",n.modelValue,I)},A=o.computed(()=>({textAlign:n.inputAlign})),L=o.ref(null);o.onMounted(()=>{n.autofocus&&L.value.focus()});const B=()=>{const I=[];if(a.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},R=o.h("view",O,[a.leftin()]);I.push(R)}const E={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:N,onBlur:m,onkeyup:k},T=o.h("input",E);I.push(T);const H=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},R=a?.clear?.()??n.clearIcon??l,U=o.h("view",O,[o.h(R)]);H.push(U)}if(a.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=o.h("view",O,[a.rightin()]);H.push(R)}if(H.length>0){const O={class:`${e}__input-inner-right`},R=o.h("view",O,H);I.push(R)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...b.value}};return o.h("view",C,I)};return()=>{const I=[];if(n.label){const H={class:`${e}__search-label`},C=o.h("span",H,[n.label]);I.push(C)}if(a.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=o.h("view",H,[a.leftout()]);I.push(C)}const E=B();if(I.push(E),a.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=o.h("view",H,[a.rightout()]);I.push(C)}const T={class:`${e}`,style:d.value};return o.h("view",T,I)}}}),{componentName:Wf,create:Yf,scope:Gf}=ie("searchbar"),wo=Yf(Kf(Wf,Gf,Te.CircleClose)),Uf=/scroll|auto|overlay/i,Er=window;function Xf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Zf(e,t=Er){let l=e;for(;l&&l!==t&&Xf(l);){const{overflowY:n}=window.getComputedStyle(l);if(Uf.test(n))return l;l=l.parentNode}return t}function kr(e,t=Er){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=Zf(e.value,t))}),l}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Jf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Qf(e,t,l){return{props:{...Jf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=o.ref(),d=kr(u),f=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=o.computed(()=>({[e]:!0})),b=w=>w?w.offsetTop+b(w.offsetParent):0,N=()=>{let w=0,k=0,q="down";if(d.value==window){const _=Ir();u.value&&(w=b(u.value)+u.value.offsetHeight-_-window.innerHeight),k=_}else{const{scrollHeight:_,clientHeight:A,scrollTop:L}=d.value;w=_-A-L,k=L}return f.beforeScrollTop>k?q="up":q="down",f.beforeScrollTop=k,r("scroll-change",k),w<=n.threshold&&q=="down"},m=()=>{_o(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",m,n.useCapture)},g=()=>{d.value&&d.value.removeEventListener("scroll",m,n.useCapture)};o.onMounted(()=>{h(),n.immediate&&m()}),o.onUnmounted(()=>{g()});const $=o.ref(!1);return o.onActivated(()=>{$.value&&($.value=!1,h())}),o.onDeactivated(()=>{$.value=!0,g()}),o.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},k=o.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let B=a?.loading?.()??null;if(!B){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=o.h(l,O)}const H={class:"fox-infinite__bottom-box__text"},C=o.h("view",H,[s.loadText.value]);B=[T,C]}const I={class:"fox-infinite__bottom-box"},E=o.h("view",I,B);q.push(E)}else if(!n.hasMore){let B=a?.finished?.()??null;if(!B){const I={class:"fox-infinite__bottom-tips"};B=o.h("view",I,[s.loadMoreText.value]),q.push(B)}}const _={class:"fox-infinite__bottom"},A=o.h("view",_,q),L={class:c.value,ref:u};return o.h("view",L,[k,A])}}}}const{componentName:ed,create:td,scope:nd}=ie("infinite-loading"),So=td(Qf(ed,nd,uo)),Or=10;function Vr(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function xo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function To(){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",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Vr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function od(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),s=o.ref(0),u=o.ref(0),d=o.ref(0),f=o.ref(""),c=()=>f.value==="vertical",b=()=>f.value==="horizontal",N=()=>{i.value=0,s.value=0,u.value=0,d.value=0,f.value="",l.value=0};return{move:g=>{if(g.touches){const k=g.touches[0];i.value=k.clientX-e.value,s.value=k.clientY-t.value,r.value=k.clientX,a.value=k.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-l.value,f.value||(f.value=Vr(u.value,d.value))},start:g=>{if(N(),g.touches){const k=g.touches[0];e.value=k.clientX,t.value=k.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}l.value=Date.now()},reset:N,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:b}}const ld={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},rd=(e,t,l)=>({props:{...ld},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=To(),d=o.ref(),f=kr(d),c=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=o.computed(()=>({[e]:!0})),N=o.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=o.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),g=L=>{const B=+(n.pullDistance||n.headHeight);let I=L;return L>B&&(L<B*2?I=(L+B)/2:I=B+L/4),Math.round(I)},$=(L,B)=>{const I=+(n.pullDistance||n.headHeight);c.distance=L,B?c.status="loading":L===0?c.status="normal":L<I?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",k=()=>f.value==window?Ir()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(k()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},_=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(g(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return o.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let B=null;if(c.status==="loading"){if(B=a?.loading?.()??null,!B){const U={class:["fox-pull-refresh-container-topbox-icon"]};B=o.h(l,U)}}else c.status==="pulling"?B=a?.pulling?.()??null:c.status==="loosing"&&(B=a?.loosing?.()??null);B&&L.push(B);const I={class:["fox-pull-refresh-container-topbox-text"]},E=o.h("dive",I,[N.value]);L.push(E);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},H=o.h("div",T,L),C={class:"fox-pull-refresh-container",style:m.value},O=o.h("div",C,[H,a?.default?.()]),R={ref:d,class:b.value};return xo()?Object.assign(R,{onTouchstart:q,onTouchmove:_,onTouchend:A}):Object.assign(R,{onMousedown:q,onMousemove:_,onMouseup:A}),o.h("div",R,[O])}}}),{componentName:ad,create:id,scope:sd}=ie("pull-refresh"),$o=id(rd(ad,sd,uo));function ud(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(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),u=o.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=o.computed(()=>l.color?{color:l.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=o.h(l.icon??"div",h)}const c={class:u.value,style:d.value},b=n.default?n.default():[],N=o.h("div",c,b),m={class:a.value};return l.textPosition==="right"?o.h("div",m,[f,N]):o.h("div",m,[N,f])}}}}const{componentName:cd,create:fd,scope:Lh}=ie("indicator"),Co=fd(ud(cd));function dd(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const hd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function gd(e,t,l,n=!1){return{props:{...hd},emits:["click"],setup(r,a){const i=o.ref(null),s=o.computed(()=>{const k={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(k[`${e}--${r.type??"default"}`]=!0),r.size&&(k[`${e}--${r.size}`]=!0),k}),u=o.computed(()=>{const k={},q=r.textColor??r.color;return q&&(k.color=q),k}),d=(k,q)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(k.indexOf(A)!==-1){const B=k.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=B,q.class["is-highlight"]=!0,_=o.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(k);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,_=o.h(r.tag,q))}return _},f=k=>{a.emit("click",k)};let c="";const b=()=>{const k=i.value;if(!k)return;const q=k.clientWidth;dd(k,_=>{const A=k.innerHTML??"";ge(A)||_<q||(c?l?.show(k,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=l?.show(k,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&l?.hide(c)};let m=null;const h=k=>{m||(m=setTimeout(()=>{b(),m=null},r.showAfter??0))},g=k=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const k=i.value;k&&(k.addEventListener("mouseover",h),k.addEventListener("mouseleave",g))},w=()=>{const k=i.value;k&&(k.removeEventListener("mouseover",h),k.removeEventListener("mouseleave",g))};return o.onMounted(()=>{!se(r.showOverflowTooltip)||!l||$()}),o.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!l||w()}),()=>{const k={onClick:f,class:s.value,style:u.value,ref:i};let q=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const B=a.slots.default();if(Array.isArray(B)&&B.length===1){const I=B[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const E=pe(r.digits),T=pe(r.decimalLength),H=se(r.autoPadding);let C=`${B[0].children}`,O=C.split("").reverse().join("");O=Rt(O,T,H,E,r.separator),C=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(C,k)),q||(k.innerHTML=C,q=o.h(r.tag,k))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const B=a.slots.default();if(Array.isArray(B)&&B.length===1){const I=B[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const E=`${B[0].children}`;q=d(E,k),q||(k.innerHTML=E,q=o.h(r.tag,k))}}}q||(q=o.h(r.tag,k,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const B={[`${e}__mark-wrap`]:!0};r.type&&(B[`${e}__mark-wrap--${r.type}`]=!0);const I={},E=r.color;E&&(I.color=E);const T={class:B,style:I};A=o.h("view",T,o.h(r.icon))}else if(a.slots.mark){const B={[`${e}__mark-wrap`]:!0};r.type&&(B[`${e}__mark-wrap--${r.type}`]=!0);const I={},E=r.color;E&&(I.color=E);const T={class:B,style:I};A=o.h("view",T,{default:a.slots.mark})}else{const B={[`${e}__mark`]:!0};r.type&&(B[`${e}__mark--${r.type??"default"}`]=!0);const I={},E=r.color;E&&(I["background-color"]=E);const T={class:B,style:I};A=o.h("view",T)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",L,[A,q])}}}}const{componentName:md,create:yd,scope:pd}=ie("text"),No=yd(gd(md,pd,Ve,!1)),bd={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:Te.ArrowUp}};function vd(e,t,l){return{props:{...bd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),i=de(n,"modelValue"),s=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=o.computed(()=>({[`${e}__text`]:!0})),d=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const h={class:u.value},g=o.h("span",h,[s.value]);c.push(g)}const b={class:d.value},N=l(n.icon,b);return N&&c.push(N),o.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:wd,create:Sd,scope:xd}=ie("more-button"),Eo=Sd(vd(wd,xd,(e,t)=>(e=e??Te.ArrowUp,o.h(p.ElIcon,t,{default:()=>[o.h(e)]}))));function Td(e){return e===window}const Dr=e=>{const t=o.unref(e);if(Td(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:$d,create:Cd,scope:Bh}=ie("tour"),Nd=Cd({components:{Close:Te.Close,ElPopover:p.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 l=$d,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:$,height:w,left:k,top:q}=r.value,_=e.steps[n.active].offset??m,A=[k+$/2,q+w/2],L=Number(h||$),B=Number(g||w);return{width:`${L+ +_.left+_.right}px`,height:`${B+_.top+_.bottom}px`,top:`${A[1]-B/2-+_.top}px`,left:`${A[0]-L/2-+_.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Dr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},N=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return o.onMounted(()=>{N(e.modelValue,e.current)}),o.watch(()=>e.modelValue,m=>{N(m)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),Ed={key:0,class:"fox-tour__content"},kd={key:0,class:"fox-tour__content-top"},Id={class:"fox-tour__content-inner"},Od={class:"fox-tour__content-bottom"},Vd={class:"fox-tour__content-bottom-init"},Dd={class:"fox-tour__content-bottom-operate"},Fd={key:1,class:"fox-tour__content fox-tour__content-tile"},Rd={class:"fox-tour__content-inner"};function Ad(e,t,l,n,r,a){const i=o.resolveComponent("Close"),s=o.resolveComponent("fox-button"),u=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(o.openBlock(),o.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Ed,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",kd,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",Id,o.toDisplayString(d.content),1),o.createElementVNode("div",Od,[o.createElementVNode("div",Vd,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Dd,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Fd,[o.createElementVNode("div",Rd,o.toDisplayString(d.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const ko=Me(Nd,[["render",Ad]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class Ld{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=xo()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=To(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fr(e,t){return new Ld(e,t)}var Rr;const Io=typeof window<"u";Io&&((Rr=window?.navigator)!=null&&Rr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Ar=e=>{const t=e;t.key==="Escape"&&ht.forEach(l=>l(t))},Md=e=>{o.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Ar),Io&&ht.push(e)}),o.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&Io&&document.removeEventListener("keydown",Ar)})},Oo="fox-focus-trap.focus-after-trapped",Vo="fox-focus-trap.focus-after-released",Bd="fox-focus-trap.focusout-prevented",Lr={cancelable:!0,bubbles:!1},_d={cancelable:!0,bubbles:!1},Mr="foxFocusAfterTrapped",Br="foxFocusAfterReleased",qd=Symbol("foxFocusTrap"),Do=o.ref(),ln=o.ref(0),Fo=o.ref(0);let rn=0;const _r=e=>{const t=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)t.push(l.currentNode);return t},Pd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qr=(e,t)=>{for(const l of e)if(!Pd(l,t))return l},jd=e=>{const t=_r(e),l=qr(t,e),n=qr(t.reverse(),e);return[l,n]},zd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&zd(e)&&t&&e.select()}};function Pr(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const Hd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Pr(e,n),e.unshift(n)},remove:n=>{e=Pr(e,n),e[0]?.resume?.()}}},Kd=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==l)return},jr=Hd(),Wd=()=>ln.value>Fo.value,an=()=>{Do.value="pointer",ln.value=window.performance.now()},zr=()=>{Do.value="keyboard",ln.value=window.performance.now()},Yd=()=>(o.onMounted(()=>{rn===0&&(document.addEventListener("mousedown",an),document.addEventListener("touchstart",an),document.addEventListener("keydown",zr)),rn++}),o.onBeforeUnmount(()=>{rn--,rn<=0&&(document.removeEventListener("mousedown",an),document.removeEventListener("touchstart",an),document.removeEventListener("keydown",zr))}),{focusReason:Do,lastUserFocusTimestamp:ln,lastAutomatedFocusTimestamp:Fo}),sn=e=>new CustomEvent(Bd,{..._d,detail:e}),{componentName:_h,create:Gd,scope:qh}=ie("focus-trap"),Ud=Gd({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Mr,Br,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Yd();Md(h=>{se(e.trapped)&&!s.paused&&l("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:g,altKey:$,ctrlKey:w,metaKey:k,currentTarget:q,shiftKey:_}=h,{loop:A}=e,L=g==="Tab"&&!$&&!w&&!k,B=document.activeElement;if(L&&B){const I=q,[E,T]=jd(I);if(E&&T){if(!_&&B===T){const C=sn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(E,!0))}else if(_&&[E,I].includes(B)){const C=sn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(T,!0))}}else if(B===I){const C=sn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};o.provide(qd,{focusTrapRef:n,onKeydown:u}),o.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),o.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",b)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",b))});const d=h=>{l(Mr,h)},f=h=>l(Br,h),c=h=>{const g=o.unref(n);if(!g)return;const $=h.target,w=h.relatedTarget,k=$&&g.contains($);se(e.trapped)||w&&g.contains(w)||(r=w),k&&l("focusin",h),!s.paused&&se(e.trapped)&&(k?a=$:Je(a,!0))},b=h=>{const g=o.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!Tn($)&&!g.contains($)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=sn({focusReason:i.value});l("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&g.contains($)||l("focusout",h)}};async function N(){await o.nextTick();const h=o.unref(n);if(h){jr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Oo,Lr);h.addEventListener(Oo,d),h.dispatchEvent(w),w.defaultPrevented||o.nextTick(()=>{let k=e.focusStartEl;Go(k)||(Je(k),document.activeElement!==k&&(k="first")),k==="first"&&Kd(_r(h),!0),(document.activeElement===g||k==="container")&&Je(h)})}}}function m(){const h=o.unref(n);if(h){h.removeEventListener(Oo,d);const g=new CustomEvent(Vo,{...Lr,detail:{focusReason:i.value}});h.addEventListener(Vo,f),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Wd())&&Je(r??document.body,!0),h.removeEventListener(Vo,d),jr.remove(s)}}return o.onMounted(()=>{se(e.trapped)&&N(),o.watch(()=>e.trapped,h=>{se(h)?N():m()})}),o.onBeforeUnmount(()=>{se(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Xd,create:Zd,scope:jh}=ie("floating-window"),Jd=Symbol.for("InnerPageScopeKey"),Qd=Symbol.for("PageWrapperKey"),eh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},th=Zd({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Ud},props:{...eh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Xd,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,S=>{n.value=S});const a=o.computed(()=>n.value===!1?!1:!B.value),i=o.ref(e.left),s=o.ref(e.top),u=o.ref(e.right),d=o.ref(e.bottom),f=o.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=o.computed(()=>{const S={};return lt(i.value)?S.left="auto":S.left=De(i.value),lt(s.value)?S.top="auto":S.top=De(s.value),lt(u.value)?S.right="auto":S.right=De(u.value),lt(d.value)?S.bottom="auto":S.bottom=De(d.value),lt(e.zIndex)||(S["z-index"]=De(e.zIndex)),lt(A.value)||(S.height=A.value),lt(L.value)||(S.width=L.value),S}),b=o.computed(()=>e.closeIcon??Te.Close),N=o.computed(()=>e.collapseIcon??Te.ArrowUp),m=o.computed(()=>e.collapseText??""),h=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),g=o.computed(()=>e.expandText??e.title??"展开"),$=o.computed(()=>({[`${l}__collapse-text`]:!0})),w=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),k=o.ref(),q=o.ref(null),_=o.ref(null),A=o.computed(()=>De(e.height)||""),L=o.computed(()=>De(e.width)||""),B=o.ref(se(e.collapse)),I=(S,G=!0)=>{B.value!==S&&(B.value=S,S?x():F(),t("update:collapse",S),S&&typeof H.onHide=="function"?H.onHide():!S&&typeof H.onShow=="function"&&H.onShow())};o.watch(()=>e.collapse,S=>{I(S)});const E=()=>{T()},T=S=>{S=S??!B.value,I(S)};o.provide(Jd,!0);const H={setCollapse:I,setFixedNavVisible:S=>{ee.value=S}};o.provide(Qd,H);const C=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},O=o.ref(null),R=o.computed(()=>!e.fixedNavTeleport),U=o.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),W=o.ref(""),J=o.computed(()=>{const S={};return W.value?S.top=W.value:e.collapseTop&&(S.top=e.collapseTop),S}),Z=o.ref(B.value),ee=o.computed({set:S=>{Z.value=S},get:()=>n.value===!1?!1:Z.value});let re=null;const D=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),ee.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},F=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Fr(S=>{if(!k.value)return;const G=k.value;if(V(),e.origin==="left-top")i.value=G.offsetLeft,s.value=G.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,d.value=te-(G.offsetTop+G.offsetHeight),v.x=i.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(G.offsetLeft+G.offsetWidth),d.value=le-(G.offsetTop+G.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(G.offsetLeft+G.offsetWidth),s.value=G.offsetTop,v.x=u.value,v.y=s.value}},S=>{if(!k.value)return;const G=k.value;V(),e.origin==="left-top"?(i.value=v.x+S.x,s.value=v.y+S.y,G.style.left=De(i.value),G.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=v.x+S.x,d.value=v.y-S.y,G.style.left=De(i.value),G.style.bottom=De(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,G.style.right=De(u.value),G.style.bottom=De(d.value)):(u.value=v.x-S.x,s.value=v.y+S.y,G.style.right=De(u.value),G.style.top=De(s.value))}),M={x:0,y:0},Q=Fr(S=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},S=>{if(!O.value)return;const G=M.y+S.y;W.value=`${G}px`}),ne=()=>{if(k.value){const S=k.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=S}};return o.onMounted(()=>{if(e.draggable&&k.value){const S=[];q.value&&S.push(q.value),e.footerDraggable&&(ne(),_.value&&S.push(_.value)),z.open(S)}e.collapse===!0&&I(e.collapse,!1),O.value&&Q.open(O.value)}),o.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),O.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:b,onClose:C,dialogRef:k,headerRef:q,onClickToggle:E,collapseIcon:N,collapseText:m,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:ee,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:D,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),nh={ref:"headerRef",class:"fox-floating-window__header"},oh={class:"fox-floating-window__title"},lh={class:"fox-floating-window__tools"},rh={class:"fox-floating-window__body"},ah={class:"fox-floating-window__fixednav__text"};function ih(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),s=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",nh,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",oh,o.toDisplayString(e.title),1),o.createElementVNode("div",lh,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",rh,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",ah,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ro=Me(th,[["render",ih]]);function sh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return gl(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:zh,create:uh,scope:Hh}=ie("domain-provider"),Ao=uh(sh()),ch={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function fh(e,t){return{inheritAttrs:!1,props:ch,setup(l,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,N)=>{if(f===null){a.set(b,{visible:null,callback:N});return}r.has(b)&&f.unobserve(b),r.set(b,{visible:null,callback:N}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}r.has(b)&&(r.delete(b),f.unobserve(b))};let u=l.initialVisibleObserverSize;Za({acquire:()=>{const b=u>0;return u--,b},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const c=(b,N,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let $=!1;g.intersectionRatio>0&&($=!0);const w=r.get(g.target);if(w)try{if(l.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(k){console.error(k)}}},{root:b,rootMargin:N,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([b,N])=>{if(N||!b||f)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&c(m,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Kh,create:dh,scope:Wh}=ie("rolling-provider"),Lo=dh(fh()),hh=[On,Dn,Fn,Rn,Mn,we,qn,Pn,$t,jn,zn,Hn,Kn,Wn,Yn,Gn,Xn,Zn,Jn,Qn,nn,no,oo,lo,ro,ao,io,so,co,fo,ho,yo,po,on,bo,vo,wo,So,$o,Nt,en,Co,No,Eo,ko,Ro,Ao,Lo],gh=new ka(hh,[Va],"4.0.0");Object.defineProperty(y,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(y,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(y,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(y,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(y,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(y,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(y,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(y,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(y,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(y,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(y,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(y,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(y,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(y,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(y,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(y,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(y,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(y,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(y,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(y,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(y,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(y,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(y,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(y,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(y,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(y,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(y,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(y,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(y,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(y,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(y,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(y,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(y,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(y,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(y,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(y,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(y,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(y,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(y,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(y,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(y,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(y,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(y,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(y,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(y,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(y,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(y,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(y,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(y,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(y,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(y,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(y,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(y,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(y,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(y,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(y,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(y,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(y,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(y,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(y,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(y,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(y,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(y,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(y,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(y,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(y,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(y,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(y,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(y,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(y,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(y,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(y,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(y,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(y,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(y,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(y,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(y,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(y,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(y,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(y,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(y,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(y,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(y,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(y,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(y,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(y,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(y,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(y,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(y,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(y,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(y,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(y,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(y,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(y,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),y.AutocompleteItem=Zn,y.Broadcast=$n,y.BroadcastKey=be,y.CascaderItem=Xn,y.CheckboxItem=lo,y.Content=Rn,y.DataItemsKey=at,y.DateItem=Hn,y.DateUtils=Ae,y.DialogItem=po,y.Domain=jt,y.DomainKey=Le,y.DomainProvider=Ao,y.FloatingWindow=Ro,y.FooterBar=Fn,y.FoxAutocompleteItem=Zn,y.FoxCascaderItem=Xn,y.FoxCheckboxItem=lo,y.FoxContent=Rn,y.FoxDateItem=Hn,y.FoxDialogItem=po,y.FoxDomainProvider=Ao,y.FoxFloatingWindow=Ro,y.FoxFooterBar=Fn,y.FoxGroup=Mn,y.FoxGroupSetting=so,y.FoxHeaderBar=Dn,y.FoxHintText=$t,y.FoxIndicator=Co,y.FoxInfiniteLoading=So,y.FoxInputItem=jn,y.FoxInputNumberItem=Gn,y.FoxItem=we,y.FoxMapping=Nt,y.FoxMoneyItem=Yn,y.FoxMoreButton=Eo,y.FoxOverLay=on,y.FoxPage=On,y.FoxPopup=bo,y.FoxPrice=en,y.FoxPullRefresh=$o,y.FoxRadioItem=oo,y.FoxRateItem=ro,y.FoxRollingProvider=Lo,y.FoxRowItem=Pn,y.FoxSearchBar=wo,y.FoxSelectItem=zn,y.FoxSlotItem=qn,y.FoxStepsBar=yo,y.FoxSwitchItem=ao,y.FoxTableItem=no,y.FoxTableMappingColumn=Jn,y.FoxTableRadioColumn=Qn,y.FoxTableSetting=nn,y.FoxTabsBar=co,y.FoxTabsContainer=fo,y.FoxTabsPane=ho,y.FoxText=No,y.FoxTimeItem=Kn,y.FoxTimeSelectItem=Wn,y.FoxToast=vo,y.FoxTour=ko,y.FoxTreeSelectItem=io,y.Group=Mn,y.GroupSetting=so,y.HeaderBar=Dn,y.HintText=$t,y.Indicator=Co,y.InfiniteLoading=So,y.InputItem=jn,y.InputNumberItem=Gn,y.Item=we,y.Mapping=Nt,y.MoneyItem=Yn,y.MoreButton=Eo,y.OverLay=on,y.Page=On,y.Popup=bo,y.Price=en,y.PriorityPolicy=Re,y.PullRefresh=$o,y.RadioItem=oo,y.RateItem=ro,y.RollingProvider=Lo,y.RowItem=Pn,y.SearchBar=wo,y.SelectItem=zn,y.SlotItem=qn,y.StepsBar=yo,y.SwitchItem=ao,y.TableItem=no,y.TableMappingColumn=Jn,y.TableRadioColumn=Qn,y.TableSetting=nn,y.TabsBar=co,y.TabsContainer=fo,y.TabsPane=ho,y.Text=No,y.TimeItem=Kn,y.TimeSelectItem=Wn,y.Toast=vo,y.Tour=ko,y.TreeSelectItem=io,y.UniqueID=Il,y.ValidateSchema=fl,y.ValidateSchemaKey=Ke,y.cancelRaf=Wr,y.clearNonNumber=la,y.clone=Sn,y.compareTo=pn,y.createBroadcast=Bt,y.createValidateSchema=qt,y.debounce=St,y.debounceRef=ba,y.decimalLength=ll,y.default=gh,y.defineBroadcast=sa,y.defineConfigDomain=gl,y.defineDataItem=yl,y.defineDomain=Nn,y.defineItem=Se,y.definePageState=pl,y.deleteGlobalValidator=ha,y.disabledProperty=Oe,y.divide=yn,y.excludeProps=Ce,y.extend=et,y.floatData=ia,y.getGlobalValidateCheckEvents=sl,y.getGlobalValidateResetEvents=cl,y.getPageContentAreaHeight=Ht,y.getPageContentAreaWidth=Kt,y.getPageFooterAreaHeight=Tt,y.getPageHeaderAreaHeight=xt,y.getRootDomain=it,y.hasSymbol=Zo,y.includeProps=al,y.indexOf=ra,y.installRules=ml,y.integerLength=ol,y.isArray=Gr,y.isArrayLike=Qo,y.isBrowser=tt,y.isDate=Zr,y.isESModule=Qr,y.isEmptyString=ge,y.isEqual=He,y.isFunction=vn,y.isHidden=Mt,y.isInnerPage=Sa,y.isMap=Ur,y.isNil=Tn,y.isNumberString=nl,y.isObject=ze,y.isPlainObject=wn,y.isPromise=Uo,y.isRegExp=tl,y.isSet=Xr,y.isString=Go,y.isSubPage=xa,y.isSymbol=Jr,y.isTouch=xo,y.isWindow=Jo,y.lastIndexOf=aa,y.makeArray=oa,y.merge=el,y.multiply=Ko,y.negate=Wo,y.nextTick=ta,y.numberFormat=Rt,y.objectToString=Xo,y.once=va,y.overrideGlobalValidateHandler=fa,y.property=ke,y.raf=bn,y.readonlyProperty=Ie,y.setGlobalValidateCheckEvents=ga,y.setGlobalValidateHandler=ca,y.setGlobalValidateMessages=ya,y.setGlobalValidateResetEvents=ma,y.setGlobalValidator=da,y.throttle=hl,y.toBoolean=se,y.toNumber=pe,y.toPadding=qe,y.toPx=fe,y.toPxDesc=Ne,y.toTypeString=At,y.toValue=de,y.tryTimes=Pt,y.typeOf=Lt,y.unNumberFormat=Yo,y.updatePageState=En,y.useBroadcast=bt,y.useDomain=We,y.useExpose=xe,y.useInnerSize=Vn,y.usePageState=zt,y.usePosition=Nl,y.useRawTouch=To,y.useRect=Dr,y.useSize=Yt,y.useTouch=od,y.valueLength=pt,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Ft(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=fn($e(e),$e(t)),o==1&&(n==1?e=cn(e):t=cn(t));let r=ql(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(cn(r)):$e(r)}function cn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return ql(t,a)}function $e(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 fn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ql(e,t){[e,t]=fn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var me=(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))(me||{});function mt(e,t=0,o=me.HALF_EVEN){if(o===me.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 r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=mt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Pl(r[1],a,n,o)?(n?"-":"")+dn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Pl(s,i,n,o)&&(i=dn(i),i.length>t)?(n?"-":"")+dn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Pl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!o&&n===me.FLOOR||o&&n===me.CEILING)return!1;if(n===me.UP||o&&n===me.FLOOR||!o&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function dn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function hn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=yt(e),t=yt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,f="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(b+=parseInt(e[u[N]--])*parseInt(t[N]));b+=s,s=Math.floor(b/10),f=b%10+f,d--}return f=yt(Ur(f,a)),o==1&&(f="-"+f),f}function Ur(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 yt(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 gn(e,t,o=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 r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(e.replace(".","")))}let a=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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Ft(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(mt(s,o-2))}function mn(e,t){return e=e.toString(),t=t.toString(),t=yn(t),Ft(e,t)}function yn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function jl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),zl(e),zl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=mn(e,hn(t,mt(gn(e,t),0,me.FLOOR)));return o+n}function zl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Hl(e,t){let o=!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),o=!0),[e,t]=fn(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]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=me;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[o,n]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+$e(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return mt(t,o,n)}round(t=0,o=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Ft(t,o)}add(t){return new ce(Ft(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),mn(t,o)}subtract(t){return new ce(mn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),hn(t,o)}multiply(t){return new ce(hn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),gn(t,o,n)}divide(t,o){return new ce(gn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),jl(t,o)}modulus(t){return new ce(jl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Hl(t,o)}compareTo(t){return Hl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),yn(t)}negate(){return new ce(yn(this.value))}}function Kl(e,t){return ce.multiply(`${e}`,`${t}`)}function pn(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function bn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Wl(e){return ce.negate(e)}function Rt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",b=s.split("").reverse();for(let N=0;N<b.length;N++)c+=b[N]+((N+1)%n==0&&N+1!=b.length?r:"");u.length==0?f=`${i}${c.split("").reverse().join("")}`:f=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Yl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const vn=_l,Xr=Array.isArray,Zr=e=>At(e)==="[object Map]",Jr=e=>At(e)==="[object Set]",Qr=e=>e instanceof Date,wn=e=>typeof e=="function",Gl=e=>typeof e=="string",ea=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Ul=e=>ze(e)&&wn(e.then)&&wn(e.catch),Xl=Object.prototype.toString,At=e=>Xl.call(e),Sn=e=>At(e)==="[object Object]",Zl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ta(e){return e.__esModule||Zl&&e[Symbol.toStringTag]==="Module"}const na=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=et(r,d,u)}else u!==void 0&&(t[i]=u)}}return t}function xn(e,t,o=!1){if(!o)et(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Sn(i))continue;a=xn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Sn(i))continue;a=xn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Tn=na?Promise.resolve():null;function la(e,...t){Tn!==null?t&&t.length>0?Tn.then(()=>{e(t)}):Tn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const oa={"[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 Lt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):oa[o]||"object"}function Jl(e){return e&&typeof e=="object"&&"setInterval"in e}function Mt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Ql(e){let t=!!e&&"length"in e&&e.length,o=Lt(e);return o==="function"||Jl(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function eo(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ra(e,t=[]){let o=t;return e!=null&&(Ql(Object(e))?eo(o,typeof e=="string"?[e]:e):o.push(e)),o}function He(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Lt(e),n=Lt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],d=t[s];if(!He(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!He(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function $n(e){return e==null}function to(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function no(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function lo(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 o=t.indexOf(".");return o==-1?t.length:o}function oo(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function ro(e,t,o){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(o,"")}function aa(e,t=!0,o=!0){t?e=ro(e,".",/\./g):e=e.replace(/\./g,""),o?e=ro(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ia(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(He(e,o))return!0}):t.indexOf(e)}function sa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(He(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function pt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ao(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ce(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ua=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Cn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...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 r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):to(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Bt(e,t,o,n){const r=new Cn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ca(e,t,o){const n=o;if(n[be])return n[be];const r=l.inject(be,null),a=new Cn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,l.provide(be,a),l.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function bt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[be]??l.inject(be,null):l.inject(be,null)}const nt=e=>e.default??e;class fa{error(t,o){const n=o,r=bt(o);r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=bt(n),i=o.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?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let vt=new fa;function da(e){vt=e}function ha(e){vt?Object.assign(vt,e):vt=e}function ga(e,t){nt(Qe).setValidator(e,t)}function ma(e){nt(Qe).deleteValidator(e)}let io=["blur","clear"];function ya(e){io=e}function so(){return io}let uo=["focus","change","setValue"];function pa(e){uo=e}function co(){return uo}function ba(e){nt(Qe).messages(e)}function wt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(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 fo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(),this.scope.run(()=>{l.watchEffect(()=>{const o=_t(wt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=wt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=vt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,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,o,n=!1){n?nt(Qe).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=wt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=wt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=wt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=nt(Qe),u=new s(r),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function qt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new fo(t,o,e)}const Pt=Symbol.for("EventEmitterKey");class ho{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function St(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function go(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function va(e,t){const o=St((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function wa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function jt(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),at=Symbol("DataItemsKey");class zt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Sa=new zt;function it(){return Sa}function We(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Nn=Symbol("OriginalDateKey");function En(e,t,o=[],n){const r=l.getCurrentInstance(),a=r?.proxy;let i=l.inject(Le,null);i===null&&(i=it());const s=e||t.prop||t.name,u=new zt(s);u.parent=i;const d=h=>{a[Nn]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,c=()=>a[Nn]??null,b=h=>{const g={};et(!0,g,l.toRaw(h)),a[Nn]=g};l.isReactive(t)||typeof t=="function"?l.watch(t,h=>{u.merge(h,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&b(t.modelValue),a[Le]=u,l.provide(Le,u);let N=null,m=null;if(r!==null){const h=l.inject(be,null);N=Bt(a,h,s,n),u.broadcast=N,a[be]=N,l.provide(be,N),a.broadcast=($,w,...k)=>Reflect.apply(N.emit,N,[$,w,...k]);const g=l.inject(Ke,null);m=qt(a,g,{componentName:""}),u.validateSchema=m,a[Ke]=m,l.provide(Ke,m),a[at]=new Map,a.validate=($=!0)=>{const w=[];let k=null;const P={deep:!1};if($===!0)k={name:"*"};else if(Array.isArray($)&&$.length>0){const _=$;k={name:A=>A?_.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const _=$;if(Object.assign(P,_),Array.isArray(_.include)&&_.include.length>0){const A=_.include;k={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const A=_.exclude;k={name:L=>L?A.indexOf(L)===-1:!1}}else k={name:"*"}}if(k){const _=N?.emitToChildren(k,"validate",P);_&&Reflect.apply([].push,w,_)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(_=>{let A=[];return _.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,k=!1)=>{if(k===!0){Reflect.ownKeys($).forEach(_=>{let A=String(_);const M=po(u,A,{componentName:"",fieldName:A,pureDataValidate:!0},N,m);a[at].set(A,M);const I=$[A];I&&M.validateSchema.setRule(I)});return}if(w){const P=Reflect.ownKeys($),_={name:A=>P.includes(A)};N?.emitToChildren(_,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const k=$;w={name:P=>P?k.indexOf(P)!==-1:!1}}else if($!=null&&typeof $=="object"){const k=$;if(Array.isArray(k.include)&&k.include.length>0){const P=k.include;w={name:_=>_?P.indexOf(_)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const P=k.exclude;w={name:_=>_?P.indexOf(_)===-1:!1}}else w={name:"*"}}w&&N?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const k={};if(et(!0,k,c()??{}),Array.isArray($))$.forEach(P=>{w[P]=k[P]});else if($&&Array.isArray($.include))($.include??[]).forEach(_=>{w[_]=k[_]});else if($&&Array.isArray($.exclude)){let P=$.exclude??[];Reflect.ownKeys(k).forEach(_=>{P.includes(_)||(w[_]=k[_])})}else Object.assign(w,k);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===s?d($):N?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(()=>{u.destroy(),a[Le]=void 0,a[at]&&(a[at].clear(),a[at]=void 0),N!==null&&(N.destroy(),a[be]=void 0),m!==null&&(m.destroy(),a[Ke]=void 0)}),u}function mo(e,t,o=[]){const r=l.getCurrentInstance()?.proxy;let a=l.inject(Le,null);a===null&&(a=it());const i=e||t.prop||t.name,s=new zt(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Le]=s,l.provide(Le,s),l.onUnmounted(()=>{s.destroy(),r[Le]=void 0}),s}function yo(e,t,o){const r=We(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(be,null),s=Bt(r,i,a,o);r[be]=s,l.provide(be,s),r.broadcast=(m,h,...g)=>Reflect.apply(s.emit,s,[m,h,...g]);const u=l.inject(Ke,null);e.fieldName=e.fieldName??a;const d=qt(r,u,e);r[Ke]=d,l.provide(Ke,d),yo(r,d,a),r.validate=(m=null)=>{const h=[];let g=!1,$=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)$=!0,g=!0;else if(m&&typeof m=="object"){const w=m,k=w.ignoreDisabled??!0,P=w.ignoreReadonly??!0,_=w.ignoreHidden??!0;k===!0&&e.disabled===!0||P===!0&&e.readonly===!0||_===!0&&Mt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),$=!0;if($){const w=d?.validate();h.push(w)}if(g){let w=null;const k={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const P=m;w={name:_=>_?P.indexOf(_)!==-1:!1}}else if(m!=null&&typeof m=="object"){const P=m;if(Object.assign(k,P),Array.isArray(P.include)&&P.include.length>0){const _=P.include;w={name:A=>A?_.indexOf(A)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const _=P.exclude;w={name:A=>A?_.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const P=s.emitToChildren(w,"validate",k);Reflect.apply([].push,h,P)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let k=[];return w.forEach(P=>{P.pass===!1&&Array.isArray(P.errors)&&(k=[...k,...P.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>d?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&d?.setRule(g),h){const $={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren($,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:$=>$?g.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const $=g.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new ho(r);r[Pt]=f;const c=St((m="validate")=>{m==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:so()).forEach(m=>{f.on(m,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:co()).forEach(m=>{f.on(m,h=>{c("reset")})}),l.onUnmounted(()=>{s.destroy(),r[be]=void 0,d.destroy(),r[Ke]=void 0,f.destroy(),r[Pt]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(m,...h)=>{Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{Reflect.apply(f.off,f,[h])}}}function po(e,t,o,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};const u=qt({},r,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,N=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)N=!0,b=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),N=!0,b=m.deep??!1}else typeof f=="boolean"&&(b=f),N=!0;if(N){const m=u?.validate();c.push(m)}if(b){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:$=>$?g.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const $=g.include;m={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;m={name:w=>w?$.indexOf(w)===-1:!1}}else m={name:"*"}}if(m){const g=d.emitToChildren(m,"validate",h);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[i];c&&u?.setRule(c)};const d=Bt(null,n,i,a);return{broadcast:d,validateSchema:u}}function bo(){const t=l.getCurrentInstance()?.proxy,o=new ho(t);return t[Pt]=o,l.onUnmounted(()=>{o.destroy(),t[Pt]=void 0}),{emitEvent:(n,...r)=>{Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{Reflect.apply(o.off,o,[r])}}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function kn(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=fe(o.headerHeight??t.headerHeight??-1),e.headerPadding=qe(o.headerPadding??t.headerPadding),e.footerHeight=fe(o.footerHeight??t.footerHeight??-1),e.footerPadding=qe(o.footerPadding??t.footerPadding),e.contentPadding=qe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(i,a)-fe(s,a),e.width=fe(o.width??t.width??0,r)}}function vo(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;kn(n,a,t,!0,i,s,u,d);const f=l.reactive(n),c=e.getForParent(Xe);c&&(n.height=Kt(e,c),n.width=Wt(e,c),l.watch([()=>Kt(e,c),()=>Wt(e,c)],([N,m])=>{f.height=N,f.width=m}));const b=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,m,h=-1,g=-1,$=0,w=0])=>{kn(f,m,t,b,h,g,$,w)}),e.set(Xe,f),f}function Ht(e){return e.get(Xe)}function xt(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Tt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Kt(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=xt(e,t),n=Tt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Wt(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function xa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ta(e){return!!e.getForParent(Xe)}var Re=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Re||{});function In(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,o=1,n){const r=We();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(In(u,n))return u}const i=e.value;return In(i,n)?i:null}):l.computed(()=>{const a=e.value;return In(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(o){return se(o)})}function Oe(e){return ke(e,"disabled",0,function(o){return se(o)})}function de(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const wo=new Map,Yt=new Map;let On=null;function $a(e){On=e}function So(e,t,o){if(o){let n=Yt.get(o);n||(n=new Map,Yt.set(o,n)),n.set(e,t)}else wo.set(e,t)}function Be(e,t,o){!o&&On&&(o=On(e)??void 0);let n=null;if(o){let r=Yt.get(o);r&&(n=r.get(t))}return n||(n=wo.get(t)),n}function Ca(e,t){for(let o in e){const n=e[o];So(o,n,t)}}function Na(e){Yt.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function ka(e=0,t=0){if(tt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-fe(e,n)-fe(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ia{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=go(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Ea(),t.safeAreaInset),i=ka(n,r),s=et({},i.pageLayout,t.pageLayout);o=o??it(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){$a(t)}setAPI(t,o,n){So(t,o,n)}getAPI(t,o,n){return Be(t,o,n)}batchSetAPI(t,o){Ca(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return it()}}const Oa=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Va=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Da=e=>{Oa.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Va.forEach(t=>{e.use(t)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function xe(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,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}},xo={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}},To={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!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},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},$o=[];for(const e in To)$o.push(e);const Fa=Symbol.for("InnerPageScopeKey"),Ra={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Aa=(e,t)=>({inheritAttrs:!0,props:{...ve,...xo,...Ra},setup(o,{slots:n}){const r=En(o.name,o),a=l.inject(Fa,!1);if(r){const f=vo(r,o);xe({getPageContentHeight:()=>Kt(r,f),getPageContentWidth:()=>Wt(r,f),getPageHeaderHeight:()=>xt(r,f),getPageFooterHeight:()=>Tt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[b,N])=>{if(f&&b){const m=l.toRaw(b),h=l.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const m=l.toRaw(N),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:La,create:Ma,scope:ph}=ie("page"),Vn=Ma(Aa(La));function Gt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Dn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ba=(e,t,o,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},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=We(),s=i?Ht(i):null;s&&(s.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,b=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=qe(r.padding??s.headerPadding);return Object.assign(E,T),c&&(s.headerHeight=c),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(T.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(c&&(E.height=c),r.padding){const T=qe(r.padding);Object.assign(E,T)}return E}),N=l.ref(null),m=()=>{if(s&&N.value&&!Mt(N.value)){if(!n){const E=Gt(N.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(jt(m,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(N.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const E={};return b.value.height!==null&&b.value.height!==void 0&&(E.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(E.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(E.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(E.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(E.paddingBottom=`${b.value.bottom}px`),E}),$=l.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function k(){a.emit("click-title")}function P(){a.emit("click-right")}function _(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const T=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);E.push(T)}else if(r.leftIcon){const T=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);E.push(T)}if(r.leftText){const T=l.h("view",{class:"left-text",onClick:w},[r.leftText]);E.push(T)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},L=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const T=l.h("view",{class:"right-text",onClick:_},[r.rightText]);E.push(T)}if(a.slots.rightIcon){const T=l.h("view",{class:"right-icon",onClick:P},[a.slots.rightIcon()]);E.push(T)}else if(r.rightIcon){const T=l.h("view",{class:"right-icon",onClick:P},[l.h(r.rightIcon)]);E.push(T)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},M=()=>{if(!r.titleShow)return null;const E=[],T=a.slots.default?a.slots.default():null;if(T)E.push(T);else{if(r.title){const H=l.h("view",{class:"title-text"},[r.title]);E.push(H)}if(a.slots.titleIcon){const H=l.h("view",{class:"title-icon",onClick:k},[a.slots.titleIcon()]);E.push(H)}else if(r.titleIcon){const H=l.h("view",{class:"title-icon",onClick:k},[l.h(r.titleIcon)]);E.push(H)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},I=()=>{const E=[],T=a.slots.bottom?a.slots.bottom():null;return T&&E.push(T),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!$.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const H=[],C=A();C&&H.push(C);const O=M();O&&H.push(O);const R=L();if(R&&H.push(R),H.length>0){const W=l.h("view",{class:f.value},H);E.push(W)}const U=I();U&&E.push(U)}if(E.length===0)return null;const T={class:d.value,style:g.value,ref:N};return l.h("view",T,E)}}}),{componentName:_a,create:qa,scope:Pa}=ie("header-bar"),Fn=qa(Ba(_a,Pa,Te.ArrowLeft));function ja(e,t,o=!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,r){const a=We(),i=a?Ht(a):null,s=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?fe(n.height):null,d=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=qe(n.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=qe(n.padding);Object.assign(m,h)}return m}),f=l.ref(null),c=()=>{if(i&&f.value&&!Mt(f.value)){if(!o){const m=Gt(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;l.onMounted(()=>{i&&(jt(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const N=l.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=Ne(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=Ne(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=Ne(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=Ne(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=Ne(d.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:N.value};return l.h("view",h,m)}}}}const{componentName:za,create:Ha,scope:bh}=ie("footer-bar"),Rn=Ha(ja(za));function Ka(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=We(),r=l.computed(()=>({[e]:!0})),a=n?Ht(n):null,i=l.computed(()=>{const d={};if(n&&a){if(o.padding){const N=qe(o.padding);Object.assign(a.contentPadding,N)}const f=xt(n,a),c=Tt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,d.height=b,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=qe(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),s=l.ref(null),u=()=>{if(a&&s.value){const d=Dn(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>xt(n),()=>Tt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Wa,create:Ya,scope:vh}=ie("content"),Ga=Ya(Ka(Wa));function Ua(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},An=Me(Ga,[["render",Ua]]),st="GroupStateKey",Co=Symbol.for("GroupScopeKey");function Ut(){return l.inject(Co,!1)}function Xt(e=!0){l.provide(Co,e)}function Xa(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];$n(r)||(e[n]=r)})}function Za(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Xa(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function Ln(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const f=fe(a),c=fe(i);s||(s=d.type??"grid");const b=()=>{const N=t===""||t===-1,m=fe(t);let h=pe(o);const g=fe(n);if(!N){let k=(m-(h-1)*g)/h;for(;c!==-1&&k>c;)h++,k=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&k<f;)h--,k=(m-(h-1)*g)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==g&&(w.value.gutter=g,$=!0),w.value.type!==s&&(w.value.type=s,$=!0),$&&l.triggerRef(w)};if(r)b();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&b()},50)}}function Zt(e,t=!1){let o;return t?o=e.getForParent(st):o=e.get(st),o.layout}function Jt(e,t=!1){let o;return t?o=e.getForParent(st):o=e.get(st),o.order}function No(e,t=1){if(t==="stretch")return-1;const o=pe(t);return o===-1?100:100*o/e}function Qt(e,t,o=1,n=0,r){const a={};let i=0;r?i=fe(r):i=No(t.column,o),i>0&&(a.width=`${i}%`);const s=No(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function en(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=pe(o);if(r===-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(r>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 a=pe(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Eo=Symbol("RollingStateKey");function Ja(e){l.provide(Eo,e)}function Qa(){return l.inject(Eo,null)}function Mn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ei(e){let t=Mn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Mn(o),document.body.removeChild(o)}return t}function ti(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ni={...ve,...xo,...To};function li(e,t,o){return{props:ni,emits:["update:collapse"],setup(n,r){const a=En(n.name,n,$o),i=Za(a,{type:n.type}),s=Ut();Xt(!0);const u=n.rollingDisplay?Qa():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>s&&a?Zt(a,!0).value:null),b=l.getCurrentInstance(),N=(q,Y=!1)=>{const Q=b?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(q,!0,Y)};l.watch([()=>n.rules,()=>n.pureDataRules],([q,Y],[Q,ne])=>{if(q&&Q){const S=l.toRaw(Q),G=l.toRaw(q),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),N(G)}if(Y&&ne){const S=l.toRaw(ne),G=l.toRaw(Y),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),N(G,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const q={};q.height=R.value;const Y=s?Jt(a,!0):null;if(c.value&&Y){if(c.value.type==="grid"){const Q=en(Y,c.value,n.span,n.offset);Object.assign(q,Q)}else if(c.value.type==="flow"){const Q=Qt(Y,c.value,n.span,n.offset,n.width);Object.assign(q,Q)}}else if(n.width){const Q=Ne(n.width);q.width=Q}return q}),g=l.computed(()=>{const q=i.layout.value.type;return q==="grid"||q==="flow"?{[`${m}--${q}`]:!0,[`${m}--${q}-justify-${n.justify}`]:!0,[`${m}--${q}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${q}`]:!0,[`${m}--gutter`]:!0}}),$=l.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=ti(M.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),w=l.toRef(n,"gutter"),k=l.toRef(n,"column"),P=l.computed(()=>s||f.value?!0:se(n.isWrap)),_=[],A=q=>{_.push(q)},L=()=>{let q=_.length;_.splice(0,q)},M=l.ref(-1),I=q=>{const Y=Dn(q).width;Y>0&&Y!==M.value&&(M.value=Y)};Ln(a,M.value,k.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,k,w],([q,Y,Q])=>{i.order.index=0,Ln(a,q,Y,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>U.value?n.expandText??"":n.collapseText??""),T=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),C=l.ref(),O=l.ref(),R=l.computed(()=>W.value||Ne(n.height)||""),U=l.ref(!1),W=l.ref(""),J=l.ref(!1);let Z=-1;const ee=(q,Y=!0)=>{const Q=C.value;if(Q&&U.value!==q){if(Z=Z===-1?ei(Q):Z,J.value=!0,Y)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",q||(W.value="",J.value=!1)},q){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${Z}px`,l.nextTick(()=>{W.value=`${ne}px`})}else W.value=`${Z}px`;else if(q){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${ne}px`}else J.value=!1,W.value=`${Z}px`;U.value=q,r.emit("update:collapse",q)}};l.watch(()=>n.collapse,q=>{ee(q)});const re=()=>{D()},D=q=>{q=q??!U.value,ee(q)};xe({toggleCollapse:D,doLayout:()=>{_[0]&&(I(_[0]),Ln(a,M.value,k.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let F=null,V=!0;const v=q=>{if(n.rules){const Y=l.toRaw(n.rules);N(Y)}if(n.pureDataRules){const Y=l.toRaw(n.pureDataRules);N(Y,!0)}if(tt&&(q&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(_)&&_.length>0)){const Y=_[0];I(Y),window.ResizeObserver&&(F=new window.ResizeObserver(()=>{I(Y)}),F.observe(Y))}},K=()=>{F?.disconnect(),F=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(v(V),V=!1),f.value&&u){let q=null,Y=u.initialHeight;u.observe(C.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(W.value=""),q=setTimeout(()=>{q=null,d.value!==!1&&(v(V),V=!1)},100);else{if(q!==null&&clearTimeout(q),d.value=!1,!U.value)if(V)W.value=u.initialHeight;else{let ne=Mn(C.value);ne<=0?W.value=Y:(W.value=`${ne}px`,Y=W.value)}V||K()}})}}),l.onUnmounted(()=>{F?.disconnect(),u&&u.unobserve(C.value)});const j=(q="right")=>{const Y=[];if(E.value){const S={class:T.value},G=l.h("span",S,[E.value]);Y.push(G)}const Q={class:H.value},ne=o(n.collapseIcon,Q);return ne&&Y.push(ne),Y.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:re},Y):null},B=(q,Y,Q,ne)=>{const S={...g.value};return Y===0&&(S[`${m}__first`]=!0),Q>=ne-1&&(S[`${m}__last`]=!0),l.h("div",{ref:A,key:`${Y}`,class:S,style:$.value},q)};return()=>{if(f.value&&d.value!==!0){const S=n.tag||"div";return l.h(S,{ref:C,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const q=[];let Y=0;if(r.slots.header){const S={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},G=l.h("div",S,[r.slots.header()]);q.push(G)}else{const S=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=j("left");te&&S.push(te)}if(n.title||r.slots.title){if(n.showMark){const te={class:{[`${m}__header-mark`]:!0}};n.markColor&&(te.style={background:n.markColor});const oe=l.h("div",te);S.push(oe)}if(r.slots.title){const te=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);S.push(te)}else if(n.title){const te=l.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);S.push(te)}}if(r.slots.toolbar&&S.push(r.slots.toolbar()),!G&&n.showCollapse){const te=j("right");te&&S.push(te)}if(S.length>0){const te={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},oe=l.h("div",te,S);q.push(oe)}}L();const Q=r.slots.default?r.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=B(Q,Y++,0,Q.length);q.push(S)}else if(ne==="flow"){const S=B(Q,Y++,0,Q.length);q.push(S)}else for(let S=0;S<Q.length;S++){const G=Q[S],te=B([G],Y++,S,Q.length);q.push(te)}if(P.value){const S=n.tag||"div";return l.h(S,{ref:C,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[q])}else return q}}}}const{componentName:oi,create:ri,scope:ai}=ie("group"),Bn=ri(li(oi,ai,(e,t)=>(e=e??Te.ArrowUp,l.h(p.ElIcon,t,{default:()=>[l.h(e)]}))));function ii(e){return e===window}const si=/matrix\((.+)\)/,ko=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ii(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=si.exec(d);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class ui{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ci{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new ui,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Io=new ci,Oo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:fi,create:di}=ie("price"),hi=di({props:{...Oo},setup(e){const t=l.computed(()=>({[fi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>pt(e.price)==0?"":Rt(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),gi=["innerHTML"],mi=["innerHTML"];function yi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,mi)):l.createCommentVNode("",!0)],2)}const tn=Me(hi,[["render",yi]]),{componentName:_n,create:pi}=ie("hint-text"),bi=pi({components:{Price:tn},props:{...Oo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),d=(T,H,C,O,R,U)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=T.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},D=[];for(let x=0;x<ee.length;x++){const F=ee[x];if(D[0]=F,Z[1]&&(D[1]=Z[1]),F==="top"){const V=H.y-U-e.arrowSize-e.offset;if(V>=0){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+C-R:v=H.x+C/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="bottom"){const V=H.y+O+e.arrowSize+e.offset;if(V+U<=J){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+C-R:v=H.x+C/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="left"){const V=H.x-R-e.arrowSize-e.offset;if(V>=0){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}else if(F==="right"){const V=H.x+C+e.arrowSize+e.offset;if(V+R<=W){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:D.join("-"),bestInsetRect:re}},f=(T,H,C=10)=>{if(!tt||H===!1||!T)return;n.value=ko(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:W}=d(e.placement,n.value,r.value,a.value,R,O);i.value=U,o.value=W,s.value=!0},c=l.ref(0),b=St(()=>{f(e.message,e.visible)},10),N=l.ref(e.visible);l.watch(()=>e.visible,T=>{N.value=T});const m=l.computed(()=>N.value&&h.value),h=l.ref(!0),g=St(T=>{const H=T[0];H&&(h.value=H.isIntersecting)},10),$=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([T,H])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Io.watch(e.reference,b),$.observe(e.reference)}),l.onBeforeMount(()=>{Io.unwatch(e.reference,b),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const T={[_n]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),k=l.computed(()=>{const T={};o.value.top!==null&&(T.top=`${o.value.top}px`),o.value.right!==null&&(T.right=`${o.value.right}px`),o.value.bottom!==null&&(T.bottom=`${o.value.bottom}px`),o.value.left!==null&&(T.left=`${o.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${H}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),P=l.computed(()=>{const T=[`${_n}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),_=l.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),A=l.computed(()=>({[`${_n}__arrow`]:!0})),L=l.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),M=l.computed(()=>m.value&&e.closeOnClick),I=l.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:m,tipRef:u,classes:w,styles:k,textClasses:P,textStyles:_,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:I,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),vi=["innerHTML"];function wi(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const $t=Me(bi,[["render",wi]]);class Vo{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 qn={},Si=new Vo,ut=new Map,nn=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ut.clear()}},xi=e=>{e.unmount=nn;const t=document.getElementById(e.id);if(t){const o=ut.get(e.id);o?e={...qn,...o,...e}:e={...qn,...e},e.transition=!1;const n=l.createVNode($t,e);return l.render(n,t),e.id}},Ti=e=>{e.unmount=nn;let t=e.id??`hinttext_${Si.get()}`;e={...qn,...e},e.id=t,ut.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode($t,e);return l.render(n,o),document.body.appendChild(o),t},$i=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,o={},n=!0){$i(t);const r=o.id;return r&&ut.has(r)?xi({...o,message:t,reference:e}):(n&&nn(),Ti({...o,message:t,reference:e}))},hide(e){nn(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ci(e,t,o,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Se({componentName:e,validate:!1},i);const s=We(),u=Ut();Xt(!1);const d=l.computed(()=>u&&s?Zt(s,!1).value:null),f=e,c=l.ref(null),b=l.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!U.value,S[r.warnMarkClass]=!!O.value,S[r.infoMarkClass]=!!H.value,typeof c.value=="function"){const G=c.value(i);S[G]=!0}else if(typeof c.value=="string"){const G=c.value;S[G]=!0}return S}),N=l.ref(null),m=l.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ne(r.width));else{const G=u&&s?Jt(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const te=en(G,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=Qt(G,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof N.value=="function"){const G=N.value(i);G&&Object.assign(S,G)}else if(N.value&&typeof N.value=="object"){const G=N.value;Object.assign(S,G)}return S}),h=l.ref(null),g=l.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(l.toRef(r,"labelPosition"),"labelPosition",Re.Near),k=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),P=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${k.value}`]:!0})),_=l.computed(()=>({label:!0,[`label--${k.value}`]:!0})),A=ke(l.toRef(r,"labelWidth"),"labelWidth",Re.Near),L=l.computed(()=>A&&A.value?{width:Ne(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":g.value})),I=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),T=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(S){g.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){N.value=S}});const H=l.computed(()=>r.infoTip||T.infoTip),C=l.computed(()=>r.infoIcon||T.infoIcon),O=l.computed(()=>r.warnTip||T.warnTip),R=l.computed(()=>r.warnIcon||T.warnIcon),U=l.computed(()=>r.errorTip||T.errorTip),W=l.computed(()=>r.errorIcon||T.errorIcon),J=l.computed(()=>U.value?"error":O.value?"warn":H.value?"info":""),Z=()=>J.value.length>0,ee=l.computed(()=>J.value==="error"?U.value:J.value==="warn"?O.value:J.value==="info"?H.value:""),re=l.computed(()=>J.value==="error"?W.value:J.value==="warn"?R.value:J.value==="info"?C.value:null),D=l.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),x=l.computed(()=>{const S={};return w&&w.value==="top"||!$()?S["padding-left"]="0px":A&&A.value&&(S["padding-left"]=Ne(A.value)),S}),F=l.ref();let V="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,G,te,oe])=>{F.value&&(S&&!ge(G)?V?o.show(F.value,G,{...oe,id:V,type:te},!0):V=o.show(F.value,G,{...oe,type:te},!0):o.hide(V))});let v=null;const K=()=>{v||!F.value||(v=new IntersectionObserver(S=>{let G=!1;for(let te of S)if(te.intersectionRatio>0){G=!0,G&&a.emit("appear",te);break}G||a.emit("disappear")}),v.observe(F.value))},z=()=>{!v||!F.value||(v.unobserve(F.value),v=null)};l.watch(()=>se(r.appearListen),S=>{S?K():z()}),l.onMounted(()=>{se(r.appearListen)&&K()}),l.onUnmounted(z);const j=()=>{if(!$())return null;const S=[],G=a.slots?.label?.()??r.label,te={class:M.value},oe=l.h("div",te,[G]);if(S.push(oe),a.slots.fixedPreTip){const le=a.slots.fixedPreTip();S.push(le)}const X={class:_.value,style:L.value};return l.h("div",X,S)},B=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},oe=l.h("div",te,[a.slots.fixedTip()]);S.push(oe)}const G={ref:F,class:I.value,style:E.value};return l.h("div",G,S)},q=()=>{const S=re.value;return S?typeof S=="function"?l.h("div",{class:"fox-item__tip--icon"},[S()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(S)]):null},Y=()=>{const S=ee.value;return S?typeof S=="function"?l.h("div",{class:"fox-item__tip--text"},[S()]):l.h("div",{class:"fox-item__tip--text"},[S]):null},Q=()=>{if(!Z())return null;const S=[],G=q();G&&S.push(G);const te=Y();te&&S.push(te);const oe={class:D.value,style:x.value};return l.h("div",oe,S)},ne=()=>a.slots?.hide?.()??null;return()=>{const S=[],G=[],te=j();te&&G.push(te);const oe=B();oe&&G.push(oe);const X={class:P.value},le=l.h("div",X,G);S.push(le);const ae=Q();ae&&S.push(ae);const ue=ne();ue&&S.push(ue);const ye={class:b.value,style:m.value,prop:r.prop};return l.h("div",ye,S)}}}}const{componentName:Ni,create:Ei,scope:ki}=ie("item"),we=Ei(Ci(Ni,ki,Ve,!1));function Ii(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=We(),a=Ut();Xt(!1);const i=l.computed(()=>a&&r?Zt(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?Jt(r,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=en(c,i.value,o.span,o.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=Qt(c,i.value,o.span,o.offset,o.width);Object.assign(f,b)}else return o.width&&(f.width=Ne(o.width)),f;else o.width&&(f.width=Ne(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Oi,create:Vi,scope:Sh}=ie("slot-item"),Pn=Vi(Ii(Oi));function Di(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,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=We(),s=Ut();Xt(!1);const u=l.computed(()=>{const d={};if(s&&i){const f=Zt(i,!1),c=Jt(i,!1);if(f.value&&c)if(f.value.type==="grid"){const b=en(c,f.value,o.span,o.offset);Object.assign(d,b)}else if(f.value.type==="flow"){const b=Qt(c,f.value,o.span,o.offset,o.width);Object.assign(d,b)}else o.width&&(d.width=Ne(o.width))}else o.width&&(d.width=Ne(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let b=0;b<c.length;b++){if(b>0){const N=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[b])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Fi,create:Ri,scope:xh}=ie("row-item"),jn=Ri(Di(Fi)),Pe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Do={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 Ai(e,t,o){return{props:{...ve,...Ee,...Do},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,s),b=e,N=l.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),m=C=>{c.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let g=de(n,"hintText"),$=l.ref(!1);const w=C=>{let R=C.target.value;f.value=!0,ge(g.value)||($.value=!0),s("focus",R,C)},k=C=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let R=C.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,C)},P=()=>{s("clear","")},_=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&_.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{_.value=!0},150))},M=()=>{A&&(clearTimeout(A),_.value=!1,A=null)},I=l.computed(()=>_.value||$.value),E=l.computed(()=>_.value?c.value:g.value),T=l.computed(()=>pt(n.unit)>0),H=l.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:P,onChange:h,onInput:m,onFocus:w,onBlur:k,onMouseover:L,onMouseleave:M},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=l.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Do),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return l.h(o,ee,J)}}}}const{componentName:Li,create:Mi,scope:Bi}=ie("input-item"),zn=Mi(Ai(Li,Bi,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Fo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function _i(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pi(){const e=l.getCurrentInstance();return new qi(e.proxy)}function Ro(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=Ct(e,t),i=Ct(e,o);return a===i}function Ao(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Fo(e,i);if(Array.isArray(s)&&s.length>0){const u=Ao(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Ze(e,i)===a;else if(o==="item")u=Ro(e,i,a);else{let d=Ct(e,i);d==null&&(d=Ze(e,i)),u=d===a}if(u){r.push(i);break}}}}),r}function ji(e){return{text:e,value:e}}const Lo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],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},showTooltip:{type:Boolean,default:!1}};function zi(e,t,o){return{props:{...ve,...Ee,...Lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),b=l.computed(()=>c.value?c.value.map(q=>Ze(n,q)).join(" "):""),N=(B,q,Y,Q=!0)=>{const ne=Ao(n,B,q,Y);if(ne===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let G=0;G<ne.length;G++){const te=ne[G],oe=c.value[G];if(!Ro(n,te,oe)){S=!1;break}}if(!S){c.value=ne;let G=[],te=[],oe=[];ne.forEach(ue=>{const ye=Ct(n,ue),he=Ze(n,ue);G.push(ye),oe.push(he),n.valueType==="text"?te.push(he):n.valueType==="item"?te.push(ue):te.push(ye)});let X,le,ae;se(n.multiple)?(f.value=G,X=l.toRaw(te),le=oe,ae=l.toRaw(ne)):(f.value=G[0]??"",X=l.toRaw(te[0]??""),le=oe[0]??"",ae=l.toRaw(ne[0])),Q&&(s("update:modelValue",X),s("change",X,ae)),s("update:text",le)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),$=ke(l.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,B=>se(B)),w=Pi(),k=async(B,q)=>{if(B){const Y=await w.load("select",B,q);if(Y.length>0)if(typeof Y[0]=="string"){let S=Y.map(G=>ji(G));m.value=S}else m.value=Y;else m.value=null}};l.watch([()=>n.source,()=>n.params],([B,q])=>{h.value=null,k(B,q)},{immediate:!$.value});let P=!1;const _=()=>{P||(P=!0,k(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([B,q])=>{if(I()&&se(n.multiple)){He(q,f.value)||(f.value=q);return}N(q,n.valueType,g.value,!1),s("setValue",q)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async B=>{if(B==null){h.value=null;return}L.value=!0;try{const q=await n.remoteMethod(B);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async B=>{if(B==null){h.value=null;return}L.value=!0;try{const q=await n.filterMethod(B,m.value);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}L.value=!1});const I=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),T=e,H=l.computed(()=>({[T]:!0})),C=B=>{n.allowCreate||I()&&se(n.multiple)?(s("update:modelValue",B),s("change",B),s("update:text",B),f.value=B):N(B,"value",g.value,!0)};let O=de(n,"hintText"),R=l.ref(!1);const U=B=>{let Y=B.target.value;E.value=!0,ge(O.value)||(R.value=!0),s("focus",Y,B)},W=B=>{setTimeout(()=>{R.value&&(R.value=!1),E.value=!1},0);let Y=B.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),V.value||s("blur",Y,B)},J=()=>{s("clear","")},Z=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},D=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=l.computed(()=>Z.value||R.value),F=l.computed(()=>Z.value?b.value:O.value),V=l.ref(!1),v=B=>{V.value=B,s("visible-change",B),B||s("selected")},K=B=>{s("remove-tag",B)},z=(B,q)=>{const Y=[];return B.forEach((Q,ne)=>{const S=Fo(n,Q);if(Array.isArray(S)&&S.length>0){const G=z(S,q),te=Ze(n,Q),X={key:`${te}_${ne}`,label:te};Y.push(l.h(p.ElOptionGroup,X,{default:()=>G}))}else{const G=Ct(n,Q),te=Ze(n,Q),oe=_i(n,Q),le={key:`${G}_${ne}`,label:te,disabled:oe,value:G};if(typeof q=="function")Y.push(l.h(p.ElOption,le,{default:()=>q(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=l.h("span",ae,[G]),ye={class:{"fox-select-item__option-right":!0}},he=l.h("span",ye,[te]),gt=l.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);Y.push(l.h(p.ElOption,le,{default:()=>gt}))}else n.optionType==="value"?Y.push(l.h(p.ElOption,le,{default:()=>[G]})):Y.push(l.h(p.ElOption,le))}}),Y},j=l.ref();return xe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const q={...Pe(r.attrs),ref:j,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:C,onFocus:U,onBlur:W,onVisibleChange:v,onRemoveTag:K};typeof A=="function"&&(q["remote-method"]=A,q.loading=L.value),typeof M=="function"&&(q["filter-method"]=M,q.loading=L.value);const Y={};r.slots.prefix&&(Y.prefix=r.slots.prefix),r.slots.empty&&(Y.empty=r.slots.empty),r.slots.options?Y.default=r.slots.options:Y.default=()=>z(g.value,r.slots.option);const Q=[],ne=l.h(p.ElSelect,q,Y);Q.push(ne);const S={default:()=>Q};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ce(n,Lo),hintText:F.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:D};return $.value&&(te["appear-listen"]=!0,te.onAppear=_),l.h(o,te,S)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ie("select-item"),Hn=Ki(zi(Hi,Wi,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",f="week",c="month",b="quarter",N="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(C,O,R){var U=String(C);return!U||U.length>=O?C:""+Array(O+1-U.length).join(R)+C},P={s:k,z:function(C){var O=-C.utcOffset(),R=Math.abs(O),U=Math.floor(R/60),W=R%60;return(O<=0?"+":"-")+k(U,2,"0")+":"+k(W,2,"0")},m:function C(O,R){if(O.date()<R.date())return-C(R,O);var U=12*(R.year()-O.year())+(R.month()-O.month()),W=O.clone().add(U,c),J=R-W<0,Z=O.clone().add(U+(J?-1:1),c);return+(-(U+(R-W)/(J?W-Z:Z-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:c,y:N,w:f,d,D:m,h:u,m:s,s:i,ms:a,Q:b}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},_="en",A={};A[_]=w;var L=function(C){return C instanceof T},M=function C(O,R,U){var W;if(!O)return _;if(typeof O=="string"){var J=O.toLowerCase();A[J]&&(W=J),R&&(A[J]=R,W=J);var Z=O.split("-");if(!W&&Z.length>1)return C(Z[0])}else{var ee=O.name;A[ee]=O,W=ee}return!U&&W&&(_=W),W||!U&&_},I=function(C,O){if(L(C))return C.clone();var R=typeof O=="object"?O:{};return R.date=C,R.args=arguments,new T(R)},E=P;E.l=M,E.i=L,E.w=function(C,O){return I(C,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function C(R){this.$L=M(R.locale,null,!0),this.parse(R)}var O=C.prototype;return O.parse=function(R){this.$d=function(U){var W=U.date,J=U.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(g);if(Z){var ee=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(W)}(R),this.$x=R.x||{},this.init()},O.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},O.$utils=function(){return E},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(R,U){var W=I(R);return this.startOf(U)<=W&&W<=this.endOf(U)},O.isAfter=function(R,U){return I(R)<this.startOf(U)},O.isBefore=function(R,U){return this.endOf(U)<I(R)},O.$g=function(R,U,W){return E.u(R)?this[U]:this.set(W,R)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(R,U){var W=this,J=!!E.u(U)||U,Z=E.p(R),ee=function(z,j){var B=E.w(W.$u?Date.UTC(W.$y,j,z):new Date(W.$y,j,z),W);return J?B:B.endOf(d)},re=function(z,j){return E.w(W.toDate()[z].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(j)),W)},D=this.$W,x=this.$M,F=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case N:return J?ee(1,0):ee(31,11);case c:return J?ee(1,x):ee(0,x+1);case f:var v=this.$locale().weekStart||0,K=(D<v?D+7:D)-v;return ee(J?F-K:F+(6-K),x);case d:case m:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case s:return re(V+"Seconds",2);case i:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(R){return this.startOf(R,!1)},O.$set=function(R,U){var W,J=E.p(R),Z="set"+(this.$u?"UTC":""),ee=(W={},W[d]=Z+"Date",W[m]=Z+"Date",W[c]=Z+"Month",W[N]=Z+"FullYear",W[u]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[a]=Z+"Milliseconds",W)[J],re=J===d?this.$D+(U-this.$W):U;if(J===c||J===N){var D=this.clone().set(m,1);D.$d[ee](re),D.init(),this.$d=D.set(m,Math.min(this.$D,D.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},O.set=function(R,U){return this.clone().$set(R,U)},O.get=function(R){return this[E.p(R)]()},O.add=function(R,U){var W,J=this;R=Number(R);var Z=E.p(U),ee=function(x){var F=I(J);return E.w(F.date(F.date()+Math.round(x*R)),J)};if(Z===c)return this.set(c,this.$M+R);if(Z===N)return this.set(N,this.$y+R);if(Z===d)return ee(1);if(Z===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[Z]||1,D=this.$d.getTime()+R*re;return E.w(D,this)},O.subtract=function(R,U){return this.add(-1*R,U)},O.format=function(R){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var J=R||"YYYY-MM-DDTHH:mm:ssZ",Z=E.z(this),ee=this.$H,re=this.$m,D=this.$M,x=W.weekdays,F=W.months,V=function(j,B,q,Y){return j&&(j[B]||j(U,J))||q[B].slice(0,Y)},v=function(j){return E.s(ee%12||12,j,"0")},K=W.meridiem||function(j,B,q){var Y=j<12?"AM":"PM";return q?Y.toLowerCase():Y},z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:E.s(D+1,2,"0"),MMM:V(W.monthsShort,D,F,3),MMMM:V(F,D),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:v(1),hh:v(2),a:K(ee,re,!0),A:K(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z};return J.replace($,function(j,B){return B||z[j]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(R,U,W){var J,Z=E.p(U),ee=I(R),re=(ee.utcOffset()-this.utcOffset())*n,D=this-ee,x=E.m(this,ee);return x=(J={},J[N]=x/12,J[c]=x,J[b]=x/3,J[f]=(D-re)/6048e5,J[d]=(D-re)/864e5,J[u]=D/r,J[s]=D/n,J[i]=D/o,J)[Z]||D,W?x:E.a(x)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return A[this.$L]},O.locale=function(R,U){if(!R)return this.$L;var W=this.clone(),J=M(R,U,!0);return J&&(W.$L=J),W},O.clone=function(){return E.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},C}(),H=T.prototype;return I.prototype=H,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",N],["$D",m]].forEach(function(C){H[C[1]]=function(O){return this.$g(O,C[0],C[1])}}),I.extend=function(C,O){return C.$i||(C(O,T,I),C.$i=!0),I},I.locale=M,I.isDayjs=L,I.unix=function(C){return I(1e3*C)},I.en=A[_],I.Ls=A,I.p={},I})})(Mo);var Yi=Mo.exports;const je=Ge(Yi);var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var $=g.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},b=function(h,g){var $,w=s.meridiem;if(w){for(var k=1;k<=24;k+=1)if(h.indexOf(w(k,0,g))>-1){$=k>12;break}}else $=h===(g?"pm":"PM");return $},N={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[i,function(h){var g=s.ordinal,$=h.match(/\d+/);if(this.day=$[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[i,function(h){var g=c("months"),$=(c("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(h){var g,$;g=h,$=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,E,T){var H=T&&T.toUpperCase();return E||$[T]||o[T]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,O,R){return O||R.slice(1)})})).match(n),k=w.length,P=0;P<k;P+=1){var _=w[P],A=N[_],L=A&&A[0],M=A&&A[1];w[P]=M?{regex:L,parser:M}:_.replace(/^\[|\]$/g,"")}return function(I){for(var E={},T=0,H=0;T<k;T+=1){var C=w[T];if(typeof C=="string")H+=C.length;else{var O=C.regex,R=C.parser,U=I.slice(H),W=O.exec(U)[0];R.call(E,W),I=I.replace(W,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var ee=J.hours;Z?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}}(E),E}}return function(h,g,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,k=w.parse;w.parse=function(P){var _=P.date,A=P.utc,L=P.args;this.$u=A;var M=L[1];if(typeof M=="string"){var I=L[2]===!0,E=L[3]===!0,T=I||E,H=L[2];E&&(H=L[2]),s=this.$locale(),!I&&H&&(s=$.Ls[H]),this.$d=function(U,W,J){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*U);var Z=m(W)(U),ee=Z.year,re=Z.month,D=Z.day,x=Z.hours,F=Z.minutes,V=Z.seconds,v=Z.milliseconds,K=Z.zone,z=new Date,j=D||(ee||re?1:z.getDate()),B=ee||z.getFullYear(),q=0;ee&&!re||(q=re>0?re-1:z.getMonth());var Y=x||0,Q=F||0,ne=V||0,S=v||0;return K?new Date(Date.UTC(B,q,j,Y,Q,ne,S+60*K.offset*1e3)):J?new Date(Date.UTC(B,q,j,Y,Q,ne,S)):new Date(B,q,j,Y,Q,ne,S)}catch{return new Date("")}}(_,M,A),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&_!=this.format(M)&&(this.$d=new Date("")),s={}}else if(M instanceof Array)for(var C=M.length,O=1;O<=C;O+=1){L[1]=M[O-1];var R=$.apply(this,L);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}O===C&&(this.$d=new Date(""))}else k.call(this,P)}}})})(Bo);var Gi=Bo.exports;const Ui=Ge(Gi);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),c=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(c)}}})})(_o);var Xi=_o.exports;const Zi=Ge(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){var a=n.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,N,m,h){var g=c.name?c:c.$locale(),$=i(g[b]),w=i(g[N]),k=$||w.map(function(_){return _.slice(0,m)});if(!h)return k;var P=g.weekStart;return k.map(function(_,A){return k[(A+(P||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,b){return c.formats[b]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(c.formats[b.toUpperCase()])},f=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(c){return s(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(qo);var Ji=qo.exports;const Qi=Ge(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(d),c=i(this).endOf(o);if(f.isBefore(c))return 1}var b=i(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(b,o,!0);return N<0?i(this).startOf("week").week():Math.ceil(N)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Po);var es=Po.exports;const ts=Ge(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(jo);var ns=jo.exports;const ls=Ge(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(zo);var os=zo.exports;const rs=Ge(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ho);var as=Ho.exports;const is=Ge(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Ko);var ss=Ko.exports;const us=Ge(ss);je.extend(Qi),je.extend(Zi),je.extend(Ui),je.extend(ts),je.extend(ls),je.extend(rs),je.extend(is),je.extend(us);const Ae={format(e,t){return je(e).format(t)},parser(e,t){return je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},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 o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ae.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ae.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Wo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Yo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function cs(e,t,o){return{props:{...ve,...Ee,...Wo,...Yo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,s),b=l.computed(()=>R.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=l.computed(()=>R.value?"longTermKey":"normalKey"),m=j=>{if(R.value&&n.type==="daterange"){const B=[...c.value];B[0]=j,c.value=B}else c.value=j;s("update:modelValue",c.value),s("change",c.value)},h=l.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,$=l.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=de(n,"hintText"),k=l.ref(!1);const P=j=>{let q=j.target.value;f.value=!0,ge(w.value)||(k.value=!0),s("focus",q,j)},_=j=>{setTimeout(()=>{k.value&&(k.value=!1),f.value=!1},0);let q=j.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),s("blur",q,j)},A=()=>{s("clear","")},L=j=>{s("calendar-change",j)},M=(j,B,q)=>{s("panel-change",j,B,q)},I=j=>{s("visible-change",j)},E=ke(l.computed(()=>n.longTermText),"longTermText",Re.Near),T=ke(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Re.Near),H=ke(l.computed(()=>n.longTermValue),"longTermValue",Re.Near),C=ke(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Re.Near);let O=null;const R=l.ref(se(n.longTerm)),U=j=>{if(R.value=j,s("update:longTerm",j),j){if(O=c.value,n.type==="daterange"){const B=[];Array.isArray(H.value)?(B[0]=c.value?c.value[0]??H.value[0]:null,B[1]=H.value[1]??H.value[0]):(B[0]=c.value?c.value[0]??H.value:null,B[1]=R.value),B[0]||(B[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),B[1]||(B[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=B}else Array.isArray(H.value)?c.value=H.value[1]??H.value[0]:c.value=H.value,c.value||(c.value=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date);s("update:modelValue",c.value)}else{if(n.type==="daterange"){const B=[];B[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(O)?B[1]=O[1]:B[1]=O,B[0]||(B[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),B[1]||(B[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=B}else c.value=O;s("update:modelValue",c.value),setTimeout(()=>{K()},100)}},W=se(n.isLongTerm);if(W){const j=()=>{if(R.value===!0){if(O=c.value,n.type==="daterange"){const B=[c.value[0]];Array.isArray(H.value)?B[1]=H.value[1]??H.value[0]:B[1]=R.value,B[0]||(B[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),B[1]||(B[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=B}else c.value=H.value;s("update:modelValue",c.value)}else He(H.value,c.value)&&(R.value=!0)};j(),l.watch([()=>n.longTerm],([B])=>{R.value!==B&&j()}),l.watch([()=>c.value],([B])=>{let q=!1;if(n.type==="daterange"&&Array.isArray(B))try{let Y=B[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Ae.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(C.value)&&C.value.findIndex(S=>Y==S)!==-1)&&(q=!0)}catch(Y){console.error(Y)}R.value!==q&&(R.value=q)},{immediate:!0})}const J=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=l.ref(),ee=l.ref(),re=/^\d+$/,D=(j,B)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(j,B):re.test(j)&&j.length===n.flashFillThreshold,x=(j,B)=>{let q;if(typeof n.flashFillFormat=="function")q=n.flashFillFormat(j,B);else{const Q=n.flashFillFormat??"YYYYMMDD";q=Ae.parser(j,Q)}const Y=n.valueFormat??"YYYY-MM-DD";return Ae.format(q,Y)},F=j=>j?j.endsWith("range"):!1,V=j=>{if(!j.target)return;const B=j.target.value??"";if(D(B,n.type)){const q=x(B,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[0]=q,m(Y)}else m(q)}},v=j=>{if(!j.target)return;const B=j.target.value??"";if(D(B,n.type)){const q=x(B,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[1]=q,m(Y)}else m(q)}},K=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const j=Z.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].addEventListener("input",V),j[1]&&j[1].addEventListener("input",v)}else{const j=Z.value.$el.querySelector("input.el-input__inner");j&&j.addEventListener("input",V)}},z=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const j=Z.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].removeEventListener("input",V),j[1]&&j[1].removeEventListener("input",v)}else{const j=Z.value.$el.querySelector("input.el-input__inner");j&&j.removeEventListener("input",V)}};return l.onMounted(K),l.onBeforeUnmount(z),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const B={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:A,onFocus:P,onBlur:_,onCalendarChange:L,onPanelChange:M,onVisibleChange:I},q={};r.slots["range-separator"]&&(q["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(q.default=r.slots.cell);const Y=[],Q=l.h(p.ElDatePicker,B,q);Y.push(Q);const ne={default:()=>Y};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),W){if(R.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),le={class:J.value},ae=l.h("div",le,{default:()=>[oe,X]});Y.push(ae)}if(!i.value&&!a.value){const oe={label:T.value||E.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},X=l.h(p.ElCheckbox,oe),le=l.h("div",{class:{[`${g}__append`]:!0}},[X]);ne.append=()=>le}}const G={...Ce(n,Wo,Yo),ref:Z,class:{[`${g}__wrapper`]:!0,"has-append":W},hintText:w.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(o,G,ne)}}}}const{componentName:fs,create:ds,scope:hs}=ie("date-item"),Kn=ds(cs(fs,hs,we)),Go={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function gs(e,t,o){return{props:{...ve,...Ee,...Go},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,s),b=e,N=l.computed(()=>({[b]:!0})),m=A=>{c.value=A,s("update:modelValue",A),s("change",A)};let h=de(n,"hintText"),g=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",M,A)},w=A=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,A)},k=()=>{s("clear","")},P=A=>{s("visible-change",A)},_=l.ref();return xe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const L={...r.attrs,ref:_,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:k,onFocus:$,onBlur:w,onVisibleChange:P},M={},I=[],E=l.h(p.ElTimePicker,L,M);I.push(E);const T={default:()=>I};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const C={...Ce(n,Go),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,C,T)}}}}const{componentName:ms,create:ys,scope:ps}=ie("time-item"),Wn=ys(gs(ms,ps,we)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function bs(e,t,o){return{props:{...ve,...Ee,...Uo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,s),b=e,N=l.computed(()=>({[b]:!0})),m=_=>{c.value=_,s("update:modelValue",_),s("change",_)};let h=de(n,"hintText"),g=l.ref(!1);const $=_=>{let L=_.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},k=()=>{s("clear","")},P=l.ref();return xe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()}}),()=>{const A={...r.attrs,ref:P,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:k,onFocus:$,onBlur:w},L={},M=[],I=l.h(p.ElTimeSelect,A,L);M.push(I);const E={default:()=>M};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const H={...Ce(n,Uo),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,H,E)}}}}const{componentName:vs,create:ws,scope:Ss}=ie("time-select-item"),Yn=ws(bs(vs,Ss,we));function Xo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Zo(e,t,o=20){if(typeof t=="string"&&(t=pe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Kl(`${e}`,`${t}`);return Xo(n)}else{let n=pn(`${e}`,Wl(`${t}`),20);return Xo(n)}}function xs(e,t=-1,o=!1,n=3,r=","){return Rt(e,t,o,n,r)}function Jo(e,t,o,n,r=!0){if(e=="")return"";if(e=Yl(e),t=pe(t),t==1)return e;if(n)e=Zo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(pe(o)+2,"0"):e=pn(e,1,pe(o)));else{let a=-1*t;e=Zo(e,a)}return e}function Qo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=bn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=bn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const er={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 Ts(e,t,o){return{props:{...ve,...Ee,...er},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=de(n,"modelValue",null,s),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([C,O,R])=>{if(ge(C)){f.value="";return}const U=Jo(C,O,R,!1);f.value!==U&&(f.value=U)},{immediate:!0});const c=l.computed(()=>{let C="";return u.value&&(C=f.value),C}),{t:b}=Fe.useFoxI18n(t),N=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(f.value)?C=xs(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=b(["placeholder",C]),C}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=ke(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const $=l.ref(""),w=l.computed(()=>{let C=$.value;return ge(C)&&(C=n.errorTip??""),C}),k=l.ref(""),P=l.ref(!1),_=(C,O)=>{if(C=`${C}`,ge(C)){f.value="",d.value="",O.forEach(R=>{s(R,"")}),se(n.showTip)&&P.value&&(P.value=!1);return}if(C.length>=2){let R=C;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){l.triggerRef(f);return}}if(C!="-"){if(!no(C)){l.triggerRef(f);return}if(n.integerLength!=-1&&lo(C)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&oo(C)>Number(n.decimalLength)){l.triggerRef(f);return}let R=Qo(C,n);if(R.maxValid===!1){$.value=R.message,l.triggerRef(f);return}}else if(n.min!=null&&pe(n.min)>=0){l.triggerRef(f);return}k.value=C,se(n.showTip)&&(P.value=C.length>0),f.value=C,d.value=Jo(C,n.rates,n.precision,!0),O.forEach(R=>{s(R,d.value)})},A=C=>{_(C,["update:modelValue","input"])},L=C=>{_(C,["update:modelValue","change"])},M=C=>{if(u.value=!0,se(n.showTip)){let O=f.value;ge(O)&&(O=n.hintText),ge(O)||(k.value=O,P.value=!0)}$.value="",s("focus",d.value,C)},I=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&P.value===!0&&(P.value=!1)},0),!ge(f.value)){let O=Qo(f.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}s("update:modelValue",d.value,C),s("blur",d.value,C)},E=()=>{s("clear","")},T=l.computed(()=>pt(n.unit)>0),H=l.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:A,onChange:L,onFocus:M,onBlur:I},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=l.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,er),errorTip:w.value,hintText:k.value,hintVisible:P.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,J)}}}}const{componentName:$s,create:Cs,scope:Ns}=ie("money-item"),Gn=Cs(Ts($s,Ns,we)),tr={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 Es(e,t,o){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,s),b=e,N=l.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),m=l.computed(()=>({[`${b}__unit`]:!0})),h=M=>{c.value=M,s("update:modelValue",M),s("input",M)},g=M=>{s("change",M)};let $=de(n,"hintText"),w=l.ref(!1);const k=M=>{let E=M.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",E,M)},P=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=M.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,M)},_=()=>{s("clear","")},A=l.computed(()=>pt(n.unit)>0),L=l.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const I={...Pe(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:g,onInput:h,onFocus:k,onBlur:P},E={},T=[],H=l.h(p.ElInputNumber,I,E);T.push(H);const C={default:()=>T};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const R={...Ce(n,tr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(A.value){const W={class:m.value},J=l.h("div",W,[n.unit]);C.append=()=>J}return l.h(o,R,C)}}}}const{componentName:ks,create:Is,scope:Os}=ie("input-number-item"),Un=Is(Es(ks,Os,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function lt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ds=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Fs(){const e=l.getCurrentInstance();return new Ds(e.proxy)}function Xn(e,t,o){const n=Ue(e,t),r=Ue(e,o);if(n!==r)return!1;const a=lt(e,t),i=lt(e,o);return a===i}function nr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=nr(e,s,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ue(e,d)===s;else if(o==="item")u=Xn(e,d,s);else{let f=lt(e,d);f==null&&(f=Ue(e,d)),u=f===s}if(u){r.push(d),a=Vs(e,d);break}}if(!u)break}}return r}function Rs(e){return{text:e,value:e}}const lr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],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"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function As(e,t,o){return{props:{...ve,...Ee,...lr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),b=l.computed(()=>c.value?c.value.map(j=>Array.isArray(j)?j.map(q=>Ue(n,q)).join(" "):Ue(n,j)).join(" "):""),N=(z,j,B,q=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===z)return;f.value=z;const S=l.toRaw(z);if(q){const G=K?.value.getCheckedNodes();if(G)if(n.multiple){const te=[];G.forEach(oe=>{const le=(oe.pathNodes??[]).map(ae=>ae.data);te.push(le)}),s("update:pathNodes",te)}else{const oe=(G[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",oe)}s("update:modelValue",S),s("change",S)}return}const Y=nr(n,z,j,B);if(Y===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,q&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=Y[Y.length-1];if(E.value.checkStrictly!==!0&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const S=[];Y.forEach(G=>{const te=`${Ue(n,G)}`;S.push(te)}),S.length>0&&(M.value=S.join(n.separator))}else M.value=null;let ne=!0;if(Y.length!==c.value.length)ne=!1;else for(let S=0;S<Y.length;S++){const G=Y[S],te=c.value[S];if(Array.isArray(G)){if(!Array.isArray(te)||G.length!==te.length)ne=!1;else for(let oe=0;oe<G.length;oe++)if(!Xn(n,G[oe],te[oe])){ne=!1;break}}else Xn(n,G,te)||(ne=!1);if(!ne)break}if(!ne){c.value=Y;let S=[],G=[];Y.forEach(oe=>{if(Array.isArray(oe)){let X=[],le=[];for(let ae of oe)X.push(lt(n,ae)),n.valueType==="text"?le.push(Ue(n,ae)):n.valueType==="item"?le.push(ae):le.push(lt(n,ae));S.push(X),G.push(le)}else S.push(lt(n,oe)),n.valueType==="text"?G.push(Ue(n,oe)):n.valueType==="item"?G.push(oe):G.push(lt(n,oe))}),f.value=S;const te=l.toRaw(G);q&&(s("update:pathNodes",Y),s("update:modelValue",te),s("change",te))}},m=l.ref([]),h=ke(l.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,z=>se(z)),g=Fs(),$=async(z,j)=>{if(z){const B=await g.load("cascader",z,j);if(B.length>0)if(typeof B[0]=="string"){let Q=B.map(ne=>Rs(ne));m.value=Q}else m.value=B}};l.watch([()=>n.source,()=>n.params],async([z,j])=>{$(z,j)},{immediate:!(h.value||n.lazy)});let w=!1;const k=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([z,j])=>{N(j,n.valueType,z,!1),s("setValue",j)}),n.lazy&&N(n.modelValue,"value",[],!1);let P=null,_=l.ref(!1);typeof n.remoteMethod=="function"&&(P=async z=>{if(z!=null){_.value=!0;try{const j=await n.remoteMethod(z);m.value=j}catch(j){console.error(j)}_.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),I=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),E=l.computed(()=>{let z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(z.multiple=!0),n.props&&Object.assign(z,n.props),n.lazy&&(z.lazy=!0,z.lazyLoad=async(j,B)=>{const q=await g.load("cascader",n.source,j,!0);if(j?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===j.level){const Y=j.pathLabels??[];let Q=[];Y.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(M.value=Q.join(n.separator))}else M.value=null;B(q)}),z}),T=z=>{n.allowCreate?(s("update:modelValue",z),s("change",z),f.value=z):N(z,"value",m.value,!0)};let H=de(n,"hintText"),C=l.ref(!1);const O=z=>{let B=z.target.value;A.value=!0,ge(H.value)||(C.value=!0),s("focus",B,z)},R=z=>{setTimeout(()=>{C.value&&(C.value=!1),A.value=!1},0);let B=z.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),x.value||s("blur",B,z)},U=()=>{s("clear","")},W=l.ref(!1);let J=null;const Z=()=>{n.showTooltip&&W.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{W.value=!0},150))},ee=()=>{J&&(clearTimeout(J),W.value=!1,J=null)},re=l.computed(()=>W.value||C.value),D=l.computed(()=>W.value?b.value:H.value),x=l.ref(!1),F=z=>{x.value=z,s("visible-change",z),z||s("selected")},V=z=>{s("remove-tag",z)},v=z=>{s("expand-change",z)},K=l.ref();return xe({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const j={...r.attrs,ref:K,class:I.value,props:E.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:T,onFocus:O,onBlur:R,onVisibleChange:F,onRemoveTag:V,expandChange:v};typeof P=="function"&&(j["remote-method"]=P,j.loading=_.value);const B={};r.slots.option&&(B.default=r.slots.option),r.slots.empty&&(B.empty=r.slots.empty);const q=[],Y=l.h(p.ElCascader,j,B);q.push(Y);const Q={default:()=>q};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const S={...Ce(n,lr),hintText:D.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=k),l.h(o,S,Q)}}}}const{componentName:Ls,create:Ms,scope:Bs}=ie("cascader-item"),Zn=Ms(As(Ls,Bs,we)),or={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function _s(e,t,o){return{props:{...ve,...Ee,...or},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,s),b=e,N=l.computed(()=>({[b]:!0})),m=L=>{c.value=L,s("update:modelValue",L),s("input",L)},h=L=>{s("change",L)},g=L=>{s("select",L)};let $=de(n,"hintText"),w=l.ref(!1);const k=L=>{let I=L.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",I,L)},P=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let I=L.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,L)},_=()=>{s("clear","")},A=l.ref();return xe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,onClear:_,onChange:h,onInput:m,onFocus:k,onBlur:P,onSelect:g},I={};r.slots.prepend&&(I.prepend=r.slots.prepend),r.slots.append&&(I.append=r.slots.append),r.slots.prefix&&(I.prefix=r.slots.prefix),r.slots.suffix&&(I.suffix=r.slots.suffix),r.slots.option&&(I.default=r.slots.option);const E=[],T=l.h(p.ElAutocomplete,M,I);E.push(T);const H={default:()=>E};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,or),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,O,H)}}}}const{componentName:qs,create:Ps,scope:js}=ie("autocomplete-item"),Jn=Ps(_s(qs,js,we));function zs(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(b=>b[n]===f);if(!c)break;i.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[o]),u=c[r]}}return i}let Hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}const rr={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 Ws(e,t){return{props:{...rr},setup(o,{attrs:n,slots:r}){const a=Ks(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{i.value=await a.load(o.sourceType,d,f)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=zs(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,d,{default:()=>s.value}):l.h(u,d,s.value)}}}}const{componentName:Th,create:Ys,scope:$h}=ie("mapping"),Nt=Ys(Ws());function Gs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Us(e,t){return{props:{...rr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=Gs(i.row,i.column.property);return r.default?l.h(Nt,{...o,modelValue:s},{default:r.default}):l.h(Nt,{...o,modelValue:s})}};return l.h(p.ElTableColumn,{...n},a)}}}}const{componentName:Ch,create:Xs,scope:Nh}=ie("table-mapping-column"),Qn=Xs(Us()),Zs=Symbol.for("TableStateKey");function ar(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Js(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Zs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=ar(s.row,s.column.property),d=a?ar(a,s.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},b=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return l.h("label",N,[b])}};return l.h(p.ElTableColumn,{...n},i)}}}}const{componentName:Eh,create:Qs,scope:kh}=ie("table-radio-column"),el=Qs(Js()),eu={},tu={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"},nu=[l.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 lu(e,t){return l.openBlock(),l.createElementBlock("svg",tu,nu)}const ou=Me(eu,[["render",lu]]),{componentName:Oh,create:ru,scope:Vh}=ie("table-setting"),au={tableRef:{type:Object},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:"不固定"}},iu=ru({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:ou,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...au},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),c=v=>v.length>1,b=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(B=>{K.some(q=>q.prop===B.prop?(B.label=q.label,!0):!1)});const z=[];r.value=v.map((B,q)=>(!(B.label===""||B.type)&&B.visible!==!1&&z.push(B.prop),{...B,sortIndex:q})),s.value.length+a.value.length+i.value.length===z.length?w.value=!0:z.length>0&&(k.value=!0),A.value=z},N=v=>v?v.type?v.type:v.label?v.prop:"":"",m=(v,K)=>{if(v.length!==K.length)return!1;const z=v.map(j=>N(j));for(let j of K){const B=N(j);if(z.indexOf(B)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),z=K.srcColumnPropertyList;n=z.map((j,B)=>({...j,sortIndex:B})),v=K.columnPropertyList,v&&v.length>0&&m(z,v)||(v=z)}b(v,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),k=l.ref(!1),P=v=>{const K=[];r.value.forEach(j=>{v&&!(j.label===""||j.type)&&K.push(j.prop),j.visible=v}),w.value=!1,k.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(k.value=!0),A.value=K,g()},_=()=>{h(n),g()},A=l.ref([]),L=v=>{r.value.forEach(z=>{if(z.label===""||z.type)return;const j=v.indexOf(z.prop)!==-1;z.visible=j}),w.value=!1,k.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?w.value=!0:v.length>0&&(k.value=!0),g()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const I={currentRow:null,index:null,roleType:null},E=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,E(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(I.roleType=K.dataset.roleType,I.index=K.dataset.index)},H=v=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},C=v=>{const K=v.currentTarget;v.relatedTarget;const z=E(K);if(!z)return;const j=z.dataset&&z.dataset.roleType;I.roleType===j&&(v.preventDefault(),I.currentRow&&I.currentRow!==z&&I.currentRow.classList.remove("is-dragover"),z.classList.add("is-dragover"),I.currentRow=z)},O=v=>{v.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},R=v=>{const K=v.currentTarget,z=E(K);if(!z)return;const j=z.dataset&&z.dataset.roleType;if(I.roleType!==j)return;v.preventDefault();const B=Number(I.index),q=Number(z.dataset.index);if(B!==q){if(B<q){const Y=r.value[B];r.value.splice(B,1),r.value.splice(q,0,Y)}else{const Y=r.value[B];r.value.splice(B,1),r.value.splice(q+1,0,Y)}b(r.value,n),g()}},U=v=>{const K=r.value[v];K.fixed="left",g()},W=v=>{const K=r.value[v];K.fixed="right",g()},J=v=>{const K=r.value[v];K.fixed=void 0,g()},Z=new Map;let ee=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:k,handleCheckAllChange:P,handleReset:_,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:T,onDragEnd:H,onDragOver:C,onDragLeave:O,onDrop:R,toLeftFixed:U,toRightFixed:W,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,K,z)=>{const j=v.currentTarget;if(j){const B=Math.floor(j.offsetWidth);if(Math.floor(re(j))>B){let Y=Z.get(K);if(Y){if(Y===ee)return;Ve.hide(Y)}Y=Ve.show(j,z,{type:"text",placement:"top",closeOnClick:!1}),Z.set(K,Y),ee=Y}}},onMouseLeaveForOverflowText:(v,K)=>{const z=Z.get(K);z&&(Ve.hide(z),z===ee&&(ee=null))},onMouseOverForTip:(v,K)=>{const z=v.currentTarget;z&&(ee&&Ve.hide(ee),ee=Ve.show(z,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),su={class:"fox-table-setting"},uu={class:"fox-table-setting__header"},cu={class:"fox-table-setting__body"},fu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},du={key:0,class:"fox-table-setting__body-title"},hu=["data-index","draggable"],gu=["onMouseover","onMouseleave"],mu={class:"tools-item"},yu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},pu={key:0,class:"fox-table-setting__body-title"},bu=["data-index","draggable"],vu=["onMouseover","onMouseleave"],wu={class:"tools-item"},Su={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},xu={key:0,class:"fox-table-setting__body-title"},Tu=["data-index","draggable"],$u=["onMouseover","onMouseleave"],Cu={class:"tools-item"};function Nu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),b=l.resolveComponent("fox-checkbox"),N=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",su,[l.createElementVNode("div",uu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",cu,[l.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",fu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",du,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,gu)]),_:2},1032,["label"]),l.createElementVNode("div",mu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,hu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",yu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",pu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,vu)]),_:2},1032,["label"]),l.createElementVNode("div",wu,[l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,bu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Su,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",xu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(b,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,$u)]),_:2},1032,["label"]),l.createElementVNode("div",Cu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Tu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ln=Me(iu,[["render",Nu]]);let Eu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function ku(){const e=l.getCurrentInstance();return new Eu(e.proxy)}class Iu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function ir(){const e=l.getCurrentInstance();return new Iu(e.proxy)}const Ou=Symbol.for("TableStateKey"),sr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},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"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},tl={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:"不固定"}},Vu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Du(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function nl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Du(n,r);if(a!==i)return!1}return!0})}function Fu(e,t,o){return{inheritAttrs:!1,props:{...ve,...Ee,...sr,...ur,...tl,...Vu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Fe.useFoxI18n(t),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...X){return A.value}}},n.prop??r.attrs.name),s=e,u=l.computed(()=>({[s]:!0})),d=l.computed(()=>({[`${s}__setting`]:!0})),f=l.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=l.shallowRef({}),N=l.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),m=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),g=se(n.infiniteLoad);g||(l.watch(()=>n.pageIndex,X=>{m.value=X}),l.watch(()=>n.pageSize,X=>{h.value=X}),l.watch([m,h],([X,le],[ae,ue])=>{le!==ue&&(m.value=1,X=1),E(n.data,X,le,N.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&l.watch([()=>n.data,N],async([X,le],[ae,ue])=>{$()&&(X!==ae&&(M=!0),!(!Array.isArray(X)&&He(X,ae)&&He(le,ue))&&(g?(m.value=0,P.value=!0,A.value=[],H()):m.value===1?E(X,m.value,h.value,le):m.value=1))},{deep:!0});const w=X=>{m.value=X,i("page-index-change",X)},k=X=>{h.value=X,i("page-size-change",X)},P=l.ref(!0),_=l.ref(0),A=l.ref(),L=ku();let M=!0;const I=ke(l.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,X=>se(X)),E=async(X,le,ae,ue,ye)=>{M=!1;try{if(ye===!0){if(!P.value)return!1;const he=await L.load("table",X,le,ae,ue,M,a.value);return _.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,A.value,he.page),setTimeout(()=>{i("loaded-data")},250),(A.value?.length??0)>=_.value)||he.page.length<ae?(P.value=!1,!1):!0}else{const he=await L.load("table",X,le,ae,ue,M,a.value);return _.value=he.totalSize,A.value=he.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),_.value=0,A.value=[]}return!1};let T=!1;const H=async()=>{if(!T){if(T=!0,!P.value){T=!1;return}m.value+=1,await E(n.data,m.value,h.value,N.value,!0),T=!1}},C=(X={},le=!1)=>new Promise(async ae=>{b.value={...l.toRaw(X??{})},le||(m.value=n.pageIndex??1),g===!0?(m.value=0,A.value=[],P.value=!0,await H()):await E(n.data,m.value,h.value,N.value),ae()}),O=()=>{_.value=0,A.value=[],g===!0&&(m.value=0,P.value=!0)};let R=!1;const U=()=>{R||(R=!0,C())},W=l.ref(null);if(g===!0){let X=null;const le=()=>{W.value&&(X=new IntersectionObserver(ue=>{let ye=!1;for(let he of ue)if(he.intersectionRatio>0){ye=!0;break}ye&&H()}),X.observe(W.value))},ae=()=>{!X||!W.value||(X.unobserve(W.value),X=null)};l.onMounted(le),l.onBeforeUnmount(ae)}$()&&!I.value&&C();const J=l.ref(null);l.provide(Ou,{currentRow:J});const Z=(X,le)=>{J.value=X,i("current-change",X,le)},ee=(X,le,ae)=>{i("row-click",X,le,ae),se(n.rowClickSelectable)===!0&&oe?.value.toggleRowSelection(X)},re=[],D=(X,le)=>{if(i("expand-change",X,le),se(n.uniqueExpansion))if(Array.isArray(le)&&le.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&oe?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},x=r.attrs.id??n.prop??r.attrs.name,F=ir(),V=l.ref([]);let v=[];const K=()=>({srcColumnPropertyList:v.map(le=>({...le})),columnPropertyList:V.value}),z=X=>{V.value=[...X],B()},j=async()=>{const X=await F.load(x);X&&(V.value=X)},B=()=>{F.save(x,V.value)},q=()=>{F.remove(x)};j();const Y=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=l.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),le=new Map;if(v=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const ye=Y(ue.props);le.set(ye,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),V.value.length===v.length){const ae=[];for(let ue of V.value){const ye=Y(ue),he=le.get(ye);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ne=l.shallowRef(new Map),S=({column:X,rowIndex:le})=>{const ae=`${le}_${X.property}`;return ne.value.get(ae)??""},G=X=>typeof X=="function"?le=>{const ae=[];let ue=S(le);return ue&&ae.push(ue),ue=X(le),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:S,te=(X,le,ae)=>{const ue=`${X}_${le}`;ae?ne.value.set(ue,ae):ne.value.delete(ue),l.triggerRef(ne)},oe=l.ref();return xe({clearSelection:()=>oe?.value.clearSelection(),getSelectionRows:()=>oe?.value.getSelectionRows(),toggleRowSelection:(X,le)=>{oe?.value.toggleRowSelection(X,le)},toggleRowSelectionByProp:(X,le)=>{if(!A.value)return;const ae=nl(A.value,X);ae.length!==0&&ae.forEach(ue=>{oe?.value.toggleRowSelection(ue,le)})},toggleAllSelection:()=>{oe?.value.toggleAllSelection()},toggleRowExpansion:(X,le)=>{oe?.value.toggleRowExpansion(X,le)},toggleRowExpansionByProp:(X,le)=>{if(!A.value)return;const ae=nl(A.value,X);ae.length!==0&&ae.forEach(ue=>{oe?.value.toggleRowExpansion(ue,le)})},setCurrentRow:X=>{oe?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!A.value)return;const le=nl(A.value,X);le.length!==0&&oe?.value.setCurrentRow(le[0])},getCurrentRow:()=>J.value,clearSort:()=>{oe?.value.clearSort()},clearFilter:X=>{oe?.value.clearFilter(X)},doLayout:()=>{oe?.value.doLayout()},sort:(X,le)=>{oe?.value.sort(X,le)},scrollTo:(X,le)=>{oe?.value.scrollTo(X,le)},setScrollTop:X=>{oe?.value.setScrollTop(X)},setScrollLeft:X=>{oe?.value.setScrollLeft(X)},loadData:C,clearData:O,getData(){return A.value},getTotalSize(){return _.value},getPageIndex(){return m.value},getPageSize(){return h.value},getColumnSetting:K,setColumnSetting:z,removeColumnSetting:q,setCellClassName:te}),()=>{const le={...Pe(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:D,data:A.value,ref:oe,class:u.value,"cell-class-name":G(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),g===!0){const _e=[];if(P.value){const Vt=l.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(Vt);const Bl=l.h("span",{class:`${s}__infinite-text`},[n.loadText]);_e.push(Bl)}else{const Vt=l.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);_e.push(Vt)}const rt={ref:W,class:`${s}__infinite`},Ml=l.h("div",rt,_e);ae.append=()=>Ml}const ue=l.h(p.ElTable,le,ae),ye=[];if(ye.push(ue),!g){let _e=null;if(typeof r.slots.pagination=="function")_e=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:_.value,pageSize:h.value,"onUpdate:pageSize":k,pageSizes:n.pageSizes,currentPage:m.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};_e=l.h(p.ElPagination,rt)}if(n.showSetting){const rt=[];_e&&rt.push(_e);const Ml=l.h(p.ElIcon,{class:d.value},{default:()=>l.h(Te.Setting)}),Vt=ao(n,tl),Bl=l.h(ln,{...Vt,tableRef:{getColumnSetting:K,setColumnSetting:z,removeColumnSetting:q}},{default:()=>Ml});rt.push(Bl);const yh=l.h("div",{class:f.value},rt);ye.push(yh)}else _e&&ye.push(_e)}const he={default:()=>ye},Ot={...Ce(n,sr,ur,tl),prop:`${n.prop}_item`};return Ot.contentClass=`${s}__wrap`,Ot.errorMarkClass="is-table-error",I.value&&$()&&(Ot["appear-listen"]=!0,Ot.onAppear=U),l.h(o,Ot,he)}}}}const{componentName:Ru,create:Au,scope:Lu}=ie("table-item"),ll=Au(Fu(Ru,Lu,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Bu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function _u(){const e=l.getCurrentInstance();return new Bu(e.proxy)}function cr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ct(e,t),r=ct(e,o);if(n!==r)return!1;const a=Et(e,t),i=Et(e,o);return a===i}function qu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=ct(e,a)===t;else if(o==="item")i=cr(e,a,t);else{let s=Et(e,a);s==null&&(s=ct(e,a)),i=s===t}if(i){r=a;break}}return r}function Pu(e){return{text:e,value:e}}function ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const fr={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 zu(e,t,o){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(L,M,I,E=!0)=>{const T=qu(n,L,M,I);if(T===null){if(d.value===null)return;d.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!cr(n,T,d.value)){u.value=L;const C=l.toRaw(T);d.value=C;let O=null;n.valueType==="text"?O=ct(n,C):n.valueType==="item"?O=C:O=Et(n,C),E&&(s("update:modelValue",O),s("change",O))}},c=l.ref([]),b=ke(l.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),N=_u(),m=async(L,M)=>{if(L){const I=await N.load("radio",L,M);if(I.length>0)if(typeof I[0]=="string"){let H=I.map(C=>Pu(C));c.value=H}else c.value=I}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{m(L,M)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),s("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),k=L=>{f(L,"value",c.value,!0)};let P=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,M)=>{const I=[];return L.forEach((E,T)=>{const H=Et(n,E),C=ct(n,E);let O=Mu(n,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=ju(n,E,T)??{},U=`${H}_${T}`,W={...R,key:U,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?I.push(l.h(p.ElRadioButton,W,{default:()=>[C]})):typeof M=="function"?I.push(l.h(p.ElRadio,W,{default:()=>M(E)})):I.push(l.h(p.ElRadio,W,{default:()=>[C]}))}),I};return()=>{const M={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:k},I=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const T=l.h(p.ElRadioGroup,M,E);I.push(T);const H={default:()=>I};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:P.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),l.h(o,O,H)}}}}const{componentName:Hu,create:Ku,scope:Wu}=ie("radio-item"),ol=Ku(zu(Hu,Wu,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Yu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Uu(){const e=l.getCurrentInstance();return new Gu(e.proxy)}function dr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ft(e,t),r=ft(e,o);if(n!==r)return!1;const a=dt(e,t),i=dt(e,o);return a===i}function Xu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=ft(e,i)===a;else if(o==="item")s=dr(e,i,a);else{let u=dt(e,i);u==null&&(u=ft(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function Zu(e){return{text:e,value:e}}function Ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const hr={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 Qu(e,t,o){return{inheritAttrs:!0,props:{...ve,...Ee,...hr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(L,M,I,E=!0)=>{const T=Xu(n,L,M,I);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(T.length!==d.value.length)H=!1;else for(let C=0;C<T.length;C++){const O=T[C],R=d.value[C];if(!dr(n,O,R)){H=!1;break}}if(!H){d.value=T;let C=[],O=[];T.forEach(U=>{C.push(dt(n,U)),n.valueType==="text"?O.push(ft(n,U)):n.valueType==="item"?O.push(U):O.push(dt(n,U))}),u.value=C;const R=l.toRaw(O);E&&(s("update:modelValue",R),s("change",R))}},c=l.ref([]),b=ke(l.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),N=Uu(),m=async(L,M)=>{if(L){const I=await N.load("checkbox",L,M);if(I.length>0)if(typeof I[0]=="string"){let H=I.map(C=>Zu(C));c.value=H}else c.value=I}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{m(L,M)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),s("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),k=L=>{f(L,"value",c.value,!0)};let P=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,M)=>{const I=[];return L.forEach((E,T)=>{const H=dt(n,E),C=ft(n,E);let O=Yu(n,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=Ju(n,E,T)??{},U=`${H}_${T}`,W={...R,key:U,class:n.itemClass,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?I.push(l.h(p.ElCheckboxButton,W,{default:()=>[C]})):typeof M=="function"?I.push(l.h(p.ElCheckbox,W,{default:()=>M(E)})):I.push(l.h(p.ElCheckbox,W,{default:()=>[C]}))}),I};return()=>{const M={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:pe(n.max),min:pe(n.min),onChange:k},I=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const T=l.h(p.ElCheckboxGroup,M,E);I.push(T);const H={default:()=>I};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,hr),hintText:P.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),l.h(o,O,H)}}}}const{componentName:ec,create:tc,scope:nc}=ie("checkbox-item"),rl=tc(Qu(ec,nc,we)),gr={modelValue:{type:[Number,String],required:!1}};function lc(e,t,o){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>pe(h),s),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),N=l.ref(!1);const m=l.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:c},$={},w=[],k=l.h(p.ElRate,g,$);w.push(k);const P={default:()=>w};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ce(n,gr),hintText:b.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,A,P)}}}}const{componentName:oc,create:rc,scope:ac}=ie("rate-item"),al=rc(lc(oc,ac,we)),mr={modelValue:{type:[Boolean,String,Number],required:!1}};function ic(e,t,o){return{props:{...ve,...Ee,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",null,s),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),N=de(n,"hintVisible");const m=l.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],k=l.h(p.ElSwitch,g,$);w.push(k);const P={default:()=>w};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ce(n,mr),hintText:b.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,A,P)}}}}const{componentName:sc,create:uc,scope:cc}=ie("switch-item"),il=uc(ic(sc,cc,we)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function fc(e,t,o){return{props:{...ve,...Ee,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),i=Ie(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=de(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),b=_=>{u("update:modelValue",_),u("change",_)};let N=de(n,"hintText"),m=l.ref(!1);const h=_=>{let L=_.target.value;s.value=!0,ge(N.value)||(m.value=!0),u("focus",L,_)},g=_=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,_)},$=()=>{u("clear","")},w=l.ref(!1),k=_=>{w.value=_,u("visible-change",_),_||u("selected")},P=l.ref();return xe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const A={...Pe(r.attrs),ref:P,class:c.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:$,onFocus:h,onBlur:g,onVisibleChange:k},L={};r.slots.option&&(L.default=r.slots.option);const M=[],I=l.h(p.ElTreeSelect,A,L);M.push(I);const E={default:()=>M};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const H={...Ce(n,yr),hintText:N.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,H,E)}}}}const{componentName:dc,create:hc,scope:gc}=ie("tree-select-item"),sl=hc(fc(dc,gc,we)),mc={},yc={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"},pc=[l.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 bc(e,t){return l.openBlock(),l.createElementBlock("svg",yc,pc)}const vc=Me(mc,[["render",bc]]),{componentName:Fh,create:wc,scope:Rh}=ie("group-setting"),Sc={groupProp:{type:[String]},groupRef:{type:[Object]},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:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},xc=wc({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:vc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...Sc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=ir(),s=D=>D.length>1,u=()=>{const D=[],x=[...a.value];a.value=x.map((V,v)=>(V.visible!==!1&&D.push(V.prop),{...V,sortIndex:v})),a.value.length===D.length?h.value=!0:D.length>0&&(g.value=!0),k.value=D},d=D=>{let x=null;if(typeof D=="string")x=document.querySelectorAll(`.fox-group[prop="${D}"] > div > .fox-item[prop]`);else if(D&&typeof D=="object"){const V=D.$el??D;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const F=[];return x.forEach(V=>{const v=V.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const z=V.getAttribute("prop")??"",B=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:K,prop:z,sortIndex:0,visible:B!=="none"})}),F},f=()=>{if(!r){const D=d(e.groupRef??e.groupProp);if(D.length===0)return!1;r=D}return!0},c=async(D=!1)=>{const x=await i.load(e.groupProp),F=V=>{if(!V||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(z=>{if(z.prop===K.prop){const j=z.label;return Object.assign(z,K),z.label=j,!0}return!1})}),a.value=v.sort((K,z)=>K.sortIndex-z.sortIndex),u(),D&&N(!1)};r?F(!0):jt(f,e.initDelay,5,50,!1,F)},b=()=>{const D=r??[];a.value=D.map(x=>({...x})),u(),N()},N=(D=!0)=>{D&&i.save(e.groupProp,a.value);const x=a.value.map(F=>({...F}));t("change",x)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),$=D=>{const x=[];a.value.forEach(V=>{D&&x.push(V.prop),V.visible=D}),h.value=!1,g.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(g.value=!0),k.value=x,N()},w=()=>{b()},k=l.ref([]),P=D=>{a.value.forEach(F=>{const V=D.indexOf(F.prop)!==-1;F.visible=V}),h.value=!1,g.value=!1;const x=a.value.length;D.length===x?h.value=!0:D.length>0&&(g.value=!0),N()},_=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=D=>D?D.dataset&&D.dataset.role==="row"?D:D.tagName.toLowerCase()!=="body"?(D=D.parentElement,L(D)):null:null,M=D=>{const x=D.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},I=D=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},E=D=>{const x=D.currentTarget;D.relatedTarget;const F=L(x);F&&(D.preventDefault(),A.currentRow&&A.currentRow!==F&&A.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),A.currentRow=F)},T=D=>{D.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},H=D=>{const x=D.currentTarget,F=L(x);if(!F)return;D.preventDefault();const V=Number(A.index),v=Number(F.dataset.index);if(V!==v){if(V<v){const K=a.value[V];a.value.splice(V,1),a.value.splice(v,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(v+1,0,K)}u(),N()}},C=D=>{const x=a.value[D];a.value.splice(D,1),a.value.splice(0,0,x),u(),N()},O=D=>{const x=a.value[D];a.value.splice(D,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const R=new Map;let U=null;function W(D){const x=document.createRange();return x.setStart(D,0),x.setEnd(D,D.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:$,handleReset:w,checkedValue:k,handleCheckChange:P,onShow:_,onDragStart:M,onDragEnd:I,onDragOver:E,onDragLeave:T,onDrop:H,checkboxLabelStyle:m,toTop:C,toBottom:O,onMouseOverForOverflowText:(D,x,F)=>{const V=D.currentTarget;if(V){const v=Math.floor(V.offsetWidth);if(Math.floor(W(V))>v){let z=R.get(x);if(z){if(z===U)return;Ve.hide(z)}z=Ve.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),R.set(x,z),U=z}}},onMouseLeaveForOverflowText:(D,x)=>{const F=R.get(x);F&&(Ve.hide(F),F===U&&(U=null))},onMouseOverForTip:(D,x)=>{const F=D.currentTarget;F&&(U&&Ve.hide(U),U=Ve.show(F,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:D=>{U&&(Ve.hide(U),U=null)}}}}),Tc={class:"fox-group-setting"},$c={class:"fox-group-setting__header"},Cc={class:"fox-group-setting__body"},Nc={class:"fox-group-setting__body-list","data-role":"container"},Ec=["data-index","draggable"],kc=["onMouseover","onMouseleave"],Ic={class:"tools-item"};function Oc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),b=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(b,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Tc,[l.createElementVNode("div",$c,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Cc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Nc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,N=>(l.openBlock(),l.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:N.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,N.prop,N.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,N.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(N.label),45,kc)]),_:2},1032,["label"]),l.createElementVNode("div",Ic,[l.createVNode(f,{onClick:m=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ec))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ul=Me(xc,[["render",Oc]]),Vc=["aria-labelledby"],Dc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Fc=[Dc],Rc=l.defineComponent({__name:"MoreH",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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fc,14,Vc))}}),Ac=["aria-labelledby"],Lc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mc=[Lc],cl=l.defineComponent({__name:"Loading",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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),Bc=["aria-labelledby"],_c=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),qc=[_c],Pc=l.defineComponent({__name:"Close",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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},qc,14,Bc))}}),jc=["aria-labelledby"],zc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Hc=[zc],Kc=l.defineComponent({__name:"Checklist",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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hc,14,jc))}}),Wc=["aria-labelledby"],Yc=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Gc=[Yc],Uc=l.defineComponent({__name:"ArrowRight",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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Wc))}}),Xc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},pr=(e,t)=>t[e.textKey],kt=(e,t)=>t[e.valueKey],Zc=(e,t)=>t[e.visibleKey],br=(e,t)=>t[e.disabledKey],Jc=(e,t)=>{const o=t[e.doitKey];return se(o)},Qc=(e,t)=>{const o=t[e.numKey];return o==null?null:pe(t[o])},vr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function ef(e,t,o,n=!1){return{props:{...Xc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const D={};return D[`${e}`]=!0,D}),u=l.computed(()=>{const D={};return D[`${e}__titles`]=!0,D[`${r.direction}`]=!0,r.align==="left"&&(D.left=!0),r.scroll===!0&&(D.scrollable=!0),r.shape&&(D[`${r.shape}`]=!0),D}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const D=fe(r.gutter);return D<=0?0:D}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,D=>{c.value!==D&&(c.value=D,W(!1))});const b=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=l.computed(()=>{const D={};return h.value||(D.display="none"),D}),m=l.ref(),h=l.ref(!1),g=()=>{const D=!h.value;$(D)},$=D=>{const x=D;x?(h.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),k=l.ref([]),P=(D,x)=>{k.value[x]=D},_=D=>x=>{P(x,D)},A=(D,x)=>{const F=w.value,V=k.value;if(!F||!V||!V[D])return;const v=V[D];let K=0;r.direction==="vertical"?K=v.offsetTop-(F.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(F.offsetWidth-v.offsetWidth)/2,L(F,K,x?0:.3,r.direction)},L=(D,x,F,V)=>{let v=0;const K=V==="horizontal"?D.scrollLeft:D.scrollTop,z=F===0?1:Math.round(F*1e3/16);function j(){V==="horizontal"?D.scrollLeft+=(x-K)/z:D.scrollTop+=(x-K)/z,++v<z&&vn(j)}j()},M=(D,x)=>{const F=kt(r,D),V={};return V[`${e}__titles-item`]=!0,V.disabled=br(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),x&&(x.class&&(V[`${x.class}`]=!0),x.disabled===!0&&(V.disabled=x.disabled)),V},I=(D,x)=>{const F={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(F,x.style),F},E=(D,x)=>`${kt(r,D)??x}`,T=(D,x)=>{const F=kt(r,D),V={};V[`${e}__popup-item`]=!0,V.disabled=br(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0);const v=vr(r,D,x);return v&&v.disabled===!0&&(V.disabled=v.disabled),V},H=l.computed(()=>(r.data??[]).filter(x=>Zc(r,x)!==!1)),C=(D,x)=>{const F=kt(r,D);if(c.value==F)return;const V=()=>{c.value=F,r.scroll&&A(x,!1),i("update:modelValue",F),i("change",D,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(D,x);Ul(v)?v.then(K=>{K!==!1&&V()}).catch(()=>{V()}):v!==!1&&V()}else V()},O=(D,x)=>function(){C(D,x)},R=(D,x)=>{C(D,x),$(!1)},U=(D,x)=>function(){R(D,x)},W=D=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(F=>kt(r,F)===c.value);x!==-1&&A(x,D)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const J=(D,x)=>{if(a.item)return a.item({item:D,index:x});const F=vr(r,D,x),V=[];if(a.text){const j=a.text({item:D,index:x});V.push(j)}else{const j=[];if(F?.doit===!0||Jc(r,D)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=l.h("view",Q);j.push(ne)}const B=F?.num??Qc(r,D);if(B){let Q="";const ne=pe(B);ne>=100?Q="99+":Q=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},G=l.h("view",S,[Q]);j.push(G)}const q={class:`${e}__titles-item-text`};j.push(pr(r,D));const Y=l.h("view",q,j);V.push(Y)}const v={class:`${e}__titles-item-line`},K=l.h("view",v);V.push(K);const z={ref:_(x),class:M(D,F),style:I(D,F),key:E(D,x),onClick:O(D,x)};return l.h("view",z,V)},Z=()=>{const D=a.default?a.default():[];if(D.length===0)for(let F=0;F<H.value.length;F++){const V=H.value[F],v=J(V,F);D.push(v)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,D)},ee=()=>{let D=null;a.navigation?D=a.navigation():D=l.h(o);const x={class:`${e}__navigation`,onClick:g};return l.h("view",x,[D])},re=()=>{const D=[];for(let F=0;F<H.value.length;F++){const V=H.value[F];let v=null;a.popupItem?v=a.popupItem({item:V,index:F}):v=pr(r,V);const K={class:T(V,F),key:E(V,F),onClick:U(V,F)},z=l.h("view",K,[v]);D.push(z)}const x={class:b.value,style:N.value};return l.h("view",x,D)};return()=>{const D=[],x=Z();if(D.push(x),r.showQuickNavigation){const V=ee();D.push(V);const v=re();D.push(v)}const F={class:s.value};return l.h("view",F,D)}}}}const{create:tf,componentName:nf,scope:lf}=ie("tabs-bar"),fl=tf(ef(nf,lf,Rc,!1)),wr=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function rf(e,t,o=!1){return{props:{...of},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex($=>$.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(wr,s);const u=h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const N=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const $=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*s.tabWidth.value}px, 0)`)),b&&(b=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const g=Gt(d.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(d.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},g=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[g])}}}}const{create:af,componentName:sf,scope:uf}=ie("tabs-container"),dl=af(rf(sf,uf,!1)),cf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function ff(e,t,o){return{props:{...cf},setup(n,{emit:r,slots:a}){const i=l.inject(wr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},b=n.emptyIcon??o,N=l.h(b,c),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",m,[h]),$={class:`${e}__empty`},w=l.h("view",$,[N,g]);d.push(w)}const f={class:`${e}`,style:s.value};return l.h("view",f,d)}}}}const{create:df,componentName:hf,scope:gf}=ie("tabs-pane"),hl=df(ff(hf,gf,cl)),mf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function yf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Sr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function xr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function pf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function gl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Tr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function $r(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function ml(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class bf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function vf(){const e=l.getCurrentInstance();return new bf(e.proxy)}function wf(e,t,o,n){return{props:{...mf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=vf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>pf(r,x)!==!1)),c=l.ref(-1),b=()=>{const x=r.modelValue,F=f.value.findIndex(V=>Sr(r,V)===x);c.value!==F&&(c.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,f],()=>{b()});const N=x=>c.value===x,m=x=>{if(x<0&&x>=f.value.length)return!1;const F=f.value[x],v=(ml(r,F,x)??{}).status??gl(r,F);return N(x)||v},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),g=l.computed(()=>({})),$=(x,F,V,v,K)=>{const z={[`${s}__step`]:!0};return K&&(z[`${K}`]=!0),z[`${w.value}`]=!0,v&&(z["is-doit"]=!0),x===c.value?z["is-active"]=!0:F==="done"?z["is-done"]=!0:F==="error"?z["is-error"]=!0:F==="half"?z["is-half"]=!0:V?z["is-disabled"]=!0:z["is-normal"]=!0,z},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),k=(x,F={})=>{const V={...F};return w.value==="start"&&x===f.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},P=(x,F)=>{let V={};if(F<f.value.length-1){const v=F+1;m(F)&&m(v)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},_=x=>f.value.length-1===x,A=(x,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>c.value||c.value===F)return;const V=c.value,v=F;c.value=F,r.scroll&&re(F,!1);const K=Sr(r,x);i("update:modelValue",K);const z={fromIndex:V,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,z)},L=l.ref(!0),M=async(x,F)=>{try{const V=await u.load("stesbar",x,F);Array.isArray(V)&&(d.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,F])=>{x&&M(x,F)},{immediate:!0});const I=(x,F,V,v,K)=>{let z=null;if(a.icon)z=a.icon({item:x,index:F,status:v});else if(v==="done"){const B={};r.iconSize&&(B.width=r.iconSize,B.height=r.iconSize);const q=r.icon??o;z=l.h(q,B)}else{const B=V??`${F+1}`;z=l.h("span",{},[B])}const j={class:"fox-steps-bar__icon",onClick:()=>{K||A(x,F)}};return l.h("view",j,[z])},E=(x,F,V)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:P(x,F)});return l.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const v=r.markIcon??n;x=l.h(v,V)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},H=(x,F,V,v,K)=>{const z=[];if(!_(F)){const q=E(x,F);z.push(q)}const j=I(x,F,V,v,K);z.push(j);const B={class:"fox-steps-bar__head"};return l.h("view",B,z)},C=(x,F,V,v)=>{let K=null;a.main?K=a.main({item:x,index:F,status:V}):K=yf(r,x);const z={class:"fox-steps-bar__main",onClick:()=>{v||A(x,F)}};return l.h("view",z,[K])},O=(x,F,V)=>{let v=null;if(a.sub){v=a.sub({item:x,index:F,status:V});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[v])}return null},R=(x,F)=>{const V=ml(r,x,F)??{},v=V.status??gl(r,x);let K=xr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const z=V.label??$r(r,x),j=[],B=I(x,F,z,v,K);B&&j.push(B);const q=C(x,F,v,K);if(q&&j.push(q),!_(F)){const te=E(x,F);te&&j.push(te)}const Y=l.h("view",{class:"fox-steps-bar__head"},j),Q=V.class,ne=V.style??{};let S=Tr(r,x);V.doit===!0&&(S=!0);const G={ref:ee(F),class:$(F,v,K,S,Q),style:k(F,ne)};return l.h("view",G,[Y])},U=(x,F)=>{const V=ml(r,x,F)??{},v=V.status??gl(r,x);let K=xr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const z=V.label??$r(r,x),j=[],B=r.layout;for(let S of B)if(S==="head"){const G=H(x,F,z,v,K);j.push(G)}else if(S==="main"){const G=C(x,F,v,K);j.push(G)}else if(S==="sub"){const G=O(x,F,v);j.push(G)}else if(S==="mark"){const G=T();j.push(G)}const q=V.class,Y=V.style??{};let Q=Tr(r,x);V.doit===!0&&(Q=!0);const ne={ref:ee(F),class:$(F,v,K,Q,q),style:k(F,Y)};return l.h("view",ne,j)},W=l.ref(),J=l.ref([]),Z=(x,F)=>{J.value[F]=x},ee=x=>F=>{Z(F,x)},re=(x,F)=>{const V=W.value,v=J.value;if(!V||!v||!v[x])return;const K=v[x];let z=0;r.direction==="vertical"?z=K.offsetTop-(V.offsetHeight-K.offsetHeight)/2:z=K.offsetLeft-(V.offsetWidth-K.offsetWidth)/2,D(V,z,F?0:.3,r.direction)},D=(x,F,V,v)=>{let K=0;const z=v==="horizontal"?x.scrollLeft:x.scrollTop,j=V===0?1:Math.round(V*1e3/16);function B(){v==="horizontal"?x.scrollLeft+=(F-z)/j:x.scrollTop+=(F-z)/j,++K<j&&vn(B)}B()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const v=f.value[V],K=R(v,V);x.push(K)}else for(let V=0;V<f.value.length;V++){const v=f.value[V],K=U(v,V);x.push(K)}const F={ref:W,class:h.value,style:g.value};return l.h("view",F,x)}}}}const{componentName:Sf,create:xf,scope:Tf}=ie("steps-bar"),yl=xf(wf(Sf,Tf,Kc,Uc)),$f=Symbol.for("InnerPageScopeKey"),Cf=Symbol.for("PageWrapperKey");function Nf(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(o,n){l.provide($f,!0);const r={};l.provide(Cf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(p.ElDialog,d,f)}}}}const{componentName:Ah,create:Ef,scope:Lh}=ie("dialog-item"),pl=Ef(Nf());let It=0;const Cr="fox-overflow-hidden",Nr=()=>tt?document.body:{classList:[]},kf=e=>[()=>{if(e())try{!It&&Nr().classList.add(Cr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&Nr().classList.remove(Cr)}catch{}}],If={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Of,create:Vf}=ie("overlay"),Df=Vf({props:{...If},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=kf(()=>e.lockScroll),r=l.computed(()=>({[Of]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Ff(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const on=Me(Df,[["render",Ff]]),Rf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Er=2e3;let kr=Er;const Af=(e,t)=>({components:t,props:{...Rf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Er&&(kr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++kr,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},b=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},m=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:b,onOpened:N,onClosed:m}}}),{componentName:Lf,create:Mf}=ie("popup"),Bf=Mf(Af(Lf,{FoxOverLay:on,Close:Pc}));function _f(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bl=Me(Bf,[["render",_f]]),{create:qf}=ie("toast"),Pf=qf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,N=>{N&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=fe(e.iconSize);return l.h(e.icon,{width:N,height:N,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),jf={key:1,class:"fox-toast-title"},zf=["innerHTML"];function Hf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",jf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,zf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const vl=Me(Pf,[["render",Hf]]),Kf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Wf=(e,t,o)=>({props:{...Kf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=bo(),{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=I=>{let T=I.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),a("update:modelValue",T,I),a("change",T,I)},b=l.ref({}),N=I=>{let T=I.target.value;u.active=!0,b.value=n.focusStyle,a("focus",T,I)},m=I=>{setTimeout(()=>{u.active=!1},0);let T=I.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),b.value={},a("blur",T,I)},h=I=>{a("update:modelValue","",I),a("change","",I),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const I={};return g.value||(I.display="none"),I}),w=()=>{a("search",n.modelValue)},k=I=>{a("keyup-input",I),I.key.toLocaleUpperCase()==="ENTER"&&w()},P=I=>{a("click-input",I)},_=I=>{a("click-left-icon",n.modelValue,I)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const I=[];if(r.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},R=l.h("view",O,[r.leftin()]);I.push(R)}const E={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:P,onInput:c,onFocus:N,onBlur:m,onkeyup:k},T=l.h("input",E);I.push(T);const H=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},R=r?.clear?.()??n.clearIcon??o,U=l.h("view",O,[l.h(R)]);H.push(U)}if(r.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=l.h("view",O,[r.rightin()]);H.push(R)}if(H.length>0){const O={class:`${e}__input-inner-right`},R=l.h("view",O,H);I.push(R)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...b.value}};return l.h("view",C,I)};return()=>{const I=[];if(n.label){const H={class:`${e}__search-label`},C=l.h("span",H,[n.label]);I.push(C)}if(r.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",H,[r.leftout()]);I.push(C)}const E=M();if(I.push(E),r.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",H,[r.rightout()]);I.push(C)}const T={class:`${e}`,style:d.value};return l.h("view",T,I)}}}),{componentName:Yf,create:Gf,scope:Uf}=ie("searchbar"),wl=Gf(Wf(Yf,Uf,Te.CircleClose)),Xf=/scroll|auto|overlay/i,Ir=window;function Zf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jf(e,t=Ir){let o=e;for(;o&&o!==t&&Zf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Xf.test(n))return o;o=o.parentNode}return t}function Or(e,t=Ir){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Jf(e.value,t))}),o}const Vr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Qf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function ed(e,t,o){return{props:{...Qf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=Or(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),b=w=>w?w.offsetTop+b(w.offsetParent):0,N=()=>{let w=0,k=0,P="down";if(d.value==window){const _=Vr();u.value&&(w=b(u.value)+u.value.offsetHeight-_-window.innerHeight),k=_}else{const{scrollHeight:_,clientHeight:A,scrollTop:L}=d.value;w=_-A-L,k=L}return f.beforeScrollTop>k?P="up":P="down",f.beforeScrollTop=k,r("scroll-change",k),w<=n.threshold&&P=="down"},m=()=>{_l(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",m,n.useCapture)},g=()=>{d.value&&d.value.removeEventListener("scroll",m,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&m()}),l.onUnmounted(()=>{g()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,g()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},k=l.h("view",w,[a?.default?.()]),P=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=l.h(o,O)}const H={class:"fox-infinite__bottom-box__text"},C=l.h("view",H,[s.loadText.value]);M=[T,C]}const I={class:"fox-infinite__bottom-box"},E=l.h("view",I,M);P.push(E)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const I={class:"fox-infinite__bottom-tips"};M=l.h("view",I,[s.loadMoreText.value]),P.push(M)}}const _={class:"fox-infinite__bottom"},A=l.h("view",_,P),L={class:c.value,ref:u};return l.h("view",L,[k,A])}}}}const{componentName:td,create:nd,scope:ld}=ie("infinite-loading"),Sl=nd(ed(td,ld,cl)),Dr=10;function Fr(e,t){return e>t&&e>Dr?"horizontal":t>e&&t>Dr?"vertical":""}function xl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Tl(){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",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Fr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function od(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",b=()=>f.value==="horizontal",N=()=>{i.value=0,s.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const k=g.touches[0];i.value=k.clientX-e.value,s.value=k.clientY-t.value,r.value=k.clientX,a.value=k.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=Fr(u.value,d.value))},start:g=>{if(N(),g.touches){const k=g.touches[0];e.value=k.clientX,t.value=k.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:b}}const rd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},ad=(e,t,o)=>({props:{...rd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Tl(),d=l.ref(),f=Or(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=l.computed(()=>({[e]:!0})),N=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),g=L=>{const M=+(n.pullDistance||n.headHeight);let I=L;return L>M&&(L<M*2?I=(L+M)/2:I=M+L/4),Math.round(I)},$=(L,M)=>{const I=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<I?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",k=()=>f.value==window?Vr()==0:f.value&&f.value.scrollTop==0,P=L=>{w()&&(k()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},_=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(g(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const U={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,U)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const I={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",I,[N.value]);L.push(E);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},H=l.h("div",T,L),C={class:"fox-pull-refresh-container",style:m.value},O=l.h("div",C,[H,a?.default?.()]),R={ref:d,class:b.value};return xl()?Object.assign(R,{onTouchstart:P,onTouchmove:_,onTouchend:A}):Object.assign(R,{onMousedown:P,onMousemove:_,onMouseup:A}),l.h("div",R,[O])}}}),{componentName:id,create:sd,scope:ud}=ie("pull-refresh"),$l=sd(ad(id,ud,cl));function cd(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(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},b=n.default?n.default():[],N=l.h("div",c,b),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[f,N]):l.h("div",m,[N,f])}}}}const{componentName:fd,create:dd,scope:Mh}=ie("indicator"),Cl=dd(cd(fd));function hd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const gd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function md(e,t,o,n=!1){return{props:{...gd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const k={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(k[`${e}--${r.type??"default"}`]=!0),r.size&&(k[`${e}--${r.size}`]=!0),k}),u=l.computed(()=>{const k={},P=r.textColor??r.color;return P&&(k.color=P),k}),d=(k,P)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(k.indexOf(A)!==-1){const M=k.replace(new RegExp(A,"g"),`<span>${A}</span>`);P.innerHTML=M,P.class["is-highlight"]=!0,_=l.h(r.tag,P)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(k);A&&(P.innerHTML=A,P.class["is-highlight"]=!0,_=l.h(r.tag,P))}return _},f=k=>{a.emit("click",k)};let c="";const b=()=>{const k=i.value;if(!k)return;const P=k.clientWidth;hd(k,_=>{const A=k.innerHTML??"";ge(A)||_<P||(c?o?.show(k,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(k,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let m=null;const h=k=>{m||(m=setTimeout(()=>{b(),m=null},r.showAfter??0))},g=k=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const k=i.value;k&&(k.addEventListener("mouseover",h),k.addEventListener("mouseleave",g))},w=()=>{const k=i.value;k&&(k.removeEventListener("mouseover",h),k.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||w()}),()=>{const k={onClick:f,class:s.value,style:u.value,ref:i};let P=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const I=M[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const E=pe(r.digits),T=pe(r.decimalLength),H=se(r.autoPadding);let C=`${M[0].children}`,O=C.split("").reverse().join("");O=Rt(O,T,H,E,r.separator),C=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(P=d(C,k)),P||(k.innerHTML=C,P=l.h(r.tag,k))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const I=M[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const E=`${M[0].children}`;P=d(E,k),P||(k.innerHTML=E,P=l.h(r.tag,k))}}}P||(P=l.h(r.tag,k,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return P;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const I={},E=r.color;E&&(I.color=E);const T={class:M,style:I};A=l.h("view",T,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const I={},E=r.color;E&&(I.color=E);const T={class:M,style:I};A=l.h("view",T,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const I={},E=r.color;E&&(I["background-color"]=E);const T={class:M,style:I};A=l.h("view",T)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,P])}}}}const{componentName:yd,create:pd,scope:bd}=ie("text"),Nl=pd(md(yd,bd,Ve,!1)),vd={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:Te.ArrowUp}};function wd(e,t,o){return{props:{...vd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),i=de(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);c.push(g)}const b={class:d.value},N=o(n.icon,b);return N&&c.push(N),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Sd,create:xd,scope:Td}=ie("more-button"),El=xd(wd(Sd,Td,(e,t)=>(e=e??Te.ArrowUp,l.h(p.ElIcon,t,{default:()=>[l.h(e)]}))));function $d(e){return e===window}const Rr=e=>{const t=l.unref(e);if($d(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Cd,create:Nd,scope:_h}=ie("tour"),Ed=Nd({components:{Close:Te.Close,ElPopover:p.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 o=Cd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:$,height:w,left:k,top:P}=r.value,_=e.steps[n.active].offset??m,A=[k+$/2,P+w/2],L=Number(h||$),M=Number(g||w);return{width:`${L+ +_.left+_.right}px`,height:`${M+_.top+_.bottom}px`,top:`${A[1]-M/2-+_.top}px`,left:`${A[0]-L/2-+_.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Rr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},N=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return l.onMounted(()=>{N(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{N(m)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),kd={key:0,class:"fox-tour__content"},Id={key:0,class:"fox-tour__content-top"},Od={class:"fox-tour__content-inner"},Vd={class:"fox-tour__content-bottom"},Dd={class:"fox-tour__content-bottom-init"},Fd={class:"fox-tour__content-bottom-operate"},Rd={key:1,class:"fox-tour__content fox-tour__content-tile"},Ad={class:"fox-tour__content-inner"};function Ld(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",kd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Id,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Od,l.toDisplayString(d.content),1),l.createElementVNode("div",Vd,[l.createElementVNode("div",Dd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Fd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("div",Ad,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const kl=Me(Ed,[["render",Ld]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ot=e=>e==null;class Md{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=xl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Tl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ar(e,t){return new Md(e,t)}var Lr;const Il=typeof window<"u";Il&&((Lr=window?.navigator)!=null&&Lr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Mr=e=>{const t=e;t.key==="Escape"&&ht.forEach(o=>o(t))},Bd=e=>{l.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Mr),Il&&ht.push(e)}),l.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&Il&&document.removeEventListener("keydown",Mr)})},Ol="fox-focus-trap.focus-after-trapped",Vl="fox-focus-trap.focus-after-released",_d="fox-focus-trap.focusout-prevented",Br={cancelable:!0,bubbles:!1},qd={cancelable:!0,bubbles:!1},_r="foxFocusAfterTrapped",qr="foxFocusAfterReleased",Pd=Symbol("foxFocusTrap"),Dl=l.ref(),rn=l.ref(0),Fl=l.ref(0);let an=0;const Pr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},jd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},jr=(e,t)=>{for(const o of e)if(!jd(o,t))return o},zd=e=>{const t=Pr(e),o=jr(t,e),n=jr(t.reverse(),e);return[o,n]},Hd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Fl.value=window.performance.now(),e!==o&&Hd(e)&&t&&e.select()}};function zr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Kd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=zr(e,n),e.unshift(n)},remove:n=>{e=zr(e,n),e[0]?.resume?.()}}},Wd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==o)return},Hr=Kd(),Yd=()=>rn.value>Fl.value,sn=()=>{Dl.value="pointer",rn.value=window.performance.now()},Kr=()=>{Dl.value="keyboard",rn.value=window.performance.now()},Gd=()=>(l.onMounted(()=>{an===0&&(document.addEventListener("mousedown",sn),document.addEventListener("touchstart",sn),document.addEventListener("keydown",Kr)),an++}),l.onBeforeUnmount(()=>{an--,an<=0&&(document.removeEventListener("mousedown",sn),document.removeEventListener("touchstart",sn),document.removeEventListener("keydown",Kr))}),{focusReason:Dl,lastUserFocusTimestamp:rn,lastAutomatedFocusTimestamp:Fl}),un=e=>new CustomEvent(_d,{...qd,detail:e}),{componentName:qh,create:Ud,scope:Ph}=ie("focus-trap"),Xd=Ud({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[_r,qr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Gd();Bd(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:g,altKey:$,ctrlKey:w,metaKey:k,currentTarget:P,shiftKey:_}=h,{loop:A}=e,L=g==="Tab"&&!$&&!w&&!k,M=document.activeElement;if(L&&M){const I=P,[E,T]=zd(I);if(E&&T){if(!_&&M===T){const C=un({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(E,!0))}else if(_&&[E,I].includes(M)){const C=un({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(T,!0))}}else if(M===I){const C=un({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(Pd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",b)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",b))});const d=h=>{o(_r,h)},f=h=>o(qr,h),c=h=>{const g=l.unref(n);if(!g)return;const $=h.target,w=h.relatedTarget,k=$&&g.contains($);se(e.trapped)||w&&g.contains(w)||(r=w),k&&o("focusin",h),!s.paused&&se(e.trapped)&&(k?a=$:Je(a,!0))},b=h=>{const g=l.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!$n($)&&!g.contains($)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=un({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&g.contains($)||o("focusout",h)}};async function N(){await l.nextTick();const h=l.unref(n);if(h){Hr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Ol,Br);h.addEventListener(Ol,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let k=e.focusStartEl;Gl(k)||(Je(k),document.activeElement!==k&&(k="first")),k==="first"&&Wd(Pr(h),!0),(document.activeElement===g||k==="container")&&Je(h)})}}}function m(){const h=l.unref(n);if(h){h.removeEventListener(Ol,d);const g=new CustomEvent(Vl,{...Br,detail:{focusReason:i.value}});h.addEventListener(Vl,f),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Yd())&&Je(r??document.body,!0),h.removeEventListener(Vl,d),Hr.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&N(),l.watch(()=>e.trapped,h=>{se(h)?N():m()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Zd,create:Jd,scope:zh}=ie("floating-window"),Qd=Symbol.for("InnerPageScopeKey"),eh=Symbol.for("PageWrapperKey"),th={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},nh=Jd({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Xd},props:{...th},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Zd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,S=>{n.value=S});const a=l.computed(()=>n.value===!1?!1:!M.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=l.computed(()=>{const S={};return ot(i.value)?S.left="auto":S.left=De(i.value),ot(s.value)?S.top="auto":S.top=De(s.value),ot(u.value)?S.right="auto":S.right=De(u.value),ot(d.value)?S.bottom="auto":S.bottom=De(d.value),ot(e.zIndex)||(S["z-index"]=De(e.zIndex)),ot(A.value)||(S.height=A.value),ot(L.value)||(S.width=L.value),S}),b=l.computed(()=>e.closeIcon??Te.Close),N=l.computed(()=>e.collapseIcon??Te.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),k=l.ref(),P=l.ref(null),_=l.ref(null),A=l.computed(()=>De(e.height)||""),L=l.computed(()=>De(e.width)||""),M=l.ref(se(e.collapse)),I=(S,G=!0)=>{M.value!==S&&(M.value=S,S?x():F(),t("update:collapse",S),S&&typeof H.onHide=="function"?H.onHide():!S&&typeof H.onShow=="function"&&H.onShow())};l.watch(()=>e.collapse,S=>{I(S)});const E=()=>{T()},T=S=>{S=S??!M.value,I(S)};l.provide(Qd,!0);const H={setCollapse:I,setFixedNavVisible:S=>{ee.value=S}};l.provide(eh,H);const C=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},O=l.ref(null),R=l.computed(()=>!e.fixedNavTeleport),U=l.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),W=l.ref(""),J=l.computed(()=>{const S={};return W.value?S.top=W.value:e.collapseTop&&(S.top=e.collapseTop),S}),Z=l.ref(M.value),ee=l.computed({set:S=>{Z.value=S},get:()=>n.value===!1?!1:Z.value});let re=null;const D=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),ee.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},F=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,d.value=null},v={x:0,y:0},j=Ar(S=>{if(!k.value)return;const G=k.value;if(V(),e.origin==="left-top")i.value=G.offsetLeft,s.value=G.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,d.value=te-(G.offsetTop+G.offsetHeight),v.x=i.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(G.offsetLeft+G.offsetWidth),d.value=oe-(G.offsetTop+G.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(G.offsetLeft+G.offsetWidth),s.value=G.offsetTop,v.x=u.value,v.y=s.value}},S=>{if(!k.value)return;const G=k.value;V(),e.origin==="left-top"?(i.value=v.x+S.x,s.value=v.y+S.y,G.style.left=De(i.value),G.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=v.x+S.x,d.value=v.y-S.y,G.style.left=De(i.value),G.style.bottom=De(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,G.style.right=De(u.value),G.style.bottom=De(d.value)):(u.value=v.x-S.x,s.value=v.y+S.y,G.style.right=De(u.value),G.style.top=De(s.value))}),B={x:0,y:0},Q=Ar(S=>{O.value&&(B.x=O.value.offsetLeft,B.y=O.value.offsetTop)},S=>{if(!O.value)return;const G=B.y+S.y;W.value=`${G}px`}),ne=()=>{if(k.value){const S=k.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=S}};return l.onMounted(()=>{if(e.draggable&&k.value){const S=[];P.value&&S.push(P.value),e.footerDraggable&&(ne(),_.value&&S.push(_.value)),j.open(S)}e.collapse===!0&&I(e.collapse,!1),O.value&&Q.open(O.value)}),l.onBeforeUnmount(()=>{e.draggable&&P.value&&j.close(),O.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:b,onClose:C,dialogRef:k,headerRef:P,onClickToggle:E,collapseIcon:N,collapseText:m,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:ee,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:D,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),lh={ref:"headerRef",class:"fox-floating-window__header"},oh={class:"fox-floating-window__title"},rh={class:"fox-floating-window__tools"},ah={class:"fox-floating-window__body"},ih={class:"fox-floating-window__fixednav__text"};function sh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",lh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",oh,l.toDisplayString(e.title),1),l.createElementVNode("div",rh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",ah,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ih,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Rl=Me(nh,[["render",sh]]);function uh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return mo(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hh,create:ch,scope:Kh}=ie("domain-provider"),Al=ch(uh()),fh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function dh(e,t){return{inheritAttrs:!1,props:fh,setup(o,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,N)=>{if(f===null){a.set(b,{visible:null,callback:N});return}r.has(b)&&f.unobserve(b),r.set(b,{visible:null,callback:N}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}r.has(b)&&(r.delete(b),f.unobserve(b))};let u=o.initialVisibleObserverSize;Ja({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const c=(b,N,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let $=!1;g.intersectionRatio>0&&($=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(k){console.error(k)}}},{root:b,rootMargin:N,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([b,N])=>{if(N||!b||f)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&c(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:hh,scope:Yh}=ie("rolling-provider"),Ll=hh(dh()),gh=[Vn,Fn,Rn,An,Bn,we,Pn,jn,$t,zn,Hn,Kn,Wn,Yn,Gn,Un,Zn,Jn,Qn,el,ln,ll,ol,rl,al,il,sl,ul,fl,dl,hl,yl,pl,on,bl,vl,wl,Sl,$l,Nt,tn,Cl,Nl,El,kl,Rl,Al,Ll],mh=new Ia(gh,[Da],"4.0.0");Object.defineProperty(y,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(y,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(y,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(y,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(y,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(y,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(y,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(y,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(y,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(y,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(y,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(y,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(y,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(y,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(y,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(y,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(y,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(y,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(y,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(y,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(y,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(y,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(y,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(y,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(y,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(y,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(y,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(y,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(y,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(y,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(y,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(y,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(y,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(y,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(y,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(y,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(y,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(y,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(y,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(y,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(y,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(y,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(y,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(y,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(y,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(y,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(y,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(y,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(y,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(y,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(y,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(y,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(y,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(y,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(y,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(y,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(y,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(y,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(y,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(y,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(y,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(y,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(y,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(y,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(y,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(y,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(y,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(y,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(y,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(y,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(y,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(y,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(y,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(y,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(y,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(y,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(y,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(y,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(y,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(y,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(y,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(y,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(y,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(y,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(y,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(y,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(y,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(y,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(y,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(y,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(y,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(y,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(y,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(y,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),y.AutocompleteItem=Jn,y.Broadcast=Cn,y.BroadcastKey=be,y.CascaderItem=Zn,y.CheckboxItem=rl,y.Content=An,y.DataItemsKey=at,y.DateItem=Kn,y.DateUtils=Ae,y.DialogItem=pl,y.Domain=zt,y.DomainKey=Le,y.DomainProvider=Al,y.FloatingWindow=Rl,y.FooterBar=Rn,y.FoxAutocompleteItem=Jn,y.FoxCascaderItem=Zn,y.FoxCheckboxItem=rl,y.FoxContent=An,y.FoxDateItem=Kn,y.FoxDialogItem=pl,y.FoxDomainProvider=Al,y.FoxFloatingWindow=Rl,y.FoxFooterBar=Rn,y.FoxGroup=Bn,y.FoxGroupSetting=ul,y.FoxHeaderBar=Fn,y.FoxHintText=$t,y.FoxIndicator=Cl,y.FoxInfiniteLoading=Sl,y.FoxInputItem=zn,y.FoxInputNumberItem=Un,y.FoxItem=we,y.FoxMapping=Nt,y.FoxMoneyItem=Gn,y.FoxMoreButton=El,y.FoxOverLay=on,y.FoxPage=Vn,y.FoxPopup=bl,y.FoxPrice=tn,y.FoxPullRefresh=$l,y.FoxRadioItem=ol,y.FoxRateItem=al,y.FoxRollingProvider=Ll,y.FoxRowItem=jn,y.FoxSearchBar=wl,y.FoxSelectItem=Hn,y.FoxSlotItem=Pn,y.FoxStepsBar=yl,y.FoxSwitchItem=il,y.FoxTableItem=ll,y.FoxTableMappingColumn=Qn,y.FoxTableRadioColumn=el,y.FoxTableSetting=ln,y.FoxTabsBar=fl,y.FoxTabsContainer=dl,y.FoxTabsPane=hl,y.FoxText=Nl,y.FoxTimeItem=Wn,y.FoxTimeSelectItem=Yn,y.FoxToast=vl,y.FoxTour=kl,y.FoxTreeSelectItem=sl,y.Group=Bn,y.GroupSetting=ul,y.HeaderBar=Fn,y.HintText=$t,y.Indicator=Cl,y.InfiniteLoading=Sl,y.InputItem=zn,y.InputNumberItem=Un,y.Item=we,y.Mapping=Nt,y.MoneyItem=Gn,y.MoreButton=El,y.OverLay=on,y.Page=Vn,y.Popup=bl,y.Price=tn,y.PriorityPolicy=Re,y.PullRefresh=$l,y.RadioItem=ol,y.RateItem=al,y.RollingProvider=Ll,y.RowItem=jn,y.SearchBar=wl,y.SelectItem=Hn,y.SlotItem=Pn,y.StepsBar=yl,y.SwitchItem=il,y.TableItem=ll,y.TableMappingColumn=Qn,y.TableRadioColumn=el,y.TableSetting=ln,y.TabsBar=fl,y.TabsContainer=dl,y.TabsPane=hl,y.Text=Nl,y.TimeItem=Wn,y.TimeSelectItem=Yn,y.Toast=vl,y.Tour=kl,y.TreeSelectItem=sl,y.UniqueID=Vo,y.ValidateSchema=fo,y.ValidateSchemaKey=Ke,y.cancelRaf=Gr,y.clearNonNumber=aa,y.clone=xn,y.compareTo=bn,y.createBroadcast=Bt,y.createValidateSchema=qt,y.debounce=St,y.debounceRef=va,y.decimalLength=oo,y.default=mh,y.defineBroadcast=ca,y.defineConfigDomain=mo,y.defineDataItem=po,y.defineDomain=En,y.defineItem=Se,y.definePageState=vo,y.defineSimpleItem=bo,y.deleteGlobalValidator=ma,y.disabledProperty=Oe,y.divide=pn,y.excludeProps=Ce,y.extend=et,y.floatData=ua,y.getGlobalValidateCheckEvents=so,y.getGlobalValidateResetEvents=co,y.getPageContentAreaHeight=Kt,y.getPageContentAreaWidth=Wt,y.getPageFooterAreaHeight=Tt,y.getPageHeaderAreaHeight=xt,y.getRootDomain=it,y.hasSymbol=Zl,y.includeProps=ao,y.indexOf=ia,y.installRules=yo,y.integerLength=lo,y.isArray=Xr,y.isArrayLike=Ql,y.isBrowser=tt,y.isDate=Qr,y.isESModule=ta,y.isEmptyString=ge,y.isEqual=He,y.isFunction=wn,y.isHidden=Mt,y.isInnerPage=xa,y.isMap=Zr,y.isNil=$n,y.isNumberString=no,y.isObject=ze,y.isPlainObject=Sn,y.isPromise=Ul,y.isRegExp=to,y.isSet=Jr,y.isString=Gl,y.isSubPage=Ta,y.isSymbol=ea,y.isTouch=xl,y.isWindow=Jl,y.lastIndexOf=sa,y.makeArray=ra,y.merge=eo,y.multiply=Kl,y.negate=Wl,y.nextTick=la,y.numberFormat=Rt,y.objectToString=Xl,y.once=wa,y.overrideGlobalValidateHandler=ha,y.property=ke,y.raf=vn,y.readonlyProperty=Ie,y.setGlobalValidateCheckEvents=ya,y.setGlobalValidateHandler=da,y.setGlobalValidateMessages=ba,y.setGlobalValidateResetEvents=pa,y.setGlobalValidator=ga,y.throttle=go,y.toBoolean=se,y.toNumber=pe,y.toPadding=qe,y.toPx=fe,y.toPxDesc=Ne,y.toTypeString=At,y.toValue=de,y.tryTimes=jt,y.typeOf=Lt,y.unNumberFormat=Yl,y.updatePageState=kn,y.useBroadcast=bt,y.useDomain=We,y.useExpose=xe,y.useInnerSize=Dn,y.usePageState=Ht,y.usePosition=ko,y.useRawTouch=Tl,y.useRect=Rr,y.useSize=Gt,y.useTouch=od,y.valueLength=pt,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});