@fox-js/foxui-pc 4.0.1-120 → 4.0.1-121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon Dec 09 2024 09:24:03 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),st=require("@fox-js/validator"),v=require("element-plus"),Ee=require("@element-plus/icons-vue"),_e=require("@fox-js/i18n"),Mt=window,na=typeof window<"u";function la(){return typeof Mt<"u"?Mt.requestAnimationFrame||Mt.webkitRequestAnimationFrame||function(e){Mt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function oa(e){na?cancelAnimationFrame(e):clearTimeout(e)}const zo=la();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Wed Dec 11 2024 11:26:10 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),st=require("@fox-js/validator"),v=require("element-plus"),ke=require("@element-plus/icons-vue"),Be=require("@fox-js/i18n"),Bt=window,oa=typeof window<"u";function ra(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function aa(e){oa?cancelAnimationFrame(e):clearTimeout(e)}const Ho=ra();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function zt(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=Ce(e),t=Ce(t),[e,t]=Wn(Ce(e),Ce(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Ho(e,t);return o?o==2?"-"+Ce(r):e.length<r.length?Ce(r.substring(1)):"-"+Ce(bn(r)):Ce(r)}function bn(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 Ho(t,a)}function Ce(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 Wn(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 Ho(e,t){[e,t]=Wn(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 pe=(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))(pe||{});function It(e,t=0,o=pe.HALF_EVEN){if(o===pe.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=It(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Wl(r[1],a,n,o)?(n?"-":"")+wn(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&&Wl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Wl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===pe.DOWN||!o&&n===pe.FLOOR||o&&n===pe.CEILING)return!1;if(n===pe.UP||o&&n===pe.FLOOR||!o&&n===pe.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 pe.HALF_DOWN:return!1;case pe.HALF_UP:return!0;case pe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(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 Pn(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=Tt(e),t=Tt(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=Tt(e.replace(".","")),t=Tt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(y+=parseInt(e[u[V]--])*parseInt(t[V]));y+=s,s=Math.floor(y/10),c=y%10+c,f--}return c=Tt(ra(c,a)),o==1&&(c="-"+c),c}function ra(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 Tt(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 Dn(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=Ce(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ce(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ce(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ce(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ce(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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=zt(u,"-"+t),f++;s+=f,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?"-":"")+Ce(It(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),zt(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Yl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Gl(e),Gl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,Pn(t,It(Dn(e,t),0,pe.FLOOR)));return o+n}function Gl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ul(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]=Wn(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 ue{value;static RoundingModes=pe;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=Ce(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+Ce(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=ue.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=ue.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 ue.getPrettyValue(this.value,t,o)}static round(t,o=0,n=pe.HALF_EVEN){if(t=ue.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return It(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ue(It(this.value,t,o))}static floor(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,pe.FLOOR)}static ceil(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,pe.CEILING)}static add(t,o){return t=ue.validate(t),o=ue.validate(o),zt(t,o)}add(t){return new ue(zt(this.value,t.getValue()))}static subtract(t,o){return t=ue.validate(t),o=ue.validate(o),Fn(t,o)}subtract(t){return new ue(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ue.validate(t),o=ue.validate(o),Pn(t,o)}multiply(t){return new ue(Pn(this.value,t.getValue()))}static divide(t,o,n){return t=ue.validate(t),o=ue.validate(o),Dn(t,o,n)}divide(t,o){return new ue(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ue.validate(t),o=ue.validate(o),Yl(t,o)}modulus(t){return new ue(Yl(this.value,t.getValue()))}static compareTo(t,o){return t=ue.validate(t),o=ue.validate(o),Ul(t,o)}compareTo(t){return Ul(this.value,t.getValue())}static negate(t){return t=ue.validate(t),Rn(t)}negate(){return new ue(Rn(this.value))}}function Ko(e,t){return ue.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return ue.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,ue.compareTo(e,t)}function Wo(e){return ue.negate(e)}function Xt(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="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",y=s.split("").reverse();for(let V=0;V<y.length;V++)d+=y[V]+((V+1)%n==0&&V+1!=y.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function Yo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Gn=zo,aa=Array.isArray,ia=e=>Zt(e)==="[object Map]",sa=e=>Zt(e)==="[object Set]",ua=e=>e instanceof Date,Ln=e=>typeof e=="function",Go=e=>typeof e=="string",ca=e=>typeof e=="symbol",Ze=e=>e!==null&&typeof e=="object",Uo=e=>Ze(e)&&Ln(e.then)&&Ln(e.catch),Xo=Object.prototype.toString,Zt=e=>Xo.call(e),Mn=e=>Zt(e)==="[object Object]",Zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function fa(e){return e.__esModule||Zo&&e[Symbol.toStringTag]==="Module"}const da=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...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 f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=ft(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)ft(!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)&&!Mn(i))continue;a=Bn(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)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=da?Promise.resolve():null;function ha(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 ie(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function we(e){return typeof e=="number"?e:Number(e)}const ma={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Ht(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Jo(e){return e&&typeof e=="object"&&"setInterval"in e}function Jt(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,o=Ht(e);return o==="function"||Jo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function er(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 ga(e,t=[]){let o=t;return e!=null&&(Qo(Object(e))?er(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Ht(e),n=Ht(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],f=t[s];if(!Xe(u,f))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(!Xe(a,i))return!1}return!0}return!1}const dt=typeof window<"u";function Un(e){return e==null}function tr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(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 lr(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 or(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 Xl(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 pa(e,t=!0,o=!0){t?e=Xl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Xl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function ya(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rr(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(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 ba=(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},ve=Symbol.for("BroadcastKey");class Xn{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="*"):tr(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 Qt(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function wa(e,t,o){const n=o;if(n[ve])return n[ve];const r=l.inject(ve,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function Et(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const ut=e=>e.default??e;class xa{error(t,o){const n=o,r=o||l.hasInjectionContext()?Et(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Et(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Et(t):null;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=n||l.hasInjectionContext()?Et(n):null,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 kt=new xa;function Sa(e){kt=e}function Ta(e){kt?Object.assign(kt,e):kt=e}function $a(e,t){ut(st).setValidator(e,t)}function Ca(e){ut(st).deleteValidator(e)}let ar=["blur","clear"];function Na(e){ar=e}function ir(){return ar}let sr=["focus","change","setValue"];function Ea(e){sr=e}function ur(){return sr}function ka(e){ut(st).messages(e)}function $t(...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 Bt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ze=Symbol("ValidateSchemaKey");class cr{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(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Bt($t(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=Bt(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=kt;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?ut(st).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?ut(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(st).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=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Bt(t):this.rules=Bt([t]);const n=$t(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=$t(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=ut(st),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function en(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 cr(t,o,e)}const Kt=Symbol.for("EventEmitterKey");class fr{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 Vt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function dr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ia(e,t){const o=Vt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Va(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function tn(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ae=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class nn{_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 Oa=new nn;function gt(){return Oa}function Je(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Sn=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=gt());const s=e||t.prop||t.name;let u=new nn(s);u.parent=i;const f=V=>{a[Sn]||y(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Sn]??null,y=V=>{const g={};ft(!0,g,l.toRaw(V)),a[Sn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&y(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const V=l.inject(ve,null),g=Qt(a,V,s,n);u.broadcast=g,a[ve]=g,l.provide(ve,g),a.broadcast=(S,b,...C)=>Reflect.apply(g.emit,g,[S,b,...C]);const h=l.inject(ze,null),m=en(a,h,{componentName:""});u.validateSchema=m,a[ze]=m,l.provide(ze,m),a[ht]=new Map,a.validate=(S=!0)=>{const b=[];let C=null;const j={deep:!1};if(S===!0)C={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;C={name:M=>M?L.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(j,L),Array.isArray(L.include)&&L.include.length>0){const M=L.include;C={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const M=L.exclude;C={name:O=>O?M.indexOf(O)===-1:!1}}else C={name:"*"}}if(C){const L=g?.emitToChildren(C,"validate",j);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let M=[];return L.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(M=[...M,...O.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,C=!1)=>{if(C===!0){Reflect.ownKeys(S).forEach(L=>{let M=String(L);const O={componentName:"",fieldName:M,pureDataValidate:!0};if(u){const R=gr(u,M,O,g,m);a[ht].set(M,R);const N=S[M];N&&R.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),L={name:M=>j.includes(M)};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const C=S;b={name:j=>j?C.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const C=S;if(Array.isArray(C.include)&&C.include.length>0){const j=C.include;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const j=C.exclude;b={name:L=>L?j.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=c();if(!b)return;const C={};if(ft(!0,C,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=C[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=C[L]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys(C).forEach(L=>{j.includes(L)||(b[L]=C[L])})}else Object.assign(b,C);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?f(S):g?.emitToChildren({name:b},"setModelValue",S)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[ht]&&(a[ht].clear(),a[ht]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function hr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=gt());const i=e||t.prop||t.name;let s=new nn(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[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function mr(e,t,o){const r=Je(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ve,null);let s=Qt(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=en(r,u,e);r[ze]=f,l.provide(ze,f),mr(r,f,a),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,C=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;C===!0&&e.disabled===!0||j===!0&&e.readonly===!0||L===!0&&Jt(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=f?.validate();h.push(b)}if(m){let b=null;const C={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign(C,j),Array.isArray(j.include)&&j.include.length>0){const L=j.include;b={name:M=>M?L.indexOf(M)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const L=j.exclude;b={name:M=>M?L.indexOf(M)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",C);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let C=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&(C=[...C,...j.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>f?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&f?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new fr(r);r[Kt]=c;const d=Vt((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ur()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Kt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(g,...h)=>{c&&Reflect.apply(c.emit,c,[g,...h])},onEvent:(g,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(g,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function gr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=en({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,y=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),V=!0,y=g.deep??!1}else typeof c=="boolean"&&(y=c),V=!0;if(V&&u){const g=u.validate();d.push(g)}if(y){let g=null;const h={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const m=c;g={name:S=>S?m.indexOf(S)!==-1:!1}}else if(c!=null&&typeof c=="object"){const m=c;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&f){const m=f.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=Qt(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function pr(){let t=l.getCurrentInstance()?.proxy,o=new fr(t);return t[Kt]=o,l.onUnmounted(()=>{o?.destroy(),t[Kt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&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:`${de(e,t)}px`:"";function de(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(dt){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 ot="PageStateKey";function We(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function _n(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=We(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=We(o.footerPadding??t.footerPadding),e.contentPadding=We(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function vr(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=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(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,f=e.get("footerBarHeight")??0;_n(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(ot);d&&(n.height=Wt(e,d),n.width=Yt(e,d),l.watch([()=>Wt(e,d),()=>Yt(e,d)],([V,g])=>{c.height=V,c.width=g}));const y=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,g,h=-1,m=-1,S=0,b=0])=>{_n(c,g,t,y,h,m,S,b)}),e.set(ot,c),c}function ln(e){return e.get(ot)}function Ot(e,t){if(t=t??e.get(ot),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Pt(e,t){if(t=t??e.get(ot),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Wt(e,t){if(t=t??e.get(ot),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Pt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Yt(e,t){return t=t??e.get(ot),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Pa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(ot)}var Be=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Be||{});function Tn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=Je();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(Tn(u,n))return u}const i=e.value;return Tn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Tn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return ie(o)})}function Re(e){return De(e,"disabled",0,function(o){return ie(o)})}function he(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 yr=new Map,Gt=new Map;let qn=null;function Fa(e){qn=e}function br(e,t,o){if(o){let n=Gt.get(o);n||(n=new Map,Gt.set(o,n)),n.set(e,t)}else yr.set(e,t)}function He(e,t,o){!o&&qn&&(o=qn(e)??void 0);let n=null;if(o){let r=Gt.get(o);r&&(n=r.get(t))}return n||(n=yr.get(t)),n}function Ra(e,t){for(let o in e){const n=e[o];br(o,n,t)}}function Aa(e){Gt.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(dt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ba(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class _a{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=>{if(a.install)t.use(a);else if(a.name){const i=Ba(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=gt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=dr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,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=ft({},La(),t.safeAreaInset),i=Ma(n,r),s=ft({},i.pageLayout,t.pageLayout);o=o??gt(),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){Fa(t)}setAPI(t,o,n){br(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){Ra(t,o)}clearScopeAPI(t){Aa(t)}getRootDomain(){return gt()}}const qa=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],ja=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],za=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);qa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ja.forEach(r=>{e.use(r)})};function ae(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 $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={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}},Ie={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}},wr={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}},xr={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}},Sr=[];for(const e in xr)Sr.push(e);const Ha=Symbol.for("InnerPageScopeKey"),Ka={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}},Wa=(e,t)=>({inheritAttrs:!0,props:{...xe,...wr,...Ka},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Ha,!1);if(r){const c=vr(r,o);$e({getPageContentHeight:()=>Wt(r,c),getPageContentWidth:()=>Yt(r,c),getPageHeaderHeight:()=>Ot(r,c),getPageFooterHeight:()=>Pt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[y,V])=>{if(c&&y){const g=l.toRaw(y),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h)}if(d&&V){const g=l.toRaw(V),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ya,create:Ga,scope:Dh}=ae("page"),Jn=Ga(Wa(Ya));function on(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Qn(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 Ua=(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=Je(),s=i?ln(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=We(r.padding??s.headerPadding);return Object.assign(E,x),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(x.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const x=We(r.padding);Object.assign(E,x)}return E}),V=l.ref(null),g=()=>{if(s&&V.value&&!Jt(V.value)){if(!n){const E=on(V.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(tn(g,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function C(){a.emit("click-title")}function j(){a.emit("click-right")}function L(){a.emit("click-right-text")}const M=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:L},[r.rightText]);E.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},R=()=>{if(!r.titleShow)return null;const E=[],x=a.slots.default?a.slots.default():null;if(x)E.push(x);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],x=a.slots.bottom?a.slots.bottom():null;return x&&E.push(x),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],$=M();$&&q.push($);const k=R();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:c.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const x={class:f.value,style:m.value,ref:V};return l.h("view",x,E)}}}),{componentName:Xa,create:Za,scope:Ja}=ae("header-bar"),el=Za(Ua(Xa,Ja,Ee.ArrowLeft));function Qa(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=Je(),i=a?ln(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=We(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=We(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(i&&c.value&&!Jt(c.value)){if(!o){const g=on(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(tn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const V=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=Ne(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(g.paddingTop=Ne(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(g.paddingLeft=Ne(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(g.paddingRight=Ne(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(g.paddingBottom=Ne(f.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,g)}}}}const{componentName:ei,create:ti,scope:Fh}=ae("footer-bar"),tl=ti(Qa(ei));function ni(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Je(),r=l.computed(()=>({[e]:!0})),a=n?ln(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=We(o.padding);Object.assign(a.contentPadding,V)}const c=Ot(n,a),d=Pt(n,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,f.height=y,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=We(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Qn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Pt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:li,create:oi,scope:Rh}=ae("content"),ri=oi(ni(li));function ai(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 qe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=qe(ri,[["render",ai]]),yt="GroupStateKey",Tr=Symbol.for("GroupScopeKey");function rn(){return l.inject(Tr,!1)}function an(e=!0){l.provide(Tr,e)}function ii(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Un(r)||(e[n]=r)})}function si(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ii(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(yt,a),a}function $n(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(yt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=de(a),d=de(i);s||(s=f.type??"grid");const y=()=>{const V=t===""||t===-1,g=de(t);let h=we(o);const m=de(n);if(!V){let C=(g-(h-1)*m)/h;for(;d!==-1&&C>d;)h++,C=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&C<c;)h--,C=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&y()},50)}}function sn(e,t=!1){let o;return t?o=e.getForParent(yt):o=e.get(yt),o.layout}function un(e,t=!1){let o;return t?o=e.getForParent(yt):o=e.get(yt),o.order}function Zl(e,t=1){if(t==="stretch")return-1;const o=we(t);return o===-1?100:100*o/e}function cn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Zl(t.column,o),i>0&&(a.width=`${i}%`);const s=Zl(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 fn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=we(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=we(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 $r=Symbol("RollingStateKey");function ui(e){l.provide($r,e)}function ci(){return l.inject($r,null)}function jn(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 fi(e){let t=jn(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=jn(o),document.body.removeChild(o)}return t}function di(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const hi={...xe,...wr,...xr};function mi(e,t,o){return{props:hi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,Sr),i=si(a,{type:n.type}),s=rn();an(!0);const u=n.rollingDisplay?ci():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?sn(a,!0).value:null),y=l.getCurrentInstance(),V=(z,Z=!1)=>{const te=y?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[te,T])=>{if(z&&te){const K=l.toRaw(te),Q=l.toRaw(z),ne=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{ne.includes(ce)||(Q[ce]=[])}),V(Q)}if(Z&&T){const K=l.toRaw(T),Q=l.toRaw(Z),ne=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{ne.includes(ce)||(Q[ce]=[])}),V(Q,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Z=s?un(a,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const te=fn(Z,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=cn(Z,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ne(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const te=di(R.value,i.layout.value.column,i.layout.value.gutter);Z=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),C=l.toRef(n,"column"),j=l.computed(()=>s||c.value?!0:ie(n.isWrap)),L=[],M=z=>{L.push(z)},O=()=>{let z=L.length;L.splice(0,z)},R=l.ref(-1),N=z=>{const Z=Qn(z).width;Z>0&&Z!==R.value&&(R.value=Z)};$n(a,R.value,C.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,C,b],([z,Z,te])=>{i.order.index=0,$n(a,z,Z,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),$=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ne(n.height)||""),Y=l.ref(!1),W=l.ref(""),X=l.ref(!1);let U=-1;const ee=(z,Z=!0)=>{const te=$.value;if(te&&Y.value!==z){if(U=U===-1?fi(te):U,X.value=!0,Z)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",X.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${U}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${U}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else X.value=!1,W.value=`${U}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const le=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!Y.value,ee(z)};$e({toggleCollapse:w,doLayout:()=>{L[0]&&(N(L[0]),$n(a,R.value,C.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let P=null,p=!0;const H=z=>{if(n.rules){const Z=l.toRaw(n.rules);V(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);V(Z,!0)}if(dt&&(z&&ee(ie(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];N(Z),window.ResizeObserver&&(P=new window.ResizeObserver(()=>{N(Z)}),P.observe(Z))}},_=()=>{P?.disconnect(),P=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),c.value&&u){let z=null,Z=u.initialHeight;u.observe($.value,te=>{if(te!==f.value)if(te)f.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,f.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),f.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=jn($.value);T<=0?W.value=Z:(W.value=`${T}px`,Z=W.value)}p||_()}})}}),l.onUnmounted(()=>{P?.disconnect(),u&&u.unobserve($.value)});const A=(z="right")=>{const Z=[];if(E.value){const K={class:x.value},Q=l.h("span",K,[E.value]);Z.push(Q)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Z.push(T),Z.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},G=(z,Z,te,T)=>{const K={...m.value};return Z===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:M,key:`${Z}`,class:K,style:S.value},z)};return()=>{if(c.value&&f.value!==!0){const K=n.tag||"div";return l.h(K,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[])}i.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},Q=l.h("div",K,[r.slots.header()]);z.push(Q)}else{const K=[],Q=n.collapsePosition==="left";if(Q&&n.showCollapse){const ne=A("left");ne&&K.push(ne)}if(n.title||r.slots.title){if(n.showMark){const ne={class:{[`${g}__header-mark`]:!0}};n.markColor&&(ne.style={background:n.markColor});const fe=l.h("div",ne);K.push(fe)}if(r.slots.title){const ne=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(ne)}else if(n.title){const ne=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(ne)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!Q&&n.showCollapse){const ne=A("right");ne&&K.push(ne)}if(K.length>0){const ne={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},fe=l.h("div",ne,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=G(te,Z++,0,te.length);z.push(K)}else if(T==="flow"){const K=G(te,Z++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const Q=te[K],ne=G([Q],Z++,K,te.length);z.push(ne)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[z])}else return z}}}}const{componentName:gi,create:pi,scope:vi}=ae("group"),yi=(e,t)=>(e=e??Ee.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),ll=pi(mi(gi,vi,yi));function bi(e){return e===window}const wi=/matrix\((.+)\)/,Cr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(bi(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:f}=window.getComputedStyle(r);if(f){const c=wi.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class xi{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 Si{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 xi,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 Jl=new Si,Nr={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:Ti,create:$i}=ae("price"),Ci=$i({props:{...Nr},setup(e){const t=l.computed(()=>({[Ti]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>At(e.price)==0?"":Xt(e.price,e.decimalLength,!0,we(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}}}),Ni=["innerHTML"],Ei=["innerHTML"];function ki(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,Ni)):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,Ei)):l.createCommentVNode("",!0)],2)}const dn=qe(Ci,[["render",ki]]),{componentName:Cn,create:Ii}=ae("hint-text"),Vi=Ii({components:{Price:dn},props:{...Nr,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),f=(x,q,$,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,U=x.split("-");let ee=[];U[0]==="top"?ee=["top","bottom","right","left"]:U[0]==="bottom"?ee=["bottom","top","right","left"]:U[0]==="left"?ee=["left","top","bottom","right"]:U[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<ee.length;w++){const F=ee[w];if(I[0]=F,U[1]&&(I[1]=U[1]),F==="top"){const P=q.y-Y-e.arrowSize-e.offset;if(P>=0){le.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+$-D:p=q.x+$/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,le.left=p<0?0:p;break}}else if(F==="bottom"){const P=q.y+k+e.arrowSize+e.offset;if(P+Y<=X){le.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+$-D:p=q.x+$/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,le.left=p<0?0:p;break}}else if(F==="left"){const P=q.x-D-e.arrowSize-e.offset;if(P>=0){le.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,le.top=p<0?0:p;break}}else if(F==="right"){const P=q.x+$+e.arrowSize+e.offset;if(P+D<=W){le.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,le.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:le}},c=(x,q,$=10)=>{if(!dt||q===!1||!x)return;n.value=Cr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:W}=f(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0},d=l.ref(0),y=Vt(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const g=l.computed(()=>V.value&&h.value),h=l.ref(!0),m=Vt(x=>{const q=x[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Jl.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeMount(()=>{Jl.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const x={[Cn]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),C=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),j=l.computed(()=>{const x=[`${Cn}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),L=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),M=l.computed(()=>({[`${Cn}__arrow`]:!0})),O=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:b,styles:C,textClasses:j,textStyles:L,arrowClasses:M,arrowStyles:O,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),Oi=["innerHTML"];function Pi(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,Oi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Lt=qe(Vi,[["render",Pi]]);class Er{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 zn={},Di=new Er,pt=new Map,Ut=e=>{if(e){const t=document.getElementById(e);pt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of pt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}pt.clear()}},Fi=e=>{e.unmount=Ut;const t=document.getElementById(e.id);if(t){const o=pt.get(e.id);o?e={...zn,...o,...e}:e={...zn,...e},e.transition=!1;const n=l.createVNode(Lt,e);return l.render(n,t),e.id}},Ri=e=>{e.unmount=Ut;let t=e.id??`hinttext_${Di.get()}`;e={...zn,...e},e.id=t,pt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Lt,e);return l.render(n,o),document.body.appendChild(o),t},Ai=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,t,o={},n=!0){Ai(t);const r=o.id;return r&&pt.has(r)?Fi({...o,message:t,reference:e}):(n&&Ut(),Ri({...o,message:t,reference:e}))},hide(e){Ut(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Li(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Ie},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const s=Je(),u=rn();an(!1);const f=l.computed(()=>u&&s?sn(s,!1).value:null),c=e,d=l.ref(null),y=l.computed(()=>{const T={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:ie(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),V=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ne(r.width));else{const K=u&&s?un(s,!1):null;if(f.value&&K){if(f.value.type==="grid"){const Q=fn(K,f.value,r.span,r.offset);Object.assign(T,Q)}else if(f.value.type==="flow"){const Q=cn(K,f.value,r.span,r.offset,r.width);Object.assign(T,Q)}}}if(typeof V.value=="function"){const K=V.value(i);K&&Object.assign(T,K)}else if(V.value&&typeof V.value=="object"){const K=V.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??ie(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Be.Near),C=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${C.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),M=De(l.toRef(r,"labelWidth"),"labelWidth",Be.Near),O=l.computed(()=>M&&M.value?{width:Ne(M.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){m.value=T},setErrorTip(T){x.errorTip=T},setErrorIcon(T){x.errorIcon=T},setWarnTip(T){x.warnTip=T},setWarnIcon(T){x.warnIcon=T},setInfoTip(T){x.infoTip=T},setInfoIcon(T){x.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){V.value=T}});const q=l.computed(()=>r.infoTip||x.infoTip),$=l.computed(()=>r.infoIcon||x.infoIcon),k=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),Y=l.computed(()=>r.errorTip||x.errorTip),W=l.computed(()=>r.errorIcon||x.errorIcon),X=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),U=()=>X.value.length>0,ee=l.computed(()=>X.value==="error"?Y.value:X.value==="warn"?k.value:X.value==="info"?q.value:""),le=l.computed(()=>X.value==="error"?W.value:X.value==="warn"?D.value:X.value==="info"?$.value:null),I=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${X.value}`]:!0,[`${c}--animate`]:!0};return X.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),w=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":M&&M.value&&(T["padding-left"]=Ne(M.value)),T}),F=l.ref();let P="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,Q,ne])=>{F.value&&(T&&!ge(K)?P?o.show(F.value,K,{...ne,id:P,type:Q},!0):P=o.show(F.value,K,{...ne,type:Q},!0):o.hide(P))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let Q of T)if(Q.intersectionRatio>0){K=!0,K&&a.emit("appear",Q);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{!p||!F.value||(p.unobserve(F.value),p=null)};l.watch(()=>ie(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{ie(r.appearListen)&&H()}),l.onUnmounted(_);const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,Q={class:R.value},ne=l.h("div",Q,[K]);if(T.push(ne),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();T.push(ce)}const fe={class:L.value,style:O.value};return l.h("div",fe,T)},A=()=>{const T=[];if(a.slots.prepend){const Q=a.slots.prepend();T.push(Q)}if(a.slots.default){const Q=a.slots.default();T.push(Q)}if(a.slots.append){const Q=a.slots.append();T.push(Q)}if(a.slots.fixedTip){const Q={class:[`${c}__fixed-tip`]},ne=l.h("div",Q,[a.slots.fixedTip()]);T.push(ne)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},G=()=>{const T=le.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Z=()=>{if(!U())return null;const T=[],K=G();K&&T.push(K);const Q=z();Q&&T.push(Q);const ne={class:I.value,style:w.value};return l.h("div",ne,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],Q=B();Q&&K.push(Q);const ne=A();ne&&K.push(ne);const fe={class:j.value},ce=l.h("div",fe,K);T.push(ce);const ye=Z();ye&&T.push(ye);const Ke=te();Ke&&T.push(Ke);const Le={class:y.value,style:g.value,prop:r.prop};return l.h("div",Le,T)}}}}const{componentName:Mi,create:Bi,scope:_i}=ae("item"),Se=Bi(Li(Mi,_i,Pe,!1));function qi(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=Je(),a=rn();an(!1);const i=l.computed(()=>a&&r?sn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?un(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=fn(d,i.value,o.span,o.offset);Object.assign(c,y)}else if(i.value.type==="flow"){const y=cn(d,i.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=Ne(o.width)),c;else o.width&&(c.width=Ne(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:ji,create:zi,scope:Ah}=ae("slot-item"),ol=zi(qi(ji));function Hi(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=Je(),s=rn();an(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=sn(i,!1),d=un(i,!1);if(c.value&&d)if(c.value.type==="grid"){const y=fn(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=cn(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=Ne(o.width))}else o.width&&(f.width=Ne(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Ki,create:Wi,scope:Lh}=ae("row-item"),rl=Wi(Hi(Ki)),Ge=(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},Ql={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 Yi(e,t,o){return{props:{...xe,...Ie,...Ql},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let m=he(n,"hintText"),S=l.ref(!1);const b=$=>{let D=$.target.value;c.value=!0,ge(m.value)||(S.value=!0),s("focus",D,$)},C=$=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let D=$.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,$)},j=()=>{s("clear","")},L=l.ref(!1);let M=null;const O=()=>{n.showTooltip&&L.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{L.value=!0},150))},R=()=>{M&&(clearTimeout(M),L.value=!1,M=null)},N=l.computed(()=>L.value||S.value),E=l.computed(()=>L.value?d.value:m.value),x=l.computed(()=>At(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ge(r.attrs),ref:q,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onChange:h,onInput:g,onFocus:b,onBlur:C,onMouseover:O,onMouseleave:R},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.default&&(X.fixedTip=r.slots.fixedTip);const ee={...ke(n,Ql),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Gi,create:Ui,scope:Xi}=ae("input-item"),al=Ui(Yi(Gi,Xi,Se));function lt(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 kr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Zi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ji=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=He(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 Qi(){const e=l.getCurrentInstance();return new Ji(e.proxy)}function Ir(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function Vr(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=kr(e,i);if(Array.isArray(s)&&s.length>0){const u=Vr(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=Ir(e,i,a);else{let f=Dt(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function es(e){return{text:e,value:e}}const eo={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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ts(e,t,o){return{props:{...xe,...Ie,...eo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(G=>lt(n,G)).join(" "):""),V=(A,G,z,Z=!0)=>{const te=Vr(n,A,G,z);if(te===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const Q=te[K],ne=d.value[K];if(!Ir(n,Q,ne)){T=!1;break}}if(!T){d.value=te;let K=[],Q=[],ne=[];te.forEach(Ke=>{const Le=Dt(n,Ke),rt=lt(n,Ke);K.push(Le),ne.push(rt),n.valueType==="text"?Q.push(rt):n.valueType==="item"?Q.push(Ke):Q.push(Le)});let fe,ce,ye;ie(n.multiple)?(c.value=K,fe=l.toRaw(Q),ce=ne,ye=l.toRaw(te)):(c.value=K[0]??"",fe=l.toRaw(Q[0]??""),ce=ne[0]??"",ye=l.toRaw(te[0])),Z&&(s("update:modelValue",fe),s("change",fe,ye)),s("update:text",ce)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,A=>ie(A)),b=Qi(),C=async(A,G)=>{if(A){const z=await b.load("select",A,G);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>es(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([A,G])=>{h.value=null,C(A,G)},{immediate:!S.value});let j=!1;const L=()=>{j||(j=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([A,G])=>{if(N()&&ie(n.multiple)){Xe(G,c.value)||(c.value=G);return}V(G,n.valueType,m.value,!1),s("setValue",G)});let M=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(M=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.remoteMethod(A);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.filterMethod(A,g.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),x=e,q=l.computed(()=>({[x]:!0})),$=A=>{n.allowCreate||N()&&ie(n.multiple)?(s("update:modelValue",A),s("change",A),s("update:text",A),c.value=A):V(A,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=A=>{let z=A.target.value;E.value=!0,ge(k.value)||(D.value=!0),s("focus",z,A)},W=A=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=A.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),P.value||s("blur",z,A)},X=()=>{s("clear","")},U=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&U.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{U.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),U.value=!1,ee=null)},w=l.computed(()=>U.value||D.value),F=l.computed(()=>U.value?y.value:k.value),P=l.ref(!1),p=A=>{P.value=A,s("visible-change",A),A||s("selected")},H=A=>{s("remove-tag",A)},_=(A,G)=>{const z=[];return A.forEach((Z,te)=>{const T=kr(n,Z);if(Array.isArray(T)&&T.length>0){const K=_(T,G),Q=lt(n,Z),fe={key:`${Q}_${te}`,label:Q};z.push(l.h(v.ElOptionGroup,fe,{default:()=>K}))}else{const K=Dt(n,Z),Q=lt(n,Z),ne=Zi(n,Z),ce={key:`${K}_${te}`,label:Q,disabled:ne,value:K};if(typeof G=="function")z.push(l.h(v.ElOption,ce,{default:()=>G(Z)}));else if(n.optionType==="item"){const ye={class:{"fox-select-item__option-left":!0}},Ke=l.h("span",ye,[K]),Le={class:{"fox-select-item__option-right":!0}},rt=l.h("span",Le,[Q]),pn=l.h("div",{class:{"fox-select-item__option":!0}},[Ke,rt]);z.push(l.h(v.ElOption,ce,{default:()=>pn}))}else n.optionType==="value"?z.push(l.h(v.ElOption,ce,{default:()=>[K]})):z.push(l.h(v.ElOption,ce))}}),z},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const G={...Ge(r.attrs),ref:B,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:X,onChange:$,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof M=="function"&&(G["remote-method"]=M,G.loading=O.value),typeof R=="function"&&(G["filter-method"]=R,G.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Z=[],te=l.h(v.ElSelect,G,z);Z.push(te);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const Q={...ke(n,eo),hintText:F.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:le,onMouseleave:I};return S.value&&(Q["appear-listen"]=!0,Q.onAppear=L),l.h(o,Q,T)}}}}const{componentName:ns,create:ls,scope:os}=ae("select-item"),il=ls(ts(ns,os,Se));var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Or={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",y="quarter",V="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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("_")},C=function($,k,D){var Y=String($);return!Y||Y.length>=k?$:""+Array(k+1-Y.length).join(D)+$},j={s:C,z:function($){var k=-$.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+C(Y,2,"0")+":"+C(W,2,"0")},m:function $(k,D){if(k.date()<D.date())return-$(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),X=D-W<0,U=k.clone().add(Y+(X?-1:1),d);return+(-(Y+(D-W)/(X?W-U:U-W))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:V,w:c,d:f,D:g,h:u,m:s,s:i,ms:a,Q:y}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},L="en",M={};M[L]=b;var O=function($){return $ instanceof x},R=function $(k,D,Y){var W;if(!k)return L;if(typeof k=="string"){var X=k.toLowerCase();M[X]&&(W=X),D&&(M[X]=D,W=X);var U=k.split("-");if(!W&&U.length>1)return $(U[0])}else{var ee=k.name;M[ee]=k,W=ee}return!Y&&W&&(L=W),W||!Y&&L},N=function($,k){if(O($))return $.clone();var D=typeof k=="object"?k:{};return D.date=$,D.args=arguments,new x(D)},E=j;E.l=R,E.i=O,E.w=function($,k){return N($,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function $(D){this.$L=R(D.locale,null,!0),this.parse(D)}var k=$.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,X=Y.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 U=W.match(m);if(U){var ee=U[2]-1||0,le=(U[7]||"0").substring(0,3);return X?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,le)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,le)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,X=!!E.u(Y)||Y,U=E.p(D),ee=function(_,B){var A=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return X?A:A.endOf(f)},le=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,w=this.$M,F=this.$D,P="set"+(this.$u?"UTC":"");switch(U){case V:return X?ee(1,0):ee(31,11);case d:return X?ee(1,w):ee(0,w+1);case c:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(X?F-H:F+(6-H),w);case f:case g:return le(P+"Hours",0);case u:return le(P+"Minutes",1);case s:return le(P+"Seconds",2);case i:return le(P+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,X=E.p(D),U="set"+(this.$u?"UTC":""),ee=(W={},W[f]=U+"Date",W[g]=U+"Date",W[d]=U+"Month",W[V]=U+"FullYear",W[u]=U+"Hours",W[s]=U+"Minutes",W[i]=U+"Seconds",W[a]=U+"Milliseconds",W)[X],le=X===f?this.$D+(Y-this.$W):Y;if(X===d||X===V){var I=this.clone().set(g,1);I.$d[ee](le),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](le);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,X=this;D=Number(D);var U=E.p(Y),ee=function(w){var F=N(X);return E.w(F.date(F.date()+Math.round(w*D)),X)};if(U===d)return this.set(d,this.$M+D);if(U===V)return this.set(V,this.$y+D);if(U===f)return ee(1);if(U===c)return ee(7);var le=(W={},W[s]=n,W[u]=r,W[i]=o,W)[U]||1,I=this.$d.getTime()+D*le;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var X=D||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),ee=this.$H,le=this.$m,I=this.$M,w=W.weekdays,F=W.months,P=function(B,A,G,z){return B&&(B[A]||B(Y,X))||G[A].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,A,G){var z=B<12?"AM":"PM";return G?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:P(W.monthsShort,I,F,3),MMMM:P(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:P(W.weekdaysMin,this.$W,w,2),ddd:P(W.weekdaysShort,this.$W,w,3),dddd:w[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,le,!0),A:H(ee,le,!1),m:String(le),mm:E.s(le,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:U};return X.replace(S,function(B,A){return A||_[B]||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var X,U=E.p(Y),ee=N(D),le=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,w=E.m(this,ee);return w=(X={},X[V]=w/12,X[d]=w,X[y]=w/3,X[c]=(I-le)/6048e5,X[f]=(I-le)/864e5,X[u]=I/r,X[s]=I/n,X[i]=I/o,X)[U]||I,W?w:E.a(w)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),X=R(D,Y,!0);return X&&(W.$L=X),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},$}(),q=x.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",g]].forEach(function($){q[$[1]]=function(k){return this.$g(k,$[0],$[1])}}),N.extend=function($,k){return $.$i||($(k,x,N),$.$i=!0),N},N.locale=R,N.isDayjs=O,N.unix=function($){return N(1e3*$)},N.en=M[L],N.Ls=M,N.p={},N})})(Or);var rs=Or.exports;const Ye=et(rs);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,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)},f=function(h){return function(m){this[h]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},y=function(h,m){var S,b=s.meridiem;if(b){for(var C=1;C<=24;C+=1)if(h.indexOf(b(C,0,m))>-1){S=C>12;break}}else S=h===(m?"pm":"PM");return S},V={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(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,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,x){var q=x&&x.toUpperCase();return E||S[x]||o[x]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,k,D){return k||D.slice(1)})})).match(n),C=b.length,j=0;j<C;j+=1){var L=b[j],M=V[L],O=M&&M[0],R=M&&M[1];b[j]=R?{regex:O,parser:R}:L.replace(/^\[|\]$/g,"")}return function(N){for(var E={},x=0,q=0;x<C;x+=1){var $=b[x];if(typeof $=="string")q+=$.length;else{var k=$.regex,D=$.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(X){var U=X.afternoon;if(U!==void 0){var ee=X.hours;U?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,C=b.parse;b.parse=function(j){var L=j.date,M=j.utc,O=j.args;this.$u=M;var R=O[1];if(typeof R=="string"){var N=O[2]===!0,E=O[3]===!0,x=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var U=g(W)(Y),ee=U.year,le=U.month,I=U.day,w=U.hours,F=U.minutes,P=U.seconds,p=U.milliseconds,H=U.zone,_=new Date,B=I||(ee||le?1:_.getDate()),A=ee||_.getFullYear(),G=0;ee&&!le||(G=le>0?le-1:_.getMonth());var z=w||0,Z=F||0,te=P||0,T=p||0;return H?new Date(Date.UTC(A,G,B,z,Z,te,T+60*H.offset*1e3)):X?new Date(Date.UTC(A,G,B,z,Z,te,T)):new Date(A,G,B,z,Z,te,T)}catch{return new Date("")}}(L,R,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&L!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var $=R.length,k=1;k<=$;k+=1){O[1]=R[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===$&&(this.$d=new Date(""))}else C.call(this,j)}}})})(Pr);var as=Pr.exports;const is=et(as);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="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 y}});return i.bind(this)(d)}}})})(Dr);var ss=Dr.exports;const us=et(ss);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,V,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[V]),C=S||b.map(function(L){return L.slice(0,g)});if(!h)return C;var j=m.weekStart;return C.map(function(L,M){return C[(M+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,y){return d.formats[y]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.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(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Fr);var cs=Fr.exports;const fs=et(cs);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,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 f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var y=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(y,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Rr);var ds=Rr.exports;const hs=et(ds);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,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}}})})(Ar);var ms=Ar.exports;const gs=et(ms);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,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")}}})})(Lr);var ps=Lr.exports;const vs=et(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Mr);var ys=Mr.exports;const bs=et(ys);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Br);var ws=Br.exports;const xs=et(ws);Ye.extend(fs);Ye.extend(us);Ye.extend(is);Ye.extend(hs);Ye.extend(gs);Ye.extend(vs);Ye.extend(bs);Ye.extend(xs);const Me={format(e,t){return Ye(e).format(t)},parser(e,t){return Ye(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,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Me.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Me.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}},to={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"}},no={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 Ss(e,t,o){return{props:{...xe,...Ie,...to,...no},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const A=[...d.value];A[0]=B,d.value=A}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),C=l.ref(!1);const j=B=>{let G=B.target.value;c.value=!0,ge(b.value)||(C.value=!0),s("focus",G,B)},L=B=>{setTimeout(()=>{C.value&&(C.value=!1),c.value=!1},0);let G=B.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,B)},M=()=>{s("clear","")},O=B=>{s("calendar-change",B)},R=(B,A,G)=>{s("panel-change",B,A,G)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Be.Near),x=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Be.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Be.Near),$=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Be.Near);let k=null;const D=l.ref(ie(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const A=[];Array.isArray(q.value)?(A[0]=d.value?d.value[0]??q.value[0]:null,A[1]=q.value[1]??q.value[0]):(A[0]=d.value?d.value[0]??q.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Me.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const A=[];A[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?A[1]=k[1]:A[1]=k,A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=ie(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const A=[d.value[0]];Array.isArray(q.value)?A[1]=q.value[1]??q.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=q.value;s("update:modelValue",d.value)}else Xe(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&B()}),l.watch([()=>d.value],([A])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(A))try{let z=A[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Me.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray($.value)&&$.value.findIndex(T=>z==T)!==-1)&&(G=!0)}catch(z){console.error(z)}D.value!==G&&(D.value=G)},{immediate:!0})}const X=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),U=l.ref(),ee=l.ref(),le=/^\d+$/,I=(B,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,A):le.test(B)&&B.length===n.flashFillThreshold,w=(B,A)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(B,A);else{const Z=n.flashFillFormat??"YYYYMMDD";G=Me.parser(B,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Me.format(G,z)},F=B=>B?B.endsWith("range"):!1,P=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=G,g(z)}else g(G)}},p=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=G,g(z)}else g(G)}},H=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",P),B[1]&&B[1].addEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",P)}},_=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",P),B[1]&&B[1].removeEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",P)}};return l.onMounted(H),l.onBeforeUnmount(_),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:V.value,type:h.value,ref:ee,class:S.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:M,onFocus:j,onBlur:L,onCalendarChange:O,onPanelChange:R,onVisibleChange:N},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const z=[],Z=l.h(v.ElDatePicker,A,G);z.push(Z);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const ne=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ce={class:X.value},ye=l.h("div",ce,{default:()=>[ne,fe]});z.push(ye)}if(!i.value&&!a.value){const ne={label:x.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(v.ElCheckbox,ne),ce=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ce}}const K={...ke(n,to,no),ref:U,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:Ts,create:$s,scope:Cs}=ae("date-item"),sl=$s(Ss(Ts,Cs,Se)),lo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ns(e,t,o){return{props:{...xe,...Ie,...lo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let R=M.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",R,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let R=M.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,M)},C=()=>{s("clear","")},j=M=>{s("visible-change",M)},L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const O={...r.attrs,ref:L,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:C,onFocus:S,onBlur:b,onVisibleChange:j},R={},N=[],E=l.h(v.ElTimePicker,O,R);N.push(E);const x={default:()=>N};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const $={...ke(n,lo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,$,x)}}}}const{componentName:Es,create:ks,scope:Is}=ae("time-item"),ul=ks(Ns(Es,Is,Se)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vs(e,t,o){return{props:{...xe,...Ie,...oo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let O=L.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",O,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,L)},C=()=>{s("clear","")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const M={...r.attrs,ref:j,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:C,onFocus:S,onBlur:b},O={},R=[],N=l.h(v.ElTimeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Os,create:Ps,scope:Ds}=ae("time-select-item"),cl=Ps(Vs(Os,Ds,Se));function ro(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 ao(e,t,o=20){if(typeof t=="string"&&(t=we(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ko(`${e}`,`${t}`);return ro(n)}else{let n=Yn(`${e}`,Wo(`${t}`),20);return ro(n)}}function Fs(e,t=-1,o=!1,n=3,r=","){return Xt(e,t,o,n,r)}function io(e,t,o,n,r=!0){if(e==="")return"";if(e=Yo(e),t=we(t),t==1)return e;if(n)e=ao(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(we(o)+2,"0"):e=Yn(e,1,we(o)));else{let a=-1*t;e=ao(e,a)}return e}function so(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ie(t.minInclude),r=An(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=ie(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const uo={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 Rs(e,t,o){return{props:{...xe,...Ie,...uo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=he(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,k,D])=>{if(ge($)){c.value="";return}const Y=io($,k,D,!1);c.value!==Y&&(c.value=Y)},{immediate:!0});const d=l.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:y}=_e.useFoxI18n(t),V=l.computed(()=>{let $=n.placeholder??"";return!u.value&&!ge(c.value)?$=Fs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=y(["placeholder",$]),$}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let $=S.value;return ge($)&&($=n.errorTip??""),$}),C=l.ref(""),j=l.ref(!1),L=($,k)=>{if($=`${$}`,ge($)){c.value="",f.value="",k.forEach(D=>{s(D,"")}),ie(n.showTip)&&j.value&&(j.value=!1);return}if($.length>=2){let D=$;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(c);return}}if($!="-"){if(!nr($)){l.triggerRef(c);return}if(n.integerLength!=-1&&lr($)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&or($)>Number(n.decimalLength)){l.triggerRef(c);return}let D=so($,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&we(n.min)>=0){l.triggerRef(c);return}C.value=$,ie(n.showTip)&&(j.value=$.length>0),c.value=$,f.value=io($,n.rates,n.precision,!0),k.forEach(D=>{s(D,f.value)})},M=$=>{L($,["update:modelValue","input"])},O=$=>{L($,["update:modelValue","change"])},R=$=>{if(u.value=!0,ie(n.showTip)){let k=c.value;ge(k)&&(k=n.hintText),ge(k)||(C.value=k,j.value=!0)}S.value="",s("focus",f.value,$)},N=$=>{if(setTimeout(()=>{u.value=!1,ie(n.showTip)&&j.value===!0&&(j.value=!1)},0),!ge(c.value)){let k=so(c.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},E=()=>{s("clear","")},x=l.computed(()=>At(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ge(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:M,onChange:O,onFocus:R,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const ee={...ke(n,uo),errorTip:b.value,hintText:C.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:As,create:Ls,scope:Ms}=ae("money-item"),fl=Ls(Rs(As,Ms,Se)),co={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 Bs(e,t,o){return{props:{...xe,...Ie,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__append`]:M.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=R=>{d.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)};let S=he(n,"hintText"),b=l.ref(!1);const C=R=>{let E=R.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",E,R)},j=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let E=R.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,R)},L=()=>{s("clear","")},M=l.computed(()=>At(n.unit)>0),O=l.ref();return $e({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ge(r.attrs),ref:O,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:C,onBlur:j},E={},x=[],q=l.h(v.ElInputNumber,N,E);x.push(q);const $={default:()=>x};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const D={...ke(n,co),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)$.append=r.slots.append;else if(M.value){const W={class:g.value},X=l.h("div",W,[n.unit]);$.append=()=>X}return l.h(o,D,$)}}}}const{componentName:_s,create:qs,scope:js}=ae("input-number-item"),dl=qs(Bs(_s,js,Se));function Ue(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 zs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Hs=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=He(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 Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}function Hn(e,t,o){const n=Ue(e,t),r=Ue(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function _r(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=_r(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ue(e,f)===s;else if(o==="item")u=Hn(e,f,s);else{let c=ct(e,f);c==null&&(c=Ue(e,f)),u=c===s}if(u){r.push(f),a=zs(e,f);break}}if(!u)break}}return r}function Ws(e){return{text:e,value:e}}const fo={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},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ys(e,t,o){return{props:{...xe,...Ie,...fo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(G=>Ue(n,G)).join(" "):Ue(n,B)).join(" "):""),V=(_,B,A,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===_)return;c.value=_;const T=l.toRaw(_);if(G){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const Q=[];K.forEach(ne=>{const ce=(ne.pathNodes??[]).map(ye=>ye.data);Q.push(ce)}),s("update:pathNodes",Q)}else{const ne=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",ne)}s("update:modelValue",T),s("change",T)}return}const z=_r(n,_,B,A);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Z=z[z.length-1];if(E.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const T=[];z.forEach(K=>{const Q=`${Ue(n,K)}`;T.push(Q)}),T.length>0&&(R.value=T.join(n.separator))}else R.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],Q=d.value[T];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let ne=0;ne<K.length;ne++)if(!Hn(n,K[ne],Q[ne])){te=!1;break}}else Hn(n,K,Q)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(ne=>{if(Array.isArray(ne)){let fe=[],ce=[];for(let ye of ne)fe.push(ct(n,ye)),n.valueType==="text"?ce.push(Ue(n,ye)):n.valueType==="item"?ce.push(ye):ce.push(ct(n,ye));T.push(fe),K.push(ce)}else T.push(ct(n,ne)),n.valueType==="text"?K.push(Ue(n,ne)):n.valueType==="item"?K.push(ne):K.push(ct(n,ne))}),c.value=T;const Q=l.toRaw(K);G&&(s("update:pathNodes",z),s("update:modelValue",Q),s("change",Q))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,_=>ie(_)),m=Ks(),S=async(_,B)=>{if(_){const A=await m.load("cascader",_,B);if(A.length>0)if(typeof A[0]=="string"){let Z=A.map(te=>Ws(te));g.value=Z}else g.value=A}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const C=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{V(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&V(n.modelValue,"value",[],!1);let j=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){L.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}L.value=!1}});const M=l.ref(!1),O=e,R=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":R.value&&R.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,A)=>{const G=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const z=B.pathLabels??[];let Z=[];z.forEach(te=>{te&&Z.push(te)}),Z.length>0&&(R.value=Z.join(n.separator))}else R.value=null;A(G)}),_}),x=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),c.value=_):V(_,"value",g.value,!0)};let q=he(n,"hintText"),$=l.ref(!1);const k=_=>{let A=_.target.value;M.value=!0,ge(q.value)||($.value=!0),s("focus",A,_)},D=_=>{setTimeout(()=>{$.value&&($.value=!1),M.value=!1},0);let A=_.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),w.value||s("blur",A,_)},Y=()=>{s("clear","")},W=l.ref(!1);let X=null;const U=()=>{n.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},ee=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},le=l.computed(()=>W.value||$.value),I=l.computed(()=>W.value?y.value:q.value),w=l.ref(!1),F=_=>{w.value=_,s("visible-change",_),_||s("selected")},P=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return $e({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:R.value||f.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:Y,onChange:x,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:P,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=L.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const G=[],z=l.h(v.ElCascader,B,A);G.push(z);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...ke(n,fo),hintText:I.value,hintVisible:le.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:U,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,Z)}}}}const{componentName:Gs,create:Us,scope:Xs}=ae("cascader-item"),hl=Us(Ys(Gs,Xs,Se)),ho={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zs(e,t,o){return{props:{...xe,...Ie,...ho},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const C=O=>{let N=O.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},L=()=>{s("clear","")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const R={...r.attrs,ref:M,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:C,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],x=l.h(v.ElAutocomplete,R,N);E.push(x);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,ho),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:Js,create:Qs,scope:eu}=ae("autocomplete-item"),ml=Qs(Zs(Js,eu,Se));function tu(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 f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(y=>y[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let nu=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=He(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 lu(){const e=l.getCurrentInstance();return new nu(e.proxy)}const qr={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 ou(e,t){return{props:{...qr},setup(o,{attrs:n,slots:r}){const a=lu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=tu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...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,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:qh,create:ru,scope:jh}=ae("mapping"),Ft=ru(ou());function au(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function iu(e,t){return{props:{...qr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=au(i.row,i.column.property);return r.default?l.h(Ft,{...o,modelValue:s},{default:r.default}):l.h(Ft,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:zh,create:su,scope:Hh}=ae("table-mapping-column"),gl=su(iu()),uu=Symbol.for("TableStateKey");function mo(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function cu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(uu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=mo(s.row,s.column.property),f=a?mo(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[y])}};return l.h(v.ElTableColumn,{...n},i)}}}}const{componentName:Kh,create:fu,scope:Wh}=ae("table-radio-column"),pl=fu(cu()),du={},hu={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"},mu=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),gu=[mu];function pu(e,t){return l.openBlock(),l.createElementBlock("svg",hu,gu)}const vu=qe(du,[["render",pu]]),{componentName:Yh,create:yu,scope:Gh}=ae("table-setting"),bu={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:"不固定"}},wu=yu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:vu,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...bu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=p=>p.length>1,y=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(A=>{H.some(G=>G.prop===A.prop?(A.label=G.label,!0):!1)});const _=[];r.value=p.map((A,G)=>(!(A.label===""||A.type)&&A.visible!==!1&&_.push(A.prop),{...A,sortIndex:G})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&(C.value=!0),M.value=_},V=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>V(B));for(let B of H){const A=V(B);if(_.indexOf(A)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,A)=>({...B,sortIndex:A})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}y(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),C=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,C.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&(C.value=!0),M.value=H,m()},L=()=>{h(n),m()},M=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,C.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&(C.value=!0),m()},R=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,x=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},$=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const A=Number(N.index),G=Number(_.dataset.index);if(A!==G){if(A<G){const z=r.value[A];r.value.splice(A,1),r.value.splice(G,0,z)}else{const z=r.value[A];r.value.splice(A,1),r.value.splice(G+1,0,z)}y(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},X=p=>{const H=r.value[p];H.fixed=void 0,m()},U=new Map;let ee=null;function le(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:b,isIndeterminate:C,handleCheckAllChange:j,handleReset:L,checkedValue:M,handleCheckChange:O,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:$,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:X,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const A=Math.floor(B.offsetWidth);if(Math.floor(le(B))>A){let z=U.get(H);if(z){if(z===ee)return;Pe.hide(z)}z=Pe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),U.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=U.get(H);_&&(Pe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Pe.hide(ee),ee=Pe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Pe.hide(ee),ee=null)}}}}),xu={class:"fox-table-setting"},Su={class:"fox-table-setting__header"},Tu={class:"fox-table-setting__body"},$u={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Cu={key:0,class:"fox-table-setting__body-title"},Nu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],ku={class:"tools-item"},Iu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Vu={key:0,class:"fox-table-setting__body-title"},Ou=["data-index","draggable"],Pu=["onMouseover","onMouseleave"],Du={class:"tools-item"},Fu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ru={key:0,class:"fox-table-setting__body-title"},Au=["data-index","draggable"],Lu=["onMouseover","onMouseleave"],Mu={class:"tools-item"};function Bu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),y=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,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",xu,[l.createElementVNode("div",Su,[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",Tu,[l.createVNode(V,{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",$u,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Cu,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]=(...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.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:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",ku,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Nu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Iu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Vu,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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[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:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Pu)]),_:2},1032,["label"]),l.createElementVNode("div",Du,[l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ou))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Fu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Ru,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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Lu)]),_:2},1032,["label"]),l.createElementVNode("div",Mu,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Au))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const hn=qe(wu,[["render",Bu]]);let _u=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=He(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 qu(){const e=l.getCurrentInstance();return new _u(e.proxy)}class ju{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function jr(){const e=l.getCurrentInstance();return new ju(e.proxy)}const zu=Symbol.for("TableStateKey"),go={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{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"}},po={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}},Nn={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:"不固定"}},Hu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ku(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function En(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Ku(n,r);if(a!==i)return!1}return!0})}function Wu(e,t,o){return{inheritAttrs:!1,props:{...xe,...Ie,...go,...po,...Nn,...Hu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=_e.useFoxI18n(t),{emitEvent:i,broadcast:s}=Te({componentName:e,validateHandler:{getValue(...J){return O.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),g=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=ie(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,J=>{h.value=J}),l.watch(()=>n.pageSize,J=>{m.value=J}),l.watch([h,m],([J,oe],[re,se])=>{oe!==se&&(h.value=1,J=1),x(n.data,J,oe,g.value)}));const b=()=>Array.isArray(n.data)?!0:ie(n.autoLoad);b()&&l.watch([()=>n.data,g],async([J,oe],[re,se])=>{b()&&(J!==re&&(N=!0),!(!Array.isArray(J)&&Xe(J,re)&&Xe(oe,se))&&(S?(h.value=0,L.value=!0,O.value=[],$()):h.value===1?x(J,h.value,m.value,oe):h.value=1))},{deep:!0});const C=J=>{h.value=J,i("page-index-change",J)},j=J=>{m.value=J,i("page-size-change",J)},L=l.ref(!0),M=l.ref(0),O=l.ref(),R=qu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,J=>ie(J)),x=async(J,oe,re,se,Ve)=>{N=!1;try{if(Ve===!0){if(!L.value)return!1;const me=await R.load("table",J,oe,re,se,N,a.value);return M.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=M.value)||me.page.length<re?(L.value=!1,!1):!0}else{const me=await R.load("table",J,oe,re,se,N,a.value);return M.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),M.value=0,O.value=[]}return!1};let q=!1;const $=async()=>{if(!q){if(q=!0,!L.value){q=!1;return}h.value+=1,await x(n.data,h.value,m.value,g.value,!0),q=!1}},k=(J={},oe=!1)=>new Promise(async re=>{V.value={...l.toRaw(J??{})},oe||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],L.value=!0,await $()):await x(n.data,h.value,m.value,g.value),re()}),D=()=>{M.value=0,O.value=[],S===!0&&(h.value=0,L.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},X=l.ref(null);if(S===!0){let J=null;const oe=()=>{X.value&&(J=new IntersectionObserver(se=>{let Ve=!1;for(let me of se)if(me.intersectionRatio>0){Ve=!0;break}Ve&&$()}),J.observe(X.value))},re=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(re)}b()&&!E.value&&k();const U=l.ref(null);l.provide(zu,{currentRow:U});const ee=(J,oe)=>{U.value=J,i("current-change",J,oe)},le=(J,oe,re)=>{i("row-click",J,oe,re),ie(n.rowClickSelectable)===!0&&be?.value.toggleRowSelection(J)},I=[],w=(J,oe)=>{if(i("expand-change",J,oe),ie(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=I.length;I.splice(0,re)}else{I.forEach(se=>{se!==J&&be?.value.toggleRowExpansion(se,!1)});const re=I.length;I.splice(0,re,J)}setTimeout(ce,0)},F=r.attrs.id??n.prop??r.attrs.name,P=jr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:p.value}),B=J=>{p.value=[...J],G()},A=async()=>{const J=await P.load(F);J&&(p.value=J)},G=()=>{P.save(F,p.value)},z=()=>{P.remove(F)};A();const Z=J=>J?J.type?J.type:J.label?J.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(J,oe)=>{for(let re in oe){const se=oe[re];typeof se!="function"&&(J[re]=se)}},K=l.computed(()=>{const J=te(),oe=new Map;if(H=[],J.forEach(re=>{const se=re;if(!se.props)return;const Ve=Z(se.props);oe.set(Ve,re);const me={label:"",prop:""};T(me,se.props),H.push(me)}),p.value.length===H.length){const re=[];for(let se of p.value){const Ve=Z(se),me=oe.get(Ve);if(!me)return J;if(se.visible===!1)continue;const tt=me;tt.props.fixed=se.fixed,re.push(tt)}return re}return J}),Q=l.shallowRef(new Map),ne=({row:J,column:oe,rowIndex:re,columnIndex:se})=>{const Ve=`${re}_${oe.property}`,me=`${re}_${se}`;let tt=Q.value.get(Ve);return tt||(tt=Q.value.get(me)),tt??""},fe=J=>typeof J=="function"?oe=>{const re=[];let se=ne(oe);return se&&re.push(se),se=J(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:ne,ce=()=>{Q.value.entries().forEach(([J,oe])=>{const re=`${J}_item`;s.emitToChildren({name:re},"setCustomClassName",oe)})},ye=(J,oe,re)=>{const se=`${J}_${oe}`;re?Q.value.set(se,re):Q.value.delete(se),l.triggerRef(Q)},Ke=()=>{Q.value.clear(),l.triggerRef(Q)},Le=l.shallowRef(new Map),rt=({rowIndex:J})=>{const oe=`${J}`;return Le.value.get(oe)??""},pn=J=>typeof J=="function"?oe=>{const re=[];let se=rt(oe);return se&&re.push(se),se=J(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:rt,Qr=(J,oe)=>{const re=`${J}`;oe?Le.value.set(re,oe):Le.value.delete(re),l.triggerRef(Le)},ea=()=>{Le.value.clear(),l.triggerRef(Le)},be=l.ref();return $e({clearSelection:()=>be?.value.clearSelection(),getSelectionRows:()=>be?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{be?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!O.value)return;const re=En(O.value,J);re.length!==0&&re.forEach(se=>{be?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{be?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{be?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!O.value)return;const re=En(O.value,J);re.length!==0&&re.forEach(se=>{be?.value.toggleRowExpansion(se,oe)})},setCurrentRow:J=>{be?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!O.value)return;const oe=En(O.value,J);oe.length!==0&&be?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{be?.value.clearSort()},clearFilter:J=>{be?.value.clearFilter(J)},doLayout:()=>{be?.value.doLayout()},sort:(J,oe)=>{be?.value.sort(J,oe)},scrollTo:(J,oe)=>{be?.value.scrollTo(J,oe)},setScrollTop:J=>{be?.value.setScrollTop(J)},setScrollLeft:J=>{be?.value.setScrollLeft(J)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return M.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:ye,clearCellClassName:Ke,setRowClassName:Qr,clearRowClassName:ea}),()=>{const oe={...Ge(r.attrs),onCurrentChange:ee,onRowClick:le,onExpandChange:w,data:O.value,ref:be,class:f.value,"cell-class-name":fe(n.cellClassName),"row-class-name":pn(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>K.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),S===!0){const je=[];if(L.value){const St=l.h(Ee.Loading,{class:`${u}__infinite-icon`});je.push(St);const yn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);je.push(yn)}else{const St=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);je.push(St)}const at={ref:X,class:`${u}__infinite`},vn=l.h("div",at,je);re.append=()=>vn}const se=l.h(v.ElTable,oe,re),Ve=[];if(Ve.push(se),!S){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const at={class:y.value,total:M.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":C,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,at)}if(n.showSetting){const at=[];je&&at.push(je);const vn=l.h(v.ElIcon,{class:c.value},{default:()=>l.h(Ee.Setting)}),St=rr(n,Nn),yn=l.h(hn,{...St,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>vn});at.push(yn);const ta=l.h("div",{class:d.value},at);Ve.push(ta)}else je&&Ve.push(je)}const me={default:()=>Ve},xt={...ke(n,go,po,Nn),prop:`${n.prop}_item`};return xt.contentClass=`${u}__wrap`,xt.errorMarkClass="is-table-error",E.value&&b()&&(xt["appear-listen"]=!0,xt.onAppear=W),l.h(o,xt,me)}}}}const{componentName:Yu,create:Gu,scope:Uu}=ae("table-item"),vl=Gu(Wu(Yu,Uu,Se));function bt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Xu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Zu=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=He(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 Ju(){const e=l.getCurrentInstance();return new Zu(e.proxy)}function zr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=Rt(e,t),i=Rt(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=bt(e,a)===t;else if(o==="item")i=zr(e,a,t);else{let s=Rt(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function ec(e){return{text:e,value:e}}function tc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const vo={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"},appearLoad:{type:[Boolean,String],default:!1}};function nc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Ie,...vo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({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),f=l.ref(null),c=(O,R,N,E=!0)=>{const x=Qu(n,O,R,N);if(x===null){if(f.value===null)return;f.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!zr(n,x,f.value)){u.value=O;const $=l.toRaw(x);f.value=$;let k=null;n.valueType==="text"?k=bt(n,$):n.valueType==="item"?k=$:k=Rt(n,$),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,O=>ie(O)),V=Ju(),g=async(O,R)=>{if(O){const N=await V.load("radio",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map($=>ec($));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),C=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=Rt(n,E),$=bt(n,E);let k=Xu(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=tc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,label:q,size:n.size,border:ie(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElRadioButton,W,{default:()=>[$]})):typeof R=="function"?N.push(l.h(v.ElRadio,W,{default:()=>R(E)})):N.push(l.h(v.ElRadio,W,{default:()=>[$]}))}),N};return()=>{const R={...Ge(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElRadioGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,vo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:lc,create:oc,scope:rc}=ae("radio-item"),yl=oc(nc(lc,rc,Se));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ac(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ic=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=He(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 sc(){const e=l.getCurrentInstance();return new ic(e.proxy)}function Hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=vt(e,t),i=vt(e,o);return a===i}function uc(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=wt(e,i)===a;else if(o==="item")s=Hr(e,i,a);else{let u=vt(e,i);u==null&&(u=wt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function cc(e){return{text:e,value:e}}function fc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={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"},appearLoad:{type:[Boolean,String],default:!1}};function dc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Ie,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({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([]),f=l.ref([]),c=(O,R,N,E=!0)=>{const x=uc(n,O,R,N);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(x.length!==f.value.length)q=!1;else for(let $=0;$<x.length;$++){const k=x[$],D=f.value[$];if(!Hr(n,k,D)){q=!1;break}}if(!q){f.value=x;let $=[],k=[];x.forEach(Y=>{$.push(vt(n,Y)),n.valueType==="text"?k.push(wt(n,Y)):n.valueType==="item"?k.push(Y):k.push(vt(n,Y))}),u.value=$;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,O=>ie(O)),V=sc(),g=async(O,R)=>{if(O){const N=await V.load("checkbox",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map($=>cc($));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),C=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=vt(n,E),$=wt(n,E);let k=ac(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=fc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:ie(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElCheckboxButton,W,{default:()=>[$]})):typeof R=="function"?N.push(l.h(v.ElCheckbox,W,{default:()=>R(E)})):N.push(l.h(v.ElCheckbox,W,{default:()=>[$]}))}),N};return()=>{const R={...Ge(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:we(n.max),min:we(n.min),onChange:C},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElCheckboxGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,yo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:hc,create:mc,scope:gc}=ae("checkbox-item"),bl=mc(dc(hc,gc,Se)),bo={modelValue:{type:[Number,String],required:!1}};function pc(e,t,o){return{props:{...xe,...Ie,...bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({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=he(n,"modelValue",h=>we(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=l.ref(!1);const g=l.ref();return $e({}),()=>{const m={...Ge(r.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],C=l.h(v.ElRate,m,S);b.push(C);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...ke(n,bo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:vc,create:yc,scope:bc}=ae("rate-item"),wl=yc(pc(vc,bc,Se)),wo={modelValue:{type:[Boolean,String,Number],required:!1}};function wc(e,t,o){return{props:{...xe,...Ie,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({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=he(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=he(n,"hintVisible");const g=l.ref();return $e({}),()=>{const m={...Ge(r.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],C=l.h(v.ElSwitch,m,S);b.push(C);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...ke(n,wo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:xc,create:Sc,scope:Tc}=ae("switch-item"),xl=Sc(wc(xc,Tc,Se)),xo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function $c(e,t,o){return{props:{...xe,...Ie,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=he(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let V=he(n,"hintText"),g=l.ref(!1);const h=L=>{let O=L.target.value;s.value=!0,ge(V.value)||(g.value=!0),u("focus",O,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,L)},S=()=>{u("clear","")},b=l.ref(!1),C=L=>{b.value=L,u("visible-change",L),L||u("selected")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const M={...Ge(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:C},O={};r.slots.option&&(O.default=r.slots.option);const R=[],N=l.h(v.ElTreeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,xo),hintText:V.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Cc,create:Nc,scope:Ec}=ae("tree-select-item"),Sl=Nc($c(Cc,Ec,Se)),kc={},Ic={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"},Vc=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),Oc=[Vc];function Pc(e,t){return l.openBlock(),l.createElementBlock("svg",Ic,Oc)}const Dc=qe(kc,[["render",Pc]]),{componentName:Jh,create:Fc,scope:Qh}=ae("group-setting"),Rc={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:"到底部"}},Ac=Fc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Dc,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Rc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=jr(),s=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((P,p)=>(P.visible!==!1&&I.push(P.prop),{...P,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),C.value=I},f=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const P=I.$el??I;typeof P.querySelectorAll=="function"&&(w=P.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const F=[];return w.forEach(P=>{const p=P.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=P.getAttribute("prop")??"",A=window.getComputedStyle(P,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:A!=="none"})}),F},c=()=>{if(!r){const I=f(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const w=await i.load(e.groupProp),F=P=>{if(!P||!r)return;const p=r.map(H=>({...H}));Array.isArray(w)&&w.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&V(!1)};r?F(!0):tn(c,e.initDelay,5,50,!1,F)},y=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),V()},V=(I=!0)=>{I&&i.save(e.groupProp,a.value);const w=a.value.map(F=>({...F}));t("change",w)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const w=[];a.value.forEach(P=>{I&&w.push(P.prop),P.visible=I}),h.value=!1,m.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(m.value=!0),C.value=w,V()},b=()=>{y()},C=l.ref([]),j=I=>{a.value.forEach(F=>{const P=I.indexOf(F.prop)!==-1;F.visible=P}),h.value=!1,m.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(m.value=!0),V()},L=()=>{d()};l.onMounted(()=>{d(!0)});const M={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,R=I=>{const w=I.currentTarget;w&&w.dataset&&(M.index=w.dataset.index)},N=I=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},E=I=>{const w=I.currentTarget;I.relatedTarget;const F=O(w);F&&(I.preventDefault(),M.currentRow&&M.currentRow!==F&&M.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),M.currentRow=F)},x=I=>{I.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=I=>{const w=I.currentTarget,F=O(w);if(!F)return;I.preventDefault();const P=Number(M.index),p=Number(F.dataset.index);if(P!==p){if(P<p){const H=a.value[P];a.value.splice(P,1),a.value.splice(p,0,H)}else{const H=a.value[P];a.value.splice(P,1),a.value.splice(p+1,0,H)}u(),V()}},$=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),V()},k=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),V()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:C,handleCheckChange:j,onShow:L,onDragStart:R,onDragEnd:N,onDragOver:E,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:$,toBottom:k,onMouseOverForOverflowText:(I,w,F)=>{const P=I.currentTarget;if(P){const p=Math.floor(P.offsetWidth);if(Math.floor(W(P))>p){let _=D.get(w);if(_){if(_===Y)return;Pe.hide(_)}_=Pe.show(P,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(w,_),Y=_}}},onMouseLeaveForOverflowText:(I,w)=>{const F=D.get(w);F&&(Pe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,w)=>{const F=I.currentTarget;F&&(Y&&Pe.hide(Y),Y=Pe.show(F,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Pe.hide(Y),Y=null)}}}}),Lc={class:"fox-group-setting"},Mc={class:"fox-group-setting__header"},Bc={class:"fox-group-setting__body"},_c={class:"fox-group-setting__body-list","data-role":"container"},qc=["data-index","draggable"],jc=["onMouseover","onMouseleave"],zc={class:"tools-item"};function Hc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,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",Lc,[l.createElementVNode("div",Mc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),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",Bc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",_c,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),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.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,V.prop,V.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,jc)]),_:2},1032,["label"]),l.createElementVNode("div",zc,[l.createVNode(c,{onClick:g=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,qc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=qe(Ac,[["render",Hc]]),Kc=["aria-labelledby"],Wc=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),Yc=[Wc],Gc=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,f)=>(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"},Yc,14,Kc))}}),Uc=["aria-labelledby"],Xc=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),Zc=[Xc],$l=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,f)=>(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"},Zc,14,Uc))}}),Jc=["aria-labelledby"],Qc=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),ef=[Qc],tf=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,f)=>(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"},ef,14,Jc))}}),nf=["aria-labelledby"],lf=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),of=[lf],rf=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,f)=>(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"},of,14,nf))}}),af=["aria-labelledby"],sf=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),uf=[sf],cf=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,f)=>(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"},uf,14,af))}}),ff={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}},So=(e,t)=>t[e.textKey],Ct=(e,t)=>t[e.valueKey],df=(e,t)=>t[e.visibleKey],To=(e,t)=>t[e.disabledKey],hf=(e,t)=>{const o=t[e.doitKey];return ie(o)},mf=(e,t)=>{const o=t[e.numKey];return o==null?null:we(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function gf(e,t,o,n=!1){return{props:{...ff},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const w=I;w?(h.value=w,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),C=l.ref([]),j=(I,w)=>{C.value[w]=I},L=I=>w=>{j(w,I)},M=(I,w)=>{const F=b.value,P=C.value;if(!F||!P||!P[I])return;const p=P[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,w?0:.3,r.direction)},O=(I,w,F,P)=>{let p=0;const H=P==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){P==="horizontal"?I.scrollLeft+=(w-H)/_:I.scrollTop+=(w-H)/_,++p<_&&Gn(B)}B()},R=(I,w)=>{const F=Ct(r,I),P={};return P[`${e}__titles-item`]=!0,P.disabled=To(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0),r.ellipsis&&(P.ellipsis=!0),w&&(w.class&&(P[`${w.class}`]=!0),w.disabled===!0&&(P.disabled=w.disabled)),P},N=(I,w)=>{const F={};if(c.value>0){const P=Math.abs(c.value/2);r.direction==="vertical"?(F["margin-top"]=`${P}px`,F["margin-bottom"]=`${P}px`):(F["margin-left"]=`${P}px`,F["margin-right"]=`${P}px`)}return w&&w.style&&Object.assign(F,w.style),F},E=(I,w)=>`${Ct(r,I)??w}`,x=(I,w)=>{const F=Ct(r,I),P={};P[`${e}__popup-item`]=!0,P.disabled=To(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0);const p=$o(r,I,w);return p&&p.disabled===!0&&(P.disabled=p.disabled),P},q=l.computed(()=>(r.data??[]).filter(w=>df(r,w)!==!1)),$=(I,w)=>{const F=Ct(r,I);if(d.value==F)return;const P=()=>{d.value=F,r.scroll&&M(w,!1),i("update:modelValue",F),i("change",I,w)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,w);Uo(p)?p.then(H=>{H!==!1&&P()}).catch(()=>{P()}):p!==!1&&P()}else P()},k=(I,w)=>function(){$(I,w)},D=(I,w)=>{$(I,w),S(!1)},Y=(I,w)=>function(){D(I,w)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(F=>Ct(r,F)===d.value);w!==-1&&M(w,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const X=(I,w)=>{if(a.item)return a.item({item:I,index:w});const F=$o(r,I,w),P=[];if(a.text){const B=a.text({item:I,index:w});P.push(B)}else{const B=[];if(F?.doit===!0||hf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Z);B.push(te)}const A=F?.num??mf(r,I);if(A){let Z="";const te=we(A);te>=100?Z="99+":Z=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Z]);B.push(K)}const G={class:`${e}__titles-item-text`};B.push(So(r,I));const z=l.h("view",G,B);P.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);P.push(H);const _={ref:L(w),class:R(I,F),style:N(I,F),key:E(I,w),onClick:k(I,w)};return l.h("view",_,P)},U=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const P=q.value[F],p=X(P,F);I.push(p)}const w={ref:b,class:u.value,style:f.value};return l.h("view",w,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:m};return l.h("view",w,[I])},le=()=>{const I=[];for(let F=0;F<q.value.length;F++){const P=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:P,index:F}):p=So(r,P);const H={class:x(P,F),key:E(P,F),onClick:Y(P,F)},_=l.h("view",H,[p]);I.push(_)}const w={class:y.value,style:V.value};return l.h("view",w,I)};return()=>{const I=[],w=U();if(I.push(w),r.showQuickNavigation){const P=ee();I.push(P);const p=le();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:pf,componentName:vf,scope:yf}=ae("tabs-bar"),Cl=pf(gf(vf,yf,Gc,!1)),Kr=Symbol("TabsStatesKey"),bf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function wf(e,t,o=!1){return{props:{...bf},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 m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Kr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let y=!0;const V=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=on(f.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(f.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:f};return l.h("view",S,[m])}}}}const{create:xf,componentName:Sf,scope:Tf}=ae("tabs-container"),Nl=xf(wf(Sf,Tf,!1)),$f={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,o){return{props:{...$f},setup(n,{emit:r,slots:a}){const i=l.inject(Kr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?ie(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},y=n.emptyIcon??o,V=l.h(y,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[V,m]);f.push(b)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Nf,componentName:Ef,scope:kf}=ae("tabs-pane"),El=Nf(Cf(Ef,kf,$l)),If={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 Vf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Co(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function No(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Of(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function kn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Eo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function ko(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Pf{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=He(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 Df(){const e=l.getCurrentInstance();return new Pf(e.proxy)}function Ff(e,t,o,n){return{props:{...If},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Df(),f=l.ref([]),c=l.computed(()=>f.value.filter(w=>Of(r,w)!==!1)),d=l.ref(-1),y=()=>{const w=r.modelValue,F=c.value.findIndex(P=>Co(r,P)===w);d.value!==F&&(d.value=F,r.scroll&&le(F,!1))};l.watch([()=>r.modelValue,c],()=>{y()});const V=w=>d.value===w,g=w=>{if(w<0&&w>=c.value.length)return!1;const F=c.value[w],p=(In(r,F,w)??{}).status??kn(r,F);return V(w)||p},h=l.computed(()=>{const w={[s]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),m=l.computed(()=>({})),S=(w,F,P,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),w===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:P?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),C=(w,F={})=>{const P={...F};return b.value==="start"&&w===c.value.length-1?P.flex="0 0 auto":r.step?r.direction==="vertical"?P.height=r.step:P.width=r.step:P.flex="1 1 100%",P},j=(w,F)=>{let P={};if(F<c.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},L=w=>c.value.length-1===w,M=(w,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const P=d.value,p=F;d.value=F,r.scroll&&le(F,!1);const H=Co(r,w);i("update:modelValue",H);const _={fromIndex:P,currentIndex:p,item:w,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),R=async(w,F)=>{try{const P=await u.load("stesbar",w,F);Array.isArray(P)&&(f.value=P),O.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,F])=>{w&&R(w,F)},{immediate:!0});const N=(w,F,P,p,H)=>{let _=null;if(a.icon)_=a.icon({item:w,index:F,status:p});else if(p==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const G=r.icon??o;_=l.h(G,A)}else{const A=P??`${F+1}`;_=l.h("span",{},[A])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||M(w,F)}};return l.h("view",B,[_])},E=(w,F,P)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(w,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},x=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const P={};r.iconSize&&(P.width=r.markIconSize,P.height=r.markIconSize);const p=r.markIcon??n;w=l.h(p,P)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,F,P,p,H)=>{const _=[];if(!L(F)){const G=E(w,F);_.push(G)}const B=N(w,F,P,p,H);_.push(B);const A={class:"fox-steps-bar__head"};return l.h("view",A,_)},$=(w,F,P,p)=>{let H=null;a.main?H=a.main({item:w,index:F,status:P}):H=Vf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{p||M(w,F)}};return l.h("view",_,[H])},k=(w,F,P)=>{let p=null;if(a.sub){p=a.sub({item:w,index:F,status:P});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=No(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??ko(r,w),B=[],A=N(w,F,_,p,H);A&&B.push(A);const G=$(w,F,p,H);if(G&&B.push(G),!L(F)){const Q=E(w,F);Q&&B.push(Q)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Z=P.class,te=P.style??{};let T=Eo(r,w);P.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Z),style:C(F,te)};return l.h("view",K,[z])},Y=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=No(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??ko(r,w),B=[],A=r.layout;for(let T of A)if(T==="head"){const K=q(w,F,_,p,H);B.push(K)}else if(T==="main"){const K=$(w,F,p,H);B.push(K)}else if(T==="sub"){const K=k(w,F,p);B.push(K)}else if(T==="mark"){const K=x();B.push(K)}const G=P.class,z=P.style??{};let Z=Eo(r,w);P.doit===!0&&(Z=!0);const te={ref:ee(F),class:S(F,p,H,Z,G),style:C(F,z)};return l.h("view",te,B)},W=l.ref(),X=l.ref([]),U=(w,F)=>{X.value[F]=w},ee=w=>F=>{U(F,w)},le=(w,F)=>{const P=W.value,p=X.value;if(!P||!p||!p[w])return;const H=p[w];let _=0;r.direction==="vertical"?_=H.offsetTop-(P.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(P.offsetWidth-H.offsetWidth)/2,I(P,_,F?0:.3,r.direction)},I=(w,F,P,p)=>{let H=0;const _=p==="horizontal"?w.scrollLeft:w.scrollTop,B=P===0?1:Math.round(P*1e3/16);function A(){p==="horizontal"?w.scrollLeft+=(F-_)/B:w.scrollTop+=(F-_)/B,++H<B&&Gn(A)}A()};return()=>{const w=[];if(r.mode==="simple")for(let P=0;P<c.value.length;P++){const p=c.value[P],H=D(p,P);w.push(H)}else for(let P=0;P<c.value.length;P++){const p=c.value[P],H=Y(p,P);w.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,w)}}}}const{componentName:Rf,create:Af,scope:Lf}=ae("steps-bar"),kl=Af(Ff(Rf,Lf,rf,cf)),Mf=Symbol.for("InnerPageScopeKey"),Bf=Symbol.for("PageWrapperKey");function _f(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(Mf,!0);const r={};l.provide(Bf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...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},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(v.ElDialog,f,c)}}}}const{componentName:em,create:qf,scope:tm}=ae("dialog-item"),Il=qf(_f());let Nt=0;const Io="fox-overflow-hidden",Vo=()=>dt?document.body:{classList:[]},jf=e=>[()=>{if(e())try{!Nt&&Vo().classList.add(Io),Nt++}catch{}},()=>{if(e()&&Nt)try{Nt--,!Nt&&Vo().classList.remove(Io)}catch{}}],zf={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:Hf,create:Kf}=ae("overlay"),Wf=Kf({props:{...zf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=jf(()=>e.lockScroll),r=l.computed(()=>({[Hf]:!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 Yf(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 mn=qe(Wf,[["render",Yf]]),Gf={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:{}}},Wr=2e3;let Oo=Wr;const Uf=(e,t)=>({components:t,props:{...Gf},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!==Wr&&(Oo=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Oo,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},y=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:y,onOpened:V,onClosed:g}}}),{componentName:Xf,create:Zf}=ae("popup"),Jf=Zf(Uf(Xf,{FoxOverLay:mn,Close:tf}));function Qf(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 Vl=qe(Jf,[["render",Qf]]),{create:ed}=ae("toast"),td=ed({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,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=de(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=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]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),nd={key:1,class:"fox-toast-title"},ld=["innerHTML"];function od(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",nd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,ld)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ol=qe(td,[["render",od]]),rd={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"}},ad=(e,t,o)=>({props:{...rd},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}=pr(),{toLocaleRefs:i}=_e.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=N=>{let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,N),a("change",x,N)},y=l.ref({}),V=N=>{let x=N.target.value;u.active=!0,y.value=n.focusStyle,a("focus",x,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),y.value={},a("blur",x,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},C=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},L=N=>{a("click-left-icon",n.modelValue,N)},M=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const R=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:M.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:V,onBlur:g,onkeyup:C},x=l.h("input",E);N.push(x);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const $={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...y.value}};return l.h("view",$,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},$=l.h("span",q,[n.label]);N.push($)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=l.h("view",q,[r.leftout()]);N.push($)}const E=R();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=l.h("view",q,[r.rightout()]);N.push($)}const x={class:`${e}`,style:f.value};return l.h("view",x,N)}}}),{componentName:id,create:sd,scope:ud}=ae("searchbar"),Pl=sd(ad(id,ud,Ee.CircleClose)),cd=/scroll|auto|overlay/i,Yr=window;function fd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function dd(e,t=Yr){let o=e;for(;o&&o!==t&&fd(o);){const{overflowY:n}=window.getComputedStyle(o);if(cd.test(n))return o;o=o.parentNode}return t}function Gr(e,t=Yr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=dd(e.value,t))}),o}const Ur=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,hd={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 md(e,t,o){return{props:{...hd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=_e.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Gr(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,V=()=>{let b=0,C=0,j="down";if(f.value==window){const L=Ur();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),C=L}else{const{scrollHeight:L,clientHeight:M,scrollTop:O}=f.value;b=L-M-O,C=O}return c.beforeScrollTop>C?j="up":j="down",c.beforeScrollTop=C,r("scroll-change",C),b<=n.threshold&&j=="down"},g=()=>{zo(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",g,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(c.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},C=l.h("view",b,[a?.default?.()]),j=[];if(c.isInfiniting){let R=a?.loading?.()??null;if(!R){let x=a?.loadingIcon?.()??null;if(!x){const k={class:["fox-infinite__bottom-box__img"]};x=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},$=l.h("view",q,[s.loadText.value]);R=[x,$]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,R);j.push(E)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const N={class:"fox-infinite__bottom-tips"};R=l.h("view",N,[s.loadMoreText.value]),j.push(R)}}const L={class:"fox-infinite__bottom"},M=l.h("view",L,j),O={class:d.value,ref:u};return l.h("view",O,[C,M])}}}}const{componentName:gd,create:pd,scope:vd}=ae("infinite-loading"),Dl=pd(md(gd,vd,$l)),Po=10;function Xr(e,t){return e>t&&e>Po?"horizontal":t>e&&t>Po?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){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 f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.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=Xr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.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 yd(){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),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const C=m.touches[0];i.value=C.clientX-e.value,s.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Xr(u.value,f.value))},start:m=>{if(V(),m.touches){const C=m.touches[0];e.value=C.clientX,t.value=C.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const bd={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}},wd=(e,t,o)=>({props:{...bd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=_e.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),f=l.ref(),c=Gr(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.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""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ne(n.headHeight)),O}),m=O=>{const R=+(n.pullDistance||n.headHeight);let N=O;return O>R&&(O<R*2?N=(O+R)/2:N=R+O/4),Math.round(N)},S=(O,R)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,R?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",C=()=>c.value==window?Ur()==0:c.value&&c.value.scrollTop==0,j=O=>{b()&&(C()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},M=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let R=null;if(d.status==="loading"){if(R=a?.loading?.()??null,!R){const Y={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,Y)}}else d.status==="pulling"?R=a?.pulling?.()??null:d.status==="loosing"&&(R=a?.loosing?.()??null);R&&O.push(R);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[V.value]);O.push(E);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",x,O),$={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",$,[q,a?.default?.()]),D={ref:f,class:y.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:L,onTouchend:M}):Object.assign(D,{onMousedown:j,onMousemove:L,onMouseup:M}),l.h("div",D,[k])}}}),{componentName:xd,create:Sd,scope:Td}=ae("pull-refresh"),Al=Sd(wd(xd,Td,$l));function $d(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 c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],V=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,V]):l.h("div",g,[V,c])}}}}const{componentName:Cd,create:Nd,scope:nm}=ae("indicator"),Ll=Nd($d(Cd));function Ed(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 kd={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 Id(e,t,o,n=!1){return{props:{...kd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},j=r.textColor??r.color;return j&&(C.color=j),C}),f=(C,j)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if(C.indexOf(M)!==-1){const R=C.replace(new RegExp(M,"g"),`<span>${M}</span>`);j.innerHTML=R,j.class["is-highlight"]=!0,L=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter(C);M&&(j.innerHTML=M,j.class["is-highlight"]=!0,L=l.h(r.tag,j))}return L},c=C=>{a.emit("click",C)};let d="";const y=()=>{const C=i.value;if(!C)return;const j=C.clientWidth;Ed(C,L=>{const M=C.innerHTML??"";ge(M)||L<j||(d?o?.show(C,M,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(C,M,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let g=null;const h=C=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{V()},r.hideAfter??0)},S=()=>{const C=i.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",m))},b=()=>{const C=i.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!ie(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!ie(r.showOverflowTooltip)||!o||b()}),()=>{const C={onClick:c,class:s.value,style:u.value,ref:i};let j=null;if(ie(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=we(r.digits),x=we(r.decimalLength),q=ie(r.autoPadding);let $=`${R[0].children}`,k=$.split("").reverse().join("");k=Xt(k,x,q,E,r.separator),$=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=f($,C)),j||(C.innerHTML=$,j=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${R[0].children}`;j=f(E,C),j||(C.innerHTML=E,j=l.h(r.tag,C))}}}j||(j=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let M=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const x={class:R,style:N};M=l.h("view",x)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[M,j])}}}}const{componentName:Vd,create:Od,scope:Pd}=ae("text"),Ml=Od(Id(Vd,Pd,Pe,!1)),Dd={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:Ee.ArrowUp}};function Fd(e,t,o){return{props:{...Dd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const y={class:f.value},V=o(n.icon,y);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Rd,create:Ad,scope:Ld}=ae("more-button"),Md=(e,t)=>(e=e??Ee.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Ad(Fd(Rd,Ld,Md));function Bd(e){return e===window}const Zr=e=>{const t=l.unref(e);if(Bd(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:_d,create:qd,scope:lm}=ae("tour"),jd=qd({components:{Close:Ee.Close,ElPopover:v.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=_d,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:C,top:j}=r.value,L=e.steps[n.active].offset??g,M=[C+S/2,j+b/2],O=Number(h||S),R=Number(m||b);return{width:`${O+ +L.left+L.right}px`,height:`${R+L.top+L.bottom}px`,top:`${M[1]-R/2-+L.top}px`,left:`${M[0]-O/2-+L.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,f=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Zr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},V=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{V(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),zd={key:0,class:"fox-tour__content"},Hd={key:0,class:"fox-tour__content-top"},Kd={class:"fox-tour__content-inner"},Wd={class:"fox-tour__content-bottom"},Yd={class:"fox-tour__content-bottom-init"},Gd={class:"fox-tour__content-bottom-operate"},Ud={key:1,class:"fox-tour__content fox-tour__content-tile"},Xd={class:"fox-tour__content-inner"};function Zd(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]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{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",zd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Hd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Kd,l.toDisplayString(f.content),1),l.createElementVNode("div",Wd,[l.createElementVNode("div",Yd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Gd,[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]=d=>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]=d=>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",Ud,[l.createElementVNode("div",Xd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=qe(jd,[["render",Zd]]),Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class Jd{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=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),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 Do(e,t){return new Jd(e,t)}var Fo;const Kn=typeof window<"u";Kn&&((Fo=window?.navigator)!=null&&Fo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const Ro=e=>{const t=e;t.key==="Escape"&&mt.forEach(o=>o(t))},Qd=e=>{l.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Ro),Kn&&mt.push(e)}),l.onBeforeUnmount(()=>{mt=mt.filter(t=>t!==e),mt.length===0&&Kn&&document.removeEventListener("keydown",Ro)})},Vn="fox-focus-trap.focus-after-trapped",On="fox-focus-trap.focus-after-released",eh="fox-focus-trap.focusout-prevented",Ao={cancelable:!0,bubbles:!1},th={cancelable:!0,bubbles:!1},Lo="foxFocusAfterTrapped",Mo="foxFocusAfterReleased",nh=Symbol("foxFocusTrap"),ql=l.ref(),gn=l.ref(0),jl=l.ref(0);let _t=0;const Jr=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},lh=(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},Bo=(e,t)=>{for(const o of e)if(!lh(o,t))return o},oh=e=>{const t=Jr(e),o=Bo(t,e),n=Bo(t.reverse(),e);return[o,n]},rh=e=>e instanceof HTMLInputElement&&"select"in e,nt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&rh(e)&&t&&e.select()}};function _o(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const ah=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=_o(e,n),e.unshift(n)},remove:n=>{e=_o(e,n),e[0]?.resume?.()}}},ih=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(nt(n,t),document.activeElement!==o)return},qo=ah(),sh=()=>gn.value>jl.value,qt=()=>{ql.value="pointer",gn.value=window.performance.now()},jo=()=>{ql.value="keyboard",gn.value=window.performance.now()},uh=()=>(l.onMounted(()=>{_t===0&&(document.addEventListener("mousedown",qt),document.addEventListener("touchstart",qt),document.addEventListener("keydown",jo)),_t++}),l.onBeforeUnmount(()=>{_t--,_t<=0&&(document.removeEventListener("mousedown",qt),document.removeEventListener("touchstart",qt),document.removeEventListener("keydown",jo))}),{focusReason:ql,lastUserFocusTimestamp:gn,lastAutomatedFocusTimestamp:jl}),jt=e=>new CustomEvent(eh,{...th,detail:e}),{componentName:om,create:ch,scope:rm}=ae("focus-trap"),fh={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"}},dh=ch({props:fh,emits:[Lo,Mo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=uh();Qd(h=>{ie(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&&!ie(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:C,currentTarget:j,shiftKey:L}=h,{loop:M}=e,O=m==="Tab"&&!S&&!b&&!C,R=document.activeElement;if(O&&R){const N=j,[E,x]=oh(N);if(E&&x){if(!L&&R===x){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),M&&nt(E,!0))}else if(L&&[E,N].includes(R)){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),M&&nt(x,!0))}}else if(R===N){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};l.provide(nh,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=h=>{o(Lo,h)},c=h=>o(Mo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,C=S&&m.contains(S);ie(e.trapped)||b&&m.contains(b)||(r=b),C&&o("focusin",h),!s.paused&&ie(e.trapped)&&(C?a=S:nt(a,!0))},y=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&ie(e.trapped)){const S=h.relatedTarget;!Un(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&ie(e.trapped)){const b=jt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||nt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){qo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Ao);h.addEventListener(Vn,f),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Go(C)||(nt(C),document.activeElement!==C&&(C="first")),C==="first"&&ih(Jr(h),!0),(document.activeElement===m||C==="container")&&nt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,f);const m=new CustomEvent(On,{...Ao,detail:{focusReason:i.value}});h.addEventListener(On,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!sh())&&nt(r??document.body,!0),h.removeEventListener(On,f),qo.remove(s)}}return l.onMounted(()=>{ie(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{ie(h)?V():g()})}),l.onBeforeUnmount(()=>{ie(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:hh,create:mh,scope:am}=ae("floating-window"),gh=Symbol.for("InnerPageScopeKey"),ph=Symbol.for("PageWrapperKey"),vh={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}},yh=mh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:dh},props:{...vh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=hh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return it(i.value)?T.left="auto":T.left=Oe(i.value),it(s.value)?T.top="auto":T.top=Oe(s.value),it(u.value)?T.right="auto":T.right=Oe(u.value),it(f.value)?T.bottom="auto":T.bottom=Oe(f.value),it(e.zIndex)||(T["z-index"]=Oe(e.zIndex)),it(M.value)||(T.height=M.value),it(O.value)||(T.width=O.value),T}),y=l.computed(()=>e.closeIcon??Ee.Close),V=l.computed(()=>e.collapseIcon??Ee.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),C=l.ref(),j=l.ref(null),L=l.ref(null),M=l.computed(()=>Oe(e.height)||""),O=l.computed(()=>Oe(e.width)||""),R=l.ref(ie(e.collapse)),N=(T,K=!0)=>{R.value!==T&&(R.value=T,T?w():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{x()},x=T=>{T=T??!R.value,N(T)};l.provide(gh,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(ph,q);const $=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),X=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),U=l.ref(R.value),ee=l.computed({set:T=>{U.value=T},get:()=>n.value===!1?!1:U.value});let le=null;const I=()=>{typeof le=="function"&&(le(),le=null)},w=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,le=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),le=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},P=()=>{i.value=null,s.value=null,u.value=null,f.value=null},p={x:0,y:0},B=Do(T=>{if(!C.value)return;const K=C.value;if(P(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=Q-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(K.offsetLeft+K.offsetWidth),f.value=ne-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!C.value)return;const K=C.value;P(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Oe(i.value),K.style.top=Oe(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,f.value=p.y-T.y,K.style.left=Oe(i.value),K.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,f.value=p.y-T.y,K.style.right=Oe(u.value),K.style.bottom=Oe(f.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Oe(u.value),K.style.top=Oe(s.value))}),A={x:0,y:0},Z=Do(T=>{k.value&&(A.x=k.value.offsetLeft,A.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=A.y+T.y;W.value=`${K}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),L.value&&T.push(L.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Z.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Z.close()}),{classes:c,styles:d,isShow:a,closeIcon:y,onClose:$,dialogRef:C,headerRef:j,onClickToggle:E,collapseIcon:V,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:X,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),bh={ref:"headerRef",class:"fox-floating-window__header"},wh={class:"fox-floating-window__title"},xh={class:"fox-floating-window__tools"},Sh={class:"fox-floating-window__body"},Th={class:"fox-floating-window__fixednav__text"};function $h(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",bh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",wh,l.toDisplayString(e.title),1),l.createElementVNode("div",xh,[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",Sh,[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",Th,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=qe(yh,[["render",$h]]);function Ch(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return hr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:im,create:Nh,scope:sm}=ae("domain-provider"),Hl=Nh(Ch()),Eh={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 kh(e,t){return{inheritAttrs:!1,props:Eh,setup(o,{slots:n}){if(dt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,V)=>{if(c===null){a.set(y,{visible:null,callback:V});return}r.has(y)&&c.unobserve(y),r.set(y,{visible:null,callback:V}),c.observe(y)},s=y=>{if(c===null){a.delete(y);return}r.has(y)&&(r.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;ui({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(y,V,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch(C){console.error(C)}}},{root:y,rootMargin:V,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,V])=>{if(V||!y||c)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:um,create:Ih,scope:cm}=ae("rolling-provider"),Kl=Ih(kh()),Vh=[Jn,el,tl,nl,ll,Se,ol,rl,Lt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,hn,vl,yl,bl,wl,xl,Sl,Tl,Cl,Nl,El,kl,Il,mn,Vl,Ol,Pl,Dl,Al,Ft,dn,Ll,Ml,Bl,_l,zl,Hl,Kl],Oh=new _a(Vh,[za],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>v.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>v.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>v.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>v.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>v.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>v.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>v.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>v.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>v.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>v.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>v.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>v.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>v.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>v.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>v.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>v.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>v.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ve;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=ht;exports.DateItem=sl;exports.DateUtils=Me;exports.DialogItem=Il;exports.Domain=nn;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Il;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Lt;exports.FoxIndicator=Ll;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Se;exports.FoxMapping=Ft;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=mn;exports.FoxPage=Jn;exports.FoxPopup=Vl;exports.FoxPrice=dn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=wl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Pl;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=xl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=hn;exports.FoxTabsBar=Cl;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ml;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Ol;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Lt;exports.Indicator=Ll;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Se;exports.Mapping=Ft;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=mn;exports.Page=Jn;exports.Popup=Vl;exports.Price=dn;exports.PriorityPolicy=Be;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=wl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Pl;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=xl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=hn;exports.TabsBar=Cl;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ml;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Ol;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=Er;exports.ValidateSchema=cr;exports.ValidateSchemaKey=ze;exports.cancelRaf=oa;exports.clearNonNumber=pa;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=Qt;exports.createValidateSchema=en;exports.debounce=Vt;exports.debounceRef=Ia;exports.decimalLength=or;exports.default=Oh;exports.defineBroadcast=wa;exports.defineConfigDomain=hr;exports.defineDataItem=gr;exports.defineDomain=Zn;exports.defineItem=Te;exports.definePageState=vr;exports.defineSimpleItem=pr;exports.deleteGlobalValidator=Ca;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=ke;exports.extend=ft;exports.floatData=ba;exports.getGlobalValidateCheckEvents=ir;exports.getGlobalValidateResetEvents=ur;exports.getPageContentAreaHeight=Wt;exports.getPageContentAreaWidth=Yt;exports.getPageFooterAreaHeight=Pt;exports.getPageHeaderAreaHeight=Ot;exports.getRootDomain=gt;exports.hasSymbol=Zo;exports.includeProps=rr;exports.indexOf=va;exports.installRules=mr;exports.integerLength=lr;exports.isArray=aa;exports.isArrayLike=Qo;exports.isBrowser=dt;exports.isDate=ua;exports.isESModule=fa;exports.isEmptyString=ge;exports.isEqual=Xe;exports.isFunction=Ln;exports.isHidden=Jt;exports.isInnerPage=Pa;exports.isMap=ia;exports.isNil=Un;exports.isNumberString=nr;exports.isObject=Ze;exports.isPlainObject=Mn;exports.isPromise=Uo;exports.isRegExp=tr;exports.isSet=sa;exports.isString=Go;exports.isSubPage=Da;exports.isSymbol=ca;exports.isTouch=Fl;exports.isWindow=Jo;exports.lastIndexOf=ya;exports.makeArray=ga;exports.merge=er;exports.multiply=Ko;exports.negate=Wo;exports.nextTick=ha;exports.numberFormat=Xt;exports.objectToString=Xo;exports.once=Va;exports.overrideGlobalValidateHandler=Ta;exports.property=De;exports.raf=Gn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=Na;exports.setGlobalValidateHandler=Sa;exports.setGlobalValidateMessages=ka;exports.setGlobalValidateResetEvents=Ea;exports.setGlobalValidator=$a;exports.throttle=dr;exports.toBoolean=ie;exports.toNumber=we;exports.toPadding=We;exports.toPx=de;exports.toPxDesc=Ne;exports.toTypeString=Zt;exports.toValue=he;exports.tryTimes=tn;exports.typeOf=Ht;exports.unNumberFormat=Yo;exports.updatePageState=_n;exports.useBroadcast=Et;exports.useDomain=Je;exports.useExpose=$e;exports.useInnerSize=Qn;exports.usePageState=ln;exports.usePosition=Cr;exports.useRawTouch=Rl;exports.useRect=Zr;exports.useSize=on;exports.useTouch=yd;exports.valueLength=At;
5
+ */function Ht(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=Ne(e),t=Ne(t),[e,t]=Wn(Ne(e),Ne(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Ko(e,t);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(bn(r)):Ne(r)}function bn(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 Ko(t,a)}function Ne(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 Wn(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 Ko(e,t){[e,t]=Wn(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 ve=(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))(ve||{});function Vt(e,t=0,o=ve.HALF_EVEN){if(o===ve.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=Vt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Yl(r[1],a,n,o)?(n?"-":"")+wn(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&&Yl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Yl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!o&&n===ve.FLOOR||o&&n===ve.CEILING)return!1;if(n===ve.UP||o&&n===ve.FLOOR||!o&&n===ve.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 ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(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 Pn(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=Ct(e),t=Ct(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=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(y+=parseInt(e[u[V]--])*parseInt(t[V]));y+=s,s=Math.floor(y/10),c=y%10+c,f--}return c=Ct(ia(c,a)),o==1&&(c="-"+c),c}function ia(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 Ct(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 Dn(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=Ne(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ne(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ne(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ne(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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Ht(u,"-"+t),f++;s+=f,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?"-":"")+Ne(Vt(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),Ht(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Gl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Ul(e),Ul(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,Pn(t,Vt(Dn(e,t),0,ve.FLOOR)));return o+n}function Ul(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Xl(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]=Wn(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 ue{value;static RoundingModes=ve;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=Ne(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+Ne(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=ue.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=ue.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 ue.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ve.HALF_EVEN){if(t=ue.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Vt(t,o,n)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ue(Vt(this.value,t,o))}static floor(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.FLOOR)}static ceil(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.CEILING)}static add(t,o){return t=ue.validate(t),o=ue.validate(o),Ht(t,o)}add(t){return new ue(Ht(this.value,t.getValue()))}static subtract(t,o){return t=ue.validate(t),o=ue.validate(o),Fn(t,o)}subtract(t){return new ue(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ue.validate(t),o=ue.validate(o),Pn(t,o)}multiply(t){return new ue(Pn(this.value,t.getValue()))}static divide(t,o,n){return t=ue.validate(t),o=ue.validate(o),Dn(t,o,n)}divide(t,o){return new ue(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ue.validate(t),o=ue.validate(o),Gl(t,o)}modulus(t){return new ue(Gl(this.value,t.getValue()))}static compareTo(t,o){return t=ue.validate(t),o=ue.validate(o),Xl(t,o)}compareTo(t){return Xl(this.value,t.getValue())}static negate(t){return t=ue.validate(t),Rn(t)}negate(){return new ue(Rn(this.value))}}function Wo(e,t){return ue.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return ue.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,ue.compareTo(e,t)}function Yo(e){return ue.negate(e)}function Zt(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="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",y=s.split("").reverse();for(let V=0;V<y.length;V++)d+=y[V]+((V+1)%n==0&&V+1!=y.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function Go(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Gn=Ho,sa=Array.isArray,ua=e=>Jt(e)==="[object Map]",ca=e=>Jt(e)==="[object Set]",fa=e=>e instanceof Date,Ln=e=>typeof e=="function",Uo=e=>typeof e=="string",da=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",Xo=e=>Xe(e)&&Ln(e.then)&&Ln(e.catch),Zo=Object.prototype.toString,Jt=e=>Zo.call(e),Mn=e=>Jt(e)==="[object Object]",Jo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ha(e){return e.__esModule||Jo&&e[Symbol.toStringTag]==="Module"}const ma=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...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 f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=ft(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)ft(!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)&&!Mn(i))continue;a=Bn(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)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=ma?Promise.resolve():null;function ga(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 xe(e){return typeof e=="number"?e:Number(e)}const pa={"[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 Kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):pa[o]||"object"}function Qo(e){return e&&typeof e=="object"&&"setInterval"in e}function Qt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function er(e){let t=!!e&&"length"in e&&e.length,o=Kt(e);return o==="function"||Qo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function tr(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 va(e,t=[]){let o=t;return e!=null&&(er(Object(e))?tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ue(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Kt(e),n=Kt(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],f=t[s];if(!Ue(u,f))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(!Ue(a,i))return!1}return!0}return!1}const dt=typeof window<"u";function Un(e){return e==null}function nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lr(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 or(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 rr(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 Zl(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 ya(e,t=!0,o=!0){t?e=Zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ue(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ue(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ar(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ie(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 xa=(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},ye=Symbol.for("BroadcastKey");class Xn{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="*"):nr(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 en(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Sa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ut=e=>e.default??e;class Ta{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;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=n||l.hasInjectionContext()?kt(n):null,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 It=new Ta;function Ca(e){It=e}function $a(e){It?Object.assign(It,e):It=e}function Na(e,t){ut(st).setValidator(e,t)}function Ea(e){ut(st).deleteValidator(e)}let ir=["blur","clear"];function ka(e){ir=e}function sr(){return ir}let ur=["focus","change","setValue"];function Ia(e){ur=e}function cr(){return ur}function Va(e){ut(st).messages(e)}function $t(...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 ze=Symbol("ValidateSchemaKey");class fr{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(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(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=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=It;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?ut(st).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?ut(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(st).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=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(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=$t(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=ut(st),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function tn(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 fr(t,o,e)}const Wt=Symbol.for("EventEmitterKey");class dr{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 Ot(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function hr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=Ot((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Pa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function nn(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ae=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class ln{_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 Da=new ln;function pt(){return Da}function Ze(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Sn=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=pt());const s=e||t.prop||t.name;let u=new ln(s);u.parent=i;const f=V=>{a[Sn]||y(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Sn]??null,y=V=>{const g={};ft(!0,g,l.toRaw(V)),a[Sn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&y(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const V=l.inject(ye,null),g=en(a,V,s,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(S,b,...$)=>Reflect.apply(g.emit,g,[S,b,...$]);const h=l.inject(ze,null),m=tn(a,h,{componentName:""});u.validateSchema=m,a[ze]=m,l.provide(ze,m),a[mt]=new Map,a.validate=(S=!0)=>{const b=[];let $=null;const j={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;$={name:M=>M?L.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(j,L),Array.isArray(L.include)&&L.include.length>0){const M=L.include;$={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const M=L.exclude;$={name:O=>O?M.indexOf(O)===-1:!1}}else $={name:"*"}}if($){const L=g?.emitToChildren($,"validate",j);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let M=[];return L.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(M=[...M,...O.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(S).forEach(L=>{let M=String(L);const O={componentName:"",fieldName:M,pureDataValidate:!0};if(u){const R=pr(u,M,O,g,m);a[mt].set(M,R);const N=S[M];N&&R.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),L={name:M=>j.includes(M)};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const $=S;b={name:j=>j?$.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const $=S;if(Array.isArray($.include)&&$.include.length>0){const j=$.include;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const j=$.exclude;b={name:L=>L?j.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=c();if(!b)return;const $={};if(ft(!0,$,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=$[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=$[L]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys($).forEach(L=>{j.includes(L)||(b[L]=$[L])})}else Object.assign(b,$);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?f(S):g?.emitToChildren({name:b},"setModelValue",S)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function mr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=pt());const i=e||t.prop||t.name;let s=new ln(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[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function gr(e,t,o){const r=Ze(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Ce(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ye,null);let s=en(r,i,a,o);r[ye]=s,l.provide(ye,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=tn(r,u,e);r[ze]=f,l.provide(ze,f),gr(r,f,a),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,$=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;$===!0&&e.disabled===!0||j===!0&&e.readonly===!0||L===!0&&Qt(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=f?.validate();h.push(b)}if(m){let b=null;const $={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign($,j),Array.isArray(j.include)&&j.include.length>0){const L=j.include;b={name:M=>M?L.indexOf(M)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const L=j.exclude;b={name:M=>M?L.indexOf(M)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",$);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&($=[...$,...j.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>f?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&f?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new dr(r);r[Wt]=c;const d=Ot((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sr()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cr()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[ye]=void 0,l.provide(ye,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Wt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(g,...h)=>{c&&Reflect.apply(c.emit,c,[g,...h])},onEvent:(g,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(g,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function pr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=tn({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,y=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),V=!0,y=g.deep??!1}else typeof c=="boolean"&&(y=c),V=!0;if(V&&u){const g=u.validate();d.push(g)}if(y){let g=null;const h={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const m=c;g={name:S=>S?m.indexOf(S)!==-1:!1}}else if(c!=null&&typeof c=="object"){const m=c;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&f){const m=f.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=en(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function vr(){let t=l.getCurrentInstance()?.proxy,o=new dr(t);return t[Wt]=o,l.onUnmounted(()=>{o?.destroy(),t[Wt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ee=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(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(dt){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 rt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function _n(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function yr(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=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(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,f=e.get("footerBarHeight")??0;_n(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(rt);d&&(n.height=Yt(e,d),n.width=Gt(e,d),l.watch([()=>Yt(e,d),()=>Gt(e,d)],([V,g])=>{c.height=V,c.width=g}));const y=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,g,h=-1,m=-1,S=0,b=0])=>{_n(c,g,t,y,h,m,S,b)}),e.set(rt,c),c}function on(e){return e.get(rt)}function Pt(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Pt(e,t),n=Dt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Fa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ra(e){return!!e.getForParent(rt)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Tn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=Ze();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(Tn(u,n))return u}const i=e.value;return Tn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Tn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return se(o)})}function Re(e){return De(e,"disabled",0,function(o){return se(o)})}function he(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 br=new Map,Ut=new Map;let qn=null;function Aa(e){qn=e}function wr(e,t,o){if(o){let n=Ut.get(o);n||(n=new Map,Ut.set(o,n)),n.set(e,t)}else br.set(e,t)}function He(e,t,o){!o&&qn&&(o=qn(e)??void 0);let n=null;if(o){let r=Ut.get(o);r&&(n=r.get(t))}return n||(n=br.get(t)),n}function La(e,t){for(let o in e){const n=e[o];wr(o,n,t)}}function Ma(e){Ut.delete(e)}function Ba(){return{top:0,left:0,bottom:0,right:0}}function _a(e=0,t=0){if(dt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function qa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class ja{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=>{if(a.install)t.use(a);else if(a.name){const i=qa(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,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=ft({},Ba(),t.safeAreaInset),i=_a(n,r),s=ft({},i.pageLayout,t.pageLayout);o=o??pt(),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){Aa(t)}setAPI(t,o,n){wr(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){La(t,o)}clearScopeAPI(t){Ma(t)}getRootDomain(){return pt()}}const za=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],Ha=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ka=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);za.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Ha.forEach(r=>{e.use(r)})};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 $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Se={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}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,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}},xr={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}},Sr={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}},Tr=[];for(const e in Sr)Tr.push(e);const Wa=Symbol.for("InnerPageScopeKey"),Ya={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}},Ga=(e,t)=>({inheritAttrs:!0,props:{...Se,...xr,...Ya},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Wa,!1);if(r){const c=yr(r,o);$e({getPageContentHeight:()=>Yt(r,c),getPageContentWidth:()=>Gt(r,c),getPageHeaderHeight:()=>Pt(r,c),getPageFooterHeight:()=>Dt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[y,V])=>{if(c&&y){const g=l.toRaw(y),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h)}if(d&&V){const g=l.toRaw(V),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ua,create:Xa,scope:Rh}=ie("page"),Jn=Xa(Ga(Ua));function rn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Qn(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 Za=(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=Ze(),s=i?on(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(E,x),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(x.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const x=Ke(r.padding);Object.assign(E,x)}return E}),V=l.ref(null),g=()=>{if(s&&V.value&&!Qt(V.value)){if(!n){const E=rn(V.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(nn(g,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function j(){a.emit("click-right")}function L(){a.emit("click-right-text")}const M=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:L},[r.rightText]);E.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},R=()=>{if(!r.titleShow)return null;const E=[],x=a.slots.default?a.slots.default():null;if(x)E.push(x);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],x=a.slots.bottom?a.slots.bottom():null;return x&&E.push(x),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],C=M();C&&q.push(C);const k=R();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:c.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const x={class:f.value,style:m.value,ref:V};return l.h("view",x,E)}}}),{componentName:Ja,create:Qa,scope:ei}=ie("header-bar"),el=Qa(Za(Ja,ei,ke.ArrowLeft));function ti(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=Ze(),i=a?on(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Ke(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(i&&c.value&&!Qt(c.value)){if(!o){const g=rn(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(nn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const V=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=Ee(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(g.paddingTop=Ee(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(g.paddingLeft=Ee(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(g.paddingRight=Ee(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(g.paddingBottom=Ee(f.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,g)}}}}const{componentName:ni,create:li,scope:Ah}=ie("footer-bar"),tl=li(ti(ni));function oi(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ze(),r=l.computed(()=>({[e]:!0})),a=n?on(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=Ke(o.padding);Object.assign(a.contentPadding,V)}const c=Pt(n,a),d=Dt(n,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,f.height=y,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Qn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Pt(n),()=>Dt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ri,create:ai,scope:Lh}=ie("content"),ii=ai(oi(ri));function si(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 _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=_e(ii,[["render",si]]),bt="GroupStateKey",Cr=Symbol.for("GroupScopeKey");function an(){return l.inject(Cr,!1)}function sn(e=!0){l.provide(Cr,e)}function ui(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Un(r)||(e[n]=r)})}function ci(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ui(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function Cn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(bt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=de(a),d=de(i);s||(s=f.type??"grid");const y=()=>{const V=t===""||t===-1,g=de(t);let h=xe(o);const m=de(n);if(!V){let $=(g-(h-1)*m)/h;for(;d!==-1&&$>d;)h++,$=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&$<c;)h--,$=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&y()},50)}}function un(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.layout}function cn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.order}function Jl(e,t=1){if(t==="stretch")return-1;const o=xe(t);return o===-1?100:100*o/e}function fn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Jl(t.column,o),i>0&&(a.width=`${i}%`);const s=Jl(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 dn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=xe(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=xe(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 $r=Symbol("RollingStateKey");function fi(e){l.provide($r,e)}function di(){return l.inject($r,null)}function jn(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 hi(e){let t=jn(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=jn(o),document.body.removeChild(o)}return t}function mi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const gi={...Se,...xr,...Sr};function pi(e,t,o){return{props:gi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,Tr),i=ci(a,{type:n.type}),s=an();sn(!0);const u=n.rollingDisplay?di():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?un(a,!0).value:null),y=l.getCurrentInstance(),V=(z,Z=!1)=>{const te=y?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[te,T])=>{if(z&&te){const K=l.toRaw(te),Q=l.toRaw(z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),V(Q)}if(Z&&T){const K=l.toRaw(T),Q=l.toRaw(Z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),V(Q,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Z=s?cn(a,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const te=dn(Z,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=fn(Z,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ee(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const te=mi(R.value,i.layout.value.column,i.layout.value.gutter);Z=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),j=l.computed(()=>s||c.value?!0:se(n.isWrap)),L=[],M=z=>{L.push(z)},O=()=>{let z=L.length;L.splice(0,z)},R=l.ref(-1),N=z=>{const Z=Qn(z).width;Z>0&&Z!==R.value&&(R.value=Z)};Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,$,b],([z,Z,te])=>{i.order.index=0,Cn(a,z,Z,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),C=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ee(n.height)||""),Y=l.ref(!1),W=l.ref(""),X=l.ref(!1);let U=-1;const ee=(z,Z=!0)=>{const te=C.value;if(te&&Y.value!==z){if(U=U===-1?hi(te):U,X.value=!0,Z)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",X.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${U}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${U}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else X.value=!1,W.value=`${U}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const re=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!Y.value,ee(z)};$e({toggleCollapse:w,doLayout:()=>{L[0]&&(N(L[0]),Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let P=null,p=!0;const H=z=>{if(n.rules){const Z=l.toRaw(n.rules);V(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);V(Z,!0)}if(dt&&(z&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];N(Z),window.ResizeObserver&&(P=new window.ResizeObserver(()=>{N(Z)}),P.observe(Z))}},_=()=>{P?.disconnect(),P=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),c.value&&u){let z=null,Z=u.initialHeight;u.observe(C.value,te=>{if(te!==f.value)if(te)f.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,f.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),f.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=jn(C.value);T<=0?W.value=Z:(W.value=`${T}px`,Z=W.value)}p||_()}})}}),l.onUnmounted(()=>{P?.disconnect(),u&&u.unobserve(C.value)});const A=(z="right")=>{const Z=[];if(E.value){const K={class:x.value},Q=l.h("span",K,[E.value]);Z.push(Q)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Z.push(T),Z.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},G=(z,Z,te,T)=>{const K={...m.value};return Z===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:M,key:`${Z}`,class:K,style:S.value},z)};return()=>{if(c.value&&f.value!==!0){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[])}i.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},Q=l.h("div",K,[r.slots.header()]);z.push(Q)}else{const K=[],Q=n.collapsePosition==="left";if(Q&&n.showCollapse){const le=A("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!Q&&n.showCollapse){const le=A("right");le&&K.push(le)}if(K.length>0){const le={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},fe=l.h("div",le,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=G(te,Z++,0,te.length);z.push(K)}else if(T==="flow"){const K=G(te,Z++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const Q=te[K],le=G([Q],Z++,K,te.length);z.push(le)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[z])}else return z}}}}const{componentName:vi,create:yi,scope:bi}=ie("group"),wi=(e,t)=>(e=e??ke.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),ll=yi(pi(vi,bi,wi));function xi(e){return e===window}const Si=/matrix\((.+)\)/,Nr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(xi(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:f}=window.getComputedStyle(r);if(f){const c=Si.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ti{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 Ti,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 Ql=new Ci,Er={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:$i,create:Ni}=ie("price"),Ei=Ni({props:{...Er},setup(e){const t=l.computed(()=>({[$i]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Lt(e.price)==0?"":Zt(e.price,e.decimalLength,!0,xe(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}}}),ki=["innerHTML"],Ii=["innerHTML"];function Vi(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,ki)):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,Ii)):l.createCommentVNode("",!0)],2)}const hn=_e(Ei,[["render",Vi]]),{componentName:$n,create:Oi}=ie("hint-text"),Pi=Oi({components:{Price:hn},props:{...Er,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),f=(x,q,C,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,U=x.split("-");let ee=[];U[0]==="top"?ee=["top","bottom","right","left"]:U[0]==="bottom"?ee=["bottom","top","right","left"]:U[0]==="left"?ee=["left","top","bottom","right"]:U[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<ee.length;w++){const F=ee[w];if(I[0]=F,U[1]&&(I[1]=U[1]),F==="top"){const P=q.y-Y-e.arrowSize-e.offset;if(P>=0){re.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="bottom"){const P=q.y+k+e.arrowSize+e.offset;if(P+Y<=X){re.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="left"){const P=q.x-D-e.arrowSize-e.offset;if(P>=0){re.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}else if(F==="right"){const P=q.x+C+e.arrowSize+e.offset;if(P+D<=W){re.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},c=(x,q,C=10)=>{if(!dt||q===!1||!x)return;n.value=Nr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:W}=f(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0},d=l.ref(0),y=Ot(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const g=l.computed(()=>V.value&&h.value),h=l.ref(!0),m=Ot(x=>{const q=x[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Ql.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeMount(()=>{Ql.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const x={[$n]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),$=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),j=l.computed(()=>{const x=[`${$n}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),L=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),M=l.computed(()=>({[`${$n}__arrow`]:!0})),O=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:b,styles:$,textClasses:j,textStyles:L,arrowClasses:M,arrowStyles:O,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),Di=["innerHTML"];function Fi(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,Di))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=_e(Pi,[["render",Fi]]);class kr{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 zn={},Ri=new kr,vt=new Map,Xt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}vt.clear()}},Ai=e=>{e.unmount=Xt;const t=document.getElementById(e.id);if(t){const o=vt.get(e.id);o?e={...zn,...o,...e}:e={...zn,...e},e.transition=!1;const n=l.createVNode(Mt,e);return l.render(n,t),e.id}},Li=e=>{e.unmount=Xt;let t=e.id??`hinttext_${Ri.get()}`;e={...zn,...e},e.id=t,vt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Mt,e);return l.render(n,o),document.body.appendChild(o),t},Mi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,t,o={},n=!0){Mi(t);const r=o.id;return r&&vt.has(r)?Ai({...o,message:t,reference:e}):(n&&Xt(),Li({...o,message:t,reference:e}))},hide(e){Xt(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Bi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Se,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ce({componentName:e,validate:!1},i);const s=Ze(),u=an();sn(!1);const f=l.computed(()=>u&&s?un(s,!1).value:null),c=e,d=l.ref(null),y=l.computed(()=>{const T={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:se(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),V=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ee(r.width));else{const K=u&&s?cn(s,!1):null;if(f.value&&K){if(f.value.type==="grid"){const Q=dn(K,f.value,r.span,r.offset);Object.assign(T,Q)}else if(f.value.type==="flow"){const Q=fn(K,f.value,r.span,r.offset,r.width);Object.assign(T,Q)}}}if(typeof V.value=="function"){const K=V.value(i);K&&Object.assign(T,K)}else if(V.value&&typeof V.value=="object"){const K=V.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${$.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),M=De(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),O=l.computed(()=>M&&M.value?{width:Ee(M.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){m.value=T},setErrorTip(T){x.errorTip=T},setErrorIcon(T){x.errorIcon=T},setWarnTip(T){x.warnTip=T},setWarnIcon(T){x.warnIcon=T},setInfoTip(T){x.infoTip=T},setInfoIcon(T){x.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){V.value=T}});const q=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),k=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),Y=l.computed(()=>r.errorTip||x.errorTip),W=l.computed(()=>r.errorIcon||x.errorIcon),X=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),U=()=>X.value.length>0,ee=l.computed(()=>X.value==="error"?Y.value:X.value==="warn"?k.value:X.value==="info"?q.value:""),re=l.computed(()=>X.value==="error"?W.value:X.value==="warn"?D.value:X.value==="info"?C.value:null),I=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${X.value}`]:!0,[`${c}--animate`]:!0};return X.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),w=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":M&&M.value&&(T["padding-left"]=Ee(M.value)),T}),F=l.ref();let P="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,Q,le])=>{F.value&&(T&&!ge(K)?P?o.show(F.value,K,{...le,id:P,type:Q},!0):P=o.show(F.value,K,{...le,type:Q},!0):o.hide(P))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let Q of T)if(Q.intersectionRatio>0){K=!0,K&&a.emit("appear",Q);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{!p||!F.value||(p.unobserve(F.value),p=null)};l.watch(()=>se(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{se(r.appearListen)&&H()}),l.onUnmounted(_);const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,Q={class:R.value},le=l.h("div",Q,[K]);if(T.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();T.push(ce)}const fe={class:L.value,style:O.value};return l.h("div",fe,T)},A=()=>{const T=[];if(a.slots.prepend){const Q=a.slots.prepend();T.push(Q)}if(a.slots.default){const Q=a.slots.default();T.push(Q)}if(a.slots.append){const Q=a.slots.append();T.push(Q)}if(a.slots.fixedTip){const Q={class:[`${c}__fixed-tip`]},le=l.h("div",Q,[a.slots.fixedTip()]);T.push(le)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},G=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Z=()=>{if(!U())return null;const T=[],K=G();K&&T.push(K);const Q=z();Q&&T.push(Q);const le={class:I.value,style:w.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],Q=B();Q&&K.push(Q);const le=A();le&&K.push(le);const fe={class:j.value},ce=l.h("div",fe,K);T.push(ce);const pe=Z();pe&&T.push(pe);const qe=te();qe&&T.push(qe);const et={class:y.value,style:g.value,prop:r.prop};return l.h("div",et,T)}}}}const{componentName:_i,create:qi,scope:ji}=ie("item"),Te=qi(Bi(_i,ji,Pe,!1));function zi(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=Ze(),a=an();sn(!1);const i=l.computed(()=>a&&r?un(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?cn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=dn(d,i.value,o.span,o.offset);Object.assign(c,y)}else if(i.value.type==="flow"){const y=fn(d,i.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=Ee(o.width)),c;else o.width&&(c.width=Ee(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:Hi,create:Ki,scope:Mh}=ie("slot-item"),ol=Ki(zi(Hi));function Wi(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=Ze(),s=an();sn(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=un(i,!1),d=cn(i,!1);if(c.value&&d)if(c.value.type==="grid"){const y=dn(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=fn(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=Ee(o.width))}else o.width&&(f.width=Ee(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Yi,create:Gi,scope:Bh}=ie("row-item"),rl=Gi(Wi(Yi)),Ye=(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},eo={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 Ui(e,t,o){return{props:{...Se,...Ve,...eo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let m=he(n,"hintText"),S=l.ref(!1);const b=C=>{let D=C.target.value;c.value=!0,ge(m.value)||(S.value=!0),s("focus",D,C)},$=C=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let D=C.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,C)},j=()=>{s("clear","")},L=l.ref(!1);let M=null;const O=()=>{n.showTooltip&&L.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{L.value=!0},150))},R=()=>{M&&(clearTimeout(M),L.value=!1,M=null)},N=l.computed(()=>L.value||S.value),E=l.computed(()=>L.value?d.value:m.value),x=l.computed(()=>Lt(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onChange:h,onInput:g,onFocus:b,onBlur:$,onMouseover:O,onMouseleave:R},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.default&&(X.fixedTip=r.slots.fixedTip);const ee={...Ie(n,eo),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Xi,create:Zi,scope:Ji}=ie("input-item"),al=Zi(Ui(Xi,Ji,Te));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Qi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let es=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ts(){const e=l.getCurrentInstance();return new es(e.proxy)}function Vr(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function Or(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=Ir(e,i);if(Array.isArray(s)&&s.length>0){const u=Or(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ot(e,i)===a;else if(o==="item")u=Vr(e,i,a);else{let f=Ft(e,i);f==null&&(f=ot(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function ns(e){return{text:e,value:e}}const to={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},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ls(e,t,o){return{props:{...Se,...Ve,...to},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(G=>ot(n,G)).join(" "):""),V=(A,G,z,Z=!0)=>{const te=Or(n,A,G,z);if(te===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const Q=te[K],le=d.value[K];if(!Vr(n,Q,le)){T=!1;break}}if(!T){d.value=te;let K=[],Q=[],le=[];te.forEach(qe=>{const et=Ft(n,qe),ht=ot(n,qe);K.push(et),le.push(ht),n.valueType==="text"?Q.push(ht):n.valueType==="item"?Q.push(qe):Q.push(et)});let fe,ce,pe;se(n.multiple)?(c.value=K,fe=l.toRaw(Q),ce=le,pe=l.toRaw(te)):(c.value=K[0]??"",fe=l.toRaw(Q[0]??""),ce=le[0]??"",pe=l.toRaw(te[0])),Z&&(s("update:modelValue",fe),s("change",fe,pe)),s("update:text",ce)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,A=>se(A)),b=ts(),$=async(A,G)=>{if(A){const z=await b.load("select",A,G);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>ns(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([A,G])=>{h.value=null,$(A,G)},{immediate:!S.value});let j=!1;const L=()=>{j||(j=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([A,G])=>{if(N()&&se(n.multiple)){Ue(G,c.value)||(c.value=G);return}V(G,n.valueType,m.value,!1),s("setValue",G)});let M=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(M=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.remoteMethod(A);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.filterMethod(A,g.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),x=e,q=l.computed(()=>({[x]:!0})),C=A=>{n.allowCreate||N()&&se(n.multiple)?(s("update:modelValue",A),s("change",A),s("update:text",A),c.value=A):V(A,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=A=>{let z=A.target.value;E.value=!0,ge(k.value)||(D.value=!0),s("focus",z,A)},W=A=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=A.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),P.value||s("blur",z,A)},X=()=>{s("clear","")},U=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&U.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{U.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),U.value=!1,ee=null)},w=l.computed(()=>U.value||D.value),F=l.computed(()=>U.value?y.value:k.value),P=l.ref(!1),p=A=>{P.value=A,s("visible-change",A),A||s("selected")},H=A=>{s("remove-tag",A)},_=(A,G)=>{const z=[];return A.forEach((Z,te)=>{const T=Ir(n,Z);if(Array.isArray(T)&&T.length>0){const K=_(T,G),Q=ot(n,Z),fe={key:`${Q}_${te}`,label:Q};z.push(l.h(v.ElOptionGroup,fe,{default:()=>K}))}else{const K=Ft(n,Z),Q=ot(n,Z),le=Qi(n,Z),ce={key:`${K}_${te}`,label:Q,disabled:le,value:K};if(typeof G=="function")z.push(l.h(v.ElOption,ce,{default:()=>G(Z)}));else if(n.optionType==="item"){const pe={class:{"fox-select-item__option-left":!0}},qe=l.h("span",pe,[K]),et={class:{"fox-select-item__option-right":!0}},ht=l.h("span",et,[Q]),tt=l.h("div",{class:{"fox-select-item__option":!0}},[qe,ht]);z.push(l.h(v.ElOption,ce,{default:()=>tt}))}else n.optionType==="value"?z.push(l.h(v.ElOption,ce,{default:()=>[K]})):z.push(l.h(v.ElOption,ce))}}),z},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const G={...Ye(r.attrs),ref:B,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:X,onChange:C,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof M=="function"&&(G["remote-method"]=M,G.loading=O.value),typeof R=="function"&&(G["filter-method"]=R,G.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Z=[],te=l.h(v.ElSelect,G,z);Z.push(te);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const Q={...Ie(n,to),hintText:F.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(Q["appear-listen"]=!0,Q.onAppear=L),l.h(o,Q,T)}}}}const{componentName:os,create:rs,scope:as}=ie("select-item"),il=rs(ls(os,as,Te));var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",y="quarter",V="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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("_")},$=function(C,k,D){var Y=String(C);return!Y||Y.length>=k?C:""+Array(k+1-Y.length).join(D)+C},j={s:$,z:function(C){var k=-C.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+$(Y,2,"0")+":"+$(W,2,"0")},m:function C(k,D){if(k.date()<D.date())return-C(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),X=D-W<0,U=k.clone().add(Y+(X?-1:1),d);return+(-(Y+(D-W)/(X?W-U:U-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:V,w:c,d:f,D:g,h:u,m:s,s:i,ms:a,Q:y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},L="en",M={};M[L]=b;var O=function(C){return C instanceof x},R=function C(k,D,Y){var W;if(!k)return L;if(typeof k=="string"){var X=k.toLowerCase();M[X]&&(W=X),D&&(M[X]=D,W=X);var U=k.split("-");if(!W&&U.length>1)return C(U[0])}else{var ee=k.name;M[ee]=k,W=ee}return!Y&&W&&(L=W),W||!Y&&L},N=function(C,k){if(O(C))return C.clone();var D=typeof k=="object"?k:{};return D.date=C,D.args=arguments,new x(D)},E=j;E.l=R,E.i=O,E.w=function(C,k){return N(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function C(D){this.$L=R(D.locale,null,!0),this.parse(D)}var k=C.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,X=Y.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 U=W.match(m);if(U){var ee=U[2]-1||0,re=(U[7]||"0").substring(0,3);return X?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,X=!!E.u(Y)||Y,U=E.p(D),ee=function(_,B){var A=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return X?A:A.endOf(f)},re=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,w=this.$M,F=this.$D,P="set"+(this.$u?"UTC":"");switch(U){case V:return X?ee(1,0):ee(31,11);case d:return X?ee(1,w):ee(0,w+1);case c:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(X?F-H:F+(6-H),w);case f:case g:return re(P+"Hours",0);case u:return re(P+"Minutes",1);case s:return re(P+"Seconds",2);case i:return re(P+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,X=E.p(D),U="set"+(this.$u?"UTC":""),ee=(W={},W[f]=U+"Date",W[g]=U+"Date",W[d]=U+"Month",W[V]=U+"FullYear",W[u]=U+"Hours",W[s]=U+"Minutes",W[i]=U+"Seconds",W[a]=U+"Milliseconds",W)[X],re=X===f?this.$D+(Y-this.$W):Y;if(X===d||X===V){var I=this.clone().set(g,1);I.$d[ee](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,X=this;D=Number(D);var U=E.p(Y),ee=function(w){var F=N(X);return E.w(F.date(F.date()+Math.round(w*D)),X)};if(U===d)return this.set(d,this.$M+D);if(U===V)return this.set(V,this.$y+D);if(U===f)return ee(1);if(U===c)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[U]||1,I=this.$d.getTime()+D*re;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var X=D||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),ee=this.$H,re=this.$m,I=this.$M,w=W.weekdays,F=W.months,P=function(B,A,G,z){return B&&(B[A]||B(Y,X))||G[A].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,A,G){var z=B<12?"AM":"PM";return G?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:P(W.monthsShort,I,F,3),MMMM:P(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:P(W.weekdaysMin,this.$W,w,2),ddd:P(W.weekdaysShort,this.$W,w,3),dddd:w[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,re,!0),A:H(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:U};return X.replace(S,function(B,A){return A||_[B]||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var X,U=E.p(Y),ee=N(D),re=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,w=E.m(this,ee);return w=(X={},X[V]=w/12,X[d]=w,X[y]=w/3,X[c]=(I-re)/6048e5,X[f]=(I-re)/864e5,X[u]=I/r,X[s]=I/n,X[i]=I/o,X)[U]||I,W?w:E.a(w)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),X=R(D,Y,!0);return X&&(W.$L=X),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},C}(),q=x.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",g]].forEach(function(C){q[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),N.extend=function(C,k){return C.$i||(C(k,x,N),C.$i=!0),N},N.locale=R,N.isDayjs=O,N.unix=function(C){return N(1e3*C)},N.en=M[L],N.Ls=M,N.p={},N})})(Pr);var is=Pr.exports;const We=Qe(is);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,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)},f=function(h){return function(m){this[h]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},y=function(h,m){var S,b=s.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,m))>-1){S=$>12;break}}else S=h===(m?"pm":"PM");return S},V={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(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,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,x){var q=x&&x.toUpperCase();return E||S[x]||o[x]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,k,D){return k||D.slice(1)})})).match(n),$=b.length,j=0;j<$;j+=1){var L=b[j],M=V[L],O=M&&M[0],R=M&&M[1];b[j]=R?{regex:O,parser:R}:L.replace(/^\[|\]$/g,"")}return function(N){for(var E={},x=0,q=0;x<$;x+=1){var C=b[x];if(typeof C=="string")q+=C.length;else{var k=C.regex,D=C.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(X){var U=X.afternoon;if(U!==void 0){var ee=X.hours;U?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,$=b.parse;b.parse=function(j){var L=j.date,M=j.utc,O=j.args;this.$u=M;var R=O[1];if(typeof R=="string"){var N=O[2]===!0,E=O[3]===!0,x=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var U=g(W)(Y),ee=U.year,re=U.month,I=U.day,w=U.hours,F=U.minutes,P=U.seconds,p=U.milliseconds,H=U.zone,_=new Date,B=I||(ee||re?1:_.getDate()),A=ee||_.getFullYear(),G=0;ee&&!re||(G=re>0?re-1:_.getMonth());var z=w||0,Z=F||0,te=P||0,T=p||0;return H?new Date(Date.UTC(A,G,B,z,Z,te,T+60*H.offset*1e3)):X?new Date(Date.UTC(A,G,B,z,Z,te,T)):new Date(A,G,B,z,Z,te,T)}catch{return new Date("")}}(L,R,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&L!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var C=R.length,k=1;k<=C;k+=1){O[1]=R[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===C&&(this.$d=new Date(""))}else $.call(this,j)}}})})(Dr);var ss=Dr.exports;const us=Qe(ss);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="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 y}});return i.bind(this)(d)}}})})(Fr);var cs=Fr.exports;const fs=Qe(cs);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,V,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[V]),$=S||b.map(function(L){return L.slice(0,g)});if(!h)return $;var j=m.weekStart;return $.map(function(L,M){return $[(M+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,y){return d.formats[y]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.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(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Rr);var ds=Rr.exports;const hs=Qe(ds);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,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 f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var y=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(y,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Ar);var ms=Ar.exports;const gs=Qe(ms);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,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}}})})(Lr);var ps=Lr.exports;const vs=Qe(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,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")}}})})(Mr);var ys=Mr.exports;const bs=Qe(ys);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Br);var ws=Br.exports;const xs=Qe(ws);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(_r);var Ss=_r.exports;const Ts=Qe(Ss);We.extend(hs);We.extend(fs);We.extend(us);We.extend(gs);We.extend(vs);We.extend(bs);We.extend(xs);We.extend(Ts);const Le={format(e,t){return We(e).format(t)},parser(e,t){return We(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,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Le.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Le.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}},no={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"}},lo={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:{...Se,...Ve,...no,...lo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const A=[...d.value];A[0]=B,d.value=A}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const j=B=>{let G=B.target.value;c.value=!0,ge(b.value)||($.value=!0),s("focus",G,B)},L=B=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let G=B.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,B)},M=()=>{s("clear","")},O=B=>{s("calendar-change",B)},R=(B,A,G)=>{s("panel-change",B,A,G)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Me.Near),x=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),C=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let k=null;const D=l.ref(se(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const A=[];Array.isArray(q.value)?(A[0]=d.value?d.value[0]??q.value[0]:null,A[1]=q.value[1]??q.value[0]):(A[0]=d.value?d.value[0]??q.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Le.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const A=[];A[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?A[1]=k[1]:A[1]=k,A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=se(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const A=[d.value[0]];Array.isArray(q.value)?A[1]=q.value[1]??q.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=q.value;s("update:modelValue",d.value)}else Ue(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&B()}),l.watch([()=>d.value],([A])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(A))try{let z=A[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Le.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray(C.value)&&C.value.findIndex(T=>z==T)!==-1)&&(G=!0)}catch(z){console.error(z)}D.value!==G&&(D.value=G)},{immediate:!0})}const X=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),U=l.ref(),ee=l.ref(),re=/^\d+$/,I=(B,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,A):re.test(B)&&B.length===n.flashFillThreshold,w=(B,A)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(B,A);else{const Z=n.flashFillFormat??"YYYYMMDD";G=Le.parser(B,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Le.format(G,z)},F=B=>B?B.endsWith("range"):!1,P=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=G,g(z)}else g(G)}},p=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=G,g(z)}else g(G)}},H=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",P),B[1]&&B[1].addEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",P)}},_=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",P),B[1]&&B[1].removeEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",P)}};return l.onMounted(H),l.onBeforeUnmount(_),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:V.value,type:h.value,ref:ee,class:S.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:M,onFocus:j,onBlur:L,onCalendarChange:O,onPanelChange:R,onVisibleChange:N},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const z=[],Z=l.h(v.ElDatePicker,A,G);z.push(Z);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ce={class:X.value},pe=l.h("div",ce,{default:()=>[le,fe]});z.push(pe)}if(!i.value&&!a.value){const le={label:x.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(v.ElCheckbox,le),ce=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ce}}const K={...Ie(n,no,lo),ref:U,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:$s,create:Ns,scope:Es}=ie("date-item"),sl=Ns(Cs($s,Es,Te)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ks(e,t,o){return{props:{...Se,...Ve,...oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let R=M.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",R,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let R=M.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,M)},$=()=>{s("clear","")},j=M=>{s("visible-change",M)},L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const O={...r.attrs,ref:L,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b,onVisibleChange:j},R={},N=[],E=l.h(v.ElTimePicker,O,R);N.push(E);const x={default:()=>N};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...Ie(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:Is,create:Vs,scope:Os}=ie("time-item"),ul=Vs(ks(Is,Os,Te)),ro={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...Se,...Ve,...ro},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let O=L.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",O,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,L)},$=()=>{s("clear","")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const M={...r.attrs,ref:j,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b},O={},R=[],N=l.h(v.ElTimeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...Ie(n,ro),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Ds,create:Fs,scope:Rs}=ie("time-select-item"),cl=Fs(Ps(Ds,Rs,Te));function ao(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 io(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wo(`${e}`,`${t}`);return ao(n)}else{let n=Yn(`${e}`,Yo(`${t}`),20);return ao(n)}}function As(e,t=-1,o=!1,n=3,r=","){return Zt(e,t,o,n,r)}function so(e,t,o,n,r=!0){if(e==="")return"";if(e=Go(e),t=xe(t),t==1)return e;if(n)e=io(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Yn(e,1,xe(o)));else{let a=-1*t;e=io(e,a)}return e}function uo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=An(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=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const co={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 Ls(e,t,o){return{props:{...Se,...Ve,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=he(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,k,D])=>{if(ge(C)){c.value="";return}const Y=so(C,k,D,!1);c.value!==Y&&(c.value=Y)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:y}=Be.useFoxI18n(t),V=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(c.value)?C=As(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=y(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let C=S.value;return ge(C)&&(C=n.errorTip??""),C}),$=l.ref(""),j=l.ref(!1),L=(C,k)=>{if(C=`${C}`,ge(C)){c.value="",f.value="",k.forEach(D=>{s(D,"")}),se(n.showTip)&&j.value&&(j.value=!1);return}if(C.length>=2){let D=C;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(c);return}}if(C!="-"){if(!lr(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&or(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&rr(C)>Number(n.decimalLength)){l.triggerRef(c);return}let D=uo(C,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&xe(n.min)>=0){l.triggerRef(c);return}$.value=C,se(n.showTip)&&(j.value=C.length>0),c.value=C,f.value=so(C,n.rates,n.precision,!0),k.forEach(D=>{s(D,f.value)})},M=C=>{L(C,["update:modelValue","input"])},O=C=>{L(C,["update:modelValue","change"])},R=C=>{if(u.value=!0,se(n.showTip)){let k=c.value;ge(k)&&(k=n.hintText),ge(k)||($.value=k,j.value=!0)}S.value="",s("focus",f.value,C)},N=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&j.value===!0&&(j.value=!1)},0),!ge(c.value)){let k=uo(c.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",f.value,C),s("blur",f.value,C)},E=()=>{s("clear","")},x=l.computed(()=>Lt(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:M,onChange:O,onFocus:R,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const ee={...Ie(n,co),errorTip:b.value,hintText:$.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Ms,create:Bs,scope:_s}=ie("money-item"),fl=Bs(Ls(Ms,_s,Te)),fo={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 qs(e,t,o){return{props:{...Se,...Ve,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__append`]:M.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=R=>{d.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)};let S=he(n,"hintText"),b=l.ref(!1);const $=R=>{let E=R.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",E,R)},j=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let E=R.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,R)},L=()=>{s("clear","")},M=l.computed(()=>Lt(n.unit)>0),O=l.ref();return $e({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ye(r.attrs),ref:O,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:$,onBlur:j},E={},x=[],q=l.h(v.ElInputNumber,N,E);x.push(q);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...Ie(n,fo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(M.value){const W={class:g.value},X=l.h("div",W,[n.unit]);C.append=()=>X}return l.h(o,D,C)}}}}const{componentName:js,create:zs,scope:Hs}=ie("input-number-item"),dl=zs(qs(js,Hs,Te));function Ge(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 Ks(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ws=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=He(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}function Hn(e,t,o){const n=Ge(e,t),r=Ge(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function qr(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=qr(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ge(e,f)===s;else if(o==="item")u=Hn(e,f,s);else{let c=ct(e,f);c==null&&(c=Ge(e,f)),u=c===s}if(u){r.push(f),a=Ks(e,f);break}}if(!u)break}}return r}function Gs(e){return{text:e,value:e}}const ho={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},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Us(e,t,o){return{props:{...Se,...Ve,...ho},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(G=>Ge(n,G)).join(" "):Ge(n,B)).join(" "):""),V=(_,B,A,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===_)return;c.value=_;const T=l.toRaw(_);if(G){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const Q=[];K.forEach(le=>{const ce=(le.pathNodes??[]).map(pe=>pe.data);Q.push(ce)}),s("update:pathNodes",Q)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",le)}s("update:modelValue",T),s("change",T)}return}const z=qr(n,_,B,A);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Z=z[z.length-1];if(E.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const T=[];z.forEach(K=>{const Q=`${Ge(n,K)}`;T.push(Q)}),T.length>0&&(R.value=T.join(n.separator))}else R.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],Q=d.value[T];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let le=0;le<K.length;le++)if(!Hn(n,K[le],Q[le])){te=!1;break}}else Hn(n,K,Q)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ce=[];for(let pe of le)fe.push(ct(n,pe)),n.valueType==="text"?ce.push(Ge(n,pe)):n.valueType==="item"?ce.push(pe):ce.push(ct(n,pe));T.push(fe),K.push(ce)}else T.push(ct(n,le)),n.valueType==="text"?K.push(Ge(n,le)):n.valueType==="item"?K.push(le):K.push(ct(n,le))}),c.value=T;const Q=l.toRaw(K);G&&(s("update:pathNodes",z),s("update:modelValue",Q),s("change",Q))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,_=>se(_)),m=Ys(),S=async(_,B)=>{if(_){const A=await m.load("cascader",_,B);if(A.length>0)if(typeof A[0]=="string"){let Z=A.map(te=>Gs(te));g.value=Z}else g.value=A}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{V(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&V(n.modelValue,"value",[],!1);let j=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){L.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}L.value=!1}});const M=l.ref(!1),O=e,R=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":R.value&&R.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,A)=>{const G=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const z=B.pathLabels??[];let Z=[];z.forEach(te=>{te&&Z.push(te)}),Z.length>0&&(R.value=Z.join(n.separator))}else R.value=null;A(G)}),_}),x=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),c.value=_):V(_,"value",g.value,!0)};let q=he(n,"hintText"),C=l.ref(!1);const k=_=>{let A=_.target.value;M.value=!0,ge(q.value)||(C.value=!0),s("focus",A,_)},D=_=>{setTimeout(()=>{C.value&&(C.value=!1),M.value=!1},0);let A=_.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),w.value||s("blur",A,_)},Y=()=>{s("clear","")},W=l.ref(!1);let X=null;const U=()=>{n.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},ee=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},re=l.computed(()=>W.value||C.value),I=l.computed(()=>W.value?y.value:q.value),w=l.ref(!1),F=_=>{w.value=_,s("visible-change",_),_||s("selected")},P=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return $e({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:R.value||f.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:Y,onChange:x,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:P,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=L.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const G=[],z=l.h(v.ElCascader,B,A);G.push(z);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...Ie(n,ho),hintText:I.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:U,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=$),l.h(o,T,Z)}}}}const{componentName:Xs,create:Zs,scope:Js}=ie("cascader-item"),hl=Zs(Us(Xs,Js,Te)),mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,t,o){return{props:{...Se,...Ve,...mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const $=O=>{let N=O.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},L=()=>{s("clear","")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const R={...r.attrs,ref:M,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:$,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],x=l.h(v.ElAutocomplete,R,N);E.push(x);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,mo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:eu,create:tu,scope:nu}=ie("autocomplete-item"),ml=tu(Qs(eu,nu,Te));function lu(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 f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(y=>y[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let ou=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=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ru(){const e=l.getCurrentInstance();return new ou(e.proxy)}const jr={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 au(e,t){return{props:{...jr},setup(o,{attrs:n,slots:r}){const a=ru(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=lu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...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,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:zh,create:iu,scope:Hh}=ie("mapping"),Rt=iu(au());function su(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function uu(e,t){return{props:{...jr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=su(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:Kh,create:cu,scope:Wh}=ie("table-mapping-column"),gl=cu(uu()),fu=Symbol.for("TableStateKey");function go(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function du(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(fu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=go(s.row,s.column.property),f=a?go(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[y])}};return l.h(v.ElTableColumn,{...n},i)}}}}const{componentName:Yh,create:hu,scope:Gh}=ie("table-radio-column"),pl=hu(du()),mu={},gu={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"},pu=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),vu=[pu];function yu(e,t){return l.openBlock(),l.createElementBlock("svg",gu,vu)}const bu=_e(mu,[["render",yu]]),{componentName:Uh,create:wu,scope:Xh}=ie("table-setting"),xu={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:"不固定"}},Su=wu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:bu,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...xu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=p=>p.length>1,y=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(A=>{H.some(G=>G.prop===A.prop?(A.label=G.label,!0):!1)});const _=[];r.value=p.map((A,G)=>(!(A.label===""||A.type)&&A.visible!==!1&&_.push(A.prop),{...A,sortIndex:G})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),M.value=_},V=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>V(B));for(let B of H){const A=V(B);if(_.indexOf(A)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,A)=>({...B,sortIndex:A})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}y(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,$.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&($.value=!0),M.value=H,m()},L=()=>{h(n),m()},M=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,$.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&($.value=!0),m()},R=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,x=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const A=Number(N.index),G=Number(_.dataset.index);if(A!==G){if(A<G){const z=r.value[A];r.value.splice(A,1),r.value.splice(G,0,z)}else{const z=r.value[A];r.value.splice(A,1),r.value.splice(G+1,0,z)}y(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},X=p=>{const H=r.value[p];H.fixed=void 0,m()},U=new Map;let ee=null;function re(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:j,handleReset:L,checkedValue:M,handleCheckChange:O,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:C,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:X,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const A=Math.floor(B.offsetWidth);if(Math.floor(re(B))>A){let z=U.get(H);if(z){if(z===ee)return;Pe.hide(z)}z=Pe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),U.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=U.get(H);_&&(Pe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Pe.hide(ee),ee=Pe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Pe.hide(ee),ee=null)}}}}),Tu={class:"fox-table-setting"},Cu={class:"fox-table-setting__header"},$u={class:"fox-table-setting__body"},Nu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Eu={key:0,class:"fox-table-setting__body-title"},ku=["data-index","draggable"],Iu=["onMouseover","onMouseleave"],Vu={class:"tools-item"},Ou={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"},Du=["data-index","draggable"],Fu=["onMouseover","onMouseleave"],Ru={class:"tools-item"},Au={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Lu={key:0,class:"fox-table-setting__body-title"},Mu=["data-index","draggable"],Bu=["onMouseover","onMouseleave"],_u={class:"tools-item"};function qu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),y=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,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",Tu,[l.createElementVNode("div",Cu,[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",$u,[l.createVNode(V,{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",Nu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Eu,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]=(...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.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:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Iu)]),_:2},1032,["label"]),l.createElementVNode("div",Vu,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,ku))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[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:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Fu)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Du))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Au,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Lu,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]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Bu)]),_:2},1032,["label"]),l.createElementVNode("div",_u,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Mu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const mn=_e(Su,[["render",qu]]);let ju=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=He(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function zu(){const e=l.getCurrentInstance();return new ju(e.proxy)}class Hu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function zr(){const e=l.getCurrentInstance();return new Hu(e.proxy)}const Ku=Symbol.for("TableStateKey"),po={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{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"}},vo={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}},Nn={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:()=>"不固定"}},Wu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Yu(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function En(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Yu(n,r);if(a!==i)return!1}return!0})}function Gu(e,t,o){return{inheritAttrs:!1,props:{...Se,...Ve,...po,...vo,...Nn,...Wu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Ce({componentName:e,validateHandler:{getValue(...J){return O.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),g=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=se(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,J=>{h.value=J}),l.watch(()=>n.pageSize,J=>{m.value=J}),l.watch([h,m],([J,oe],[ne,ae])=>{oe!==ae&&(h.value=1,J=1),x(n.data,J,oe,g.value)}));const b=()=>Array.isArray(n.data)?!0:se(n.autoLoad);b()&&l.watch([()=>n.data,g],async([J,oe],[ne,ae])=>{b()&&(J!==ne&&(N=!0),!(!Array.isArray(J)&&Ue(J,ne)&&Ue(oe,ae))&&(S?(h.value=0,L.value=!0,O.value=[],C()):h.value===1?x(J,h.value,m.value,oe):h.value=1))},{deep:!0});const $=J=>{h.value=J,i("page-index-change",J)},j=J=>{m.value=J,i("page-size-change",J)},L=l.ref(!0),M=l.ref(0),O=l.ref(),R=zu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,J=>se(J)),x=async(J,oe,ne,ae,we)=>{N=!1;try{if(we===!0){if(!L.value)return!1;const me=await R.load("table",J,oe,ne,ae,N,a.value);return M.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=M.value)||me.page.length<ne?(L.value=!1,!1):!0}else{const me=await R.load("table",J,oe,ne,ae,N,a.value);return M.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),M.value=0,O.value=[]}return!1};let q=!1;const C=async()=>{if(!q){if(q=!0,!L.value){q=!1;return}h.value+=1,await x(n.data,h.value,m.value,g.value,!0),q=!1}},k=(J={},oe=!1)=>new Promise(async ne=>{V.value={...l.toRaw(J??{})},oe||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],L.value=!0,await C()):await x(n.data,h.value,m.value,g.value),ne()}),D=()=>{M.value=0,O.value=[],S===!0&&(h.value=0,L.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},X=l.ref(null);if(S===!0){let J=null;const oe=()=>{X.value&&(J=new IntersectionObserver(ae=>{let we=!1;for(let me of ae)if(me.intersectionRatio>0){we=!0;break}we&&C()}),J.observe(X.value))},ne=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(ne)}b()&&!E.value&&k();const U=l.ref(null);l.provide(Ku,{currentRow:U});const ee=(J,oe)=>{U.value=J,i("current-change",J,oe)},re=(J,oe,ne)=>{i("row-click",J,oe,ne),se(n.rowClickSelectable)===!0&&be?.value.toggleRowSelection(J)},I=[],w=(J,oe)=>{if(i("expand-change",J,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ne=I.length;I.splice(0,ne)}else{I.forEach(ae=>{ae!==J&&be?.value.toggleRowExpansion(ae,!1)});const ne=I.length;I.splice(0,ne,J)}Array.isArray(oe)&&oe.length>0&&pe(0)},F=r.attrs.id??n.prop??r.attrs.name,P=zr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:p.value}),B=J=>{p.value=[...J],G()},A=async()=>{const J=await P.load(F);J&&(p.value=J)},G=()=>{P.save(F,p.value)},z=()=>{P.remove(F)};A();const Z=J=>J?J.type?J.type:J.label?J.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(J,oe)=>{for(let ne in oe){const ae=oe[ne];typeof ae!="function"&&(J[ne]=ae)}},K=l.computed(()=>{const J=te(),oe=new Map;if(H=[],J.forEach(ne=>{const ae=ne;if(!ae.props)return;const we=Z(ae.props);oe.set(we,ne);const me={label:"",prop:""};T(me,ae.props),H.push(me)}),p.value.length===H.length){const ne=[];for(let ae of p.value){const we=Z(ae),me=oe.get(we);if(!me)return J;if(ae.visible===!1)continue;const nt=me;nt.props.fixed=ae.fixed,ne.push(nt)}return ne}return J}),Q=l.shallowRef(new Map),le=({row:J,column:oe,rowIndex:ne,columnIndex:ae})=>{const we=`${ne}_${oe.property}`,me=`${ne}_${ae}`;let nt=Q.value.get(we);return nt||(nt=Q.value.get(me)),nt??""},fe=J=>typeof J=="function"?oe=>{const ne=[];let ae=le(oe);return ae&&ne.push(ae),ae=J(oe),ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:le;let ce=null;const pe=(J=-1,oe=!1)=>{J>=0?(ce&&clearTimeout(ce),ce=setTimeout(()=>{ce=null,Q.value.forEach((ne,ae)=>{ne=oe?"":ne;const we=`${ae}_item`;s.emitToChildren({name:we},"setCustomClassName",ne)})},J)):Q.value.forEach((ne,ae)=>{ne=oe?"":ne;const we=`${ae}_item`;s.emitToChildren({name:we},"setCustomClassName",ne)})},qe=(J,oe)=>{const ne=`${J}_item`;s.emitToChildren({name:ne},"setCustomClassName",oe)},et=(J,oe,ne)=>{const ae=`${J}_${oe}`;ne?(Q.value.set(ae,ne),qe(ae,ne)):(Q.value.delete(ae),qe(ae,"")),l.triggerRef(Q)},ht=()=>{pe(0,!0),Q.value.clear(),l.triggerRef(Q)},tt=l.shallowRef(new Map),Wl=({rowIndex:J})=>{const oe=`${J}`;return tt.value.get(oe)??""},ea=J=>typeof J=="function"?oe=>{const ne=[];let ae=Wl(oe);return ae&&ne.push(ae),ae=J(oe),ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:Wl,ta=(J,oe)=>{const ne=`${J}`;oe?tt.value.set(ne,oe):tt.value.delete(ne),l.triggerRef(tt)},na=()=>{tt.value.clear(),l.triggerRef(tt)},be=l.ref();return $e({clearSelection:()=>be?.value.clearSelection(),getSelectionRows:()=>be?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{be?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!O.value)return;const ne=En(O.value,J);ne.length!==0&&ne.forEach(ae=>{be?.value.toggleRowSelection(ae,oe)})},toggleAllSelection:()=>{be?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{be?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!O.value)return;const ne=En(O.value,J);ne.length!==0&&ne.forEach(ae=>{be?.value.toggleRowExpansion(ae,oe)})},setCurrentRow:J=>{be?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!O.value)return;const oe=En(O.value,J);oe.length!==0&&be?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{be?.value.clearSort()},clearFilter:J=>{be?.value.clearFilter(J)},doLayout:()=>{be?.value.doLayout()},sort:(J,oe)=>{be?.value.sort(J,oe)},scrollTo:(J,oe)=>{be?.value.scrollTo(J,oe)},setScrollTop:J=>{be?.value.setScrollTop(J)},setScrollLeft:J=>{be?.value.setScrollLeft(J)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return M.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:et,clearCellClassName:ht,setRowClassName:ta,clearRowClassName:na}),()=>{const oe={...Ye(r.attrs),onCurrentChange:ee,onRowClick:re,onExpandChange:w,data:O.value,ref:be,class:f.value,"cell-class-name":fe(n.cellClassName),"row-class-name":ea(n.rowClassName)},ne={};if(r.slots.default&&(ne.default=()=>K.value),r.slots.append&&(ne.append=r.slots.append),r.slots.empty&&(ne.empty=r.slots.empty),S===!0){const je=[];if(L.value){const Tt=l.h(ke.Loading,{class:`${u}__infinite-icon`});je.push(Tt);const yn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);je.push(yn)}else{const Tt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);je.push(Tt)}const at={ref:X,class:`${u}__infinite`},vn=l.h("div",at,je);ne.append=()=>vn}const ae=l.h(v.ElTable,oe,ne),we=[];if(we.push(ae),!S){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const at={class:y.value,total:M.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,at)}if(n.showSetting){const at=[];je&&at.push(je);const vn=l.h(v.ElIcon,{class:c.value},{default:()=>l.h(ke.Setting)}),Tt=ar(n,Nn),yn=l.h(mn,{...Tt,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>vn});at.push(yn);const la=l.h("div",{class:d.value},at);we.push(la)}else je&&we.push(je)}const me={default:()=>we},St={...Ie(n,po,vo,Nn),prop:`${n.prop}_item`};return St.contentClass=`${u}__wrap`,St.errorMarkClass="is-table-error",E.value&&b()&&(St["appear-listen"]=!0,St.onAppear=W),l.h(o,St,me)}}}}const{componentName:Uu,create:Xu,scope:Zu}=ie("table-item"),vl=Xu(Gu(Uu,Zu,Te));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ju(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Qu=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=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ec(){const e=l.getCurrentInstance();return new Qu(e.proxy)}function Hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function tc(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=wt(e,a)===t;else if(o==="item")i=Hr(e,a,t);else{let s=At(e,a);s==null&&(s=wt(e,a)),i=s===t}if(i){r=a;break}}return r}function nc(e){return{text:e,value:e}}function lc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={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"},appearLoad:{type:[Boolean,String],default:!1}};function oc(e,t,o){return{inheritAttrs:!0,props:{...Se,...Ve,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({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),f=l.ref(null),c=(O,R,N,E=!0)=>{const x=tc(n,O,R,N);if(x===null){if(f.value===null)return;f.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!Hr(n,x,f.value)){u.value=O;const C=l.toRaw(x);f.value=C;let k=null;n.valueType==="text"?k=wt(n,C):n.valueType==="item"?k=C:k=At(n,C),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,O=>se(O)),V=ec(),g=async(O,R)=>{if(O){const N=await V.load("radio",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>nc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=At(n,E),C=wt(n,E);let k=Ju(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=lc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElRadioButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElRadio,W,{default:()=>R(E)})):N.push(l.h(v.ElRadio,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElRadioGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,yo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:rc,create:ac,scope:ic}=ie("radio-item"),yl=ac(oc(rc,ic,Te));function xt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function sc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let uc=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=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function cc(){const e=l.getCurrentInstance();return new uc(e.proxy)}function Kr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=xt(e,t),r=xt(e,o);if(n!==r)return!1;const a=yt(e,t),i=yt(e,o);return a===i}function fc(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=xt(e,i)===a;else if(o==="item")s=Kr(e,i,a);else{let u=yt(e,i);u==null&&(u=xt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function dc(e){return{text:e,value:e}}function hc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const bo={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"},appearLoad:{type:[Boolean,String],default:!1}};function mc(e,t,o){return{inheritAttrs:!0,props:{...Se,...Ve,...bo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({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([]),f=l.ref([]),c=(O,R,N,E=!0)=>{const x=fc(n,O,R,N);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(x.length!==f.value.length)q=!1;else for(let C=0;C<x.length;C++){const k=x[C],D=f.value[C];if(!Kr(n,k,D)){q=!1;break}}if(!q){f.value=x;let C=[],k=[];x.forEach(Y=>{C.push(yt(n,Y)),n.valueType==="text"?k.push(xt(n,Y)):n.valueType==="item"?k.push(Y):k.push(yt(n,Y))}),u.value=C;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,O=>se(O)),V=cc(),g=async(O,R)=>{if(O){const N=await V.load("checkbox",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>dc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=yt(n,E),C=xt(n,E);let k=sc(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=hc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElCheckboxButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElCheckbox,W,{default:()=>R(E)})):N.push(l.h(v.ElCheckbox,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:xe(n.max),min:xe(n.min),onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElCheckboxGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,bo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:gc,create:pc,scope:vc}=ie("checkbox-item"),bl=pc(mc(gc,vc,Te)),wo={modelValue:{type:[Number,String],required:!1}};function yc(e,t,o){return{props:{...Se,...Ve,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({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=he(n,"modelValue",h=>xe(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=l.ref(!1);const g=l.ref();return $e({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElRate,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...Ie(n,wo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:bc,create:wc,scope:xc}=ie("rate-item"),wl=wc(yc(bc,xc,Te)),xo={modelValue:{type:[Boolean,String,Number],required:!1}};function Sc(e,t,o){return{props:{...Se,...Ve,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({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=he(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=he(n,"hintVisible");const g=l.ref();return $e({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElSwitch,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...Ie(n,xo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:Tc,create:Cc,scope:$c}=ie("switch-item"),xl=Cc(Sc(Tc,$c,Te)),So={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Nc(e,t,o){return{props:{...Se,...Ve,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=he(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let V=he(n,"hintText"),g=l.ref(!1);const h=L=>{let O=L.target.value;s.value=!0,ge(V.value)||(g.value=!0),u("focus",O,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,L)},S=()=>{u("clear","")},b=l.ref(!1),$=L=>{b.value=L,u("visible-change",L),L||u("selected")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const M={...Ye(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:$},O={};r.slots.option&&(O.default=r.slots.option);const R=[],N=l.h(v.ElTreeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...Ie(n,So),hintText:V.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Ec,create:kc,scope:Ic}=ie("tree-select-item"),Sl=kc(Nc(Ec,Ic,Te)),Vc={},Oc={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),Dc=[Pc];function Fc(e,t){return l.openBlock(),l.createElementBlock("svg",Oc,Dc)}const Rc=_e(Vc,[["render",Fc]]),{componentName:em,create:Ac,scope:tm}=ie("group-setting"),Lc={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:"到底部"}},Mc=Ac({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Rc,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Lc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=zr(),s=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((P,p)=>(P.visible!==!1&&I.push(P.prop),{...P,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),$.value=I},f=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const P=I.$el??I;typeof P.querySelectorAll=="function"&&(w=P.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const F=[];return w.forEach(P=>{const p=P.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=P.getAttribute("prop")??"",A=window.getComputedStyle(P,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:A!=="none"})}),F},c=()=>{if(!r){const I=f(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const w=await i.load(e.groupProp),F=P=>{if(!P||!r)return;const p=r.map(H=>({...H}));Array.isArray(w)&&w.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&V(!1)};r?F(!0):nn(c,e.initDelay,5,50,!1,F)},y=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),V()},V=(I=!0)=>{I&&i.save(e.groupProp,a.value);const w=a.value.map(F=>({...F}));t("change",w)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const w=[];a.value.forEach(P=>{I&&w.push(P.prop),P.visible=I}),h.value=!1,m.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(m.value=!0),$.value=w,V()},b=()=>{y()},$=l.ref([]),j=I=>{a.value.forEach(F=>{const P=I.indexOf(F.prop)!==-1;F.visible=P}),h.value=!1,m.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(m.value=!0),V()},L=()=>{d()};l.onMounted(()=>{d(!0)});const M={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,R=I=>{const w=I.currentTarget;w&&w.dataset&&(M.index=w.dataset.index)},N=I=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},E=I=>{const w=I.currentTarget;I.relatedTarget;const F=O(w);F&&(I.preventDefault(),M.currentRow&&M.currentRow!==F&&M.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),M.currentRow=F)},x=I=>{I.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=I=>{const w=I.currentTarget,F=O(w);if(!F)return;I.preventDefault();const P=Number(M.index),p=Number(F.dataset.index);if(P!==p){if(P<p){const H=a.value[P];a.value.splice(P,1),a.value.splice(p,0,H)}else{const H=a.value[P];a.value.splice(P,1),a.value.splice(p+1,0,H)}u(),V()}},C=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),V()},k=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),V()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:$,handleCheckChange:j,onShow:L,onDragStart:R,onDragEnd:N,onDragOver:E,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:C,toBottom:k,onMouseOverForOverflowText:(I,w,F)=>{const P=I.currentTarget;if(P){const p=Math.floor(P.offsetWidth);if(Math.floor(W(P))>p){let _=D.get(w);if(_){if(_===Y)return;Pe.hide(_)}_=Pe.show(P,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(w,_),Y=_}}},onMouseLeaveForOverflowText:(I,w)=>{const F=D.get(w);F&&(Pe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,w)=>{const F=I.currentTarget;F&&(Y&&Pe.hide(Y),Y=Pe.show(F,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Pe.hide(Y),Y=null)}}}}),Bc={class:"fox-group-setting"},_c={class:"fox-group-setting__header"},qc={class:"fox-group-setting__body"},jc={class:"fox-group-setting__body-list","data-role":"container"},zc=["data-index","draggable"],Hc=["onMouseover","onMouseleave"],Kc={class:"tools-item"};function Wc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,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",Bc,[l.createElementVNode("div",_c,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),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",qc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",jc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),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.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,V.prop,V.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Hc)]),_:2},1032,["label"]),l.createElementVNode("div",Kc,[l.createVNode(c,{onClick:g=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,zc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=_e(Mc,[["render",Wc]]),Yc=["aria-labelledby"],Gc=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),Uc=[Gc],Xc=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,f)=>(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"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=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),Qc=[Jc],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,f)=>(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"},Qc,14,Zc))}}),ef=["aria-labelledby"],tf=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),nf=[tf],lf=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,f)=>(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"},nf,14,ef))}}),of=["aria-labelledby"],rf=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),af=[rf],sf=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,f)=>(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"},af,14,of))}}),uf=["aria-labelledby"],cf=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),ff=[cf],df=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,f)=>(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"},ff,14,uf))}}),hf={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}},To=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],mf=(e,t)=>t[e.visibleKey],Co=(e,t)=>t[e.disabledKey],gf=(e,t)=>{const o=t[e.doitKey];return se(o)},pf=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function vf(e,t,o,n=!1){return{props:{...hf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const w=I;w?(h.value=w,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),j=(I,w)=>{$.value[w]=I},L=I=>w=>{j(w,I)},M=(I,w)=>{const F=b.value,P=$.value;if(!F||!P||!P[I])return;const p=P[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,w?0:.3,r.direction)},O=(I,w,F,P)=>{let p=0;const H=P==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){P==="horizontal"?I.scrollLeft+=(w-H)/_:I.scrollTop+=(w-H)/_,++p<_&&Gn(B)}B()},R=(I,w)=>{const F=Nt(r,I),P={};return P[`${e}__titles-item`]=!0,P.disabled=Co(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0),r.ellipsis&&(P.ellipsis=!0),w&&(w.class&&(P[`${w.class}`]=!0),w.disabled===!0&&(P.disabled=w.disabled)),P},N=(I,w)=>{const F={};if(c.value>0){const P=Math.abs(c.value/2);r.direction==="vertical"?(F["margin-top"]=`${P}px`,F["margin-bottom"]=`${P}px`):(F["margin-left"]=`${P}px`,F["margin-right"]=`${P}px`)}return w&&w.style&&Object.assign(F,w.style),F},E=(I,w)=>`${Nt(r,I)??w}`,x=(I,w)=>{const F=Nt(r,I),P={};P[`${e}__popup-item`]=!0,P.disabled=Co(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0);const p=$o(r,I,w);return p&&p.disabled===!0&&(P.disabled=p.disabled),P},q=l.computed(()=>(r.data??[]).filter(w=>mf(r,w)!==!1)),C=(I,w)=>{const F=Nt(r,I);if(d.value==F)return;const P=()=>{d.value=F,r.scroll&&M(w,!1),i("update:modelValue",F),i("change",I,w)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,w);Xo(p)?p.then(H=>{H!==!1&&P()}).catch(()=>{P()}):p!==!1&&P()}else P()},k=(I,w)=>function(){C(I,w)},D=(I,w)=>{C(I,w),S(!1)},Y=(I,w)=>function(){D(I,w)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(F=>Nt(r,F)===d.value);w!==-1&&M(w,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const X=(I,w)=>{if(a.item)return a.item({item:I,index:w});const F=$o(r,I,w),P=[];if(a.text){const B=a.text({item:I,index:w});P.push(B)}else{const B=[];if(F?.doit===!0||gf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Z);B.push(te)}const A=F?.num??pf(r,I);if(A){let Z="";const te=xe(A);te>=100?Z="99+":Z=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Z]);B.push(K)}const G={class:`${e}__titles-item-text`};B.push(To(r,I));const z=l.h("view",G,B);P.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);P.push(H);const _={ref:L(w),class:R(I,F),style:N(I,F),key:E(I,w),onClick:k(I,w)};return l.h("view",_,P)},U=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const P=q.value[F],p=X(P,F);I.push(p)}const w={ref:b,class:u.value,style:f.value};return l.h("view",w,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:m};return l.h("view",w,[I])},re=()=>{const I=[];for(let F=0;F<q.value.length;F++){const P=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:P,index:F}):p=To(r,P);const H={class:x(P,F),key:E(P,F),onClick:Y(P,F)},_=l.h("view",H,[p]);I.push(_)}const w={class:y.value,style:V.value};return l.h("view",w,I)};return()=>{const I=[],w=U();if(I.push(w),r.showQuickNavigation){const P=ee();I.push(P);const p=re();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:yf,componentName:bf,scope:wf}=ie("tabs-bar"),$l=yf(vf(bf,wf,Xc,!1)),Wr=Symbol("TabsStatesKey"),xf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Sf(e,t,o=!1){return{props:{...xf},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 m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Wr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let y=!0;const V=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=rn(f.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(f.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:f};return l.h("view",S,[m])}}}}const{create:Tf,componentName:Cf,scope:$f}=ie("tabs-container"),Nl=Tf(Sf(Cf,$f,!1)),Nf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Ef(e,t,o){return{props:{...Nf},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 f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},y=n.emptyIcon??o,V=l.h(y,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[V,m]);f.push(b)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:kf,componentName:If,scope:Vf}=ie("tabs-pane"),El=kf(Ef(If,Vf,Cl)),Of={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 Pf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function No(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Eo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Df(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function kn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function ko(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Io(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ff{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=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Rf(){const e=l.getCurrentInstance();return new Ff(e.proxy)}function Af(e,t,o,n){return{props:{...Of},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Rf(),f=l.ref([]),c=l.computed(()=>f.value.filter(w=>Df(r,w)!==!1)),d=l.ref(-1),y=()=>{const w=r.modelValue,F=c.value.findIndex(P=>No(r,P)===w);d.value!==F&&(d.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,c],()=>{y()});const V=w=>d.value===w,g=w=>{if(w<0&&w>=c.value.length)return!1;const F=c.value[w],p=(In(r,F,w)??{}).status??kn(r,F);return V(w)||p},h=l.computed(()=>{const w={[s]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),m=l.computed(()=>({})),S=(w,F,P,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),w===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:P?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),$=(w,F={})=>{const P={...F};return b.value==="start"&&w===c.value.length-1?P.flex="0 0 auto":r.step?r.direction==="vertical"?P.height=r.step:P.width=r.step:P.flex="1 1 100%",P},j=(w,F)=>{let P={};if(F<c.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},L=w=>c.value.length-1===w,M=(w,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const P=d.value,p=F;d.value=F,r.scroll&&re(F,!1);const H=No(r,w);i("update:modelValue",H);const _={fromIndex:P,currentIndex:p,item:w,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),R=async(w,F)=>{try{const P=await u.load("stesbar",w,F);Array.isArray(P)&&(f.value=P),O.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,F])=>{w&&R(w,F)},{immediate:!0});const N=(w,F,P,p,H)=>{let _=null;if(a.icon)_=a.icon({item:w,index:F,status:p});else if(p==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const G=r.icon??o;_=l.h(G,A)}else{const A=P??`${F+1}`;_=l.h("span",{},[A])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||M(w,F)}};return l.h("view",B,[_])},E=(w,F,P)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(w,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},x=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const P={};r.iconSize&&(P.width=r.markIconSize,P.height=r.markIconSize);const p=r.markIcon??n;w=l.h(p,P)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,F,P,p,H)=>{const _=[];if(!L(F)){const G=E(w,F);_.push(G)}const B=N(w,F,P,p,H);_.push(B);const A={class:"fox-steps-bar__head"};return l.h("view",A,_)},C=(w,F,P,p)=>{let H=null;a.main?H=a.main({item:w,index:F,status:P}):H=Pf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{p||M(w,F)}};return l.h("view",_,[H])},k=(w,F,P)=>{let p=null;if(a.sub){p=a.sub({item:w,index:F,status:P});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=Eo(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??Io(r,w),B=[],A=N(w,F,_,p,H);A&&B.push(A);const G=C(w,F,p,H);if(G&&B.push(G),!L(F)){const Q=E(w,F);Q&&B.push(Q)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Z=P.class,te=P.style??{};let T=ko(r,w);P.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Z),style:$(F,te)};return l.h("view",K,[z])},Y=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=Eo(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??Io(r,w),B=[],A=r.layout;for(let T of A)if(T==="head"){const K=q(w,F,_,p,H);B.push(K)}else if(T==="main"){const K=C(w,F,p,H);B.push(K)}else if(T==="sub"){const K=k(w,F,p);B.push(K)}else if(T==="mark"){const K=x();B.push(K)}const G=P.class,z=P.style??{};let Z=ko(r,w);P.doit===!0&&(Z=!0);const te={ref:ee(F),class:S(F,p,H,Z,G),style:$(F,z)};return l.h("view",te,B)},W=l.ref(),X=l.ref([]),U=(w,F)=>{X.value[F]=w},ee=w=>F=>{U(F,w)},re=(w,F)=>{const P=W.value,p=X.value;if(!P||!p||!p[w])return;const H=p[w];let _=0;r.direction==="vertical"?_=H.offsetTop-(P.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(P.offsetWidth-H.offsetWidth)/2,I(P,_,F?0:.3,r.direction)},I=(w,F,P,p)=>{let H=0;const _=p==="horizontal"?w.scrollLeft:w.scrollTop,B=P===0?1:Math.round(P*1e3/16);function A(){p==="horizontal"?w.scrollLeft+=(F-_)/B:w.scrollTop+=(F-_)/B,++H<B&&Gn(A)}A()};return()=>{const w=[];if(r.mode==="simple")for(let P=0;P<c.value.length;P++){const p=c.value[P],H=D(p,P);w.push(H)}else for(let P=0;P<c.value.length;P++){const p=c.value[P],H=Y(p,P);w.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,w)}}}}const{componentName:Lf,create:Mf,scope:Bf}=ie("steps-bar"),kl=Mf(Af(Lf,Bf,sf,df)),_f=Symbol.for("InnerPageScopeKey"),qf=Symbol.for("PageWrapperKey");function jf(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(qf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...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},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(v.ElDialog,f,c)}}}}const{componentName:nm,create:zf,scope:lm}=ie("dialog-item"),Il=zf(jf());let Et=0;const Vo="fox-overflow-hidden",Oo=()=>dt?document.body:{classList:[]},Hf=e=>[()=>{if(e())try{!Et&&Oo().classList.add(Vo),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Oo().classList.remove(Vo)}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:Wf,create:Yf}=ie("overlay"),Gf=Yf({props:{...Kf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Hf(()=>e.lockScroll),r=l.computed(()=>({[Wf]:!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 Uf(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 gn=_e(Gf,[["render",Uf]]),Xf={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:{}}},Yr=2e3;let Po=Yr;const Zf=(e,t)=>({components:t,props:{...Xf},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!==Yr&&(Po=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Po,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},y=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:y,onOpened:V,onClosed:g}}}),{componentName:Jf,create:Qf}=ie("popup"),ed=Qf(Zf(Jf,{FoxOverLay:gn,Close:lf}));function td(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 Vl=_e(ed,[["render",td]]),{create:nd}=ie("toast"),ld=nd({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,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=de(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=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]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),od={key:1,class:"fox-toast-title"},rd=["innerHTML"];function ad(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",od,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,rd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ol=_e(ld,[["render",ad]]),id={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"}},sd=(e,t,o)=>({props:{...id},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}=vr(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=N=>{let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,N),a("change",x,N)},y=l.ref({}),V=N=>{let x=N.target.value;u.active=!0,y.value=n.focusStyle,a("focus",x,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),y.value={},a("blur",x,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},$=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},L=N=>{a("click-left-icon",n.modelValue,N)},M=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const R=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:M.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:V,onBlur:g,onkeyup:$},x=l.h("input",E);N.push(x);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...y.value}};return l.h("view",C,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},C=l.h("span",q,[n.label]);N.push(C)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",q,[r.leftout()]);N.push(C)}const E=R();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",q,[r.rightout()]);N.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,N)}}}),{componentName:ud,create:cd,scope:fd}=ie("searchbar"),Pl=cd(sd(ud,fd,ke.CircleClose)),dd=/scroll|auto|overlay/i,Gr=window;function hd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function md(e,t=Gr){let o=e;for(;o&&o!==t&&hd(o);){const{overflowY:n}=window.getComputedStyle(o);if(dd.test(n))return o;o=o.parentNode}return t}function Ur(e,t=Gr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=md(e.value,t))}),o}const Xr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,gd={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 pd(e,t,o){return{props:{...gd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Ur(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,V=()=>{let b=0,$=0,j="down";if(f.value==window){const L=Xr();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),$=L}else{const{scrollHeight:L,clientHeight:M,scrollTop:O}=f.value;b=L-M-O,$=O}return c.beforeScrollTop>$?j="up":j="down",c.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&j=="down"},g=()=>{Ho(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",g,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(c.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),j=[];if(c.isInfiniting){let R=a?.loading?.()??null;if(!R){let x=a?.loadingIcon?.()??null;if(!x){const k={class:["fox-infinite__bottom-box__img"]};x=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},C=l.h("view",q,[s.loadText.value]);R=[x,C]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,R);j.push(E)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const N={class:"fox-infinite__bottom-tips"};R=l.h("view",N,[s.loadMoreText.value]),j.push(R)}}const L={class:"fox-infinite__bottom"},M=l.h("view",L,j),O={class:d.value,ref:u};return l.h("view",O,[$,M])}}}}const{componentName:vd,create:yd,scope:bd}=ie("infinite-loading"),Dl=yd(pd(vd,bd,Cl)),Do=10;function Zr(e,t){return e>t&&e>Do?"horizontal":t>e&&t>Do?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){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 f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.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=Zr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.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 wd(){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),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const $=m.touches[0];i.value=$.clientX-e.value,s.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Zr(u.value,f.value))},start:m=>{if(V(),m.touches){const $=m.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const xd={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}},Sd=(e,t,o)=>({props:{...xd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),f=l.ref(),c=Ur(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.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""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ee(n.headHeight)),O}),m=O=>{const R=+(n.pullDistance||n.headHeight);let N=O;return O>R&&(O<R*2?N=(O+R)/2:N=R+O/4),Math.round(N)},S=(O,R)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,R?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",$=()=>c.value==window?Xr()==0:c.value&&c.value.scrollTop==0,j=O=>{b()&&($()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},M=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let R=null;if(d.status==="loading"){if(R=a?.loading?.()??null,!R){const Y={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,Y)}}else d.status==="pulling"?R=a?.pulling?.()??null:d.status==="loosing"&&(R=a?.loosing?.()??null);R&&O.push(R);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[V.value]);O.push(E);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",x,O),C={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",C,[q,a?.default?.()]),D={ref:f,class:y.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:L,onTouchend:M}):Object.assign(D,{onMousedown:j,onMousemove:L,onMouseup:M}),l.h("div",D,[k])}}}),{componentName:Td,create:Cd,scope:$d}=ie("pull-refresh"),Al=Cd(Sd(Td,$d,Cl));function Nd(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 c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],V=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,V]):l.h("div",g,[V,c])}}}}const{componentName:Ed,create:kd,scope:om}=ie("indicator"),Ll=kd(Nd(Ed));function Id(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 Vd={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 Od(e,t,o,n=!1){return{props:{...Vd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},j=r.textColor??r.color;return j&&($.color=j),$}),f=($,j)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if($.indexOf(M)!==-1){const R=$.replace(new RegExp(M,"g"),`<span>${M}</span>`);j.innerHTML=R,j.class["is-highlight"]=!0,L=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter($);M&&(j.innerHTML=M,j.class["is-highlight"]=!0,L=l.h(r.tag,j))}return L},c=$=>{a.emit("click",$)};let d="";const y=()=>{const $=i.value;if(!$)return;const j=$.clientWidth;Id($,L=>{const M=$.innerHTML??"";ge(M)||L<j||(d?o?.show($,M,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show($,M,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let g=null;const h=$=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{V()},r.hideAfter??0)},S=()=>{const $=i.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",m))},b=()=>{const $=i.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||b()}),()=>{const $={onClick:c,class:s.value,style:u.value,ref:i};let j=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=xe(r.digits),x=xe(r.decimalLength),q=se(r.autoPadding);let C=`${R[0].children}`,k=C.split("").reverse().join("");k=Zt(k,x,q,E,r.separator),C=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=f(C,$)),j||($.innerHTML=C,j=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${R[0].children}`;j=f(E,$),j||($.innerHTML=E,j=l.h(r.tag,$))}}}j||(j=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let M=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const x={class:R,style:N};M=l.h("view",x)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[M,j])}}}}const{componentName:Pd,create:Dd,scope:Fd}=ie("text"),Ml=Dd(Od(Pd,Fd,Pe,!1)),Rd={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:ke.ArrowUp}};function Ad(e,t,o){return{props:{...Rd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const y={class:f.value},V=o(n.icon,y);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Ld,create:Md,scope:Bd}=ie("more-button"),_d=(e,t)=>(e=e??ke.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Md(Ad(Ld,Bd,_d));function qd(e){return e===window}const Jr=e=>{const t=l.unref(e);if(qd(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:jd,create:zd,scope:rm}=ie("tour"),Hd=zd({components:{Close:ke.Close,ElPopover:v.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=jd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:$,top:j}=r.value,L=e.steps[n.active].offset??g,M=[$+S/2,j+b/2],O=Number(h||S),R=Number(m||b);return{width:`${O+ +L.left+L.right}px`,height:`${R+L.top+L.bottom}px`,top:`${M[1]-R/2-+L.top}px`,left:`${M[0]-O/2-+L.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,f=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Jr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},V=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{V(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),Kd={key:0,class:"fox-tour__content"},Wd={key:0,class:"fox-tour__content-top"},Yd={class:"fox-tour__content-inner"},Gd={class:"fox-tour__content-bottom"},Ud={class:"fox-tour__content-bottom-init"},Xd={class:"fox-tour__content-bottom-operate"},Zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Jd={class:"fox-tour__content-inner"};function Qd(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]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{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",Wd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Yd,l.toDisplayString(f.content),1),l.createElementVNode("div",Gd,[l.createElementVNode("div",Ud,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Xd,[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]=d=>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]=d=>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",Zd,[l.createElementVNode("div",Jd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=_e(Hd,[["render",Qd]]),Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class eh{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=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),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 Fo(e,t){return new eh(e,t)}var Ro;const Kn=typeof window<"u";Kn&&((Ro=window?.navigator)!=null&&Ro.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let gt=[];const Ao=e=>{const t=e;t.key==="Escape"&&gt.forEach(o=>o(t))},th=e=>{l.onMounted(()=>{gt.length===0&&document.addEventListener("keydown",Ao),Kn&&gt.push(e)}),l.onBeforeUnmount(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Kn&&document.removeEventListener("keydown",Ao)})},Vn="fox-focus-trap.focus-after-trapped",On="fox-focus-trap.focus-after-released",nh="fox-focus-trap.focusout-prevented",Lo={cancelable:!0,bubbles:!1},lh={cancelable:!0,bubbles:!1},Mo="foxFocusAfterTrapped",Bo="foxFocusAfterReleased",oh=Symbol("foxFocusTrap"),ql=l.ref(),pn=l.ref(0),jl=l.ref(0);let qt=0;const Qr=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},rh=(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},_o=(e,t)=>{for(const o of e)if(!rh(o,t))return o},ah=e=>{const t=Qr(e),o=_o(t,e),n=_o(t.reverse(),e);return[o,n]},ih=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&ih(e)&&t&&e.select()}};function qo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const sh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=qo(e,n),e.unshift(n)},remove:n=>{e=qo(e,n),e[0]?.resume?.()}}},uh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(lt(n,t),document.activeElement!==o)return},jo=sh(),ch=()=>pn.value>jl.value,jt=()=>{ql.value="pointer",pn.value=window.performance.now()},zo=()=>{ql.value="keyboard",pn.value=window.performance.now()},fh=()=>(l.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",jt),document.addEventListener("touchstart",jt),document.addEventListener("keydown",zo)),qt++}),l.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",jt),document.removeEventListener("touchstart",jt),document.removeEventListener("keydown",zo))}),{focusReason:ql,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:jl}),zt=e=>new CustomEvent(nh,{...lh,detail:e}),{componentName:am,create:dh,scope:im}=ie("focus-trap"),hh={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"}},mh=dh({props:hh,emits:[Mo,Bo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=fh();th(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:m,altKey:S,ctrlKey:b,metaKey:$,currentTarget:j,shiftKey:L}=h,{loop:M}=e,O=m==="Tab"&&!S&&!b&&!$,R=document.activeElement;if(O&&R){const N=j,[E,x]=ah(N);if(E&&x){if(!L&&R===x){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),M&&lt(E,!0))}else if(L&&[E,N].includes(R)){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),M&&lt(x,!0))}}else if(R===N){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(oh,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=h=>{o(Mo,h)},c=h=>o(Bo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,$=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),$&&o("focusin",h),!s.paused&&se(e.trapped)&&($?a=S:lt(a,!0))},y=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!Un(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=zt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||lt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){jo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Lo);h.addEventListener(Vn,f),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;Uo($)||(lt($),document.activeElement!==$&&($="first")),$==="first"&&uh(Qr(h),!0),(document.activeElement===m||$==="container")&&lt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,f);const m=new CustomEvent(On,{...Lo,detail:{focusReason:i.value}});h.addEventListener(On,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!ch())&&lt(r??document.body,!0),h.removeEventListener(On,f),jo.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{se(h)?V():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:gh,create:ph,scope:sm}=ie("floating-window"),vh=Symbol.for("InnerPageScopeKey"),yh=Symbol.for("PageWrapperKey"),bh={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}},wh=ph({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:mh},props:{...bh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=gh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return it(i.value)?T.left="auto":T.left=Oe(i.value),it(s.value)?T.top="auto":T.top=Oe(s.value),it(u.value)?T.right="auto":T.right=Oe(u.value),it(f.value)?T.bottom="auto":T.bottom=Oe(f.value),it(e.zIndex)||(T["z-index"]=Oe(e.zIndex)),it(M.value)||(T.height=M.value),it(O.value)||(T.width=O.value),T}),y=l.computed(()=>e.closeIcon??ke.Close),V=l.computed(()=>e.collapseIcon??ke.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),$=l.ref(),j=l.ref(null),L=l.ref(null),M=l.computed(()=>Oe(e.height)||""),O=l.computed(()=>Oe(e.width)||""),R=l.ref(se(e.collapse)),N=(T,K=!0)=>{R.value!==T&&(R.value=T,T?w():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{x()},x=T=>{T=T??!R.value,N(T)};l.provide(vh,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(yh,q);const C=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),X=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),U=l.ref(R.value),ee=l.computed({set:T=>{U.value=T},get:()=>n.value===!1?!1:U.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},w=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,re=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),re=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},P=()=>{i.value=null,s.value=null,u.value=null,f.value=null},p={x:0,y:0},B=Fo(T=>{if(!$.value)return;const K=$.value;if(P(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=Q-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(K.offsetLeft+K.offsetWidth),f.value=le-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!$.value)return;const K=$.value;P(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Oe(i.value),K.style.top=Oe(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,f.value=p.y-T.y,K.style.left=Oe(i.value),K.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,f.value=p.y-T.y,K.style.right=Oe(u.value),K.style.bottom=Oe(f.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Oe(u.value),K.style.top=Oe(s.value))}),A={x:0,y:0},Z=Fo(T=>{k.value&&(A.x=k.value.offsetLeft,A.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=A.y+T.y;W.value=`${K}px`}),te=()=>{if($.value){const T=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=T}};return l.onMounted(()=>{if(e.draggable&&$.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),L.value&&T.push(L.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Z.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Z.close()}),{classes:c,styles:d,isShow:a,closeIcon:y,onClose:C,dialogRef:$,headerRef:j,onClickToggle:E,collapseIcon:V,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:X,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),xh={ref:"headerRef",class:"fox-floating-window__header"},Sh={class:"fox-floating-window__title"},Th={class:"fox-floating-window__tools"},Ch={class:"fox-floating-window__body"},$h={class:"fox-floating-window__fixednav__text"};function Nh(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",xh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",Sh,l.toDisplayString(e.title),1),l.createElementVNode("div",Th,[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",Ch,[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",$h,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=_e(wh,[["render",Nh]]);function Eh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return mr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:um,create:kh,scope:cm}=ie("domain-provider"),Hl=kh(Eh()),Ih={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 Vh(e,t){return{inheritAttrs:!1,props:Ih,setup(o,{slots:n}){if(dt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,V)=>{if(c===null){a.set(y,{visible:null,callback:V});return}r.has(y)&&c.unobserve(y),r.set(y,{visible:null,callback:V}),c.observe(y)},s=y=>{if(c===null){a.delete(y);return}r.has(y)&&(r.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;fi({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(y,V,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch($){console.error($)}}},{root:y,rootMargin:V,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,V])=>{if(V||!y||c)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:fm,create:Oh,scope:dm}=ie("rolling-provider"),Kl=Oh(Vh()),Ph=[Jn,el,tl,nl,ll,Te,ol,rl,Mt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,mn,vl,yl,bl,wl,xl,Sl,Tl,$l,Nl,El,kl,Il,gn,Vl,Ol,Pl,Dl,Al,Rt,hn,Ll,Ml,Bl,_l,zl,Hl,Kl],Dh=new ja(Ph,[Ka],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>v.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>v.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>v.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>v.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>v.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>v.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>v.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>v.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>v.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>v.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>v.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>v.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>v.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>v.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>v.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>v.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>v.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ye;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=mt;exports.DateItem=sl;exports.DateUtils=Le;exports.DialogItem=Il;exports.Domain=ln;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Il;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Mt;exports.FoxIndicator=Ll;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Te;exports.FoxMapping=Rt;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=gn;exports.FoxPage=Jn;exports.FoxPopup=Vl;exports.FoxPrice=hn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=wl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Pl;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=xl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=mn;exports.FoxTabsBar=$l;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ml;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Ol;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Mt;exports.Indicator=Ll;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Te;exports.Mapping=Rt;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=gn;exports.Page=Jn;exports.Popup=Vl;exports.Price=hn;exports.PriorityPolicy=Me;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=wl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Pl;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=xl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=mn;exports.TabsBar=$l;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ml;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Ol;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=kr;exports.ValidateSchema=fr;exports.ValidateSchemaKey=ze;exports.cancelRaf=aa;exports.clearNonNumber=ya;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=en;exports.createValidateSchema=tn;exports.debounce=Ot;exports.debounceRef=Oa;exports.decimalLength=rr;exports.default=Dh;exports.defineBroadcast=Sa;exports.defineConfigDomain=mr;exports.defineDataItem=pr;exports.defineDomain=Zn;exports.defineItem=Ce;exports.definePageState=yr;exports.defineSimpleItem=vr;exports.deleteGlobalValidator=Ea;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=Ie;exports.extend=ft;exports.floatData=xa;exports.getGlobalValidateCheckEvents=sr;exports.getGlobalValidateResetEvents=cr;exports.getPageContentAreaHeight=Yt;exports.getPageContentAreaWidth=Gt;exports.getPageFooterAreaHeight=Dt;exports.getPageHeaderAreaHeight=Pt;exports.getRootDomain=pt;exports.hasSymbol=Jo;exports.includeProps=ar;exports.indexOf=ba;exports.installRules=gr;exports.integerLength=or;exports.isArray=sa;exports.isArrayLike=er;exports.isBrowser=dt;exports.isDate=fa;exports.isESModule=ha;exports.isEmptyString=ge;exports.isEqual=Ue;exports.isFunction=Ln;exports.isHidden=Qt;exports.isInnerPage=Fa;exports.isMap=ua;exports.isNil=Un;exports.isNumberString=lr;exports.isObject=Xe;exports.isPlainObject=Mn;exports.isPromise=Xo;exports.isRegExp=nr;exports.isSet=ca;exports.isString=Uo;exports.isSubPage=Ra;exports.isSymbol=da;exports.isTouch=Fl;exports.isWindow=Qo;exports.lastIndexOf=wa;exports.makeArray=va;exports.merge=tr;exports.multiply=Wo;exports.negate=Yo;exports.nextTick=ga;exports.numberFormat=Zt;exports.objectToString=Zo;exports.once=Pa;exports.overrideGlobalValidateHandler=$a;exports.property=De;exports.raf=Gn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=ka;exports.setGlobalValidateHandler=Ca;exports.setGlobalValidateMessages=Va;exports.setGlobalValidateResetEvents=Ia;exports.setGlobalValidator=Na;exports.throttle=hr;exports.toBoolean=se;exports.toNumber=xe;exports.toPadding=Ke;exports.toPx=de;exports.toPxDesc=Ee;exports.toTypeString=Jt;exports.toValue=he;exports.tryTimes=nn;exports.typeOf=Kt;exports.unNumberFormat=Go;exports.updatePageState=_n;exports.useBroadcast=kt;exports.useDomain=Ze;exports.useExpose=$e;exports.useInnerSize=Qn;exports.usePageState=on;exports.usePosition=Nr;exports.useRawTouch=Rl;exports.useRect=Jr;exports.useSize=rn;exports.useTouch=wd;exports.valueLength=Lt;