@fox-js/foxui-pc 4.0.1-92 → 4.0.1-94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(h,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,We,p,Ne,Re){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Wed Nov 22 2023 15:57:58 GMT+0800 (中国标准时间)
3
- */const Tt=window,ea=typeof window<"u";function ta(){return typeof Tt<"u"?Tt.requestAnimationFrame||Tt.webkitRequestAnimationFrame||function(e){Tt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const ra=ta();/*!
1
+ (function(h,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Ye,p,Ne,Fe){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Tue Dec 12 2023 15:32:33 GMT+0800 (中国标准时间)
3
+ */const Tt=window,ta=typeof window<"u";function na(){return typeof Tt<"u"?Tt.requestAnimationFrame||Tt.webkitRequestAnimationFrame||function(e){Tt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ra(e){ta?cancelAnimationFrame(e):clearTimeout(e)}const oa=na();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function $t(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=we(e),t=we(t),[e,t]=Xt(we(e),we(t)),o==1&&(n==1?e=Gt(e):t=Gt(t));let a=cr(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Gt(a)):we(a)}function Gt(e){let t="",o=e.length,n=e.split(".")[1],a=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 l=a>0?"0."+new Array(a).join("0")+"1":"1";return cr(t,l)}function we(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 Xt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function cr(e,t){[e,t]=Xt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var ce=(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))(ce||{});function ut(e,t=0,o=ce.HALF_EVEN){if(o===ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),l=a[0],i=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+i,u=ut(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,fr(a[1],l,n,o)?(n?"-":"")+Zt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let s=a[1].substring(t);return s&&fr(s,i,n,o)&&(i=Zt(i),i.length>t)?(n?"-":"")+Zt(l,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+l+"."+i}function fr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ce.DOWN||!o&&n===ce.FLOOR||o&&n===ce.CEILING)return!1;if(n===ce.UP||o&&n===ce.FLOOR||!o&&n===ce.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ce.HALF_DOWN:return!1;case ce.HALF_UP:return!0;case ce.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Zt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Jt(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,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=ct(e.replace(".","")),t=ct(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,c="";for(let f=0;f<i;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let w=0;for(let x=t.length-1;x>=d&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(w+=parseInt(e[u[x]--])*parseInt(t[x]));w+=s,s=Math.floor(w/10),c=w%10+c,d--}return c=ct(oa(c,l)),o==1&&(c="-"+c),c}function oa(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 Qt(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 a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=we(t.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=we(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=we(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let c=e.length-d+a;e=we(e.substring(0,c)+"."+e.substring(c))}else a==d&&(e=we(e.replace(".","")))}let l=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),l=d,s="0."+new Array(d).join("0")}for(o=o+2;l<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=$t(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,u=u+"0")}return(n==1?"-":"")+we(ut(s,o-2))}function en(e,t){return e=e.toString(),t=t.toString(),t=tn(t),$t(e,t)}function tn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function dr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),hr(e),hr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=en(e,Jt(t,ut(Qt(e,t),0,ce.FLOOR)));return o+n}function hr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function gr(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]=Xt(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 oe{value;static RoundingModes=ce;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=we(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+we(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=oe.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=oe.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var i="",s=l;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<l-o&&s>=0?n:"")+i;return(a?"-":"")+i+t.substring(l)}getPrettyValue(t,o){return oe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ce.HALF_EVEN){if(t=oe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ut(t,o,n)}round(t=0,o=ce.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new oe(ut(this.value,t,o))}static floor(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,ce.FLOOR)}static ceil(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,ce.CEILING)}static add(t,o){return t=oe.validate(t),o=oe.validate(o),$t(t,o)}add(t){return new oe($t(this.value,t.getValue()))}static subtract(t,o){return t=oe.validate(t),o=oe.validate(o),en(t,o)}subtract(t){return new oe(en(this.value,t.getValue()))}static multiply(t,o){return t=oe.validate(t),o=oe.validate(o),Jt(t,o)}multiply(t){return new oe(Jt(this.value,t.getValue()))}static divide(t,o,n){return t=oe.validate(t),o=oe.validate(o),Qt(t,o,n)}divide(t,o){return new oe(Qt(this.value,t.getValue(),o))}static modulus(t,o){return t=oe.validate(t),o=oe.validate(o),dr(t,o)}modulus(t){return new oe(dr(this.value,t.getValue()))}static compareTo(t,o){return t=oe.validate(t),o=oe.validate(o),gr(t,o)}compareTo(t){return gr(this.value,t.getValue())}static negate(t){return t=oe.validate(t),tn(t)}negate(){return new oe(tn(this.value))}}function mr(e,t){return oe.multiply(`${e}`,`${t}`)}function nn(e,t,o=8){return oe.divide(`${e}`,`${t}`,o)}function rn(e,t){return e=`${e}`,t=`${t}`,oe.compareTo(e,t)}function pr(e){return oe.negate(e)}function xt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let i=l.charAt(0);i=="-"?l=l.substring(1):i="";let s=l,u="",d=l.indexOf(".");d!=-1&&(s=l.substring(0,d),u=l.substring(d+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 f="",w=s.split("").reverse();for(let x=0;x<w.length;x++)f+=w[x]+((x+1)%n==0&&x+1!=w.length?a:"");u.length==0?c=`${i}${f.split("").reverse().join("")}`:c=`${i}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function yr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const aa=ra,la=Array.isArray,ia=e=>Ct(e)==="[object Map]",sa=e=>Ct(e)==="[object Set]",ua=e=>e instanceof Date,on=e=>typeof e=="function",br=e=>typeof e=="string",ca=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",fa=e=>_e(e)&&on(e.then)&&on(e.catch),wr=Object.prototype.toString,Ct=e=>wr.call(e),an=e=>Ct(e)==="[object Object]",vr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||vr&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ye(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let i in l){let s=t[i],u=l[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=Ye(a,d,u)}else u!==void 0&&(t[i]=u)}}return t}function ln(e,t,o=!1){if(!o)Ye(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!an(i))continue;l=ln(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!an(i))continue;l=ln(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}}return e}const sn=ha?Promise.resolve():null;function ga(e,...t){sn!==null?t&&t.length>0?sn.then(()=>{e(t)}):sn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ne(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(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 Et(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Sr(e){return e&&typeof e=="object"&&"setInterval"in e}function Tr(e){return!e||e.offsetParent===null}function $r(e){let t=!!e&&"length"in e&&e.length,o=Et(e);return o==="function"||Sr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function xr(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function pa(e,t=[]){let o=t;return e!=null&&($r(Object(e))?xr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Pe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Et(e),n=Et(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],d=t[s];if(!Pe(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],i=t[a];if(!Pe(l,i))return!1}return!0}return!1}const Qe=typeof window<"u";function un(e){return e==null}function Cr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Er(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Nr(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 kr(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 Vr(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=Vr(e,".",/\./g):e=e.replace(/\./g,""),o?e=Vr(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(Pe(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(Pe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ft(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Or(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function Se(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const va=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},de=Symbol.for("BroadcastKey");class cn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Cr(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&l.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&l.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,l,[...s])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const i=Reflect.apply(l.emit,l,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,o){this.callbacks.set(t,o)}}function Nt(e,t,o,n){const a=new cn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Sa(e,t,o){const n=o;if(n[de])return n[de];const a=r.inject(de,null),l=new cn(a,o,e);if(t&&typeof t=="object")for(const i in t)l.on(i,t[i]);return n[de]=l,r.provide(de,l),r.onUnmounted(()=>{l.destroy(),n[de]=void 0}),l}function dt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ue=e=>e.default??e;class Ta{error(t,o){const n=o,a=dt(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=dt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=dt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=dt(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Ir=new Ta;function $a(e){Ir=e}function xa(e,t){Ue(We).setValidator(e,t)}function Ca(e){Ue(We).deleteValidator(e)}let Rr=["blur","clear"];function Ea(e){Rr=e}function Fr(){return Rr}let Dr=["focus","change"];function Na(e){Dr=e}function Ar(){return Dr}function ka(e){Ue(We).messages(e)}function ht(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function kt(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 qe=Symbol("ValidateSchemaKey");class Br{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=kt(ht(this.attrRules,this.rules)),n=[];for(let l in t){let i=t[l];if(this.hasValidator(l,!0)){if(i===!1)continue;let u={type:l};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(l);if(s!==null){let u={type:l,validator:s};n.push(u)}}this.attrRules=kt(n);const a=ht(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Ir;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...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?Ue(We).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?Ue(We).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ue(We).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=ht(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=kt(t):this.rules=kt([t]);const n=ht(this.attrRules,this.rules);r.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=ht(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),i={[`${n}`]:l},s=Ue(We),u=new s(a),d=this.proxy??i;return u.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let w="error";Array.isArray(f.errors)&&f.errors.length>0&&(w=f.errors[0].message??w,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(w)}return f}).catch(f=>{const w=f.message??`${f}`;return this.error(w),f})}}return Promise.resolve({pass:!0})}}function Vt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Br(t,o,e)}const qr=Symbol.for("EventEmitterKey");class Va{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 a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,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(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function gt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Lr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=gt((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function fn(e,t,o,n=0,a=!0){let l=t,i=0;if(a){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(l+=n,setTimeout(s,l))};setTimeout(s,l)}const ke=Symbol("DomainKey"),et=Symbol("DataItemsKey");class Ot{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}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 a=n._props[t];o.push(a)}n=n._parent}return o}}const Ra=new Ot;function tt(){return Ra}function Le(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ke]??r.inject(ke,null):r.inject(ke,null)}const dn=Symbol("OriginalDateKey");function hn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let i=r.inject(ke,null);i===null&&(i=tt());const s=e||t.prop||t.name,u=new Ot(s);u.parent=i;const d=g=>{l[dn]||w(g),u.set("modelValue",g)},c=()=>u.getForSelf("modelValue")??null,f=()=>l[dn]??null,w=g=>{const b={};Ye(!0,b,r.toRaw(g)),l[dn]=b};r.isReactive(t)||typeof t=="function"?r.watch(t,g=>{u.merge(g,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&w(t.modelValue),l[ke]=u,r.provide(ke,u);let x=null,m=null;if(a!==null){const g=r.inject(de,null);x=Nt(l,g,s,n),u.broadcast=x,l[de]=x,r.provide(de,x),l.broadcast=(y,$,...k)=>Reflect.apply(x.emit,x,[y,$,...k]);const b=r.inject(qe,null);m=Vt(l,b,{componentName:""}),u.validateSchema=m,l[qe]=m,r.provide(qe,m),l[et]=new Map,l.validate=(y=!0)=>{const $=[];let k=null;const F={deep:!1};if(y===!0)k={name:"*"};else if(Array.isArray(y)&&y.length>0){const R=y;k={name:V=>V?R.indexOf(V)!==-1:!1}}else if(y!=null&&typeof y=="object"){const R=y;if(F.ignoreHidden=R.ignoreHidden,Array.isArray(R.include)&&R.include.length>0){const V=R.include;k={name:O=>O?V.indexOf(O)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const V=R.exclude;k={name:O=>O?V.indexOf(O)===-1:!1}}else k={name:"*"}}if(k){const R=x?.emitToChildren(k,"validate",F);R&&Reflect.apply([].push,$,R)}return $.length==1?$[0]:$.length>1?Promise.all($).then(R=>{let V=[];return R.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(V=[...V,...O.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(y,$=!0,k=!1)=>{if(k===!0){Reflect.ownKeys(y).forEach(R=>{let V=String(R);const A=_r(u,V,{componentName:"",fieldName:V,pureDataValidate:!0},x,m);l[et].set(V,A);const I=y[V];I&&A.validateSchema.setRule(I)});return}if($){const F=Reflect.ownKeys(y),R={name:V=>F.includes(V)};x?.emitToChildren(R,"setNameValidateRules",y,!1)}},l.clearValidate=(y=!0)=>{let $=null;if(y===!0)$={name:"*"};else if(Array.isArray(y)&&y.length>0){const k=y;$={name:F=>F?k.indexOf(F)!==-1:!1}}else if(y!=null&&typeof y=="object"){const k=y;if(Array.isArray(k.include)&&k.include.length>0){const F=k.include;$={name:R=>R?F.indexOf(R)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const F=k.exclude;$={name:R=>R?F.indexOf(R)===-1:!1}}else $={name:"*"}}$&&x?.emitToChildren($,"clearValidate",!1)},l.resetFields=y=>{const $=c();if(!$)return;const k={};if(Ye(!0,k,f()??{}),Array.isArray(y))y.forEach(F=>{$[F]=k[F]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(R=>{$[R]=k[R]});else if(y&&Array.isArray(y.exclude)){let F=y.exclude??[];Reflect.ownKeys(k).forEach(R=>{F.includes(R)||($[R]=k[R])})}else Object.assign($,k);l.clearValidate(y)},l.setModelValue=(y,$)=>{!$||$===s?d(y):x?.emitToChildren({name:$},"setModelValue",y)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[ke]=void 0,l[et]&&(l[et].clear(),l[et]=void 0),x!==null&&(x.destroy(),l[de]=void 0),m!==null&&(m.destroy(),l[qe]=void 0)}),u}function Mr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(ke,null);l===null&&(l=tt());const i=e||t.prop||t.name,s=new Ot(i);return s.parent=l,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),a[ke]=s,r.provide(ke,s),r.onUnmounted(()=>{s.destroy(),a[ke]=void 0}),s}function jr(e,t,o){const a=Le(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",i=r.inject(de,null),s=Nt(a,i,l,o);a[de]=s,r.provide(de,s),a.broadcast=(m,g,...b)=>Reflect.apply(s.emit,s,[m,g,...b]);const u=r.inject(qe,null);e.fieldName=e.fieldName??l;const d=Vt(a,u,e);a[qe]=d,r.provide(qe,d),jr(a,d,l),a.validate=(m=null)=>{const g=[];let b=!1,y=!1;if(Array.isArray(m)&&m.indexOf(l)!==-1)y=!0,b=!0;else if(m&&typeof m=="object"){const $=m;$.ignoreHidden===!0&&Tr(a.$el)?y=!1:(Array.isArray($.include)&&$.include.indexOf(l)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(l),y=!0),b=$.deep??!1}else typeof m=="boolean"&&(b=m),y=!0;if(y){const $=d?.validate();g.push($)}if(b){let $=null;const k={deep:!1};if(m===!0)$={name:"*"};else if(Array.isArray(m)&&m.length>0){const F=m;$={name:R=>R?F.indexOf(R)!==-1:!1}}else if(m!=null&&typeof m=="object"){const F=m;if(k.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const R=F.include;$={name:V=>V?R.indexOf(V)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const R=F.exclude;$={name:V=>V?R.indexOf(V)===-1:!1}}else $={name:"*"}}if($){const F=s.emitToChildren($,"validate",k);Reflect.apply([].push,g,F)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then($=>{let k=[];return $.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(k=[...k,...F.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>d?.setRule(m),a.setNameValidateRules=(m,g=!1)=>{const b=m[l];if(b&&d?.setRule(b),g){const y={name:$=>Reflect.ownKeys(m).includes($)};s.emitToChildren(y,"setNameValidateRules",m,!1)}},a.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const b=m;g={name:y=>y?b.indexOf(y)!==-1:!1}}else if(m!=null&&typeof m=="object"){const b=m;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;g={name:$=>$?y.indexOf($)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;g={name:$=>$?y.indexOf($)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const c=new Va(a);a[qr]=c;const f=gt((m="validate")=>{m==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fr()).forEach(m=>{c.on(m,g=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ar()).forEach(m=>{c.on(m,g=>{f("reset")})}),r.onUnmounted(()=>{s.destroy(),a[de]=void 0,d.destroy(),a[qe]=void 0,c.destroy(),a[qr]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(m,...g)=>{Reflect.apply(c.emit,c,[m,...g])},onEvent:(m,g)=>{Reflect.apply(c.on,c,[g])},offEvent:(m,g)=>{Reflect.apply(c.off,c,[g])}}}function _r(e,t,o,n,a){const l={},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()}};const u=Vt({},a,o);l.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let w=!1,x=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)x=!0,w=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),x=!0,w=m.deep??!1}else typeof c=="boolean"&&(w=c),x=!0;if(x){const m=u?.validate();f.push(m)}if(w){let m=null;const g={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;m={name:y=>y?b.indexOf(y)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;m={name:$=>$?y.indexOf($)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;m={name:$=>$?y.indexOf($)===-1:!1}}else m={name:"*"}}if(m){const b=d.emitToChildren(m,"validate",g);Reflect.apply([].push,f,b)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(m=>{let g=[];return m.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(g=[...g,...b.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=c=>{const f=c[i];f&&u?.setRule(f)};const d=Nt(null,n,i,l);return{broadcast:d,validateSchema:u}}const ye=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e,t)}px`:"";function ue(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 a=Number(e.substring(0,o)),l=1;if(Qe){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(l=Number(i.substring(0,s)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const He="PageStateKey";function Fe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ue(e.right))),t}function gn(e,t,o={},n=!0,a=-1,l=-1,i=0,s=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight),e.headerPadding=Fe(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight),e.footerPadding=Fe(o.footerPadding??t.footerPadding),e.contentPadding=Fe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,l):e.height=ue(l)-ue(i,l)-ue(s,l),e.width=ue(o.width??t.width??0,a)}}function Pr(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},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ue(a.top),n.safeAreaBottom=ue(a.bottom),n.safeAreaLeft=ue(a.left),n.safeAreaRight=ue(a.right));const l=e.get("pageLayout");if(!l)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;gn(n,l,t,!0,i,s,u,d);const c=r.reactive(n),f=e.getForParent(He);f&&(n.height=Rt(e,f),n.width=Ft(e,f),r.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=Rt(e,f),c.width=Ft(e,f)}));const w=!f;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,m,g=-1,b=-1,y=0,$=0])=>{gn(c,m,t,w,g,b,y,$)}),e.set(He,c),c}function It(e){return e.get(He)}function mt(e,t){if(t=t??e.get(He),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(He),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Rt(e,t){if(t=t??e.get(He),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=mt(e,t),n=pt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ft(e,t){return t=t??e.get(He),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 Da(e){return!!e.getForParent(He)}var Ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ve||{});function mn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ee(e,t,o=1,n){const a=Le();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const u=l[s];if(mn(u,n))return u}const i=e.value;return mn(i,n)?i:null}):r.computed(()=>{const l=e.value;return mn(l,n)?l:a?.get(t)})}function $e(e){return Ee(e,"readonly",0,function(o){return ne(o)})}function xe(e){return Ee(e,"disabled",0,function(o){return ne(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==l.value&&(l.value=s)}else i!==l.value&&(l.value=i)}),l}const Hr=new Map,Dt=new Map;let pn=null;function Aa(e){pn=e}function zr(e,t,o){if(o){let n=Dt.get(o);n||(n=new Map,Dt.set(o,n)),n.set(e,t)}else Hr.set(e,t)}function De(e,t,o){!o&&pn&&(o=pn(e)??void 0);let n=null;if(o){let a=Dt.get(o);a&&(n=a.get(t))}return n||(n=Hr.get(t)),n}function Ba(e,t){for(let o in e){const n=e[o];zr(o,n,t)}}function qa(e){Dt.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(Qe){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ue(e,n)-ue(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}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(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=tt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=Lr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=Ye({},La(),t.safeAreaInset),i=Ma(n,a),s=Ye({},i.pageLayout,t.pageLayout);o=o??tt(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Aa(t)}setAPI(t,o,n){zr(t,o,n)}getAPI(t,o,n){return De(t,o,n)}batchSetAPI(t,o){Ba(t,o)}clearScopeAPI(t){qa(t)}getRootDomain(){return tt()}}const _a=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Pa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Ha=e=>{_a.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Pa.forEach(t=>{e.use(t)})};function re(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)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Kr={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}},Wr={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}},Yr=[];for(const e in Wr)Yr.push(e);function be(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const za=Symbol.for("InnerPageScopeKey"),Ka=(e,t)=>({inheritAttrs:!0,props:{...he,...Kr,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}},setup(o,n){const a=hn(o.name,o);if(a){const d=Pr(a,o);be({getPageContentHeight:()=>Rt(a,d),getPageContentWidth:()=>Ft(a,d),getPageHeaderHeight:()=>mt(a,d),getPageFooterHeight:()=>pt(a,d)});const c=r.inject(za,!1);d&&c&&(d.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(d,c=!1)=>{const f=s?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(d,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([d,c],[f,w])=>{if(d&&f){const x=r.toRaw(f),m=r.toRaw(d),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),u(m)}if(c&&w){const x=r.toRaw(w),m=r.toRaw(c),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),u(m,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const d=r.toRaw(o.rules);u(d)}if(o.pureDataRules){const d=r.toRaw(o.pureDataRules);u(d,!0)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:i}}}),{componentName:Wa,create:Ya,scope:Jc}=re("page"),Ua=Ya(Ka(Wa));function Ga(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Oe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},yn=Oe(Ua,[["render",Ga]]);function bn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function wn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-i}}const Xa=(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},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,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,l){const i=Le(),s=i?It(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const T=e;return{[T]:!0,[`${T}--border`]:a.border,[`${T}--fixed`]:a.fixed,[`${T}--safe-area-inset-top`]:a.safeAreaInsetTop}}),d=a.height!==null&&a.height!==void 0?ue(a.height):null,c=r.computed(()=>{const T={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const H=Fe(a.padding??s.headerPadding);return Object.assign(T,H),d&&(s.headerHeight=d),T.height=s.headerHeight,T.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,T.safeAreaTop>0&&(T.top=T.safeAreaTop+(H.top??0),T.height=T.height+T.safeAreaTop),T}if(d&&(T.height=d),a.padding){const H=Fe(a.padding);Object.assign(T,H)}return T}),f=r.ref(null),w=()=>{if(s&&f.value&&f.value.offsetParent!==null){if(!n){const T=bn(f.value);s.headerAllHeight=T.height}return s.headerMounted=!0,!0}return!1};let x=null;r.onMounted(()=>{s&&(fn(w,50,5,50,!0),window.ResizeObserver&&f.value&&(x=new window.ResizeObserver(()=>{w()}),x.observe(f.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,x&&(x.disconnect(),x=null))});const m=r.computed(()=>{const T={};return c.value.height!==null&&c.value.height!==void 0&&(T.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(T.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(T.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(T.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(T.paddingBottom=`${c.value.bottom}px`),T}),g=r.computed(()=>{const T={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(T.top=`${c.value.safeAreaTop}px`),T}),b=r.computed(()=>{const T={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(T.top=`${c.value.safeAreaTop}px`),T}),y=r.computed(()=>!!a.leftShow),$=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),k=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),F=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),R=r.computed(()=>a.leftIcon),V=r.computed(()=>R.value||l.slots.leftIcon),O=r.computed(()=>a.titleIcon),A=r.computed(()=>a.titleIcon||l.slots.titleIcon),I=r.computed(()=>a.rightIcon),q=r.computed(()=>a.rightIcon||l.slots.rightIcon);function K(){l.emit("back")}function W(){l.emit("click-title")}function v(){l.emit("click-right")}function E(){l.emit("click-right-text")}return{headerBarRef:f,classes:u,styles:m,mHeaderShow:$,leftStyles:g,rightStyles:b,mLeftShow:y,mTitleShow:k,mRightShow:F,mLeftIcon:R,hasLeftIcon:V,mTitleIcon:O,hasTitleIcon:A,mRightIcon:I,hasRightIcon:q,handleLeft:K,handleCenter:W,handleRight:v,handleRightText:E}}}),{componentName:Za,create:Ja,scope:Qa}=re("header-bar"),el=Ja(Xa(Za,Qa,Ne.ArrowLeft)),tl={key:1,class:"fox-header-bar__title"},nl={key:0,class:"title-text"};function rl(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",tl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",nl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const vn=Oe(el,[["render",rl]]);function ol(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,a){const l=Le(),i=l?It(l):null,s=r.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ue(n.height):null,d=r.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&i){const g=Fe(n.padding??i.footerPadding);return Object.assign(m,g),u&&(i.footerHeight=u),m.height=i.footerHeight,m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.height=m.height+m.safeAreaBottom,m.bottom=m.safeAreaBottom+(g.bottom??0)),m}if(u&&(m.height=u),n.padding){const g=Fe(n.padding);Object.assign(m,g)}return m}),c=r.ref(null),f=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!o){const m=bn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let w=null;r.onMounted(()=>{i&&(fn(f,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(()=>{f()}),w.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const x=r.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=ye(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=ye(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=ye(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=ye(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=ye(d.value.bottom)),m});return{footerBarRef:c,classes:s,styles:x}}}}const{componentName:al,create:ll,scope:Qc}=re("footer-bar"),il=ll(ol(al));function sl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Sn=Oe(il,[["render",sl]]);function ul(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Le(),a=r.computed(()=>({[e]:!0})),l=n?It(n):null,i=r.computed(()=>{const d={};if(n&&l){if(o.padding){const x=Fe(o.padding);Object.assign(l.contentPadding,x)}const c=mt(n,l),f=pt(n,l);let w="";if(l.contentHeight?w=`${l.contentHeight}`:w=`${l.height}px`,l.contentPadding,d.height=w,l.contentPadding.top||c>0){const x=(l&&l.contentPadding&&l.contentPadding.top)??0;d.paddingTop=`${c+x}px`}if(l.contentPadding.bottom||f>0){const x=(l&&l.contentPadding&&l.contentPadding.bottom)??0;d.paddingBottom=`${f+x}px`}return l.contentPadding.left&&(d.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(d.paddingRight=`${l.contentPadding.right}px`),d}if(o.padding){const c=Fe(o.padding);c.left&&(d.paddingLeft=`${c.left}px`),c.top&&(d.paddingTop=`${c.top}px`),c.right&&(d.paddingRight=`${c.right}px`),c.bottom&&(d.paddingBottom=`${c.bottom}px`)}return d}),s=r.ref(null),u=()=>{if(l&&s.value){const d=wn(s.value);l.contentInnerHeight=d.height,l.contentInnerWidth=d.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>mt(n),()=>pt(n)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:cl,create:fl,scope:ef}=re("content"),dl=fl(ul(cl));function hl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Tn=Oe(dl,[["render",hl]]),nt="GroupStateKey",Ur=Symbol.for("GroupScopeKey");function At(){return r.inject(Ur,!1)}function Bt(e=!0){r.provide(Ur,e)}function gl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];un(a)||(e[n]=a)})}function ml(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(nt,l),l}function $n(e,t,o=-1,n=-1,a=!1,l,i,s){const u=e.get(nt);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),l||(l=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const c=ue(l),f=ue(i);s||(s=d.type??"grid");const w=()=>{const x=t===""||t===-1,m=ue(t);let g=ve(o);const b=ue(n);if(!x){let k=(m-(g-1)*b)/g;for(;f!==-1&&k>f;)g++,k=(m-(g-1)*b)/g;for(;c!==-1&&g>1&&k<c;)g--,k=(m-(g-1)*b)/g}let y=!1;const $=u.layout;$.value.width=t,$.value.column!==g&&($.value.column=g,y=!0),$.value.gutter!==b&&($.value.gutter=b,y=!0),$.value.type!==s&&($.value.type=s,y=!0),y&&r.triggerRef($)};if(a)w();else{const x=++u.passport;setTimeout(()=>{x===u.passport&&w()},50)}}function qt(e,t=!1){let o;return t?o=e.getForParent(nt):o=e.get(nt),o.layout}function Lt(e,t=!1){let o;return t?o=e.getForParent(nt):o=e.get(nt),o.order}function Gr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function Mt(e,t,o=1,n=0,a){const l={};let i=0;a?i=ue(a):i=Gr(t.column,o),i>0&&(l.width=`${i}%`);const s=Gr(t.column,n);s>0&&(l["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function jt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let a=ve(o);if(a===-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(a>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 l=ve(n)%t.column;let i=(e.index+l)%t.column,s=i+a;return s>t.column?(i=0,s=i+a,e.index=e.index+(t.column-i)+a):e.index=e.index+l+a,l>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Xr=Symbol("RollingStateKey");function pl(e){r.provide(Xr,e)}function yl(){return r.inject(Xr,null)}function xn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function bl(e){let t=xn(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=xn(o),document.body.removeChild(o)}return t}function wl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const vl={...he,...Kr,...Wr};function Sl(e,t,o){return{props:vl,emits:["update:collapse"],setup(n,a){const l=hn(n.name,n,Yr),i=ml(l,{type:n.type}),s=At();Bt(!0);const u=n.rollingDisplay?yl():null,d=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),f=r.computed(()=>s&&l?qt(l,!0).value:null),w=r.getCurrentInstance(),x=(N,D=!1)=>{const C=w?.proxy;C&&typeof C.setNameValidateRules=="function"&&C.setNameValidateRules(N,!0,D)};r.watch([()=>n.rules,()=>n.pureDataRules],([N,D],[C,P])=>{if(N&&C){const _=r.toRaw(C),G=r.toRaw(N),te=G?Reflect.ownKeys(G):[];(_?Reflect.ownKeys(_):[]).forEach(me=>{te.includes(me)||(G[me]=[])}),x(G)}if(D&&P){const _=r.toRaw(P),G=r.toRaw(D),te=G?Reflect.ownKeys(G):[];(_?Reflect.ownKeys(_):[]).forEach(me=>{te.includes(me)||(G[me]=[])}),x(G,!0)}},{deep:!0});const m=e,g=r.computed(()=>{const N={};N.height=H.value;const D=s?Lt(l,!0):null;if(f.value&&D){if(f.value.type==="grid"){const C=jt(D,f.value,n.span,n.offset);Object.assign(N,C)}else if(f.value.type==="flow"){const C=Mt(D,f.value,n.span,n.offset,n.width);Object.assign(N,C)}}else if(n.width){const C=ye(n.width);N.width=C}return N}),b=r.computed(()=>{const N=i.layout.value.type;return N==="grid"||N==="flow"?{[`${m}--${N}`]:!0,[`${m}--${N}-justify-${n.justify}`]:!0,[`${m}--${N}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${N}`]:!0,[`${m}--gutter`]:!0}}),y=r.computed(()=>{if(i.layout.value.type==="grid"){let D="";if(n.columnWidth)D=`repeat(auto-fill, ${n.columnWidth})`;else{const C=wl(I.value,i.layout.value.column,i.layout.value.gutter);D=`repeat(${i.layout.value.column}, ${C})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":D}}}),$=r.toRef(n,"title"),k=r.toRef(n,"gutter"),F=r.toRef(n,"column"),R=r.computed(()=>s||c.value?!0:ne(n.isWrap)),V=[],O=N=>{V.push(N)},A=()=>{let N=V.length;V.splice(0,N)},I=r.ref(-1),q=N=>{const D=wn(N).width;D>0&&D!==I.value&&(I.value=D)};$n(l,I.value,F.value,k.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([I,F,k],([N,D,C])=>{i.order.index=0,$n(l,N,D,C,!1,n.minItemWidth,n.maxItemWidth,n.type)});const K=r.computed(()=>B.value?n.expandText??"":n.collapseText??""),W=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),v=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),E=r.ref(),T=r.ref(),H=r.computed(()=>j.value||ye(n.height)||""),B=r.ref(!1),j=r.ref(""),S=r.ref(!1);let M=-1;const Y=(N,D=!0)=>{const C=E.value;if(C&&B.value!==N){if(M=M===-1?bl(C):M,S.value=!0,D)if(C.style["will-change"]="height",C.ontransitionend=function(){C.ontransitionend=null,this.style["will-change"]="auto",N||(j.value="",S.value=!1)},N){let P=0;n.collapseHeight?P=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(P=T.value.offsetHeight),j.value=`${M}px`,r.nextTick(()=>{j.value=`${P}px`})}else j.value=`${M}px`;else if(N){let P=0;n.collapseHeight?P=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(P=T.value.offsetHeight),j.value=`${P}px`}else S.value=!1,j.value=`${M}px`;B.value=N,a.emit("update:collapse",N)}};r.watch(()=>n.collapse,N=>{Y(N)});const U=()=>{Q()},Q=N=>{N=N??!B.value,Y(N)};be({toggleCollapse:Q,doLayout:()=>{V[0]&&(q(V[0]),$n(l,I.value,F.value,k.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let le=null,ie=!0;const L=N=>{if(n.rules){const D=r.toRaw(n.rules);x(D)}if(n.pureDataRules){const D=r.toRaw(n.pureDataRules);x(D,!0)}if(Qe&&(N&&Y(ne(n.collapse),!1),n.autoLayout&&Array.isArray(V)&&V.length>0)){const D=V[0];q(D),window.ResizeObserver&&(le=new window.ResizeObserver(()=>{q(D)}),le.observe(D))}},Z=()=>{le?.disconnect(),le=null},z=!c.value||u?.acquire();z&&(d.value=c.value?!0:null),r.onMounted(()=>{if(z&&(L(ie),ie=!1),c.value&&u){let N=null,D=u.initialHeight;u.observe(E.value,C=>{if(C!==d.value)if(C)d.value=!0,B.value||(j.value=""),N=setTimeout(()=>{N=null,d.value!==!1&&(L(ie),ie=!1)},100);else{if(N!==null&&clearTimeout(N),d.value=!1,!B.value)if(ie)j.value=u.initialHeight;else{let P=xn(E.value);P<=0?j.value=D:(j.value=`${P}px`,D=j.value)}ie||Z()}})}}),r.onUnmounted(()=>{le?.disconnect(),u&&u.unobserve(E.value)});const X=(N="right")=>{const D=[];if(K.value){const _={class:W.value},G=r.h("span",_,[K.value]);D.push(G)}const C={class:v.value},P=o(n.collapseIcon,C);return P&&D.push(P),D.length>0?r.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${N}`]:!0},onClick:U},D):null},J=(N,D,C,P)=>{const _={...b.value};return D===0&&(_[`${m}__first`]=!0),C>=P-1&&(_[`${m}__last`]=!0),r.h("div",{ref:O,key:`${D}`,class:_,style:y.value},N)};return()=>{if(c.value&&d.value!==!0){const _=n.tag||"div";return r.h(_,{ref:E,prop:n.name,class:{[`${m}`]:!0,"is-collapse":S.value},style:g.value},[])}i.order.index=0;const N=[];let D=0;if(a.slots.header){const _={key:`${D++}`,ref:T,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},G=r.h("div",_,[a.slots.header()]);N.push(G)}else{const _=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=X("left");te&&_.push(te)}if($.value){if(n.showMark){const ae={class:{[`${m}__header-mark`]:!0}};n.markColor&&(ae.style={background:n.markColor});const me=r.h("div",ae);_.push(me)}const te=r.h("div",{class:{[`${m}__header-title`]:!0}},[$.value]);_.push(te)}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!G&&n.showCollapse){const te=X("right");te&&_.push(te)}if(_.length>0){const te={key:`${D++}`,ref:T,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},ae=r.h("div",te,_);N.push(ae)}}A();const C=a.slots.default?a.slots.default():[],P=i.layout.value.type;if(P==="grid"){const _=J(C,D++,0,C.length);N.push(_)}else if(P==="flow"){const _=J(C,D++,0,C.length);N.push(_)}else for(let _=0;_<C.length;_++){const G=C[_],te=J([G],D++,_,C.length);N.push(te)}if(R.value){const _=n.tag||"div";return r.h(_,{ref:E,prop:n.name,class:{[`${m}`]:!0,"is-collapse":S.value},style:g.value},[N])}else return N}}}}const{componentName:Tl,create:$l,scope:xl}=re("group"),Cn=$l(Sl(Tl,xl,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]}))));function Cl(e){return e===window}const El=/matrix\((.+)\)/,Zr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Cl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,i=0,s=0,u=0;for(a=t;a!==document;){i+=a.scrollTop,l+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const c=El.exec(d);if(c){let w=c[1].split(/\s*,\s*/);w.length==6&&(s+=Number(w[4]),u+=Number(w[5]))}}a=a.parentNode}return o-=l,n-=i,o+=s,n+=u,{x:o,y:n}};function Nl(e){return e===window}const En=e=>{const t=r.unref(e);if(Nl(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}};class kl{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 Vl{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new kl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const Jr=new Vl,Qr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ol,create:Il}=re("price"),Rl=Il({props:{...Qr},setup(e){const t=r.computed(()=>({[Ol]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ft(e.price)==0?"":xt(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),l=r.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:a,decimalText:l}}}),Fl=["innerHTML"],Dl=["innerHTML"];function Al(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Fl)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Dl)):r.createCommentVNode("",!0)],2)}const _t=Oe(Rl,[["render",Al]]),{componentName:Pt,create:Bl}=re("hint-text"),ql=Bl({components:{Price:_t},props:{...Qr,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),d=r.ref(0),c=r.ref(e.placement),f=r.computed(()=>({[Pt]:!0})),w=r.ref(null),x=(A,I,q=10)=>{if(!Qe||I===!1||!A)return;l.value=!0;const K=En(e.reference);u.value=K.width,d.value=K.height,setTimeout(()=>{if(!w.value||!e.reference||e.reference.offsetParent===null)return;const W=Zr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,E=w.value.offsetWidth,T=w.value.offsetHeight;W.y-T>=0?(c.value="top",i.value.y=W.y-T-10-4,s.value.y=T):(c.value="bottom",i.value.y=W.y+d.value+10,s.value.y=-10);const H=W.x+E-v;H<0?(i.value.x=W.x,s.value.x=20):(i.value.x=W.x-H,s.value.x=H+20),l.value=!1},q)},m=gt(()=>{x(e.message,e.visible)},10),g=r.computed(()=>e.visible&&b.value),b=r.ref(!0),y=gt(A=>{const I=A[0];I&&(b.value=I.isIntersecting)},10),$=new IntersectionObserver(y);r.watch([()=>e.message,()=>e.visible],([A,I])=>{x(A,I)}),r.onMounted(()=>{x(e.message,e.visible),Jr.watch(e.reference,m),$.observe(e.reference)}),r.onBeforeMount(()=>{Jr.unwatch(e.reference,m),$.unobserve(e.reference),$.disconnect()});const k=r.computed(()=>{const A={"min-width":ye(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${i.value.x}px, ${i.value.y}px)`,A}),F=r.computed(()=>({[`${Pt}__content`]:!0})),R=r.computed(()=>({})),V=r.computed(()=>({[`${Pt}__arrow`]:!0,[`${Pt}__arrow-${e.placement}`]:!0})),O=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:g,tipRef:w,classes:f,styles:k,textClasses:F,textStyles:R,arrowClasses:V,arrowStyles:O}}}),Ll={key:1,class:"text"};function Ml(e,t,o,n,a,l){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Ll,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const yt=Oe(ql,[["render",Ml]]);class eo{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 Nn={},jl=new eo,rt=new Map,kn=e=>{if(e){const t=document.getElementById(e);rt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of rt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}rt.clear()}},_l=e=>{const t=document.getElementById(e.id);if(t){const o=rt.get(e.id);o?e={...Nn,...o,...e}:e={...Nn,...e};const n=r.createVNode(yt,e);return r.render(n,t),e.id}},Pl=e=>{e.unmount=kn;let t;if(e.id){if(t=e.id,rt.has(t))return _l(e)}else t=`hinttext_${jl.get()}`;e={...Nn,...e},e.id=t,rt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(yt,e);return r.render(n,o),document.body.appendChild(o),t},Hl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ht={show(e,t,o={},n=!0){return n&&kn(),Hl(t),Pl({...o,message:t,reference:e})},hide(e){kn(e)},install(e){e.config.globalProperties.$hintText=Ht}},{componentName:to,create:zl}=re("item"),Kl=zl({inheritAttrs:!0,props:{...he,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:to,validate:!1},o);const n=Le(),a=At();Bt(!1);const l=r.computed(()=>a&&n?qt(n,!1).value:null),i=to,s=r.ref(null),u=r.computed(()=>{const L={[i]:!0,[`${i}__gutter`]:l.value&&l.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(L[e.errorMarkClass]=!!K.value,L[e.warnMarkClass]=!!I.value,L[e.infoMarkClass]=!!O.value,typeof s.value=="function"){const Z=s.value(o);L[Z]=!0}else if(typeof s.value=="string"){const Z=s.value;L[Z]=!0}return L}),d=r.computed(()=>{const L={},Z=a&&n?Lt(n,!1):null;if(l.value&&Z)if(l.value.type==="grid"){const z=jt(Z,l.value,e.span,e.offset);Object.assign(L,z)}else if(l.value.type==="flow"){const z=Mt(Z,l.value,e.span,e.offset,e.width);Object.assign(L,z)}else return e.width&&(L.width=ye(e.width)),L;else e.width&&(L.width=ye(e.width));return L}),c=r.ref(null),f=r.computed({get:()=>c.value??ne(e.isRequired),set:L=>{c.value=L}}),w=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),x=Ee(r.toRef(e,"labelPosition"),"labelPosition",Ve.Near),m=r.computed(()=>x&&x.value==="top"?"top":x&&x.value==="right"?"right":"left"),g=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${m.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${m.value}`]:!0})),y=Ee(r.toRef(e,"labelWidth"),"labelWidth",Ve.Near),$=r.computed(()=>y&&y.value?{width:ye(y.value)}:{}),k=r.computed(()=>({"label--string":!0,"label--required":f.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),R=r.computed(()=>({...e.contentStyle})),V=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(L){f.value=L},setErrorTip(L){V.errorTip=L},setErrorIcon(L){V.errorIcon=L},setWarnTip(L){V.warnTip=L},setWarnIcon(L){V.warnIcon=L},setInfoTip(L){V.infoTip=L},setInfoIcon(L){V.infoIcon=L},setCustomClassName(L){s.value=L}});const O=r.computed(()=>e.infoTip||V.infoTip),A=r.computed(()=>e.infoIcon||V.infoIcon),I=r.computed(()=>e.warnTip||V.warnTip),q=r.computed(()=>e.warnIcon||V.warnIcon),K=r.computed(()=>e.errorTip||V.errorTip),W=r.computed(()=>e.errorIcon||V.errorIcon),v=r.computed(()=>K.value?"error":I.value?"warn":O.value?"info":""),E=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?K.value:v.value==="warn"?I.value:v.value==="info"?O.value:""),H=r.computed(()=>v.value==="error"?W.value:v.value==="warn"?q.value:v.value==="info"?A.value:null),B=r.computed(()=>{let L={[`${i}__tip`]:!0,[`${i}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?L[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?L[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(L[`${e.infoClass}`]=!0),L}),j=r.computed(()=>{let L={};return x&&x.value==="top"||!w.value?L["padding-left"]="0px":y&&y.value&&(L["padding-left"]=ye(y.value)),L}),S=()=>r.h(H.value,{width:12,height:12}),M=r.computed(()=>t.slots.fixedTip),Y=r.computed(()=>({[`${i}__fixed-tip`]:!0})),U=r.ref();let Q="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([L,Z,z,X])=>{U.value&&(L&&!fe(Z)?Q?Ht.show(U.value,Z,{...X,id:Q,type:z},!0):Q=Ht.show(U.value,Z,{...X,type:z},!0):Ht.hide(Q))});let ee=null;const le=()=>{ee||!U.value||(ee=new IntersectionObserver(L=>{let Z=!1;for(let z of L)if(z.intersectionRatio>0){Z=!0,Z&&t.emit("appear",z);break}Z||t.emit("disappear")}),ee.observe(U.value))},ie=()=>{!ee||!U.value||(ee.unobserve(U.value),ee=null)};return r.watch(()=>ne(e.appearListen),L=>{L?le():ie()}),r.onMounted(()=>{ne(e.appearListen)&&le()}),r.onUnmounted(ie),{classes:u,styles:d,mainClasses:g,hasLabel:w,labelClasses:b,labelStyles:$,labelStringClasses:k,contentClasses:F,contentStyles:R,contentRef:U,hasTip:E,mTip:T,mIcon:H,renderIcon:S,tipClasses:B,tipStyles:j,hasFixedTip:M,fixedTipClasses:Y}}}),Wl=["prop"],Yl={key:0,class:"fox-item__tip--icon"},Ul={class:"fox-item__tip--text"};function Gl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",Yl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Ul,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Wl)}const ge=Oe(Kl,[["render",Gl]]);function Xl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=Le(),l=At();Bt(!1);const i=r.computed(()=>l&&a?qt(a,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=r.computed(()=>{const c={},f=l&&a?Lt(a,!1):null;if(i.value&&f)if(i.value.type==="grid"){const w=jt(f,i.value,o.span,o.offset);Object.assign(c,w)}else if(i.value.type==="flow"){const w=Mt(f,i.value,o.span,o.offset,o.width);Object.assign(c,w)}else return o.width&&(c.width=ye(o.width)),c;else o.width&&(c.width=ye(o.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Zl,create:Jl,scope:nf}=re("slot-item"),Vn=Jl(Xl(Zl));function Ql(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Le(),s=At();Bt(!1);const u=r.computed(()=>{const d={};if(s&&i){const c=qt(i,!1),f=Lt(i,!1);if(c.value&&f)if(c.value.type==="grid"){const w=jt(f,c.value,o.span,o.offset);Object.assign(d,w)}else if(c.value.type==="flow"){const w=Mt(f,c.value,o.span,o.offset,o.width);Object.assign(d,w)}else o.width&&(d.width=ye(o.width))}else o.width&&(d.width=ye(o.width));return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(o.divide)for(let w=0;w<f.length;w++){if(w>0){const x=r.h("div",{class:{[`${a}__divide`]:!0}});d.push(x)}d.push(f[w])}else Reflect.apply([].push,d,f)}const c={class:l.value,style:u.value};return r.h("div",c,d)}}}}const{componentName:ei,create:ti,scope:rf}=re("row-item"),On=ti(Ql(ei)),no={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 ni(e,t,o){return{props:{...he,...Te,...no},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0,[`${w}__disabled`]:l.value,[`${w}__readonly`]:i.value})),m=v=>{f.value=v,s("update:modelValue",v),s("input",v)},g=v=>{s("change",v)};let b=se(n,"hintText"),y=r.ref(!1);const $=v=>{let T=v.target.value;c.value=!0,fe(b.value)||(y.value=!0),s("focus",T,v)},k=v=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),s("blur",T,v)},F=()=>{s("clear","")},R=r.ref(!1);let V=null;const O=()=>{n.showTooltip&&R.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{R.value=!0},150))},A=()=>{V&&(clearTimeout(V),R.value=!1,V=null)},I=r.computed(()=>R.value||y.value),q=r.computed(()=>R.value?f.value:b.value),K=r.computed(()=>ft(n.unit)>0),W=r.ref();return be({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const E={...a.attrs,ref:W,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:g,onInput:m,onFocus:$,onBlur:k,onMouseover:O,onMouseleave:A},T={};a.slots.prepend&&(T.prepend=a.slots.prepend),a.slots.append&&(T.append=a.slots.append),a.slots.prefix&&(T.prefix=a.slots.prefix),a.slots.suffix?T.suffix=a.slots.suffix:K.value&&(T.suffix=()=>[n.unit]);const H=[],B=r.h(p.ElInput,E,T);H.push(B);const j={default:()=>H};a.slots.default&&(j.label=a.slots.default),a.slots.default&&(j.fixedTip=a.slots.fixedTip);const M={...Se(n,no),hintText:q.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,M,j)}}}}const{componentName:ri,create:oi,scope:ai}=re("input-item"),In=oi(ni(ri,ai,ge));function ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ro(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function li(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ii=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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(_e(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function si(){const e=r.getCurrentInstance();return new ii(e.proxy)}function oo(e,t,o){const n=ze(e,t),a=ze(e,o);if(n!==a)return!1;const l=bt(e,t),i=bt(e,o);return l===i}function ao(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){const s=ro(e,i);if(Array.isArray(s)&&s.length>0){const u=ao(e,l,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=ze(e,i)===l;else if(o==="item")u=oo(e,i,l);else{let d=bt(e,i);d==null&&(d=ze(e,i)),u=d===l}if(u){a.push(i);break}}}}),a}function ui(e){return{text:e,value:e}}const lo={modelValue:{type:[String,Object,Boolean,Number],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ci(e,t,o){return{props:{...he,...Te,...lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),w=r.computed(()=>f.value?f.value.map(X=>ze(n,X)).join(" "):""),x=(z,X,J,N=!0)=>{const D=ao(n,z,X,J);if(D===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],N&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let C=!0;if(D.length!==f.value.length)C=!1;else for(let P=0;P<D.length;P++){const _=D[P],G=f.value[P];if(!oo(n,_,G)){C=!1;break}}if(!C){f.value=D;let P=[],_=[],G=[];D.forEach(st=>{const Be=bt(n,st),St=ze(n,st);P.push(Be),G.push(St),n.valueType==="text"?_.push(St):n.valueType==="item"?_.push(st):_.push(Be)});let te,ae,me;n.multiple?(c.value=P,te=r.toRaw(_),ae=G,me=r.toRaw(D)):(c.value=P[0]??"",te=r.toRaw(_[0]??""),ae=G[0]??"",me=r.toRaw(D[0])),N&&(s("update:modelValue",te),s("change",te,me)),s("update:text",ae)}},m=r.ref(null),g=r.ref(null),b=r.computed(()=>g.value??m.value??[]),y=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,z=>ne(z)),$=si(),k=async(z,X)=>{if(z){const J=await $.load("select",z,X);if(J.length>0)if(typeof J[0]=="string"){let C=J.map(P=>ui(P));m.value=C}else m.value=J;else m.value=null}};r.watch([()=>n.source,()=>n.params],([z,X])=>{g.value=null,k(z,X)},{immediate:!y.value});let F=!1;const R=()=>{F||(F=!0,k(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([z,X])=>{x(X,n.valueType,z,!1)});let V=null,O=r.ref(!1);typeof n.remoteMethod=="function"&&(V=async z=>{if(z==null){g.value=null;return}O.value=!0;try{const X=await n.remoteMethod(z);X&&(g.value=X)}catch(X){g.value=null,console.error(X)}O.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async z=>{if(z==null){g.value=null;return}O.value=!0;try{const X=await n.filterMethod(z,m.value);X&&(g.value=X)}catch(X){g.value=null,console.error(X)}O.value=!1});const I=r.ref(!1),q=e,K=r.computed(()=>({[q]:!0})),W=z=>{n.allowCreate?(s("update:modelValue",z),s("change",z),s("update:text",z),c.value=z):x(z,"value",b.value,!0)};let v=se(n,"hintText"),E=r.ref(!1);const T=z=>{let J=z.target.value;I.value=!0,fe(v.value)||(E.value=!0),s("focus",J,z)},H=z=>{setTimeout(()=>{E.value&&(E.value=!1),I.value=!1},0);let J=z.target.value;n.maxLength&&J.length>Number(n.maxLength)&&(J=J.slice(0,Number(n.maxLength))),ee.value||s("blur",J,z)},B=()=>{s("clear","")},j=r.ref(!1);let S=null;const M=()=>{n.showTooltip&&j.value===!1&&(S&&clearTimeout(S),S=setTimeout(()=>{j.value=!0},150))},Y=()=>{S&&(clearTimeout(S),j.value=!1,S=null)},U=r.computed(()=>j.value||E.value),Q=r.computed(()=>j.value?w.value:v.value),ee=r.ref(!1),le=z=>{ee.value=z,s("visible-change",z),z||s("selected")},ie=z=>{s("remove-tag",z)},L=(z,X)=>{const J=[];return z.forEach((N,D)=>{const C=ro(n,N);if(Array.isArray(C)&&C.length>0){const P=L(C,X),_=ze(n,N),te={key:`${_}_${D}`,label:_};J.push(r.h(p.ElOptionGroup,te,{default:()=>P}))}else{const P=bt(n,N),_=ze(n,N),G=li(n,N),ae={key:`${P}_${D}`,label:_,disabled:G,value:P};if(typeof X=="function")J.push(r.h(p.ElOption,ae,{default:()=>X(N)}));else if(n.optionType==="item"){const me={class:{"fox-select-item__option-left":!0}},st=r.h("span",me,[P]),Be={class:{"fox-select-item__option-right":!0}},St=r.h("span",Be,[_]),Je=r.h("div",{class:{"fox-select-item__option":!0}},[st,St]);J.push(r.h(p.ElOption,ae,{default:()=>Je}))}else n.optionType==="value"?J.push(r.h(p.ElOption,ae,{default:()=>[P]})):J.push(r.h(p.ElOption,ae))}}),J},Z=r.ref();return be({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()}}),()=>{const X={...a.attrs,ref:Z,class:K.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:l.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:B,onChange:W,onFocus:T,onBlur:H,onVisibleChange:le,onRemoveTag:ie};typeof V=="function"&&(X["remote-method"]=V,X.loading=O.value),typeof A=="function"&&(X["filter-method"]=A,X.loading=O.value);const J={};a.slots.prefix&&(J.prefix=a.slots.prefix),a.slots.empty&&(J.empty=a.slots.empty),a.slots.options?J.default=a.slots.options:J.default=()=>L(b.value,a.slots.option);const N=[],D=r.h(p.ElSelect,X,J);N.push(D);const C={default:()=>N};a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip);const _={...Se(n,lo),hintText:Q.value,hintVisible:U.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:M,onMouseleave:Y};return y.value&&(_["appear-listen"]=!0,_.onAppear=R),r.h(o,_,C)}}}}const{componentName:fi,create:di,scope:hi}=re("select-item"),Rn=di(ci(fi,hi,ge));var Me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var io={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",d="day",c="week",f="month",w="quarter",x="year",m="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(v,E,T){var H=String(v);return!H||H.length>=E?v:""+Array(E+1-H.length).join(T)+v},F={s:k,z:function(v){var E=-v.utcOffset(),T=Math.abs(E),H=Math.floor(T/60),B=T%60;return(E<=0?"+":"-")+k(H,2,"0")+":"+k(B,2,"0")},m:function v(E,T){if(E.date()<T.date())return-v(T,E);var H=12*(T.year()-E.year())+(T.month()-E.month()),B=E.clone().add(H,f),j=T-B<0,S=E.clone().add(H+(j?-1:1),f);return+(-(H+(T-B)/(j?B-S:S-B))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:f,y:x,w:c,d,D:m,h:u,m:s,s:i,ms:l,Q:w}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},R="en",V={};V[R]=$;var O=function(v){return v instanceof K},A=function v(E,T,H){var B;if(!E)return R;if(typeof E=="string"){var j=E.toLowerCase();V[j]&&(B=j),T&&(V[j]=T,B=j);var S=E.split("-");if(!B&&S.length>1)return v(S[0])}else{var M=E.name;V[M]=E,B=M}return!H&&B&&(R=B),B||!H&&R},I=function(v,E){if(O(v))return v.clone();var T=typeof E=="object"?E:{};return T.date=v,T.args=arguments,new K(T)},q=F;q.l=A,q.i=O,q.w=function(v,E){return I(v,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var K=function(){function v(T){this.$L=A(T.locale,null,!0),this.parse(T)}var E=v.prototype;return E.parse=function(T){this.$d=function(H){var B=H.date,j=H.utc;if(B===null)return new Date(NaN);if(q.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var S=B.match(b);if(S){var M=S[2]-1||0,Y=(S[7]||"0").substring(0,3);return j?new Date(Date.UTC(S[1],M,S[3]||1,S[4]||0,S[5]||0,S[6]||0,Y)):new Date(S[1],M,S[3]||1,S[4]||0,S[5]||0,S[6]||0,Y)}}return new Date(B)}(T),this.$x=T.x||{},this.init()},E.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},E.$utils=function(){return q},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(T,H){var B=I(T);return this.startOf(H)<=B&&B<=this.endOf(H)},E.isAfter=function(T,H){return I(T)<this.startOf(H)},E.isBefore=function(T,H){return this.endOf(H)<I(T)},E.$g=function(T,H,B){return q.u(T)?this[H]:this.set(B,T)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(T,H){var B=this,j=!!q.u(H)||H,S=q.p(T),M=function(Z,z){var X=q.w(B.$u?Date.UTC(B.$y,z,Z):new Date(B.$y,z,Z),B);return j?X:X.endOf(d)},Y=function(Z,z){return q.w(B.toDate()[Z].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(z)),B)},U=this.$W,Q=this.$M,ee=this.$D,le="set"+(this.$u?"UTC":"");switch(S){case x:return j?M(1,0):M(31,11);case f:return j?M(1,Q):M(0,Q+1);case c:var ie=this.$locale().weekStart||0,L=(U<ie?U+7:U)-ie;return M(j?ee-L:ee+(6-L),Q);case d:case m:return Y(le+"Hours",0);case u:return Y(le+"Minutes",1);case s:return Y(le+"Seconds",2);case i:return Y(le+"Milliseconds",3);default:return this.clone()}},E.endOf=function(T){return this.startOf(T,!1)},E.$set=function(T,H){var B,j=q.p(T),S="set"+(this.$u?"UTC":""),M=(B={},B[d]=S+"Date",B[m]=S+"Date",B[f]=S+"Month",B[x]=S+"FullYear",B[u]=S+"Hours",B[s]=S+"Minutes",B[i]=S+"Seconds",B[l]=S+"Milliseconds",B)[j],Y=j===d?this.$D+(H-this.$W):H;if(j===f||j===x){var U=this.clone().set(m,1);U.$d[M](Y),U.init(),this.$d=U.set(m,Math.min(this.$D,U.daysInMonth())).$d}else M&&this.$d[M](Y);return this.init(),this},E.set=function(T,H){return this.clone().$set(T,H)},E.get=function(T){return this[q.p(T)]()},E.add=function(T,H){var B,j=this;T=Number(T);var S=q.p(H),M=function(Q){var ee=I(j);return q.w(ee.date(ee.date()+Math.round(Q*T)),j)};if(S===f)return this.set(f,this.$M+T);if(S===x)return this.set(x,this.$y+T);if(S===d)return M(1);if(S===c)return M(7);var Y=(B={},B[s]=n,B[u]=a,B[i]=o,B)[S]||1,U=this.$d.getTime()+T*Y;return q.w(U,this)},E.subtract=function(T,H){return this.add(-1*T,H)},E.format=function(T){var H=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var j=T||"YYYY-MM-DDTHH:mm:ssZ",S=q.z(this),M=this.$H,Y=this.$m,U=this.$M,Q=B.weekdays,ee=B.months,le=function(z,X,J,N){return z&&(z[X]||z(H,j))||J[X].slice(0,N)},ie=function(z){return q.s(M%12||12,z,"0")},L=B.meridiem||function(z,X,J){var N=z<12?"AM":"PM";return J?N.toLowerCase():N},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:q.s(U+1,2,"0"),MMM:le(B.monthsShort,U,ee,3),MMMM:le(ee,U),D:this.$D,DD:q.s(this.$D,2,"0"),d:String(this.$W),dd:le(B.weekdaysMin,this.$W,Q,2),ddd:le(B.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(M),HH:q.s(M,2,"0"),h:ie(1),hh:ie(2),a:L(M,Y,!0),A:L(M,Y,!1),m:String(Y),mm:q.s(Y,2,"0"),s:String(this.$s),ss:q.s(this.$s,2,"0"),SSS:q.s(this.$ms,3,"0"),Z:S};return j.replace(y,function(z,X){return X||Z[z]||S.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(T,H,B){var j,S=q.p(H),M=I(T),Y=(M.utcOffset()-this.utcOffset())*n,U=this-M,Q=q.m(this,M);return Q=(j={},j[x]=Q/12,j[f]=Q,j[w]=Q/3,j[c]=(U-Y)/6048e5,j[d]=(U-Y)/864e5,j[u]=U/a,j[s]=U/n,j[i]=U/o,j)[S]||U,B?Q:q.a(Q)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return V[this.$L]},E.locale=function(T,H){if(!T)return this.$L;var B=this.clone(),j=A(T,H,!0);return j&&(B.$L=j),B},E.clone=function(){return q.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},v}(),W=K.prototype;return I.prototype=W,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",d],["$M",f],["$y",x],["$D",m]].forEach(function(v){W[v[1]]=function(E){return this.$g(E,v[0],v[1])}}),I.extend=function(v,E){return v.$i||(v(E,K,I),v.$i=!0),I},I.locale=A,I.isDayjs=O,I.unix=function(v){return I(1e3*v)},I.en=V[R],I.Ls=V,I.p={},I})})(io);var gi=io.exports;const Ae=je(gi);var so={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,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,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(b){this[g]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),$=60*y[1]+(+y[2]||0);return $===0?0:y[0]==="+"?-$:$}(g)}],f=function(g){var b=s[g];return b&&(b.indexOf?b:b.s.concat(b.f))},w=function(g,b){var y,$=s.meridiem;if($){for(var k=1;k<=24;k+=1)if(g.indexOf($(k,0,b))>-1){y=k>12;break}}else y=g===(b?"pm":"PM");return y},x={A:[i,function(g){this.afternoon=w(g,!1)}],a:[i,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[a,d("day")],Do:[i,function(g){var b=s.ordinal,y=g.match(/\d+/);if(this.day=y[0],b)for(var $=1;$<=31;$+=1)b($).replace(/\[|\]/g,"")===g&&(this.day=$)}],M:[l,d("month")],MM:[a,d("month")],MMM:[i,function(g){var b=f("months"),y=(f("monthsShort")||b.map(function($){return $.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(g){var b=f("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function m(g){var b,y;b=g,y=s&&s.formats;for(var $=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,q,K){var W=K&&K.toUpperCase();return q||y[K]||o[K]||y[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,E,T){return E||T.slice(1)})})).match(n),k=$.length,F=0;F<k;F+=1){var R=$[F],V=x[R],O=V&&V[0],A=V&&V[1];$[F]=A?{regex:O,parser:A}:R.replace(/^\[|\]$/g,"")}return function(I){for(var q={},K=0,W=0;K<k;K+=1){var v=$[K];if(typeof v=="string")W+=v.length;else{var E=v.regex,T=v.parser,H=I.slice(W),B=E.exec(H)[0];T.call(q,B),I=I.replace(B,"")}}return function(j){var S=j.afternoon;if(S!==void 0){var M=j.hours;S?M<12&&(j.hours+=12):M===12&&(j.hours=0),delete j.afternoon}}(q),q}}return function(g,b,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var $=b.prototype,k=$.parse;$.parse=function(F){var R=F.date,V=F.utc,O=F.args;this.$u=V;var A=O[1];if(typeof A=="string"){var I=O[2]===!0,q=O[3]===!0,K=I||q,W=O[2];q&&(W=O[2]),s=this.$locale(),!I&&W&&(s=y.Ls[W]),this.$d=function(H,B,j){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*H);var S=m(B)(H),M=S.year,Y=S.month,U=S.day,Q=S.hours,ee=S.minutes,le=S.seconds,ie=S.milliseconds,L=S.zone,Z=new Date,z=U||(M||Y?1:Z.getDate()),X=M||Z.getFullYear(),J=0;M&&!Y||(J=Y>0?Y-1:Z.getMonth());var N=Q||0,D=ee||0,C=le||0,P=ie||0;return L?new Date(Date.UTC(X,J,z,N,D,C,P+60*L.offset*1e3)):j?new Date(Date.UTC(X,J,z,N,D,C,P)):new Date(X,J,z,N,D,C,P)}catch{return new Date("")}}(R,A,V),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),K&&R!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var v=A.length,E=1;E<=v;E+=1){O[1]=A[E-1];var T=y.apply(this,O);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}E===v&&(this.$d=new Date(""))}else k.call(this,F)}}})})(so);var mi=so.exports;const pi=je(mi);var uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){return function(o,n,a){var l=n.prototype,i=l.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},l.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(w){switch(w){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),w==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),w==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return w}});return i.bind(this)(f)}}})})(uo);var yi=uo.exports;const bi=je(yi);var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){return function(o,n,a){var l=n.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,w,x,m,g){var b=f.name?f:f.$locale(),y=i(b[w]),$=i(b[x]),k=y||$.map(function(R){return R.slice(0,m)});if(!g)return k;var F=b.weekStart;return k.map(function(R,V){return k[(V+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},d=function(f,w){return f.formats[w]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,b){return g||b.slice(1)})}(f.formats[w.toUpperCase()])},c=function(){var f=this;return{months:function(w){return w?w.format("MMMM"):s(f,"months")},monthsShort:function(w){return w?w.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(f,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(f.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(w){return d(f,w)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(f){return s(u(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(co);var wi=co.exports;const vi=je(wi);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){var o="week",n="year";return function(a,l,i){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(d),f=i(this).endOf(o);if(c.isBefore(f))return 1}var w=i(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),x=this.diff(w,o,!0);return x<0?i(this).startOf("week").week():Math.ceil(x)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(fo);var Si=fo.exports;const Ti=je(Si);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),i=this.year();return l===1&&a===11?i+1:a===0&&l>=52?i-1:i}}})})(ho);var $i=ho.exports;const xi=je($i);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?i:this.add(l-i,"day")}}})})(go);var Ci=go.exports;const Ei=je(Ci);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(mo);var Ni=mo.exports;const ki=je(Ni);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Me,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(po);var Vi=po.exports;const Oi=je(Vi);Ae.extend(vi),Ae.extend(bi),Ae.extend(pi),Ae.extend(Ti),Ae.extend(xi),Ae.extend(Ei),Ae.extend(ki),Ae.extend(Oi);const Ie={format(e,t){return Ae(e).format(t)},parser(e,t){return Ae(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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),a=this.getNumTwoBit(e.getDate());return[o,n,a].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 a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),i=a.getDate(),s=6-l;return n!==0&&(l=l==0?7:l,s=7-l),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),i=Math.round((a.valueOf()-l.valueOf())/864e5);let s=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let i=a.getDay();if(n===0){const u=l-i*864e5,d=l+(6-i)*864e5,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}else{i=i==0?7:i;const s=24*60*60*1e3,u=l-(i-1)*s,d=l+(7-i)*s,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ie.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ie.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i}},yo={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}},bo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Ii(e,t,o){return{props:{...he,...Te,...yo,...bo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=r.computed(()=>v.value&&Array.isArray(f.value)&&f.value.length==2?f.value[0]:f.value),x=r.computed(()=>v.value?"longTermKey":"normalKey"),m=j=>{if(v.value&&n.type==="daterange"){const S=[...f.value];S[0]=j,f.value=S}else f.value=j;s("update:modelValue",f.value),s("change",f.value)},g=r.computed(()=>v.value&&n.type==="daterange"?"date":n.type),b=e,y=r.computed(()=>({[`${b}__input`]:!0}));let $=se(n,"hintText"),k=r.ref(!1);const F=j=>{let M=j.target.value;c.value=!0,fe($.value)||(k.value=!0),s("focus",M,j)},R=j=>{setTimeout(()=>{k.value&&(k.value=!1),c.value=!1},0);let M=j.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,j)},V=()=>{s("clear","")},O=j=>{s("calendar-change",j)},A=(j,S,M)=>{s("panel-change",j,S,M)},I=j=>{s("visible-change",j)},q=Ee(r.computed(()=>n.longTermValue),"longTermText",Ve.Near),K=Ee(r.computed(()=>n.longTermValue),"longTermValue",Ve.Near);let W=null;const v=r.ref(ne(n.longTerm)),E=j=>{if(v.value=j,s("update:longTerm",j),j){if(W=f.value,n.type==="daterange"){const S=[];Array.isArray(K.value)?(S[0]=f.value?f.value[0]??K.value[0]:null,S[1]=K.value[1]??K.value[0]):(S[0]=f.value?f.value[0]??K.value:null,S[1]=v.value),S[0]||(S[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),S[1]||(S[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),f.value=S}else Array.isArray(K.value)?f.value=K.value[1]??K.value[0]:f.value=K.value,f.value||(f.value=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date);s("update:modelValue",f.value)}else{if(n.type==="daterange"){const S=[];S[0]=Array.isArray(f.value)?f.value[0]:f.value,Array.isArray(W)?S[1]=W[1]:S[1]=W,S[0]||(S[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),S[1]||(S[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),f.value=S}else f.value=W;s("update:modelValue",f.value)}},T=ne(n.isLongTerm);if(T){const j=()=>{if(v.value===!0){if(W=f.value,n.type==="daterange"){const S=[f.value[0]];Array.isArray(K.value)?S[1]=K.value[1]??K.value[0]:S[1]=v.value,S[0]||(S[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),S[1]||(S[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),f.value=S}else f.value=K.value;s("update:modelValue",f.value)}else Pe(K.value,f.value)&&(v.value=!0)};j(),r.watch([()=>n.longTerm],([S])=>{v.value!==S&&j()}),r.watch([()=>f.value],([S])=>{if(v.value!==!0&&n.type==="daterange"&&Array.isArray(S))try{let M=S[1];if(!M)return;typeof M!="string"&&n.valueFormat&&(M=Ie.format(M,n.valueFormat));let Y=Array.isArray(K.value)?K.value[1]:K.value;M===Y&&(v.value=!0)}catch(M){console.error(M)}},{immediate:!0})}const H=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),B=r.ref();return be({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const S={...a.attrs,key:x.value,type:g.value,ref:B,class:y.value,placeholder:d.placeholder.value,disabled:l.value,readonly:i.value,modelValue:w.value,valueFormat:n.valueFormat,"onUpdate:modelValue":m,onClear:V,onFocus:F,onBlur:R,onCalendarChange:O,onPanelChange:A,onVisibleChange:I},M={};a.slots["range-separator"]&&(M["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(M.default=a.slots.cell);const Y=[],U=r.h(p.ElDatePicker,S,M);Y.push(U);const Q={default:()=>Y};if(a.slots.default&&(Q.label=a.slots.default),a.slots.fixedTip&&(Q.fixedTip=a.slots.fixedTip),T){if(v.value){const L=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),Z=r.h("div",{class:["fox-date-item__long-text"]},[q.value]),z={class:H.value},X=r.h("div",z,{default:()=>[L,Z]});Y.push(X)}if(!i.value&&!l.value){const L={label:q.value,disabled:i.value||l.value,modelValue:v.value,"onUpdate:modelValue":E},Z=r.h(p.ElCheckbox,L),z=r.h("div",{class:{[`${b}__append`]:!0}},[Z]);Q.append=()=>z}}const le={...Se(n,yo,bo),class:{[`${b}__wrapper`]:!0,"has-append":T},hintText:$.value,hintVisible:k.value,prop:`${n.prop}_item`};return r.h(o,le,Q)}}}}const{componentName:Ri,create:Fi,scope:Di}=re("date-item"),Fn=Fi(Ii(Ri,Di,ge)),wo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ai(e,t,o){return{props:{...he,...Te,...wo},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),m=V=>{f.value=V,s("update:modelValue",V),s("change",V)};let g=se(n,"hintText"),b=r.ref(!1);const y=V=>{let A=V.target.value;c.value=!0,fe(g.value)||(b.value=!0),s("focus",A,V)},$=V=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let A=V.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),s("blur",A,V)},k=()=>{s("clear","")},F=V=>{s("visible-change",V)},R=r.ref();return be({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const O={...a.attrs,ref:R,class:x.value,placeholder:d.placeholder.value,disabled:l.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":m,onClear:k,onFocus:y,onBlur:$,onVisibleChange:F},A={},I=[],q=r.h(p.ElTimePicker,O,A);I.push(q);const K={default:()=>I};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const v={...Se(n,wo),hintText:g.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,v,K)}}}}const{componentName:Bi,create:qi,scope:Li}=re("time-item"),Dn=qi(Ai(Bi,Li,ge)),vo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...he,...Te,...vo},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),m=R=>{f.value=R,s("update:modelValue",R),s("change",R)};let g=se(n,"hintText"),b=r.ref(!1);const y=R=>{let O=R.target.value;c.value=!0,fe(g.value)||(b.value=!0),s("focus",O,R)},$=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let O=R.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,R)},k=()=>{s("clear","")},F=r.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const V={...a.attrs,ref:F,class:x.value,placeholder:d.placeholder.value,disabled:l.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":m,onClear:k,onFocus:y,onBlur:$},O={},A=[],I=r.h(p.ElTimeSelect,V,O);A.push(I);const q={default:()=>A};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const W={...Se(n,vo),hintText:g.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,W,q)}}}}const{componentName:ji,create:_i,scope:Pi}=re("time-select-item"),An=_i(Mi(ji,Pi,ge));function So(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function To(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=mr(`${e}`,`${t}`);return So(n)}else{let n=nn(`${e}`,pr(`${t}`),20);return So(n)}}function Hi(e,t=-1,o=!1,n=3,a=","){return xt(e,t,o,n,a)}function $o(e,t,o,n,a=!0){if(e=="")return"";if(e=yr(e),t=ve(t),t==1)return e;if(n)e=To(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ve(o)+2,"0"):e=nn(e,1,ve(o)));else{let l=-1*t;e=To(e,l)}return e}function xo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ne(t.minInclude),a=rn(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ne(t.maxInclude),a=rn(e,t.max);(n&&a==1||!n&&(a==0||a==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 zi(e,t,o){return{props:{...he,...Te,...Co},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(!1),d=se(n,"modelValue"),c=r.ref("");r.watch([()=>d.value,()=>n.rates,()=>n.precision],([v,E,T])=>{if(fe(v)){c.value="";return}const H=$o(v,E,T,!1);c.value!==H&&(c.value=H)},{immediate:!0});const f=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:w}=Re.useFoxI18n(t),x=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!fe(c.value)?v=Hi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=w(["placeholder",v]),v}),m=e,g=r.computed(()=>({[m]:!0,[`${m}__disabled`]:l.value,[`${m}__placeholder`]:c.value.length>0})),b=Ee(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const y=r.ref(""),$=r.computed(()=>{let v=y.value;return fe(v)&&(v=n.errorTip??""),v}),k=r.ref(""),F=r.ref(!1),R=(v,E)=>{if(v=`${v}`,fe(v)){c.value="",d.value="",E.forEach(T=>{s(T,"")}),ne(n.showTip)&&F.value&&(F.value=!1);return}if(v.length>=2){let T=v;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){r.triggerRef(c);return}}if(v!="-"){if(!Er(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&Nr(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&kr(v)>Number(n.decimalLength)){r.triggerRef(c);return}let T=xo(v,n);if(T.maxValid===!1){y.value=T.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}k.value=v,ne(n.showTip)&&(F.value=v.length>0),c.value=v,d.value=$o(v,n.rates,n.precision,!0),E.forEach(T=>{s(T,d.value)})},V=v=>{R(v,["update:modelValue","input"])},O=v=>{R(v,["update:modelValue","change"])},A=v=>{if(u.value=!0,ne(n.showTip)){let E=c.value;fe(E)&&(E=n.hintText),fe(E)||(k.value=E,F.value=!0)}y.value="",s("focus",d.value,v)},I=v=>{if(setTimeout(()=>{u.value=!1,ne(n.showTip)&&F.value===!0&&(F.value=!1)},0),!fe(c.value)){let E=xo(c.value,n);if(E.minValid===!1||E.maxValid===!1){y.value=E.message;return}}s("update:modelValue",d.value,v),s("blur",d.value,v)},q=()=>{s("clear","")},K=r.computed(()=>ft(n.unit)>0),W=r.ref();return be({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const E={...a.attrs,ref:W,class:g.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onInput:V,onChange:O,onFocus:A,onBlur:I},T={};a.slots.prepend&&(T.prepend=a.slots.prepend),a.slots.append&&(T.append=a.slots.append),a.slots.prefix&&(T.prefix=a.slots.prefix),a.slots.suffix?T.suffix=a.slots.suffix:K.value&&(T.suffix=()=>[n.unit]);const H=[],B=r.h(p.ElInput,E,T);H.push(B);const j={default:()=>H};a.slots.default&&(j.label=a.slots.default),a.slots.fixedTip&&(j.fixedTip=a.slots.fixedTip);const M={...Se(n,Co),errorTip:$.value,hintText:k.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,M,j)}}}}const{componentName:Ki,create:Wi,scope:Yi}=re("money-item"),Bn=Wi(zi(Ki,Yi,ge)),Eo={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 Ui(e,t,o){return{props:{...he,...Te,...Eo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0,[`${w}__append`]:V.value})),m=r.computed(()=>({[`${w}__unit`]:!0})),g=A=>{f.value=A,s("update:modelValue",A),s("input",A)},b=A=>{s("change",A)};let y=se(n,"hintText"),$=r.ref(!1);const k=A=>{let q=A.target.value;c.value=!0,fe(y.value)||($.value=!0),s("focus",q,A)},F=A=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let q=A.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),s("blur",q,A)},R=()=>{s("clear","")},V=r.computed(()=>ft(n.unit)>0),O=r.ref();return be({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const I={...a.attrs,ref:O,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onChange:b,onInput:g,onFocus:k,onBlur:F},q={},K=[],W=r.h(p.ElInputNumber,I,q);K.push(W);const v={default:()=>K};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const T={...Se(n,Eo),hintText:y.value,hintVisible:$.value,prop:`${n.prop}_item`};if(a.slots.append)v.append=a.slots.append;else if(V.value){const B={class:m.value},j=r.h("div",B,[n.unit]);v.append=()=>j}return r.h(o,T,v)}}}}const{componentName:Gi,create:Xi,scope:Zi}=re("input-number-item"),qn=Xi(Ui(Gi,Zi,ge));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ji(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=De(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_e(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function es(){const e=r.getCurrentInstance();return new Qi(e.proxy)}function Ln(e,t,o){const n=Ge(e,t),a=Ge(e,o);if(n!==a)return!1;const l=Xe(e,t),i=Xe(e,o);return l===i}function No(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let i=0;Array.isArray(l)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=No(e,s,o,n);a.push(u)}else{let u=!1;for(let d of l){if(o==="text")u=Ge(e,d)===s;else if(o==="item")u=Ln(e,d,s);else{let c=Xe(e,d);c==null&&(c=Ge(e,d)),u=c===s}if(u){a.push(d),l=Ji(e,d);break}}if(!u)break}}return a}function ts(e){return{text:e,value:e}}const ko={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1}};function ns(e,t,o){return{props:{...he,...Te,...ko},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),w=r.computed(()=>f.value?f.value.map(Z=>Ge(n,Z)).join(" "):""),x=(L,Z,z,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===L)return;c.value=L;const D=r.toRaw(L);if(X){const C=ie?.value.getCheckedNodes();if(C)if(n.multiple){const P=[];C.forEach(_=>{const te=(_.pathNodes??[]).map(ae=>ae.data);P.push(te)}),s("update:pathNodes",P)}else{const _=(C[0]?.pathNodes??[]).map(G=>G.data);s("update:pathNodes",_)}s("update:modelValue",D),s("change",D)}}const J=No(n,L,Z,z);if(J===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,X&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let N=!0;if(J.length!==f.value.length)N=!1;else for(let D=0;D<J.length;D++){const C=J[D],P=f.value[D];if(Array.isArray(C)){if(!Array.isArray(P)||C.length!==P.length)N=!1;else for(let _=0;_<C.length;_++)if(!Ln(n,C[_],P[_])){N=!1;break}}else Ln(n,C,P)||(N=!1);if(!N)break}if(!N){f.value=J;let D=[],C=[];J.forEach(_=>{if(Array.isArray(_)){let G=[],te=[];for(let ae of _)G.push(Xe(n,ae)),n.valueType==="text"?te.push(Ge(n,ae)):n.valueType==="item"?te.push(ae):te.push(Xe(n,ae));D.push(G),C.push(te)}else D.push(Xe(n,_)),n.valueType==="text"?C.push(Ge(n,_)):n.valueType==="item"?C.push(_):C.push(Xe(n,_))}),c.value=D;const P=r.toRaw(C);X&&(s("update:pathNodes",J),s("update:modelValue",P),s("change",P))}},m=r.ref([]),g=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,L=>ne(L)),b=es(),y=async(L,Z)=>{if(L){const z=await b.load("cascader",L,Z);if(z.length>0)if(typeof z[0]=="string"){let N=z.map(D=>ts(D));m.value=N}else m.value=z}};r.watch([()=>n.source,()=>n.params],async([L,Z])=>{y(L,Z)},{immediate:!(g.value||n.lazy)});let $=!1;const k=()=>{$||($=!0,y(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([L,Z])=>{x(Z,n.valueType,L,!1)}),n.lazy&&x(n.modelValue,"value",[],!1);let F=null,R=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async L=>{if(L!=null){R.value=!0;try{const Z=await n.remoteMethod(L);m.value=Z}catch(Z){console.error(Z)}R.value=!1}});const V=r.ref(!1),O=e,A=r.computed(()=>({[O]:!0})),I=r.computed(()=>{let L={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(L.multiple=!0),n.props&&Object.assign(L,n.props),n.lazy&&(L.lazy=!0,L.lazyLoad=async(Z,z)=>{const X=await b.load("cascader",n.source,Z,!0);z(X)}),L}),q=L=>{n.allowCreate?(s("update:modelValue",L),s("change",L),c.value=L):x(L,"value",m.value,!0)};let K=se(n,"hintText"),W=r.ref(!1);const v=L=>{let z=L.target.value;V.value=!0,fe(K.value)||(W.value=!0),s("focus",z,L)},E=L=>{setTimeout(()=>{W.value&&(W.value=!1),V.value=!1},0);let z=L.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),U.value||s("blur",z,L)},T=()=>{s("clear","")},H=r.ref(!1);let B=null;const j=()=>{n.showTooltip&&H.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{H.value=!0},150))},S=()=>{B&&(clearTimeout(B),H.value=!1,B=null)},M=r.computed(()=>H.value||W.value),Y=r.computed(()=>H.value?w.value:K.value),U=r.ref(!1),Q=L=>{U.value=L,s("visible-change",L),L||s("selected")},ee=L=>{s("remove-tag",L)},le=L=>{s("expand-change",L)},ie=r.ref();return be({focus:()=>{ie?.value.focus()},blur:()=>{ie?.value.blur()},getCheckedNodes:()=>ie?.value.getCheckedNodes()}),()=>{const Z={...a.attrs,ref:ie,class:A.value,props:I.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:l.value||i.value,options:m.value,modelValue:c.value,onClear:T,onChange:q,onFocus:v,onBlur:E,onVisibleChange:Q,onRemoveTag:ee,expandChange:le};typeof F=="function"&&(Z["remote-method"]=F,Z.loading=R.value);const z={};a.slots.option&&(z.default=a.slots.option),a.slots.empty&&(z.empty=a.slots.empty);const X=[],J=r.h(p.ElCascader,Z,z);X.push(J);const N={default:()=>X};a.slots.default&&(N.label=a.slots.default),a.slots.fixedTip&&(N.fixedTip=a.slots.fixedTip);const C={...Se(n,ko),hintText:Y.value,hintVisible:M.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:j,onMouseleave:S};return g.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=k),r.h(o,C,N)}}}}const{componentName:rs,create:os,scope:as}=re("cascader-item"),Mn=os(ns(rs,as,ge)),Vo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ls(e,t,o){return{props:{...he,...Te,...Vo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),m=O=>{f.value=O,s("update:modelValue",O),s("input",O)},g=O=>{s("change",O)},b=O=>{s("select",O)};let y=se(n,"hintText"),$=r.ref(!1);const k=O=>{let I=O.target.value;c.value=!0,fe(y.value)||($.value=!0),s("focus",I,O)},F=O=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let I=O.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,O)},R=()=>{s("clear","")},V=r.ref();return be({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const A={...a.attrs,ref:V,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,onClear:R,onChange:g,onInput:m,onFocus:k,onBlur:F,onSelect:b},I={};a.slots.prepend&&(I.prepend=a.slots.prepend),a.slots.append&&(I.append=a.slots.append),a.slots.prefix&&(I.prefix=a.slots.prefix),a.slots.suffix&&(I.suffix=a.slots.suffix),a.slots.option&&(I.default=a.slots.option);const q=[],K=r.h(p.ElAutocomplete,A,I);q.push(K);const W={default:()=>q};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const E={...Se(n,Vo),hintText:y.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,E,W)}}}}const{componentName:is,create:ss,scope:us}=re("autocomplete-item"),jn=ss(ls(is,us,ge));function cs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=t;for(let d=0;u&&d<l.length;d++){let c=l[d],f=u.find(w=>w[n]===c);if(!f)break;i.push(f[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<l.length;u++){let d=t[u],c=l[u];const f=d.find(w=>w[n]===c);if(!f)break;i.push(f[o])}else{let u=t;for(let d=0;u&&d<l.length;d++){let c=l[d],f=u.find(w=>w[n]===c);if(!f)break;i.push(f[o]),u=f[a]}}return i}let fs=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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(_e(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ds(){const e=r.getCurrentInstance();return new fs(e.proxy)}const Oo={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 hs(e,t){return{props:{...Oo},setup(o,{attrs:n,slots:a}){const l=ds(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([d,c])=>{i.value=await l.load(o.sourceType,d,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=cs(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,d,{default:()=>s.value}):r.h(u,d,s.value)}}}}const{componentName:of,create:gs,scope:af}=re("mapping"),wt=gs(hs());function ms(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=l.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=l.substring(0,s);n=n[f][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function ps(e,t){return{props:{...Oo},setup(o,{attrs:n,slots:a}){return()=>{const l={default:i=>{const s=ms(i.row,i.column.property);return a.default?r.h(wt,{...o,modelValue:s},{default:a.default}):r.h(wt,{...o,modelValue:s})}};return r.h(p.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:ys,scope:sf}=re("table-mapping-column"),_n=ys(ps()),bs=Symbol.for("TableStateKey");function Io(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=l.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=l.substring(0,s);n=n[f][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function ws(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(bs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=Io(s.row,s.column.property),d=l?Io(l,s.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},w=r.h("span",f,[r.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":c}};return r.h("label",x,[w])}};return r.h(p.ElTableColumn,{...n},i)}}}}const{componentName:uf,create:vs,scope:cf}=re("table-radio-column"),Pn=vs(ws()),Ss={},Ts={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"},$s=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function xs(e,t){return r.openBlock(),r.createElementBlock("svg",Ts,$s)}const Cs=Oe(Ss,[["render",xs]]),{componentName:df,create:Es,scope:hf}=re("table-setting"),Ns={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:"不固定"}},ks=Es({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Cs,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Ns},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),i=r.computed(()=>a.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),s=r.computed(()=>a.value.filter(S=>!(S.label===""||S.type||S.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||i.value.length>0)&&s.value.length>0),d=r.computed(()=>l.value.length>0),c=r.computed(()=>i.value.length>0),f=S=>S.length>1,w=S=>{const M=[];a.value=S.map((U,Q)=>(!(U.label===""||U.type)&&U.visible!==!1&&M.push(U.prop),{...U,sortIndex:Q})),s.value.length+l.value.length+i.value.length===M.length?$.value=!0:M.length>0&&(k.value=!0),V.value=M},x=S=>S?S.type?S.type:S.label?S.prop:"":"",m=(S,M)=>{if(S.length!==M.length)return!1;const Y=S.map(U=>x(U));for(let U of M){const Q=x(U);if(Y.indexOf(Q)===-1)return!1}return!0},g=S=>{if(!S){const M=e.tableRef.getColumnSetting(),Y=M.srcColumnPropertyList;n=Y.map((U,Q)=>({...U,sortIndex:Q})),S=M.columnPropertyList,S&&S.length>0&&m(Y,S)||(S=Y)}w(S)},b=()=>{e.tableRef.setColumnSetting(a.value)},y=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=r.ref(!1),k=r.ref(!1),F=S=>{const M=[];a.value.forEach(U=>{S&&!(U.label===""||U.type)&&M.push(U.prop),U.visible=S}),$.value=!1,k.value=!1,s.value.length+l.value.length+i.value.length===M.length?$.value=!0:M.length>0&&(k.value=!0),V.value=M,b()},R=()=>{g(n),b()},V=r.ref([]),O=S=>{a.value.forEach(Y=>{if(Y.label===""||Y.type)return;const U=S.indexOf(Y.prop)!==-1;Y.visible=U}),$.value=!1,k.value=!1;const M=s.value.length+l.value.length+i.value.length;S.length===M?$.value=!0:S.length>0&&(k.value=!0),b()},A=()=>{g()};r.onMounted(()=>{setTimeout(()=>{g()},50)});const I={currentRow:null,index:null,roleType:null},q=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,q(S)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:c,isDraggble:f,isCheckAll:$,isIndeterminate:k,handleCheckAllChange:F,handleReset:R,checkedValue:V,handleCheckChange:O,onShow:A,onDragStart:S=>{const M=S.currentTarget;M&&M.dataset&&(I.roleType=M.dataset.roleType,I.index=M.dataset.index)},onDragEnd:S=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},onDragOver:S=>{const M=S.currentTarget;S.relatedTarget;const Y=q(M);if(!Y)return;const U=Y.dataset&&Y.dataset.roleType;I.roleType===U&&(S.preventDefault(),I.currentRow&&I.currentRow!==Y&&I.currentRow.classList.remove("is-dragover"),Y.classList.add("is-dragover"),I.currentRow=Y)},onDragLeave:S=>{S.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},onDrop:S=>{const M=S.currentTarget,Y=q(M);if(!Y)return;const U=Y.dataset&&Y.dataset.roleType;if(I.roleType!==U)return;S.preventDefault();const Q=Number(I.index),ee=Number(Y.dataset.index);if(Q!==ee){if(Q<ee){const le=a.value[Q];a.value.splice(Q,1),a.value.splice(ee,0,le)}else{const le=a.value[Q];a.value.splice(Q,1),a.value.splice(ee+1,0,le)}w(a.value),b()}},toLeftFixed:S=>{const M=a.value[S];M.fixed="left",b()},toRightFixed:S=>{const M=a.value[S];M.fixed="right",b()},toUnFixed:S=>{const M=a.value[S];M.fixed=void 0,b()},checkboxLabelStyle:y}}}),Vs={class:"fox-table-setting"},Os={class:"fox-table-setting__header"},Is={class:"fox-table-setting__body"},Rs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Fs={key:0,class:"fox-table-setting__body-title"},Ds=["data-index","draggable"],As={class:"tools-item"},Bs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ls=["data-index","draggable"],Ms={class:"tools-item"},js={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"};function zs(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),d=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),f=r.resolveComponent("fox-tooltip"),w=r.resolveComponent("Download"),x=r.resolveComponent("fox-checkbox"),m=r.resolveComponent("FoxCheckboxGroup"),g=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(g,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Vs,[r.createElementVNode("div",Os,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Is,[r.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Rs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Fs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[2]||(t[2]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[3]||(t[3]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[4]||(t[4]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[5]||(t[5]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",As,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toUnFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ds))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Bs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",qs,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[7]||(t[7]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[8]||(t[8]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[9]||(t[9]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[10]||(t[10]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ms,[r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ls))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[12]||(t[12]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[13]||(t[13]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[14]||(t[14]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[15]||(t[15]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(x,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Hs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toUnFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const zt=Oe(ks,[["render",zs]]);let Ks=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,i,s){if(Array.isArray(o)){let d=(n-1)*a,c=d+a;c>o.length&&(c=o.length);const f=o.slice(d,c);return{totalSize:o.length,page:f}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,i,s]);const u=De(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(_e(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,i,s]))}};function Ws(){const e=r.getCurrentInstance();return new Ks(e.proxy)}class Ys{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=De(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=De(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=De(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Us(){const e=r.getCurrentInstance();return new Ys(e.proxy)}const Gs=Symbol.for("TableStateKey");function Xs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=l.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=l.substring(0,s);n=n[f][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function Hn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],i=Xs(n,a);if(l!==i)return!1}return!0})}const Ro={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Fo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},zn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Zs(e,t,o){return{inheritAttrs:!1,props:{...he,...Te,...Ro,...Fo,...zn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Re.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...C){return k.value}}},n.prop??a.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),d=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),f=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),w=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,C=>{w.value=C});const x=C=>{w.value=C,i("page-index-change",C)},m=r.ref(n.pageSize);r.watch(()=>n.pageSize,C=>{m.value=C});const g=C=>{m.value=C,i("page-size-change",C)},b=r.shallowRef({}),y=r.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),$=r.ref(0),k=r.ref(),F=Ws();let R=!0;const V=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:ne(n.autoLoad),O=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,C=>ne(C)),A=async(C,P,_,G)=>{try{const te=await F.load("table",C,P,_,G,R,l.value);$.value=te.totalSize,k.value=te.page}catch(te){console.error("[FoxUI] Load Table Data Fail",te),$.value=0,k.value=[]}R=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([w,m],([C,P],[_,G])=>{P!==G&&(w.value=1,C=1),A(n.data,C,P,y.value)}),r.watch([()=>n.data,y],([C,P],[_,G])=>{V()&&(C!==_&&(R=!0),!(!Array.isArray(C)&&Pe(C,_)&&Pe(P,G))&&A(C,w.value,m.value,P))},{deep:!0});const I=(C={},P=!1)=>new Promise(_=>{b.value=r.toRaw(C??{}),r.triggerRef(b),P||(w.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,w.value,m.value,y.value),_()})}),q=()=>{$.value=0,k.value=[]};let K=!1;const W=()=>{K||(K=!0,I())};V()&&!O.value&&I();const v=r.ref(null);r.provide(Gs,{currentRow:v});const E=(C,P)=>{v.value=C,i("current-change",C,P)},T=(C,P,_)=>{i("row-click",C,P,_),ne(n.rowClickSelectable)===!0&&D?.value.toggleRowSelection(C)},H=[],B=(C,P)=>{if(i("expand-change",C,P),ne(n.uniqueExpansion))if(Array.isArray(P)&&P.length==0){const _=H.length;H.splice(0,_)}else{H.forEach(G=>{G!==C&&D?.value.toggleRowExpansion(G,!1)});const _=H.length;H.splice(0,_,C)}},j=a.attrs.id??n.prop??a.attrs.name,S=Us(),M=r.ref([]);let Y=[];const U=()=>({srcColumnPropertyList:Y.map(P=>({...P})),columnPropertyList:M.value}),Q=C=>{M.value=[...C],le()},ee=async()=>{const C=await S.load(j);C&&(M.value=C)},le=()=>{S.save(j,M.value)},ie=()=>{S.remove(j)};ee();const L=C=>C?C.type?C.type:C.label?C.prop:"":"",Z=r.computed(()=>{if(typeof a.slots.default=="function"){const C=a.slots.default(),P=new Map;if(Y=[],C.forEach(_=>{const G=_;if(!G.props)return;const te=L(G.props);P.set(te,_);const ae={label:"",prop:""};Object.assign(ae,G.props),Y.push(ae)}),M.value.length===Y.length){const _=[];for(let G of M.value){const te=L(G),ae=P.get(te);if(!ae)return C;if(G.visible===!1)continue;const me=ae;me.props.fixed=G.fixed,_.push(me)}return _}return C}return[]}),z=r.shallowRef(new Map),X=({column:C,rowIndex:P})=>{const _=`${P}_${C.property}`;return z.value.get(_)??""},J=C=>typeof C=="function"?P=>{const _=[];let G=X(P);return G&&_.push(G),G=C(P),G&&_.push(G),_.length===0?"":_.join(" ")}:X,N=(C,P,_)=>{const G=`${C}_${P}`;_?z.value.set(G,_):z.value.delete(G),r.triggerRef(z)},D=r.ref();return be({clearSelection:()=>D?.value.clearSelection(),getSelectionRows:()=>D?.value.getSelectionRows(),toggleRowSelection:(C,P)=>{D?.value.toggleRowSelection(C,P)},toggleRowSelectionByProp:(C,P)=>{if(!k.value)return;const _=Hn(k.value,C);_.length!==0&&_.forEach(G=>{D?.value.toggleRowSelection(G,P)})},toggleAllSelection:()=>{D?.value.toggleAllSelection()},toggleRowExpansion:(C,P)=>{D?.value.toggleRowExpansion(C,P)},toggleRowExpansionByProp:(C,P)=>{if(!k.value)return;const _=Hn(k.value,C);_.length!==0&&_.forEach(G=>{D?.value.toggleRowExpansion(G,P)})},setCurrentRow:C=>{D?.value.setCurrentRow(C)},setCurrentRowByProp:C=>{if(!k.value)return;const P=Hn(k.value,C);P.length!==0&&D?.value.setCurrentRow(P[0])},getCurrentRow:()=>v.value,clearSort:()=>{D?.value.clearSort()},clearFilter:C=>{D?.value.clearFilter(C)},doLayout:()=>{D?.value.doLayout()},sort:(C,P)=>{D?.value.sort(C,P)},scrollTo:(C,P)=>{D?.value.scrollTo(C,P)},setScrollTop:C=>{D?.value.setScrollTop(C)},setScrollLeft:C=>{D?.value.setScrollLeft(C)},loadData:I,clearData:q,getData(){return k.value},getTotalSize(){return $.value},getPageIndex(){return w.value},getPageSize(){return m.value},getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:ie,setCellClassName:N}),()=>{const P={...a.attrs,onCurrentChange:E,onRowClick:T,onExpandChange:B,data:k.value,ref:D,class:u.value,"cell-class-name":J(n.cellClassName)},_={};a.slots.default&&(_.default=()=>Z.value),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const G=[],te=r.h(p.ElTable,P,_);G.push(te);let ae=null;if(typeof a.slots.pagination=="function")ae=a.slots.pagination();else if(n.showPagination){const Je={class:f.value,total:$.value,pageSize:m.value,"onUpdate:pageSize":g,pageSizes:n.pageSizes,currentPage:w.value,"onUpdate:currentPage":x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ae=r.h(p.ElPagination,Je)}if(n.showSetting){const Je=[];ae&&Je.push(ae);const Uc=r.h(p.ElIcon,{class:d.value},{default:()=>r.h(Ne.Setting)}),Gc=Or(n,zn),Xc=r.h(zt,{...Gc,tableRef:{getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:ie}},{default:()=>Uc});Je.push(Xc);const Zc=r.h("div",{class:c.value},Je);G.push(Zc)}else ae&&G.push(ae);const me={default:()=>G},Be={...Se(n,Ro,Fo,zn),prop:`${n.prop}_item`};return Be.contentClass=`${s}__wrap`,Be.errorMarkClass="is-table-error",O.value&&V()&&(Be["appear-listen"]=!0,Be.onAppear=W),r.h(o,Be,me)}}}}const{componentName:Js,create:Qs,scope:eu}=re("table-item"),Kn=Qs(Zs(Js,eu,ge));function ot(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 tu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(_e(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ru(){const e=r.getCurrentInstance();return new nu(e.proxy)}function Do(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ot(e,t),a=ot(e,o);if(n!==a)return!1;const l=vt(e,t),i=vt(e,o);return l===i}function ou(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let i=!1;if(o==="text")i=ot(e,l)===t;else if(o==="item")i=Do(e,l,t);else{let s=vt(e,l);s==null&&(s=ot(e,l)),i=s===t}if(i){a=l;break}}return a}function au(e){return{text:e,value:e}}function lu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Ao={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function iu(e,t,o){return{inheritAttrs:!0,props:{...he,...Te,...Ao},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(null),d=r.ref(null),c=(O,A,I,q=!0)=>{const K=ou(n,O,A,I);if(K===null){if(d.value===null)return;d.value=null,u.value=null,q&&(s("update:modelValue",null),s("change",null));return}if(!Do(n,K,d.value)){u.value=O;const v=r.toRaw(K);d.value=v;let E=null;n.valueType==="text"?E=ot(n,v):n.valueType==="item"?E=v:E=vt(n,v),q&&(s("update:modelValue",E),s("change",E))}},f=r.ref([]),w=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,O=>ne(O)),x=ru(),m=async(O,A)=>{if(O){const I=await x.load("radio",O,A);if(I.length>0)if(typeof I[0]=="string"){let W=I.map(v=>au(v));f.value=W}else f.value=I}};r.watch([()=>n.source,()=>n.params],async([O,A])=>{m(O,A)},{immediate:!w.value});let g=!1;const b=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([O,A])=>{c(A,n.valueType,O,!1)});const y=e,$=r.computed(()=>({[y]:!0,[`is-${n.direction}`]:!0})),k=O=>{c(O,"value",f.value,!0)};let F=se(n,"hintText"),R=se(n,"hintVisible");const V=(O,A)=>{const I=[];return O.forEach((q,K)=>{const W=vt(n,q),v=ot(n,q);let E=tu(n,q);l.value===!0&&(E=l.value),i.value===!0&&(E=i.value);const T=lu(n,q,K)??{},H=`${W}_${K}`,B={...T,key:H,label:W,size:n.size,border:ne(n.border)};E&&(B.disabled=E),n.itemType==="button"?I.push(r.h(p.ElRadioButton,B,{default:()=>[v]})):typeof A=="function"?I.push(r.h(p.ElRadio,B,{default:()=>A(q)})):I.push(r.h(p.ElRadio,B,{default:()=>[v]}))}),I};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:k},I=[],q={};a.slots.options?q.default=a.slots.options:q.default=()=>V(f.value,a.slots.text);const K=r.h(p.ElRadioGroup,A,q);I.push(K);const W={default:()=>I};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const E={...Se(n,Ao),hintText:F.value,hintVisible:R.value,prop:`${n.prop??a.attrs.name}_item`};return w.value&&(E["appear-listen"]=!0,E.onAppear=b),r.h(o,E,W)}}}}const{componentName:su,create:uu,scope:cu}=re("radio-item"),Wn=uu(iu(su,cu,ge));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function lt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function fu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class du{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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(_e(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function hu(){const e=r.getCurrentInstance();return new du(e.proxy)}function Bo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=at(e,t),a=at(e,o);if(n!==a)return!1;const l=lt(e,t),i=lt(e,o);return l===i}function gu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){let s=!1;if(o==="text")s=at(e,i)===l;else if(o==="item")s=Bo(e,i,l);else{let u=lt(e,i);u==null&&(u=at(e,i)),s=u===l}if(s){a.push(i);break}}}),a}function mu(e){return{text:e,value:e}}function pu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const qo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function yu(e,t,o){return{inheritAttrs:!0,props:{...he,...Te,...qo},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref([]),d=r.ref([]),c=(O,A,I,q=!0)=>{const K=gu(n,O,A,I);if(K===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],q&&(s("update:modelValue",[]),s("change",[]));return}let W=!0;if(K.length!==d.value.length)W=!1;else for(let v=0;v<K.length;v++){const E=K[v],T=d.value[v];if(!Bo(n,E,T)){W=!1;break}}if(!W){d.value=K;let v=[],E=[];K.forEach(H=>{v.push(lt(n,H)),n.valueType==="text"?E.push(at(n,H)):n.valueType==="item"?E.push(H):E.push(lt(n,H))}),u.value=v;const T=r.toRaw(E);q&&(s("update:modelValue",T),s("change",T))}},f=r.ref([]),w=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,O=>ne(O)),x=hu(),m=async(O,A)=>{if(O){const I=await x.load("checkbox",O,A);if(I.length>0)if(typeof I[0]=="string"){let W=I.map(v=>mu(v));f.value=W}else f.value=I}};r.watch([()=>n.source,()=>n.params],async([O,A])=>{m(O,A)},{immediate:!w.value});let g=!1;const b=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([O,A])=>{c(A,n.valueType,O,!1)});const y=e,$=r.computed(()=>({[y]:!0,[`is-${n.direction}`]:!0})),k=O=>{c(O,"value",f.value,!0)};let F=se(n,"hintText"),R=se(n,"hintVisible");const V=(O,A)=>{const I=[];return O.forEach((q,K)=>{const W=lt(n,q),v=at(n,q);let E=fu(n,q);l.value===!0&&(E=l.value),i.value===!0&&(E=i.value);const T=pu(n,q,K)??{},H=`${W}_${K}`,B={...T,key:H,class:n.itemClass,label:W,size:n.size,border:ne(n.border)};E&&(B.disabled=E),n.itemType==="button"?I.push(r.h(p.ElCheckboxButton,B,{default:()=>[v]})):typeof A=="function"?I.push(r.h(p.ElCheckbox,B,{default:()=>A(q)})):I.push(r.h(p.ElCheckbox,B,{default:()=>[v]}))}),I};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:k},I=[],q={};a.slots.options?q.default=a.slots.options:q.default=()=>V(f.value,a.slots.text);const K=r.h(p.ElCheckboxGroup,A,q);I.push(K);const W={default:()=>I};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const E={...Se(n,qo),hintText:F.value,hintVisible:R.value,prop:`${n.prop??a.attrs.name}_item`};return w.value&&(E["appear-listen"]=!0,E.onAppear=b),r.h(o,E,W)}}}}const{componentName:bu,create:wu,scope:vu}=re("checkbox-item"),Yn=wu(yu(bu,vu,ge)),Lo={modelValue:{type:[Number,String],required:!1}};function Su(e,t,o){return{props:{...he,...Te,...Lo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue",g=>ve(g)),d=e,c=r.computed(()=>({[d]:!0})),f=g=>{s("update:modelValue",g),s("change",g)};let w=se(n,"hintText"),x=r.ref(!1);const m=r.ref();return be({}),()=>{const b={...a.attrs,ref:m,class:c.value,readonly:i.value||l.value,modelValue:u.value,onChange:f},y={},$=[],k=r.h(p.ElRate,b,y);$.push(k);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const V={...Se(n,Lo),hintText:w.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,V,F)}}}}const{componentName:Tu,create:$u,scope:xu}=re("rate-item"),Un=$u(Su(Tu,xu,ge)),Mo={modelValue:{type:[Boolean,String,Number],required:!1}};function Cu(e,t,o){return{props:{...he,...Te,...Mo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue"),d=e,c=r.computed(()=>({[d]:!0})),f=g=>{s("update:modelValue",g),s("change",g)};let w=se(n,"hintText"),x=se(n,"hintVisible");const m=r.ref();return be({}),()=>{const b={...a.attrs,ref:m,class:c.value,readonly:i.value,disabled:l.value,modelValue:u.value,onChange:f},y={},$=[],k=r.h(p.ElSwitch,b,y);$.push(k);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const V={...Se(n,Mo),hintText:w.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,V,F)}}}}const{componentName:Eu,create:Nu,scope:ku}=re("switch-item"),Gn=Nu(Cu(Eu,ku,ge)),jo={modelValue:{type:[String,Number,Boolean],required:!1}};function Vu(e,t,o){return{props:{...he,...Te,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),d=se(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),w=R=>{u("update:modelValue",R),u("change",R)};let x=se(n,"hintText"),m=r.ref(!1);const g=R=>{let O=R.target.value;s.value=!0,fe(x.value)||(m.value=!0),u("focus",O,R)},b=R=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let O=R.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),$.value||u("blur",O,R)},y=()=>{u("clear","")},$=r.ref(!1),k=R=>{$.value=R,u("visible-change",R),R||u("selected")},F=r.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const V={...a.attrs,ref:F,class:f.value,disabled:l.value||i.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:y,onFocus:g,onBlur:b,onVisibleChange:k},O={};a.slots.option&&(O.default=a.slots.option);const A=[],I=r.h(p.ElTreeSelect,V,O);A.push(I);const q={default:()=>A};a.slots.default&&(q.label=a.slots.default),a.slots.fixedTip&&(q.fixedTip=a.slots.fixedTip);const W={...Se(n,jo),hintText:x.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(o,W,q)}}}}const{componentName:Ou,create:Iu,scope:Ru}=re("tree-select-item"),Xn=Iu(Vu(Ou,Ru,ge)),Fu=Symbol.for("InnerPageScopeKey"),Du=Symbol.for("PageWrapperKey");function Au(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){r.provide(Fu,!0);const a={};r.provide(Du,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return r.h(p.ElDialog,d,c)}}}}const{componentName:gf,create:Bu,scope:mf}=re("dialog-item"),Zn=Bu(Au());function qu(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 a=e,l=r.computed(()=>({[a]:!0})),i=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),d=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const g={class:i.value,style:s.value};c=r.h(o.icon??"div",g)}const f={class:u.value,style:d.value},w=n.default?n.default():[],x=r.h("div",f,w),m={class:l.value};return o.textPosition==="right"?r.h("div",m,[c,x]):r.h("div",m,[x,c])}}}}const{componentName:Lu,create:Mu,scope:pf}=re("indicator"),Jn=Mu(qu(Lu));function ju(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 a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const _u={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function Pu(e,t){return{props:{..._u},setup(o,n){const a=r.ref(!0),l=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(w=>{c[w]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),s=c=>{if(c&&ne(o.showOverflowTooltip)){const f=c.clientWidth;ju(c,w=>{a.value=w<=f})}};let u=null;r.onMounted(()=>{if(!ne(o.showOverflowTooltip))return;const c=l.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const d=(c,f)=>{let w=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const x=o.highlightFilter;if(c.indexOf(x)!==-1){const g=c.replace(new RegExp(x,"g"),`<span>${x}</span>`);f.innerHTML=g,f.class["is-highlight"]=!0,w=r.h(o.tag,f)}}else if(typeof o.highlightFilter=="function"){const x=o.highlightFilter(c);x&&(f.innerHTML=x,f.class["is-highlight"]=!0,w=r.h(o.tag,f))}return w};return()=>{const c={},f={...n.attrs,class:{...i.value},ref:l};if(ne(o.numberFormat)&&typeof n.slots.default=="function"){const g=n.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const y=ve(o.digits),$=ve(o.decimalLength),k=ne(o.autoPadding);let F=`${g[0].children}`,R=F.split("").reverse().join("");R=xt(R,$,k,y,o.separator),F=R.split("").reverse().join("");let V=null;o.highlightFilter!==void 0&&(V=d(F,f)),V||(f.innerHTML=F,V=r.h(o.tag,f)),c.default=()=>V}}}else{let g=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const b=n.slots.default();if(Array.isArray(b)&&b.length===1){const y=b[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const $=`${b[0].children}`;g=d($,f),g||(f.innerHTML=$,g=r.h(o.tag,f))}}}g||(g=r.h(o.tag,f,{default:n.slots.default})),c.default=()=>g}const x={disabled:a.value};return c.content=n.slots.default,r.h(p.ElTooltip,x,c)}}}}const{componentName:Hu,create:zu,scope:yf}=re("text"),Qn=zu(Pu(Hu)),Ku={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:Ne.ArrowUp}};function Wu(e,t,o){return{props:{...Ku},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),d=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{a("update:modelValue",!i.value)};return()=>{const f=[];if(s.value){const g={class:u.value},b=r.h("span",g,[s.value]);f.push(b)}const w={class:d.value},x=o(n.icon,w);return x&&f.push(x),r.h("div",{class:l.value,onClick:c},f)}}}}const{componentName:Yu,create:Uu,scope:Gu}=re("more-button"),er=Uu(Wu(Yu,Gu,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Xu,create:Zu,scope:wf}=re("tour"),Ju=Zu({components:{Close:Ne.Close,ElPopover:p.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Xu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:m,maskWidth:g,maskHeight:b}=e,{width:y,height:$,left:k,top:F}=a.value,R=e.steps[n.active].offset??m,V=[k+y/2,F+$/2],O=Number(g||y),A=Number(b||$);return{width:`${O+ +R.left+R.right}px`,height:`${A+R.top+R.bottom}px`,top:`${V[1]-A/2-+R.top}px`,left:`${V[0]-O/2-+R.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),g=En(m);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&f()},x=(m,g=0)=>{m&&c(),e.steps,n.active=g,n.showTour=m,n.showPopup=m};return r.onMounted(()=>{x(e.modelValue,e.current)}),r.watch(()=>e.modelValue,m=>{x(m)}),{...r.toRefs(n),classes:l,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:w}}}),Qu={key:0,class:"fox-tour__content"},ec={key:0,class:"fox-tour__content-top"},tc={class:"fox-tour__content-inner"},nc={class:"fox-tour__content-bottom"},rc={class:"fox-tour__content-bottom-init"},oc={class:"fox-tour__content-bottom-operate"},ac={key:1,class:"fox-tour__content fox-tour__content-tile"},lc={class:"fox-tour__content-inner"};function ic(e,t,o,n,a,l){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(d,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",Qu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",ec,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",tc,r.toDisplayString(d.content),1),r.createElementVNode("div",nc,[r.createElementVNode("div",rc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",oc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",ac,[r.createElementVNode("div",lc,r.toDisplayString(d.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const tr=Oe(Ju,[["render",ic]]),Ce=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Ze=e=>e==null,_o=10;function sc(e,t){return e>t&&e>_o?"horizontal":t>e&&t>_o?"vertical":""}function uc(){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 s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=sc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function cc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function fc(e){e.stopPropagation()}function dc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&fc(e)}class hc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=cc()}open(t){this.el=t;const o=uc(),n=(a,l,i,s,u)=>{this.updateMove({x:l,y:i})};this.touchstart=a=>{this.moving||(o.start(a),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=a=>{this.moving&&(o.move(a),o.isHorizontal()&&dc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,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},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Po(e,t){return new hc(e,t)}var Ho;const nr=typeof window<"u";nr&&((Ho=window?.navigator)!=null&&Ho.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let it=[];const zo=e=>{const t=e;t.key==="Escape"&&it.forEach(o=>o(t))},gc=e=>{r.onMounted(()=>{it.length===0&&document.addEventListener("keydown",zo),nr&&it.push(e)}),r.onBeforeUnmount(()=>{it=it.filter(t=>t!==e),it.length===0&&nr&&document.removeEventListener("keydown",zo)})},rr="fox-focus-trap.focus-after-trapped",or="fox-focus-trap.focus-after-released",mc="fox-focus-trap.focusout-prevented",Ko={cancelable:!0,bubbles:!1},pc={cancelable:!0,bubbles:!1},Wo="foxFocusAfterTrapped",Yo="foxFocusAfterReleased",yc=Symbol("foxFocusTrap"),ar=r.ref(),Kt=r.ref(0),lr=r.ref(0);let Wt=0;const Uo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},bc=(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},Go=(e,t)=>{for(const o of e)if(!bc(o,t))return o},wc=e=>{const t=Uo(e),o=Go(t,e),n=Go(t.reverse(),e);return[o,n]},vc=e=>e instanceof HTMLInputElement&&"select"in e,Ke=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),lr.value=window.performance.now(),e!==o&&vc(e)&&t&&e.select()}};function Xo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Sc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Xo(e,n),e.unshift(n)},remove:n=>{e=Xo(e,n),e[0]?.resume?.()}}},Tc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ke(n,t),document.activeElement!==o)return},Zo=Sc(),$c=()=>Kt.value>lr.value,Yt=()=>{ar.value="pointer",Kt.value=window.performance.now()},Jo=()=>{ar.value="keyboard",Kt.value=window.performance.now()},xc=()=>(r.onMounted(()=>{Wt===0&&(document.addEventListener("mousedown",Yt),document.addEventListener("touchstart",Yt),document.addEventListener("keydown",Jo)),Wt++}),r.onBeforeUnmount(()=>{Wt--,Wt<=0&&(document.removeEventListener("mousedown",Yt),document.removeEventListener("touchstart",Yt),document.removeEventListener("keydown",Jo))}),{focusReason:ar,lastUserFocusTimestamp:Kt,lastAutomatedFocusTimestamp:lr}),Ut=e=>new CustomEvent(mc,{...pc,detail:e}),{componentName:vf,create:Cc,scope:Sf}=re("focus-trap"),Ec=Cc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Wo,Yo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:i}=xc();gc(g=>{ne(e.trapped)&&!s.paused&&o("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!ne(e.trapped)||s.paused)return;const{key:b,altKey:y,ctrlKey:$,metaKey:k,currentTarget:F,shiftKey:R}=g,{loop:V}=e,O=b==="Tab"&&!y&&!$&&!k,A=document.activeElement;if(O&&A){const I=F,[q,K]=wc(I);if(q&&K){if(!R&&A===K){const v=Ut({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||(g.preventDefault(),V&&Ke(q,!0))}else if(R&&[q,I].includes(A)){const v=Ut({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||(g.preventDefault(),V&&Ke(K,!0))}}else if(A===I){const v=Ut({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||g.preventDefault()}}};r.provide(yc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),r.watch([n],([g],[b])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",f),g.addEventListener("focusout",w)),b&&(b.removeEventListener("keydown",u),b.removeEventListener("focusin",f),b.removeEventListener("focusout",w))});const d=g=>{o(Wo,g)},c=g=>o(Yo,g),f=g=>{const b=r.unref(n);if(!b)return;const y=g.target,$=g.relatedTarget,k=y&&b.contains(y);ne(e.trapped)||$&&b.contains($)||(a=$),k&&o("focusin",g),!s.paused&&ne(e.trapped)&&(k?l=y:Ke(l,!0))},w=g=>{const b=r.unref(n);if(!(s.paused||!b))if(!e.escape&&ne(e.trapped)){const y=g.relatedTarget;!un(y)&&!b.contains(y)&&setTimeout(()=>{if(!s.paused&&ne(e.trapped)){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||Ke(l,!0)}},0)}else{const y=g.target;y&&b.contains(y)||o("focusout",g)}};async function x(){await r.nextTick();const g=r.unref(n);if(g){Zo.push(s);const b=g.contains(document.activeElement)?a:document.activeElement;if(a=b,!g.contains(b)){const $=new Event(rr,Ko);g.addEventListener(rr,d),g.dispatchEvent($),$.defaultPrevented||r.nextTick(()=>{let k=e.focusStartEl;br(k)||(Ke(k),document.activeElement!==k&&(k="first")),k==="first"&&Tc(Uo(g),!0),(document.activeElement===b||k==="container")&&Ke(g)})}}}function m(){const g=r.unref(n);if(g){g.removeEventListener(rr,d);const b=new CustomEvent(or,{...Ko,detail:{focusReason:i.value}});g.addEventListener(or,c),g.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!$c())&&Ke(a??document.body,!0),g.removeEventListener(or,d),Zo.remove(s)}}return r.onMounted(()=>{ne(e.trapped)&&x(),r.watch(()=>e.trapped,g=>{ne(g)?x():m()})}),r.onBeforeUnmount(()=>{ne(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Nc,create:kc,scope:$f}=re("floating-window"),Vc=Symbol.for("InnerPageScopeKey"),Oc=Symbol.for("PageWrapperKey"),Ic={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},customClass:{type:[String],required:!1}},Rc=kc({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Ec},props:{...Ic},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Nc,n=r.ref(e.modelValue),a=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,N=>{n.value=N});const l=r.computed(()=>n.value===!1?!1:!O.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),d=r.ref(e.bottom),c=r.computed(()=>{const N=["fox-floating-window"];return e.customClass&&N.push(e.customClass),N}),f=r.computed(()=>{const N={};return Ze(i.value)?N.left="auto":N.left=Ce(i.value),Ze(s.value)?N.top="auto":N.top=Ce(s.value),Ze(u.value)?N.right="auto":N.right=Ce(u.value),Ze(d.value)?N.bottom="auto":N.bottom=Ce(d.value),Ze(e.zIndex)||(N["z-index"]=Ce(e.zIndex)),Ze(R.value)||(N.height=R.value),Ze(V.value)||(N.width=V.value),N}),w=r.computed(()=>e.closeIcon??Ne.Close),x=r.computed(()=>e.collapseIcon??Ne.ArrowUp),m=r.computed(()=>e.collapseText??""),g=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),b=r.computed(()=>e.expandText??e.title??"展开"),y=r.computed(()=>({[`${o}__collapse-text`]:!0})),$=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!O.value,"is-collapse":O.value})),k=r.ref(),F=r.ref(),R=r.computed(()=>Ce(e.height)||""),V=r.computed(()=>Ce(e.width)||""),O=r.ref(ne(e.collapse)),A=(N,D=!0)=>{O.value!==N&&(O.value=N,N?Y():U(),t("update:collapse",N))};r.watch(()=>e.collapse,N=>{A(N)});const I=()=>{q()},q=N=>{N=N??!O.value,A(N)};r.provide(Vc,!0);const K={setCollapse:A,setFixedNavVisible:N=>{j.value=N}};r.provide(Oc,K);const W=()=>{typeof K.beforeClose=="function"?K.beforeClose(()=>{n.value=!1}):n.value=!1},v=r.ref(null),E=r.computed(()=>!e.fixedNavTeleport),T=r.computed(()=>{const N=["fox-floating-window__fixednav"];return e.expandClass&&N.push(e.expandClass),e.collapsePosition==="left"?N.push("is-left"):e.collapsePosition==="right"&&N.push("is-right"),N}),H=r.ref(""),B=r.computed(()=>{const N={};return H.value?N.top=H.value:e.collapseTop&&(N.top=e.collapseTop),N}),j=r.ref(O.value);let S=null;const M=()=>{typeof S=="function"&&(S(),S=null)},Y=()=>{v.value&&v.value.classList.add("slide-in"),j.value=!0,S=()=>{v.value&&v.value.classList.remove("slide-in")}},U=()=>{v.value&&v.value.classList.add("slide-out"),S=()=>{v.value&&v.value.classList.remove("slide-out"),j.value=!1}},Q=()=>{i.value=null,s.value=null,u.value=null,d.value=null},ee={x:0,y:0},L=Po(N=>{if(!k.value)return;const D=k.value;if(Q(),e.origin==="left-top")i.value=D.offsetLeft,s.value=D.offsetTop,ee.x=i.value,ee.y=s.value;else if(e.origin==="left-bottom"){const C=document.documentElement.clientHeight||document.body.clientHeight;i.value=D.offsetLeft,d.value=C-(D.offsetTop+D.offsetHeight),ee.x=i.value,ee.y=d.value}else if(e.origin==="right-bottom"){const C=document.documentElement.clientWidth||document.body.clientWidth,P=document.documentElement.clientHeight||document.body.clientHeight;u.value=C-(D.offsetLeft+D.offsetWidth),d.value=P-(D.offsetTop+D.offsetHeight),ee.x=u.value,ee.y=d.value}else{const C=document.documentElement.clientWidth||document.body.clientWidth;u.value=C-(D.offsetLeft+D.offsetWidth),s.value=D.offsetTop,ee.x=u.value,ee.y=s.value}},N=>{if(!k.value)return;const D=k.value;Q(),e.origin==="left-top"?(i.value=ee.x+N.x,s.value=ee.y+N.y,D.style.left=Ce(i.value),D.style.top=Ce(s.value)):e.origin==="left-bottom"?(i.value=ee.x+N.x,d.value=ee.y-N.y,D.style.left=Ce(i.value),D.style.bottom=Ce(d.value)):e.origin==="right-bottom"?(u.value=ee.x-N.x,d.value=ee.y-N.y,D.style.right=Ce(u.value),D.style.bottom=Ce(d.value)):(u.value=ee.x-N.x,s.value=ee.y+N.y,D.style.right=Ce(u.value),D.style.top=Ce(s.value))}),Z={x:0,y:0},J=Po(N=>{v.value&&(Z.x=v.value.offsetLeft,Z.y=v.value.offsetTop)},N=>{if(!v.value)return;const D=Z.y+N.y;H.value=`${D}px`});return r.onMounted(()=>{e.draggable&&F.value&&k.value&&L.open(F.value),e.collapse===!0&&A(e.collapse,!1),v.value&&J.open(v.value)}),r.onBeforeUnmount(()=>{e.draggable&&F.value&&L.close(),v.value&&J.close()}),{classes:c,styles:f,isShow:l,closeIcon:w,onClose:W,dialogRef:k,headerRef:F,onClickToggle:I,collapseIcon:x,collapseText:m,collapseTextClasses:y,collapseIconClasses:$,expandIcon:g,expandText:b,isShowFixedNav:j,fixedNavRef:v,fixedNavClasses:T,fixedNavStyles:B,onAnimationEnd:M,teleportDisabled:a,fixedNavTeleportDisabled:E}}}),Fc={ref:"headerRef",class:"fox-floating-window__header"},Dc={class:"fox-floating-window__title"},Ac={class:"fox-floating-window__tools"},Bc={class:"fox-floating-window__body"},qc={class:"fox-floating-window__fixednav__text"};function Lc(e,t,o,n,a,l){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Fc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Dc,r.toDisplayString(e.title),1),r.createElementVNode("div",Ac,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Bc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",qc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ir=Oe(Rc,[["render",Lc]]);function Mc(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:xf,create:jc,scope:Cf}=re("domain-provider"),sr=jc(Mc()),_c={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 Pc(e,t){return{inheritAttrs:!1,props:_c,setup(o,{slots:n}){if(Qe&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const i=(w,x)=>{if(c===null){l.set(w,{visible:null,callback:x});return}a.has(w)&&c.unobserve(w),a.set(w,{visible:null,callback:x}),c.observe(w)},s=w=>{if(c===null){l.delete(w);return}a.has(w)&&(a.delete(w),c.unobserve(w))};let u=o.initialVisibleObserverSize;pl({acquire:()=>{const w=u>0;return u--,w},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const f=(w,x,m)=>{c=new IntersectionObserver(g=>{for(let b of g){let y=!1;b.intersectionRatio>0&&(y=!0);const $=a.get(b.target);if($)try{if(o.loadPolicy==="lazy"&&!y&&$.visible!==null)return;$.visible=y,$.callback(y)}catch(k){console.error(k)}}},{root:w,rootMargin:x,threshold:m}),l.forEach((g,b)=>{a.set(b,g),c?.observe(b)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([w,x])=>{if(x||!w||c)return;let m=null;typeof w=="string"?m=document.querySelector(w):m=w,m&&f(m,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Ef,create:Hc,scope:Nf}=re("rolling-provider"),ur=Hc(Pc()),Qo=10;function zc(e,t){return e>t&&e>Qo?"horizontal":t>e&&t>Qo?"vertical":""}function Kc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),d=r.ref(0),c=r.ref(""),f=()=>c.value==="vertical",w=()=>c.value==="horizontal",x=()=>{i.value=0,s.value=0,u.value=0,d.value=0,c.value="",o.value=0};return{move:b=>{const y=b.touches[0];i.value=y.clientX-e.value,s.value=y.clientY-t.value,a.value=y.clientX,l.value=y.clientY,u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=zc(u.value,d.value))},start:b=>{x(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY,o.value=Date.now()},reset:x,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:w}}const Wc=[yn,vn,Sn,Tn,Cn,ge,Vn,On,yt,In,Rn,Fn,Dn,An,Bn,qn,Mn,jn,_n,Pn,zt,Kn,Wn,Yn,Un,Gn,Xn,Zn,wt,_t,Jn,Qn,er,tr,ir,sr,ur],Yc=new ja(Wc,[Ha],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),h.AutocompleteItem=jn,h.Broadcast=cn,h.BroadcastKey=de,h.CascaderItem=Mn,h.CheckboxItem=Yn,h.Content=Tn,h.DataItemsKey=et,h.DateItem=Fn,h.DateUtils=Ie,h.DialogItem=Zn,h.Domain=Ot,h.DomainKey=ke,h.DomainProvider=sr,h.FloatingWindow=ir,h.FooterBar=Sn,h.FoxAutocompleteItem=jn,h.FoxCascaderItem=Mn,h.FoxCheckboxItem=Yn,h.FoxContent=Tn,h.FoxDateItem=Fn,h.FoxDialogItem=Zn,h.FoxDomainProvider=sr,h.FoxFloatingWindow=ir,h.FoxFooterBar=Sn,h.FoxGroup=Cn,h.FoxHeaderBar=vn,h.FoxHintText=yt,h.FoxIndicator=Jn,h.FoxInputItem=In,h.FoxInputNumberItem=qn,h.FoxItem=ge,h.FoxMapping=wt,h.FoxMoneyItem=Bn,h.FoxMoreButton=er,h.FoxPage=yn,h.FoxPrice=_t,h.FoxRadioItem=Wn,h.FoxRateItem=Un,h.FoxRollingProvider=ur,h.FoxRowItem=On,h.FoxSelectItem=Rn,h.FoxSlotItem=Vn,h.FoxSwitchItem=Gn,h.FoxTableItem=Kn,h.FoxTableMappingColumn=_n,h.FoxTableRadioColumn=Pn,h.FoxTableSetting=zt,h.FoxText=Qn,h.FoxTimeItem=Dn,h.FoxTimeSelectItem=An,h.FoxTour=tr,h.FoxTreeSelectItem=Xn,h.Group=Cn,h.HeaderBar=vn,h.HintText=yt,h.Indicator=Jn,h.InputItem=In,h.InputNumberItem=qn,h.Item=ge,h.Mapping=wt,h.MoneyItem=Bn,h.MoreButton=er,h.Page=yn,h.Price=_t,h.PriorityPolicy=Ve,h.RadioItem=Wn,h.RateItem=Un,h.RollingProvider=ur,h.RowItem=On,h.SelectItem=Rn,h.SlotItem=Vn,h.SwitchItem=Gn,h.TableItem=Kn,h.TableMappingColumn=_n,h.TableRadioColumn=Pn,h.TableSetting=zt,h.Text=Qn,h.TimeItem=Dn,h.TimeSelectItem=An,h.Tour=tr,h.TreeSelectItem=Xn,h.UniqueID=eo,h.ValidateSchema=Br,h.ValidateSchemaKey=qe,h.cancelRaf=na,h.clearNonNumber=ya,h.clone=ln,h.compareTo=rn,h.createBroadcast=Nt,h.createValidateSchema=Vt,h.debounce=gt,h.debounceRef=Oa,h.decimalLength=kr,h.default=Yc,h.defineBroadcast=Sa,h.defineConfigDomain=Mr,h.defineDataItem=_r,h.defineDomain=hn,h.defineItem=pe,h.definePageState=Pr,h.deleteGlobalValidator=Ca,h.disabledProperty=xe,h.divide=nn,h.excludeProps=Se,h.extend=Ye,h.floatData=va,h.getGlobalValidateCheckEvents=Fr,h.getGlobalValidateResetEvents=Ar,h.getPageContentAreaHeight=Rt,h.getPageContentAreaWidth=Ft,h.getPageFooterAreaHeight=pt,h.getPageHeaderAreaHeight=mt,h.getRootDomain=tt,h.hasSymbol=vr,h.includeProps=Or,h.indexOf=ba,h.installRules=jr,h.integerLength=Nr,h.isArray=la,h.isArrayLike=$r,h.isBrowser=Qe,h.isDate=ua,h.isESModule=da,h.isEmptyString=fe,h.isEqual=Pe,h.isFunction=on,h.isHidden=Tr,h.isInnerPage=Fa,h.isMap=ia,h.isNil=un,h.isNumberString=Er,h.isObject=_e,h.isPlainObject=an,h.isPromise=fa,h.isRegExp=Cr,h.isSet=sa,h.isString=br,h.isSubPage=Da,h.isSymbol=ca,h.isWindow=Sr,h.lastIndexOf=wa,h.makeArray=pa,h.merge=xr,h.multiply=mr,h.negate=pr,h.nextTick=ga,h.numberFormat=xt,h.objectToString=wr,h.once=Ia,h.property=Ee,h.raf=aa,h.readonlyProperty=$e,h.setGlobalValidateCheckEvents=Ea,h.setGlobalValidateHandler=$a,h.setGlobalValidateMessages=ka,h.setGlobalValidateResetEvents=Na,h.setGlobalValidator=xa,h.throttle=Lr,h.toBoolean=ne,h.toNumber=ve,h.toPadding=Fe,h.toPx=ue,h.toPxDesc=ye,h.toTypeString=Ct,h.toValue=se,h.tryTimes=fn,h.typeOf=Et,h.unNumberFormat=yr,h.updatePageState=gn,h.useBroadcast=dt,h.useDomain=Le,h.useExpose=be,h.useInnerSize=wn,h.usePageState=It,h.usePosition=Zr,h.useRect=En,h.useSize=bn,h.useTouch=Kc,h.valueLength=ft,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function $t(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=we(e),t=we(t),[e,t]=Xt(we(e),we(t)),o==1&&(n==1?e=Gt(e):t=Gt(t));let a=fr(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Gt(a)):we(a)}function Gt(e){let t="",o=e.length,n=e.split(".")[1],a=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 l=a>0?"0."+new Array(a).join("0")+"1":"1";return fr(t,l)}function we(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 Xt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function fr(e,t){[e,t]=Xt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var fe=(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))(fe||{});function ut(e,t=0,o=fe.HALF_EVEN){if(o===fe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),l=a[0],i=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+i,u=ut(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,dr(a[1],l,n,o)?(n?"-":"")+Zt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let s=a[1].substring(t);return s&&dr(s,i,n,o)&&(i=Zt(i),i.length>t)?(n?"-":"")+Zt(l,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+l+"."+i}function dr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===fe.DOWN||!o&&n===fe.FLOOR||o&&n===fe.CEILING)return!1;if(n===fe.UP||o&&n===fe.FLOOR||!o&&n===fe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Zt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Jt(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,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=ct(e.replace(".","")),t=ct(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,c="";for(let f=0;f<i;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let w=0;for(let x=t.length-1;x>=d&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(w+=parseInt(e[u[x]--])*parseInt(t[x]));w+=s,s=Math.floor(w/10),c=w%10+c,d--}return c=ct(aa(c,l)),o==1&&(c="-"+c),c}function aa(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 Qt(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 a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=we(t.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=we(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=we(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let c=e.length-d+a;e=we(e.substring(0,c)+"."+e.substring(c))}else a==d&&(e=we(e.replace(".","")))}let l=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),l=d,s="0."+new Array(d).join("0")}for(o=o+2;l<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=$t(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,u=u+"0")}return(n==1?"-":"")+we(ut(s,o-2))}function en(e,t){return e=e.toString(),t=t.toString(),t=tn(t),$t(e,t)}function tn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function hr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),gr(e),gr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=en(e,Jt(t,ut(Qt(e,t),0,fe.FLOOR)));return o+n}function gr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function mr(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]=Xt(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 oe{value;static RoundingModes=fe;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=we(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+we(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=oe.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=oe.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var i="",s=l;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<l-o&&s>=0?n:"")+i;return(a?"-":"")+i+t.substring(l)}getPrettyValue(t,o){return oe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=oe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ut(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new oe(ut(this.value,t,o))}static floor(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,fe.FLOOR)}static ceil(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,fe.CEILING)}static add(t,o){return t=oe.validate(t),o=oe.validate(o),$t(t,o)}add(t){return new oe($t(this.value,t.getValue()))}static subtract(t,o){return t=oe.validate(t),o=oe.validate(o),en(t,o)}subtract(t){return new oe(en(this.value,t.getValue()))}static multiply(t,o){return t=oe.validate(t),o=oe.validate(o),Jt(t,o)}multiply(t){return new oe(Jt(this.value,t.getValue()))}static divide(t,o,n){return t=oe.validate(t),o=oe.validate(o),Qt(t,o,n)}divide(t,o){return new oe(Qt(this.value,t.getValue(),o))}static modulus(t,o){return t=oe.validate(t),o=oe.validate(o),hr(t,o)}modulus(t){return new oe(hr(this.value,t.getValue()))}static compareTo(t,o){return t=oe.validate(t),o=oe.validate(o),mr(t,o)}compareTo(t){return mr(this.value,t.getValue())}static negate(t){return t=oe.validate(t),tn(t)}negate(){return new oe(tn(this.value))}}function pr(e,t){return oe.multiply(`${e}`,`${t}`)}function nn(e,t,o=8){return oe.divide(`${e}`,`${t}`,o)}function rn(e,t){return e=`${e}`,t=`${t}`,oe.compareTo(e,t)}function yr(e){return oe.negate(e)}function xt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let i=l.charAt(0);i=="-"?l=l.substring(1):i="";let s=l,u="",d=l.indexOf(".");d!=-1&&(s=l.substring(0,d),u=l.substring(d+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 f="",w=s.split("").reverse();for(let x=0;x<w.length;x++)f+=w[x]+((x+1)%n==0&&x+1!=w.length?a:"");u.length==0?c=`${i}${f.split("").reverse().join("")}`:c=`${i}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function br(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const la=oa,ia=Array.isArray,sa=e=>Ct(e)==="[object Map]",ua=e=>Ct(e)==="[object Set]",ca=e=>e instanceof Date,on=e=>typeof e=="function",wr=e=>typeof e=="string",fa=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",da=e=>He(e)&&on(e.then)&&on(e.catch),vr=Object.prototype.toString,Ct=e=>vr.call(e),an=e=>Ct(e)==="[object Object]",Sr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ha(e){return e.__esModule||Sr&&e[Symbol.toStringTag]==="Module"}const ga=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ue(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let i in l){let s=t[i],u=l[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=Ue(a,d,u)}else u!==void 0&&(t[i]=u)}}return t}function ln(e,t,o=!1){if(!o)Ue(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!an(i))continue;l=ln(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!an(i))continue;l=ln(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}}return e}const sn=ga?Promise.resolve():null;function ma(e,...t){sn!==null?t&&t.length>0?sn.then(()=>{e(t)}):sn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(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 Et(e){let o=Object.prototype.toString.call(e);return e==null?String(e):pa[o]||"object"}function Tr(e){return e&&typeof e=="object"&&"setInterval"in e}function $r(e){return!e||e.offsetParent===null}function xr(e){let t=!!e&&"length"in e&&e.length,o=Et(e);return o==="function"||Tr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Cr(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function ya(e,t=[]){let o=t;return e!=null&&(xr(Object(e))?Cr(o,typeof e=="string"?[e]:e):o.push(e)),o}function qe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Et(e),n=Et(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],d=t[s];if(!qe(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],i=t[a];if(!qe(l,i))return!1}return!0}return!1}const Qe=typeof window<"u";function un(e){return e==null}function Er(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Nr(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function kr(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 Vr(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 Or(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 ba(e,t=!0,o=!0){t?e=Or(e,".",/\./g):e=e.replace(/\./g,""),o?e=Or(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function wa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(qe(e,o))return!0}):t.indexOf(e)}function va(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(qe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ft(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Ir(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function Se(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const Sa=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},he=Symbol.for("BroadcastKey");class cn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Er(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&l.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&l.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,l,[...s])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const i=Reflect.apply(l.emit,l,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,o){this.callbacks.set(t,o)}}function Nt(e,t,o,n){const a=new cn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Ta(e,t,o){const n=o;if(n[he])return n[he];const a=r.inject(he,null),l=new cn(a,o,e);if(t&&typeof t=="object")for(const i in t)l.on(i,t[i]);return n[he]=l,r.provide(he,l),r.onUnmounted(()=>{l.destroy(),n[he]=void 0}),l}function dt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Ge=e=>e.default??e;class $a{error(t,o){const n=o,a=dt(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=dt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=dt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=dt(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Rr=new $a;function xa(e){Rr=e}function Ca(e,t){Ge(Ye).setValidator(e,t)}function Ea(e){Ge(Ye).deleteValidator(e)}let Fr=["blur","clear"];function Na(e){Fr=e}function Ar(){return Fr}let Dr=["focus","change"];function ka(e){Dr=e}function Br(){return Dr}function Va(e){Ge(Ye).messages(e)}function ht(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function kt(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 Me=Symbol("ValidateSchemaKey");class Lr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=kt(ht(this.attrRules,this.rules)),n=[];for(let l in t){let i=t[l];if(this.hasValidator(l,!0)){if(i===!1)continue;let u={type:l};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(l);if(s!==null){let u={type:l,validator:s};n.push(u)}}this.attrRules=kt(n);const a=ht(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Rr;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...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?Ge(Ye).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?Ge(Ye).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ge(Ye).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=ht(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=kt(t):this.rules=kt([t]);const n=ht(this.attrRules,this.rules);r.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=ht(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),i={[`${n}`]:l},s=Ge(Ye),u=new s(a),d=this.proxy??i;return u.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let w="error";Array.isArray(f.errors)&&f.errors.length>0&&(w=f.errors[0].message??w,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(w)}return f}).catch(f=>{const w=f.message??`${f}`;return this.error(w),f})}}return Promise.resolve({pass:!0})}}function Vt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Lr(t,o,e)}const qr=Symbol.for("EventEmitterKey");class Oa{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 a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,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(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function gt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Mr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Ia(e,t){const o=gt((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ra(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function fn(e,t,o,n=0,a=!0){let l=t,i=0;if(a){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(l+=n,setTimeout(s,l))};setTimeout(s,l)}const ke=Symbol("DomainKey"),et=Symbol("DataItemsKey");class Ot{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}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 a=n._props[t];o.push(a)}n=n._parent}return o}}const Fa=new Ot;function tt(){return Fa}function je(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ke]??r.inject(ke,null):r.inject(ke,null)}const dn=Symbol("OriginalDateKey");function hn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let i=r.inject(ke,null);i===null&&(i=tt());const s=e||t.prop||t.name,u=new Ot(s);u.parent=i;const d=g=>{l[dn]||w(g),u.set("modelValue",g)},c=()=>u.getForSelf("modelValue")??null,f=()=>l[dn]??null,w=g=>{const b={};Ue(!0,b,r.toRaw(g)),l[dn]=b};r.isReactive(t)||typeof t=="function"?r.watch(t,g=>{u.merge(g,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&w(t.modelValue),l[ke]=u,r.provide(ke,u);let x=null,m=null;if(a!==null){const g=r.inject(he,null);x=Nt(l,g,s,n),u.broadcast=x,l[he]=x,r.provide(he,x),l.broadcast=(y,T,...k)=>Reflect.apply(x.emit,x,[y,T,...k]);const b=r.inject(Me,null);m=Vt(l,b,{componentName:""}),u.validateSchema=m,l[Me]=m,r.provide(Me,m),l[et]=new Map,l.validate=(y=!0)=>{const T=[];let k=null;const A={deep:!1};if(y===!0)k={name:"*"};else if(Array.isArray(y)&&y.length>0){const R=y;k={name:V=>V?R.indexOf(V)!==-1:!1}}else if(y!=null&&typeof y=="object"){const R=y;if(A.ignoreHidden=R.ignoreHidden,Array.isArray(R.include)&&R.include.length>0){const V=R.include;k={name:O=>O?V.indexOf(O)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const V=R.exclude;k={name:O=>O?V.indexOf(O)===-1:!1}}else k={name:"*"}}if(k){const R=x?.emitToChildren(k,"validate",A);R&&Reflect.apply([].push,T,R)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(R=>{let V=[];return R.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(V=[...V,...O.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(y,T=!0,k=!1)=>{if(k===!0){Reflect.ownKeys(y).forEach(R=>{let V=String(R);const D=Pr(u,V,{componentName:"",fieldName:V,pureDataValidate:!0},x,m);l[et].set(V,D);const I=y[V];I&&D.validateSchema.setRule(I)});return}if(T){const A=Reflect.ownKeys(y),R={name:V=>A.includes(V)};x?.emitToChildren(R,"setNameValidateRules",y,!1)}},l.clearValidate=(y=!0)=>{let T=null;if(y===!0)T={name:"*"};else if(Array.isArray(y)&&y.length>0){const k=y;T={name:A=>A?k.indexOf(A)!==-1:!1}}else if(y!=null&&typeof y=="object"){const k=y;if(Array.isArray(k.include)&&k.include.length>0){const A=k.include;T={name:R=>R?A.indexOf(R)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const A=k.exclude;T={name:R=>R?A.indexOf(R)===-1:!1}}else T={name:"*"}}T&&x?.emitToChildren(T,"clearValidate",!1)},l.resetFields=y=>{const T=c();if(!T)return;const k={};if(Ue(!0,k,f()??{}),Array.isArray(y))y.forEach(A=>{T[A]=k[A]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(R=>{T[R]=k[R]});else if(y&&Array.isArray(y.exclude)){let A=y.exclude??[];Reflect.ownKeys(k).forEach(R=>{A.includes(R)||(T[R]=k[R])})}else Object.assign(T,k);l.clearValidate(y)},l.setModelValue=(y,T)=>{!T||T===s?d(y):x?.emitToChildren({name:T},"setModelValue",y)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[ke]=void 0,l[et]&&(l[et].clear(),l[et]=void 0),x!==null&&(x.destroy(),l[he]=void 0),m!==null&&(m.destroy(),l[Me]=void 0)}),u}function jr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(ke,null);l===null&&(l=tt());const i=e||t.prop||t.name,s=new Ot(i);return s.parent=l,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),a[ke]=s,r.provide(ke,s),r.onUnmounted(()=>{s.destroy(),a[ke]=void 0}),s}function _r(e,t,o){const a=je(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",i=r.inject(he,null),s=Nt(a,i,l,o);a[he]=s,r.provide(he,s),a.broadcast=(m,g,...b)=>Reflect.apply(s.emit,s,[m,g,...b]);const u=r.inject(Me,null);e.fieldName=e.fieldName??l;const d=Vt(a,u,e);a[Me]=d,r.provide(Me,d),_r(a,d,l),a.validate=(m=null)=>{const g=[];let b=!1,y=!1;if(Array.isArray(m)&&m.indexOf(l)!==-1)y=!0,b=!0;else if(m&&typeof m=="object"){const T=m;T.ignoreHidden===!0&&$r(a.$el)?y=!1:(Array.isArray(T.include)&&T.include.indexOf(l)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(l),y=!0),b=T.deep??!1}else typeof m=="boolean"&&(b=m),y=!0;if(y){const T=d?.validate();g.push(T)}if(b){let T=null;const k={deep:!1};if(m===!0)T={name:"*"};else if(Array.isArray(m)&&m.length>0){const A=m;T={name:R=>R?A.indexOf(R)!==-1:!1}}else if(m!=null&&typeof m=="object"){const A=m;if(k.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const R=A.include;T={name:V=>V?R.indexOf(V)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const R=A.exclude;T={name:V=>V?R.indexOf(V)===-1:!1}}else T={name:"*"}}if(T){const A=s.emitToChildren(T,"validate",k);Reflect.apply([].push,g,A)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(T=>{let k=[];return T.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(k=[...k,...A.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>d?.setRule(m),a.setNameValidateRules=(m,g=!1)=>{const b=m[l];if(b&&d?.setRule(b),g){const y={name:T=>Reflect.ownKeys(m).includes(T)};s.emitToChildren(y,"setNameValidateRules",m,!1)}},a.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const b=m;g={name:y=>y?b.indexOf(y)!==-1:!1}}else if(m!=null&&typeof m=="object"){const b=m;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;g={name:T=>T?y.indexOf(T)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;g={name:T=>T?y.indexOf(T)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const c=new Oa(a);a[qr]=c;const f=gt((m="validate")=>{m==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ar()).forEach(m=>{c.on(m,g=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Br()).forEach(m=>{c.on(m,g=>{f("reset")})}),r.onUnmounted(()=>{s.destroy(),a[he]=void 0,d.destroy(),a[Me]=void 0,c.destroy(),a[qr]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(m,...g)=>{Reflect.apply(c.emit,c,[m,...g])},onEvent:(m,g)=>{Reflect.apply(c.on,c,[g])},offEvent:(m,g)=>{Reflect.apply(c.off,c,[g])}}}function Pr(e,t,o,n,a){const l={},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()}};const u=Vt({},a,o);l.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let w=!1,x=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)x=!0,w=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),x=!0,w=m.deep??!1}else typeof c=="boolean"&&(w=c),x=!0;if(x){const m=u?.validate();f.push(m)}if(w){let m=null;const g={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;m={name:y=>y?b.indexOf(y)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;m={name:T=>T?y.indexOf(T)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;m={name:T=>T?y.indexOf(T)===-1:!1}}else m={name:"*"}}if(m){const b=d.emitToChildren(m,"validate",g);Reflect.apply([].push,f,b)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(m=>{let g=[];return m.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(g=[...g,...b.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=c=>{const f=c[i];f&&u?.setRule(f)};const d=Nt(null,n,i,l);return{broadcast:d,validateSchema:u}}const ye=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e,t)}px`:"";function ue(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 a=Number(e.substring(0,o)),l=1;if(Qe){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(l=Number(i.substring(0,s)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const ze="PageStateKey";function Ae(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ue(e.right))),t}function gn(e,t,o={},n=!0,a=-1,l=-1,i=0,s=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight),e.headerPadding=Ae(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight),e.footerPadding=Ae(o.footerPadding??t.footerPadding),e.contentPadding=Ae(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,l):e.height=ue(l)-ue(i,l)-ue(s,l),e.width=ue(o.width??t.width??0,a)}}function Hr(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},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ue(a.top),n.safeAreaBottom=ue(a.bottom),n.safeAreaLeft=ue(a.left),n.safeAreaRight=ue(a.right));const l=e.get("pageLayout");if(!l)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;gn(n,l,t,!0,i,s,u,d);const c=r.reactive(n),f=e.getForParent(ze);f&&(n.height=Rt(e,f),n.width=Ft(e,f),r.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=Rt(e,f),c.width=Ft(e,f)}));const w=!f;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,m,g=-1,b=-1,y=0,T=0])=>{gn(c,m,t,w,g,b,y,T)}),e.set(ze,c),c}function It(e){return e.get(ze)}function mt(e,t){if(t=t??e.get(ze),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(ze),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Rt(e,t){if(t=t??e.get(ze),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=mt(e,t),n=pt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ft(e,t){return t=t??e.get(ze),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Aa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(ze)}var Ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ve||{});function mn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ee(e,t,o=1,n){const a=je();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const u=l[s];if(mn(u,n))return u}const i=e.value;return mn(i,n)?i:null}):r.computed(()=>{const l=e.value;return mn(l,n)?l:a?.get(t)})}function $e(e){return Ee(e,"readonly",0,function(o){return te(o)})}function xe(e){return Ee(e,"disabled",0,function(o){return te(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==l.value&&(l.value=s)}else i!==l.value&&(l.value=i)}),l}const zr=new Map,At=new Map;let pn=null;function Ba(e){pn=e}function Kr(e,t,o){if(o){let n=At.get(o);n||(n=new Map,At.set(o,n)),n.set(e,t)}else zr.set(e,t)}function De(e,t,o){!o&&pn&&(o=pn(e)??void 0);let n=null;if(o){let a=At.get(o);a&&(n=a.get(t))}return n||(n=zr.get(t)),n}function La(e,t){for(let o in e){const n=e[o];Kr(o,n,t)}}function qa(e){At.delete(e)}function Ma(){return{top:0,left:0,bottom:0,right:0}}function ja(e=0,t=0){if(Qe){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ue(e,n)-ue(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}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(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=tt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=Mr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=Ue({},Ma(),t.safeAreaInset),i=ja(n,a),s=Ue({},i.pageLayout,t.pageLayout);o=o??tt(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ba(t)}setAPI(t,o,n){Kr(t,o,n)}getAPI(t,o,n){return De(t,o,n)}batchSetAPI(t,o){La(t,o)}clearScopeAPI(t){qa(t)}getRootDomain(){return tt()}}const Pa=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Ha=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],za=e=>{Pa.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Ha.forEach(t=>{e.use(t)})};function re(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)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},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}},Yr={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}},Ur=[];for(const e in Yr)Ur.push(e);function be(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Ka=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...ge,...Wr,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}},setup(o,n){const a=hn(o.name,o);if(a){const d=Hr(a,o);be({getPageContentHeight:()=>Rt(a,d),getPageContentWidth:()=>Ft(a,d),getPageHeaderHeight:()=>mt(a,d),getPageFooterHeight:()=>pt(a,d)});const c=r.inject(Ka,!1);d&&c&&(d.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(d,c=!1)=>{const f=s?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(d,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([d,c],[f,w])=>{if(d&&f){const x=r.toRaw(f),m=r.toRaw(d),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),u(m)}if(c&&w){const x=r.toRaw(w),m=r.toRaw(c),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(y=>{g.includes(y)||(m[y]=[])}),u(m,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const d=r.toRaw(o.rules);u(d)}if(o.pureDataRules){const d=r.toRaw(o.pureDataRules);u(d,!0)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:i}}}),{componentName:Ya,create:Ua,scope:Jc}=re("page"),Ga=Ua(Wa(Ya));function Xa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Oe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},yn=Oe(Ga,[["render",Xa]]);function bn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function wn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-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},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,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,l){const i=je(),s=i?It(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const S=e;return{[S]:!0,[`${S}--border`]:a.border,[`${S}--fixed`]:a.fixed,[`${S}--safe-area-inset-top`]:a.safeAreaInsetTop}}),d=a.height!==null&&a.height!==void 0?ue(a.height):null,c=r.computed(()=>{const S={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const _=Ae(a.padding??s.headerPadding);return Object.assign(S,_),d&&(s.headerHeight=d),S.height=s.headerHeight,S.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,S.safeAreaTop>0&&(S.top=S.safeAreaTop+(_.top??0),S.height=S.height+S.safeAreaTop),S}if(d&&(S.height=d),a.padding){const _=Ae(a.padding);Object.assign(S,_)}return S}),f=r.ref(null),w=()=>{if(s&&f.value&&f.value.offsetParent!==null){if(!n){const S=bn(f.value);s.headerAllHeight=S.height}return s.headerMounted=!0,!0}return!1};let x=null;r.onMounted(()=>{s&&(fn(w,50,5,50,!0),window.ResizeObserver&&f.value&&(x=new window.ResizeObserver(()=>{w()}),x.observe(f.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,x&&(x.disconnect(),x=null))});const m=r.computed(()=>{const S={};return c.value.height!==null&&c.value.height!==void 0&&(S.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(S.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(S.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(S.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(S.paddingBottom=`${c.value.bottom}px`),S}),g=r.computed(()=>{const S={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(S.top=`${c.value.safeAreaTop}px`),S}),b=r.computed(()=>{const S={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(S.top=`${c.value.safeAreaTop}px`),S}),y=r.computed(()=>!!a.leftShow),T=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),k=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),A=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),R=r.computed(()=>a.leftIcon),V=r.computed(()=>R.value||l.slots.leftIcon),O=r.computed(()=>a.titleIcon),D=r.computed(()=>a.titleIcon||l.slots.titleIcon),I=r.computed(()=>a.rightIcon),L=r.computed(()=>a.rightIcon||l.slots.rightIcon);function H(){l.emit("back")}function W(){l.emit("click-title")}function v(){l.emit("click-right")}function N(){l.emit("click-right-text")}return{headerBarRef:f,classes:u,styles:m,mHeaderShow:T,leftStyles:g,rightStyles:b,mLeftShow:y,mTitleShow:k,mRightShow:A,mLeftIcon:R,hasLeftIcon:V,mTitleIcon:O,hasTitleIcon:D,mRightIcon:I,hasRightIcon:L,handleLeft:H,handleCenter:W,handleRight:v,handleRightText:N}}}),{componentName:Ja,create:Qa,scope:el}=re("header-bar"),tl=Qa(Za(Ja,el,Ne.ArrowLeft)),nl={key:1,class:"fox-header-bar__title"},rl={key:0,class:"title-text"};function ol(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",nl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",rl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const vn=Oe(tl,[["render",ol]]);function al(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,a){const l=je(),i=l?It(l):null,s=r.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ue(n.height):null,d=r.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&i){const g=Ae(n.padding??i.footerPadding);return Object.assign(m,g),u&&(i.footerHeight=u),m.height=i.footerHeight,m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.height=m.height+m.safeAreaBottom,m.bottom=m.safeAreaBottom+(g.bottom??0)),m}if(u&&(m.height=u),n.padding){const g=Ae(n.padding);Object.assign(m,g)}return m}),c=r.ref(null),f=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!o){const m=bn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let w=null;r.onMounted(()=>{i&&(fn(f,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(()=>{f()}),w.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,w&&(w.disconnect(),w=null))});const x=r.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=ye(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=ye(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=ye(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=ye(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=ye(d.value.bottom)),m});return{footerBarRef:c,classes:s,styles:x}}}}const{componentName:ll,create:il,scope:Qc}=re("footer-bar"),sl=il(al(ll));function ul(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Sn=Oe(sl,[["render",ul]]);function cl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=je(),a=r.computed(()=>({[e]:!0})),l=n?It(n):null,i=r.computed(()=>{const d={};if(n&&l){if(o.padding){const x=Ae(o.padding);Object.assign(l.contentPadding,x)}const c=mt(n,l),f=pt(n,l);let w="";if(l.contentHeight?w=`${l.contentHeight}`:w=`${l.height}px`,l.contentPadding,d.height=w,l.contentPadding.top||c>0){const x=(l&&l.contentPadding&&l.contentPadding.top)??0;d.paddingTop=`${c+x}px`}if(l.contentPadding.bottom||f>0){const x=(l&&l.contentPadding&&l.contentPadding.bottom)??0;d.paddingBottom=`${f+x}px`}return l.contentPadding.left&&(d.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(d.paddingRight=`${l.contentPadding.right}px`),d}if(o.padding){const c=Ae(o.padding);c.left&&(d.paddingLeft=`${c.left}px`),c.top&&(d.paddingTop=`${c.top}px`),c.right&&(d.paddingRight=`${c.right}px`),c.bottom&&(d.paddingBottom=`${c.bottom}px`)}return d}),s=r.ref(null),u=()=>{if(l&&s.value){const d=wn(s.value);l.contentInnerHeight=d.height,l.contentInnerWidth=d.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>mt(n),()=>pt(n)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:fl,create:dl,scope:ef}=re("content"),hl=dl(cl(fl));function gl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Tn=Oe(hl,[["render",gl]]),nt="GroupStateKey",Gr=Symbol.for("GroupScopeKey");function Dt(){return r.inject(Gr,!1)}function Bt(e=!0){r.provide(Gr,e)}function ml(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];un(a)||(e[n]=a)})}function pl(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ml(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(nt,l),l}function $n(e,t,o=-1,n=-1,a=!1,l,i,s){const u=e.get(nt);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),l||(l=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const c=ue(l),f=ue(i);s||(s=d.type??"grid");const w=()=>{const x=t===""||t===-1,m=ue(t);let g=ve(o);const b=ue(n);if(!x){let k=(m-(g-1)*b)/g;for(;f!==-1&&k>f;)g++,k=(m-(g-1)*b)/g;for(;c!==-1&&g>1&&k<c;)g--,k=(m-(g-1)*b)/g}let y=!1;const T=u.layout;T.value.width=t,T.value.column!==g&&(T.value.column=g,y=!0),T.value.gutter!==b&&(T.value.gutter=b,y=!0),T.value.type!==s&&(T.value.type=s,y=!0),y&&r.triggerRef(T)};if(a)w();else{const x=++u.passport;setTimeout(()=>{x===u.passport&&w()},50)}}function Lt(e,t=!1){let o;return t?o=e.getForParent(nt):o=e.get(nt),o.layout}function qt(e,t=!1){let o;return t?o=e.getForParent(nt):o=e.get(nt),o.order}function Xr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function Mt(e,t,o=1,n=0,a){const l={};let i=0;a?i=ue(a):i=Xr(t.column,o),i>0&&(l.width=`${i}%`);const s=Xr(t.column,n);s>0&&(l["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function jt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let a=ve(o);if(a===-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(a>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 l=ve(n)%t.column;let i=(e.index+l)%t.column,s=i+a;return s>t.column?(i=0,s=i+a,e.index=e.index+(t.column-i)+a):e.index=e.index+l+a,l>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Zr=Symbol("RollingStateKey");function yl(e){r.provide(Zr,e)}function bl(){return r.inject(Zr,null)}function xn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function wl(e){let t=xn(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=xn(o),document.body.removeChild(o)}return t}function vl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const Sl={...ge,...Wr,...Yr};function Tl(e,t,o){return{props:Sl,emits:["update:collapse"],setup(n,a){const l=hn(n.name,n,Ur),i=pl(l,{type:n.type}),s=Dt();Bt(!0);const u=n.rollingDisplay?bl():null,d=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),f=r.computed(()=>s&&l?Lt(l,!0).value:null),w=r.getCurrentInstance(),x=(E,B=!1)=>{const C=w?.proxy;C&&typeof C.setNameValidateRules=="function"&&C.setNameValidateRules(E,!0,B)};r.watch([()=>n.rules,()=>n.pureDataRules],([E,B],[C,P])=>{if(E&&C){const j=r.toRaw(C),G=r.toRaw(E),ne=G?Reflect.ownKeys(G):[];(j?Reflect.ownKeys(j):[]).forEach(ce=>{ne.includes(ce)||(G[ce]=[])}),x(G)}if(B&&P){const j=r.toRaw(P),G=r.toRaw(B),ne=G?Reflect.ownKeys(G):[];(j?Reflect.ownKeys(j):[]).forEach(ce=>{ne.includes(ce)||(G[ce]=[])}),x(G,!0)}},{deep:!0});const m=e,g=r.computed(()=>{const E={};E.height=_.value;const B=s?qt(l,!0):null;if(f.value&&B){if(f.value.type==="grid"){const C=jt(B,f.value,n.span,n.offset);Object.assign(E,C)}else if(f.value.type==="flow"){const C=Mt(B,f.value,n.span,n.offset,n.width);Object.assign(E,C)}}else if(n.width){const C=ye(n.width);E.width=C}return E}),b=r.computed(()=>{const E=i.layout.value.type;return E==="grid"||E==="flow"?{[`${m}--${E}`]:!0,[`${m}--${E}-justify-${n.justify}`]:!0,[`${m}--${E}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${E}`]:!0,[`${m}--gutter`]:!0}}),y=r.computed(()=>{if(i.layout.value.type==="grid"){let B="";if(n.columnWidth)B=`repeat(auto-fill, ${n.columnWidth})`;else{const C=vl(I.value,i.layout.value.column,i.layout.value.gutter);B=`repeat(${i.layout.value.column}, ${C})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":B}}}),T=r.toRef(n,"title"),k=r.toRef(n,"gutter"),A=r.toRef(n,"column"),R=r.computed(()=>s||c.value?!0:te(n.isWrap)),V=[],O=E=>{V.push(E)},D=()=>{let E=V.length;V.splice(0,E)},I=r.ref(-1),L=E=>{const B=wn(E).width;B>0&&B!==I.value&&(I.value=B)};$n(l,I.value,A.value,k.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([I,A,k],([E,B,C])=>{i.order.index=0,$n(l,E,B,C,!1,n.minItemWidth,n.maxItemWidth,n.type)});const H=r.computed(()=>q.value?n.expandText??"":n.collapseText??""),W=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),v=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),N=r.ref(),S=r.ref(),_=r.computed(()=>z.value||ye(n.height)||""),q=r.ref(!1),z=r.ref(""),$=r.ref(!1);let F=-1;const K=(E,B=!0)=>{const C=N.value;if(C&&q.value!==E){if(F=F===-1?wl(C):F,$.value=!0,B)if(C.style["will-change"]="height",C.ontransitionend=function(){C.ontransitionend=null,this.style["will-change"]="auto",E||(z.value="",$.value=!1)},E){let P=0;n.collapseHeight?P=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(P=S.value.offsetHeight),z.value=`${F}px`,r.nextTick(()=>{z.value=`${P}px`})}else z.value=`${F}px`;else if(E){let P=0;n.collapseHeight?P=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(P=S.value.offsetHeight),z.value=`${P}px`}else $.value=!1,z.value=`${F}px`;q.value=E,a.emit("update:collapse",E)}};r.watch(()=>n.collapse,E=>{K(E)});const Y=()=>{Q()},Q=E=>{E=E??!q.value,K(E)};be({toggleCollapse:Q,doLayout:()=>{V[0]&&(L(V[0]),$n(l,I.value,A.value,k.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ae=null,ie=!0;const M=E=>{if(n.rules){const B=r.toRaw(n.rules);x(B)}if(n.pureDataRules){const B=r.toRaw(n.pureDataRules);x(B,!0)}if(Qe&&(E&&K(te(n.collapse),!1),n.autoLayout&&Array.isArray(V)&&V.length>0)){const B=V[0];L(B),window.ResizeObserver&&(ae=new window.ResizeObserver(()=>{L(B)}),ae.observe(B))}},J=()=>{ae?.disconnect(),ae=null},X=!c.value||u?.acquire();X&&(d.value=c.value?!0:null),r.onMounted(()=>{if(X&&(M(ie),ie=!1),c.value&&u){let E=null,B=u.initialHeight;u.observe(N.value,C=>{if(C!==d.value)if(C)d.value=!0,q.value||(z.value=""),E=setTimeout(()=>{E=null,d.value!==!1&&(M(ie),ie=!1)},100);else{if(E!==null&&clearTimeout(E),d.value=!1,!q.value)if(ie)z.value=u.initialHeight;else{let P=xn(N.value);P<=0?z.value=B:(z.value=`${P}px`,B=z.value)}ie||J()}})}}),r.onUnmounted(()=>{ae?.disconnect(),u&&u.unobserve(N.value)});const U=(E="right")=>{const B=[];if(H.value){const j={class:W.value},G=r.h("span",j,[H.value]);B.push(G)}const C={class:v.value},P=o(n.collapseIcon,C);return P&&B.push(P),B.length>0?r.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${E}`]:!0},onClick:Y},B):null},Z=(E,B,C,P)=>{const j={...b.value};return B===0&&(j[`${m}__first`]=!0),C>=P-1&&(j[`${m}__last`]=!0),r.h("div",{ref:O,key:`${B}`,class:j,style:y.value},E)};return()=>{if(c.value&&d.value!==!0){const j=n.tag||"div";return r.h(j,{ref:N,prop:n.name,class:{[`${m}`]:!0,"is-collapse":$.value},style:g.value},[])}i.order.index=0;const E=[];let B=0;if(a.slots.header){const j={key:`${B++}`,ref:S,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},G=r.h("div",j,[a.slots.header()]);E.push(G)}else{const j=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const ne=U("left");ne&&j.push(ne)}if(T.value){if(n.showMark){const le={class:{[`${m}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const ce=r.h("div",le);j.push(ce)}const ne=r.h("div",{class:{[`${m}__header-title`]:!0}},[T.value]);j.push(ne)}if(a.slots.toolbar&&j.push(a.slots.toolbar()),!G&&n.showCollapse){const ne=U("right");ne&&j.push(ne)}if(j.length>0){const ne={key:`${B++}`,ref:S,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},le=r.h("div",ne,j);E.push(le)}}D();const C=a.slots.default?a.slots.default():[],P=i.layout.value.type;if(P==="grid"){const j=Z(C,B++,0,C.length);E.push(j)}else if(P==="flow"){const j=Z(C,B++,0,C.length);E.push(j)}else for(let j=0;j<C.length;j++){const G=C[j],ne=Z([G],B++,j,C.length);E.push(ne)}if(R.value){const j=n.tag||"div";return r.h(j,{ref:N,prop:n.name,class:{[`${m}`]:!0,"is-collapse":$.value},style:g.value},[E])}else return E}}}}const{componentName:$l,create:xl,scope:Cl}=re("group"),Cn=xl(Tl($l,Cl,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]}))));function El(e){return e===window}const Nl=/matrix\((.+)\)/,Jr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(El(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,i=0,s=0,u=0;for(a=t;a!==document;){i+=a.scrollTop,l+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const c=Nl.exec(d);if(c){let w=c[1].split(/\s*,\s*/);w.length==6&&(s+=Number(w[4]),u+=Number(w[5]))}}a=a.parentNode}return o-=l,n-=i,o+=s,n+=u,{x:o,y:n}};function kl(e){return e===window}const En=e=>{const t=r.unref(e);if(kl(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}};class Vl{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 Ol{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new Vl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const Qr=new Ol,eo={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:Il,create:Rl}=re("price"),Fl=Rl({props:{...eo},setup(e){const t=r.computed(()=>({[Il]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ft(e.price)==0?"":xt(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),l=r.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:a,decimalText:l}}}),Al=["innerHTML"],Dl=["innerHTML"];function Bl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Al)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Dl)):r.createCommentVNode("",!0)],2)}const _t=Oe(Fl,[["render",Bl]]),{componentName:Pt,create:Ll}=re("hint-text"),ql=Ll({components:{Price:_t},props:{...eo,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),d=r.ref(0),c=r.ref(e.placement),f=r.computed(()=>({[Pt]:!0})),w=r.ref(null),x=(D,I,L=10)=>{if(!Qe||I===!1||!D)return;l.value=!0;const H=En(e.reference);u.value=H.width,d.value=H.height,setTimeout(()=>{if(!w.value||!e.reference||e.reference.offsetParent===null)return;const W=Jr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,N=w.value.offsetWidth,S=w.value.offsetHeight;W.y-S>=0?(c.value="top",i.value.y=W.y-S-10-4,s.value.y=S):(c.value="bottom",i.value.y=W.y+d.value+10,s.value.y=-10);const _=W.x+N-v;_<0?(i.value.x=W.x,s.value.x=20):(i.value.x=W.x-_,s.value.x=_+20),l.value=!1},L)},m=gt(()=>{x(e.message,e.visible)},10),g=r.computed(()=>e.visible&&b.value),b=r.ref(!0),y=gt(D=>{const I=D[0];I&&(b.value=I.isIntersecting)},10),T=new IntersectionObserver(y);r.watch([()=>e.message,()=>e.visible],([D,I])=>{x(D,I)}),r.onMounted(()=>{x(e.message,e.visible),Qr.watch(e.reference,m),T.observe(e.reference)}),r.onBeforeMount(()=>{Qr.unwatch(e.reference,m),T.unobserve(e.reference),T.disconnect()});const k=r.computed(()=>{const D={"min-width":ye(u.value)};return l.value?D.visibility="hidden":D.transform=`translate(${i.value.x}px, ${i.value.y}px)`,D}),A=r.computed(()=>({[`${Pt}__content`]:!0})),R=r.computed(()=>({})),V=r.computed(()=>({[`${Pt}__arrow`]:!0,[`${Pt}__arrow-${e.placement}`]:!0})),O=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:g,tipRef:w,classes:f,styles:k,textClasses:A,textStyles:R,arrowClasses:V,arrowStyles:O}}}),Ml={key:1,class:"text"};function jl(e,t,o,n,a,l){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Ml,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const yt=Oe(ql,[["render",jl]]);class to{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 Nn={},_l=new to,rt=new Map,kn=e=>{if(e){const t=document.getElementById(e);rt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of rt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}rt.clear()}},Pl=e=>{const t=document.getElementById(e.id);if(t){const o=rt.get(e.id);o?e={...Nn,...o,...e}:e={...Nn,...e};const n=r.createVNode(yt,e);return r.render(n,t),e.id}},Hl=e=>{e.unmount=kn;let t;if(e.id){if(t=e.id,rt.has(t))return Pl(e)}else t=`hinttext_${_l.get()}`;e={...Nn,...e},e.id=t,rt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(yt,e);return r.render(n,o),document.body.appendChild(o),t},zl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ht={show(e,t,o={},n=!0){return n&&kn(),zl(t),Hl({...o,message:t,reference:e})},hide(e){kn(e)},install(e){e.config.globalProperties.$hintText=Ht}},{componentName:no,create:Kl}=re("item"),Wl=Kl({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:no,validate:!1},o);const n=je(),a=Dt();Bt(!1);const l=r.computed(()=>a&&n?Lt(n,!1).value:null),i=no,s=r.ref(null),u=r.computed(()=>{const M={[i]:!0,[`${i}__gutter`]:l.value&&l.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(M[e.errorMarkClass]=!!H.value,M[e.warnMarkClass]=!!I.value,M[e.infoMarkClass]=!!O.value,typeof s.value=="function"){const J=s.value(o);M[J]=!0}else if(typeof s.value=="string"){const J=s.value;M[J]=!0}return M}),d=r.computed(()=>{const M={},J=a&&n?qt(n,!1):null;if(l.value&&J)if(l.value.type==="grid"){const X=jt(J,l.value,e.span,e.offset);Object.assign(M,X)}else if(l.value.type==="flow"){const X=Mt(J,l.value,e.span,e.offset,e.width);Object.assign(M,X)}else return e.width&&(M.width=ye(e.width)),M;else e.width&&(M.width=ye(e.width));return M}),c=r.ref(null),f=r.computed({get:()=>c.value??te(e.isRequired),set:M=>{c.value=M}}),w=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),x=Ee(r.toRef(e,"labelPosition"),"labelPosition",Ve.Near),m=r.computed(()=>x&&x.value==="top"?"top":x&&x.value==="right"?"right":"left"),g=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${m.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${m.value}`]:!0})),y=Ee(r.toRef(e,"labelWidth"),"labelWidth",Ve.Near),T=r.computed(()=>y&&y.value?{width:ye(y.value)}:{}),k=r.computed(()=>({"label--string":!0,"label--required":f.value})),A=r.computed(()=>({content:!0,[e.contentClass]:!0})),R=r.computed(()=>({...e.contentStyle})),V=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(M){f.value=M},setErrorTip(M){V.errorTip=M},setErrorIcon(M){V.errorIcon=M},setWarnTip(M){V.warnTip=M},setWarnIcon(M){V.warnIcon=M},setInfoTip(M){V.infoTip=M},setInfoIcon(M){V.infoIcon=M},setCustomClassName(M){s.value=M}});const O=r.computed(()=>e.infoTip||V.infoTip),D=r.computed(()=>e.infoIcon||V.infoIcon),I=r.computed(()=>e.warnTip||V.warnTip),L=r.computed(()=>e.warnIcon||V.warnIcon),H=r.computed(()=>e.errorTip||V.errorTip),W=r.computed(()=>e.errorIcon||V.errorIcon),v=r.computed(()=>H.value?"error":I.value?"warn":O.value?"info":""),N=r.computed(()=>v.value.length>0),S=r.computed(()=>v.value==="error"?H.value:v.value==="warn"?I.value:v.value==="info"?O.value:""),_=r.computed(()=>v.value==="error"?W.value:v.value==="warn"?L.value:v.value==="info"?D.value:null),q=r.computed(()=>{let M={[`${i}__tip`]:!0,[`${i}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?M[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?M[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(M[`${e.infoClass}`]=!0),M}),z=r.computed(()=>{let M={};return x&&x.value==="top"||!w.value?M["padding-left"]="0px":y&&y.value&&(M["padding-left"]=ye(y.value)),M}),$=()=>r.h(_.value,{width:12,height:12}),F=r.computed(()=>t.slots.fixedTip),K=r.computed(()=>({[`${i}__fixed-tip`]:!0})),Y=r.ref();let Q="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([M,J,X,U])=>{Y.value&&(M&&!de(J)?Q?Ht.show(Y.value,J,{...U,id:Q,type:X},!0):Q=Ht.show(Y.value,J,{...U,type:X},!0):Ht.hide(Q))});let ee=null;const ae=()=>{ee||!Y.value||(ee=new IntersectionObserver(M=>{let J=!1;for(let X of M)if(X.intersectionRatio>0){J=!0,J&&t.emit("appear",X);break}J||t.emit("disappear")}),ee.observe(Y.value))},ie=()=>{!ee||!Y.value||(ee.unobserve(Y.value),ee=null)};return r.watch(()=>te(e.appearListen),M=>{M?ae():ie()}),r.onMounted(()=>{te(e.appearListen)&&ae()}),r.onUnmounted(ie),{classes:u,styles:d,mainClasses:g,hasLabel:w,labelClasses:b,labelStyles:T,labelStringClasses:k,contentClasses:A,contentStyles:R,contentRef:Y,hasTip:N,mTip:S,mIcon:_,renderIcon:$,tipClasses:q,tipStyles:z,hasFixedTip:F,fixedTipClasses:K}}}),Yl=["prop"],Ul={key:0,class:"fox-item__tip--icon"},Gl={class:"fox-item__tip--text"};function Xl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",Ul,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Gl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Yl)}const me=Oe(Wl,[["render",Xl]]);function Zl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=je(),l=Dt();Bt(!1);const i=r.computed(()=>l&&a?Lt(a,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=r.computed(()=>{const c={},f=l&&a?qt(a,!1):null;if(i.value&&f)if(i.value.type==="grid"){const w=jt(f,i.value,o.span,o.offset);Object.assign(c,w)}else if(i.value.type==="flow"){const w=Mt(f,i.value,o.span,o.offset,o.width);Object.assign(c,w)}else return o.width&&(c.width=ye(o.width)),c;else o.width&&(c.width=ye(o.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Jl,create:Ql,scope:nf}=re("slot-item"),Vn=Ql(Zl(Jl));function ei(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=je(),s=Dt();Bt(!1);const u=r.computed(()=>{const d={};if(s&&i){const c=Lt(i,!1),f=qt(i,!1);if(c.value&&f)if(c.value.type==="grid"){const w=jt(f,c.value,o.span,o.offset);Object.assign(d,w)}else if(c.value.type==="flow"){const w=Mt(f,c.value,o.span,o.offset,o.width);Object.assign(d,w)}else o.width&&(d.width=ye(o.width))}else o.width&&(d.width=ye(o.width));return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(o.divide)for(let w=0;w<f.length;w++){if(w>0){const x=r.h("div",{class:{[`${a}__divide`]:!0}});d.push(x)}d.push(f[w])}else Reflect.apply([].push,d,f)}const c={class:l.value,style:u.value};return r.h("div",c,d)}}}}const{componentName:ti,create:ni,scope:rf}=re("row-item"),On=ni(ei(ti)),ro={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function ri(e,t,o){return{props:{...ge,...Te,...ro},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0,[`${w}__disabled`]:l.value,[`${w}__readonly`]:i.value})),m=v=>{f.value=v,s("update:modelValue",v),s("input",v)},g=v=>{s("change",v)};let b=se(n,"hintText"),y=r.ref(!1);const T=v=>{let S=v.target.value;c.value=!0,de(b.value)||(y.value=!0),s("focus",S,v)},k=v=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let S=v.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),s("blur",S,v)},A=()=>{s("clear","")},R=r.ref(!1);let V=null;const O=()=>{n.showTooltip&&R.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{R.value=!0},150))},D=()=>{V&&(clearTimeout(V),R.value=!1,V=null)},I=r.computed(()=>R.value||y.value),L=r.computed(()=>R.value?f.value:b.value),H=r.computed(()=>ft(n.unit)>0),W=r.ref();return be({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const N={...a.attrs,ref:W,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:g,onInput:m,onFocus:T,onBlur:k,onMouseover:O,onMouseleave:D},S={};a.slots.prepend&&(S.prepend=a.slots.prepend),a.slots.append&&(S.append=a.slots.append),a.slots.prefix&&(S.prefix=a.slots.prefix),a.slots.suffix?S.suffix=a.slots.suffix:H.value&&(S.suffix=()=>[n.unit]);const _=[],q=r.h(p.ElInput,N,S);_.push(q);const z={default:()=>_};a.slots.default&&(z.label=a.slots.default),a.slots.default&&(z.fixedTip=a.slots.fixedTip);const F={...Se(n,ro),hintText:L.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,F,z)}}}}const{componentName:oi,create:ai,scope:li}=re("input-item"),In=ai(ri(oi,li,me));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function oo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ii(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let si=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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(He(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ui(){const e=r.getCurrentInstance();return new si(e.proxy)}function ao(e,t,o){const n=Ke(e,t),a=Ke(e,o);if(n!==a)return!1;const l=bt(e,t),i=bt(e,o);return l===i}function lo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){const s=oo(e,i);if(Array.isArray(s)&&s.length>0){const u=lo(e,l,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Ke(e,i)===l;else if(o==="item")u=ao(e,i,l);else{let d=bt(e,i);d==null&&(d=Ke(e,i)),u=d===l}if(u){a.push(i);break}}}}),a}function ci(e){return{text:e,value:e}}const io={modelValue:{type:[String,Object,Boolean,Number],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function fi(e,t,o){return{props:{...ge,...Te,...io},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),w=r.computed(()=>f.value?f.value.map(Z=>Ke(n,Z)).join(" "):""),x=(U,Z,E,B=!0)=>{const C=lo(n,U,Z,E);if(C===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],B&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let P=!0;if(C.length!==f.value.length)P=!1;else for(let j=0;j<C.length;j++){const G=C[j],ne=f.value[j];if(!ao(n,G,ne)){P=!1;break}}if(!P){f.value=C;let j=[],G=[],ne=[];C.forEach(Re=>{const St=bt(n,Re),Le=Ke(n,Re);j.push(St),ne.push(Le),n.valueType==="text"?G.push(Le):n.valueType==="item"?G.push(Re):G.push(St)});let le,ce,st;te(n.multiple)?(c.value=j,le=r.toRaw(G),ce=ne,st=r.toRaw(C)):(c.value=j[0]??"",le=r.toRaw(G[0]??""),ce=ne[0]??"",st=r.toRaw(C[0])),B&&(s("update:modelValue",le),s("change",le,st)),s("update:text",ce)}},m=r.ref(null),g=r.ref(null),b=r.computed(()=>g.value??m.value??[]),y=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,U=>te(U)),T=ui(),k=async(U,Z)=>{if(U){const E=await T.load("select",U,Z);if(E.length>0)if(typeof E[0]=="string"){let P=E.map(j=>ci(j));m.value=P}else m.value=E;else m.value=null}};r.watch([()=>n.source,()=>n.params],([U,Z])=>{g.value=null,k(U,Z)},{immediate:!y.value});let A=!1;const R=()=>{A||(A=!0,k(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([U,Z])=>{if(I()&&te(n.multiple)){qe(Z,c.value)||(c.value=Z);return}x(Z,n.valueType,b.value,!1)});let V=null,O=r.ref(!1);typeof n.remoteMethod=="function"&&(V=async U=>{if(U==null){g.value=null;return}O.value=!0;try{const Z=await n.remoteMethod(U);Z&&(g.value=Z)}catch(Z){g.value=null,console.error(Z)}O.value=!1});let D=null;typeof n.filterMethod=="function"&&(D=async U=>{if(U==null){g.value=null;return}O.value=!0;try{const Z=await n.filterMethod(U,m.value);Z&&(g.value=Z)}catch(Z){g.value=null,console.error(Z)}O.value=!1});const I=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",L=r.ref(!1),H=e,W=r.computed(()=>({[H]:!0})),v=U=>{n.allowCreate||I()&&te(n.multiple)?(s("update:modelValue",U),s("change",U),s("update:text",U),c.value=U):x(U,"value",b.value,!0)};let N=se(n,"hintText"),S=r.ref(!1);const _=U=>{let E=U.target.value;L.value=!0,de(N.value)||(S.value=!0),s("focus",E,U)},q=U=>{setTimeout(()=>{S.value&&(S.value=!1),L.value=!1},0);let E=U.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),ae.value||s("blur",E,U)},z=()=>{s("clear","")},$=r.ref(!1);let F=null;const K=()=>{n.showTooltip&&$.value===!1&&(F&&clearTimeout(F),F=setTimeout(()=>{$.value=!0},150))},Y=()=>{F&&(clearTimeout(F),$.value=!1,F=null)},Q=r.computed(()=>$.value||S.value),ee=r.computed(()=>$.value?w.value:N.value),ae=r.ref(!1),ie=U=>{ae.value=U,s("visible-change",U),U||s("selected")},M=U=>{s("remove-tag",U)},J=(U,Z)=>{const E=[];return U.forEach((B,C)=>{const P=oo(n,B);if(Array.isArray(P)&&P.length>0){const j=J(P,Z),G=Ke(n,B),le={key:`${G}_${C}`,label:G};E.push(r.h(p.ElOptionGroup,le,{default:()=>j}))}else{const j=bt(n,B),G=Ke(n,B),ne=ii(n,B),ce={key:`${j}_${C}`,label:G,disabled:ne,value:j};if(typeof Z=="function")E.push(r.h(p.ElOption,ce,{default:()=>Z(B)}));else if(n.optionType==="item"){const st={class:{"fox-select-item__option-left":!0}},Re=r.h("span",st,[j]),St={class:{"fox-select-item__option-right":!0}},Le=r.h("span",St,[G]),cr=r.h("div",{class:{"fox-select-item__option":!0}},[Re,Le]);E.push(r.h(p.ElOption,ce,{default:()=>cr}))}else n.optionType==="value"?E.push(r.h(p.ElOption,ce,{default:()=>[j]})):E.push(r.h(p.ElOption,ce))}}),E},X=r.ref();return be({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()}}),()=>{const Z={...a.attrs,ref:X,class:W.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:l.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:z,onChange:v,onFocus:_,onBlur:q,onVisibleChange:ie,onRemoveTag:M};typeof V=="function"&&(Z["remote-method"]=V,Z.loading=O.value),typeof D=="function"&&(Z["filter-method"]=D,Z.loading=O.value);const E={};a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.empty&&(E.empty=a.slots.empty),a.slots.options?E.default=a.slots.options:E.default=()=>J(b.value,a.slots.option);const B=[],C=r.h(p.ElSelect,Z,E);B.push(C);const P={default:()=>B};a.slots.default&&(P.label=a.slots.default),a.slots.fixedTip&&(P.fixedTip=a.slots.fixedTip);const G={...Se(n,io),hintText:ee.value,hintVisible:Q.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:K,onMouseleave:Y};return y.value&&(G["appear-listen"]=!0,G.onAppear=R),r.h(o,G,P)}}}}const{componentName:di,create:hi,scope:gi}=re("select-item"),Rn=hi(fi(di,gi,me));var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var so={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",d="day",c="week",f="month",w="quarter",x="year",m="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(v,N,S){var _=String(v);return!_||_.length>=N?v:""+Array(N+1-_.length).join(S)+v},A={s:k,z:function(v){var N=-v.utcOffset(),S=Math.abs(N),_=Math.floor(S/60),q=S%60;return(N<=0?"+":"-")+k(_,2,"0")+":"+k(q,2,"0")},m:function v(N,S){if(N.date()<S.date())return-v(S,N);var _=12*(S.year()-N.year())+(S.month()-N.month()),q=N.clone().add(_,f),z=S-q<0,$=N.clone().add(_+(z?-1:1),f);return+(-(_+(S-q)/(z?q-$:$-q))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:f,y:x,w:c,d,D:m,h:u,m:s,s:i,ms:l,Q:w}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},R="en",V={};V[R]=T;var O=function(v){return v instanceof H},D=function v(N,S,_){var q;if(!N)return R;if(typeof N=="string"){var z=N.toLowerCase();V[z]&&(q=z),S&&(V[z]=S,q=z);var $=N.split("-");if(!q&&$.length>1)return v($[0])}else{var F=N.name;V[F]=N,q=F}return!_&&q&&(R=q),q||!_&&R},I=function(v,N){if(O(v))return v.clone();var S=typeof N=="object"?N:{};return S.date=v,S.args=arguments,new H(S)},L=A;L.l=D,L.i=O,L.w=function(v,N){return I(v,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var H=function(){function v(S){this.$L=D(S.locale,null,!0),this.parse(S)}var N=v.prototype;return N.parse=function(S){this.$d=function(_){var q=_.date,z=_.utc;if(q===null)return new Date(NaN);if(L.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var $=q.match(b);if($){var F=$[2]-1||0,K=($[7]||"0").substring(0,3);return z?new Date(Date.UTC($[1],F,$[3]||1,$[4]||0,$[5]||0,$[6]||0,K)):new Date($[1],F,$[3]||1,$[4]||0,$[5]||0,$[6]||0,K)}}return new Date(q)}(S),this.$x=S.x||{},this.init()},N.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},N.$utils=function(){return L},N.isValid=function(){return this.$d.toString()!==g},N.isSame=function(S,_){var q=I(S);return this.startOf(_)<=q&&q<=this.endOf(_)},N.isAfter=function(S,_){return I(S)<this.startOf(_)},N.isBefore=function(S,_){return this.endOf(_)<I(S)},N.$g=function(S,_,q){return L.u(S)?this[_]:this.set(q,S)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(S,_){var q=this,z=!!L.u(_)||_,$=L.p(S),F=function(J,X){var U=L.w(q.$u?Date.UTC(q.$y,X,J):new Date(q.$y,X,J),q);return z?U:U.endOf(d)},K=function(J,X){return L.w(q.toDate()[J].apply(q.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(X)),q)},Y=this.$W,Q=this.$M,ee=this.$D,ae="set"+(this.$u?"UTC":"");switch($){case x:return z?F(1,0):F(31,11);case f:return z?F(1,Q):F(0,Q+1);case c:var ie=this.$locale().weekStart||0,M=(Y<ie?Y+7:Y)-ie;return F(z?ee-M:ee+(6-M),Q);case d:case m:return K(ae+"Hours",0);case u:return K(ae+"Minutes",1);case s:return K(ae+"Seconds",2);case i:return K(ae+"Milliseconds",3);default:return this.clone()}},N.endOf=function(S){return this.startOf(S,!1)},N.$set=function(S,_){var q,z=L.p(S),$="set"+(this.$u?"UTC":""),F=(q={},q[d]=$+"Date",q[m]=$+"Date",q[f]=$+"Month",q[x]=$+"FullYear",q[u]=$+"Hours",q[s]=$+"Minutes",q[i]=$+"Seconds",q[l]=$+"Milliseconds",q)[z],K=z===d?this.$D+(_-this.$W):_;if(z===f||z===x){var Y=this.clone().set(m,1);Y.$d[F](K),Y.init(),this.$d=Y.set(m,Math.min(this.$D,Y.daysInMonth())).$d}else F&&this.$d[F](K);return this.init(),this},N.set=function(S,_){return this.clone().$set(S,_)},N.get=function(S){return this[L.p(S)]()},N.add=function(S,_){var q,z=this;S=Number(S);var $=L.p(_),F=function(Q){var ee=I(z);return L.w(ee.date(ee.date()+Math.round(Q*S)),z)};if($===f)return this.set(f,this.$M+S);if($===x)return this.set(x,this.$y+S);if($===d)return F(1);if($===c)return F(7);var K=(q={},q[s]=n,q[u]=a,q[i]=o,q)[$]||1,Y=this.$d.getTime()+S*K;return L.w(Y,this)},N.subtract=function(S,_){return this.add(-1*S,_)},N.format=function(S){var _=this,q=this.$locale();if(!this.isValid())return q.invalidDate||g;var z=S||"YYYY-MM-DDTHH:mm:ssZ",$=L.z(this),F=this.$H,K=this.$m,Y=this.$M,Q=q.weekdays,ee=q.months,ae=function(X,U,Z,E){return X&&(X[U]||X(_,z))||Z[U].slice(0,E)},ie=function(X){return L.s(F%12||12,X,"0")},M=q.meridiem||function(X,U,Z){var E=X<12?"AM":"PM";return Z?E.toLowerCase():E},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Y+1,MM:L.s(Y+1,2,"0"),MMM:ae(q.monthsShort,Y,ee,3),MMMM:ae(ee,Y),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:ae(q.weekdaysMin,this.$W,Q,2),ddd:ae(q.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(F),HH:L.s(F,2,"0"),h:ie(1),hh:ie(2),a:M(F,K,!0),A:M(F,K,!1),m:String(K),mm:L.s(K,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:$};return z.replace(y,function(X,U){return U||J[X]||$.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(S,_,q){var z,$=L.p(_),F=I(S),K=(F.utcOffset()-this.utcOffset())*n,Y=this-F,Q=L.m(this,F);return Q=(z={},z[x]=Q/12,z[f]=Q,z[w]=Q/3,z[c]=(Y-K)/6048e5,z[d]=(Y-K)/864e5,z[u]=Y/a,z[s]=Y/n,z[i]=Y/o,z)[$]||Y,q?Q:L.a(Q)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return V[this.$L]},N.locale=function(S,_){if(!S)return this.$L;var q=this.clone(),z=D(S,_,!0);return z&&(q.$L=z),q},N.clone=function(){return L.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},v}(),W=H.prototype;return I.prototype=W,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",d],["$M",f],["$y",x],["$D",m]].forEach(function(v){W[v[1]]=function(N){return this.$g(N,v[0],v[1])}}),I.extend=function(v,N){return v.$i||(v(N,H,I),v.$i=!0),I},I.locale=D,I.isDayjs=O,I.unix=function(v){return I(1e3*v)},I.en=V[R],I.Ls=V,I.p={},I})})(so);var mi=so.exports;const Be=Pe(mi);var uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,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,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(b){this[g]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),T=60*y[1]+(+y[2]||0);return T===0?0:y[0]==="+"?-T:T}(g)}],f=function(g){var b=s[g];return b&&(b.indexOf?b:b.s.concat(b.f))},w=function(g,b){var y,T=s.meridiem;if(T){for(var k=1;k<=24;k+=1)if(g.indexOf(T(k,0,b))>-1){y=k>12;break}}else y=g===(b?"pm":"PM");return y},x={A:[i,function(g){this.afternoon=w(g,!1)}],a:[i,function(g){this.afternoon=w(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,d("seconds")],ss:[l,d("seconds")],m:[l,d("minutes")],mm:[l,d("minutes")],H:[l,d("hours")],h:[l,d("hours")],HH:[l,d("hours")],hh:[l,d("hours")],D:[l,d("day")],DD:[a,d("day")],Do:[i,function(g){var b=s.ordinal,y=g.match(/\d+/);if(this.day=y[0],b)for(var T=1;T<=31;T+=1)b(T).replace(/\[|\]/g,"")===g&&(this.day=T)}],M:[l,d("month")],MM:[a,d("month")],MMM:[i,function(g){var b=f("months"),y=(f("monthsShort")||b.map(function(T){return T.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[i,function(g){var b=f("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function m(g){var b,y;b=g,y=s&&s.formats;for(var T=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,L,H){var W=H&&H.toUpperCase();return L||y[H]||o[H]||y[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,N,S){return N||S.slice(1)})})).match(n),k=T.length,A=0;A<k;A+=1){var R=T[A],V=x[R],O=V&&V[0],D=V&&V[1];T[A]=D?{regex:O,parser:D}:R.replace(/^\[|\]$/g,"")}return function(I){for(var L={},H=0,W=0;H<k;H+=1){var v=T[H];if(typeof v=="string")W+=v.length;else{var N=v.regex,S=v.parser,_=I.slice(W),q=N.exec(_)[0];S.call(L,q),I=I.replace(q,"")}}return function(z){var $=z.afternoon;if($!==void 0){var F=z.hours;$?F<12&&(z.hours+=12):F===12&&(z.hours=0),delete z.afternoon}}(L),L}}return function(g,b,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var T=b.prototype,k=T.parse;T.parse=function(A){var R=A.date,V=A.utc,O=A.args;this.$u=V;var D=O[1];if(typeof D=="string"){var I=O[2]===!0,L=O[3]===!0,H=I||L,W=O[2];L&&(W=O[2]),s=this.$locale(),!I&&W&&(s=y.Ls[W]),this.$d=function(_,q,z){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*_);var $=m(q)(_),F=$.year,K=$.month,Y=$.day,Q=$.hours,ee=$.minutes,ae=$.seconds,ie=$.milliseconds,M=$.zone,J=new Date,X=Y||(F||K?1:J.getDate()),U=F||J.getFullYear(),Z=0;F&&!K||(Z=K>0?K-1:J.getMonth());var E=Q||0,B=ee||0,C=ae||0,P=ie||0;return M?new Date(Date.UTC(U,Z,X,E,B,C,P+60*M.offset*1e3)):z?new Date(Date.UTC(U,Z,X,E,B,C,P)):new Date(U,Z,X,E,B,C,P)}catch{return new Date("")}}(R,D,V),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),H&&R!=this.format(D)&&(this.$d=new Date("")),s={}}else if(D instanceof Array)for(var v=D.length,N=1;N<=v;N+=1){O[1]=D[N-1];var S=y.apply(this,O);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}N===v&&(this.$d=new Date(""))}else k.call(this,A)}}})})(uo);var pi=uo.exports;const yi=Pe(pi);var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n,a){var l=n.prototype,i=l.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},l.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(w){switch(w){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),w==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),w==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return w}});return i.bind(this)(f)}}})})(co);var bi=co.exports;const wi=Pe(bi);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n,a){var l=n.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,w,x,m,g){var b=f.name?f:f.$locale(),y=i(b[w]),T=i(b[x]),k=y||T.map(function(R){return R.slice(0,m)});if(!g)return k;var A=b.weekStart;return k.map(function(R,V){return k[(V+(A||0))%7]})},u=function(){return a.Ls[a.locale()]},d=function(f,w){return f.formats[w]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,b){return g||b.slice(1)})}(f.formats[w.toUpperCase()])},c=function(){var f=this;return{months:function(w){return w?w.format("MMMM"):s(f,"months")},monthsShort:function(w){return w?w.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(f,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(f.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(w){return d(f,w)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(f){return s(u(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(fo);var vi=fo.exports;const Si=Pe(vi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){var o="week",n="year";return function(a,l,i){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(d),f=i(this).endOf(o);if(c.isBefore(f))return 1}var w=i(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),x=this.diff(w,o,!0);return x<0?i(this).startOf("week").week():Math.ceil(x)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ho);var Ti=ho.exports;const $i=Pe(Ti);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),i=this.year();return l===1&&a===11?i+1:a===0&&l>=52?i-1:i}}})})(go);var xi=go.exports;const Ci=Pe(xi);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?i:this.add(l-i,"day")}}})})(mo);var Ei=mo.exports;const Ni=Pe(Ei);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(po);var ki=po.exports;const Vi=Pe(ki);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(yo);var Oi=yo.exports;const Ii=Pe(Oi);Be.extend(Si),Be.extend(wi),Be.extend(yi),Be.extend($i),Be.extend(Ci),Be.extend(Ni),Be.extend(Vi),Be.extend(Ii);const Ie={format(e,t){return Be(e).format(t)},parser(e,t){return Be(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},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),a=this.getNumTwoBit(e.getDate());return[o,n,a].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 a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),i=a.getDate(),s=6-l;return n!==0&&(l=l==0?7:l,s=7-l),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),i=Math.round((a.valueOf()-l.valueOf())/864e5);let s=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let i=a.getDay();if(n===0){const u=l-i*864e5,d=l+(6-i)*864e5,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}else{i=i==0?7:i;const s=24*60*60*1e3,u=l-(i-1)*s,d=l+(7-i)*s,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ie.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ie.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i}},bo={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}},wo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ri(e,t,o){return{props:{...ge,...Te,...bo,...wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=r.computed(()=>N.value&&Array.isArray(f.value)&&f.value.length==2?f.value[0]:f.value),x=r.computed(()=>N.value?"longTermKey":"normalKey"),m=$=>{if(N.value&&n.type==="daterange"){const F=[...f.value];F[0]=$,f.value=F}else f.value=$;s("update:modelValue",f.value),s("change",f.value)},g=r.computed(()=>N.value&&n.type==="daterange"?"date":n.type),b=e,y=r.computed(()=>({[`${b}__input`]:!0}));let T=se(n,"hintText"),k=r.ref(!1);const A=$=>{let K=$.target.value;c.value=!0,de(T.value)||(k.value=!0),s("focus",K,$)},R=$=>{setTimeout(()=>{k.value&&(k.value=!1),c.value=!1},0);let K=$.target.value;n.maxLength&&K.length>Number(n.maxLength)&&(K=K.slice(0,Number(n.maxLength))),s("blur",K,$)},V=()=>{s("clear","")},O=$=>{s("calendar-change",$)},D=($,F,K)=>{s("panel-change",$,F,K)},I=$=>{s("visible-change",$)},L=Ee(r.computed(()=>n.longTermValue),"longTermText",Ve.Near),H=Ee(r.computed(()=>n.longTermValue),"longTermValue",Ve.Near),W=Ee(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ve.Near);let v=null;const N=r.ref(te(n.longTerm)),S=$=>{if(N.value=$,s("update:longTerm",$),$){if(v=f.value,n.type==="daterange"){const F=[];Array.isArray(H.value)?(F[0]=f.value?f.value[0]??H.value[0]:null,F[1]=H.value[1]??H.value[0]):(F[0]=f.value?f.value[0]??H.value:null,F[1]=N.value),F[0]||(F[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),f.value=F}else Array.isArray(H.value)?f.value=H.value[1]??H.value[0]:f.value=H.value,f.value||(f.value=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date);s("update:modelValue",f.value)}else{if(n.type==="daterange"){const F=[];F[0]=Array.isArray(f.value)?f.value[0]:f.value,Array.isArray(v)?F[1]=v[1]:F[1]=v,F[0]||(F[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),f.value=F}else f.value=v;s("update:modelValue",f.value)}},_=te(n.isLongTerm);if(_){const $=()=>{if(N.value===!0){if(v=f.value,n.type==="daterange"){const F=[f.value[0]];Array.isArray(H.value)?F[1]=H.value[1]??H.value[0]:F[1]=N.value,F[0]||(F[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),f.value=F}else f.value=H.value;s("update:modelValue",f.value)}else qe(H.value,f.value)&&(N.value=!0)};$(),r.watch([()=>n.longTerm],([F])=>{N.value!==F&&$()}),r.watch([()=>f.value],([F])=>{let K=!1;if(n.type==="daterange"&&Array.isArray(F))try{let Y=F[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Ie.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(W.value)&&W.value.findIndex(ae=>Y==ae)!==-1)&&(K=!0)}catch(Y){console.error(Y)}N.value!==K&&(N.value=K)},{immediate:!0})}const q=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),z=r.ref();return be({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const F={...a.attrs,key:x.value,type:g.value,ref:z,class:y.value,placeholder:d.placeholder.value,disabled:l.value,readonly:i.value,modelValue:w.value,valueFormat:n.valueFormat,"onUpdate:modelValue":m,onClear:V,onFocus:A,onBlur:R,onCalendarChange:O,onPanelChange:D,onVisibleChange:I},K={};a.slots["range-separator"]&&(K["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(K.default=a.slots.cell);const Y=[],Q=r.h(p.ElDatePicker,F,K);Y.push(Q);const ee={default:()=>Y};if(a.slots.default&&(ee.label=a.slots.default),a.slots.fixedTip&&(ee.fixedTip=a.slots.fixedTip),_){if(N.value){const J=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=r.h("div",{class:["fox-date-item__long-text"]},[L.value]),U={class:q.value},Z=r.h("div",U,{default:()=>[J,X]});Y.push(Z)}if(!i.value&&!l.value){const J={label:L.value,disabled:i.value||l.value,modelValue:N.value,"onUpdate:modelValue":S},X=r.h(p.ElCheckbox,J),U=r.h("div",{class:{[`${b}__append`]:!0}},[X]);ee.append=()=>U}}const ie={...Se(n,bo,wo),class:{[`${b}__wrapper`]:!0,"has-append":_},hintText:T.value,hintVisible:k.value,prop:`${n.prop}_item`};return r.h(o,ie,ee)}}}}const{componentName:Fi,create:Ai,scope:Di}=re("date-item"),Fn=Ai(Ri(Fi,Di,me)),vo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Bi(e,t,o){return{props:{...ge,...Te,...vo},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),m=V=>{f.value=V,s("update:modelValue",V),s("change",V)};let g=se(n,"hintText"),b=r.ref(!1);const y=V=>{let D=V.target.value;c.value=!0,de(g.value)||(b.value=!0),s("focus",D,V)},T=V=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let D=V.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,V)},k=()=>{s("clear","")},A=V=>{s("visible-change",V)},R=r.ref();return be({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const O={...a.attrs,ref:R,class:x.value,placeholder:d.placeholder.value,disabled:l.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":m,onClear:k,onFocus:y,onBlur:T,onVisibleChange:A},D={},I=[],L=r.h(p.ElTimePicker,O,D);I.push(L);const H={default:()=>I};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const v={...Se(n,vo),hintText:g.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,v,H)}}}}const{componentName:Li,create:qi,scope:Mi}=re("time-item"),An=qi(Bi(Li,Mi,me)),So={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ji(e,t,o){return{props:{...ge,...Te,...So},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),m=R=>{f.value=R,s("update:modelValue",R),s("change",R)};let g=se(n,"hintText"),b=r.ref(!1);const y=R=>{let O=R.target.value;c.value=!0,de(g.value)||(b.value=!0),s("focus",O,R)},T=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let O=R.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,R)},k=()=>{s("clear","")},A=r.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const V={...a.attrs,ref:A,class:x.value,placeholder:d.placeholder.value,disabled:l.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":m,onClear:k,onFocus:y,onBlur:T},O={},D=[],I=r.h(p.ElTimeSelect,V,O);D.push(I);const L={default:()=>D};a.slots.default&&(L.label=a.slots.default),a.slots.fixedTip&&(L.fixedTip=a.slots.fixedTip);const W={...Se(n,So),hintText:g.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(o,W,L)}}}}const{componentName:_i,create:Pi,scope:Hi}=re("time-select-item"),Dn=Pi(ji(_i,Hi,me));function To(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function $o(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=pr(`${e}`,`${t}`);return To(n)}else{let n=nn(`${e}`,yr(`${t}`),20);return To(n)}}function zi(e,t=-1,o=!1,n=3,a=","){return xt(e,t,o,n,a)}function xo(e,t,o,n,a=!0){if(e=="")return"";if(e=br(e),t=ve(t),t==1)return e;if(n)e=$o(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ve(o)+2,"0"):e=nn(e,1,ve(o)));else{let l=-1*t;e=$o(e,l)}return e}function Co(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),a=rn(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),a=rn(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const Eo={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 Ki(e,t,o){return{props:{...ge,...Te,...Eo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(!1),d=se(n,"modelValue"),c=r.ref("");r.watch([()=>d.value,()=>n.rates,()=>n.precision],([v,N,S])=>{if(de(v)){c.value="";return}const _=xo(v,N,S,!1);c.value!==_&&(c.value=_)},{immediate:!0});const f=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:w}=Fe.useFoxI18n(t),x=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!de(c.value)?v=zi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=w(["placeholder",v]),v}),m=e,g=r.computed(()=>({[m]:!0,[`${m}__disabled`]:l.value,[`${m}__placeholder`]:c.value.length>0})),b=Ee(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const y=r.ref(""),T=r.computed(()=>{let v=y.value;return de(v)&&(v=n.errorTip??""),v}),k=r.ref(""),A=r.ref(!1),R=(v,N)=>{if(v=`${v}`,de(v)){c.value="",d.value="",N.forEach(S=>{s(S,"")}),te(n.showTip)&&A.value&&(A.value=!1);return}if(v.length>=2){let S=v;if(S.charAt(0)=="-"&&(S=S.substring(1)),S.length>=2&&S.charAt(0)=="0"&&S.charAt(1)!="."){r.triggerRef(c);return}}if(v!="-"){if(!Nr(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&kr(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Vr(v)>Number(n.decimalLength)){r.triggerRef(c);return}let S=Co(v,n);if(S.maxValid===!1){y.value=S.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}k.value=v,te(n.showTip)&&(A.value=v.length>0),c.value=v,d.value=xo(v,n.rates,n.precision,!0),N.forEach(S=>{s(S,d.value)})},V=v=>{R(v,["update:modelValue","input"])},O=v=>{R(v,["update:modelValue","change"])},D=v=>{if(u.value=!0,te(n.showTip)){let N=c.value;de(N)&&(N=n.hintText),de(N)||(k.value=N,A.value=!0)}y.value="",s("focus",d.value,v)},I=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&A.value===!0&&(A.value=!1)},0),!de(c.value)){let N=Co(c.value,n);if(N.minValid===!1||N.maxValid===!1){y.value=N.message;return}}s("update:modelValue",d.value,v),s("blur",d.value,v)},L=()=>{s("clear","")},H=r.computed(()=>ft(n.unit)>0),W=r.ref();return be({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const N={...a.attrs,ref:W,class:g.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onInput:V,onChange:O,onFocus:D,onBlur:I},S={};a.slots.prepend&&(S.prepend=a.slots.prepend),a.slots.append&&(S.append=a.slots.append),a.slots.prefix&&(S.prefix=a.slots.prefix),a.slots.suffix?S.suffix=a.slots.suffix:H.value&&(S.suffix=()=>[n.unit]);const _=[],q=r.h(p.ElInput,N,S);_.push(q);const z={default:()=>_};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const F={...Se(n,Eo),errorTip:T.value,hintText:k.value,hintVisible:A.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,F,z)}}}}const{componentName:Wi,create:Yi,scope:Ui}=re("money-item"),Bn=Yi(Ki(Wi,Ui,me)),No={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 Gi(e,t,o){return{props:{...ge,...Te,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0,[`${w}__append`]:V.value})),m=r.computed(()=>({[`${w}__unit`]:!0})),g=D=>{f.value=D,s("update:modelValue",D),s("input",D)},b=D=>{s("change",D)};let y=se(n,"hintText"),T=r.ref(!1);const k=D=>{let L=D.target.value;c.value=!0,de(y.value)||(T.value=!0),s("focus",L,D)},A=D=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let L=D.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,D)},R=()=>{s("clear","")},V=r.computed(()=>ft(n.unit)>0),O=r.ref();return be({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const I={...a.attrs,ref:O,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onChange:b,onInput:g,onFocus:k,onBlur:A},L={},H=[],W=r.h(p.ElInputNumber,I,L);H.push(W);const v={default:()=>H};a.slots.default&&(v.label=a.slots.default),a.slots.fixedTip&&(v.fixedTip=a.slots.fixedTip);const S={...Se(n,No),hintText:y.value,hintVisible:T.value,prop:`${n.prop}_item`};if(a.slots.append)v.append=a.slots.append;else if(V.value){const q={class:m.value},z=r.h("div",q,[n.unit]);v.append=()=>z}return r.h(o,S,v)}}}}const{componentName:Xi,create:Zi,scope:Ji}=re("input-number-item"),Ln=Zi(Gi(Xi,Ji,me));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ze(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Qi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let es=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=De(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(He(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function ts(){const e=r.getCurrentInstance();return new es(e.proxy)}function qn(e,t,o){const n=Xe(e,t),a=Xe(e,o);if(n!==a)return!1;const l=Ze(e,t),i=Ze(e,o);return l===i}function ko(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let i=0;Array.isArray(l)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=ko(e,s,o,n);a.push(u)}else{let u=!1;for(let d of l){if(o==="text")u=Xe(e,d)===s;else if(o==="item")u=qn(e,d,s);else{let c=Ze(e,d);c==null&&(c=Xe(e,d)),u=c===s}if(u){a.push(d),l=Qi(e,d);break}}if(!u)break}}return a}function ns(e){return{text:e,value:e}}const Vo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1}};function rs(e,t,o){return{props:{...ge,...Te,...Vo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),w=r.computed(()=>f.value?f.value.map(J=>Xe(n,J)).join(" "):""),x=(M,J,X,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===M)return;c.value=M;const B=r.toRaw(M);if(U){const C=ie?.value.getCheckedNodes();if(C)if(n.multiple){const P=[];C.forEach(j=>{const ne=(j.pathNodes??[]).map(le=>le.data);P.push(ne)}),s("update:pathNodes",P)}else{const j=(C[0]?.pathNodes??[]).map(G=>G.data);s("update:pathNodes",j)}s("update:modelValue",B),s("change",B)}}const Z=ko(n,M,J,X);if(Z===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let E=!0;if(Z.length!==f.value.length)E=!1;else for(let B=0;B<Z.length;B++){const C=Z[B],P=f.value[B];if(Array.isArray(C)){if(!Array.isArray(P)||C.length!==P.length)E=!1;else for(let j=0;j<C.length;j++)if(!qn(n,C[j],P[j])){E=!1;break}}else qn(n,C,P)||(E=!1);if(!E)break}if(!E){f.value=Z;let B=[],C=[];Z.forEach(j=>{if(Array.isArray(j)){let G=[],ne=[];for(let le of j)G.push(Ze(n,le)),n.valueType==="text"?ne.push(Xe(n,le)):n.valueType==="item"?ne.push(le):ne.push(Ze(n,le));B.push(G),C.push(ne)}else B.push(Ze(n,j)),n.valueType==="text"?C.push(Xe(n,j)):n.valueType==="item"?C.push(j):C.push(Ze(n,j))}),c.value=B;const P=r.toRaw(C);U&&(s("update:pathNodes",Z),s("update:modelValue",P),s("change",P))}},m=r.ref([]),g=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,M=>te(M)),b=ts(),y=async(M,J)=>{if(M){const X=await b.load("cascader",M,J);if(X.length>0)if(typeof X[0]=="string"){let E=X.map(B=>ns(B));m.value=E}else m.value=X}};r.watch([()=>n.source,()=>n.params],async([M,J])=>{y(M,J)},{immediate:!(g.value||n.lazy)});let T=!1;const k=()=>{T||(T=!0,y(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([M,J])=>{x(J,n.valueType,M,!1)}),n.lazy&&x(n.modelValue,"value",[],!1);let A=null,R=r.ref(!1);typeof n.remoteMethod=="function"&&(A=async M=>{if(M!=null){R.value=!0;try{const J=await n.remoteMethod(M);m.value=J}catch(J){console.error(J)}R.value=!1}});const V=r.ref(!1),O=e,D=r.computed(()=>({[O]:!0})),I=r.computed(()=>{let M={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(M.multiple=!0),n.props&&Object.assign(M,n.props),n.lazy&&(M.lazy=!0,M.lazyLoad=async(J,X)=>{const U=await b.load("cascader",n.source,J,!0);X(U)}),M}),L=M=>{n.allowCreate?(s("update:modelValue",M),s("change",M),c.value=M):x(M,"value",m.value,!0)};let H=se(n,"hintText"),W=r.ref(!1);const v=M=>{let X=M.target.value;V.value=!0,de(H.value)||(W.value=!0),s("focus",X,M)},N=M=>{setTimeout(()=>{W.value&&(W.value=!1),V.value=!1},0);let X=M.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),Y.value||s("blur",X,M)},S=()=>{s("clear","")},_=r.ref(!1);let q=null;const z=()=>{n.showTooltip&&_.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{_.value=!0},150))},$=()=>{q&&(clearTimeout(q),_.value=!1,q=null)},F=r.computed(()=>_.value||W.value),K=r.computed(()=>_.value?w.value:H.value),Y=r.ref(!1),Q=M=>{Y.value=M,s("visible-change",M),M||s("selected")},ee=M=>{s("remove-tag",M)},ae=M=>{s("expand-change",M)},ie=r.ref();return be({focus:()=>{ie?.value.focus()},blur:()=>{ie?.value.blur()},getCheckedNodes:()=>ie?.value.getCheckedNodes()}),()=>{const J={...a.attrs,ref:ie,class:D.value,props:I.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:l.value||i.value,options:m.value,modelValue:c.value,onClear:S,onChange:L,onFocus:v,onBlur:N,onVisibleChange:Q,onRemoveTag:ee,expandChange:ae};typeof A=="function"&&(J["remote-method"]=A,J.loading=R.value);const X={};a.slots.option&&(X.default=a.slots.option),a.slots.empty&&(X.empty=a.slots.empty);const U=[],Z=r.h(p.ElCascader,J,X);U.push(Z);const E={default:()=>U};a.slots.default&&(E.label=a.slots.default),a.slots.fixedTip&&(E.fixedTip=a.slots.fixedTip);const C={...Se(n,Vo),hintText:K.value,hintVisible:F.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:z,onMouseleave:$};return g.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=k),r.h(o,C,E)}}}}const{componentName:os,create:as,scope:ls}=re("cascader-item"),Mn=as(rs(os,ls,me)),Oo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function is(e,t,o){return{props:{...ge,...Te,...Oo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),m=O=>{f.value=O,s("update:modelValue",O),s("input",O)},g=O=>{s("change",O)},b=O=>{s("select",O)};let y=se(n,"hintText"),T=r.ref(!1);const k=O=>{let I=O.target.value;c.value=!0,de(y.value)||(T.value=!0),s("focus",I,O)},A=O=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let I=O.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,O)},R=()=>{s("clear","")},V=r.ref();return be({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const D={...a.attrs,ref:V,class:x.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:f.value,onClear:R,onChange:g,onInput:m,onFocus:k,onBlur:A,onSelect:b},I={};a.slots.prepend&&(I.prepend=a.slots.prepend),a.slots.append&&(I.append=a.slots.append),a.slots.prefix&&(I.prefix=a.slots.prefix),a.slots.suffix&&(I.suffix=a.slots.suffix),a.slots.option&&(I.default=a.slots.option);const L=[],H=r.h(p.ElAutocomplete,D,I);L.push(H);const W={default:()=>L};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const N={...Se(n,Oo),hintText:y.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,N,W)}}}}const{componentName:ss,create:us,scope:cs}=re("autocomplete-item"),jn=us(is(ss,cs,me));function fs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=t;for(let d=0;u&&d<l.length;d++){let c=l[d],f=u.find(w=>w[n]===c);if(!f)break;i.push(f[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<l.length;u++){let d=t[u],c=l[u];const f=d.find(w=>w[n]===c);if(!f)break;i.push(f[o])}else{let u=t;for(let d=0;u&&d<l.length;d++){let c=l[d],f=u.find(w=>w[n]===c);if(!f)break;i.push(f[o]),u=f[a]}}return i}let ds=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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(He(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function hs(){const e=r.getCurrentInstance();return new ds(e.proxy)}const Io={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 gs(e,t){return{props:{...Io},setup(o,{attrs:n,slots:a}){const l=hs(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([d,c])=>{i.value=await l.load(o.sourceType,d,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=fs(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,d,{default:()=>s.value}):r.h(u,d,s.value)}}}}const{componentName:of,create:ms,scope:af}=re("mapping"),wt=ms(gs());function ps(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=l.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=l.substring(0,s);n=n[f][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function ys(e,t){return{props:{...Io},setup(o,{attrs:n,slots:a}){return()=>{const l={default:i=>{const s=ps(i.row,i.column.property);return a.default?r.h(wt,{...o,modelValue:s},{default:a.default}):r.h(wt,{...o,modelValue:s})}};return r.h(p.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:bs,scope:sf}=re("table-mapping-column"),_n=bs(ys()),ws=Symbol.for("TableStateKey");function Ro(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=l.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=l.substring(0,s);n=n[f][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function vs(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(ws,{});return()=>{const l=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=Ro(s.row,s.column.property),d=l?Ro(l,s.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},w=r.h("span",f,[r.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":c}};return r.h("label",x,[w])}};return r.h(p.ElTableColumn,{...n},i)}}}}const{componentName:uf,create:Ss,scope:cf}=re("table-radio-column"),Pn=Ss(vs()),Ts={},$s={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"},xs=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Cs(e,t){return r.openBlock(),r.createElementBlock("svg",$s,xs)}const Es=Oe(Ts,[["render",Cs]]),{componentName:df,create:Ns,scope:hf}=re("table-setting"),ks={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:"不固定"}},Vs=Ns({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Es,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...ks},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter($=>$.label===""||$.type?!1:$.fixed===""||$.fixed===!0||$.fixed==="left")),i=r.computed(()=>a.value.filter($=>$.label===""||$.type?!1:$.fixed==="right")),s=r.computed(()=>a.value.filter($=>!($.label===""||$.type||$.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||i.value.length>0)&&s.value.length>0),d=r.computed(()=>l.value.length>0),c=r.computed(()=>i.value.length>0),f=$=>$.length>1,w=$=>{const F=[];a.value=$.map((Y,Q)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&F.push(Y.prop),{...Y,sortIndex:Q})),s.value.length+l.value.length+i.value.length===F.length?T.value=!0:F.length>0&&(k.value=!0),V.value=F},x=$=>$?$.type?$.type:$.label?$.prop:"":"",m=($,F)=>{if($.length!==F.length)return!1;const K=$.map(Y=>x(Y));for(let Y of F){const Q=x(Y);if(K.indexOf(Q)===-1)return!1}return!0},g=$=>{if(!$){const F=e.tableRef.getColumnSetting(),K=F.srcColumnPropertyList;n=K.map((Y,Q)=>({...Y,sortIndex:Q})),$=F.columnPropertyList,$&&$.length>0&&m(K,$)||($=K)}w($)},b=()=>{e.tableRef.setColumnSetting(a.value)},y=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),k=r.ref(!1),A=$=>{const F=[];a.value.forEach(Y=>{$&&!(Y.label===""||Y.type)&&F.push(Y.prop),Y.visible=$}),T.value=!1,k.value=!1,s.value.length+l.value.length+i.value.length===F.length?T.value=!0:F.length>0&&(k.value=!0),V.value=F,b()},R=()=>{g(n),b()},V=r.ref([]),O=$=>{a.value.forEach(K=>{if(K.label===""||K.type)return;const Y=$.indexOf(K.prop)!==-1;K.visible=Y}),T.value=!1,k.value=!1;const F=s.value.length+l.value.length+i.value.length;$.length===F?T.value=!0:$.length>0&&(k.value=!0),b()},D=()=>{g()};r.onMounted(()=>{setTimeout(()=>{g()},50)});const I={currentRow:null,index:null,roleType:null},L=$=>$?$.dataset&&$.dataset.role==="row"?$:$.tagName.toLowerCase()!=="body"?($=$.parentElement,L($)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:c,isDraggble:f,isCheckAll:T,isIndeterminate:k,handleCheckAllChange:A,handleReset:R,checkedValue:V,handleCheckChange:O,onShow:D,onDragStart:$=>{const F=$.currentTarget;F&&F.dataset&&(I.roleType=F.dataset.roleType,I.index=F.dataset.index)},onDragEnd:$=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},onDragOver:$=>{const F=$.currentTarget;$.relatedTarget;const K=L(F);if(!K)return;const Y=K.dataset&&K.dataset.roleType;I.roleType===Y&&($.preventDefault(),I.currentRow&&I.currentRow!==K&&I.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),I.currentRow=K)},onDragLeave:$=>{$.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},onDrop:$=>{const F=$.currentTarget,K=L(F);if(!K)return;const Y=K.dataset&&K.dataset.roleType;if(I.roleType!==Y)return;$.preventDefault();const Q=Number(I.index),ee=Number(K.dataset.index);if(Q!==ee){if(Q<ee){const ae=a.value[Q];a.value.splice(Q,1),a.value.splice(ee,0,ae)}else{const ae=a.value[Q];a.value.splice(Q,1),a.value.splice(ee+1,0,ae)}w(a.value),b()}},toLeftFixed:$=>{const F=a.value[$];F.fixed="left",b()},toRightFixed:$=>{const F=a.value[$];F.fixed="right",b()},toUnFixed:$=>{const F=a.value[$];F.fixed=void 0,b()},checkboxLabelStyle:y}}}),Os={class:"fox-table-setting"},Is={class:"fox-table-setting__header"},Rs={class:"fox-table-setting__body"},Fs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},As={key:0,class:"fox-table-setting__body-title"},Ds=["data-index","draggable"],Bs={class:"tools-item"},Ls={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ms=["data-index","draggable"],js={class:"tools-item"},_s={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ps={key:0,class:"fox-table-setting__body-title"},Hs=["data-index","draggable"],zs={class:"tools-item"};function Ks(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),d=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),f=r.resolveComponent("fox-tooltip"),w=r.resolveComponent("Download"),x=r.resolveComponent("fox-checkbox"),m=r.resolveComponent("FoxCheckboxGroup"),g=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(g,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Os,[r.createElementVNode("div",Is,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Rs,[r.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[2]||(t[2]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[3]||(t[3]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[4]||(t[4]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[5]||(t[5]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Bs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toUnFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ds))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ls,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",qs,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[7]||(t[7]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[8]||(t[8]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[9]||(t[9]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[10]||(t[10]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",js,[r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toRightFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ms))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",_s,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ps,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,b=>(r.openBlock(),r.createElementBlock("div",{key:b.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":b.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[12]||(t[12]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[13]||(t[13]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[14]||(t[14]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[15]||(t[15]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(x,{class:"checkbox-item",label:b.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(b.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",zs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toUnFixed(b.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toLeftFixed(b.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Hs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const zt=Oe(Vs,[["render",Ks]]);let Ws=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,i,s){if(Array.isArray(o)){let d=(n-1)*a,c=d+a;c>o.length&&(c=o.length);const f=o.slice(d,c);return{totalSize:o.length,page:f}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,i,s]);const u=De(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(He(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,i,s]))}};function Ys(){const e=r.getCurrentInstance();return new Ws(e.proxy)}class Us{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=De(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=De(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=De(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Gs(){const e=r.getCurrentInstance();return new Us(e.proxy)}const Xs=Symbol.for("TableStateKey");function Zs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=l.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=l.substring(0,s);n=n[f][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function Hn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],i=Zs(n,a);if(l!==i)return!1}return!0})}const Fo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Ao={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},zn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Js(e,t,o){return{inheritAttrs:!1,props:{...ge,...Te,...Fo,...Ao,...zn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Fe.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...C){return k.value}}},n.prop??a.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),d=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),f=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),w=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,C=>{w.value=C});const x=C=>{w.value=C,i("page-index-change",C)},m=r.ref(n.pageSize);r.watch(()=>n.pageSize,C=>{m.value=C});const g=C=>{m.value=C,i("page-size-change",C)},b=r.shallowRef({}),y=r.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),k=r.ref(),A=Ys();let R=!0;const V=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),O=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,C=>te(C)),D=async(C,P,j,G)=>{try{const ne=await A.load("table",C,P,j,G,R,l.value);T.value=ne.totalSize,k.value=ne.page}catch(ne){console.error("[FoxUI] Load Table Data Fail",ne),T.value=0,k.value=[]}R=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([w,m],([C,P],[j,G])=>{P!==G&&(w.value=1,C=1),D(n.data,C,P,y.value)}),r.watch([()=>n.data,y],([C,P],[j,G])=>{V()&&(C!==j&&(R=!0),!(!Array.isArray(C)&&qe(C,j)&&qe(P,G))&&D(C,w.value,m.value,P))},{deep:!0});const I=(C={},P=!1)=>new Promise(j=>{b.value=r.toRaw(C??{}),r.triggerRef(b),P||(w.value=n.pageIndex??1),r.nextTick(async()=>{await D(n.data,w.value,m.value,y.value),j()})}),L=()=>{T.value=0,k.value=[]};let H=!1;const W=()=>{H||(H=!0,I())};V()&&!O.value&&I();const v=r.ref(null);r.provide(Xs,{currentRow:v});const N=(C,P)=>{v.value=C,i("current-change",C,P)},S=(C,P,j)=>{i("row-click",C,P,j),te(n.rowClickSelectable)===!0&&B?.value.toggleRowSelection(C)},_=[],q=(C,P)=>{if(i("expand-change",C,P),te(n.uniqueExpansion))if(Array.isArray(P)&&P.length==0){const j=_.length;_.splice(0,j)}else{_.forEach(G=>{G!==C&&B?.value.toggleRowExpansion(G,!1)});const j=_.length;_.splice(0,j,C)}},z=a.attrs.id??n.prop??a.attrs.name,$=Gs(),F=r.ref([]);let K=[];const Y=()=>({srcColumnPropertyList:K.map(P=>({...P})),columnPropertyList:F.value}),Q=C=>{F.value=[...C],ae()},ee=async()=>{const C=await $.load(z);C&&(F.value=C)},ae=()=>{$.save(z,F.value)},ie=()=>{$.remove(z)};ee();const M=C=>C?C.type?C.type:C.label?C.prop:"":"",J=r.computed(()=>{if(typeof a.slots.default=="function"){const C=a.slots.default(),P=new Map;if(K=[],C.forEach(j=>{const G=j;if(!G.props)return;const ne=M(G.props);P.set(ne,j);const le={label:"",prop:""};Object.assign(le,G.props),K.push(le)}),F.value.length===K.length){const j=[];for(let G of F.value){const ne=M(G),le=P.get(ne);if(!le)return C;if(G.visible===!1)continue;const ce=le;ce.props.fixed=G.fixed,j.push(ce)}return j}return C}return[]}),X=r.shallowRef(new Map),U=({column:C,rowIndex:P})=>{const j=`${P}_${C.property}`;return X.value.get(j)??""},Z=C=>typeof C=="function"?P=>{const j=[];let G=U(P);return G&&j.push(G),G=C(P),G&&j.push(G),j.length===0?"":j.join(" ")}:U,E=(C,P,j)=>{const G=`${C}_${P}`;j?X.value.set(G,j):X.value.delete(G),r.triggerRef(X)},B=r.ref();return be({clearSelection:()=>B?.value.clearSelection(),getSelectionRows:()=>B?.value.getSelectionRows(),toggleRowSelection:(C,P)=>{B?.value.toggleRowSelection(C,P)},toggleRowSelectionByProp:(C,P)=>{if(!k.value)return;const j=Hn(k.value,C);j.length!==0&&j.forEach(G=>{B?.value.toggleRowSelection(G,P)})},toggleAllSelection:()=>{B?.value.toggleAllSelection()},toggleRowExpansion:(C,P)=>{B?.value.toggleRowExpansion(C,P)},toggleRowExpansionByProp:(C,P)=>{if(!k.value)return;const j=Hn(k.value,C);j.length!==0&&j.forEach(G=>{B?.value.toggleRowExpansion(G,P)})},setCurrentRow:C=>{B?.value.setCurrentRow(C)},setCurrentRowByProp:C=>{if(!k.value)return;const P=Hn(k.value,C);P.length!==0&&B?.value.setCurrentRow(P[0])},getCurrentRow:()=>v.value,clearSort:()=>{B?.value.clearSort()},clearFilter:C=>{B?.value.clearFilter(C)},doLayout:()=>{B?.value.doLayout()},sort:(C,P)=>{B?.value.sort(C,P)},scrollTo:(C,P)=>{B?.value.scrollTo(C,P)},setScrollTop:C=>{B?.value.setScrollTop(C)},setScrollLeft:C=>{B?.value.setScrollLeft(C)},loadData:I,clearData:L,getData(){return k.value},getTotalSize(){return T.value},getPageIndex(){return w.value},getPageSize(){return m.value},getColumnSetting:Y,setColumnSetting:Q,removeColumnSetting:ie,setCellClassName:E}),()=>{const P={...a.attrs,onCurrentChange:N,onRowClick:S,onExpandChange:q,data:k.value,ref:B,class:u.value,"cell-class-name":Z(n.cellClassName)},j={};a.slots.default&&(j.default=()=>J.value),a.slots.append&&(j.append=a.slots.append),a.slots.empty&&(j.empty=a.slots.empty);const G=[],ne=r.h(p.ElTable,P,j);G.push(ne);let le=null;if(typeof a.slots.pagination=="function")le=a.slots.pagination();else if(n.showPagination){const Le={class:f.value,total:T.value,pageSize:m.value,"onUpdate:pageSize":g,pageSizes:n.pageSizes,currentPage:w.value,"onUpdate:currentPage":x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};le=r.h(p.ElPagination,Le)}if(n.showSetting){const Le=[];le&&Le.push(le);const cr=r.h(p.ElIcon,{class:d.value},{default:()=>r.h(Ne.Setting)}),Gc=Ir(n,zn),Xc=r.h(zt,{...Gc,tableRef:{getColumnSetting:Y,setColumnSetting:Q,removeColumnSetting:ie}},{default:()=>cr});Le.push(Xc);const Zc=r.h("div",{class:c.value},Le);G.push(Zc)}else le&&G.push(le);const ce={default:()=>G},Re={...Se(n,Fo,Ao,zn),prop:`${n.prop}_item`};return Re.contentClass=`${s}__wrap`,Re.errorMarkClass="is-table-error",O.value&&V()&&(Re["appear-listen"]=!0,Re.onAppear=W),r.h(o,Re,ce)}}}}const{componentName:Qs,create:eu,scope:tu}=re("table-item"),Kn=eu(Js(Qs,tu,me));function ot(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 nu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ru=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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(He(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ou(){const e=r.getCurrentInstance();return new ru(e.proxy)}function Do(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ot(e,t),a=ot(e,o);if(n!==a)return!1;const l=vt(e,t),i=vt(e,o);return l===i}function au(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let i=!1;if(o==="text")i=ot(e,l)===t;else if(o==="item")i=Do(e,l,t);else{let s=vt(e,l);s==null&&(s=ot(e,l)),i=s===t}if(i){a=l;break}}return a}function lu(e){return{text:e,value:e}}function iu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Bo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function su(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...Bo},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(null),d=r.ref(null),c=(O,D,I,L=!0)=>{const H=au(n,O,D,I);if(H===null){if(d.value===null)return;d.value=null,u.value=null,L&&(s("update:modelValue",null),s("change",null));return}if(!Do(n,H,d.value)){u.value=O;const v=r.toRaw(H);d.value=v;let N=null;n.valueType==="text"?N=ot(n,v):n.valueType==="item"?N=v:N=vt(n,v),L&&(s("update:modelValue",N),s("change",N))}},f=r.ref([]),w=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,O=>te(O)),x=ou(),m=async(O,D)=>{if(O){const I=await x.load("radio",O,D);if(I.length>0)if(typeof I[0]=="string"){let W=I.map(v=>lu(v));f.value=W}else f.value=I}};r.watch([()=>n.source,()=>n.params],async([O,D])=>{m(O,D)},{immediate:!w.value});let g=!1;const b=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([O,D])=>{c(D,n.valueType,O,!1)});const y=e,T=r.computed(()=>({[y]:!0,[`is-${n.direction}`]:!0})),k=O=>{c(O,"value",f.value,!0)};let A=se(n,"hintText"),R=se(n,"hintVisible");const V=(O,D)=>{const I=[];return O.forEach((L,H)=>{const W=vt(n,L),v=ot(n,L);let N=nu(n,L);l.value===!0&&(N=l.value),i.value===!0&&(N=i.value);const S=iu(n,L,H)??{},_=`${W}_${H}`,q={...S,key:_,label:W,size:n.size,border:te(n.border)};N&&(q.disabled=N),n.itemType==="button"?I.push(r.h(p.ElRadioButton,q,{default:()=>[v]})):typeof D=="function"?I.push(r.h(p.ElRadio,q,{default:()=>D(L)})):I.push(r.h(p.ElRadio,q,{default:()=>[v]}))}),I};return()=>{const D={...a.attrs,class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:k},I=[],L={};a.slots.options?L.default=a.slots.options:L.default=()=>V(f.value,a.slots.text);const H=r.h(p.ElRadioGroup,D,L);I.push(H);const W={default:()=>I};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const N={...Se(n,Bo),hintText:A.value,hintVisible:R.value,prop:`${n.prop??a.attrs.name}_item`};return w.value&&(N["appear-listen"]=!0,N.onAppear=b),r.h(o,N,W)}}}}const{componentName:uu,create:cu,scope:fu}=re("radio-item"),Wn=cu(su(uu,fu,me));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function lt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function du(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class hu{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 a=De(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(He(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function gu(){const e=r.getCurrentInstance();return new hu(e.proxy)}function Lo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=at(e,t),a=at(e,o);if(n!==a)return!1;const l=lt(e,t),i=lt(e,o);return l===i}function mu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){let s=!1;if(o==="text")s=at(e,i)===l;else if(o==="item")s=Lo(e,i,l);else{let u=lt(e,i);u==null&&(u=at(e,i)),s=u===l}if(s){a.push(i);break}}}),a}function pu(e){return{text:e,value:e}}function yu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const qo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function bu(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...qo},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref([]),d=r.ref([]),c=(O,D,I,L=!0)=>{const H=mu(n,O,D,I);if(H===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],L&&(s("update:modelValue",[]),s("change",[]));return}let W=!0;if(H.length!==d.value.length)W=!1;else for(let v=0;v<H.length;v++){const N=H[v],S=d.value[v];if(!Lo(n,N,S)){W=!1;break}}if(!W){d.value=H;let v=[],N=[];H.forEach(_=>{v.push(lt(n,_)),n.valueType==="text"?N.push(at(n,_)):n.valueType==="item"?N.push(_):N.push(lt(n,_))}),u.value=v;const S=r.toRaw(N);L&&(s("update:modelValue",S),s("change",S))}},f=r.ref([]),w=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,O=>te(O)),x=gu(),m=async(O,D)=>{if(O){const I=await x.load("checkbox",O,D);if(I.length>0)if(typeof I[0]=="string"){let W=I.map(v=>pu(v));f.value=W}else f.value=I}};r.watch([()=>n.source,()=>n.params],async([O,D])=>{m(O,D)},{immediate:!w.value});let g=!1;const b=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([O,D])=>{c(D,n.valueType,O,!1)});const y=e,T=r.computed(()=>({[y]:!0,[`is-${n.direction}`]:!0})),k=O=>{c(O,"value",f.value,!0)};let A=se(n,"hintText"),R=se(n,"hintVisible");const V=(O,D)=>{const I=[];return O.forEach((L,H)=>{const W=lt(n,L),v=at(n,L);let N=du(n,L);l.value===!0&&(N=l.value),i.value===!0&&(N=i.value);const S=yu(n,L,H)??{},_=`${W}_${H}`,q={...S,key:_,class:n.itemClass,label:W,size:n.size,border:te(n.border)};N&&(q.disabled=N),n.itemType==="button"?I.push(r.h(p.ElCheckboxButton,q,{default:()=>[v]})):typeof D=="function"?I.push(r.h(p.ElCheckbox,q,{default:()=>D(L)})):I.push(r.h(p.ElCheckbox,q,{default:()=>[v]}))}),I};return()=>{const D={...a.attrs,class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:k},I=[],L={};a.slots.options?L.default=a.slots.options:L.default=()=>V(f.value,a.slots.text);const H=r.h(p.ElCheckboxGroup,D,L);I.push(H);const W={default:()=>I};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const N={...Se(n,qo),hintText:A.value,hintVisible:R.value,prop:`${n.prop??a.attrs.name}_item`};return w.value&&(N["appear-listen"]=!0,N.onAppear=b),r.h(o,N,W)}}}}const{componentName:wu,create:vu,scope:Su}=re("checkbox-item"),Yn=vu(bu(wu,Su,me)),Mo={modelValue:{type:[Number,String],required:!1}};function Tu(e,t,o){return{props:{...ge,...Te,...Mo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue",g=>ve(g)),d=e,c=r.computed(()=>({[d]:!0})),f=g=>{s("update:modelValue",g),s("change",g)};let w=se(n,"hintText"),x=r.ref(!1);const m=r.ref();return be({}),()=>{const b={...a.attrs,ref:m,class:c.value,readonly:i.value||l.value,modelValue:u.value,onChange:f},y={},T=[],k=r.h(p.ElRate,b,y);T.push(k);const A={default:()=>T};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const V={...Se(n,Mo),hintText:w.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,V,A)}}}}const{componentName:$u,create:xu,scope:Cu}=re("rate-item"),Un=xu(Tu($u,Cu,me)),jo={modelValue:{type:[Boolean,String,Number],required:!1}};function Eu(e,t,o){return{props:{...ge,...Te,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue"),d=e,c=r.computed(()=>({[d]:!0})),f=g=>{s("update:modelValue",g),s("change",g)};let w=se(n,"hintText"),x=se(n,"hintVisible");const m=r.ref();return be({}),()=>{const b={...a.attrs,ref:m,class:c.value,readonly:i.value,disabled:l.value,modelValue:u.value,onChange:f},y={},T=[],k=r.h(p.ElSwitch,b,y);T.push(k);const A={default:()=>T};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const V={...Se(n,jo),hintText:w.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,V,A)}}}}const{componentName:Nu,create:ku,scope:Vu}=re("switch-item"),Gn=ku(Eu(Nu,Vu,me)),_o={modelValue:{type:[String,Number,Boolean],required:!1}};function Ou(e,t,o){return{props:{...ge,...Te,..._o},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),d=se(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),w=R=>{u("update:modelValue",R),u("change",R)};let x=se(n,"hintText"),m=r.ref(!1);const g=R=>{let O=R.target.value;s.value=!0,de(x.value)||(m.value=!0),u("focus",O,R)},b=R=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let O=R.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),T.value||u("blur",O,R)},y=()=>{u("clear","")},T=r.ref(!1),k=R=>{T.value=R,u("visible-change",R),R||u("selected")},A=r.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const V={...a.attrs,ref:A,class:f.value,disabled:l.value||i.value,modelValue:d.value,"onUpdate:modelValue":w,onClear:y,onFocus:g,onBlur:b,onVisibleChange:k},O={};a.slots.option&&(O.default=a.slots.option);const D=[],I=r.h(p.ElTreeSelect,V,O);D.push(I);const L={default:()=>D};a.slots.default&&(L.label=a.slots.default),a.slots.fixedTip&&(L.fixedTip=a.slots.fixedTip);const W={...Se(n,_o),hintText:x.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(o,W,L)}}}}const{componentName:Iu,create:Ru,scope:Fu}=re("tree-select-item"),Xn=Ru(Ou(Iu,Fu,me)),Au=Symbol.for("InnerPageScopeKey"),Du=Symbol.for("PageWrapperKey");function Bu(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){r.provide(Au,!0);const a={};r.provide(Du,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return r.h(p.ElDialog,d,c)}}}}const{componentName:gf,create:Lu,scope:mf}=re("dialog-item"),Zn=Lu(Bu());function qu(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 a=e,l=r.computed(()=>({[a]:!0})),i=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),d=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const g={class:i.value,style:s.value};c=r.h(o.icon??"div",g)}const f={class:u.value,style:d.value},w=n.default?n.default():[],x=r.h("div",f,w),m={class:l.value};return o.textPosition==="right"?r.h("div",m,[c,x]):r.h("div",m,[x,c])}}}}const{componentName:Mu,create:ju,scope:pf}=re("indicator"),Jn=ju(qu(Mu));function _u(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 a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const Pu={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function Hu(e,t){return{props:{...Pu},setup(o,n){const a=r.ref(!0),l=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(w=>{c[w]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),s=c=>{if(c&&te(o.showOverflowTooltip)){const f=c.clientWidth;_u(c,w=>{a.value=w<=f})}};let u=null;r.onMounted(()=>{if(!te(o.showOverflowTooltip))return;const c=l.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const d=(c,f)=>{let w=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const x=o.highlightFilter;if(c.indexOf(x)!==-1){const g=c.replace(new RegExp(x,"g"),`<span>${x}</span>`);f.innerHTML=g,f.class["is-highlight"]=!0,w=r.h(o.tag,f)}}else if(typeof o.highlightFilter=="function"){const x=o.highlightFilter(c);x&&(f.innerHTML=x,f.class["is-highlight"]=!0,w=r.h(o.tag,f))}return w};return()=>{const c={},f={...n.attrs,class:{...i.value},ref:l};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const g=n.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const y=ve(o.digits),T=ve(o.decimalLength),k=te(o.autoPadding);let A=`${g[0].children}`,R=A.split("").reverse().join("");R=xt(R,T,k,y,o.separator),A=R.split("").reverse().join("");let V=null;o.highlightFilter!==void 0&&(V=d(A,f)),V||(f.innerHTML=A,V=r.h(o.tag,f)),c.default=()=>V}}}else{let g=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const b=n.slots.default();if(Array.isArray(b)&&b.length===1){const y=b[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const T=`${b[0].children}`;g=d(T,f),g||(f.innerHTML=T,g=r.h(o.tag,f))}}}g||(g=r.h(o.tag,f,{default:n.slots.default})),c.default=()=>g}const x={disabled:a.value};return c.content=n.slots.default,r.h(p.ElTooltip,x,c)}}}}const{componentName:zu,create:Ku,scope:yf}=re("text"),Qn=Ku(Hu(zu)),Wu={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:Ne.ArrowUp}};function Yu(e,t,o){return{props:{...Wu},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),d=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{a("update:modelValue",!i.value)};return()=>{const f=[];if(s.value){const g={class:u.value},b=r.h("span",g,[s.value]);f.push(b)}const w={class:d.value},x=o(n.icon,w);return x&&f.push(x),r.h("div",{class:l.value,onClick:c},f)}}}}const{componentName:Uu,create:Gu,scope:Xu}=re("more-button"),er=Gu(Yu(Uu,Xu,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Zu,create:Ju,scope:wf}=re("tour"),Qu=Ju({components:{Close:Ne.Close,ElPopover:p.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Zu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:m,maskWidth:g,maskHeight:b}=e,{width:y,height:T,left:k,top:A}=a.value,R=e.steps[n.active].offset??m,V=[k+y/2,A+T/2],O=Number(g||y),D=Number(b||T);return{width:`${O+ +R.left+R.right}px`,height:`${D+R.top+R.bottom}px`,top:`${V[1]-D/2-+R.top}px`,left:`${V[0]-O/2-+R.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),g=En(m);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&f()},x=(m,g=0)=>{m&&c(),e.steps,n.active=g,n.showTour=m,n.showPopup=m};return r.onMounted(()=>{x(e.modelValue,e.current)}),r.watch(()=>e.modelValue,m=>{x(m)}),{...r.toRefs(n),classes:l,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:w}}}),ec={key:0,class:"fox-tour__content"},tc={key:0,class:"fox-tour__content-top"},nc={class:"fox-tour__content-inner"},rc={class:"fox-tour__content-bottom"},oc={class:"fox-tour__content-bottom-init"},ac={class:"fox-tour__content-bottom-operate"},lc={key:1,class:"fox-tour__content fox-tour__content-tile"},ic={class:"fox-tour__content-inner"};function sc(e,t,o,n,a,l){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(d,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",ec,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",tc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",nc,r.toDisplayString(d.content),1),r.createElementVNode("div",rc,[r.createElementVNode("div",oc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",ac,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",lc,[r.createElementVNode("div",ic,r.toDisplayString(d.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const tr=Oe(Qu,[["render",sc]]),Ce=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Je=e=>e==null,Po=10;function uc(e,t){return e>t&&e>Po?"horizontal":t>e&&t>Po?"vertical":""}function cc(){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 s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=uc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function fc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function dc(e){e.stopPropagation()}function hc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&dc(e)}class gc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=fc()}open(t){this.el=t;const o=cc(),n=(a,l,i,s,u)=>{this.updateMove({x:l,y:i})};this.touchstart=a=>{this.moving||(o.start(a),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=a=>{this.moving&&(o.move(a),o.isHorizontal()&&hc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,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},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Ho(e,t){return new gc(e,t)}var zo;const nr=typeof window<"u";nr&&((zo=window?.navigator)!=null&&zo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let it=[];const Ko=e=>{const t=e;t.key==="Escape"&&it.forEach(o=>o(t))},mc=e=>{r.onMounted(()=>{it.length===0&&document.addEventListener("keydown",Ko),nr&&it.push(e)}),r.onBeforeUnmount(()=>{it=it.filter(t=>t!==e),it.length===0&&nr&&document.removeEventListener("keydown",Ko)})},rr="fox-focus-trap.focus-after-trapped",or="fox-focus-trap.focus-after-released",pc="fox-focus-trap.focusout-prevented",Wo={cancelable:!0,bubbles:!1},yc={cancelable:!0,bubbles:!1},Yo="foxFocusAfterTrapped",Uo="foxFocusAfterReleased",bc=Symbol("foxFocusTrap"),ar=r.ref(),Kt=r.ref(0),lr=r.ref(0);let Wt=0;const Go=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},wc=(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},Xo=(e,t)=>{for(const o of e)if(!wc(o,t))return o},vc=e=>{const t=Go(e),o=Xo(t,e),n=Xo(t.reverse(),e);return[o,n]},Sc=e=>e instanceof HTMLInputElement&&"select"in e,We=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),lr.value=window.performance.now(),e!==o&&Sc(e)&&t&&e.select()}};function Zo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Tc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Zo(e,n),e.unshift(n)},remove:n=>{e=Zo(e,n),e[0]?.resume?.()}}},$c=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(We(n,t),document.activeElement!==o)return},Jo=Tc(),xc=()=>Kt.value>lr.value,Yt=()=>{ar.value="pointer",Kt.value=window.performance.now()},Qo=()=>{ar.value="keyboard",Kt.value=window.performance.now()},Cc=()=>(r.onMounted(()=>{Wt===0&&(document.addEventListener("mousedown",Yt),document.addEventListener("touchstart",Yt),document.addEventListener("keydown",Qo)),Wt++}),r.onBeforeUnmount(()=>{Wt--,Wt<=0&&(document.removeEventListener("mousedown",Yt),document.removeEventListener("touchstart",Yt),document.removeEventListener("keydown",Qo))}),{focusReason:ar,lastUserFocusTimestamp:Kt,lastAutomatedFocusTimestamp:lr}),Ut=e=>new CustomEvent(pc,{...yc,detail:e}),{componentName:vf,create:Ec,scope:Sf}=re("focus-trap"),Nc=Ec({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Yo,Uo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:i}=Cc();mc(g=>{te(e.trapped)&&!s.paused&&o("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!te(e.trapped)||s.paused)return;const{key:b,altKey:y,ctrlKey:T,metaKey:k,currentTarget:A,shiftKey:R}=g,{loop:V}=e,O=b==="Tab"&&!y&&!T&&!k,D=document.activeElement;if(O&&D){const I=A,[L,H]=vc(I);if(L&&H){if(!R&&D===H){const v=Ut({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||(g.preventDefault(),V&&We(L,!0))}else if(R&&[L,I].includes(D)){const v=Ut({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||(g.preventDefault(),V&&We(H,!0))}}else if(D===I){const v=Ut({focusReason:i.value});o("focusout-prevented",v),v.defaultPrevented||g.preventDefault()}}};r.provide(bc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),r.watch([n],([g],[b])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",f),g.addEventListener("focusout",w)),b&&(b.removeEventListener("keydown",u),b.removeEventListener("focusin",f),b.removeEventListener("focusout",w))});const d=g=>{o(Yo,g)},c=g=>o(Uo,g),f=g=>{const b=r.unref(n);if(!b)return;const y=g.target,T=g.relatedTarget,k=y&&b.contains(y);te(e.trapped)||T&&b.contains(T)||(a=T),k&&o("focusin",g),!s.paused&&te(e.trapped)&&(k?l=y:We(l,!0))},w=g=>{const b=r.unref(n);if(!(s.paused||!b))if(!e.escape&&te(e.trapped)){const y=g.relatedTarget;!un(y)&&!b.contains(y)&&setTimeout(()=>{if(!s.paused&&te(e.trapped)){const T=Ut({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||We(l,!0)}},0)}else{const y=g.target;y&&b.contains(y)||o("focusout",g)}};async function x(){await r.nextTick();const g=r.unref(n);if(g){Jo.push(s);const b=g.contains(document.activeElement)?a:document.activeElement;if(a=b,!g.contains(b)){const T=new Event(rr,Wo);g.addEventListener(rr,d),g.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let k=e.focusStartEl;wr(k)||(We(k),document.activeElement!==k&&(k="first")),k==="first"&&$c(Go(g),!0),(document.activeElement===b||k==="container")&&We(g)})}}}function m(){const g=r.unref(n);if(g){g.removeEventListener(rr,d);const b=new CustomEvent(or,{...Wo,detail:{focusReason:i.value}});g.addEventListener(or,c),g.dispatchEvent(b),!b.defaultPrevented&&(i.value=="keyboard"||!xc())&&We(a??document.body,!0),g.removeEventListener(or,d),Jo.remove(s)}}return r.onMounted(()=>{te(e.trapped)&&x(),r.watch(()=>e.trapped,g=>{te(g)?x():m()})}),r.onBeforeUnmount(()=>{te(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:kc,create:Vc,scope:$f}=re("floating-window"),Oc=Symbol.for("InnerPageScopeKey"),Ic=Symbol.for("PageWrapperKey"),Rc={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},customClass:{type:[String],required:!1}},Fc=Vc({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Nc},props:{...Rc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=kc,n=r.ref(e.modelValue),a=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,E=>{n.value=E});const l=r.computed(()=>n.value===!1?!1:!O.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),d=r.ref(e.bottom),c=r.computed(()=>{const E=["fox-floating-window"];return e.customClass&&E.push(e.customClass),E}),f=r.computed(()=>{const E={};return Je(i.value)?E.left="auto":E.left=Ce(i.value),Je(s.value)?E.top="auto":E.top=Ce(s.value),Je(u.value)?E.right="auto":E.right=Ce(u.value),Je(d.value)?E.bottom="auto":E.bottom=Ce(d.value),Je(e.zIndex)||(E["z-index"]=Ce(e.zIndex)),Je(R.value)||(E.height=R.value),Je(V.value)||(E.width=V.value),E}),w=r.computed(()=>e.closeIcon??Ne.Close),x=r.computed(()=>e.collapseIcon??Ne.ArrowUp),m=r.computed(()=>e.collapseText??""),g=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),b=r.computed(()=>e.expandText??e.title??"展开"),y=r.computed(()=>({[`${o}__collapse-text`]:!0})),T=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!O.value,"is-collapse":O.value})),k=r.ref(),A=r.ref(),R=r.computed(()=>Ce(e.height)||""),V=r.computed(()=>Ce(e.width)||""),O=r.ref(te(e.collapse)),D=(E,B=!0)=>{O.value!==E&&(O.value=E,E?K():Y(),t("update:collapse",E))};r.watch(()=>e.collapse,E=>{D(E)});const I=()=>{L()},L=E=>{E=E??!O.value,D(E)};r.provide(Oc,!0);const H={setCollapse:D,setFixedNavVisible:E=>{z.value=E}};r.provide(Ic,H);const W=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},v=r.ref(null),N=r.computed(()=>!e.fixedNavTeleport),S=r.computed(()=>{const E=["fox-floating-window__fixednav"];return e.expandClass&&E.push(e.expandClass),e.collapsePosition==="left"?E.push("is-left"):e.collapsePosition==="right"&&E.push("is-right"),E}),_=r.ref(""),q=r.computed(()=>{const E={};return _.value?E.top=_.value:e.collapseTop&&(E.top=e.collapseTop),E}),z=r.ref(O.value);let $=null;const F=()=>{typeof $=="function"&&($(),$=null)},K=()=>{v.value&&v.value.classList.add("slide-in"),z.value=!0,$=()=>{v.value&&v.value.classList.remove("slide-in")}},Y=()=>{v.value&&v.value.classList.add("slide-out"),$=()=>{v.value&&v.value.classList.remove("slide-out"),z.value=!1}},Q=()=>{i.value=null,s.value=null,u.value=null,d.value=null},ee={x:0,y:0},M=Ho(E=>{if(!k.value)return;const B=k.value;if(Q(),e.origin==="left-top")i.value=B.offsetLeft,s.value=B.offsetTop,ee.x=i.value,ee.y=s.value;else if(e.origin==="left-bottom"){const C=document.documentElement.clientHeight||document.body.clientHeight;i.value=B.offsetLeft,d.value=C-(B.offsetTop+B.offsetHeight),ee.x=i.value,ee.y=d.value}else if(e.origin==="right-bottom"){const C=document.documentElement.clientWidth||document.body.clientWidth,P=document.documentElement.clientHeight||document.body.clientHeight;u.value=C-(B.offsetLeft+B.offsetWidth),d.value=P-(B.offsetTop+B.offsetHeight),ee.x=u.value,ee.y=d.value}else{const C=document.documentElement.clientWidth||document.body.clientWidth;u.value=C-(B.offsetLeft+B.offsetWidth),s.value=B.offsetTop,ee.x=u.value,ee.y=s.value}},E=>{if(!k.value)return;const B=k.value;Q(),e.origin==="left-top"?(i.value=ee.x+E.x,s.value=ee.y+E.y,B.style.left=Ce(i.value),B.style.top=Ce(s.value)):e.origin==="left-bottom"?(i.value=ee.x+E.x,d.value=ee.y-E.y,B.style.left=Ce(i.value),B.style.bottom=Ce(d.value)):e.origin==="right-bottom"?(u.value=ee.x-E.x,d.value=ee.y-E.y,B.style.right=Ce(u.value),B.style.bottom=Ce(d.value)):(u.value=ee.x-E.x,s.value=ee.y+E.y,B.style.right=Ce(u.value),B.style.top=Ce(s.value))}),J={x:0,y:0},Z=Ho(E=>{v.value&&(J.x=v.value.offsetLeft,J.y=v.value.offsetTop)},E=>{if(!v.value)return;const B=J.y+E.y;_.value=`${B}px`});return r.onMounted(()=>{e.draggable&&A.value&&k.value&&M.open(A.value),e.collapse===!0&&D(e.collapse,!1),v.value&&Z.open(v.value)}),r.onBeforeUnmount(()=>{e.draggable&&A.value&&M.close(),v.value&&Z.close()}),{classes:c,styles:f,isShow:l,closeIcon:w,onClose:W,dialogRef:k,headerRef:A,onClickToggle:I,collapseIcon:x,collapseText:m,collapseTextClasses:y,collapseIconClasses:T,expandIcon:g,expandText:b,isShowFixedNav:z,fixedNavRef:v,fixedNavClasses:S,fixedNavStyles:q,onAnimationEnd:F,teleportDisabled:a,fixedNavTeleportDisabled:N}}}),Ac={ref:"headerRef",class:"fox-floating-window__header"},Dc={class:"fox-floating-window__title"},Bc={class:"fox-floating-window__tools"},Lc={class:"fox-floating-window__body"},qc={class:"fox-floating-window__fixednav__text"};function Mc(e,t,o,n,a,l){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Ac,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Dc,r.toDisplayString(e.title),1),r.createElementVNode("div",Bc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Lc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",qc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ir=Oe(Fc,[["render",Mc]]);function jc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return jr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:xf,create:_c,scope:Cf}=re("domain-provider"),sr=_c(jc()),Pc={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 Hc(e,t){return{inheritAttrs:!1,props:Pc,setup(o,{slots:n}){if(Qe&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const i=(w,x)=>{if(c===null){l.set(w,{visible:null,callback:x});return}a.has(w)&&c.unobserve(w),a.set(w,{visible:null,callback:x}),c.observe(w)},s=w=>{if(c===null){l.delete(w);return}a.has(w)&&(a.delete(w),c.unobserve(w))};let u=o.initialVisibleObserverSize;yl({acquire:()=>{const w=u>0;return u--,w},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const f=(w,x,m)=>{c=new IntersectionObserver(g=>{for(let b of g){let y=!1;b.intersectionRatio>0&&(y=!0);const T=a.get(b.target);if(T)try{if(o.loadPolicy==="lazy"&&!y&&T.visible!==null)return;T.visible=y,T.callback(y)}catch(k){console.error(k)}}},{root:w,rootMargin:x,threshold:m}),l.forEach((g,b)=>{a.set(b,g),c?.observe(b)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([w,x])=>{if(x||!w||c)return;let m=null;typeof w=="string"?m=document.querySelector(w):m=w,m&&f(m,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Ef,create:zc,scope:Nf}=re("rolling-provider"),ur=zc(Hc()),ea=10;function Kc(e,t){return e>t&&e>ea?"horizontal":t>e&&t>ea?"vertical":""}function Wc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),d=r.ref(0),c=r.ref(""),f=()=>c.value==="vertical",w=()=>c.value==="horizontal",x=()=>{i.value=0,s.value=0,u.value=0,d.value=0,c.value="",o.value=0};return{move:b=>{const y=b.touches[0];i.value=y.clientX-e.value,s.value=y.clientY-t.value,a.value=y.clientX,l.value=y.clientY,u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Kc(u.value,d.value))},start:b=>{x(),e.value=b.touches[0].clientX,t.value=b.touches[0].clientY,o.value=Date.now()},reset:x,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:w}}const Yc=[yn,vn,Sn,Tn,Cn,me,Vn,On,yt,In,Rn,Fn,An,Dn,Bn,Ln,Mn,jn,_n,Pn,zt,Kn,Wn,Yn,Un,Gn,Xn,Zn,wt,_t,Jn,Qn,er,tr,ir,sr,ur],Uc=new _a(Yc,[za],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),h.AutocompleteItem=jn,h.Broadcast=cn,h.BroadcastKey=he,h.CascaderItem=Mn,h.CheckboxItem=Yn,h.Content=Tn,h.DataItemsKey=et,h.DateItem=Fn,h.DateUtils=Ie,h.DialogItem=Zn,h.Domain=Ot,h.DomainKey=ke,h.DomainProvider=sr,h.FloatingWindow=ir,h.FooterBar=Sn,h.FoxAutocompleteItem=jn,h.FoxCascaderItem=Mn,h.FoxCheckboxItem=Yn,h.FoxContent=Tn,h.FoxDateItem=Fn,h.FoxDialogItem=Zn,h.FoxDomainProvider=sr,h.FoxFloatingWindow=ir,h.FoxFooterBar=Sn,h.FoxGroup=Cn,h.FoxHeaderBar=vn,h.FoxHintText=yt,h.FoxIndicator=Jn,h.FoxInputItem=In,h.FoxInputNumberItem=Ln,h.FoxItem=me,h.FoxMapping=wt,h.FoxMoneyItem=Bn,h.FoxMoreButton=er,h.FoxPage=yn,h.FoxPrice=_t,h.FoxRadioItem=Wn,h.FoxRateItem=Un,h.FoxRollingProvider=ur,h.FoxRowItem=On,h.FoxSelectItem=Rn,h.FoxSlotItem=Vn,h.FoxSwitchItem=Gn,h.FoxTableItem=Kn,h.FoxTableMappingColumn=_n,h.FoxTableRadioColumn=Pn,h.FoxTableSetting=zt,h.FoxText=Qn,h.FoxTimeItem=An,h.FoxTimeSelectItem=Dn,h.FoxTour=tr,h.FoxTreeSelectItem=Xn,h.Group=Cn,h.HeaderBar=vn,h.HintText=yt,h.Indicator=Jn,h.InputItem=In,h.InputNumberItem=Ln,h.Item=me,h.Mapping=wt,h.MoneyItem=Bn,h.MoreButton=er,h.Page=yn,h.Price=_t,h.PriorityPolicy=Ve,h.RadioItem=Wn,h.RateItem=Un,h.RollingProvider=ur,h.RowItem=On,h.SelectItem=Rn,h.SlotItem=Vn,h.SwitchItem=Gn,h.TableItem=Kn,h.TableMappingColumn=_n,h.TableRadioColumn=Pn,h.TableSetting=zt,h.Text=Qn,h.TimeItem=An,h.TimeSelectItem=Dn,h.Tour=tr,h.TreeSelectItem=Xn,h.UniqueID=to,h.ValidateSchema=Lr,h.ValidateSchemaKey=Me,h.cancelRaf=ra,h.clearNonNumber=ba,h.clone=ln,h.compareTo=rn,h.createBroadcast=Nt,h.createValidateSchema=Vt,h.debounce=gt,h.debounceRef=Ia,h.decimalLength=Vr,h.default=Uc,h.defineBroadcast=Ta,h.defineConfigDomain=jr,h.defineDataItem=Pr,h.defineDomain=hn,h.defineItem=pe,h.definePageState=Hr,h.deleteGlobalValidator=Ea,h.disabledProperty=xe,h.divide=nn,h.excludeProps=Se,h.extend=Ue,h.floatData=Sa,h.getGlobalValidateCheckEvents=Ar,h.getGlobalValidateResetEvents=Br,h.getPageContentAreaHeight=Rt,h.getPageContentAreaWidth=Ft,h.getPageFooterAreaHeight=pt,h.getPageHeaderAreaHeight=mt,h.getRootDomain=tt,h.hasSymbol=Sr,h.includeProps=Ir,h.indexOf=wa,h.installRules=_r,h.integerLength=kr,h.isArray=ia,h.isArrayLike=xr,h.isBrowser=Qe,h.isDate=ca,h.isESModule=ha,h.isEmptyString=de,h.isEqual=qe,h.isFunction=on,h.isHidden=$r,h.isInnerPage=Aa,h.isMap=sa,h.isNil=un,h.isNumberString=Nr,h.isObject=He,h.isPlainObject=an,h.isPromise=da,h.isRegExp=Er,h.isSet=ua,h.isString=wr,h.isSubPage=Da,h.isSymbol=fa,h.isWindow=Tr,h.lastIndexOf=va,h.makeArray=ya,h.merge=Cr,h.multiply=pr,h.negate=yr,h.nextTick=ma,h.numberFormat=xt,h.objectToString=vr,h.once=Ra,h.property=Ee,h.raf=la,h.readonlyProperty=$e,h.setGlobalValidateCheckEvents=Na,h.setGlobalValidateHandler=xa,h.setGlobalValidateMessages=Va,h.setGlobalValidateResetEvents=ka,h.setGlobalValidator=Ca,h.throttle=Mr,h.toBoolean=te,h.toNumber=ve,h.toPadding=Ae,h.toPx=ue,h.toPxDesc=ye,h.toTypeString=Ct,h.toValue=se,h.tryTimes=fn,h.typeOf=Et,h.unNumberFormat=br,h.updatePageState=gn,h.useBroadcast=dt,h.useDomain=je,h.useExpose=be,h.useInnerSize=wn,h.usePageState=It,h.usePosition=Jr,h.useRect=En,h.useSize=bn,h.useTouch=Wc,h.valueLength=ft,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});