@fox-js/foxui-pc 4.0.1-109 → 4.0.1-110

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(m,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):(m=typeof globalThis<"u"?globalThis:m||self,r(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,r,Ze,y,Oe,Ae){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Wed Mar 27 2024 14:11:11 GMT+0800 (中国标准时间)
3
- */const $t=window,ol=typeof window<"u";function ll(){return typeof $t<"u"?$t.requestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){$t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function al(e){ol?cancelAnimationFrame(e):clearTimeout(e)}const il=ll();/*!
1
+ (function(p,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],o):(p=typeof globalThis<"u"?globalThis:p||self,o(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,o,Qe,y,Te,De){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Apr 01 2024 10:56:41 GMT+0800 (中国标准时间)
3
+ */const Vt=window,Hr=typeof window<"u";function Kr(){return typeof Vt<"u"?Vt.requestAnimationFrame||Vt.webkitRequestAnimationFrame||function(e){Vt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Wr(e){Hr?cancelAnimationFrame(e):clearTimeout(e)}const Bo=Kr();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Ct(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=be(e),t=be(t),[e,t]=Qt(be(e),be(t)),o==1&&(n==1?e=Jt(e):t=Jt(t));let l=hr(e,t);return o?o==2?"-"+be(l):e.length<l.length?be(l.substring(1)):"-"+be(Jt(l)):be(l)}function Jt(e){let t="",o=e.length,n=e.split(".")[1],l=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=l>0?"0."+new Array(l).join("0")+"1":"1";return hr(t,a)}function be(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Qt(e,t){let o=e.split("."),n=t.split("."),l=o[0].length,a=n[0].length;return l>a?n[0]=new Array(Math.abs(l-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(l-a)+1).join("0")+(o[0]?o[0]:""),l=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(l||a)&&(l>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function hr(e,t){[e,t]=Qt(e,t);let o="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){o="."+o;continue}let a=parseInt(e[l])+parseInt(t[l])+n;o=a%10+o,n=Math.floor(a/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 ft(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 l=e.split("."),a=l[0],i=l[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=ft(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,gr(l[1],a,n,o)?(n?"-":"")+en(a):(n?"-":"")+a;if(l[1]){if(l[1].length<t)return(n?"-":"")+a+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&gr(s,i,n,o)&&(i=en(i),i.length>t)?(n?"-":"")+en(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function gr(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 l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)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 en(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let l=o;l>=0;l--){let a=parseInt(e[l])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function tn(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=dt(e),t=dt(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let a=n+l;if(e=dt(e.replace(".","")),t=dt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],c=i-1,f="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let T=t.length-1;T>=c&&T>=0;T--)u[T]>-1&&u[T]<e.length&&(b+=parseInt(e[u[T]--])*parseInt(t[T]));b+=s,s=Math.floor(b/10),f=b%10+f,c--}return f=dt(sl(f,a)),o==1&&(f="-"+f),f}function sl(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 dt(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 nn(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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=be(t.replace(".","")),l>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=be(e+new Array(l+1).join("0"));else if(l>c)e=e.replace(".",""),e=be(e+new Array(l-c+1).join("0"));else if(l<c){e=e.replace(".","");let f=e.length-c+l;e=be(e.substring(0,f)+"."+e.substring(f))}else l==c&&(e=be(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let c=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(c+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=c,s="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(u)>=parseInt(t);)u=Ct(u,"-"+t),c++;s+=c,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+be(ft(s,o-2))}function rn(e,t){return e=e.toString(),t=t.toString(),t=on(t),Ct(e,t)}function on(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),pr(e),pr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=rn(e,tn(t,ft(nn(e,t),0,fe.FLOOR)));return o+n}function pr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(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]=Qt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ae{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=be(o);let l="";o[0]=="-"&&(l="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=l+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=l+be(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ae.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=ae.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(l?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ae.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=ae.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ft(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ae(ft(this.value,t,o))}static floor(t){return t=ae.validate(t),t.indexOf(".")===-1?t:ae.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.FLOOR)}static ceil(t){return t=ae.validate(t),t.indexOf(".")===-1?t:ae.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.CEILING)}static add(t,o){return t=ae.validate(t),o=ae.validate(o),Ct(t,o)}add(t){return new ae(Ct(this.value,t.getValue()))}static subtract(t,o){return t=ae.validate(t),o=ae.validate(o),rn(t,o)}subtract(t){return new ae(rn(this.value,t.getValue()))}static multiply(t,o){return t=ae.validate(t),o=ae.validate(o),tn(t,o)}multiply(t){return new ae(tn(this.value,t.getValue()))}static divide(t,o,n){return t=ae.validate(t),o=ae.validate(o),nn(t,o,n)}divide(t,o){return new ae(nn(this.value,t.getValue(),o))}static modulus(t,o){return t=ae.validate(t),o=ae.validate(o),mr(t,o)}modulus(t){return new ae(mr(this.value,t.getValue()))}static compareTo(t,o){return t=ae.validate(t),o=ae.validate(o),yr(t,o)}compareTo(t){return yr(this.value,t.getValue())}static negate(t){return t=ae.validate(t),on(t)}negate(){return new ae(on(this.value))}}function br(e,t){return ae.multiply(`${e}`,`${t}`)}function ln(e,t,o=8){return ae.divide(`${e}`,`${t}`,o)}function an(e,t){return e=`${e}`,t=`${t}`,ae.compareTo(e,t)}function vr(e){return ae.negate(e)}function Et(e,t=-1,o=!1,n=3,l=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",c=a.indexOf(".");c!=-1&&(s=a.substring(0,c),u=a.substring(c+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let d="",b=s.split("").reverse();for(let T=0;T<b.length;T++)d+=b[T]+((T+1)%n==0&&T+1!=b.length?l:"");u.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function wr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ul=il,cl=Array.isArray,fl=e=>Nt(e)==="[object Map]",dl=e=>Nt(e)==="[object Set]",hl=e=>e instanceof Date,sn=e=>typeof e=="function",Sr=e=>typeof e=="string",gl=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",ml=e=>Ye(e)&&sn(e.then)&&sn(e.catch),Tr=Object.prototype.toString,Nt=e=>Tr.call(e),un=e=>Nt(e)==="[object Object]",xr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pl(e){return e.__esModule||xr&&e[Symbol.toStringTag]==="Module"}const yl=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Je(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(l===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},t[i]=Je(l,c,u)}else u!==void 0&&(t[i]=u)}}return t}function cn(e,t,o=!1){if(!o)Je(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!un(i))continue;a=cn(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!un(i))continue;a=cn(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}}return e}const fn=yl?Promise.resolve():null;function bl(e,...t){fn!==null?t&&t.length>0?fn.then(()=>{e(t)}):fn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function oe(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 vl={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):vl[o]||"object"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function Ot(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Cr(e){let t=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||$r(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Er(e,t){let o=+t.length,n=0,l=e.length;for(;n<o;n++)e[l++]=t[n];return e.length=l,e}function wl(e,t=[]){let o=t;return e!=null&&(Cr(Object(e))?Er(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=kt(e),n=kt(t);if(o!==n)return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],u=e[s],c=t[s];if(!Pe(u,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],i=t[l];if(!Pe(a,i))return!1}return!0}return!1}const nt=typeof window<"u";function dn(e){return e==null}function Nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function kr(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 Or(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function 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 Fr(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 Sl(e,t=!0,o=!0){t?e=Fr(e,".",/\./g):e=e.replace(/\./g,""),o?e=Fr(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Tl(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Pe(e,o))return!0}):t.indexOf(e)}function xl(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 ht(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 l in n)o[l]=e[l]}),o}function we(e,...t){const o=[];t.forEach(l=>{Reflect.apply([].push,o,Reflect.ownKeys(l))});const n={};for(const l in e)o.includes(l)||(n[l]=e[l]);return n}const $l=(e,t,o)=>{const n=Object.assign({},e),l=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{l.hasOwnProperty(a)?typeof l[a]=="string"&&(n[a]=t[l[a]]):t[a]&&(n[a]=t[a])}),n):e},he=Symbol.for("BroadcastKey");class hn{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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Nr(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const a=[];if(l){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const l=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,o){this.callbacks.set(t,o)}}function Vt(e,t,o,n){const l=new hn(t,e,o);if(n&&typeof n=="object")for(const a in n)l.on(a,n[a]);return l}function Cl(e,t,o){const n=o;if(n[he])return n[he];const l=r.inject(he,null),a=new hn(l,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[he]=a,r.provide(he,a),r.onUnmounted(()=>{a.destroy(),n[he]=void 0}),a}function gt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Qe=e=>e.default??e;class El{error(t,o){const n=o,l=gt(o);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=gt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=gt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const l=n,a=gt(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Rr=new El;function Nl(e){Rr=e}function kl(e,t){Qe(Ze).setValidator(e,t)}function Ol(e){Qe(Ze).deleteValidator(e)}let Dr=["blur","clear"];function Vl(e){Dr=e}function Ar(){return Dr}let Mr=["focus","change"];function Fl(e){Mr=e}function Lr(){return Mr}function Il(e){Qe(Ze).messages(e)}function mt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const l=t.findIndex(a=>a.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function Ft(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 _e=Symbol("ValidateSchemaKey");class qr{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=Ft(mt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Ft(n);const l=mt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,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 l=Rr;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...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?Qe(Ze).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?Qe(Ze).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Qe(Ze).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=mt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ft(t):this.rules=Ft([t]);const n=mt(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=mt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const l={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=Qe(Ze),u=new s(l),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let b="error";Array.isArray(d.errors)&&d.errors.length>0&&(b=d.errors[0].message??b,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(b)}return d}).catch(d=>{const b=d.message??`${d}`;return this.error(b),d})}}return Promise.resolve({pass:!0})}}function It(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new qr(t,o,e)}const Br=Symbol.for("EventEmitterKey");class Rl{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 l=n.findIndex(a=>a===o);l!==-1&&n.splice(l,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(l=>{try{Reflect.apply(l,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function pt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function jr(e,t){let o=0;return function(...n){const l=new Date().getTime();l-o<t||(o=l,Reflect.apply(e,null,[...n]))}}function Dl(e,t){const o=pt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(a){o(a,l)}}))}function Al(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Rt(e,t,o,n=0,l=!0,a){let i=t,s=0;if(l){const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const c=e();if(s++,c){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ie=Symbol("DomainKey"),rt=Symbol("DataItemsKey");class Dt{_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 l=t[n];o.length>0&&o.indexOf(l)!==-1||(this._props[n]=l)}}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 l=n._props[t];o.push(l)}n=n._parent}return o}}const Ml=new Dt;function ot(){return Ml}function ze(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ie]??r.inject(Ie,null):r.inject(Ie,null)}const gn=Symbol("OriginalDateKey");function mn(e,t,o=[],n){const l=r.getCurrentInstance(),a=l?.proxy;let i=r.inject(Ie,null);i===null&&(i=ot());const s=e||t.prop||t.name,u=new Dt(s);u.parent=i;const c=h=>{a[gn]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,d=()=>a[gn]??null,b=h=>{const p={};Je(!0,p,r.toRaw(h)),a[gn]=p};r.isReactive(t)||typeof t=="function"?r.watch(t,h=>{u.merge(h,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&b(t.modelValue),a[Ie]=u,r.provide(Ie,u);let T=null,g=null;if(l!==null){const h=r.inject(he,null);T=Vt(a,h,s,n),u.broadcast=T,a[he]=T,r.provide(he,T),a.broadcast=(x,w,...I)=>Reflect.apply(T.emit,T,[x,w,...I]);const p=r.inject(_e,null);g=It(a,p,{componentName:""}),u.validateSchema=g,a[_e]=g,r.provide(_e,g),a[rt]=new Map,a.validate=(x=!0)=>{const w=[];let I=null;const P={deep:!1};if(x===!0)I={name:"*"};else if(Array.isArray(x)&&x.length>0){const R=x;I={name:A=>A?R.indexOf(A)!==-1:!1}}else if(x!=null&&typeof x=="object"){const R=x;if(P.ignoreHidden=R.ignoreHidden,Array.isArray(R.include)&&R.include.length>0){const A=R.include;I={name:D=>D?A.indexOf(D)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const A=R.exclude;I={name:D=>D?A.indexOf(D)===-1:!1}}else I={name:"*"}}if(I){const R=T?.emitToChildren(I,"validate",P);R&&Reflect.apply([].push,w,R)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(R=>{let A=[];return R.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(A=[...A,...D.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(x,w=!0,I=!1)=>{if(I===!0){Reflect.ownKeys(x).forEach(R=>{let A=String(R);const _=zr(u,A,{componentName:"",fieldName:A,pureDataValidate:!0},T,g);a[rt].set(A,_);const M=x[A];M&&_.validateSchema.setRule(M)});return}if(w){const P=Reflect.ownKeys(x),R={name:A=>P.includes(A)};T?.emitToChildren(R,"setNameValidateRules",x,!1)}},a.clearValidate=(x=!0)=>{let w=null;if(x===!0)w={name:"*"};else if(Array.isArray(x)&&x.length>0){const I=x;w={name:P=>P?I.indexOf(P)!==-1:!1}}else if(x!=null&&typeof x=="object"){const I=x;if(Array.isArray(I.include)&&I.include.length>0){const P=I.include;w={name:R=>R?P.indexOf(R)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const P=I.exclude;w={name:R=>R?P.indexOf(R)===-1:!1}}else w={name:"*"}}w&&T?.emitToChildren(w,"clearValidate",!1)},a.resetFields=x=>{const w=f();if(!w)return;const I={};if(Je(!0,I,d()??{}),Array.isArray(x))x.forEach(P=>{w[P]=I[P]});else if(x&&Array.isArray(x.include))(x.include??[]).forEach(R=>{w[R]=I[R]});else if(x&&Array.isArray(x.exclude)){let P=x.exclude??[];Reflect.ownKeys(I).forEach(R=>{P.includes(R)||(w[R]=I[R])})}else Object.assign(w,I);a.clearValidate(x)},a.setModelValue=(x,w)=>{!w||w===s?c(x):T?.emitToChildren({name:w},"setModelValue",x)},a.getModelValue=()=>f()}return r.onUnmounted(()=>{u.destroy(),a[Ie]=void 0,a[rt]&&(a[rt].clear(),a[rt]=void 0),T!==null&&(T.destroy(),a[he]=void 0),g!==null&&(g.destroy(),a[_e]=void 0)}),u}function Pr(e,t,o=[]){const l=r.getCurrentInstance()?.proxy;let a=r.inject(Ie,null);a===null&&(a=ot());const i=e||t.prop||t.name,s=new Dt(i);return s.parent=a,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),l[Ie]=s,r.provide(Ie,s),r.onUnmounted(()=>{s.destroy(),l[Ie]=void 0}),s}function _r(e,t,o){const l=ze(e)?.get("rules");if(!l)return;let a=l[o];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const l=r.getCurrentInstance()?.proxy,a=t??"",i=r.inject(he,null),s=Vt(l,i,a,o);l[he]=s,r.provide(he,s),l.broadcast=(g,h,...p)=>Reflect.apply(s.emit,s,[g,h,...p]);const u=r.inject(_e,null);e.fieldName=e.fieldName??a;const c=It(l,u,e);l[_e]=c,r.provide(_e,c),_r(l,c,a),l.validate=(g=null)=>{const h=[];let p=!1,x=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)x=!0,p=!0;else if(g&&typeof g=="object"){const w=g;w.ignoreHidden===!0&&Ot(l.$el)?x=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),x=!0),p=w.deep??!1}else typeof g=="boolean"&&(p=g),x=!0;if(x){const w=c?.validate();h.push(w)}if(p){let w=null;const I={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const P=g;w={name:R=>R?P.indexOf(R)!==-1:!1}}else if(g!=null&&typeof g=="object"){const P=g;if(I.ignoreHidden=P.ignoreHidden,Array.isArray(P.include)&&P.include.length>0){const R=P.include;w={name:A=>A?R.indexOf(A)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const R=P.exclude;w={name:A=>A?R.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const P=s.emitToChildren(w,"validate",I);Reflect.apply([].push,h,P)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let I=[];return w.forEach(P=>{P.pass===!1&&Array.isArray(P.errors)&&(I=[...I,...P.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>c?.setRule(g),l.setNameValidateRules=(g,h=!1)=>{const p=g[a];if(p&&c?.setRule(p),h){const x={name:w=>Reflect.ownKeys(g).includes(w)};s.emitToChildren(x,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const p=g;h={name:x=>x?p.indexOf(x)!==-1:!1}}else if(g!=null&&typeof g=="object"){const p=g;if(Array.isArray(p.include)&&p.include.length>0){const x=p.include;h={name:w=>w?x.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const x=p.exclude;h={name:w=>w?x.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new Rl(l);l[Br]=f;const d=pt((g="validate")=>{g==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ar()).forEach(g=>{f.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Lr()).forEach(g=>{f.on(g,h=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),l[he]=void 0,c.destroy(),l[_e]=void 0,f.destroy(),l[Br]=void 0}),{broadcast:s,validateSchema:c,emitEvent:(g,...h)=>{Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{Reflect.apply(f.off,f,[h])}}}function zr(e,t,o,n,l){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};const u=It({},l,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let b=!1,T=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)T=!0,b=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),T=!0,b=g.deep??!1}else typeof f=="boolean"&&(b=f),T=!0;if(T){const g=u?.validate();d.push(g)}if(b){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;g={name:x=>x?p.indexOf(x)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const x=p.include;g={name:w=>w?x.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const x=p.exclude;g={name:w=>w?x.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const p=c.emitToChildren(g,"validate",h);Reflect.apply([].push,d,p)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(h=[...h,...p.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};const c=Vt(null,n,i,a);return{broadcast:c,validateSchema:u}}const Se=(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 l=Number(e.substring(0,o)),a=1;if(nt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return l*=a,l}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ge="PageStateKey";function Me(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 pn(e,t,o={},n=!0,l=-1,a=-1,i=0,s=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight??-1),e.headerPadding=Me(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight??-1),e.footerPadding=Me(o.footerPadding??t.footerPadding),e.contentPadding=Me(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,a):e.height=ue(a)-ue(i,a)-ue(s,a),e.width=ue(o.width??t.width??0,l)}}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},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=ue(l.top),n.safeAreaBottom=ue(l.bottom),n.safeAreaLeft=ue(l.left),n.safeAreaRight=ue(l.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;pn(n,a,t,!0,i,s,u,c);const f=r.reactive(n),d=e.getForParent(Ge);d&&(n.height=Mt(e,d),n.width=Lt(e,d),r.watch([()=>Mt(e,d),()=>Lt(e,d)],([T,g])=>{f.height=T,f.width=g}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,g,h=-1,p=-1,x=0,w=0])=>{pn(f,g,t,b,h,p,x,w)}),e.set(Ge,f),f}function At(e){return e.get(Ge)}function yt(e,t){if(t=t??e.get(Ge),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function bt(e,t){if(t=t??e.get(Ge),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Mt(e,t){if(t=t??e.get(Ge),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=yt(e,t),n=bt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Lt(e,t){return t=t??e.get(Ge),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ll(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function ql(e){return!!e.getForParent(Ge)}var Ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ve||{});function yn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,o=1,n){const l=ze();return l==null?e:o===0?r.computed(()=>{const a=l.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(yn(u,n))return u}const i=e.value;return yn(i,n)?i:null}):r.computed(()=>{const a=e.value;return yn(a,n)?a:l?.get(t)})}function Ce(e){return $e(e,"readonly",0,function(o){return oe(o)})}function Ee(e){return $e(e,"disabled",0,function(o){return oe(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let l=n.value;typeof o=="function"&&(l=o(n.value));const a=r.ref(l);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const Wr=new Map,qt=new Map;let bn=null;function Bl(e){bn=e}function Kr(e,t,o){if(o){let n=qt.get(o);n||(n=new Map,qt.set(o,n)),n.set(e,t)}else Wr.set(e,t)}function Le(e,t,o){!o&&bn&&(o=bn(e)??void 0);let n=null;if(o){let l=qt.get(o);l&&(n=l.get(t))}return n||(n=Wr.get(t)),n}function jl(e,t){for(let o in e){const n=e[o];Kr(o,n,t)}}function Pl(e){qt.delete(e)}function _l(){return{top:0,left:0,bottom:0,right:0}}function zl(e=0,t=0){if(nt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:o,height:n-ue(e,n)-ue(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Hl{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ot();if(this.initPageLayout(o,l),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=jr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=c,this.initPageLayout(s,l)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&l.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,a=Je({},_l(),t.safeAreaInset),i=zl(n,l),s=Je({},i.pageLayout,t.pageLayout);o=o??ot(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",l),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Bl(t)}setAPI(t,o,n){Kr(t,o,n)}getAPI(t,o,n){return Le(t,o,n)}batchSetAPI(t,o){jl(t,o)}clearScopeAPI(t){Pl(t)}getRootDomain(){return ot()}}const Wl=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Kl=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Yl=e=>{Wl.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Kl.forEach(t=>{e.use(t)})};function le(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}},Yr={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}},Gr={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 Gr)Ur.push(e);function ye(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Gl=Symbol.for("InnerPageScopeKey"),Ul=(e,t)=>({inheritAttrs:!0,props:{...ge,...Yr,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 l=mn(o.name,o);if(l){const c=Hr(l,o);ye({getPageContentHeight:()=>Mt(l,c),getPageContentWidth:()=>Lt(l,c),getPageHeaderHeight:()=>yt(l,c),getPageFooterHeight:()=>bt(l,c)});const f=r.inject(Gl,!1);c&&f&&(c.contentHeight="100%")}const a=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(c,f=!1)=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(c,!0,f)};return r.watch([()=>o.rules,()=>o.pureDataRules],([c,f],[d,b])=>{if(c&&d){const T=r.toRaw(d),g=r.toRaw(c),h=g?Reflect.ownKeys(g):[];(T?Reflect.ownKeys(T):[]).forEach(x=>{h.includes(x)||(g[x]=[])}),u(g)}if(f&&b){const T=r.toRaw(b),g=r.toRaw(f),h=g?Reflect.ownKeys(g):[];(T?Reflect.ownKeys(T):[]).forEach(x=>{h.includes(x)||(g[x]=[])}),u(g,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const c=r.toRaw(o.rules);u(c)}if(o.pureDataRules){const c=r.toRaw(o.pureDataRules);u(c,!0)}}),r.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:Xl,create:Zl,scope:uf}=le("page"),Jl=Zl(Ul(Xl));function Ql(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Re=(e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o},vn=Re(Jl,[["render",Ql]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Sn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),l=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-a-i}}const ea=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,a){const i=ze(),s=i?At(i):null;s&&(s.headerMounted=!0);const u=e,c=r.computed(()=>({[u]:!0,[`${u}--border`]:l.border,[`${u}--fixed`]:l.fixed,[`${u}--safe-area-inset-top`]:l.safeAreaInsetTop})),f=r.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${l.align}`]:!0})),d=l.height!==null&&l.height!==void 0?ue(l.height):null,b=r.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const O=Me(l.padding??s.headerPadding);return Object.assign(k,O),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(O.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),l.padding){const O=Me(l.padding);Object.assign(k,O)}return k}),T=r.ref(null),g=()=>{if(s&&T.value&&!Ot(T.value)){if(!n){const k=wn(T.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;r.onMounted(()=>{s&&(Rt(g,50,5,50,!0),window.ResizeObserver&&T.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(T.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const p=r.computed(()=>{const k={};return b.value.height!==null&&b.value.height!==void 0&&(k.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(k.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(k.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(k.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(k.paddingBottom=`${b.value.bottom}px`),k}),x=r.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function I(){a.emit("click-title")}function P(){a.emit("click-right")}function R(){a.emit("click-right-text")}const A=()=>{if(!l.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const O=r.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(O)}else if(l.leftIcon){const O=r.h("view",{class:"left-icon",onClick:w},[r.h(l.leftIcon)]);k.push(O)}if(l.leftText){const O=r.h("view",{class:"left-text",onClick:w},[l.leftText]);k.push(O)}}return k.length===0?null:r.h("view",{class:"fox-header-bar__left"},k)},D=()=>{if(!l.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(l.rightText){const O=r.h("view",{class:"right-text",onClick:R},[l.rightText]);k.push(O)}if(a.slots.rightIcon){const O=r.h("view",{class:"right-icon",onClick:P},[a.slots.rightIcon()]);k.push(O)}else if(l.rightIcon){const O=r.h("view",{class:"right-icon",onClick:P},[r.h(l.rightIcon)]);k.push(O)}}return k.length===0?null:r.h("view",{class:"fox-header-bar__right"},k)},_=()=>{if(!l.titleShow)return null;const k=[],O=a.slots.default?a.slots.default():null;if(O)k.push(O);else{if(l.title){const q=r.h("view",{class:"title-text"},[l.title]);k.push(q)}if(a.slots.titleIcon){const q=r.h("view",{class:"title-icon",onClick:I},[a.slots.titleIcon()]);k.push(q)}else if(l.titleIcon){const q=r.h("view",{class:"title-icon",onClick:I},[r.h(l.titleIcon)]);k.push(q)}}return k.length===0?null:r.h("view",{class:"fox-header-bar__title"},k)},M=()=>{const k=[],O=a.slots.bottom?a.slots.bottom():null;return O&&k.push(O),k.length===0?null:r.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!x.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const q=[],$=A();$&&q.push($);const S=_();S&&q.push(S);const N=D();if(N&&q.push(N),q.length>0){const B=r.h("view",{class:f.value},q);k.push(B)}const W=M();W&&k.push(W)}if(k.length===0)return null;const O={class:c.value,style:p.value,ref:T};return r.h("view",O,k)}}}),{componentName:ta,create:na,scope:ra}=le("header-bar"),Tn=na(ea(ta,ra,Oe.ArrowLeft));function oa(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,l){const a=ze(),i=a?At(a):null,s=r.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ue(n.height):null,c=r.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Me(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Me(n.padding);Object.assign(g,h)}return g}),f=r.ref(null),d=()=>{if(i&&f.value&&!Ot(f.value)){if(!o){const g=wn(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let b=null;r.onMounted(()=>{i&&(Rt(d,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{d()}),b.observe(f.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const T=r.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Se(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Se(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Se(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Se(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Se(c.value.bottom)),g});return()=>{const g=l.slots.default?l.slots.default():[],h={ref:f,class:s.value,style:T.value};return r.h("view",h,g)}}}}const{componentName:la,create:aa,scope:cf}=le("footer-bar"),xn=aa(oa(la));function ia(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=ze(),l=r.computed(()=>({[e]:!0})),a=n?At(n):null,i=r.computed(()=>{const c={};if(n&&a){if(o.padding){const T=Me(o.padding);Object.assign(a.contentPadding,T)}const f=yt(n,a),d=bt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,c.height=b,a.contentPadding.top||f>0){const T=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+T}px`}if(a.contentPadding.bottom||d>0){const T=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+T}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const f=Me(o.padding);f.left&&(c.paddingLeft=`${f.left}px`),f.top&&(c.paddingTop=`${f.top}px`),f.right&&(c.paddingRight=`${f.right}px`),f.bottom&&(c.paddingBottom=`${f.bottom}px`)}return c}),s=r.ref(null),u=()=>{if(a&&s.value){const c=Sn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return r.onMounted(()=>{u()}),n&&a&&r.watch([()=>yt(n),()=>bt(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:sa,create:ua,scope:ff}=le("content"),ca=ua(ia(sa));function fa(e,t,o,n,l,a){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 $n=Re(ca,[["render",fa]]),lt="GroupStateKey",Xr=Symbol.for("GroupScopeKey");function Bt(){return r.inject(Xr,!1)}function jt(e=!0){r.provide(Xr,e)}function da(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const l=t[n];dn(l)||(e[n]=l)})}function ha(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};da(n,t);const l=r.shallowRef(n),a=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(lt,a),a}function Cn(e,t,o=-1,n=-1,l=!1,a,i,s){const u=e.get(lt);if(!u)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=ue(a),d=ue(i);s||(s=c.type??"grid");const b=()=>{const T=t===""||t===-1,g=ue(t);let h=ve(o);const p=ue(n);if(!T){let I=(g-(h-1)*p)/h;for(;d!==-1&&I>d;)h++,I=(g-(h-1)*p)/h;for(;f!==-1&&h>1&&I<f;)h--,I=(g-(h-1)*p)/h}let x=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,x=!0),w.value.gutter!==p&&(w.value.gutter=p,x=!0),w.value.type!==s&&(w.value.type=s,x=!0),x&&r.triggerRef(w)};if(l)b();else{const T=++u.passport;setTimeout(()=>{T===u.passport&&b()},50)}}function Pt(e,t=!1){let o;return t?o=e.getForParent(lt):o=e.get(lt),o.layout}function _t(e,t=!1){let o;return t?o=e.getForParent(lt):o=e.get(lt),o.order}function Zr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function zt(e,t,o=1,n=0,l){const a={};let i=0;l?i=ue(l):i=Zr(t.column,o),i>0&&(a.width=`${i}%`);const s=Zr(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Ht(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,c=u+(t.column-u);return e.index=e.index+(c-u),{"grid-column":`${u+1} / -1`}}let l=ve(o);if(l===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(l>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ve(n)%t.column;let i=(e.index+a)%t.column,s=i+l;return s>t.column?(i=0,s=i+l,e.index=e.index+(t.column-i)+l):e.index=e.index+a+l,a>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Jr=Symbol("RollingStateKey");function ga(e){r.provide(Jr,e)}function ma(){return r.inject(Jr,null)}function En(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-l-a}else t=e.offsetHeight;return t}function pa(e){let t=En(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=En(o),document.body.removeChild(o)}return t}function ya(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ba={...ge,...Yr,...Gr};function va(e,t,o){return{props:ba,emits:["update:collapse"],setup(n,l){const a=mn(n.name,n,Ur),i=ha(a,{type:n.type}),s=Bt();jt(!0);const u=n.rollingDisplay?ma():null,c=r.ref(null),f=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>s&&a?Pt(a,!0).value:null),b=r.getCurrentInstance(),T=(V,j=!1)=>{const G=b?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(V,!0,j)};r.watch([()=>n.rules,()=>n.pureDataRules],([V,j],[G,L])=>{if(V&&G){const C=r.toRaw(G),H=r.toRaw(V),U=H?Reflect.ownKeys(H):[];(C?Reflect.ownKeys(C):[]).forEach(ie=>{U.includes(ie)||(H[ie]=[])}),T(H)}if(j&&L){const C=r.toRaw(L),H=r.toRaw(j),U=H?Reflect.ownKeys(H):[];(C?Reflect.ownKeys(C):[]).forEach(ie=>{U.includes(ie)||(H[ie]=[])}),T(H,!0)}},{deep:!0});const g=e,h=r.computed(()=>{const V={};V.height=N.value;const j=s?_t(a,!0):null;if(d.value&&j){if(d.value.type==="grid"){const G=Ht(j,d.value,n.span,n.offset);Object.assign(V,G)}else if(d.value.type==="flow"){const G=zt(j,d.value,n.span,n.offset,n.width);Object.assign(V,G)}}else if(n.width){const G=Se(n.width);V.width=G}return V}),p=r.computed(()=>{const V=i.layout.value.type;return V==="grid"||V==="flow"?{[`${g}--${V}`]:!0,[`${g}--${V}-justify-${n.justify}`]:!0,[`${g}--${V}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${V}`]:!0,[`${g}--gutter`]:!0}}),x=r.computed(()=>{if(i.layout.value.type==="grid"){let j="";if(n.columnWidth)j=`repeat(auto-fill, ${n.columnWidth})`;else{const G=ya(_.value,i.layout.value.column,i.layout.value.gutter);j=`repeat(${i.layout.value.column}, ${G})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":j}}}),w=r.toRef(n,"gutter"),I=r.toRef(n,"column"),P=r.computed(()=>s||f.value?!0:oe(n.isWrap)),R=[],A=V=>{R.push(V)},D=()=>{let V=R.length;R.splice(0,V)},_=r.ref(-1),M=V=>{const j=Sn(V).width;j>0&&j!==_.value&&(_.value=j)};Cn(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([_,I,w],([V,j,G])=>{i.order.index=0,Cn(a,V,j,G,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=r.computed(()=>W.value?n.expandText??"":n.collapseText??""),O=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!W.value,"is-collapse":W.value})),$=r.ref(),S=r.ref(),N=r.computed(()=>B.value||Se(n.height)||""),W=r.ref(!1),B=r.ref(""),J=r.ref(!1);let Y=-1;const Z=(V,j=!0)=>{const G=$.value;if(G&&W.value!==V){if(Y=Y===-1?pa(G):Y,J.value=!0,j)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",V||(B.value="",J.value=!1)},V){let L=0;n.collapseHeight?L=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(L=S.value.offsetHeight),B.value=`${Y}px`,r.nextTick(()=>{B.value=`${L}px`})}else B.value=`${Y}px`;else if(V){let L=0;n.collapseHeight?L=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(L=S.value.offsetHeight),B.value=`${L}px`}else J.value=!1,B.value=`${Y}px`;W.value=V,l.emit("update:collapse",V)}};r.watch(()=>n.collapse,V=>{Z(V)});const ne=()=>{K()},K=V=>{V=V??!W.value,Z(V)};ye({toggleCollapse:K,doLayout:()=>{R[0]&&(M(R[0]),Cn(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let te=null,ee=!0;const F=V=>{if(n.rules){const j=r.toRaw(n.rules);T(j)}if(n.pureDataRules){const j=r.toRaw(n.pureDataRules);T(j,!0)}if(nt&&(V&&Z(oe(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const j=R[0];M(j),window.ResizeObserver&&(te=new window.ResizeObserver(()=>{M(j)}),te.observe(j))}},X=()=>{te?.disconnect(),te=null},z=!f.value||u?.acquire();z&&(c.value=f.value?!0:null),r.onMounted(()=>{if(z&&(F(ee),ee=!1),f.value&&u){let V=null,j=u.initialHeight;u.observe($.value,G=>{if(G!==c.value)if(G)c.value=!0,W.value||(B.value=""),V=setTimeout(()=>{V=null,c.value!==!1&&(F(ee),ee=!1)},100);else{if(V!==null&&clearTimeout(V),c.value=!1,!W.value)if(ee)B.value=u.initialHeight;else{let L=En($.value);L<=0?B.value=j:(B.value=`${L}px`,j=B.value)}ee||X()}})}}),r.onUnmounted(()=>{te?.disconnect(),u&&u.unobserve($.value)});const v=(V="right")=>{const j=[];if(k.value){const C={class:O.value},H=r.h("span",C,[k.value]);j.push(H)}const G={class:q.value},L=o(n.collapseIcon,G);return L&&j.push(L),j.length>0?r.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${V}`]:!0},onClick:ne},j):null},E=(V,j,G,L)=>{const C={...p.value};return j===0&&(C[`${g}__first`]=!0),G>=L-1&&(C[`${g}__last`]=!0),r.h("div",{ref:A,key:`${j}`,class:C,style:x.value},V)};return()=>{if(f.value&&c.value!==!0){const C=n.tag||"div";return r.h(C,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const V=[];let j=0;if(l.slots.header){const C={key:`${j++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},H=r.h("div",C,[l.slots.header()]);V.push(H)}else{const C=[],H=n.collapsePosition==="left";if(H&&n.showCollapse){const U=v("left");U&&C.push(U)}if(n.title||l.slots.title){if(n.showMark){const U={class:{[`${g}__header-mark`]:!0}};n.markColor&&(U.style={background:n.markColor});const re=r.h("div",U);C.push(re)}if(l.slots.title){const U=r.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);C.push(U)}else if(n.title){const U=r.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);C.push(U)}}if(l.slots.toolbar&&C.push(l.slots.toolbar()),!H&&n.showCollapse){const U=v("right");U&&C.push(U)}if(C.length>0){const U={key:`${j++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},re=r.h("div",U,C);V.push(re)}}D();const G=l.slots.default?l.slots.default():[],L=i.layout.value.type;if(L==="grid"){const C=E(G,j++,0,G.length);V.push(C)}else if(L==="flow"){const C=E(G,j++,0,G.length);V.push(C)}else for(let C=0;C<G.length;C++){const H=G[C],U=E([H],j++,C,G.length);V.push(U)}if(P.value){const C=n.tag||"div";return r.h(C,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[V])}else return V}}}}const{componentName:wa,create:Sa,scope:Ta}=le("group"),Nn=Sa(va(wa,Ta,(e,t)=>(e=e??Oe.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function xa(e){return e===window}const $a=/matrix\((.+)\)/,Qr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(xa(t))return{x:0,y:0};let o=0,n=0,l=t;for(;l!==null;)o+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let a=0,i=0,s=0,u=0;for(l=t;l!==document;){i+=l.scrollTop,a+=l.scrollLeft;const{transform:c}=window.getComputedStyle(l);if(c){const f=$a.exec(c);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}l=l.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ca{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 Ea{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a||(a=new Ca,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const eo=new Ea,to={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:Na,create:ka}=le("price"),Oa=ka({props:{...to},setup(e){const t=r.computed(()=>({[Na]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ht(e.price)==0?"":Et(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=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:l,decimalText:a}}}),Va=["innerHTML"],Fa=["innerHTML"];function Ia(e,t,o,n,l,a){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,Va)):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,Fa)):r.createCommentVNode("",!0)],2)}const Wt=Re(Oa,[["render",Ia]]),{componentName:kn,create:Ra}=le("hint-text"),Da=Ra({components:{Price:Wt},props:{...to,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=r.ref({top:null,right:null,bottom:null,left:null}),n=r.ref({x:0,y:0}),l=r.ref(0),a=r.ref(0),i=r.ref(e.placement),s=r.ref(!1),u=r.ref(null),c=(O,q,$,S,N,W)=>{const B=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Y=O.split("-");let Z=[];Y[0]==="top"?Z=["top","bottom","right","left"]:Y[0]==="bottom"?Z=["bottom","top","right","left"]:Y[0]==="left"?Z=["left","top","bottom","right"]:Y[0]==="right"&&(Z=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},K=[];for(let Q=0;Q<Z.length;Q++){const te=Z[Q];if(K[0]=te,Y[1]&&(K[1]=Y[1]),te==="top"){const ee=q.y-W-e.arrowSize-e.offset;if(ee>=0){ne.top=ee;let F=0;Y[1]==="start"?F=q.x:Y[1]==="end"?F=q.x+$-N:F=q.x+$/2-N/2;const X=B-F-N;X<0?(F+=X,d.value=-X):d.value=0,ne.left=F<0?0:F;break}}else if(te==="bottom"){const ee=q.y+S+e.arrowSize+e.offset;if(ee+W<=J){ne.top=ee;let F=0;Y[1]==="start"?F=q.x:Y[1]==="end"?F=q.x+$-N:F=q.x+$/2-N/2;const X=B-F-N;X<0?(F+=X,d.value=-X):d.value=0,ne.left=F<0?0:F;break}}else if(te==="left"){const ee=q.x-N-e.arrowSize-e.offset;if(ee>=0){ne.left=ee;let F=0;Y[1]==="start"?F=q.y:Y[1]==="end"?F=q.y+S-W:F=q.y+S/2-W/2,ne.top=F<0?0:F;break}}else if(te==="right"){const ee=q.x+$+e.arrowSize+e.offset;if(ee+N<=B){ne.left=ee;let F=0;Y[1]==="start"?F=q.y:Y[1]==="end"?F=q.y+S-W:F=q.y+S/2-W/2,ne.top=F<0?0:F;break}}}return{bestPlacement:K.join("-"),bestInsetRect:ne}},f=(O,q,$=10)=>{if(!nt||q===!1||!O)return;n.value=Qr(e.reference),l.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const S=u.value.offsetHeight,N=u.value.offsetWidth,{bestPlacement:W,bestInsetRect:B}=c(e.placement,n.value,l.value,a.value,N,S);i.value=W,o.value=B,s.value=!0},d=r.ref(0),b=pt(()=>{f(e.message,e.visible)},10),T=r.ref(e.visible);r.watch(()=>e.visible,O=>{T.value=O});const g=r.computed(()=>T.value&&h.value),h=r.ref(!0),p=pt(O=>{const q=O[0];q&&(h.value=q.isIntersecting)},10),x=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([O,q])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),r.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),eo.watch(e.reference,b),x.observe(e.reference)}),r.onBeforeMount(()=>{eo.unwatch(e.reference,b),x.unobserve(e.reference),x.disconnect()});const w=r.computed(()=>{const O={[kn]:!0};return i.value.startsWith("top")?O["is-top"]=!0:i.value.startsWith("right")?O["is-right"]=!0:i.value.startsWith("bottom")?O["is-bottom"]=!0:i.value.startsWith("right")&&(O["is-right"]=!0),e.size==="small"?O["is-small"]=!0:e.size==="large"&&(O["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(O[`${e.customClass}`]=!0),O}),I=r.computed(()=>{const O={};o.value.top!==null&&(O.top=`${o.value.top}px`),o.value.right!==null&&(O.right=`${o.value.right}px`),o.value.bottom!==null&&(O.bottom=`${o.value.bottom}px`),o.value.left!==null&&(O.left=`${o.value.left}px`),e.autoFit&&(O["min-width"]=`${l.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return O["max-width"]=`${q}px`,s.value&&(O.opacity="1"),e.transition||(O.transition="none"),e.zIndex&&(O["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(O,e.customStyle),O}),P=r.computed(()=>{const O=[`${kn}__content`];return e.customTextClass&&O.push(e.customTextClass),O}),R=r.computed(()=>{const O={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(O,e.customTextStyle),O}),A=r.computed(()=>({[`${kn}__arrow`]:!0})),D=r.computed(()=>{const O={};return e.showArrow?(O.width=`${e.arrowSize}px`,O.height=`${e.arrowSize}px`,i.value==="top"?(O.left="50%",O.bottom=`-${e.arrowSize}px`,O.transform=" translate(-50%, 0%)"):i.value==="top-start"?(O.left=`${e.arrowOffset+d.value}px`,O.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(O.right=`${e.arrowOffset-d.value}px`,O.bottom=`-${e.arrowSize}px`):i.value==="right"?(O.left=`-${e.arrowSize}px`,O.top="50%",O.transform=" translate(0%, -50%)"):i.value==="right-start"?(O.left=`-${e.arrowSize}px`,O.top=`${e.arrowOffset}px`):i.value==="right-end"?(O.left=`-${e.arrowSize}px`,O.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(O.left="50%",O.top=`-${e.arrowSize}px`,O.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(O.left=`${e.arrowOffset+d.value}px`,O.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(O.right=`${e.arrowOffset-d.value}px`,O.top=`-${e.arrowSize}px`):i.value==="left"?(O.right=`-${e.arrowSize}px`,O.top="50%",O.transform=" translate(0%, -50%)"):i.value==="left-start"?(O.right=`-${e.arrowSize}px`,O.top=`${e.arrowOffset}px`):i.value==="left-end"&&(O.right=`-${e.arrowSize}px`,O.bottom=`-${e.arrowOffset}px`),O):{display:"none"}}),_=r.computed(()=>g.value&&e.closeOnClick),M=r.computed(()=>{const O={};return e.zIndex&&(O["z-index"]=`${e.zIndex}`),O});return{show:g,tipRef:u,classes:w,styles:I,textClasses:P,textStyles:R,arrowClasses:A,arrowStyles:D,overlayShow:_,overlayStyle:M,onClickOverlay:()=>{T.value=!1,t.emit("update:visible",!1)}}}});function Aa(e,t,o,n,l,a){const i=r.resolveComponent("Price");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.overlayShow?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:r.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):r.createCommentVNode("",!0),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",size:e.size},null,8,["price","size"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.message),1)],64))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])],64)}const vt=Re(Da,[["render",Aa]]);class no{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 On={},Ma=new no,at=new Map,Kt=e=>{if(e){const t=document.getElementById(e);at.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of at.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}at.clear()}},La=e=>{e.unmount=Kt;const t=document.getElementById(e.id);if(t){const o=at.get(e.id);o?e={...On,...o,...e}:e={...On,...e},e.transition=!1;const n=r.createVNode(vt,e);return r.render(n,t),e.id}},qa=e=>{e.unmount=Kt;let t=e.id??`hinttext_${Ma.get()}`;e={...On,...e},e.id=t,at.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(vt,e);return r.render(n,o),document.body.appendChild(o),t},Ba=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},xe={show(e,t,o={},n=!0){Ba(t);const l=o.id;return l&&at.has(l)?La({...o,message:t,reference:e}):(n&&Kt(),qa({...o,message:t,reference:e}))},hide(e){Kt(e)},install(e){e.config.globalProperties.$hintText=xe}},{componentName:ro,create:ja}=le("item"),Pa=ja({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:ro,validate:!1},o);const n=ze(),l=Bt();jt(!1);const a=r.computed(()=>l&&n?Pt(n,!1).value:null),i=ro,s=r.ref(null),u=r.computed(()=>{const v={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:oe(e.hasBorder)};if(v[e.errorMarkClass]=!!q.value,v[e.warnMarkClass]=!!k.value,v[e.infoMarkClass]=!!_.value,typeof s.value=="function"){const E=s.value(o);v[E]=!0}else if(typeof s.value=="string"){const E=s.value;v[E]=!0}return v}),c=r.ref(null),f=r.computed(()=>{const v={},E=l&&n?_t(n,!1):null;if(a.value&&E)if(a.value.type==="grid"){const V=Ht(E,a.value,e.span,e.offset);Object.assign(v,V)}else if(a.value.type==="flow"){const V=zt(E,a.value,e.span,e.offset,e.width);Object.assign(v,V)}else return e.width&&(v.width=Se(e.width)),v;else e.width&&(v.width=Se(e.width));if(typeof c.value=="function"){const V=c.value(o);V&&Object.assign(v,V)}else if(c.value&&typeof c.value=="object"){const V=c.value;Object.assign(v,V)}return v}),d=r.ref(null),b=r.computed({get:()=>d.value??oe(e.isRequired),set:v=>{d.value=v}}),T=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=$e(r.toRef(e,"labelPosition"),"labelPosition",Ve.Near),h=r.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),p=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${h.value}`]:!0})),x=r.computed(()=>({label:!0,[`label--${h.value}`]:!0})),w=$e(r.toRef(e,"labelWidth"),"labelWidth",Ve.Near),I=r.computed(()=>w&&w.value?{width:Se(w.value)}:{}),P=r.computed(()=>({"label--string":!0,"label--required":b.value})),R=r.computed(()=>({content:!0,[e.contentClass]:!0})),A=r.computed(()=>({...e.contentStyle})),D=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(v){b.value=v},setErrorTip(v){D.errorTip=v},setErrorIcon(v){D.errorIcon=v},setWarnTip(v){D.warnTip=v},setWarnIcon(v){D.warnIcon=v},setInfoTip(v){D.infoTip=v},setInfoIcon(v){D.infoIcon=v},setCustomClassName(v){s.value=v},setCustomStyle(v){c.value=v}});const _=r.computed(()=>e.infoTip||D.infoTip),M=r.computed(()=>e.infoIcon||D.infoIcon),k=r.computed(()=>e.warnTip||D.warnTip),O=r.computed(()=>e.warnIcon||D.warnIcon),q=r.computed(()=>e.errorTip||D.errorTip),$=r.computed(()=>e.errorIcon||D.errorIcon),S=r.computed(()=>q.value?"error":k.value?"warn":_.value?"info":""),N=r.computed(()=>S.value.length>0),W=r.computed(()=>S.value==="error"?q.value:S.value==="warn"?k.value:S.value==="info"?_.value:""),B=r.computed(()=>S.value==="error"?$.value:S.value==="warn"?O.value:S.value==="info"?M.value:null),J=r.computed(()=>{let v={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?v[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?v[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(v[`${e.infoClass}`]=!0),v}),Y=r.computed(()=>{let v={};return g&&g.value==="top"||!T.value?v["padding-left"]="0px":w&&w.value&&(v["padding-left"]=Se(w.value)),v}),Z=()=>{const v=B.value;return v?typeof v=="function"?r.h("div",{class:"fox-item__tip--icon"},[v()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(v)]):null},ne=()=>{const v=W.value;return v?typeof v=="function"?r.h("div",{class:"fox-item__tip--text"},[v()]):r.h("div",{class:"fox-item__tip--text"},[v]):null},K=r.computed(()=>t.slots.fixedTip),Q=r.computed(()=>({[`${i}__fixed-tip`]:!0})),te=r.ref();let ee="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([v,E,V,j])=>{te.value&&(v&&!de(E)?ee?xe.show(te.value,E,{...j,id:ee,type:V},!0):ee=xe.show(te.value,E,{...j,type:V},!0):xe.hide(ee))});let F=null;const X=()=>{F||!te.value||(F=new IntersectionObserver(v=>{let E=!1;for(let V of v)if(V.intersectionRatio>0){E=!0,E&&t.emit("appear",V);break}E||t.emit("disappear")}),F.observe(te.value))},z=()=>{!F||!te.value||(F.unobserve(te.value),F=null)};return r.watch(()=>oe(e.appearListen),v=>{v?X():z()}),r.onMounted(()=>{oe(e.appearListen)&&X()}),r.onUnmounted(z),{classes:u,styles:f,mainClasses:p,hasLabel:T,labelClasses:x,labelStyles:I,labelStringClasses:P,contentClasses:R,contentStyles:A,contentRef:te,hasTip:N,mTip:W,mIcon:B,renderIcon:Z,renderTip:ne,tipClasses:J,tipStyles:Y,hasFixedTip:K,fixedTipClasses:Q}}}),_a=["prop"];function za(e,t,o,n,l,a){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.createBlock(r.resolveDynamicComponent(e.renderIcon()),{key:0})):r.createCommentVNode("",!0),e.mTip?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderTip()),{key:1})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,_a)}const me=Re(Pa,[["render",za]]);function Ha(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 l=ze(),a=Bt();jt(!1);const i=r.computed(()=>a&&l?Pt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=r.computed(()=>{const f={},d=a&&l?_t(l,!1):null;if(i.value&&d)if(i.value.type==="grid"){const b=Ht(d,i.value,o.span,o.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=zt(d,i.value,o.span,o.offset,o.width);Object.assign(f,b)}else return o.width&&(f.width=Se(o.width)),f;else o.width&&(f.width=Se(o.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",f,n.slots.default()):r.h("div",f)}}}}const{componentName:Wa,create:Ka,scope:hf}=le("slot-item"),Vn=Ka(Ha(Wa));function Ya(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const l=e,a=r.computed(()=>({[l]:!0,[`${l}__stretch`]:o.span==="stretch",[`${l}__${o.align}`]:!0})),i=ze(),s=Bt();jt(!1);const u=r.computed(()=>{const c={};if(s&&i){const f=Pt(i,!1),d=_t(i,!1);if(f.value&&d)if(f.value.type==="grid"){const b=Ht(d,f.value,o.span,o.offset);Object.assign(c,b)}else if(f.value.type==="flow"){const b=zt(d,f.value,o.span,o.offset,o.width);Object.assign(c,b)}else o.width&&(c.width=Se(o.width))}else o.width&&(c.width=Se(o.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const T=r.h("div",{class:{[`${l}__divide`]:!0}});c.push(T)}c.push(d[b])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return r.h("div",f,c)}}}}const{componentName:Ga,create:Ua,scope:gf}=le("row-item"),Fn=Ua(Ya(Ga)),qe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},oo={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 Xa(e,t,o){return{props:{...ge,...Te,...oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),g=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let p=se(n,"hintText"),x=r.ref(!1);const w=$=>{let N=$.target.value;f.value=!0,de(p.value)||(x.value=!0),s("focus",N,$)},I=$=>{setTimeout(()=>{x.value&&(x.value=!1),f.value=!1},0);let N=$.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,$)},P=()=>{s("clear","")},R=r.ref(!1);let A=null;const D=()=>{n.showTooltip&&R.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{R.value=!0},150))},_=()=>{A&&(clearTimeout(A),R.value=!1,A=null)},M=r.computed(()=>R.value||x.value),k=r.computed(()=>R.value?d.value:p.value),O=r.computed(()=>ht(n.unit)>0),q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const S={...qe(l.attrs),ref:q,class:T.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:P,onChange:h,onInput:g,onFocus:w,onBlur:I,onMouseover:D,onMouseleave:_},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:O.value&&(N.suffix=()=>[n.unit]);const W=[],B=r.h(y.ElInput,S,N);W.push(B);const J={default:()=>W};l.slots.default&&(J.label=l.slots.default),l.slots.default&&(J.fixedTip=l.slots.fixedTip);const Z={...we(n,oo),hintText:k.value,hintVisible:M.value,prop:`${n.prop}_item`};return r.h(o,Z,J)}}}}const{componentName:Za,create:Ja,scope:Qa}=le("input-item"),In=Ja(Xa(Za,Qa,me));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function lo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ei(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ti=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 l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function ni(){const e=r.getCurrentInstance();return new ti(e.proxy)}function ao(e,t,o){const n=Ue(e,t),l=Ue(e,o);if(n!==l)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function io(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=io(e,a,o,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(o==="text")u=Ue(e,i)===a;else if(o==="item")u=ao(e,i,a);else{let c=wt(e,i);c==null&&(c=Ue(e,i)),u=c===a}if(u){l.push(i);break}}}}),l}function ri(e){return{text:e,value:e}}const so={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function oi(e,t,o){return{props:{...ge,...Te,...so},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(V=>Ue(n,V)).join(" "):""),T=(E,V,j,G=!0)=>{const L=io(n,E,V,j);if(L===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],G&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let C=!0;if(L.length!==d.value.length)C=!1;else for(let H=0;H<L.length;H++){const U=L[H],re=d.value[H];if(!ao(n,U,re)){C=!1;break}}if(!C){d.value=L;let H=[],U=[],re=[];L.forEach(De=>{const xt=wt(n,De),je=Ue(n,De);H.push(xt),re.push(je),n.valueType==="text"?U.push(je):n.valueType==="item"?U.push(De):U.push(xt)});let ie,ce,ke;oe(n.multiple)?(f.value=H,ie=r.toRaw(U),ce=re,ke=r.toRaw(L)):(f.value=H[0]??"",ie=r.toRaw(U[0]??""),ce=re[0]??"",ke=r.toRaw(L[0])),G&&(s("update:modelValue",ie),s("change",ie,ke)),s("update:text",ce)}},g=r.ref(null),h=r.ref(null),p=r.computed(()=>h.value??g.value??[]),x=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,E=>oe(E)),w=ni(),I=async(E,V)=>{if(E){const j=await w.load("select",E,V);if(j.length>0)if(typeof j[0]=="string"){let C=j.map(H=>ri(H));g.value=C}else g.value=j;else g.value=null}};r.watch([()=>n.source,()=>n.params],([E,V])=>{h.value=null,I(E,V)},{immediate:!x.value});let P=!1;const R=()=>{P||(P=!0,I(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([E,V])=>{if(M()&&oe(n.multiple)){Pe(V,f.value)||(f.value=V);return}T(V,n.valueType,p.value,!1)});let A=null,D=r.ref(!1);typeof n.remoteMethod=="function"&&(A=async E=>{if(E==null){h.value=null;return}D.value=!0;try{const V=await n.remoteMethod(E);V&&(h.value=V)}catch(V){h.value=null,console.error(V)}D.value=!1});let _=null;typeof n.filterMethod=="function"&&(_=async E=>{if(E==null){h.value=null;return}D.value=!0;try{const V=await n.filterMethod(E,g.value);V&&(h.value=V)}catch(V){h.value=null,console.error(V)}D.value=!1});const M=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=r.ref(!1),O=e,q=r.computed(()=>({[O]:!0})),$=E=>{n.allowCreate||M()&&oe(n.multiple)?(s("update:modelValue",E),s("change",E),s("update:text",E),f.value=E):T(E,"value",p.value,!0)};let S=se(n,"hintText"),N=r.ref(!1);const W=E=>{let j=E.target.value;k.value=!0,de(S.value)||(N.value=!0),s("focus",j,E)},B=E=>{setTimeout(()=>{N.value&&(N.value=!1),k.value=!1},0);let j=E.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),ee.value||s("blur",j,E)},J=()=>{s("clear","")},Y=r.ref(!1);let Z=null;const ne=()=>{n.showTooltip&&Y.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{Y.value=!0},150))},K=()=>{Z&&(clearTimeout(Z),Y.value=!1,Z=null)},Q=r.computed(()=>Y.value||N.value),te=r.computed(()=>Y.value?b.value:S.value),ee=r.ref(!1),F=E=>{ee.value=E,s("visible-change",E),E||s("selected")},X=E=>{s("remove-tag",E)},z=(E,V)=>{const j=[];return E.forEach((G,L)=>{const C=lo(n,G);if(Array.isArray(C)&&C.length>0){const H=z(C,V),U=Ue(n,G),ie={key:`${U}_${L}`,label:U};j.push(r.h(y.ElOptionGroup,ie,{default:()=>H}))}else{const H=wt(n,G),U=Ue(n,G),re=ei(n,G),ce={key:`${H}_${L}`,label:U,disabled:re,value:H};if(typeof V=="function")j.push(r.h(y.ElOption,ce,{default:()=>V(G)}));else if(n.optionType==="item"){const ke={class:{"fox-select-item__option-left":!0}},De=r.h("span",ke,[H]),xt={class:{"fox-select-item__option-right":!0}},je=r.h("span",xt,[U]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[De,je]);j.push(r.h(y.ElOption,ce,{default:()=>dr}))}else n.optionType==="value"?j.push(r.h(y.ElOption,ce,{default:()=>[H]})):j.push(r.h(y.ElOption,ce))}}),j},v=r.ref();return ye({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()}}),()=>{const V={...qe(l.attrs),ref:v,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:$,onFocus:W,onBlur:B,onVisibleChange:F,onRemoveTag:X};typeof A=="function"&&(V["remote-method"]=A,V.loading=D.value),typeof _=="function"&&(V["filter-method"]=_,V.loading=D.value);const j={};l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.empty&&(j.empty=l.slots.empty),l.slots.options?j.default=l.slots.options:j.default=()=>z(p.value,l.slots.option);const G=[],L=r.h(y.ElSelect,V,j);G.push(L);const C={default:()=>G};l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip);const U={...we(n,so),hintText:te.value,hintVisible:Q.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:ne,onMouseleave:K};return x.value&&(U["appear-listen"]=!0,U.onAppear=R),r.h(o,U,C)}}}}const{componentName:li,create:ai,scope:ii}=le("select-item"),Rn=ai(oi(li,ii,me));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o=1e3,n=6e4,l=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",b="quarter",T="year",g="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},I=function($,S,N){var W=String($);return!W||W.length>=S?$:""+Array(S+1-W.length).join(N)+$},P={s:I,z:function($){var S=-$.utcOffset(),N=Math.abs(S),W=Math.floor(N/60),B=N%60;return(S<=0?"+":"-")+I(W,2,"0")+":"+I(B,2,"0")},m:function $(S,N){if(S.date()<N.date())return-$(N,S);var W=12*(N.year()-S.year())+(N.month()-S.month()),B=S.clone().add(W,d),J=N-B<0,Y=S.clone().add(W+(J?-1:1),d);return+(-(W+(N-B)/(J?B-Y:Y-B))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:T,w:f,d:c,D:g,h:u,m:s,s:i,ms:a,Q:b}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},R="en",A={};A[R]=w;var D=function($){return $ instanceof O},_=function $(S,N,W){var B;if(!S)return R;if(typeof S=="string"){var J=S.toLowerCase();A[J]&&(B=J),N&&(A[J]=N,B=J);var Y=S.split("-");if(!B&&Y.length>1)return $(Y[0])}else{var Z=S.name;A[Z]=S,B=Z}return!W&&B&&(R=B),B||!W&&R},M=function($,S){if(D($))return $.clone();var N=typeof S=="object"?S:{};return N.date=$,N.args=arguments,new O(N)},k=P;k.l=_,k.i=D,k.w=function($,S){return M($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var O=function(){function $(N){this.$L=_(N.locale,null,!0),this.parse(N)}var S=$.prototype;return S.parse=function(N){this.$d=function(W){var B=W.date,J=W.utc;if(B===null)return new Date(NaN);if(k.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var Y=B.match(p);if(Y){var Z=Y[2]-1||0,ne=(Y[7]||"0").substring(0,3);return J?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ne)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ne)}}return new Date(B)}(N),this.$x=N.x||{},this.init()},S.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},S.$utils=function(){return k},S.isValid=function(){return this.$d.toString()!==h},S.isSame=function(N,W){var B=M(N);return this.startOf(W)<=B&&B<=this.endOf(W)},S.isAfter=function(N,W){return M(N)<this.startOf(W)},S.isBefore=function(N,W){return this.endOf(W)<M(N)},S.$g=function(N,W,B){return k.u(N)?this[W]:this.set(B,N)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(N,W){var B=this,J=!!k.u(W)||W,Y=k.p(N),Z=function(z,v){var E=k.w(B.$u?Date.UTC(B.$y,v,z):new Date(B.$y,v,z),B);return J?E:E.endOf(c)},ne=function(z,v){return k.w(B.toDate()[z].apply(B.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(v)),B)},K=this.$W,Q=this.$M,te=this.$D,ee="set"+(this.$u?"UTC":"");switch(Y){case T:return J?Z(1,0):Z(31,11);case d:return J?Z(1,Q):Z(0,Q+1);case f:var F=this.$locale().weekStart||0,X=(K<F?K+7:K)-F;return Z(J?te-X:te+(6-X),Q);case c:case g:return ne(ee+"Hours",0);case u:return ne(ee+"Minutes",1);case s:return ne(ee+"Seconds",2);case i:return ne(ee+"Milliseconds",3);default:return this.clone()}},S.endOf=function(N){return this.startOf(N,!1)},S.$set=function(N,W){var B,J=k.p(N),Y="set"+(this.$u?"UTC":""),Z=(B={},B[c]=Y+"Date",B[g]=Y+"Date",B[d]=Y+"Month",B[T]=Y+"FullYear",B[u]=Y+"Hours",B[s]=Y+"Minutes",B[i]=Y+"Seconds",B[a]=Y+"Milliseconds",B)[J],ne=J===c?this.$D+(W-this.$W):W;if(J===d||J===T){var K=this.clone().set(g,1);K.$d[Z](ne),K.init(),this.$d=K.set(g,Math.min(this.$D,K.daysInMonth())).$d}else Z&&this.$d[Z](ne);return this.init(),this},S.set=function(N,W){return this.clone().$set(N,W)},S.get=function(N){return this[k.p(N)]()},S.add=function(N,W){var B,J=this;N=Number(N);var Y=k.p(W),Z=function(Q){var te=M(J);return k.w(te.date(te.date()+Math.round(Q*N)),J)};if(Y===d)return this.set(d,this.$M+N);if(Y===T)return this.set(T,this.$y+N);if(Y===c)return Z(1);if(Y===f)return Z(7);var ne=(B={},B[s]=n,B[u]=l,B[i]=o,B)[Y]||1,K=this.$d.getTime()+N*ne;return k.w(K,this)},S.subtract=function(N,W){return this.add(-1*N,W)},S.format=function(N){var W=this,B=this.$locale();if(!this.isValid())return B.invalidDate||h;var J=N||"YYYY-MM-DDTHH:mm:ssZ",Y=k.z(this),Z=this.$H,ne=this.$m,K=this.$M,Q=B.weekdays,te=B.months,ee=function(v,E,V,j){return v&&(v[E]||v(W,J))||V[E].slice(0,j)},F=function(v){return k.s(Z%12||12,v,"0")},X=B.meridiem||function(v,E,V){var j=v<12?"AM":"PM";return V?j.toLowerCase():j},z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:K+1,MM:k.s(K+1,2,"0"),MMM:ee(B.monthsShort,K,te,3),MMMM:ee(te,K),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:ee(B.weekdaysMin,this.$W,Q,2),ddd:ee(B.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(Z),HH:k.s(Z,2,"0"),h:F(1),hh:F(2),a:X(Z,ne,!0),A:X(Z,ne,!1),m:String(ne),mm:k.s(ne,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:Y};return J.replace(x,function(v,E){return E||z[v]||Y.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(N,W,B){var J,Y=k.p(W),Z=M(N),ne=(Z.utcOffset()-this.utcOffset())*n,K=this-Z,Q=k.m(this,Z);return Q=(J={},J[T]=Q/12,J[d]=Q,J[b]=Q/3,J[f]=(K-ne)/6048e5,J[c]=(K-ne)/864e5,J[u]=K/l,J[s]=K/n,J[i]=K/o,J)[Y]||K,B?Q:k.a(Q)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return A[this.$L]},S.locale=function(N,W){if(!N)return this.$L;var B=this.clone(),J=_(N,W,!0);return J&&(B.$L=J),B},S.clone=function(){return k.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),q=O.prototype;return M.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",T],["$D",g]].forEach(function($){q[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),M.extend=function($,S){return $.$i||($(S,O,M),$.$i=!0),M},M.locale=_,M.isDayjs=D,M.unix=function($){return M(1e3*$)},M.en=A[R],M.Ls=A,M.p={},M})})(uo);var si=uo.exports;const Be=We(si);var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,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,l=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=function(h){return function(p){this[h]=+p}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var x=p.match(/([+-]|\d\d)/g),w=60*x[1]+(+x[2]||0);return w===0?0:x[0]==="+"?-w:w}(h)}],d=function(h){var p=s[h];return p&&(p.indexOf?p:p.s.concat(p.f))},b=function(h,p){var x,w=s.meridiem;if(w){for(var I=1;I<=24;I+=1)if(h.indexOf(w(I,0,p))>-1){x=I>12;break}}else x=h===(p?"pm":"PM");return x},T={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[l,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[l,c("day")],Do:[i,function(h){var p=s.ordinal,x=h.match(/\d+/);if(this.day=x[0],p)for(var w=1;w<=31;w+=1)p(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,c("month")],MM:[l,c("month")],MMM:[i,function(h){var p=d("months"),x=(d("monthsShort")||p.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[i,function(h){var p=d("months").indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function g(h){var p,x;p=h,x=s&&s.formats;for(var w=(h=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,k,O){var q=O&&O.toUpperCase();return k||x[O]||o[O]||x[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,S,N){return S||N.slice(1)})})).match(n),I=w.length,P=0;P<I;P+=1){var R=w[P],A=T[R],D=A&&A[0],_=A&&A[1];w[P]=_?{regex:D,parser:_}:R.replace(/^\[|\]$/g,"")}return function(M){for(var k={},O=0,q=0;O<I;O+=1){var $=w[O];if(typeof $=="string")q+=$.length;else{var S=$.regex,N=$.parser,W=M.slice(q),B=S.exec(W)[0];N.call(k,B),M=M.replace(B,"")}}return function(J){var Y=J.afternoon;if(Y!==void 0){var Z=J.hours;Y?Z<12&&(J.hours+=12):Z===12&&(J.hours=0),delete J.afternoon}}(k),k}}return function(h,p,x){x.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=p.prototype,I=w.parse;w.parse=function(P){var R=P.date,A=P.utc,D=P.args;this.$u=A;var _=D[1];if(typeof _=="string"){var M=D[2]===!0,k=D[3]===!0,O=M||k,q=D[2];k&&(q=D[2]),s=this.$locale(),!M&&q&&(s=x.Ls[q]),this.$d=function(W,B,J){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*W);var Y=g(B)(W),Z=Y.year,ne=Y.month,K=Y.day,Q=Y.hours,te=Y.minutes,ee=Y.seconds,F=Y.milliseconds,X=Y.zone,z=new Date,v=K||(Z||ne?1:z.getDate()),E=Z||z.getFullYear(),V=0;Z&&!ne||(V=ne>0?ne-1:z.getMonth());var j=Q||0,G=te||0,L=ee||0,C=F||0;return X?new Date(Date.UTC(E,V,v,j,G,L,C+60*X.offset*1e3)):J?new Date(Date.UTC(E,V,v,j,G,L,C)):new Date(E,V,v,j,G,L,C)}catch{return new Date("")}}(R,_,A),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),O&&R!=this.format(_)&&(this.$d=new Date("")),s={}}else if(_ instanceof Array)for(var $=_.length,S=1;S<=$;S+=1){D[1]=_[S-1];var N=x.apply(this,D);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}S===$&&(this.$d=new Date(""))}else I.call(this,P)}}})})(co);var ui=co.exports;const ci=We(ui);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,l){var a=n.prototype,i=a.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],c=s%100;return"["+s+(u[(c-20)%10]||u[c]||u[0])+"]"},a.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return b}});return i.bind(this)(d)}}})})(fo);var fi=fo.exports;const di=We(fi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,l){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,b,T,g,h){var p=d.name?d:d.$locale(),x=i(p[b]),w=i(p[T]),I=x||w.map(function(R){return R.slice(0,g)});if(!h)return I;var P=p.weekStart;return I.map(function(R,A){return I[(A+(P||0))%7]})},u=function(){return l.Ls[l.locale()]},c=function(d,b){return d.formats[b]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,p){return h||p.slice(1)})}(d.formats[b.toUpperCase()])},f=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):s(d,"months")},monthsShort:function(b){return b?b.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return c(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(b){return c(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(d){return s(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(ho);var hi=ho.exports;const gi=We(hi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o="week",n="year";return function(l,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var b=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),T=this.diff(b,o,!0);return T<0?i(this).startOf("week").week():Math.ceil(T)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(go);var mi=go.exports;const pi=We(mi);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.weekYear=function(){var l=this.month(),a=this.week(),i=this.year();return a===1&&l===11?i+1:l===0&&a>=52?i-1:i}}})})(mo);var yi=mo.exports;const bi=We(yi);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,l){n.prototype.dayOfYear=function(a){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(po);var vi=po.exports;const wi=We(vi);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.isSameOrAfter=function(l,a){return this.isSame(l,a)||this.isAfter(l,a)}}})})(yo);var Si=yo.exports;const Ti=We(Si);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.isSameOrBefore=function(l,a){return this.isSame(l,a)||this.isBefore(l,a)}}})})(bo);var xi=bo.exports;const $i=We(xi);Be.extend(gi),Be.extend(di),Be.extend(ci),Be.extend(pi),Be.extend(bi),Be.extend(wi),Be.extend(Ti),Be.extend($i);const Fe={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 l=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[o,n,l].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 l=new Date(Number(e),parseInt(t)-1,Number(o));let a=l.getDay(),i=l.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((l.valueOf()-a.valueOf())/864e5);let s=l.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=l.getTime();let i=l.getDay();if(n===0){const u=a-i*864e5,c=a+(6-i)*864e5,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,c=a+(7-i)*s,f=this.date2Str(new Date(u)),d=this.date2Str(new Date(c));return[f,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Fe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Fe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i}},vo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},wo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ci(e,t,o){return{props:{...ge,...Te,...vo,...wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=r.computed(()=>N.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),T=r.computed(()=>N.value?"longTermKey":"normalKey"),g=v=>{if(N.value&&n.type==="daterange"){const E=[...d.value];E[0]=v,d.value=E}else d.value=v;s("update:modelValue",d.value),s("change",d.value)},h=r.computed(()=>N.value&&n.type==="daterange"?"date":n.type),p=e,x=r.computed(()=>({[`${p}`]:!0,"is-long":N.value,"is-readonly":i.value,"is-disabled":a.value}));let w=se(n,"hintText"),I=r.ref(!1);const P=v=>{let V=v.target.value;f.value=!0,de(w.value)||(I.value=!0),s("focus",V,v)},R=v=>{setTimeout(()=>{I.value&&(I.value=!1),f.value=!1},0);let V=v.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,v)},A=()=>{s("clear","")},D=v=>{s("calendar-change",v)},_=(v,E,V)=>{s("panel-change",v,E,V)},M=v=>{s("visible-change",v)},k=$e(r.computed(()=>n.longTermText),"longTermText",Ve.Near),O=$e(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ve.Near),q=$e(r.computed(()=>n.longTermValue),"longTermValue",Ve.Near),$=$e(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ve.Near);let S=null;const N=r.ref(oe(n.longTerm)),W=v=>{if(N.value=v,s("update:longTerm",v),v){if(S=d.value,n.type==="daterange"){const E=[];Array.isArray(q.value)?(E[0]=d.value?d.value[0]??q.value[0]:null,E[1]=q.value[1]??q.value[0]):(E[0]=d.value?d.value[0]??q.value:null,E[1]=N.value),E[0]||(E[0]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),E[1]||(E[1]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),d.value=E}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const E=[];E[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(S)?E[1]=S[1]:E[1]=S,E[0]||(E[0]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),E[1]||(E[1]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),d.value=E}else d.value=S;s("update:modelValue",d.value),setTimeout(()=>{X()},100)}},B=oe(n.isLongTerm);if(B){const v=()=>{if(N.value===!0){if(S=d.value,n.type==="daterange"){const E=[d.value[0]];Array.isArray(q.value)?E[1]=q.value[1]??q.value[0]:E[1]=N.value,E[0]||(E[0]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),E[1]||(E[1]=n.valueFormat?Fe.format(new Date,n.valueFormat):new Date),d.value=E}else d.value=q.value;s("update:modelValue",d.value)}else Pe(q.value,d.value)&&(N.value=!0)};v(),r.watch([()=>n.longTerm],([E])=>{N.value!==E&&v()}),r.watch([()=>d.value],([E])=>{let V=!1;if(n.type==="daterange"&&Array.isArray(E))try{let j=E[1];if(!j)return;typeof j!="string"&&n.valueFormat&&(j=Fe.format(j,n.valueFormat));let G=Array.isArray(q.value)?q.value[1]:q.value;(j===G||Array.isArray($.value)&&$.value.findIndex(C=>j==C)!==-1)&&(V=!0)}catch(j){console.error(j)}N.value!==V&&(N.value=V)},{immediate:!0})}const J=r.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Y=r.ref(),Z=r.ref(),ne=/^\d+$/,K=(v,E)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(v,E):ne.test(v)&&v.length===n.flashFillThreshold,Q=(v,E)=>{let V;if(typeof n.flashFillFormat=="function")V=n.flashFillFormat(v,E);else{const G=n.flashFillFormat??"YYYYMMDD";V=Fe.parser(v,G)}const j=n.valueFormat??"YYYY-MM-DD";return Fe.format(V,j)},te=v=>v?v.endsWith("range"):!1,ee=v=>{if(!v.target)return;const E=v.target.value??"";if(K(E,n.type)){const V=Q(E,n.type);if(te(n.type)){const j=Array.isArray(d.value)?[...d.value]:[];j[0]=V,g(j)}else g(V)}},F=v=>{if(!v.target)return;const E=v.target.value??"";if(K(E,n.type)){const V=Q(E,n.type);if(te(n.type)){const j=Array.isArray(d.value)?[...d.value]:[];j[1]=V,g(j)}else g(V)}},X=()=>{if(n.flashFill&&Y.value&&Y.value.$el)if(te(n.type)){const v=Y.value.$el.querySelectorAll("input.el-range-input");v[0]&&v[0].addEventListener("input",ee),v[1]&&v[1].addEventListener("input",F)}else{const v=Y.value.$el.querySelector("input.el-input__inner");v&&v.addEventListener("input",ee)}},z=()=>{if(n.flashFill&&Y.value&&Y.value.$el)if(te(n.type)){const v=Y.value.$el.querySelectorAll("input.el-range-input");v[0]&&v[0].removeEventListener("input",ee),v[1]&&v[1].removeEventListener("input",F)}else{const v=Y.value.$el.querySelector("input.el-input__inner");v&&v.removeEventListener("input",ee)}};return r.onMounted(X),r.onBeforeUnmount(z),ye({focus:()=>{Z?.value.focus()},blur:()=>{Z?.value.blur()},handleOpen:()=>{Z?.value.handleOpen()},handleClose:()=>{Z?.value.handleClose()}}),()=>{const E={...l.attrs,key:T.value,type:h.value,ref:Z,class:x.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:P,onBlur:R,onCalendarChange:D,onPanelChange:_,onVisibleChange:M},V={};l.slots["range-separator"]&&(V["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(V.default=l.slots.cell);const j=[],G=r.h(y.ElDatePicker,E,V);j.push(G);const L={default:()=>j};if(l.slots.default&&(L.label=l.slots.default),l.slots.fixedTip&&(L.fixedTip=l.slots.fixedTip),B){if(N.value){const re=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ie=r.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),ce={class:J.value},ke=r.h("div",ce,{default:()=>[re,ie]});j.push(ke)}if(!i.value&&!a.value){const re={label:O.value||k.value,disabled:i.value||a.value,modelValue:N.value,"onUpdate:modelValue":W},ie=r.h(y.ElCheckbox,re),ce=r.h("div",{class:{[`${p}__append`]:!0}},[ie]);L.append=()=>ce}}const H={...we(n,vo,wo),ref:Y,class:{[`${p}__wrapper`]:!0,"has-append":B},hintText:w.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,H,L)}}}}const{componentName:Ei,create:Ni,scope:ki}=le("date-item"),Dn=Ni(Ci(Ei,ki,me)),So={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Oi(e,t,o){return{props:{...ge,...Te,...So},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0})),g=A=>{d.value=A,s("update:modelValue",A),s("change",A)};let h=se(n,"hintText"),p=r.ref(!1);const x=A=>{let _=A.target.value;f.value=!0,de(h.value)||(p.value=!0),s("focus",_,A)},w=A=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let _=A.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),s("blur",_,A)},I=()=>{s("clear","")},P=A=>{s("visible-change",A)},R=r.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const D={...l.attrs,ref:R,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:I,onFocus:x,onBlur:w,onVisibleChange:P},_={},M=[],k=r.h(y.ElTimePicker,D,_);M.push(k);const O={default:()=>M};l.slots.default&&(O.label=l.slots.default),l.slots.fixedTip&&(O.fixedTip=l.slots.fixedTip);const $={...we(n,So),hintText:h.value,hintVisible:p.value,prop:`${n.prop}_item`};return r.h(o,$,O)}}}}const{componentName:Vi,create:Fi,scope:Ii}=le("time-item"),An=Fi(Oi(Vi,Ii,me)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ri(e,t,o){return{props:{...ge,...Te,...To},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0})),g=R=>{d.value=R,s("update:modelValue",R),s("change",R)};let h=se(n,"hintText"),p=r.ref(!1);const x=R=>{let D=R.target.value;f.value=!0,de(h.value)||(p.value=!0),s("focus",D,R)},w=R=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let D=R.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,R)},I=()=>{s("clear","")},P=r.ref();return ye({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()}}),()=>{const A={...l.attrs,ref:P,class:T.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:I,onFocus:x,onBlur:w},D={},_=[],M=r.h(y.ElTimeSelect,A,D);_.push(M);const k={default:()=>_};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const q={...we(n,To),hintText:h.value,hintVisible:p.value,prop:`${n.prop}_item`};return r.h(o,q,k)}}}}const{componentName:Di,create:Ai,scope:Mi}=le("time-select-item"),Mn=Ai(Ri(Di,Mi,me));function xo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let l=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){l=a;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>o.length?o=o.padEnd(l,"0"):o=o.substring(0,l),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=br(`${e}`,`${t}`);return xo(n)}else{let n=ln(`${e}`,vr(`${t}`),20);return xo(n)}}function Li(e,t=-1,o=!1,n=3,l=","){return Et(e,t,o,n,l)}function Co(e,t,o,n,l=!0){if(e=="")return"";if(e=wr(e),t=ve(t),t==1)return e;if(n)e=$o(e,t),o&&(e=="0"&&l?e=`${e}.`.padEnd(ve(o)+2,"0"):e=ln(e,1,ve(o)));else{let a=-1*t;e=$o(e,a)}return e}function Eo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=oe(t.minInclude),l=an(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=oe(t.maxInclude),l=an(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(o.maxValid=!1)}return o}const No={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 qi(e,t,o){return{props:{...ge,...Te,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),c=se(n,"modelValue"),f=r.ref("");r.watch([()=>c.value,()=>n.rates,()=>n.precision],([$,S,N])=>{if(de($)){f.value="";return}const W=Co($,S,N,!1);f.value!==W&&(f.value=W)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=f.value),$}),{t:b}=Ae.useFoxI18n(t),T=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(f.value)?$=Li(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=b(["placeholder",$]),$}),g=e,h=r.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),p=$e(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const x=r.ref(""),w=r.computed(()=>{let $=x.value;return de($)&&($=n.errorTip??""),$}),I=r.ref(""),P=r.ref(!1),R=($,S)=>{if($=`${$}`,de($)){f.value="",c.value="",S.forEach(N=>{s(N,"")}),oe(n.showTip)&&P.value&&(P.value=!1);return}if($.length>=2){let N=$;if(N.charAt(0)=="-"&&(N=N.substring(1)),N.length>=2&&N.charAt(0)=="0"&&N.charAt(1)!="."){r.triggerRef(f);return}}if($!="-"){if(!kr($)){r.triggerRef(f);return}if(n.integerLength!=-1&&Or($)>Number(n.integerLength)){r.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Vr($)>Number(n.decimalLength)){r.triggerRef(f);return}let N=Eo($,n);if(N.maxValid===!1){x.value=N.message,r.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(f);return}I.value=$,oe(n.showTip)&&(P.value=$.length>0),f.value=$,c.value=Co($,n.rates,n.precision,!0),S.forEach(N=>{s(N,c.value)})},A=$=>{R($,["update:modelValue","input"])},D=$=>{R($,["update:modelValue","change"])},_=$=>{if(u.value=!0,oe(n.showTip)){let S=f.value;de(S)&&(S=n.hintText),de(S)||(I.value=S,P.value=!0)}x.value="",s("focus",c.value,$)},M=$=>{if(setTimeout(()=>{u.value=!1,oe(n.showTip)&&P.value===!0&&(P.value=!1)},0),!de(f.value)){let S=Eo(f.value,n);if(S.minValid===!1||S.maxValid===!1){x.value=S.message;return}}s("update:modelValue",c.value,$),s("blur",c.value,$)},k=()=>{s("clear","")},O=r.computed(()=>ht(n.unit)>0),q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const S={...qe(l.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:T.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:D,onFocus:_,onBlur:M},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:O.value&&(N.suffix=()=>[n.unit]);const W=[],B=r.h(y.ElInput,S,N);W.push(B);const J={default:()=>W};l.slots.default&&(J.label=l.slots.default),l.slots.fixedTip&&(J.fixedTip=l.slots.fixedTip);const Z={...we(n,No),errorTip:w.value,hintText:I.value,hintVisible:P.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,Z,J)}}}}const{componentName:Bi,create:ji,scope:Pi}=le("money-item"),Ln=ji(qi(Bi,Pi,me)),ko={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 _i(e,t,o){return{props:{...ge,...Te,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),g=r.computed(()=>({[`${b}__unit`]:!0})),h=_=>{d.value=_,s("update:modelValue",_),s("input",_)},p=_=>{s("change",_)};let x=se(n,"hintText"),w=r.ref(!1);const I=_=>{let k=_.target.value;f.value=!0,de(x.value)||(w.value=!0),s("focus",k,_)},P=_=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=_.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,_)},R=()=>{s("clear","")},A=r.computed(()=>ht(n.unit)>0),D=r.ref();return ye({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const M={...qe(l.attrs),ref:D,class:T.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onChange:p,onInput:h,onFocus:I,onBlur:P},k={},O=[],q=r.h(y.ElInputNumber,M,k);O.push(q);const $={default:()=>O};l.slots.default&&($.label=l.slots.default),l.slots.fixedTip&&($.fixedTip=l.slots.fixedTip);const N={...we(n,ko),hintText:x.value,hintVisible:w.value,prop:`${n.prop}_item`};if(l.slots.append)$.append=l.slots.append;else if(A.value){const B={class:g.value},J=r.h("div",B,[n.unit]);$.append=()=>J}return r.h(o,N,$)}}}}const{componentName:zi,create:Hi,scope:Wi}=le("input-number-item"),qn=Hi(_i(zi,Wi,me));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ki(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Yi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,l);const a=Le(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n,l))}};function Gi(){const e=r.getCurrentInstance();return new Yi(e.proxy)}function Bn(e,t,o){const n=Ke(e,t),l=Ke(e,o);if(n!==l)return!1;const a=et(e,t),i=et(e,o);return a===i}function Oo(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Oo(e,s,o,n);l.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=Ke(e,c)===s;else if(o==="item")u=Bn(e,c,s);else{let f=et(e,c);f==null&&(f=Ke(e,c)),u=f===s}if(u){l.push(c),a=Ki(e,c);break}}if(!u)break}}return l}function Ui(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},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Xi(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,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(v=>Array.isArray(v)?v.map(V=>Ke(n,V)).join(" "):Ke(n,v)).join(" "):""),T=(z,v,E,V=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===z)return;f.value=z;const C=r.toRaw(z);if(V){const H=X?.value.getCheckedNodes();if(H)if(n.multiple){const U=[];H.forEach(re=>{const ce=(re.pathNodes??[]).map(ke=>ke.data);U.push(ce)}),s("update:pathNodes",U)}else{const re=(H[0]?.pathNodes??[]).map(ie=>ie.data);s("update:pathNodes",re)}s("update:modelValue",C),s("change",C)}return}const j=Oo(n,z,v,E);if(j===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,V&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const G=j[j.length-1];if(k.value.checkStrictly!==!0&&!Array.isArray(G)&&Array.isArray(G.children)&&G.children.length>0){const C=[];j.forEach(H=>{const U=`${Ke(n,H)}`;C.push(U)}),C.length>0&&(M.value=C.join(n.separator))}else M.value=null;let L=!0;if(j.length!==d.value.length)L=!1;else for(let C=0;C<j.length;C++){const H=j[C],U=d.value[C];if(Array.isArray(H)){if(!Array.isArray(U)||H.length!==U.length)L=!1;else for(let re=0;re<H.length;re++)if(!Bn(n,H[re],U[re])){L=!1;break}}else Bn(n,H,U)||(L=!1);if(!L)break}if(!L){d.value=j;let C=[],H=[];j.forEach(re=>{if(Array.isArray(re)){let ie=[],ce=[];for(let ke of re)ie.push(et(n,ke)),n.valueType==="text"?ce.push(Ke(n,ke)):n.valueType==="item"?ce.push(ke):ce.push(et(n,ke));C.push(ie),H.push(ce)}else C.push(et(n,re)),n.valueType==="text"?H.push(Ke(n,re)):n.valueType==="item"?H.push(re):H.push(et(n,re))}),f.value=C;const U=r.toRaw(H);V&&(s("update:pathNodes",j),s("update:modelValue",U),s("change",U))}},g=r.ref([]),h=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,z=>oe(z)),p=Gi(),x=async(z,v)=>{if(z){const E=await p.load("cascader",z,v);if(E.length>0)if(typeof E[0]=="string"){let G=E.map(L=>Ui(L));g.value=G}else g.value=E}};r.watch([()=>n.source,()=>n.params],async([z,v])=>{x(z,v)},{immediate:!(h.value||n.lazy)});let w=!1;const I=()=>{w||(w=!0,x(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([z,v])=>{T(v,n.valueType,z,!1)}),n.lazy&&T(n.modelValue,"value",[],!1);let P=null,R=r.ref(!1);typeof n.remoteMethod=="function"&&(P=async z=>{if(z!=null){R.value=!0;try{const v=await n.remoteMethod(z);g.value=v}catch(v){console.error(v)}R.value=!1}});const A=r.ref(!1),D=e,_=r.computed(()=>({[D]:!0})),M=r.ref(null),k=r.computed(()=>{let z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(z.multiple=!0),n.props&&Object.assign(z,n.props),n.lazy&&(z.lazy=!0,z.lazyLoad=async(v,E)=>{const V=await p.load("cascader",n.source,v,!0);if(v?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===v.level){const j=v.pathLabels??[];let G=[];j.forEach(L=>{L&&G.push(L)}),G.length>0&&(M.value=G.join(n.separator))}else M.value=null;E(V)}),z}),O=z=>{n.allowCreate?(s("update:modelValue",z),s("change",z),f.value=z):T(z,"value",g.value,!0)};let q=se(n,"hintText"),$=r.ref(!1);const S=z=>{let E=z.target.value;A.value=!0,de(q.value)||($.value=!0),s("focus",E,z)},N=z=>{setTimeout(()=>{$.value&&($.value=!1),A.value=!1},0);let E=z.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),Q.value||s("blur",E,z)},W=()=>{s("clear","")},B=r.ref(!1);let J=null;const Y=()=>{n.showTooltip&&B.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{B.value=!0},150))},Z=()=>{J&&(clearTimeout(J),B.value=!1,J=null)},ne=r.computed(()=>B.value||$.value),K=r.computed(()=>B.value?b.value:q.value),Q=r.ref(!1),te=z=>{Q.value=z,s("visible-change",z),z||s("selected")},ee=z=>{s("remove-tag",z)},F=z=>{s("expand-change",z)},X=r.ref();return ye({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},getCheckedNodes:()=>X?.value.getCheckedNodes()}),()=>{const v={...l.attrs,ref:X,class:_.value,props:k.value,clearable:n.clearable,placeholder:M.value||c.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:W,onChange:O,onFocus:S,onBlur:N,onVisibleChange:te,onRemoveTag:ee,expandChange:F};typeof P=="function"&&(v["remote-method"]=P,v.loading=R.value);const E={};l.slots.option&&(E.default=l.slots.option),l.slots.empty&&(E.empty=l.slots.empty);const V=[],j=r.h(y.ElCascader,v,E);V.push(j);const G={default:()=>V};l.slots.default&&(G.label=l.slots.default),l.slots.fixedTip&&(G.fixedTip=l.slots.fixedTip);const C={...we(n,Vo),hintText:K.value,hintVisible:ne.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:Y,onMouseleave:Z};return h.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=I),r.h(o,C,G)}}}}const{componentName:Zi,create:Ji,scope:Qi}=le("cascader-item"),jn=Ji(Xi(Zi,Qi,me)),Fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function es(e,t,o){return{props:{...ge,...Te,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),c=u(n,["placeholder"]),f=r.ref(!1),d=se(n,"modelValue"),b=e,T=r.computed(()=>({[b]:!0})),g=D=>{d.value=D,s("update:modelValue",D),s("input",D)},h=D=>{s("change",D)},p=D=>{s("select",D)};let x=se(n,"hintText"),w=r.ref(!1);const I=D=>{let M=D.target.value;f.value=!0,de(x.value)||(w.value=!0),s("focus",M,D)},P=D=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let M=D.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,D)},R=()=>{s("clear","")},A=r.ref();return ye({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const _={...l.attrs,ref:A,class:T.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:R,onChange:h,onInput:g,onFocus:I,onBlur:P,onSelect:p},M={};l.slots.prepend&&(M.prepend=l.slots.prepend),l.slots.append&&(M.append=l.slots.append),l.slots.prefix&&(M.prefix=l.slots.prefix),l.slots.suffix&&(M.suffix=l.slots.suffix),l.slots.option&&(M.default=l.slots.option);const k=[],O=r.h(y.ElAutocomplete,_,M);k.push(O);const q={default:()=>k};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const S={...we(n,Fo),hintText:x.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,S,q)}}}}const{componentName:ts,create:ns,scope:rs}=le("autocomplete-item"),Pn=ns(es(ts,rs,me));function os(e,t,o,n,l){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(b=>b[n]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let c=t[u],f=a[u];const d=c.find(b=>b[n]===f);if(!d)break;i.push(d[o])}else{let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(b=>b[n]===f);if(!d)break;i.push(d[o]),u=d[l]}}return i}let ls=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 l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function as(){const e=r.getCurrentInstance();return new ls(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 is(e,t){return{props:{...Io},setup(o,{attrs:n,slots:l}){const a=as(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=os(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return l.default?l.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,c,{default:()=>s.value}):r.h(u,c,s.value)}}}}const{componentName:mf,create:ss,scope:pf}=le("mapping"),St=ss(is());function us(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function cs(e,t){return{props:{...Io},setup(o,{attrs:n,slots:l}){return()=>{const a={default:i=>{const s=us(i.row,i.column.property);return l.default?r.h(St,{...o,modelValue:s},{default:l.default}):r.h(St,{...o,modelValue:s})}};return r.h(y.ElTableColumn,{...n},a)}}}}const{componentName:yf,create:fs,scope:bf}=le("table-mapping-column"),_n=fs(cs()),ds=Symbol.for("TableStateKey");function Ro(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function hs(e,t){return{props:{},setup(o,{attrs:n}){const l=r.inject(ds,{});return()=>{const a=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Ro(s.row,s.column.property),c=a?Ro(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":f}};return r.h("label",T,[b])}};return r.h(y.ElTableColumn,{...n},i)}}}}const{componentName:vf,create:gs,scope:wf}=le("table-radio-column"),zn=gs(hs()),ms={},ps={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"},ys=[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 bs(e,t){return r.openBlock(),r.createElementBlock("svg",ps,ys)}const vs=Re(ms,[["render",bs]]),{componentName:Tf,create:ws,scope:xf}=le("table-setting"),Ss={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:"不固定"}},Ts=ws({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:vs,Download:Oe.Download,RefreshLeft:Oe.RefreshLeft},props:{...Ss},setup(e,{emit:t,attrs:o}){let n=[];const l=r.ref([]),a=r.computed(()=>l.value.filter(F=>F.label===""||F.type?!1:F.fixed===""||F.fixed===!0||F.fixed==="left")),i=r.computed(()=>l.value.filter(F=>F.label===""||F.type?!1:F.fixed==="right")),s=r.computed(()=>l.value.filter(F=>!(F.label===""||F.type||F.fixed!==void 0))),u=r.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=r.computed(()=>a.value.length>0),f=r.computed(()=>i.value.length>0),d=F=>F.length>1,b=(F,X)=>{Array.isArray(F)&&Array.isArray(X)&&F.forEach(E=>{X.some(V=>V.prop===E.prop?(E.label=V.label,!0):!1)});const z=[];l.value=F.map((E,V)=>(!(E.label===""||E.type)&&E.visible!==!1&&z.push(E.prop),{...E,sortIndex:V})),s.value.length+a.value.length+i.value.length===z.length?w.value=!0:z.length>0&&(I.value=!0),A.value=z},T=F=>F?F.type?F.type:F.label?F.prop:"":"",g=(F,X)=>{if(F.length!==X.length)return!1;const z=F.map(v=>T(v));for(let v of X){const E=T(v);if(z.indexOf(E)===-1)return!1}return!0},h=F=>{if(!F){const X=e.tableRef.getColumnSetting(),z=X.srcColumnPropertyList;n=z.map((v,E)=>({...v,sortIndex:E})),F=X.columnPropertyList,F&&F.length>0&&g(z,F)||(F=z)}b(F,n)},p=()=>{e.tableRef.setColumnSetting(l.value)},x=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=r.ref(!1),I=r.ref(!1),P=F=>{const X=[];l.value.forEach(v=>{F&&!(v.label===""||v.type)&&X.push(v.prop),v.visible=F}),w.value=!1,I.value=!1,s.value.length+a.value.length+i.value.length===X.length?w.value=!0:X.length>0&&(I.value=!0),A.value=X,p()},R=()=>{h(n),p()},A=r.ref([]),D=F=>{l.value.forEach(z=>{if(z.label===""||z.type)return;const v=F.indexOf(z.prop)!==-1;z.visible=v}),w.value=!1,I.value=!1;const X=s.value.length+a.value.length+i.value.length;F.length===X?w.value=!0:F.length>0&&(I.value=!0),p()},_=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const M={currentRow:null,index:null,roleType:null},k=F=>F?F.dataset&&F.dataset.role==="row"?F:F.tagName.toLowerCase()!=="body"?(F=F.parentElement,k(F)):null:null,O=F=>{const X=F.currentTarget;X&&X.dataset&&(M.roleType=X.dataset.roleType,M.index=X.dataset.index)},q=F=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null,M.roleType=null},$=F=>{const X=F.currentTarget;F.relatedTarget;const z=k(X);if(!z)return;const v=z.dataset&&z.dataset.roleType;M.roleType===v&&(F.preventDefault(),M.currentRow&&M.currentRow!==z&&M.currentRow.classList.remove("is-dragover"),z.classList.add("is-dragover"),M.currentRow=z)},S=F=>{F.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},N=F=>{const X=F.currentTarget,z=k(X);if(!z)return;const v=z.dataset&&z.dataset.roleType;if(M.roleType!==v)return;F.preventDefault();const E=Number(M.index),V=Number(z.dataset.index);if(E!==V){if(E<V){const j=l.value[E];l.value.splice(E,1),l.value.splice(V,0,j)}else{const j=l.value[E];l.value.splice(E,1),l.value.splice(V+1,0,j)}b(l.value,n),p()}},W=F=>{const X=l.value[F];X.fixed="left",p()},B=F=>{const X=l.value[F];X.fixed="right",p()},J=F=>{const X=l.value[F];X.fixed=void 0,p()},Y=new Map;let Z=null;function ne(F){const X=document.createRange();return X.setStart(F,0),X.setEnd(F,F.childNodes.length),X.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:w,isIndeterminate:I,handleCheckAllChange:P,handleReset:R,checkedValue:A,handleCheckChange:D,onShow:_,onDragStart:O,onDragEnd:q,onDragOver:$,onDragLeave:S,onDrop:N,toLeftFixed:W,toRightFixed:B,toUnFixed:J,checkboxLabelStyle:x,onMouseOverForOverflowText:(F,X,z)=>{const v=F.currentTarget;if(v){const E=Math.floor(v.offsetWidth);if(Math.floor(ne(v))>E){let j=Y.get(X);if(j){if(j===Z)return;xe.hide(j)}j=xe.show(v,z,{type:"text",placement:"top",closeOnClick:!1}),Y.set(X,j),Z=j}}},onMouseLeaveForOverflowText:(F,X)=>{const z=Y.get(X);z&&(xe.hide(z),z===Z&&(Z=null))},onMouseOverForTip:(F,X)=>{const z=F.currentTarget;z&&(Z&&xe.hide(Z),Z=xe.show(z,X,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:F=>{Z&&(xe.hide(Z),Z=null)}}}}),xs={class:"fox-table-setting"},$s={class:"fox-table-setting__header"},Cs={class:"fox-table-setting__body"},Es={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ns={key:0,class:"fox-table-setting__body-title"},ks=["data-index","draggable"],Os=["onMouseover","onMouseleave"],Vs={class:"tools-item"},Fs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Is={key:0,class:"fox-table-setting__body-title"},Rs=["data-index","draggable"],Ds=["onMouseover","onMouseleave"],As={class:"tools-item"},Ms={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ls={key:0,class:"fox-table-setting__body-title"},qs=["data-index","draggable"],Bs=["onMouseover","onMouseleave"],js={class:"tools-item"};function Ps(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("RefreshLeft"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),T=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",xs,[r.createElementVNode("div",$s,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),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",Cs,[r.createVNode(T,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Es,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ns,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),45,Os)]),_:2},1032,["label"]),r.createElementVNode("div",Vs,[r.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])])],40,ks))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Is,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[15]||(t[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[16]||(t[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[17]||(t[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[18]||(t[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),45,Ds)]),_:2},1032,["label"]),r.createElementVNode("div",As,[r.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[13]||(t[13]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])])],40,Rs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ms,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ls,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[24]||(t[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[25]||(t[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[26]||(t[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[27]||(t[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),45,Bs)]),_:2},1032,["label"]),r.createElementVNode("div",js,[r.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[20]||(t[20]=p=>e.onMouseLeaveForTip(p))},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])])],40,qs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Yt=Re(Ts,[["render",Ps]]);let _s=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l,a,i,s){if(Array.isArray(o)){let c=(n-1)*l,f=c+l;f>o.length&&(f=o.length);const d=o.slice(c,f);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,l,a,i,s]);const u=Le(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ye(a)&&r.isReactive(a)&&(a=r.toRaw(a)),await Reflect.apply(u,null,[o,n,l,a,i,s]))}};function zs(){const e=r.getCurrentInstance();return new _s(e.proxy)}class Hs{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Le(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Le(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Le(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Do(){const e=r.getCurrentInstance();return new Hs(e.proxy)}const Ws=Symbol.for("TableStateKey");function Ks(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let c=a.substring(s+1,u);if(/^\d+$/.test(c)){let f=parseInt(c);if(i==0){let d=a.substring(0,s);n=n[d][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Hn(e,t){return e.filter(n=>{for(let l in t){const a=t[l],i=Ks(n,l);if(a!==i)return!1}return!0})}const Ao={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"}},Mo={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}},Wn={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 Ys(e,t,o){return{inheritAttrs:!1,props:{...ge,...Te,...Ao,...Mo,...Wn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:a}=Ae.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...L){return I.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),c=r.computed(()=>({[`${s}__setting`]:!0})),f=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,L=>{b.value=L});const T=L=>{b.value=L,i("page-index-change",L)},g=r.ref(n.pageSize);r.watch(()=>n.pageSize,L=>{g.value=L});const h=L=>{g.value=L,i("page-size-change",L)},p=r.shallowRef({}),x=r.computed(()=>({...p.value,...n.params??{},...n.baseParams??{}})),w=r.ref(0),I=r.ref(),P=zs();let R=!0;const A=()=>Array.isArray(n.data)?!0:oe(n.autoLoad),D=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,L=>oe(L)),_=async(L,C,H,U)=>{try{const re=await P.load("table",L,C,H,U,R,a.value);w.value=re.totalSize,I.value=re.page}catch(re){console.error("[FoxUI] Load Table Data Fail",re),w.value=0,I.value=[]}R=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([b,g],([L,C],[H,U])=>{C!==U&&(b.value=1,L=1),_(n.data,L,C,x.value)}),r.watch([()=>n.data,x],([L,C],[H,U])=>{A()&&(L!==H&&(R=!0),!(!Array.isArray(L)&&Pe(L,H)&&Pe(C,U))&&_(L,b.value,g.value,C))},{deep:!0});const M=(L={},C=!1)=>new Promise(H=>{p.value=r.toRaw(L??{}),r.triggerRef(p),C||(b.value=n.pageIndex??1),r.nextTick(async()=>{await _(n.data,b.value,g.value,x.value),H()})}),k=()=>{w.value=0,I.value=[]};let O=!1;const q=()=>{O||(O=!0,M())};A()&&!D.value&&M();const $=r.ref(null);r.provide(Ws,{currentRow:$});const S=(L,C)=>{$.value=L,i("current-change",L,C)},N=(L,C,H)=>{i("row-click",L,C,H),oe(n.rowClickSelectable)===!0&&G?.value.toggleRowSelection(L)},W=[],B=(L,C)=>{if(i("expand-change",L,C),oe(n.uniqueExpansion))if(Array.isArray(C)&&C.length==0){const H=W.length;W.splice(0,H)}else{W.forEach(U=>{U!==L&&G?.value.toggleRowExpansion(U,!1)});const H=W.length;W.splice(0,H,L)}},J=l.attrs.id??n.prop??l.attrs.name,Y=Do(),Z=r.ref([]);let ne=[];const K=()=>({srcColumnPropertyList:ne.map(C=>({...C})),columnPropertyList:Z.value}),Q=L=>{Z.value=[...L],ee()},te=async()=>{const L=await Y.load(J);L&&(Z.value=L)},ee=()=>{Y.save(J,Z.value)},F=()=>{Y.remove(J)};te();const X=L=>L?L.type?L.type:L.label?L.prop:"":"",z=r.computed(()=>{if(typeof l.slots.default=="function"){const L=l.slots.default(),C=new Map;if(ne=[],L.forEach(H=>{const U=H;if(!U.props)return;const re=X(U.props);C.set(re,H);const ie={label:"",prop:""};Object.assign(ie,U.props),ne.push(ie)}),Z.value.length===ne.length){const H=[];for(let U of Z.value){const re=X(U),ie=C.get(re);if(!ie)return L;if(U.visible===!1)continue;const ce=ie;ce.props.fixed=U.fixed,H.push(ce)}return H}return L}return[]}),v=r.shallowRef(new Map),E=({column:L,rowIndex:C})=>{const H=`${C}_${L.property}`;return v.value.get(H)??""},V=L=>typeof L=="function"?C=>{const H=[];let U=E(C);return U&&H.push(U),U=L(C),U&&H.push(U),H.length===0?"":H.join(" ")}:E,j=(L,C,H)=>{const U=`${L}_${C}`;H?v.value.set(U,H):v.value.delete(U),r.triggerRef(v)},G=r.ref();return ye({clearSelection:()=>G?.value.clearSelection(),getSelectionRows:()=>G?.value.getSelectionRows(),toggleRowSelection:(L,C)=>{G?.value.toggleRowSelection(L,C)},toggleRowSelectionByProp:(L,C)=>{if(!I.value)return;const H=Hn(I.value,L);H.length!==0&&H.forEach(U=>{G?.value.toggleRowSelection(U,C)})},toggleAllSelection:()=>{G?.value.toggleAllSelection()},toggleRowExpansion:(L,C)=>{G?.value.toggleRowExpansion(L,C)},toggleRowExpansionByProp:(L,C)=>{if(!I.value)return;const H=Hn(I.value,L);H.length!==0&&H.forEach(U=>{G?.value.toggleRowExpansion(U,C)})},setCurrentRow:L=>{G?.value.setCurrentRow(L)},setCurrentRowByProp:L=>{if(!I.value)return;const C=Hn(I.value,L);C.length!==0&&G?.value.setCurrentRow(C[0])},getCurrentRow:()=>$.value,clearSort:()=>{G?.value.clearSort()},clearFilter:L=>{G?.value.clearFilter(L)},doLayout:()=>{G?.value.doLayout()},sort:(L,C)=>{G?.value.sort(L,C)},scrollTo:(L,C)=>{G?.value.scrollTo(L,C)},setScrollTop:L=>{G?.value.setScrollTop(L)},setScrollLeft:L=>{G?.value.setScrollLeft(L)},loadData:M,clearData:k,getData(){return I.value},getTotalSize(){return w.value},getPageIndex(){return b.value},getPageSize(){return g.value},getColumnSetting:K,setColumnSetting:Q,removeColumnSetting:F,setCellClassName:j}),()=>{const C={...qe(l.attrs),onCurrentChange:S,onRowClick:N,onExpandChange:B,data:I.value,ref:G,class:u.value,"cell-class-name":V(n.cellClassName)},H={};l.slots.default&&(H.default=()=>z.value),l.slots.append&&(H.append=l.slots.append),l.slots.empty&&(H.empty=l.slots.empty);const U=[],re=r.h(y.ElTable,C,H);U.push(re);let ie=null;if(typeof l.slots.pagination=="function")ie=l.slots.pagination();else if(n.showPagination){const je={class:d.value,total:w.value,pageSize:g.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":T,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ie=r.h(y.ElPagination,je)}if(n.showSetting){const je=[];ie&&je.push(ie);const dr=r.h(y.ElIcon,{class:c.value},{default:()=>r.h(Oe.Setting)}),lf=Ir(n,Wn),af=r.h(Yt,{...lf,tableRef:{getColumnSetting:K,setColumnSetting:Q,removeColumnSetting:F}},{default:()=>dr});je.push(af);const sf=r.h("div",{class:f.value},je);U.push(sf)}else ie&&U.push(ie);const ce={default:()=>U},De={...we(n,Ao,Mo,Wn),prop:`${n.prop}_item`};return De.contentClass=`${s}__wrap`,De.errorMarkClass="is-table-error",D.value&&A()&&(De["appear-listen"]=!0,De.onAppear=q),r.h(o,De,ce)}}}}const{componentName:Gs,create:Us,scope:Xs}=le("table-item"),Kn=Us(Ys(Gs,Xs,me));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Tt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Zs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Js=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 l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function Qs(){const e=r.getCurrentInstance();return new Js(e.proxy)}function Lo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=it(e,t),l=it(e,o);if(n!==l)return!1;const a=Tt(e,t),i=Tt(e,o);return a===i}function eu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let a of n){let i=!1;if(o==="text")i=it(e,a)===t;else if(o==="item")i=Lo(e,a,t);else{let s=Tt(e,a);s==null&&(s=it(e,a)),i=s===t}if(i){l=a;break}}return l}function tu(e){return{text:e,value:e}}function nu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const qo={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 ru(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...qo},emits:["change","update:modelValue"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),c=r.ref(null),f=(D,_,M,k=!0)=>{const O=eu(n,D,_,M);if(O===null){if(c.value===null)return;c.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!Lo(n,O,c.value)){u.value=D;const $=r.toRaw(O);c.value=$;let S=null;n.valueType==="text"?S=it(n,$):n.valueType==="item"?S=$:S=Tt(n,$),k&&(s("update:modelValue",S),s("change",S))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,D=>oe(D)),T=Qs(),g=async(D,_)=>{if(D){const M=await T.load("radio",D,_);if(M.length>0)if(typeof M[0]=="string"){let q=M.map($=>tu($));d.value=q}else d.value=M}};r.watch([()=>n.source,()=>n.params],async([D,_])=>{g(D,_)},{immediate:!b.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([D,_])=>{f(_,n.valueType,D,!1)});const x=e,w=r.computed(()=>({[x]:!0,[`is-${n.direction}`]:!0})),I=D=>{f(D,"value",d.value,!0)};let P=se(n,"hintText"),R=se(n,"hintVisible");const A=(D,_)=>{const M=[];return D.forEach((k,O)=>{const q=Tt(n,k),$=it(n,k);let S=Zs(n,k);a.value===!0&&(S=a.value),i.value===!0&&(S=i.value);const N=nu(n,k,O)??{},W=`${q}_${O}`,B={...N,key:W,label:q,size:n.size,border:oe(n.border)};S&&(B.disabled=S),n.itemType==="button"?M.push(r.h(y.ElRadioButton,B,{default:()=>[$]})):typeof _=="function"?M.push(r.h(y.ElRadio,B,{default:()=>_(k)})):M.push(r.h(y.ElRadio,B,{default:()=>[$]}))}),M};return()=>{const _={...qe(l.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},M=[],k={};l.slots.options?k.default=l.slots.options:k.default=()=>A(d.value,l.slots.text);const O=r.h(y.ElRadioGroup,_,k);M.push(O);const q={default:()=>M};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const S={...we(n,qo),hintText:P.value,hintVisible:R.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=p),r.h(o,S,q)}}}}const{componentName:ou,create:lu,scope:au}=le("radio-item"),Yn=lu(ru(ou,au,me));function st(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ut(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function iu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class su{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 l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}}function uu(){const e=r.getCurrentInstance();return new su(e.proxy)}function Bo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=st(e,t),l=st(e,o);if(n!==l)return!1;const a=ut(e,t),i=ut(e,o);return a===i}function cu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=st(e,i)===a;else if(o==="item")s=Bo(e,i,a);else{let u=ut(e,i);u==null&&(u=st(e,i)),s=u===a}if(s){l.push(i);break}}}),l}function fu(e){return{text:e,value:e}}function du(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const jo={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 hu(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...jo},emits:["change","update:modelValue"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),c=r.ref([]),f=(D,_,M,k=!0)=>{const O=cu(n,D,_,M);if(O===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(O.length!==c.value.length)q=!1;else for(let $=0;$<O.length;$++){const S=O[$],N=c.value[$];if(!Bo(n,S,N)){q=!1;break}}if(!q){c.value=O;let $=[],S=[];O.forEach(W=>{$.push(ut(n,W)),n.valueType==="text"?S.push(st(n,W)):n.valueType==="item"?S.push(W):S.push(ut(n,W))}),u.value=$;const N=r.toRaw(S);k&&(s("update:modelValue",N),s("change",N))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",Ve.Near,D=>oe(D)),T=uu(),g=async(D,_)=>{if(D){const M=await T.load("checkbox",D,_);if(M.length>0)if(typeof M[0]=="string"){let q=M.map($=>fu($));d.value=q}else d.value=M}};r.watch([()=>n.source,()=>n.params],async([D,_])=>{g(D,_)},{immediate:!b.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([D,_])=>{f(_,n.valueType,D,!1)});const x=e,w=r.computed(()=>({[x]:!0,[`is-${n.direction}`]:!0})),I=D=>{f(D,"value",d.value,!0)};let P=se(n,"hintText"),R=se(n,"hintVisible");const A=(D,_)=>{const M=[];return D.forEach((k,O)=>{const q=ut(n,k),$=st(n,k);let S=iu(n,k);a.value===!0&&(S=a.value),i.value===!0&&(S=i.value);const N=du(n,k,O)??{},W=`${q}_${O}`,B={...N,key:W,class:n.itemClass,label:q,size:n.size,border:oe(n.border)};S&&(B.disabled=S),n.itemType==="button"?M.push(r.h(y.ElCheckboxButton,B,{default:()=>[$]})):typeof _=="function"?M.push(r.h(y.ElCheckbox,B,{default:()=>_(k)})):M.push(r.h(y.ElCheckbox,B,{default:()=>[$]}))}),M};return()=>{const _={...qe(l.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:I},M=[],k={};l.slots.options?k.default=l.slots.options:k.default=()=>A(d.value,l.slots.text);const O=r.h(y.ElCheckboxGroup,_,k);M.push(O);const q={default:()=>M};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const S={...we(n,jo),hintText:P.value,hintVisible:R.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=p),r.h(o,S,q)}}}}const{componentName:gu,create:mu,scope:pu}=le("checkbox-item"),Gn=mu(hu(gu,pu,me)),Po={modelValue:{type:[Number,String],required:!1}};function yu(e,t,o){return{props:{...ge,...Te,...Po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue",h=>ve(h)),c=e,f=r.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let b=se(n,"hintText"),T=r.ref(!1);const g=r.ref();return ye({}),()=>{const p={...qe(l.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},x={},w=[],I=r.h(y.ElRate,p,x);w.push(I);const P={default:()=>w};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const A={...we(n,Po),hintText:b.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,A,P)}}}}const{componentName:bu,create:vu,scope:wu}=le("rate-item"),Un=vu(yu(bu,wu,me)),_o={modelValue:{type:[Boolean,String,Number],required:!1}};function Su(e,t,o){return{props:{...ge,...Te,..._o},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let b=se(n,"hintText"),T=se(n,"hintVisible");const g=r.ref();return ye({}),()=>{const p={...qe(l.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},x={},w=[],I=r.h(y.ElSwitch,p,x);w.push(I);const P={default:()=>w};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const A={...we(n,_o),hintText:b.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,A,P)}}}}const{componentName:Tu,create:xu,scope:$u}=le("switch-item"),Xn=xu(Su(Tu,$u,me)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Cu(e,t,o){return{props:{...ge,...Te,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ee(r.computed(()=>n.disabled)),i=Ce(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),c=se(n,"modelValue"),f=e,d=r.computed(()=>({[f]:!0})),b=R=>{u("update:modelValue",R),u("change",R)};let T=se(n,"hintText"),g=r.ref(!1);const h=R=>{let D=R.target.value;s.value=!0,de(T.value)||(g.value=!0),u("focus",D,R)},p=R=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let D=R.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),w.value||u("blur",D,R)},x=()=>{u("clear","")},w=r.ref(!1),I=R=>{w.value=R,u("visible-change",R),R||u("selected")},P=r.ref();return ye({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const A={...qe(l.attrs),ref:P,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":b,onClear:x,onFocus:h,onBlur:p,onVisibleChange:I},D={};l.slots.option&&(D.default=l.slots.option);const _=[],M=r.h(y.ElTreeSelect,A,D);_.push(M);const k={default:()=>_};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const q={...we(n,zo),hintText:T.value,hintVisible:g.value,prop:`${n.prop}_item`};return r.h(o,q,k)}}}}const{componentName:Eu,create:Nu,scope:ku}=le("tree-select-item"),Zn=Nu(Cu(Eu,ku,me)),Ou={},Vu={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"},Fu=[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 Iu(e,t){return r.openBlock(),r.createElementBlock("svg",Vu,Fu)}const Ru=Re(Ou,[["render",Iu]]),{componentName:Cf,create:Du,scope:Ef}=le("group-setting"),Au={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Mu=Du({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Ru,Download:Oe.Download,RefreshLeft:Oe.RefreshLeft},props:{...Au},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let l=null;const a=r.ref([]),i=Do(),s=K=>K.length>1,u=()=>{const K=[],Q=[...a.value];a.value=Q.map((ee,F)=>(ee.visible!==!1&&K.push(ee.prop),{...ee,sortIndex:F})),a.value.length===K.length?h.value=!0:K.length>0&&(p.value=!0),I.value=K},c=K=>{let Q=null;if(typeof K=="string")Q=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`);else if(K&&typeof K=="object"){const ee=K.$el??K;typeof ee.querySelectorAll=="function"&&(Q=ee.querySelectorAll(".fox-item[prop]"))}if(!Q)return[];const te=[];return Q.forEach(ee=>{const F=ee.querySelector(".label--string");let X="";F&&(X=F.textContent??"");const z=ee.getAttribute("prop")??"",E=window.getComputedStyle(ee,null).getPropertyValue("display");te.push({label:X,prop:z,sortIndex:0,visible:E!=="none"})}),te},f=()=>{if(!l){const K=c(e.groupRef??e.groupProp);if(K.length===0)return!1;l=K}return!0},d=async(K=!1)=>{const Q=await i.load(e.groupProp),te=ee=>{if(!ee||!l)return;const F=l.map(X=>({...X}));Array.isArray(Q)&&Q.forEach(X=>{F.some(z=>{if(z.prop===X.prop){const v=z.label;return Object.assign(z,X),z.label=v,!0}return!1})}),a.value=F.sort((X,z)=>X.sortIndex-z.sortIndex),u(),K&&T(!1)};l?te(!0):Rt(f,e.initDelay,5,50,!1,te)},b=()=>{const K=l??[];a.value=K.map(Q=>({...Q})),u(),T()},T=(K=!0)=>{K&&i.save(e.groupProp,a.value);const Q=a.value.map(te=>({...te}));t("change",Q)},g=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=r.ref(!1),p=r.ref(!1),x=K=>{const Q=[];a.value.forEach(ee=>{K&&Q.push(ee.prop),ee.visible=K}),h.value=!1,p.value=!1,a.value.length===Q.length?h.value=!0:Q.length>0&&(p.value=!0),I.value=Q,T()},w=()=>{b()},I=r.ref([]),P=K=>{a.value.forEach(te=>{const ee=K.indexOf(te.prop)!==-1;te.visible=ee}),h.value=!1,p.value=!1;const Q=a.value.length;K.length===Q?h.value=!0:K.length>0&&(p.value=!0),T()},R=()=>{d()};r.onMounted(()=>{d(!0)});const A={currentRow:null,index:null},D=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,D(K)):null:null,_=K=>{const Q=K.currentTarget;Q&&Q.dataset&&(A.index=Q.dataset.index)},M=K=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=K=>{const Q=K.currentTarget;K.relatedTarget;const te=D(Q);te&&(K.preventDefault(),A.currentRow&&A.currentRow!==te&&A.currentRow.classList.remove("is-dragover"),te.classList.add("is-dragover"),A.currentRow=te)},O=K=>{K.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},q=K=>{const Q=K.currentTarget,te=D(Q);if(!te)return;K.preventDefault();const ee=Number(A.index),F=Number(te.dataset.index);if(ee!==F){if(ee<F){const X=a.value[ee];a.value.splice(ee,1),a.value.splice(F,0,X)}else{const X=a.value[ee];a.value.splice(ee,1),a.value.splice(F+1,0,X)}u(),T()}},$=K=>{const Q=a.value[K];a.value.splice(K,1),a.value.splice(0,0,Q),u(),T()},S=K=>{const Q=a.value[K];a.value.splice(K,1),a.value.push(Q),u(),T()};n({refresh:()=>{l=null,d(!1)}});const N=new Map;let W=null;function B(K){const Q=document.createRange();return Q.setStart(K,0),Q.setEnd(K,K.childNodes.length),Q.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:p,handleCheckAllChange:x,handleReset:w,checkedValue:I,handleCheckChange:P,onShow:R,onDragStart:_,onDragEnd:M,onDragOver:k,onDragLeave:O,onDrop:q,checkboxLabelStyle:g,toTop:$,toBottom:S,onMouseOverForOverflowText:(K,Q,te)=>{const ee=K.currentTarget;if(ee){const F=Math.floor(ee.offsetWidth);if(Math.floor(B(ee))>F){let z=N.get(Q);if(z){if(z===W)return;xe.hide(z)}z=xe.show(ee,te,{type:"text",placement:"top",closeOnClick:!1}),N.set(Q,z),W=z}}},onMouseLeaveForOverflowText:(K,Q)=>{const te=N.get(Q);te&&(xe.hide(te),te===W&&(W=null))},onMouseOverForTip:(K,Q)=>{const te=K.currentTarget;te&&(W&&xe.hide(W),W=xe.show(te,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:K=>{W&&(xe.hide(W),W=null)}}}}),Lu={class:"fox-group-setting"},qu={class:"fox-group-setting__header"},Bu={class:"fox-group-setting__body"},ju={class:"fox-group-setting__body-list","data-role":"container"},Pu=["data-index","draggable"],_u=["onMouseover","onMouseleave"],zu={class:"tools-item"};function Hu(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),c=r.resolveComponent("Download"),f=r.resolveComponent("FoxIcon"),d=r.resolveComponent("FoxCheckboxGroup"),b=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(b,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Lu,[r.createElementVNode("div",qu,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=T=>e.isCheckAll=T),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",Bu,[r.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=T=>e.checkedValue=T),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",ju,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,T=>(r.openBlock(),r.createElementBlock("div",{key:T.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":T.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:T.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,T.prop,T.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,T.prop),class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(T.label),45,_u)]),_:2},1032,["label"]),r.createElementVNode("div",zu,[r.createVNode(f,{onClick:g=>e.toTop(T.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"]),r.createVNode(f,{onClick:g=>e.toBottom(T.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:r.withCtx(()=>[r.createVNode(c)]),_:2},1032,["onClick"])])],40,Pu))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Re(Mu,[["render",Hu]]),Wu=Symbol.for("InnerPageScopeKey"),Ku=Symbol.for("PageWrapperKey");function Yu(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(Wu,!0);const l={};r.provide(Ku,l);const a=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const c={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const d=n.slots.default();f.default=()=>d}return r.h(y.ElDialog,c,f)}}}}const{componentName:Nf,create:Gu,scope:kf}=le("dialog-item"),Qn=Gu(Yu());function Uu(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 l=e,a=r.computed(()=>({[l]:!0})),i=r.computed(()=>o.icon?{[`${l}__icon`]:!0,[`${l}__icon-${o.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const f={[`${l}__text`]:!0,[`${l}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=r.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=r.h(o.icon??"div",h)}const d={class:u.value,style:c.value},b=n.default?n.default():[],T=r.h("div",d,b),g={class:a.value};return o.textPosition==="right"?r.h("div",g,[f,T]):r.h("div",g,[T,f])}}}}const{componentName:Xu,create:Zu,scope:Of}=le("indicator"),er=Zu(Uu(Xu));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 l=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(l)},500)}const Qu={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},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function ec(e,t){return{props:{...Qu},setup(o,n){const l=r.ref(!0),a=r.ref(null),i=r.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{f[b]=!0}),o.type&&(f[`${e}--${o.type}`]=!0),o.size&&(f[`${e}--${o.size}`]=!0),f}),s=f=>{if(f&&oe(o.showOverflowTooltip)){const d=f.clientWidth;Ju(f,b=>{l.value=b<=d})}};let u=null;r.onMounted(()=>{if(!oe(o.showOverflowTooltip))return;const f=a.value;s(f),f&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(f)}),u.observe(f))}),r.onUnmounted(()=>{u?.disconnect()});const c=(f,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const T=o.highlightFilter;if(f.indexOf(T)!==-1){const h=f.replace(new RegExp(T,"g"),`<span>${T}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const T=o.highlightFilter(f);T&&(d.innerHTML=T,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const f={},d={...n.attrs,class:{...i.value},ref:a};let b=null;if(oe(o.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const x=p[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const w=ve(o.digits),I=ve(o.decimalLength),P=oe(o.autoPadding);let R=`${p[0].children}`,A=R.split("").reverse().join("");A=Et(A,I,P,w,o.separator),R=A.split("").reverse().join(""),o.highlightFilter!==void 0&&(b=c(R,d)),b||(d.innerHTML=R,b=r.h(o.tag,d))}}}else{if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const x=p[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const w=`${p[0].children}`;b=c(w,d),b||(d.innerHTML=w,b=r.h(o.tag,d))}}}b||(b=r.h(o.tag,d,{default:n.slots.default}))}if(!o.mark&&!o.icon&&!n.slots.mark)f.default=()=>b;else{let p=null;if(o.icon){const I={[`${e}__mark-wrap`]:!0};o.type&&(I[`${e}__mark-wrap--${o.type}`]=!0);const P={},R=o.color;R&&(P.color=R);const A={class:I,style:P};p=r.h("div",A,r.h(o.icon))}else if(n.slots.mark){const I={[`${e}__mark-wrap`]:!0};o.type&&(I[`${e}__mark-wrap--${o.type}`]=!0);const P={},R=o.color;R&&(P.color=R);const A={class:I,style:P};p=r.h("div",A,{default:n.slots.mark})}else{const I={[`${e}__mark`]:!0};o.type&&(I[`${e}__mark--${o.type??"default"}`]=!0);const P={},R=o.color;R&&(P["background-color"]=R);const A={class:I,style:P};p=r.h("div",A)}const x={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},w=r.h("view",x,[p,b]);f.default=()=>w}const g={disabled:l.value};return f.content=n.slots.default,r.h(y.ElTooltip,g,f)}}}}const{componentName:tc,create:nc,scope:Vf}=le("text"),tr=nc(ec(tc)),rc={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:Oe.ArrowUp}};function oc(e,t,o){return{props:{...rc},emits:["click","update:modelValue"],setup(n,{emit:l}){const a=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),c=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},p=r.h("span",h,[s.value]);d.push(p)}const b={class:c.value},T=o(n.icon,b);return T&&d.push(T),r.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:lc,create:ac,scope:ic}=le("more-button"),nr=ac(oc(lc,ic,(e,t)=>(e=e??Oe.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function sc(e){return e===window}const Ho=e=>{const t=r.unref(e);if(sc(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:uc,create:cc,scope:If}=le("tour"),fc=cc({components:{Close:Oe.Close,ElPopover:y.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=uc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),a=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:g,maskWidth:h,maskHeight:p}=e,{width:x,height:w,left:I,top:P}=l.value,R=e.steps[n.active].offset??g,A=[I+x/2,P+w/2],D=Number(h||x),_=Number(p||w);return{width:`${D+ +R.left+R.right}px`,height:`${_+R.top+R.bottom}px`,top:`${A[1]-_/2-+R.top}px`,left:`${A[0]-D/2-+R.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ho(g);l.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},T=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return r.onMounted(()=>{T(e.modelValue,e.current)}),r.watch(()=>e.modelValue,g=>{T(g)}),{...r.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:b}}}),dc={key:0,class:"fox-tour__content"},hc={key:0,class:"fox-tour__content-top"},gc={class:"fox-tour__content-inner"},mc={class:"fox-tour__content-bottom"},pc={class:"fox-tour__content-bottom-init"},yc={class:"fox-tour__content-bottom-operate"},bc={key:1,class:"fox-tour__content fox-tour__content-tile"},vc={class:"fox-tour__content-inner"};function wc(e,t,o,n,l,a){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]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(c,f)=>(r.openBlock(),r.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",dc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",hc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",gc,r.toDisplayString(c.content),1),r.createElementVNode("div",mc,[r.createElementVNode("div",pc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",yc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",bc,[r.createElementVNode("div",vc,r.toDisplayString(c.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Re(fc,[["render",wc]]),Ne=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Wo=10;function Sc(e,t){return e>t&&e>Wo?"horizontal":t>e&&t>Wo?"vertical":""}function Tc(){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 xc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class $c{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=xc()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Tc(),n=(l,a,i,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(o.start(l),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=l=>{this.moving&&(o.move(l),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ko(e,t){return new $c(e,t)}var Yo;const or=typeof window<"u";or&&((Yo=window?.navigator)!=null&&Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ct=[];const Go=e=>{const t=e;t.key==="Escape"&&ct.forEach(o=>o(t))},Cc=e=>{r.onMounted(()=>{ct.length===0&&document.addEventListener("keydown",Go),or&&ct.push(e)}),r.onBeforeUnmount(()=>{ct=ct.filter(t=>t!==e),ct.length===0&&or&&document.removeEventListener("keydown",Go)})},lr="fox-focus-trap.focus-after-trapped",ar="fox-focus-trap.focus-after-released",Ec="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Nc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",kc=Symbol("foxFocusTrap"),ir=r.ref(),Gt=r.ref(0),sr=r.ref(0);let Ut=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const l=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||l?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Oc=(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},Qo=(e,t)=>{for(const o of e)if(!Oc(o,t))return o},Vc=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Fc=e=>e instanceof HTMLInputElement&&"select"in e,Xe=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Fc(e)&&t&&e.select()}};function el(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Ic=()=>{let e=[];return{push:n=>{const l=e[0];l&&n!==l&&l.pause(),e=el(e,n),e.unshift(n)},remove:n=>{e=el(e,n),e[0]?.resume?.()}}},Rc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Xe(n,t),document.activeElement!==o)return},tl=Ic(),Dc=()=>Gt.value>sr.value,Xt=()=>{ir.value="pointer",Gt.value=window.performance.now()},nl=()=>{ir.value="keyboard",Gt.value=window.performance.now()},Ac=()=>(r.onMounted(()=>{Ut===0&&(document.addEventListener("mousedown",Xt),document.addEventListener("touchstart",Xt),document.addEventListener("keydown",nl)),Ut++}),r.onBeforeUnmount(()=>{Ut--,Ut<=0&&(document.removeEventListener("mousedown",Xt),document.removeEventListener("touchstart",Xt),document.removeEventListener("keydown",nl))}),{focusReason:ir,lastUserFocusTimestamp:Gt,lastAutomatedFocusTimestamp:sr}),Zt=e=>new CustomEvent(Ec,{...Nc,detail:e}),{componentName:Rf,create:Mc,scope:Df}=le("focus-trap"),Lc=Mc({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:[Xo,Zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let l,a;const{focusReason:i}=Ac();Cc(h=>{oe(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!oe(e.trapped)||s.paused)return;const{key:p,altKey:x,ctrlKey:w,metaKey:I,currentTarget:P,shiftKey:R}=h,{loop:A}=e,D=p==="Tab"&&!x&&!w&&!I,_=document.activeElement;if(D&&_){const M=P,[k,O]=Vc(M);if(k&&O){if(!R&&_===O){const $=Zt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),A&&Xe(k,!0))}else if(R&&[k,M].includes(_)){const $=Zt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),A&&Xe(O,!0))}}else if(_===M){const $=Zt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};r.provide(kc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[p])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",b)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",d),p.removeEventListener("focusout",b))});const c=h=>{o(Xo,h)},f=h=>o(Zo,h),d=h=>{const p=r.unref(n);if(!p)return;const x=h.target,w=h.relatedTarget,I=x&&p.contains(x);oe(e.trapped)||w&&p.contains(w)||(l=w),I&&o("focusin",h),!s.paused&&oe(e.trapped)&&(I?a=x:Xe(a,!0))},b=h=>{const p=r.unref(n);if(!(s.paused||!p))if(!e.escape&&oe(e.trapped)){const x=h.relatedTarget;!dn(x)&&!p.contains(x)&&setTimeout(()=>{if(!s.paused&&oe(e.trapped)){const w=Zt({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||Xe(a,!0)}},0)}else{const x=h.target;x&&p.contains(x)||o("focusout",h)}};async function T(){await r.nextTick();const h=r.unref(n);if(h){tl.push(s);const p=h.contains(document.activeElement)?l:document.activeElement;if(l=p,!h.contains(p)){const w=new Event(lr,Uo);h.addEventListener(lr,c),h.dispatchEvent(w),w.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;Sr(I)||(Xe(I),document.activeElement!==I&&(I="first")),I==="first"&&Rc(Jo(h),!0),(document.activeElement===p||I==="container")&&Xe(h)})}}}function g(){const h=r.unref(n);if(h){h.removeEventListener(lr,c);const p=new CustomEvent(ar,{...Uo,detail:{focusReason:i.value}});h.addEventListener(ar,f),h.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!Dc())&&Xe(l??document.body,!0),h.removeEventListener(ar,c),tl.remove(s)}}return r.onMounted(()=>{oe(e.trapped)&&T(),r.watch(()=>e.trapped,h=>{oe(h)?T():g()})}),r.onBeforeUnmount(()=>{oe(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:qc,create:Bc,scope:Mf}=le("floating-window"),jc=Symbol.for("InnerPageScopeKey"),Pc=Symbol.for("PageWrapperKey"),_c={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},zc=Bc({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Lc},props:{..._c},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=qc,n=r.ref(e.modelValue),l=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,C=>{n.value=C});const a=r.computed(()=>n.value===!1?!1:!_.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),c=r.ref(e.bottom),f=r.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=r.computed(()=>{const C={};return tt(i.value)?C.left="auto":C.left=Ne(i.value),tt(s.value)?C.top="auto":C.top=Ne(s.value),tt(u.value)?C.right="auto":C.right=Ne(u.value),tt(c.value)?C.bottom="auto":C.bottom=Ne(c.value),tt(e.zIndex)||(C["z-index"]=Ne(e.zIndex)),tt(A.value)||(C.height=A.value),tt(D.value)||(C.width=D.value),C}),b=r.computed(()=>e.closeIcon??Oe.Close),T=r.computed(()=>e.collapseIcon??Oe.ArrowUp),g=r.computed(()=>e.collapseText??""),h=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Oe.ArrowRight:e.expandIcon??Oe.ArrowLeft),p=r.computed(()=>e.expandText??e.title??"展开"),x=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),I=r.ref(),P=r.ref(null),R=r.ref(null),A=r.computed(()=>Ne(e.height)||""),D=r.computed(()=>Ne(e.width)||""),_=r.ref(oe(e.collapse)),M=(C,H=!0)=>{_.value!==C&&(_.value=C,C?Q():te(),t("update:collapse",C),C&&typeof q.onHide=="function"?q.onHide():!C&&typeof q.onShow=="function"&&q.onShow())};r.watch(()=>e.collapse,C=>{M(C)});const k=()=>{O()},O=C=>{C=C??!_.value,M(C)};r.provide(jc,!0);const q={setCollapse:M,setFixedNavVisible:C=>{Z.value=C}};r.provide(Pc,q);const $=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.ref(null),N=r.computed(()=>!e.fixedNavTeleport),W=r.computed(()=>{const C=["fox-floating-window__fixednav"];return e.expandClass&&C.push(e.expandClass),e.collapsePosition==="left"?C.push("is-left"):e.collapsePosition==="right"&&C.push("is-right"),C}),B=r.ref(""),J=r.computed(()=>{const C={};return B.value?C.top=B.value:e.collapseTop&&(C.top=e.collapseTop),C}),Y=r.ref(_.value),Z=r.computed({set:C=>{Y.value=C},get:()=>n.value===!1?!1:Y.value});let ne=null;const K=()=>{typeof ne=="function"&&(ne(),ne=null)},Q=()=>{S.value&&S.value.classList.add("slide-in"),Z.value=!0,ne=()=>{S.value&&S.value.classList.remove("slide-in")}},te=()=>{S.value&&S.value.classList.add("slide-out"),ne=()=>{S.value&&S.value.classList.remove("slide-out"),Z.value=!1}},ee=()=>{i.value=null,s.value=null,u.value=null,c.value=null},F={x:0,y:0},v=Ko(C=>{if(!I.value)return;const H=I.value;if(ee(),e.origin==="left-top")i.value=H.offsetLeft,s.value=H.offsetTop,F.x=i.value,F.y=s.value;else if(e.origin==="left-bottom"){const U=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=U-(H.offsetTop+H.offsetHeight),F.x=i.value,F.y=c.value}else if(e.origin==="right-bottom"){const U=document.documentElement.clientWidth||document.body.clientWidth,re=document.documentElement.clientHeight||document.body.clientHeight;u.value=U-(H.offsetLeft+H.offsetWidth),c.value=re-(H.offsetTop+H.offsetHeight),F.x=u.value,F.y=c.value}else{const U=document.documentElement.clientWidth||document.body.clientWidth;u.value=U-(H.offsetLeft+H.offsetWidth),s.value=H.offsetTop,F.x=u.value,F.y=s.value}},C=>{if(!I.value)return;const H=I.value;ee(),e.origin==="left-top"?(i.value=F.x+C.x,s.value=F.y+C.y,H.style.left=Ne(i.value),H.style.top=Ne(s.value)):e.origin==="left-bottom"?(i.value=F.x+C.x,c.value=F.y-C.y,H.style.left=Ne(i.value),H.style.bottom=Ne(c.value)):e.origin==="right-bottom"?(u.value=F.x-C.x,c.value=F.y-C.y,H.style.right=Ne(u.value),H.style.bottom=Ne(c.value)):(u.value=F.x-C.x,s.value=F.y+C.y,H.style.right=Ne(u.value),H.style.top=Ne(s.value))}),E={x:0,y:0},G=Ko(C=>{S.value&&(E.x=S.value.offsetLeft,E.y=S.value.offsetTop)},C=>{if(!S.value)return;const H=E.y+C.y;B.value=`${H}px`}),L=()=>{if(I.value){const C=I.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");R.value=C}};return r.onMounted(()=>{if(e.draggable&&I.value){const C=[];P.value&&C.push(P.value),e.footerDraggable&&(L(),R.value&&C.push(R.value)),v.open(C)}e.collapse===!0&&M(e.collapse,!1),S.value&&G.open(S.value)}),r.onBeforeUnmount(()=>{e.draggable&&P.value&&v.close(),S.value&&G.close()}),{classes:f,styles:d,isShow:a,closeIcon:b,onClose:$,dialogRef:I,headerRef:P,onClickToggle:k,collapseIcon:T,collapseText:g,collapseTextClasses:x,collapseIconClasses:w,expandIcon:h,expandText:p,isShowFixedNav:Z,fixedNavRef:S,fixedNavClasses:W,fixedNavStyles:J,onAnimationEnd:K,teleportDisabled:l,fixedNavTeleportDisabled:N}}}),Hc={ref:"headerRef",class:"fox-floating-window__header"},Wc={class:"fox-floating-window__title"},Kc={class:"fox-floating-window__tools"},Yc={class:"fox-floating-window__body"},Gc={class:"fox-floating-window__fixednav__text"};function Uc(e,t,o,n,l,a){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",Hc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Wc,r.toDisplayString(e.title),1),r.createElementVNode("div",Kc,[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",Yc,[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",Gc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Re(zc,[["render",Uc]]);function Xc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Pr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Lf,create:Zc,scope:qf}=le("domain-provider"),cr=Zc(Xc()),Jc={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 Qc(e,t){return{inheritAttrs:!1,props:Jc,setup(o,{slots:n}){if(nt&&window.IntersectionObserver){const l=new WeakMap;let a=new Map;const i=(b,T)=>{if(f===null){a.set(b,{visible:null,callback:T});return}l.has(b)&&f.unobserve(b),l.set(b,{visible:null,callback:T}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}l.has(b)&&(l.delete(b),f.unobserve(b))};let u=o.initialVisibleObserverSize;ga({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(b,T,g)=>{f=new IntersectionObserver(h=>{for(let p of h){let x=!1;p.intersectionRatio>0&&(x=!0);const w=l.get(p.target);if(w)try{if(o.loadPolicy==="lazy"&&!x&&w.visible!==null)return;w.visible=x,w.callback(x)}catch(I){console.error(I)}}},{root:b,rootMargin:T,threshold:g}),a.forEach((h,p)=>{l.set(p,h),f?.observe(p)}),a.clear()};r.watch([()=>o.root,()=>o.disabled],([b,T])=>{if(T||!b||f)return;let g=null;typeof b=="string"?g=document.querySelector(b):g=b,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Bf,create:ef,scope:jf}=le("rolling-provider"),fr=ef(Qc()),rl=10;function tf(e,t){return e>t&&e>rl?"horizontal":t>e&&t>rl?"vertical":""}function nf(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),l=r.ref(0),a=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),c=r.ref(0),f=r.ref(""),d=()=>f.value==="vertical",b=()=>f.value==="horizontal",T=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:p=>{const x=p.touches[0];i.value=x.clientX-e.value,s.value=x.clientY-t.value,l.value=x.clientX,a.value=x.clientY,u.value=Math.abs(i.value),c.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=tf(u.value,c.value))},start:p=>{T(),e.value=p.touches[0].clientX,t.value=p.touches[0].clientY,o.value=Date.now()},reset:T,startX:e,startY:t,startTime:o,duration:n,moveX:l,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:b}}const rf=[vn,Tn,xn,$n,Nn,me,Vn,Fn,vt,In,Rn,Dn,An,Mn,Ln,qn,jn,Pn,_n,zn,Yt,Kn,Yn,Gn,Un,Xn,Zn,Jn,Qn,St,Wt,er,tr,nr,rr,ur,cr,fr],of=new Hl(rf,[Yl],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),m.AutocompleteItem=Pn,m.Broadcast=hn,m.BroadcastKey=he,m.CascaderItem=jn,m.CheckboxItem=Gn,m.Content=$n,m.DataItemsKey=rt,m.DateItem=Dn,m.DateUtils=Fe,m.DialogItem=Qn,m.Domain=Dt,m.DomainKey=Ie,m.DomainProvider=cr,m.FloatingWindow=ur,m.FooterBar=xn,m.FoxAutocompleteItem=Pn,m.FoxCascaderItem=jn,m.FoxCheckboxItem=Gn,m.FoxContent=$n,m.FoxDateItem=Dn,m.FoxDialogItem=Qn,m.FoxDomainProvider=cr,m.FoxFloatingWindow=ur,m.FoxFooterBar=xn,m.FoxGroup=Nn,m.FoxGroupSetting=Jn,m.FoxHeaderBar=Tn,m.FoxHintText=vt,m.FoxIndicator=er,m.FoxInputItem=In,m.FoxInputNumberItem=qn,m.FoxItem=me,m.FoxMapping=St,m.FoxMoneyItem=Ln,m.FoxMoreButton=nr,m.FoxPage=vn,m.FoxPrice=Wt,m.FoxRadioItem=Yn,m.FoxRateItem=Un,m.FoxRollingProvider=fr,m.FoxRowItem=Fn,m.FoxSelectItem=Rn,m.FoxSlotItem=Vn,m.FoxSwitchItem=Xn,m.FoxTableItem=Kn,m.FoxTableMappingColumn=_n,m.FoxTableRadioColumn=zn,m.FoxTableSetting=Yt,m.FoxText=tr,m.FoxTimeItem=An,m.FoxTimeSelectItem=Mn,m.FoxTour=rr,m.FoxTreeSelectItem=Zn,m.Group=Nn,m.GroupSetting=Jn,m.HeaderBar=Tn,m.HintText=vt,m.Indicator=er,m.InputItem=In,m.InputNumberItem=qn,m.Item=me,m.Mapping=St,m.MoneyItem=Ln,m.MoreButton=nr,m.Page=vn,m.Price=Wt,m.PriorityPolicy=Ve,m.RadioItem=Yn,m.RateItem=Un,m.RollingProvider=fr,m.RowItem=Fn,m.SelectItem=Rn,m.SlotItem=Vn,m.SwitchItem=Xn,m.TableItem=Kn,m.TableMappingColumn=_n,m.TableRadioColumn=zn,m.TableSetting=Yt,m.Text=tr,m.TimeItem=An,m.TimeSelectItem=Mn,m.Tour=rr,m.TreeSelectItem=Zn,m.UniqueID=no,m.ValidateSchema=qr,m.ValidateSchemaKey=_e,m.cancelRaf=al,m.clearNonNumber=Sl,m.clone=cn,m.compareTo=an,m.createBroadcast=Vt,m.createValidateSchema=It,m.debounce=pt,m.debounceRef=Dl,m.decimalLength=Vr,m.default=of,m.defineBroadcast=Cl,m.defineConfigDomain=Pr,m.defineDataItem=zr,m.defineDomain=mn,m.defineItem=pe,m.definePageState=Hr,m.deleteGlobalValidator=Ol,m.disabledProperty=Ee,m.divide=ln,m.excludeProps=we,m.extend=Je,m.floatData=$l,m.getGlobalValidateCheckEvents=Ar,m.getGlobalValidateResetEvents=Lr,m.getPageContentAreaHeight=Mt,m.getPageContentAreaWidth=Lt,m.getPageFooterAreaHeight=bt,m.getPageHeaderAreaHeight=yt,m.getRootDomain=ot,m.hasSymbol=xr,m.includeProps=Ir,m.indexOf=Tl,m.installRules=_r,m.integerLength=Or,m.isArray=cl,m.isArrayLike=Cr,m.isBrowser=nt,m.isDate=hl,m.isESModule=pl,m.isEmptyString=de,m.isEqual=Pe,m.isFunction=sn,m.isHidden=Ot,m.isInnerPage=Ll,m.isMap=fl,m.isNil=dn,m.isNumberString=kr,m.isObject=Ye,m.isPlainObject=un,m.isPromise=ml,m.isRegExp=Nr,m.isSet=dl,m.isString=Sr,m.isSubPage=ql,m.isSymbol=gl,m.isWindow=$r,m.lastIndexOf=xl,m.makeArray=wl,m.merge=Er,m.multiply=br,m.negate=vr,m.nextTick=bl,m.numberFormat=Et,m.objectToString=Tr,m.once=Al,m.property=$e,m.raf=ul,m.readonlyProperty=Ce,m.setGlobalValidateCheckEvents=Vl,m.setGlobalValidateHandler=Nl,m.setGlobalValidateMessages=Il,m.setGlobalValidateResetEvents=Fl,m.setGlobalValidator=kl,m.throttle=jr,m.toBoolean=oe,m.toNumber=ve,m.toPadding=Me,m.toPx=ue,m.toPxDesc=Se,m.toTypeString=Nt,m.toValue=se,m.tryTimes=Rt,m.typeOf=kt,m.unNumberFormat=wr,m.updatePageState=pn,m.useBroadcast=gt,m.useDomain=ze,m.useExpose=ye,m.useInnerSize=Sn,m.usePageState=At,m.usePosition=Qr,m.useRect=Ho,m.useSize=wn,m.useTouch=nf,m.valueLength=ht,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Ft(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=un($e(e),$e(t)),l==1&&(n==1?e=sn(e):t=sn(t));let r=_o(e,t);return l?l==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(sn(r)):$e(r)}function sn(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return _o(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function un(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function _o(e,t){[e,t]=un(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function mt(e,t=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=mt(e,0,l),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,qo(r[1],a,n,l)?(n?"-":"")+cn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&qo(s,i,n,l)&&(i=cn(i),i.length>t)?(n?"-":"")+cn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function qo(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function cn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function fn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=pt(e),t=pt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=pt(e.replace(".","")),t=pt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,f="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let E=t.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(b+=parseInt(e[u[E]--])*parseInt(t[E]));b+=s,s=Math.floor(b/10),f=b%10+f,d--}return f=pt(Yr(f,a)),l==1&&(f="-"+f),f}function Yr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function dn(e,t,l=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(l=l+2;a<=l;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Ft(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(mt(s,l-2))}function hn(e,t){return e=e.toString(),t=t.toString(),t=gn(t),Ft(e,t)}function gn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Po(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),jo(e),jo(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=hn(e,fn(t,mt(dn(e,t),0,me.FLOOR)));return l+n}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function zo(e,t){let l=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),l=!0),[e,t]=un(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?l?-1:1:l?1:-1;return 0}class ce{value;static RoundingModes=me;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[l,n]=t.split(/[eE]/);l=$e(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+$e(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<l?(l=s,s=0):s-=l,i=t.substring(s,s+l)+(s<a-l&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return ce.getPrettyValue(this.value,t,l)}static round(t,l=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return mt(t,l,n)}round(t=0,l=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,l))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,l){return t=ce.validate(t),l=ce.validate(l),Ft(t,l)}add(t){return new ce(Ft(this.value,t.getValue()))}static subtract(t,l){return t=ce.validate(t),l=ce.validate(l),hn(t,l)}subtract(t){return new ce(hn(this.value,t.getValue()))}static multiply(t,l){return t=ce.validate(t),l=ce.validate(l),fn(t,l)}multiply(t){return new ce(fn(this.value,t.getValue()))}static divide(t,l,n){return t=ce.validate(t),l=ce.validate(l),dn(t,l,n)}divide(t,l){return new ce(dn(this.value,t.getValue(),l))}static modulus(t,l){return t=ce.validate(t),l=ce.validate(l),Po(t,l)}modulus(t){return new ce(Po(this.value,t.getValue()))}static compareTo(t,l){return t=ce.validate(t),l=ce.validate(l),zo(t,l)}compareTo(t){return zo(this.value,t.getValue())}static negate(t){return t=ce.validate(t),gn(t)}negate(){return new ce(gn(this.value))}}function Ho(e,t){return ce.multiply(`${e}`,`${t}`)}function mn(e,t,l=8){return ce.divide(`${e}`,`${t}`,l)}function pn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Ko(e){return ce.negate(e)}function Dt(e,t=-1,l=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):l&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",b=s.split("").reverse();for(let E=0;E<b.length;E++)c+=b[E]+((E+1)%n==0&&E+1!=b.length?r:"");u.length==0?f=`${i}${c.split("").reverse().join("")}`:f=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Wo(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const yn=Bo,Gr=Array.isArray,Ur=e=>At(e)==="[object Map]",Xr=e=>At(e)==="[object Set]",Zr=e=>e instanceof Date,bn=e=>typeof e=="function",Yo=e=>typeof e=="string",Jr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Go=e=>ze(e)&&bn(e.then)&&bn(e.catch),Uo=Object.prototype.toString,At=e=>Uo.call(e),vn=e=>At(e)==="[object Object]",Xo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Qr(e){return e.__esModule||Xo&&e[Symbol.toStringTag]==="Module"}const ea=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=et(r,d,u)}else u!==void 0&&(t[i]=u)}}return t}function wn(e,t,l=!1){if(!l)et(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vn(i))continue;a=wn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vn(i))continue;a=wn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Sn=ea?Promise.resolve():null;function ta(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 se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ye(e){return typeof e=="number"?e:Number(e)}const na={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Rt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):na[l]||"object"}function Zo(e){return e&&typeof e=="object"&&"setInterval"in e}function Lt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Jo(e){let t=!!e&&"length"in e&&e.length,l=Rt(e);return l==="function"||Zo(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Qo(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function oa(e,t=[]){let l=t;return e!=null&&(Jo(Object(e))?Qo(l,typeof e=="string"?[e]:e):l.push(e)),l}function He(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Rt(e),n=Rt(t);if(l!==n)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],d=t[s];if(!He(u,d))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!He(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function xn(e){return e==null}function el(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function tl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function nl(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const l=t.indexOf(".");return l==-1?t.length:l}function ol(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function ll(e,t,l){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function la(e,t=!0,l=!0){t?e=ll(e,".",/\./g):e=e.replace(/\./g,""),l?e=ll(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(He(e,l))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(He(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function yt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rl(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function Ce(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const ia=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Tn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,l,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):el(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,l,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Mt(e,t,l,n){const r=new Tn(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function sa(e,t,l){const n=l;if(n[be])return n[be];const r=o.inject(be,null),a=new Tn(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,o.provide(be,a),o.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function bt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[be]??o.inject(be,null):o.inject(be,null)}const nt=e=>e.default??e;class ua{error(t,l){const n=l,r=bt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=bt(n),i=l.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let al=new ua;function ca(e){al=e}function fa(e,t){nt(Qe).setValidator(e,t)}function da(e){nt(Qe).deleteValidator(e)}let il=["blur","clear"];function ha(e){il=e}function sl(){return il}let ul=["focus","change"];function ga(e){ul=e}function cl(){return ul}function ma(e){nt(Qe).messages(e)}function vt(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Bt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class fl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=o.effectScope(),this.scope.run(()=>{o.watchEffect(()=>{const l=Bt(vt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Bt(n);const r=vt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=al;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,l,n=!1){n?nt(Qe).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const l=vt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Bt(t):this.rules=Bt([t]);const n=vt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=vt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},s=nt(Qe),u=new s(r),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function _t(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new fl(t,l,e)}const dl=Symbol.for("EventEmitterKey");class pa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function wt(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function hl(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function ya(e,t){const l=wt((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function ba(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function qt(e,t,l,n=0,r=!0,a){let i=t,s=0;if(r){const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),at=Symbol("DataItemsKey");class Pt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const va=new Pt;function it(){return va}function We(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Le]??o.inject(Le,null):o.inject(Le,null)}const $n=Symbol("OriginalDateKey");function Cn(e,t,l=[],n){const r=o.getCurrentInstance(),a=r?.proxy;let i=o.inject(Le,null);i===null&&(i=it());const s=e||t.prop||t.name,u=new Pt(s);u.parent=i;const d=h=>{a[$n]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,c=()=>a[$n]??null,b=h=>{const m={};et(!0,m,o.toRaw(h)),a[$n]=m};o.isReactive(t)||typeof t=="function"?o.watch(t,h=>{u.merge(h,l)},{immediate:!0}):u.merge(t,l),t.modelValue&&b(t.modelValue),a[Le]=u,o.provide(Le,u);let E=null,g=null;if(r!==null){const h=o.inject(be,null);E=Mt(a,h,s,n),u.broadcast=E,a[be]=E,o.provide(be,E),a.broadcast=($,w,...I)=>Reflect.apply(E.emit,E,[$,w,...I]);const m=o.inject(Ke,null);g=_t(a,m,{componentName:""}),u.validateSchema=g,a[Ke]=g,o.provide(Ke,g),a[at]=new Map,a.validate=($=!0)=>{const w=[];let I=null;const z={deep:!1};if($===!0)I={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;I={name:R=>R?B.indexOf(R)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(z.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const R=B.include;I={name:L=>L?R.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const R=B.exclude;I={name:L=>L?R.indexOf(L)===-1:!1}}else I={name:"*"}}if(I){const B=E?.emitToChildren(I,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let R=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(R=[...R,...L.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,I=!1)=>{if(I===!0){Reflect.ownKeys($).forEach(B=>{let R=String(B);const _=pl(u,R,{componentName:"",fieldName:R,pureDataValidate:!0},E,g);a[at].set(R,_);const C=$[R];C&&_.validateSchema.setRule(C)});return}if(w){const z=Reflect.ownKeys($),B={name:R=>z.includes(R)};E?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const I=$;w={name:z=>z?I.indexOf(z)!==-1:!1}}else if($!=null&&typeof $=="object"){const I=$;if(Array.isArray(I.include)&&I.include.length>0){const z=I.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const z=I.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&E?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const I={};if(et(!0,I,c()??{}),Array.isArray($))$.forEach(z=>{w[z]=I[z]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=I[B]});else if($&&Array.isArray($.exclude)){let z=$.exclude??[];Reflect.ownKeys(I).forEach(B=>{z.includes(B)||(w[B]=I[B])})}else Object.assign(w,I);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===s?d($):E?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return o.onUnmounted(()=>{u.destroy(),a[Le]=void 0,a[at]&&(a[at].clear(),a[at]=void 0),E!==null&&(E.destroy(),a[be]=void 0),g!==null&&(g.destroy(),a[Ke]=void 0)}),u}function gl(e,t,l=[]){const r=o.getCurrentInstance()?.proxy;let a=o.inject(Le,null);a===null&&(a=it());const i=e||t.prop||t.name,s=new Pt(i);return s.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,u=>{s.merge(u,l)},{immediate:!0}):s.merge(t,l),r[Le]=s,o.provide(Le,s),o.onUnmounted(()=>{s.destroy(),r[Le]=void 0}),s}function ml(e,t,l){const r=We(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function Se(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(be,null),s=Mt(r,i,a,l);r[be]=s,o.provide(be,s),r.broadcast=(g,h,...m)=>Reflect.apply(s.emit,s,[g,h,...m]);const u=o.inject(Ke,null);e.fieldName=e.fieldName??a;const d=_t(r,u,e);r[Ke]=d,o.provide(Ke,d),ml(r,d,a),r.validate=(g=null)=>{const h=[];let m=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,m=!0;else if(g&&typeof g=="object"){const w=g;w.ignoreHidden===!0&&Lt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),m=w.deep??!1}else typeof g=="boolean"&&(m=g),$=!0;if($){const w=d?.validate();h.push(w)}if(m){let w=null;const I={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const z=g;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const z=g;if(I.ignoreHidden=z.ignoreHidden,Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:R=>R?B.indexOf(R)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:R=>R?B.indexOf(R)===-1:!1}}else w={name:"*"}}if(w){const z=s.emitToChildren(w,"validate",I);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let I=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(I=[...I,...z.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&d?.setRule(m),h){const $={name:w=>Reflect.ownKeys(g).includes(w)};s.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:$=>$?m.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new pa(r);r[dl]=f;const c=wt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sl()).forEach(g=>{f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cl()).forEach(g=>{f.on(g,h=>{c("reset")})}),o.onUnmounted(()=>{s.destroy(),r[be]=void 0,d.destroy(),r[Ke]=void 0,f.destroy(),r[dl]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(g,...h)=>{Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{Reflect.apply(f.off,f,[h])}}}function pl(e,t,l,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};l.fieldName=i,l.validateHandler={getValue(f){return s.getValue()}};const u=_t({},r,l);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,E=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)E=!0,b=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),E=!0,b=g.deep??!1}else typeof f=="boolean"&&(b=f),E=!0;if(E){const g=u?.validate();c.push(g)}if(b){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const m=f;g={name:$=>$?m.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const m=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,m)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[i];c&&u?.setRule(c)};const d=Mt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function Nn(e,t,l={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=fe(l.headerHeight??t.headerHeight??-1),e.headerPadding=qe(l.headerPadding??t.headerPadding),e.footerHeight=fe(l.footerHeight??t.footerHeight??-1),e.footerPadding=qe(l.footerPadding??t.footerPadding),e.contentPadding=qe(l.contentPadding??t.contentPadding),n){const u=l.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(i,a)-fe(s,a),e.width=fe(l.width??t.width??0,r)}}function yl(e,t={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Nn(n,a,t,!0,i,s,u,d);const f=o.reactive(n),c=e.getForParent(Xe);c&&(n.height=zt(e,c),n.width=Ht(e,c),o.watch([()=>zt(e,c),()=>Ht(e,c)],([E,g])=>{f.height=E,f.width=g}));const b=!c;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,g,h=-1,m=-1,$=0,w=0])=>{Nn(f,g,t,b,h,m,$,w)}),e.set(Xe,f),f}function jt(e){return e.get(Xe)}function St(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function xt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function zt(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=St(e,t),n=xt(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ht(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function wa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function Sa(e){return!!e.getForParent(Xe)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function En(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,l=1,n){const r=We();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(En(u,n))return u}const i=e.value;return En(i,n)?i:null}):o.computed(()=>{const a=e.value;return En(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(l){return se(l)})}function Oe(e){return ke(e,"disabled",0,function(l){return se(l)})}function de(e,t="modelValue",l){const n=o.toRef(e,t);let r=n.value;typeof l=="function"&&(r=l(n.value));const a=o.ref(r);return o.watch(n,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const bl=new Map,Kt=new Map;let kn=null;function xa(e){kn=e}function vl(e,t,l){if(l){let n=Kt.get(l);n||(n=new Map,Kt.set(l,n)),n.set(e,t)}else bl.set(e,t)}function Be(e,t,l){!l&&kn&&(l=kn(e)??void 0);let n=null;if(l){let r=Kt.get(l);r&&(n=r.get(t))}return n||(n=bl.get(t)),n}function Ta(e,t){for(let l in e){const n=e[l];vl(l,n,t)}}function $a(e){Kt.delete(e)}function Ca(){return{top:0,left:0,bottom:0,right:0}}function Na(e=0,t=0){if(tt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:n-fe(e,n)-fe(t,n)};return{rootWidth:l,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ea{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hl(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Ca(),t.safeAreaInset),i=Na(n,r),s=et({},i.pageLayout,t.pageLayout);l=l??it(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){xa(t)}setAPI(t,l,n){vl(t,l,n)}getAPI(t,l,n){return Be(t,l,n)}batchSetAPI(t,l){Ta(t,l)}clearScopeAPI(t){$a(t)}getRootDomain(){return it()}}const ka=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Ia=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Oa=e=>{ka.forEach(t=>{let l=t.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,t)):e.use(t)}),Ia.forEach(t=>{e.use(t)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function xe(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},wl={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Sl={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},xl=[];for(const e in Sl)xl.push(e);const Va=Symbol.for("InnerPageScopeKey"),Fa={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Da=(e,t)=>({inheritAttrs:!0,props:{...ve,...wl,...Fa},setup(l,{slots:n}){const r=Cn(l.name,l),a=o.inject(Va,!1);if(r){const f=yl(r,l);xe({getPageContentHeight:()=>zt(r,f),getPageContentWidth:()=>Ht(r,f),getPageHeaderHeight:()=>St(r,f),getPageFooterHeight:()=>xt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),s=o.computed(()=>({})),u=o.getCurrentInstance(),d=(f,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,c)};return o.watch([()=>l.rules,()=>l.pureDataRules],([f,c],[b,E])=>{if(f&&b){const g=o.toRaw(b),h=o.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h)}if(c&&E){const g=o.toRaw(E),h=o.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const f=o.toRaw(l.rules);d(f)}if(l.pureDataRules){const f=o.toRaw(l.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return o.h("div",f,[n?.default?.()])}}}),{componentName:Aa,create:Ra,scope:mh}=ie("page"),In=Ra(Da(Aa));function Wt(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function On(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const La=(e,t,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=We(),s=i?jt(i):null;s&&(s.headerMounted=!0);const u=e,d=o.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=o.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,b=o.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=qe(r.padding??s.headerPadding);return Object.assign(k,T),c&&(s.headerHeight=c),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(T.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const T=qe(r.padding);Object.assign(k,T)}return k}),E=o.ref(null),g=()=>{if(s&&E.value&&!Lt(E.value)){if(!n){const k=Wt(E.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;o.onMounted(()=>{s&&(qt(g,50,5,50,!0),window.ResizeObserver&&E.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(E.value)))}),o.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=o.computed(()=>{const k={};return b.value.height!==null&&b.value.height!==void 0&&(k.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(k.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(k.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(k.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(k.paddingBottom=`${b.value.bottom}px`),k}),$=o.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function I(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const R=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(T)}else if(r.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[o.h(r.leftIcon)]);k.push(T)}if(r.leftText){const T=o.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(T)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__left"},k)},L=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const T=o.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(T)}if(a.slots.rightIcon){const T=o.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(T)}else if(r.rightIcon){const T=o.h("view",{class:"right-icon",onClick:z},[o.h(r.rightIcon)]);k.push(T)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__right"},k)},_=()=>{if(!r.titleShow)return null;const k=[],T=a.slots.default?a.slots.default():null;if(T)k.push(T);else{if(r.title){const H=o.h("view",{class:"title-text"},[r.title]);k.push(H)}if(a.slots.titleIcon){const H=o.h("view",{class:"title-icon",onClick:I},[a.slots.titleIcon()]);k.push(H)}else if(r.titleIcon){const H=o.h("view",{class:"title-icon",onClick:I},[o.h(r.titleIcon)]);k.push(H)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__title"},k)},C=()=>{const k=[],T=a.slots.bottom?a.slots.bottom():null;return T&&k.push(T),k.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!$.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const H=[],N=R();N&&H.push(N);const O=_();O&&H.push(O);const A=L();if(A&&H.push(A),H.length>0){const W=o.h("view",{class:f.value},H);k.push(W)}const U=C();U&&k.push(U)}if(k.length===0)return null;const T={class:d.value,style:m.value,ref:E};return o.h("view",T,k)}}}),{componentName:Ma,create:Ba,scope:_a}=ie("header-bar"),Vn=Ba(La(Ma,_a,Te.ArrowLeft));function qa(e,t,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=We(),i=a?jt(a):null,s=o.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?fe(n.height):null,d=o.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=qe(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=qe(n.padding);Object.assign(g,h)}return g}),f=o.ref(null),c=()=>{if(i&&f.value&&!Lt(f.value)){if(!l){const g=Wt(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let b=null;o.onMounted(()=>{i&&(qt(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(f.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const E=o.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Ne(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Ne(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Ne(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Ne(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Ne(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:E.value};return o.h("view",h,g)}}}}const{componentName:Pa,create:ja,scope:ph}=ie("footer-bar"),Fn=ja(qa(Pa));function za(e,t){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=We(),r=o.computed(()=>({[e]:!0})),a=n?jt(n):null,i=o.computed(()=>{const d={};if(n&&a){if(l.padding){const E=qe(l.padding);Object.assign(a.contentPadding,E)}const f=St(n,a),c=xt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,d.height=b,a.contentPadding.top||f>0){const E=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+E}px`}if(a.contentPadding.bottom||c>0){const E=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+E}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(l.padding){const f=qe(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),s=o.ref(null),u=()=>{if(a&&s.value){const d=On(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return o.onMounted(()=>{u()}),n&&a&&o.watch([()=>St(n),()=>xt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ha,create:Ka,scope:yh}=ie("content"),Wa=Ka(za(Ha));function Ya(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("div",{ref:"contentRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Dn=Me(Wa,[["render",Ya]]),st="GroupStateKey",Tl=Symbol.for("GroupScopeKey");function Yt(){return o.inject(Tl,!1)}function Gt(e=!0){o.provide(Tl,e)}function Ga(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];xn(r)||(e[n]=r)})}function Ua(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ga(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function An(e,t,l=-1,n=-1,r=!1,a,i,s){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const f=fe(a),c=fe(i);s||(s=d.type??"grid");const b=()=>{const E=t===""||t===-1,g=fe(t);let h=ye(l);const m=fe(n);if(!E){let I=(g-(h-1)*m)/h;for(;c!==-1&&I>c;)h++,I=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&I<f;)h--,I=(g-(h-1)*m)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==m&&(w.value.gutter=m,$=!0),w.value.type!==s&&(w.value.type=s,$=!0),$&&o.triggerRef(w)};if(r)b();else{const E=++u.passport;setTimeout(()=>{E===u.passport&&b()},50)}}function Ut(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.layout}function Xt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.order}function $l(e,t=1){if(t==="stretch")return-1;const l=ye(t);return l===-1?100:100*l/e}function Zt(e,t,l=1,n=0,r){const a={};let i=0;r?i=fe(r):i=$l(t.column,l),i>0&&(a.width=`${i}%`);const s=$l(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Jt(e,t,l=1,n=0){if(l==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ye(l);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ye(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Cl=Symbol("RollingStateKey");function Xa(e){o.provide(Cl,e)}function Za(){return o.inject(Cl,null)}function Rn(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function Ja(e){let t=Rn(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=Rn(l),document.body.removeChild(l)}return t}function Qa(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const ei={...ve,...wl,...Sl};function ti(e,t,l){return{props:ei,emits:["update:collapse"],setup(n,r){const a=Cn(n.name,n,xl),i=Ua(a,{type:n.type}),s=Yt();Gt(!0);const u=n.rollingDisplay?Za():null,d=o.ref(null),f=o.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=o.computed(()=>s&&a?Ut(a,!0).value:null),b=o.getCurrentInstance(),E=(q,Y=!1)=>{const Q=b?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(q,!0,Y)};o.watch([()=>n.rules,()=>n.pureDataRules],([q,Y],[Q,ne])=>{if(q&&Q){const S=o.toRaw(Q),G=o.toRaw(q),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),E(G)}if(Y&&ne){const S=o.toRaw(ne),G=o.toRaw(Y),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),E(G,!0)}},{deep:!0});const g=e,h=o.computed(()=>{const q={};q.height=A.value;const Y=s?Xt(a,!0):null;if(c.value&&Y){if(c.value.type==="grid"){const Q=Jt(Y,c.value,n.span,n.offset);Object.assign(q,Q)}else if(c.value.type==="flow"){const Q=Zt(Y,c.value,n.span,n.offset,n.width);Object.assign(q,Q)}}else if(n.width){const Q=Ne(n.width);q.width=Q}return q}),m=o.computed(()=>{const q=i.layout.value.type;return q==="grid"||q==="flow"?{[`${g}--${q}`]:!0,[`${g}--${q}-justify-${n.justify}`]:!0,[`${g}--${q}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${q}`]:!0,[`${g}--gutter`]:!0}}),$=o.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=Qa(_.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),w=o.toRef(n,"gutter"),I=o.toRef(n,"column"),z=o.computed(()=>s||f.value?!0:se(n.isWrap)),B=[],R=q=>{B.push(q)},L=()=>{let q=B.length;B.splice(0,q)},_=o.ref(-1),C=q=>{const Y=On(q).width;Y>0&&Y!==_.value&&(_.value=Y)};An(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([_,I,w],([q,Y,Q])=>{i.order.index=0,An(a,q,Y,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=o.computed(()=>U.value?n.expandText??"":n.collapseText??""),T=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),N=o.ref(),O=o.ref(),A=o.computed(()=>W.value||Ne(n.height)||""),U=o.ref(!1),W=o.ref(""),J=o.ref(!1);let Z=-1;const ee=(q,Y=!0)=>{const Q=N.value;if(Q&&U.value!==q){if(Z=Z===-1?Ja(Q):Z,J.value=!0,Y)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",q||(W.value="",J.value=!1)},q){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${Z}px`,o.nextTick(()=>{W.value=`${ne}px`})}else W.value=`${Z}px`;else if(q){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${ne}px`}else J.value=!1,W.value=`${Z}px`;U.value=q,r.emit("update:collapse",q)}};o.watch(()=>n.collapse,q=>{ee(q)});const re=()=>{F()},F=q=>{q=q??!U.value,ee(q)};xe({toggleCollapse:F,doLayout:()=>{B[0]&&(C(B[0]),An(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,V=!0;const v=q=>{if(n.rules){const Y=o.toRaw(n.rules);E(Y)}if(n.pureDataRules){const Y=o.toRaw(n.pureDataRules);E(Y,!0)}if(tt&&(q&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const Y=B[0];C(Y),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{C(Y)}),D.observe(Y))}},K=()=>{D?.disconnect(),D=null},P=!f.value||u?.acquire();P&&(d.value=f.value?!0:null),o.onMounted(()=>{if(P&&(v(V),V=!1),f.value&&u){let q=null,Y=u.initialHeight;u.observe(N.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(W.value=""),q=setTimeout(()=>{q=null,d.value!==!1&&(v(V),V=!1)},100);else{if(q!==null&&clearTimeout(q),d.value=!1,!U.value)if(V)W.value=u.initialHeight;else{let ne=Rn(N.value);ne<=0?W.value=Y:(W.value=`${ne}px`,Y=W.value)}V||K()}})}}),o.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve(N.value)});const j=(q="right")=>{const Y=[];if(k.value){const S={class:T.value},G=o.h("span",S,[k.value]);Y.push(G)}const Q={class:H.value},ne=l(n.collapseIcon,Q);return ne&&Y.push(ne),Y.length>0?o.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:re},Y):null},M=(q,Y,Q,ne)=>{const S={...m.value};return Y===0&&(S[`${g}__first`]=!0),Q>=ne-1&&(S[`${g}__last`]=!0),o.h("div",{ref:R,key:`${Y}`,class:S,style:$.value},q)};return()=>{if(f.value&&d.value!==!0){const S=n.tag||"div";return o.h(S,{ref:N,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const q=[];let Y=0;if(r.slots.header){const S={key:`${Y++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},G=o.h("div",S,[r.slots.header()]);q.push(G)}else{const S=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=j("left");te&&S.push(te)}if(n.title||r.slots.title){if(n.showMark){const te={class:{[`${g}__header-mark`]:!0}};n.markColor&&(te.style={background:n.markColor});const le=o.h("div",te);S.push(le)}if(r.slots.title){const te=o.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);S.push(te)}else if(n.title){const te=o.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);S.push(te)}}if(r.slots.toolbar&&S.push(r.slots.toolbar()),!G&&n.showCollapse){const te=j("right");te&&S.push(te)}if(S.length>0){const te={key:`${Y++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},le=o.h("div",te,S);q.push(le)}}L();const Q=r.slots.default?r.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=M(Q,Y++,0,Q.length);q.push(S)}else if(ne==="flow"){const S=M(Q,Y++,0,Q.length);q.push(S)}else for(let S=0;S<Q.length;S++){const G=Q[S],te=M([G],Y++,S,Q.length);q.push(te)}if(z.value){const S=n.tag||"div";return o.h(S,{ref:N,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[q])}else return q}}}}const{componentName:ni,create:oi,scope:li}=ie("group"),Ln=oi(ti(ni,li,(e,t)=>(e=e??Te.ArrowUp,o.h(y.ElIcon,t,{default:()=>[o.h(e)]}))));function ri(e){return e===window}const ai=/matrix\((.+)\)/,Nl=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(ri(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ai.exec(d);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}r=r.parentNode}return l-=a,n-=i,l+=s,n+=u,{x:l,y:n}};class ii{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class si{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new ii,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const El=new si,kl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ui,create:ci}=ie("price"),fi=ci({props:{...kl},setup(e){const t=o.computed(()=>({[ui]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>yt(e.price)==0?"":Dt(e.price,e.decimalLength,!0,ye(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),di=["innerHTML"],hi=["innerHTML"];function gi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,di)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,hi)):o.createCommentVNode("",!0)],2)}const Qt=Me(fi,[["render",gi]]),{componentName:Mn,create:mi}=ie("hint-text"),pi=mi({components:{Price:Qt},props:{...kl,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),s=o.ref(!1),u=o.ref(null),d=(T,H,N,O,A,U)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=T.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},F=[];for(let x=0;x<ee.length;x++){const D=ee[x];if(F[0]=D,Z[1]&&(F[1]=Z[1]),D==="top"){const V=H.y-U-e.arrowSize-e.offset;if(V>=0){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+N-A:v=H.x+N/2-A/2;const K=W-v-A;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(D==="bottom"){const V=H.y+O+e.arrowSize+e.offset;if(V+U<=J){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+N-A:v=H.x+N/2-A/2;const K=W-v-A;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(D==="left"){const V=H.x-A-e.arrowSize-e.offset;if(V>=0){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}else if(D==="right"){const V=H.x+N+e.arrowSize+e.offset;if(V+A<=W){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:F.join("-"),bestInsetRect:re}},f=(T,H,N=10)=>{if(!tt||H===!1||!T)return;n.value=Nl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,A=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:W}=d(e.placement,n.value,r.value,a.value,A,O);i.value=U,l.value=W,s.value=!0},c=o.ref(0),b=wt(()=>{f(e.message,e.visible)},10),E=o.ref(e.visible);o.watch(()=>e.visible,T=>{E.value=T});const g=o.computed(()=>E.value&&h.value),h=o.ref(!0),m=wt(T=>{const H=T[0];H&&(h.value=H.isIntersecting)},10),$=new IntersectionObserver(m);o.watch([()=>e.message,()=>e.visible],([T,H])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),El.watch(e.reference,b),$.observe(e.reference)}),o.onBeforeMount(()=>{El.unwatch(e.reference,b),$.unobserve(e.reference),$.disconnect()});const w=o.computed(()=>{const T={[Mn]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),I=o.computed(()=>{const T={};l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${H}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),z=o.computed(()=>{const T=[`${Mn}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),B=o.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),R=o.computed(()=>({[`${Mn}__arrow`]:!0})),L=o.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),_=o.computed(()=>g.value&&e.closeOnClick),C=o.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:g,tipRef:u,classes:w,styles:I,textClasses:z,textStyles:B,arrowClasses:R,arrowStyles:L,overlayShow:_,overlayStyle:C,onClickOverlay:()=>{E.value=!1,t.emit("update:visible",!1)}}}}),yi=["innerHTML"];function bi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,yi))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Tt=Me(pi,[["render",bi]]);class Il{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Bn={},vi=new Il,ut=new Map,en=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}ut.clear()}},wi=e=>{e.unmount=en;const t=document.getElementById(e.id);if(t){const l=ut.get(e.id);l?e={...Bn,...l,...e}:e={...Bn,...e},e.transition=!1;const n=o.createVNode(Tt,e);return o.render(n,t),e.id}},Si=e=>{e.unmount=en;let t=e.id??`hinttext_${vi.get()}`;e={...Bn,...e},e.id=t,ut.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode(Tt,e);return o.render(n,l),document.body.appendChild(l),t},xi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,l={},n=!0){xi(t);const r=l.id;return r&&ut.has(r)?wi({...l,message:t,reference:e}):(n&&en(),Si({...l,message:t,reference:e}))},hide(e){en(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ti(e,t,l,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Se({componentName:e,validate:!1},i);const s=We(),u=Yt();Gt(!1);const d=o.computed(()=>u&&s?Ut(s,!1).value:null),f=e,c=o.ref(null),b=o.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!U.value,S[r.warnMarkClass]=!!O.value,S[r.infoMarkClass]=!!H.value,typeof c.value=="function"){const G=c.value(i);S[G]=!0}else if(typeof c.value=="string"){const G=c.value;S[G]=!0}return S}),E=o.ref(null),g=o.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ne(r.width));else{const G=u&&s?Xt(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const te=Jt(G,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=Zt(G,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof E.value=="function"){const G=E.value(i);G&&Object.assign(S,G)}else if(E.value&&typeof E.value=="object"){const G=E.value;Object.assign(S,G)}return S}),h=o.ref(null),m=o.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(o.toRef(r,"labelPosition"),"labelPosition",Ae.Near),I=o.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=o.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${I.value}`]:!0})),B=o.computed(()=>({label:!0,[`label--${I.value}`]:!0})),R=ke(o.toRef(r,"labelWidth"),"labelWidth",Ae.Near),L=o.computed(()=>R&&R.value?{width:Ne(R.value)}:{}),_=o.computed(()=>({"label--string":!0,"label--required":m.value})),C=o.computed(()=>({content:!0,[r.contentClass]:!0})),k=o.computed(()=>({...r.contentStyle})),T=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(S){m.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){E.value=S}});const H=o.computed(()=>r.infoTip||T.infoTip),N=o.computed(()=>r.infoIcon||T.infoIcon),O=o.computed(()=>r.warnTip||T.warnTip),A=o.computed(()=>r.warnIcon||T.warnIcon),U=o.computed(()=>r.errorTip||T.errorTip),W=o.computed(()=>r.errorIcon||T.errorIcon),J=o.computed(()=>U.value?"error":O.value?"warn":H.value?"info":""),Z=()=>J.value.length>0,ee=o.computed(()=>J.value==="error"?U.value:J.value==="warn"?O.value:J.value==="info"?H.value:""),re=o.computed(()=>J.value==="error"?W.value:J.value==="warn"?A.value:J.value==="info"?N.value:null),F=o.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),x=o.computed(()=>{const S={};return w&&w.value==="top"||!$()?S["padding-left"]="0px":R&&R.value&&(S["padding-left"]=Ne(R.value)),S}),D=o.ref();let V="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,G,te,le])=>{D.value&&(S&&!ge(G)?V?l.show(D.value,G,{...le,id:V,type:te},!0):V=l.show(D.value,G,{...le,type:te},!0):l.hide(V))});let v=null;const K=()=>{v||!D.value||(v=new IntersectionObserver(S=>{let G=!1;for(let te of S)if(te.intersectionRatio>0){G=!0,G&&a.emit("appear",te);break}G||a.emit("disappear")}),v.observe(D.value))},P=()=>{!v||!D.value||(v.unobserve(D.value),v=null)};o.watch(()=>se(r.appearListen),S=>{S?K():P()}),o.onMounted(()=>{se(r.appearListen)&&K()}),o.onUnmounted(P);const j=()=>{if(!$())return null;const S=[],G=a.slots?.label?.()??r.label,te={class:_.value},le=o.h("div",te,[G]);if(S.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();S.push(oe)}const X={class:B.value,style:L.value};return o.h("div",X,S)},M=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=o.h("div",te,[a.slots.fixedTip()]);S.push(le)}const G={ref:D,class:C.value,style:k.value};return o.h("div",G,S)},q=()=>{const S=re.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--icon"},[S()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(S)]):null},Y=()=>{const S=ee.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--text"},[S()]):o.h("div",{class:"fox-item__tip--text"},[S]):null},Q=()=>{if(!Z())return null;const S=[],G=q();G&&S.push(G);const te=Y();te&&S.push(te);const le={class:F.value,style:x.value};return o.h("div",le,S)},ne=()=>a.slots?.hide?.()??null;return()=>{const S=[],G=[],te=j();te&&G.push(te);const le=M();le&&G.push(le);const X={class:z.value},oe=o.h("div",X,G);S.push(oe);const ae=Q();ae&&S.push(ae);const ue=ne();ue&&S.push(ue);const pe={class:b.value,style:g.value,prop:r.prop};return o.h("div",pe,S)}}}}const{componentName:$i,create:Ci,scope:Ni}=ie("item"),we=Ci(Ti($i,Ni,Ve,!1));function Ei(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const r=We(),a=Yt();Gt(!1);const i=o.computed(()=>a&&r?Ut(r,!1).value:null),s=e,u=o.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),d=o.computed(()=>{const f={},c=a&&r?Xt(r,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=Jt(c,i.value,l.span,l.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=Zt(c,i.value,l.span,l.offset,l.width);Object.assign(f,b)}else return l.width&&(f.width=Ne(l.width)),f;else l.width&&(f.width=Ne(l.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",f,n.slots.default()):o.h("div",f)}}}}const{componentName:ki,create:Ii,scope:vh}=ie("slot-item"),_n=Ii(Ei(ki));function Oi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=We(),s=Yt();Gt(!1);const u=o.computed(()=>{const d={};if(s&&i){const f=Ut(i,!1),c=Xt(i,!1);if(f.value&&c)if(f.value.type==="grid"){const b=Jt(c,f.value,l.span,l.offset);Object.assign(d,b)}else if(f.value.type==="flow"){const b=Zt(c,f.value,l.span,l.offset,l.width);Object.assign(d,b)}else l.width&&(d.width=Ne(l.width))}else l.width&&(d.width=Ne(l.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(l.divide)for(let b=0;b<c.length;b++){if(b>0){const E=o.h("div",{class:{[`${r}__divide`]:!0}});d.push(E)}d.push(c[b])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return o.h("div",f,d)}}}}const{componentName:Vi,create:Fi,scope:wh}=ie("row-item"),qn=Fi(Oi(Vi)),Pe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Ol={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Di(e,t,l){return{props:{...ve,...Ee,...Ol},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),g=N=>{c.value=N,s("update:modelValue",N),s("input",N)},h=N=>{s("change",N)};let m=de(n,"hintText"),$=o.ref(!1);const w=N=>{let A=N.target.value;f.value=!0,ge(m.value)||($.value=!0),s("focus",A,N)},I=N=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let A=N.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),s("blur",A,N)},z=()=>{s("clear","")},B=o.ref(!1);let R=null;const L=()=>{n.showTooltip&&B.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{B.value=!0},150))},_=()=>{R&&(clearTimeout(R),B.value=!1,R=null)},C=o.computed(()=>B.value||$.value),k=o.computed(()=>B.value?c.value:m.value),T=o.computed(()=>yt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:g,onFocus:w,onBlur:I,onMouseover:L,onMouseleave:_},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:T.value&&(A.suffix=()=>[n.unit]);const U=[],W=o.h(y.ElInput,O,A);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Ol),hintText:k.value,hintVisible:C.value,prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ai,create:Ri,scope:Li}=ie("input-item"),Pn=Ri(Di(Ai,Li,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function $t(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Mi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Bi=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function _i(){const e=o.getCurrentInstance();return new Bi(e.proxy)}function Fl(e,t,l){const n=Ze(e,t),r=Ze(e,l);if(n!==r)return!1;const a=$t(e,t),i=$t(e,l);return a===i}function Dl(e,t,l,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Vl(e,i);if(Array.isArray(s)&&s.length>0){const u=Dl(e,a,l,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(l==="text")u=Ze(e,i)===a;else if(l==="item")u=Fl(e,i,a);else{let d=$t(e,i);d==null&&(d=Ze(e,i)),u=d===a}if(u){r.push(i);break}}}}),r}function qi(e){return{text:e,value:e}}const Al={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Pi(e,t,l){return{props:{...ve,...Ee,...Al},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(q=>Ze(n,q)).join(" "):""),E=(M,q,Y,Q=!0)=>{const ne=Dl(n,M,q,Y);if(ne===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let G=0;G<ne.length;G++){const te=ne[G],le=c.value[G];if(!Fl(n,te,le)){S=!1;break}}if(!S){c.value=ne;let G=[],te=[],le=[];ne.forEach(ue=>{const pe=$t(n,ue),he=Ze(n,ue);G.push(pe),le.push(he),n.valueType==="text"?te.push(he):n.valueType==="item"?te.push(ue):te.push(pe)});let X,oe,ae;se(n.multiple)?(f.value=G,X=o.toRaw(te),oe=le,ae=o.toRaw(ne)):(f.value=G[0]??"",X=o.toRaw(te[0]??""),oe=le[0]??"",ae=o.toRaw(ne[0])),Q&&(s("update:modelValue",X),s("change",X,ae)),s("update:text",oe)}},g=o.ref(null),h=o.ref(null),m=o.computed(()=>h.value??g.value??[]),$=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,M=>se(M)),w=_i(),I=async(M,q)=>{if(M){const Y=await w.load("select",M,q);if(Y.length>0)if(typeof Y[0]=="string"){let S=Y.map(G=>qi(G));g.value=S}else g.value=Y;else g.value=null}};o.watch([()=>n.source,()=>n.params],([M,q])=>{h.value=null,I(M,q)},{immediate:!$.value});let z=!1;const B=()=>{z||(z=!0,I(n.source,n.params))};o.watch([()=>g.value,()=>n.modelValue],([M,q])=>{if(C()&&se(n.multiple)){He(q,f.value)||(f.value=q);return}E(q,n.valueType,m.value,!1)});let R=null,L=o.ref(!1);typeof n.remoteMethod=="function"&&(R=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const q=await n.remoteMethod(M);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}L.value=!1});let _=null;typeof n.filterMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const q=await n.filterMethod(M,g.value);q&&(h.value=q)}catch(q){h.value=null,console.error(q)}L.value=!1});const C=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=o.ref(!1),T=e,H=o.computed(()=>({[T]:!0})),N=M=>{n.allowCreate||C()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):E(M,"value",m.value,!0)};let O=de(n,"hintText"),A=o.ref(!1);const U=M=>{let Y=M.target.value;k.value=!0,ge(O.value)||(A.value=!0),s("focus",Y,M)},W=M=>{setTimeout(()=>{A.value&&(A.value=!1),k.value=!1},0);let Y=M.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),V.value||s("blur",Y,M)},J=()=>{s("clear","")},Z=o.ref(!1);let ee=null;const re=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},F=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=o.computed(()=>Z.value||A.value),D=o.computed(()=>Z.value?b.value:O.value),V=o.ref(!1),v=M=>{V.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},P=(M,q)=>{const Y=[];return M.forEach((Q,ne)=>{const S=Vl(n,Q);if(Array.isArray(S)&&S.length>0){const G=P(S,q),te=Ze(n,Q),X={key:`${te}_${ne}`,label:te};Y.push(o.h(y.ElOptionGroup,X,{default:()=>G}))}else{const G=$t(n,Q),te=Ze(n,Q),le=Mi(n,Q),oe={key:`${G}_${ne}`,label:te,disabled:le,value:G};if(typeof q=="function")Y.push(o.h(y.ElOption,oe,{default:()=>q(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=o.h("span",ae,[G]),pe={class:{"fox-select-item__option-right":!0}},he=o.h("span",pe,[te]),gt=o.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);Y.push(o.h(y.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?Y.push(o.h(y.ElOption,oe,{default:()=>[G]})):Y.push(o.h(y.ElOption,oe))}}),Y},j=o.ref();return xe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const q={...Pe(r.attrs),ref:j,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:N,onFocus:U,onBlur:W,onVisibleChange:v,onRemoveTag:K};typeof R=="function"&&(q["remote-method"]=R,q.loading=L.value),typeof _=="function"&&(q["filter-method"]=_,q.loading=L.value);const Y={};r.slots.prefix&&(Y.prefix=r.slots.prefix),r.slots.empty&&(Y.empty=r.slots.empty),r.slots.options?Y.default=r.slots.options:Y.default=()=>P(m.value,r.slots.option);const Q=[],ne=o.h(y.ElSelect,q,Y);Q.push(ne);const S={default:()=>Q};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ce(n,Al),hintText:D.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:F};return $.value&&(te["appear-listen"]=!0,te.onAppear=B),o.h(l,te,S)}}}}const{componentName:ji,create:zi,scope:Hi}=ie("select-item"),jn=zi(Pi(ji,Hi,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",f="week",c="month",b="quarter",E="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},I=function(N,O,A){var U=String(N);return!U||U.length>=O?N:""+Array(O+1-U.length).join(A)+N},z={s:I,z:function(N){var O=-N.utcOffset(),A=Math.abs(O),U=Math.floor(A/60),W=A%60;return(O<=0?"+":"-")+I(U,2,"0")+":"+I(W,2,"0")},m:function N(O,A){if(O.date()<A.date())return-N(A,O);var U=12*(A.year()-O.year())+(A.month()-O.month()),W=O.clone().add(U,c),J=A-W<0,Z=O.clone().add(U+(J?-1:1),c);return+(-(U+(A-W)/(J?W-Z:Z-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:c,y:E,w:f,d,D:g,h:u,m:s,s:i,ms:a,Q:b}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},B="en",R={};R[B]=w;var L=function(N){return N instanceof T},_=function N(O,A,U){var W;if(!O)return B;if(typeof O=="string"){var J=O.toLowerCase();R[J]&&(W=J),A&&(R[J]=A,W=J);var Z=O.split("-");if(!W&&Z.length>1)return N(Z[0])}else{var ee=O.name;R[ee]=O,W=ee}return!U&&W&&(B=W),W||!U&&B},C=function(N,O){if(L(N))return N.clone();var A=typeof O=="object"?O:{};return A.date=N,A.args=arguments,new T(A)},k=z;k.l=_,k.i=L,k.w=function(N,O){return C(N,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function N(A){this.$L=_(A.locale,null,!0),this.parse(A)}var O=N.prototype;return O.parse=function(A){this.$d=function(U){var W=U.date,J=U.utc;if(W===null)return new Date(NaN);if(k.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(m);if(Z){var ee=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(W)}(A),this.$x=A.x||{},this.init()},O.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},O.$utils=function(){return k},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(A,U){var W=C(A);return this.startOf(U)<=W&&W<=this.endOf(U)},O.isAfter=function(A,U){return C(A)<this.startOf(U)},O.isBefore=function(A,U){return this.endOf(U)<C(A)},O.$g=function(A,U,W){return k.u(A)?this[U]:this.set(W,A)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(A,U){var W=this,J=!!k.u(U)||U,Z=k.p(A),ee=function(P,j){var M=k.w(W.$u?Date.UTC(W.$y,j,P):new Date(W.$y,j,P),W);return J?M:M.endOf(d)},re=function(P,j){return k.w(W.toDate()[P].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(j)),W)},F=this.$W,x=this.$M,D=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case E:return J?ee(1,0):ee(31,11);case c:return J?ee(1,x):ee(0,x+1);case f:var v=this.$locale().weekStart||0,K=(F<v?F+7:F)-v;return ee(J?D-K:D+(6-K),x);case d:case g:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case s:return re(V+"Seconds",2);case i:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(A){return this.startOf(A,!1)},O.$set=function(A,U){var W,J=k.p(A),Z="set"+(this.$u?"UTC":""),ee=(W={},W[d]=Z+"Date",W[g]=Z+"Date",W[c]=Z+"Month",W[E]=Z+"FullYear",W[u]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[a]=Z+"Milliseconds",W)[J],re=J===d?this.$D+(U-this.$W):U;if(J===c||J===E){var F=this.clone().set(g,1);F.$d[ee](re),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},O.set=function(A,U){return this.clone().$set(A,U)},O.get=function(A){return this[k.p(A)]()},O.add=function(A,U){var W,J=this;A=Number(A);var Z=k.p(U),ee=function(x){var D=C(J);return k.w(D.date(D.date()+Math.round(x*A)),J)};if(Z===c)return this.set(c,this.$M+A);if(Z===E)return this.set(E,this.$y+A);if(Z===d)return ee(1);if(Z===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=l,W)[Z]||1,F=this.$d.getTime()+A*re;return k.w(F,this)},O.subtract=function(A,U){return this.add(-1*A,U)},O.format=function(A){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var J=A||"YYYY-MM-DDTHH:mm:ssZ",Z=k.z(this),ee=this.$H,re=this.$m,F=this.$M,x=W.weekdays,D=W.months,V=function(j,M,q,Y){return j&&(j[M]||j(U,J))||q[M].slice(0,Y)},v=function(j){return k.s(ee%12||12,j,"0")},K=W.meridiem||function(j,M,q){var Y=j<12?"AM":"PM";return q?Y.toLowerCase():Y},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:k.s(F+1,2,"0"),MMM:V(W.monthsShort,F,D,3),MMMM:V(D,F),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:k.s(ee,2,"0"),h:v(1),hh:v(2),a:K(ee,re,!0),A:K(ee,re,!1),m:String(re),mm:k.s(re,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z};return J.replace($,function(j,M){return M||P[j]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(A,U,W){var J,Z=k.p(U),ee=C(A),re=(ee.utcOffset()-this.utcOffset())*n,F=this-ee,x=k.m(this,ee);return x=(J={},J[E]=x/12,J[c]=x,J[b]=x/3,J[f]=(F-re)/6048e5,J[d]=(F-re)/864e5,J[u]=F/r,J[s]=F/n,J[i]=F/l,J)[Z]||F,W?x:k.a(x)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return R[this.$L]},O.locale=function(A,U){if(!A)return this.$L;var W=this.clone(),J=_(A,U,!0);return J&&(W.$L=J),W},O.clone=function(){return k.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},N}(),H=T.prototype;return C.prototype=H,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",E],["$D",g]].forEach(function(N){H[N[1]]=function(O){return this.$g(O,N[0],N[1])}}),C.extend=function(N,O){return N.$i||(N(O,T,C),N.$i=!0),C},C.locale=_,C.isDayjs=L,C.unix=function(N){return C(1e3*N)},C.en=R[B],C.Ls=R,C.p={},C})})(Rl);var Ki=Rl.exports;const je=Ge(Ki);var Ll={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(m){this[h]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var $=m.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},b=function(h,m){var $,w=s.meridiem;if(w){for(var I=1;I<=24;I+=1)if(h.indexOf(w(I,0,m))>-1){$=I>12;break}}else $=h===(m?"pm":"PM");return $},E={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[i,function(h){var m=s.ordinal,$=h.match(/\d+/);if(this.day=$[0],m)for(var w=1;w<=31;w+=1)m(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[i,function(h){var m=c("months"),$=(c("monthsShort")||m.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(h){var m=c("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var m,$;m=h,$=s&&s.formats;for(var w=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,k,T){var H=T&&T.toUpperCase();return k||$[T]||l[T]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,O,A){return O||A.slice(1)})})).match(n),I=w.length,z=0;z<I;z+=1){var B=w[z],R=E[B],L=R&&R[0],_=R&&R[1];w[z]=_?{regex:L,parser:_}:B.replace(/^\[|\]$/g,"")}return function(C){for(var k={},T=0,H=0;T<I;T+=1){var N=w[T];if(typeof N=="string")H+=N.length;else{var O=N.regex,A=N.parser,U=C.slice(H),W=O.exec(U)[0];A.call(k,W),C=C.replace(W,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var ee=J.hours;Z?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}}(k),k}}return function(h,m,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=m.prototype,I=w.parse;w.parse=function(z){var B=z.date,R=z.utc,L=z.args;this.$u=R;var _=L[1];if(typeof _=="string"){var C=L[2]===!0,k=L[3]===!0,T=C||k,H=L[2];k&&(H=L[2]),s=this.$locale(),!C&&H&&(s=$.Ls[H]),this.$d=function(U,W,J){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*U);var Z=g(W)(U),ee=Z.year,re=Z.month,F=Z.day,x=Z.hours,D=Z.minutes,V=Z.seconds,v=Z.milliseconds,K=Z.zone,P=new Date,j=F||(ee||re?1:P.getDate()),M=ee||P.getFullYear(),q=0;ee&&!re||(q=re>0?re-1:P.getMonth());var Y=x||0,Q=D||0,ne=V||0,S=v||0;return K?new Date(Date.UTC(M,q,j,Y,Q,ne,S+60*K.offset*1e3)):J?new Date(Date.UTC(M,q,j,Y,Q,ne,S)):new Date(M,q,j,Y,Q,ne,S)}catch{return new Date("")}}(B,_,R),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&B!=this.format(_)&&(this.$d=new Date("")),s={}}else if(_ instanceof Array)for(var N=_.length,O=1;O<=N;O+=1){L[1]=_[O-1];var A=$.apply(this,L);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}O===N&&(this.$d=new Date(""))}else I.call(this,z)}}})})(Ll);var Wi=Ll.exports;const Yi=Ge(Wi);var Ml={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),c=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return b}});return i.bind(this)(c)}}})})(Ml);var Gi=Ml.exports;const Ui=Ge(Gi);var Bl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,E,g,h){var m=c.name?c:c.$locale(),$=i(m[b]),w=i(m[E]),I=$||w.map(function(B){return B.slice(0,g)});if(!h)return I;var z=m.weekStart;return I.map(function(B,R){return I[(R+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,b){return c.formats[b]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(c.formats[b.toUpperCase()])},f=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(c){return s(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(Bl);var Xi=Bl.exports;const Zi=Ge(Xi);var _l={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(d),c=i(this).endOf(l);if(f.isBefore(c))return 1}var b=i(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),E=this.diff(b,l,!0);return E<0?i(this).startOf("week").week():Math.ceil(E)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(_l);var Ji=_l.exports;const Qi=Ge(Ji);var ql={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(ql);var es=ql.exports;const ts=Ge(es);var Pl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Pl);var ns=Pl.exports;const os=Ge(ns);var jl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(jl);var ls=jl.exports;const rs=Ge(ls);var zl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(zl);var as=zl.exports;const is=Ge(as);je.extend(Zi),je.extend(Ui),je.extend(Yi),je.extend(Qi),je.extend(ts),je.extend(os),je.extend(rs),je.extend(is);const Re={format(e,t){return je(e).format(t)},parser(e,t){return je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t){e=e||0;let l=t??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Re.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Re.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Hl={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Kl={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function ss(e,t,l){return{props:{...ve,...Ee,...Hl,...Kl},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=o.computed(()=>A.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),E=o.computed(()=>A.value?"longTermKey":"normalKey"),g=j=>{if(A.value&&n.type==="daterange"){const M=[...c.value];M[0]=j,c.value=M}else c.value=j;s("update:modelValue",c.value),s("change",c.value)},h=o.computed(()=>A.value&&n.type==="daterange"?"date":n.type),m=e,$=o.computed(()=>({[`${m}`]:!0,"is-long":A.value,"is-readonly":i.value,"is-disabled":a.value}));let w=de(n,"hintText"),I=o.ref(!1);const z=j=>{let q=j.target.value;f.value=!0,ge(w.value)||(I.value=!0),s("focus",q,j)},B=j=>{setTimeout(()=>{I.value&&(I.value=!1),f.value=!1},0);let q=j.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),s("blur",q,j)},R=()=>{s("clear","")},L=j=>{s("calendar-change",j)},_=(j,M,q)=>{s("panel-change",j,M,q)},C=j=>{s("visible-change",j)},k=ke(o.computed(()=>n.longTermText),"longTermText",Ae.Near),T=ke(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ae.Near),H=ke(o.computed(()=>n.longTermValue),"longTermValue",Ae.Near),N=ke(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let O=null;const A=o.ref(se(n.longTerm)),U=j=>{if(A.value=j,s("update:longTerm",j),j){if(O=c.value,n.type==="daterange"){const M=[];Array.isArray(H.value)?(M[0]=c.value?c.value[0]??H.value[0]:null,M[1]=H.value[1]??H.value[0]):(M[0]=c.value?c.value[0]??H.value:null,M[1]=A.value),M[0]||(M[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=M}else Array.isArray(H.value)?c.value=H.value[1]??H.value[0]:c.value=H.value,c.value||(c.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);s("update:modelValue",c.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=O;s("update:modelValue",c.value),setTimeout(()=>{K()},100)}},W=se(n.isLongTerm);if(W){const j=()=>{if(A.value===!0){if(O=c.value,n.type==="daterange"){const M=[c.value[0]];Array.isArray(H.value)?M[1]=H.value[1]??H.value[0]:M[1]=A.value,M[0]||(M[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=H.value;s("update:modelValue",c.value)}else He(H.value,c.value)&&(A.value=!0)};j(),o.watch([()=>n.longTerm],([M])=>{A.value!==M&&j()}),o.watch([()=>c.value],([M])=>{let q=!1;if(n.type==="daterange"&&Array.isArray(M))try{let Y=M[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Re.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(N.value)&&N.value.findIndex(S=>Y==S)!==-1)&&(q=!0)}catch(Y){console.error(Y)}A.value!==q&&(A.value=q)},{immediate:!0})}const J=o.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=o.ref(),ee=o.ref(),re=/^\d+$/,F=(j,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(j,M):re.test(j)&&j.length===n.flashFillThreshold,x=(j,M)=>{let q;if(typeof n.flashFillFormat=="function")q=n.flashFillFormat(j,M);else{const Q=n.flashFillFormat??"YYYYMMDD";q=Re.parser(j,Q)}const Y=n.valueFormat??"YYYY-MM-DD";return Re.format(q,Y)},D=j=>j?j.endsWith("range"):!1,V=j=>{if(!j.target)return;const M=j.target.value??"";if(F(M,n.type)){const q=x(M,n.type);if(D(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[0]=q,g(Y)}else g(q)}},v=j=>{if(!j.target)return;const M=j.target.value??"";if(F(M,n.type)){const q=x(M,n.type);if(D(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[1]=q,g(Y)}else g(q)}},K=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(D(n.type)){const j=Z.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].addEventListener("input",V),j[1]&&j[1].addEventListener("input",v)}else{const j=Z.value.$el.querySelector("input.el-input__inner");j&&j.addEventListener("input",V)}},P=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(D(n.type)){const j=Z.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].removeEventListener("input",V),j[1]&&j[1].removeEventListener("input",v)}else{const j=Z.value.$el.querySelector("input.el-input__inner");j&&j.removeEventListener("input",V)}};return o.onMounted(K),o.onBeforeUnmount(P),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const M={...r.attrs,key:E.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:R,onFocus:z,onBlur:B,onCalendarChange:L,onPanelChange:_,onVisibleChange:C},q={};r.slots["range-separator"]&&(q["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(q.default=r.slots.cell);const Y=[],Q=o.h(y.ElDatePicker,M,q);Y.push(Q);const ne={default:()=>Y};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),W){if(A.value){const le=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=o.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),oe={class:J.value},ae=o.h("div",oe,{default:()=>[le,X]});Y.push(ae)}if(!i.value&&!a.value){const le={label:T.value||k.value,disabled:i.value||a.value,modelValue:A.value,"onUpdate:modelValue":U},X=o.h(y.ElCheckbox,le),oe=o.h("div",{class:{[`${m}__append`]:!0}},[X]);ne.append=()=>oe}}const G={...Ce(n,Hl,Kl),ref:Z,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:w.value,hintVisible:I.value,prop:`${n.prop}_item`};return o.h(l,G,ne)}}}}const{componentName:us,create:cs,scope:fs}=ie("date-item"),zn=cs(ss(us,fs,we)),Wl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ds(e,t,l){return{props:{...ve,...Ee,...Wl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),g=R=>{c.value=R,s("update:modelValue",R),s("change",R)};let h=de(n,"hintText"),m=o.ref(!1);const $=R=>{let _=R.target.value;f.value=!0,ge(h.value)||(m.value=!0),s("focus",_,R)},w=R=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let _=R.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),s("blur",_,R)},I=()=>{s("clear","")},z=R=>{s("visible-change",R)},B=o.ref();return xe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:I,onFocus:$,onBlur:w,onVisibleChange:z},_={},C=[],k=o.h(y.ElTimePicker,L,_);C.push(k);const T={default:()=>C};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const N={...Ce(n,Wl),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,N,T)}}}}const{componentName:hs,create:gs,scope:ms}=ie("time-item"),Hn=gs(ds(hs,ms,we)),Yl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,l){return{props:{...ve,...Ee,...Yl},emits:["change","update:modelValue","blur","focus","clear"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),g=B=>{c.value=B,s("update:modelValue",B),s("change",B)};let h=de(n,"hintText"),m=o.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,ge(h.value)||(m.value=!0),s("focus",L,B)},w=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,B)},I=()=>{s("clear","")},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const R={...r.attrs,ref:z,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:I,onFocus:$,onBlur:w},L={},_=[],C=o.h(y.ElTimeSelect,R,L);_.push(C);const k={default:()=>_};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const H={...Ce(n,Yl),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,H,k)}}}}const{componentName:ys,create:bs,scope:vs}=ie("time-select-item"),Kn=bs(ps(ys,vs,we));function Gl(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function Ul(e,t,l=20){if(typeof t=="string"&&(t=ye(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ho(`${e}`,`${t}`);return Gl(n)}else{let n=mn(`${e}`,Ko(`${t}`),20);return Gl(n)}}function ws(e,t=-1,l=!1,n=3,r=","){return Dt(e,t,l,n,r)}function Xl(e,t,l,n,r=!0){if(e=="")return"";if(e=Wo(e),t=ye(t),t==1)return e;if(n)e=Ul(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(ye(l)+2,"0"):e=mn(e,1,ye(l)));else{let a=-1*t;e=Ul(e,a)}return e}function Zl(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=pn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=pn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const Jl={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ss(e,t,l){return{props:{...ve,...Ee,...Jl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=o.ref(!1),d=de(n,"modelValue"),f=o.ref("");o.watch([()=>d.value,()=>n.rates,()=>n.precision],([N,O,A])=>{if(ge(N)){f.value="";return}const U=Xl(N,O,A,!1);f.value!==U&&(f.value=U)},{immediate:!0});const c=o.computed(()=>{let N="";return u.value&&(N=f.value),N}),{t:b}=De.useFoxI18n(t),E=o.computed(()=>{let N=n.placeholder??"";return!u.value&&!ge(f.value)?N=ws(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):N=b(["placeholder",N]),N}),g=e,h=o.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=ke(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const $=o.ref(""),w=o.computed(()=>{let N=$.value;return ge(N)&&(N=n.errorTip??""),N}),I=o.ref(""),z=o.ref(!1),B=(N,O)=>{if(N=`${N}`,ge(N)){f.value="",d.value="",O.forEach(A=>{s(A,"")}),se(n.showTip)&&z.value&&(z.value=!1);return}if(N.length>=2){let A=N;if(A.charAt(0)=="-"&&(A=A.substring(1)),A.length>=2&&A.charAt(0)=="0"&&A.charAt(1)!="."){o.triggerRef(f);return}}if(N!="-"){if(!tl(N)){o.triggerRef(f);return}if(n.integerLength!=-1&&nl(N)>Number(n.integerLength)){o.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ol(N)>Number(n.decimalLength)){o.triggerRef(f);return}let A=Zl(N,n);if(A.maxValid===!1){$.value=A.message,o.triggerRef(f);return}}else if(n.min!=null&&ye(n.min)>=0){o.triggerRef(f);return}I.value=N,se(n.showTip)&&(z.value=N.length>0),f.value=N,d.value=Xl(N,n.rates,n.precision,!0),O.forEach(A=>{s(A,d.value)})},R=N=>{B(N,["update:modelValue","input"])},L=N=>{B(N,["update:modelValue","change"])},_=N=>{if(u.value=!0,se(n.showTip)){let O=f.value;ge(O)&&(O=n.hintText),ge(O)||(I.value=O,z.value=!0)}$.value="",s("focus",d.value,N)},C=N=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&z.value===!0&&(z.value=!1)},0),!ge(f.value)){let O=Zl(f.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}s("update:modelValue",d.value,N),s("blur",d.value,N)},k=()=>{s("clear","")},T=o.computed(()=>yt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:E.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:R,onChange:L,onFocus:_,onBlur:C},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:T.value&&(A.suffix=()=>[n.unit]);const U=[],W=o.h(y.ElInput,O,A);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Jl),errorTip:w.value,hintText:I.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:xs,create:Ts,scope:$s}=ie("money-item"),Wn=Ts(Ss(xs,$s,we)),Ql={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Cs(e,t,l){return{props:{...ve,...Ee,...Ql},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0,[`${b}__append`]:R.value})),g=o.computed(()=>({[`${b}__unit`]:!0})),h=_=>{c.value=_,s("update:modelValue",_),s("input",_)},m=_=>{s("change",_)};let $=de(n,"hintText"),w=o.ref(!1);const I=_=>{let k=_.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",k,_)},z=_=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=_.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,_)},B=()=>{s("clear","")},R=o.computed(()=>yt(n.unit)>0),L=o.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const C={...Pe(r.attrs),ref:L,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:m,onInput:h,onFocus:I,onBlur:z},k={},T=[],H=o.h(y.ElInputNumber,C,k);T.push(H);const N={default:()=>T};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const A={...Ce(n,Ql),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)N.append=r.slots.append;else if(R.value){const W={class:g.value},J=o.h("div",W,[n.unit]);N.append=()=>J}return o.h(l,A,N)}}}}const{componentName:Ns,create:Es,scope:ks}=ie("input-number-item"),Yn=Es(Cs(Ns,ks,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Is(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Os=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function Vs(){const e=o.getCurrentInstance();return new Os(e.proxy)}function Gn(e,t,l){const n=Ue(e,t),r=Ue(e,l);if(n!==r)return!1;const a=ot(e,t),i=ot(e,l);return a===i}function er(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=er(e,s,l,n);r.push(u)}else{let u=!1;for(let d of a){if(l==="text")u=Ue(e,d)===s;else if(l==="item")u=Gn(e,d,s);else{let f=ot(e,d);f==null&&(f=Ue(e,d)),u=f===s}if(u){r.push(d),a=Is(e,d);break}}if(!u)break}}return r}function Fs(e){return{text:e,value:e}}const tr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ds(e,t,l){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(j=>Array.isArray(j)?j.map(q=>Ue(n,q)).join(" "):Ue(n,j)).join(" "):""),E=(P,j,M,q=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===P)return;f.value=P;const S=o.toRaw(P);if(q){const G=K?.value.getCheckedNodes();if(G)if(n.multiple){const te=[];G.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);te.push(oe)}),s("update:pathNodes",te)}else{const le=(G[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",le)}s("update:modelValue",S),s("change",S)}return}const Y=er(n,P,j,M);if(Y===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,q&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=Y[Y.length-1];if(k.value.checkStrictly!==!0&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const S=[];Y.forEach(G=>{const te=`${Ue(n,G)}`;S.push(te)}),S.length>0&&(C.value=S.join(n.separator))}else C.value=null;let ne=!0;if(Y.length!==c.value.length)ne=!1;else for(let S=0;S<Y.length;S++){const G=Y[S],te=c.value[S];if(Array.isArray(G)){if(!Array.isArray(te)||G.length!==te.length)ne=!1;else for(let le=0;le<G.length;le++)if(!Gn(n,G[le],te[le])){ne=!1;break}}else Gn(n,G,te)||(ne=!1);if(!ne)break}if(!ne){c.value=Y;let S=[],G=[];Y.forEach(le=>{if(Array.isArray(le)){let X=[],oe=[];for(let ae of le)X.push(ot(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(ot(n,ae));S.push(X),G.push(oe)}else S.push(ot(n,le)),n.valueType==="text"?G.push(Ue(n,le)):n.valueType==="item"?G.push(le):G.push(ot(n,le))}),f.value=S;const te=o.toRaw(G);q&&(s("update:pathNodes",Y),s("update:modelValue",te),s("change",te))}},g=o.ref([]),h=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,P=>se(P)),m=Vs(),$=async(P,j)=>{if(P){const M=await m.load("cascader",P,j);if(M.length>0)if(typeof M[0]=="string"){let Q=M.map(ne=>Fs(ne));g.value=Q}else g.value=M}};o.watch([()=>n.source,()=>n.params],async([P,j])=>{$(P,j)},{immediate:!(h.value||n.lazy)});let w=!1;const I=()=>{w||(w=!0,$(n.source,n.params))};o.watch([()=>g.value,()=>n.modelValue],([P,j])=>{E(j,n.valueType,P,!1)}),n.lazy&&E(n.modelValue,"value",[],!1);let z=null,B=o.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const j=await n.remoteMethod(P);g.value=j}catch(j){console.error(j)}B.value=!1}});const R=o.ref(!1),L=e,_=o.computed(()=>({[L]:!0})),C=o.ref(null),k=o.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,P.lazyLoad=async(j,M)=>{const q=await m.load("cascader",n.source,j,!0);if(j?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===j.level){const Y=j.pathLabels??[];let Q=[];Y.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(C.value=Q.join(n.separator))}else C.value=null;M(q)}),P}),T=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),f.value=P):E(P,"value",g.value,!0)};let H=de(n,"hintText"),N=o.ref(!1);const O=P=>{let M=P.target.value;R.value=!0,ge(H.value)||(N.value=!0),s("focus",M,P)},A=P=>{setTimeout(()=>{N.value&&(N.value=!1),R.value=!1},0);let M=P.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),x.value||s("blur",M,P)},U=()=>{s("clear","")},W=o.ref(!1);let J=null;const Z=()=>{n.showTooltip&&W.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{W.value=!0},150))},ee=()=>{J&&(clearTimeout(J),W.value=!1,J=null)},re=o.computed(()=>W.value||N.value),F=o.computed(()=>W.value?b.value:H.value),x=o.ref(!1),D=P=>{x.value=P,s("visible-change",P),P||s("selected")},V=P=>{s("remove-tag",P)},v=P=>{s("expand-change",P)},K=o.ref();return xe({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const j={...r.attrs,ref:K,class:_.value,props:k.value,clearable:n.clearable,placeholder:C.value||d.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:T,onFocus:O,onBlur:A,onVisibleChange:D,onRemoveTag:V,expandChange:v};typeof z=="function"&&(j["remote-method"]=z,j.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const q=[],Y=o.h(y.ElCascader,j,M);q.push(Y);const Q={default:()=>q};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const S={...Ce(n,tr),hintText:F.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=I),o.h(l,S,Q)}}}}const{componentName:As,create:Rs,scope:Ls}=ie("cascader-item"),Un=Rs(Ds(As,Ls,we)),nr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ms(e,t,l){return{props:{...ve,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),g=L=>{c.value=L,s("update:modelValue",L),s("input",L)},h=L=>{s("change",L)},m=L=>{s("select",L)};let $=de(n,"hintText"),w=o.ref(!1);const I=L=>{let C=L.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",C,L)},z=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let C=L.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),s("blur",C,L)},B=()=>{s("clear","")},R=o.ref();return xe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()}}),()=>{const _={...r.attrs,ref:R,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:I,onBlur:z,onSelect:m},C={};r.slots.prepend&&(C.prepend=r.slots.prepend),r.slots.append&&(C.append=r.slots.append),r.slots.prefix&&(C.prefix=r.slots.prefix),r.slots.suffix&&(C.suffix=r.slots.suffix),r.slots.option&&(C.default=r.slots.option);const k=[],T=o.h(y.ElAutocomplete,_,C);k.push(T);const H={default:()=>k};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return o.h(l,O,H)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("autocomplete-item"),Xn=_s(Ms(Bs,qs,we));function Ps(e,t,l,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(b=>b[n]===f);if(!c)break;i.push(c[l])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l]),u=c[r]}}return i}let js=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function zs(){const e=o.getCurrentInstance();return new js(e.proxy)}const or={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Hs(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){const a=zs(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([d,f])=>{i.value=await a.load(l.sourceType,d,f)},{immediate:!0});const s=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Ps(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)}),u=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const d={...n};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},s.value):o.h(u,d,{default:()=>s.value}):o.h(u,d,s.value)}}}}const{componentName:Sh,create:Ks,scope:xh}=ie("mapping"),Ct=Ks(Hs());function Ws(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Ys(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=Ws(i.row,i.column.property);return r.default?o.h(Ct,{...l,modelValue:s},{default:r.default}):o.h(Ct,{...l,modelValue:s})}};return o.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Th,create:Gs,scope:$h}=ie("table-mapping-column"),Zn=Gs(Ys()),Us=Symbol.for("TableStateKey");function lr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Xs(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Us,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=lr(s.row,s.column.property),d=a?lr(a,s.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},b=o.h("span",c,[o.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":f}};return o.h("label",E,[b])}};return o.h(y.ElTableColumn,{...n},i)}}}}const{componentName:Ch,create:Zs,scope:Nh}=ie("table-radio-column"),Jn=Zs(Xs()),Js={},Qs={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"},eu=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function tu(e,t){return o.openBlock(),o.createElementBlock("svg",Qs,eu)}const nu=Me(Js,[["render",tu]]),{componentName:kh,create:ou,scope:Ih}=ie("table-setting"),lu={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:"不固定"}},ru=ou({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:nu,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...lu},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=o.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=o.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=o.computed(()=>a.value.length>0),f=o.computed(()=>i.value.length>0),c=v=>v.length>1,b=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(q=>q.prop===M.prop?(M.label=q.label,!0):!1)});const P=[];r.value=v.map((M,q)=>(!(M.label===""||M.type)&&M.visible!==!1&&P.push(M.prop),{...M,sortIndex:q})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(I.value=!0),R.value=P},E=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,K)=>{if(v.length!==K.length)return!1;const P=v.map(j=>E(j));for(let j of K){const M=E(j);if(P.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((j,M)=>({...j,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&g(P,v)||(v=P)}b(v,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},$=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=o.ref(!1),I=o.ref(!1),z=v=>{const K=[];r.value.forEach(j=>{v&&!(j.label===""||j.type)&&K.push(j.prop),j.visible=v}),w.value=!1,I.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(I.value=!0),R.value=K,m()},B=()=>{h(n),m()},R=o.ref([]),L=v=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const j=v.indexOf(P.prop)!==-1;P.visible=j}),w.value=!1,I.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?w.value=!0:v.length>0&&(I.value=!0),m()},_=()=>{h()};o.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(C.roleType=K.dataset.roleType,C.index=K.dataset.index)},H=v=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},N=v=>{const K=v.currentTarget;v.relatedTarget;const P=k(K);if(!P)return;const j=P.dataset&&P.dataset.roleType;C.roleType===j&&(v.preventDefault(),C.currentRow&&C.currentRow!==P&&C.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),C.currentRow=P)},O=v=>{v.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},A=v=>{const K=v.currentTarget,P=k(K);if(!P)return;const j=P.dataset&&P.dataset.roleType;if(C.roleType!==j)return;v.preventDefault();const M=Number(C.index),q=Number(P.dataset.index);if(M!==q){if(M<q){const Y=r.value[M];r.value.splice(M,1),r.value.splice(q,0,Y)}else{const Y=r.value[M];r.value.splice(M,1),r.value.splice(q+1,0,Y)}b(r.value,n),m()}},U=v=>{const K=r.value[v];K.fixed="left",m()},W=v=>{const K=r.value[v];K.fixed="right",m()},J=v=>{const K=r.value[v];K.fixed=void 0,m()},Z=new Map;let ee=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:I,handleCheckAllChange:z,handleReset:B,checkedValue:R,handleCheckChange:L,onShow:_,onDragStart:T,onDragEnd:H,onDragOver:N,onDragLeave:O,onDrop:A,toLeftFixed:U,toRightFixed:W,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,K,P)=>{const j=v.currentTarget;if(j){const M=Math.floor(j.offsetWidth);if(Math.floor(re(j))>M){let Y=Z.get(K);if(Y){if(Y===ee)return;Ve.hide(Y)}Y=Ve.show(j,P,{type:"text",placement:"top",closeOnClick:!1}),Z.set(K,Y),ee=Y}}},onMouseLeaveForOverflowText:(v,K)=>{const P=Z.get(K);P&&(Ve.hide(P),P===ee&&(ee=null))},onMouseOverForTip:(v,K)=>{const P=v.currentTarget;P&&(ee&&Ve.hide(ee),ee=Ve.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),au={class:"fox-table-setting"},iu={class:"fox-table-setting__header"},su={class:"fox-table-setting__body"},uu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},cu={key:0,class:"fox-table-setting__body-title"},fu=["data-index","draggable"],du=["onMouseover","onMouseleave"],hu={class:"tools-item"},gu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},mu={key:0,class:"fox-table-setting__body-title"},pu=["data-index","draggable"],yu=["onMouseover","onMouseleave"],bu={class:"tools-item"},vu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},wu={key:0,class:"fox-table-setting__body-title"},Su=["data-index","draggable"],xu=["onMouseover","onMouseleave"],Tu={class:"tools-item"};function $u(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("RefreshLeft"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("Download"),b=o.resolveComponent("fox-checkbox"),E=o.resolveComponent("FoxCheckboxGroup"),g=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(g,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",au,[o.createElementVNode("div",iu,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",su,[o.createVNode(E,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",uu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",cu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,du)]),_:2},1032,["label"]),o.createElementVNode("div",hu,[o.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,fu))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",gu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",mu,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,yu)]),_:2},1032,["label"]),o.createElementVNode("div",bu,[o.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,pu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",vu,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",wu,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,h=>(o.openBlock(),o.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(b,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,xu)]),_:2},1032,["label"]),o.createElementVNode("div",Tu,[o.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,Su))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const tn=Me(ru,[["render",$u]]);let Cu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,s){if(Array.isArray(l)){let d=(n-1)*r,f=d+r;f>l.length&&(f=l.length);const c=l.slice(d,f);return{totalSize:l.length,page:c}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(u,null,[l,n,r,a,i,s]))}};function Nu(){const e=o.getCurrentInstance();return new Cu(e.proxy)}class Eu{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function rr(){const e=o.getCurrentInstance();return new Eu(e.proxy)}const ku=Symbol.for("TableStateKey"),ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},ir={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Qn={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:"不固定"}},Iu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ou(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function eo(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Ou(n,r);if(a!==i)return!1}return!0})}function Vu(e,t,l){return{inheritAttrs:!1,props:{...ve,...Ee,...ar,...ir,...Qn,...Iu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=De.useFoxI18n(t),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...X){return R.value}}},n.prop??r.attrs.name),s=e,u=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),f=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),c=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=o.shallowRef({}),E=o.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),g=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),m=se(n.infiniteLoad);m||(o.watch(()=>n.pageIndex,X=>{g.value=X}),o.watch(()=>n.pageSize,X=>{h.value=X}),o.watch([g,h],([X,oe],[ae,ue])=>{oe!==ue&&(g.value=1,X=1),k(n.data,X,oe,E.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&o.watch([()=>n.data,E],async([X,oe],[ae,ue])=>{$()&&(X!==ae&&(_=!0),!(!Array.isArray(X)&&He(X,ae)&&He(oe,ue))&&(m?(g.value=0,z.value=!0,R.value=[],H()):g.value===1?k(X,g.value,h.value,oe):g.value=1))},{deep:!0});const w=X=>{g.value=X,i("page-index-change",X)},I=X=>{h.value=X,i("page-size-change",X)},z=o.ref(!0),B=o.ref(0),R=o.ref(),L=Nu();let _=!0;const C=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,X=>se(X)),k=async(X,oe,ae,ue,pe)=>{_=!1;try{if(pe===!0){if(!z.value)return!1;const he=await L.load("table",X,oe,ae,ue,_,a.value);return B.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,R.value,he.page),setTimeout(()=>{i("loaded-data")},250),(R.value?.length??0)>=B.value)||he.page.length<ae?(z.value=!1,!1):!0}else{const he=await L.load("table",X,oe,ae,ue,_,a.value);return B.value=he.totalSize,R.value=he.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),B.value=0,R.value=[]}return!1};let T=!1;const H=async()=>{if(!T){if(T=!0,!z.value){T=!1;return}g.value+=1,await k(n.data,g.value,h.value,E.value,!0),T=!1}},N=(X={},oe=!1)=>new Promise(async ae=>{b.value=o.toRaw(X??{}),oe||(g.value=n.pageIndex??1),m===!0?(g.value=0,R.value=[],z.value=!0,await H()):await k(n.data,g.value,h.value,E.value),ae()}),O=()=>{B.value=0,R.value=[],m===!0&&(g.value=0,z.value=!0)};let A=!1;const U=()=>{A||(A=!0,N())},W=o.ref(null);if(m===!0){let X=null;const oe=()=>{W.value&&(X=new IntersectionObserver(ue=>{let pe=!1;for(let he of ue)if(he.intersectionRatio>0){pe=!0;break}pe&&H()}),X.observe(W.value))},ae=()=>{!X||!W.value||(X.unobserve(W.value),X=null)};o.onMounted(oe),o.onBeforeUnmount(ae)}$()&&!C.value&&N();const J=o.ref(null);o.provide(ku,{currentRow:J});const Z=(X,oe)=>{J.value=X,i("current-change",X,oe)},ee=(X,oe,ae)=>{i("row-click",X,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(X)},re=[],F=(X,oe)=>{if(i("expand-change",X,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},x=r.attrs.id??n.prop??r.attrs.name,D=rr(),V=o.ref([]);let v=[];const K=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:V.value}),P=X=>{V.value=[...X],M()},j=async()=>{const X=await D.load(x);X&&(V.value=X)},M=()=>{D.save(x,V.value)},q=()=>{D.remove(x)};j();const Y=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=o.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),oe=new Map;if(v=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const pe=Y(ue.props);oe.set(pe,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),V.value.length===v.length){const ae=[];for(let ue of V.value){const pe=Y(ue),he=oe.get(pe);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ne=o.shallowRef(new Map),S=({column:X,rowIndex:oe})=>{const ae=`${oe}_${X.property}`;return ne.value.get(ae)??""},G=X=>typeof X=="function"?oe=>{const ae=[];let ue=S(oe);return ue&&ae.push(ue),ue=X(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:S,te=(X,oe,ae)=>{const ue=`${X}_${oe}`;ae?ne.value.set(ue,ae):ne.value.delete(ue),o.triggerRef(ne)},le=o.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(X,oe)=>{le?.value.toggleRowSelection(X,oe)},toggleRowSelectionByProp:(X,oe)=>{if(!R.value)return;const ae=eo(R.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(X,oe)=>{le?.value.toggleRowExpansion(X,oe)},toggleRowExpansionByProp:(X,oe)=>{if(!R.value)return;const ae=eo(R.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:X=>{le?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!R.value)return;const oe=eo(R.value,X);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:X=>{le?.value.clearFilter(X)},doLayout:()=>{le?.value.doLayout()},sort:(X,oe)=>{le?.value.sort(X,oe)},scrollTo:(X,oe)=>{le?.value.scrollTo(X,oe)},setScrollTop:X=>{le?.value.setScrollTop(X)},setScrollLeft:X=>{le?.value.setScrollLeft(X)},loadData:N,clearData:O,getData(){return R.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:K,setColumnSetting:P,removeColumnSetting:q,setCellClassName:te}),()=>{const oe={...Pe(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:F,data:R.value,ref:le,class:u.value,"cell-class-name":G(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=()=>r.slots.append),r.slots.empty&&(ae.empty=()=>r.slots.empty),m===!0){const _e=[];if(z.value){const Ot=o.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(Ot);const Mo=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);_e.push(Mo)}else{const Ot=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);_e.push(Ot)}const rt={ref:W,class:`${s}__infinite`},Lo=o.h("div",rt,_e);ae.append=()=>Lo}const ue=o.h(y.ElTable,oe,ae),pe=[];if(pe.push(ue),!m){let _e=null;if(typeof r.slots.pagination=="function")_e=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":I,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};_e=o.h(y.ElPagination,rt)}if(n.showSetting){const rt=[];_e&&rt.push(_e);const Lo=o.h(y.ElIcon,{class:d.value},{default:()=>o.h(Te.Setting)}),Ot=rl(n,Qn),Mo=o.h(tn,{...Ot,tableRef:{getColumnSetting:K,setColumnSetting:P,removeColumnSetting:q}},{default:()=>Lo});rt.push(Mo);const gh=o.h("div",{class:f.value},rt);pe.push(gh)}else _e&&pe.push(_e)}const he={default:()=>pe},It={...Ce(n,ar,ir,Qn),prop:`${n.prop}_item`};return It.contentClass=`${s}__wrap`,It.errorMarkClass="is-table-error",C.value&&$()&&(It["appear-listen"]=!0,It.onAppear=U),o.h(l,It,he)}}}}const{componentName:Fu,create:Du,scope:Au}=ie("table-item"),to=Du(Vu(Fu,Au,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ru(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Lu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Mu(){const e=o.getCurrentInstance();return new Lu(e.proxy)}function sr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ct(e,t),r=ct(e,l);if(n!==r)return!1;const a=Nt(e,t),i=Nt(e,l);return a===i}function Bu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(l==="text")i=ct(e,a)===t;else if(l==="item")i=sr(e,a,t);else{let s=Nt(e,a);s==null&&(s=ct(e,a)),i=s===t}if(i){r=a;break}}return r}function _u(e){return{text:e,value:e}}function qu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const ur={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Pu(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...ur},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=o.ref(null),d=o.ref(null),f=(L,_,C,k=!0)=>{const T=Bu(n,L,_,C);if(T===null){if(d.value===null)return;d.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!sr(n,T,d.value)){u.value=L;const N=o.toRaw(T);d.value=N;let O=null;n.valueType==="text"?O=ct(n,N):n.valueType==="item"?O=N:O=Nt(n,N),k&&(s("update:modelValue",O),s("change",O))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,L=>se(L)),E=Mu(),g=async(L,_)=>{if(L){const C=await E.load("radio",L,_);if(C.length>0)if(typeof C[0]=="string"){let H=C.map(N=>_u(N));c.value=H}else c.value=C}};o.watch([()=>n.source,()=>n.params],async([L,_])=>{g(L,_)},{immediate:!b.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,_])=>{f(_,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),I=L=>{f(L,"value",c.value,!0)};let z=de(n,"hintText"),B=de(n,"hintVisible");const R=(L,_)=>{const C=[];return L.forEach((k,T)=>{const H=Nt(n,k),N=ct(n,k);let O=Ru(n,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const A=qu(n,k,T)??{},U=`${H}_${T}`,W={...A,key:U,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?C.push(o.h(y.ElRadioButton,W,{default:()=>[N]})):typeof _=="function"?C.push(o.h(y.ElRadio,W,{default:()=>_(k)})):C.push(o.h(y.ElRadio,W,{default:()=>[N]}))}),C};return()=>{const _={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>R(c.value,r.slots.text);const T=o.h(y.ElRadioGroup,_,k);C.push(T);const H={default:()=>C};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,ur),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=m),o.h(l,O,H)}}}}const{componentName:ju,create:zu,scope:Hu}=ie("radio-item"),no=zu(Pu(ju,Hu,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ku(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Wu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Yu(){const e=o.getCurrentInstance();return new Wu(e.proxy)}function cr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ft(e,t),r=ft(e,l);if(n!==r)return!1;const a=dt(e,t),i=dt(e,l);return a===i}function Gu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(l==="text")s=ft(e,i)===a;else if(l==="item")s=cr(e,i,a);else{let u=dt(e,i);u==null&&(u=ft(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function Uu(e){return{text:e,value:e}}function Xu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const fr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Zu(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=o.ref([]),d=o.ref([]),f=(L,_,C,k=!0)=>{const T=Gu(n,L,_,C);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(T.length!==d.value.length)H=!1;else for(let N=0;N<T.length;N++){const O=T[N],A=d.value[N];if(!cr(n,O,A)){H=!1;break}}if(!H){d.value=T;let N=[],O=[];T.forEach(U=>{N.push(dt(n,U)),n.valueType==="text"?O.push(ft(n,U)):n.valueType==="item"?O.push(U):O.push(dt(n,U))}),u.value=N;const A=o.toRaw(O);k&&(s("update:modelValue",A),s("change",A))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Ae.Near,L=>se(L)),E=Yu(),g=async(L,_)=>{if(L){const C=await E.load("checkbox",L,_);if(C.length>0)if(typeof C[0]=="string"){let H=C.map(N=>Uu(N));c.value=H}else c.value=C}};o.watch([()=>n.source,()=>n.params],async([L,_])=>{g(L,_)},{immediate:!b.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,_])=>{f(_,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),I=L=>{f(L,"value",c.value,!0)};let z=de(n,"hintText"),B=de(n,"hintVisible");const R=(L,_)=>{const C=[];return L.forEach((k,T)=>{const H=dt(n,k),N=ft(n,k);let O=Ku(n,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const A=Xu(n,k,T)??{},U=`${H}_${T}`,W={...A,key:U,class:n.itemClass,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?C.push(o.h(y.ElCheckboxButton,W,{default:()=>[N]})):typeof _=="function"?C.push(o.h(y.ElCheckbox,W,{default:()=>_(k)})):C.push(o.h(y.ElCheckbox,W,{default:()=>[N]}))}),C};return()=>{const _={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ye(n.max),min:ye(n.min),onChange:I},C=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>R(c.value,r.slots.text);const T=o.h(y.ElCheckboxGroup,_,k);C.push(T);const H={default:()=>C};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=m),o.h(l,O,H)}}}}const{componentName:Ju,create:Qu,scope:ec}=ie("checkbox-item"),oo=Qu(Zu(Ju,ec,we)),dr={modelValue:{type:[Number,String],required:!1}};function tc(e,t,l){return{props:{...ve,...Ee,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>ye(h)),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),E=o.ref(!1);const g=o.ref();return xe({}),()=>{const m={...Pe(r.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:c},$={},w=[],I=o.h(y.ElRate,m,$);w.push(I);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const R={...Ce(n,dr),hintText:b.value,hintVisible:E.value,prop:`${n.prop}_item`};return o.h(l,R,z)}}}}const{componentName:nc,create:oc,scope:lc}=ie("rate-item"),lo=oc(tc(nc,lc,we)),hr={modelValue:{type:[Boolean,String,Number],required:!1}};function rc(e,t,l){return{props:{...ve,...Ee,...hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),u=de(n,"modelValue"),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),E=de(n,"hintVisible");const g=o.ref();return xe({}),()=>{const m={...Pe(r.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],I=o.h(y.ElSwitch,m,$);w.push(I);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const R={...Ce(n,hr),hintText:b.value,hintVisible:E.value,prop:`${n.prop}_item`};return o.h(l,R,z)}}}}const{componentName:ac,create:ic,scope:sc}=ie("switch-item"),ro=ic(rc(ac,sc,we)),gr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function uc(e,t,l){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),s=o.ref(!1),{emitEvent:u}=Se({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??r.attrs.name),d=de(n,"modelValue"),f=e,c=o.computed(()=>({[f]:!0})),b=B=>{u("update:modelValue",B),u("change",B)};let E=de(n,"hintText"),g=o.ref(!1);const h=B=>{let L=B.target.value;s.value=!0,ge(E.value)||(g.value=!0),u("focus",L,B)},m=B=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=o.ref(!1),I=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const R={...Pe(r.attrs),ref:z,class:c.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:$,onFocus:h,onBlur:m,onVisibleChange:I},L={};r.slots.option&&(L.default=r.slots.option);const _=[],C=o.h(y.ElTreeSelect,R,L);_.push(C);const k={default:()=>_};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const H={...Ce(n,gr),hintText:E.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,H,k)}}}}const{componentName:cc,create:fc,scope:dc}=ie("tree-select-item"),ao=fc(uc(cc,dc,we)),hc={},gc={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"},mc=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function pc(e,t){return o.openBlock(),o.createElementBlock("svg",gc,mc)}const yc=Me(hc,[["render",pc]]),{componentName:Vh,create:bc,scope:Fh}=ie("group-setting"),vc={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},wc=bc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:yc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...vc},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=rr(),s=F=>F.length>1,u=()=>{const F=[],x=[...a.value];a.value=x.map((V,v)=>(V.visible!==!1&&F.push(V.prop),{...V,sortIndex:v})),a.value.length===F.length?h.value=!0:F.length>0&&(m.value=!0),I.value=F},d=F=>{let x=null;if(typeof F=="string")x=document.querySelectorAll(`.fox-group[prop="${F}"] > div > .fox-item[prop]`);else if(F&&typeof F=="object"){const V=F.$el??F;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const D=[];return x.forEach(V=>{const v=V.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const P=V.getAttribute("prop")??"",M=window.getComputedStyle(V,null).getPropertyValue("display");D.push({label:K,prop:P,sortIndex:0,visible:M!=="none"})}),D},f=()=>{if(!r){const F=d(e.groupRef??e.groupProp);if(F.length===0)return!1;r=F}return!0},c=async(F=!1)=>{const x=await i.load(e.groupProp),D=V=>{if(!V||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(P=>{if(P.prop===K.prop){const j=P.label;return Object.assign(P,K),P.label=j,!0}return!1})}),a.value=v.sort((K,P)=>K.sortIndex-P.sortIndex),u(),F&&E(!1)};r?D(!0):qt(f,e.initDelay,5,50,!1,D)},b=()=>{const F=r??[];a.value=F.map(x=>({...x})),u(),E()},E=(F=!0)=>{F&&i.save(e.groupProp,a.value);const x=a.value.map(D=>({...D}));t("change",x)},g=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=o.ref(!1),m=o.ref(!1),$=F=>{const x=[];a.value.forEach(V=>{F&&x.push(V.prop),V.visible=F}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),I.value=x,E()},w=()=>{b()},I=o.ref([]),z=F=>{a.value.forEach(D=>{const V=F.indexOf(D.prop)!==-1;D.visible=V}),h.value=!1,m.value=!1;const x=a.value.length;F.length===x?h.value=!0:F.length>0&&(m.value=!0),E()},B=()=>{c()};o.onMounted(()=>{c(!0)});const R={currentRow:null,index:null},L=F=>F?F.dataset&&F.dataset.role==="row"?F:F.tagName.toLowerCase()!=="body"?(F=F.parentElement,L(F)):null:null,_=F=>{const x=F.currentTarget;x&&x.dataset&&(R.index=x.dataset.index)},C=F=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null},k=F=>{const x=F.currentTarget;F.relatedTarget;const D=L(x);D&&(F.preventDefault(),R.currentRow&&R.currentRow!==D&&R.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),R.currentRow=D)},T=F=>{F.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},H=F=>{const x=F.currentTarget,D=L(x);if(!D)return;F.preventDefault();const V=Number(R.index),v=Number(D.dataset.index);if(V!==v){if(V<v){const K=a.value[V];a.value.splice(V,1),a.value.splice(v,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(v+1,0,K)}u(),E()}},N=F=>{const x=a.value[F];a.value.splice(F,1),a.value.splice(0,0,x),u(),E()},O=F=>{const x=a.value[F];a.value.splice(F,1),a.value.push(x),u(),E()};n({refresh:()=>{r=null,c(!1)}});const A=new Map;let U=null;function W(F){const x=document.createRange();return x.setStart(F,0),x.setEnd(F,F.childNodes.length),x.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:$,handleReset:w,checkedValue:I,handleCheckChange:z,onShow:B,onDragStart:_,onDragEnd:C,onDragOver:k,onDragLeave:T,onDrop:H,checkboxLabelStyle:g,toTop:N,toBottom:O,onMouseOverForOverflowText:(F,x,D)=>{const V=F.currentTarget;if(V){const v=Math.floor(V.offsetWidth);if(Math.floor(W(V))>v){let P=A.get(x);if(P){if(P===U)return;Ve.hide(P)}P=Ve.show(V,D,{type:"text",placement:"top",closeOnClick:!1}),A.set(x,P),U=P}}},onMouseLeaveForOverflowText:(F,x)=>{const D=A.get(x);D&&(Ve.hide(D),D===U&&(U=null))},onMouseOverForTip:(F,x)=>{const D=F.currentTarget;D&&(U&&Ve.hide(U),U=Ve.show(D,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:F=>{U&&(Ve.hide(U),U=null)}}}}),Sc={class:"fox-group-setting"},xc={class:"fox-group-setting__header"},Tc={class:"fox-group-setting__body"},$c={class:"fox-group-setting__body-list","data-role":"container"},Cc=["data-index","draggable"],Nc=["onMouseover","onMouseleave"],Ec={class:"tools-item"};function kc(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("Download"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",Sc,[o.createElementVNode("div",xc,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=E=>e.isCheckAll=E),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",Tc,[o.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=E=>e.checkedValue=E),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",$c,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,E=>(o.openBlock(),o.createElementBlock("div",{key:E.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":E.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:E.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,E.prop,E.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,E.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(E.label),45,Nc)]),_:2},1032,["label"]),o.createElementVNode("div",Ec,[o.createVNode(f,{onClick:g=>e.toTop(E.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toBottom(E.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"])])],40,Cc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const io=Me(wc,[["render",kc]]),Ic=["aria-labelledby"],Oc=o.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vc=[Oc],Fc=o.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vc,14,Ic))}}),Dc=["aria-labelledby"],Ac=o.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Rc=[Ac],so=o.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Rc,14,Dc))}}),Lc=["aria-labelledby"],Mc=o.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Bc=[Mc],_c=o.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Bc,14,Lc))}}),qc=["aria-labelledby"],Pc=o.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=o.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=o.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],Yc=o.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},mr=(e,t)=>t[e.textKey],Et=(e,t)=>t[e.valueKey],Uc=(e,t)=>t[e.visibleKey],pr=(e,t)=>t[e.disabledKey],Xc=(e,t)=>{const l=t[e.doitKey];return se(l)},Zc=(e,t)=>{const l=t[e.numKey];return l==null?null:ye(t[l])},yr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function Jc(e,t,l,n=!1){return{props:{...Gc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=o.computed(()=>{const F={};return F[`${e}`]=!0,F}),u=o.computed(()=>{const F={};return F[`${e}__titles`]=!0,F[`${r.direction}`]=!0,r.align==="left"&&(F.left=!0),r.scroll===!0&&(F.scrollable=!0),r.shape&&(F[`${r.shape}`]=!0),F}),d=o.computed(()=>({})),f=o.computed(()=>{if(!r.gutter)return 0;const F=fe(r.gutter);return F<=0?0:F}),c=o.ref(r.modelValue);o.watch(()=>r.modelValue,F=>{c.value!==F&&(c.value=F,W(!1))});const b=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),E=o.computed(()=>{const F={};return h.value||(F.display="none"),F}),g=o.ref(),h=o.ref(!1),m=()=>{const F=!h.value;$(F)},$=F=>{const x=F;x?(h.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=o.ref(),I=o.ref([]),z=(F,x)=>{I.value[x]=F},B=F=>x=>{z(x,F)},R=(F,x)=>{const D=w.value,V=I.value;if(!D||!V||!V[F])return;const v=V[F];let K=0;r.direction==="vertical"?K=v.offsetTop-(D.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(D.offsetWidth-v.offsetWidth)/2,L(D,K,x?0:.3,r.direction)},L=(F,x,D,V)=>{let v=0;const K=V==="horizontal"?F.scrollLeft:F.scrollTop,P=D===0?1:Math.round(D*1e3/16);function j(){V==="horizontal"?F.scrollLeft+=(x-K)/P:F.scrollTop+=(x-K)/P,++v<P&&yn(j)}j()},_=(F,x)=>{const D=Et(r,F),V={};return V[`${e}__titles-item`]=!0,V.disabled=pr(r,F),V.active=D===c.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),x&&(x.class&&(V[`${x.class}`]=!0),x.disabled===!0&&(V.disabled=x.disabled)),V},C=(F,x)=>{const D={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(D["margin-top"]=`${V}px`,D["margin-bottom"]=`${V}px`):(D["margin-left"]=`${V}px`,D["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(D,x.style),D},k=(F,x)=>`${Et(r,F)??x}`,T=(F,x)=>{const D=Et(r,F),V={};V[`${e}__popup-item`]=!0,V.disabled=pr(r,F),V.active=D===c.value,r.shape&&(V[`${r.shape}`]=!0);const v=yr(r,F,x);return v&&v.disabled===!0&&(V.disabled=v.disabled),V},H=o.computed(()=>(r.data??[]).filter(x=>Uc(r,x)!==!1)),N=(F,x)=>{const D=Et(r,F);if(c.value==D)return;const V=()=>{c.value=D,r.scroll&&R(x,!1),i("update:modelValue",D),i("change",F,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(F,x);Go(v)?v.then(K=>{K!==!1&&V()}).catch(()=>{V()}):v!==!1&&V()}else V()},O=(F,x)=>function(){N(F,x)},A=(F,x)=>{N(F,x),$(!1)},U=(F,x)=>function(){A(F,x)},W=F=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(D=>Et(r,D)===c.value);x!==-1&&R(x,F)};o.watch(()=>r.data,()=>{setTimeout(W,0)}),o.onMounted(()=>{W(!0)});const J=(F,x)=>{if(a.item)return a.item({item:F,index:x});const D=yr(r,F,x),V=[];if(a.text){const j=a.text({item:F,index:x});V.push(j)}else{const j=[];if(D?.doit===!0||Xc(r,F)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=o.h("view",Q);j.push(ne)}const M=D?.num??Zc(r,F);if(M){let Q="";const ne=ye(M);ne>=100?Q="99+":Q=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},G=o.h("view",S,[Q]);j.push(G)}const q={class:`${e}__titles-item-text`};j.push(mr(r,F));const Y=o.h("view",q,j);V.push(Y)}const v={class:`${e}__titles-item-line`},K=o.h("view",v);V.push(K);const P={ref:B(x),class:_(F,D),style:C(F,D),key:k(F,x),onClick:O(F,x)};return o.h("view",P,V)},Z=()=>{const F=a.default?a.default():[];if(F.length===0)for(let D=0;D<H.value.length;D++){const V=H.value[D],v=J(V,D);F.push(v)}const x={ref:w,class:u.value,style:d.value};return o.h("view",x,F)},ee=()=>{let F=null;a.navigation?F=a.navigation():F=o.h(l);const x={class:`${e}__navigation`,onClick:m};return o.h("view",x,[F])},re=()=>{const F=[];for(let D=0;D<H.value.length;D++){const V=H.value[D];let v=null;a.popupItem?v=a.popupItem({item:V,index:D}):v=mr(r,V);const K={class:T(V,D),key:k(V,D),onClick:U(V,D)},P=o.h("view",K,[v]);F.push(P)}const x={class:b.value,style:E.value};return o.h("view",x,F)};return()=>{const F=[],x=Z();if(F.push(x),r.showQuickNavigation){const V=ee();F.push(V);const v=re();F.push(v)}const D={class:s.value};return o.h("view",D,F)}}}}const{create:Qc,componentName:ef,scope:tf}=ie("tabs-bar"),uo=Qc(Jc(ef,tf,Fc,!1)),br=Symbol("TabsStatesKey"),nf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function of(e,t,l=!1){return{props:{...nf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),s={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),o.triggerRef(i)},remove:h=>{const m=i.value.findIndex($=>$.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex($=>$.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};o.provide(br,s);const u=h=>{const m=i.value.findIndex($=>$.name===h);m!==-1&&(i.value[m].loaded=!0,o.triggerRef(i))};o.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const d=o.ref(null),f=o.ref(null),c=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const E=o.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const $=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*s.tabWidth.value}px, 0)`)),b&&(b=!1,h.transition="transform 0s ease;"),h});let g=null;return o.onMounted(()=>{if(!d.value)return;const h=()=>{const m=Wt(d.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),o.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:E.value,ref:f},m=o.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return o.h("view",$,[m])}}}}const{create:lf,componentName:rf,scope:af}=ie("tabs-container"),co=lf(of(rf,af,!1)),sf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function uf(e,t,l){return{props:{...sf},setup(n,{emit:r,slots:a}){const i=o.inject(br);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=o.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=o.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},b=n.emptyIcon??l,E=o.h(b,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=o.h("view",g,[h]),$={class:`${e}__empty`},w=o.h("view",$,[E,m]);d.push(w)}const f={class:`${e}`,style:s.value};return o.h("view",f,d)}}}}const{create:cf,componentName:ff,scope:df}=ie("tabs-pane"),fo=cf(uf(ff,df,so)),hf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function gf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function mf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function ho(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Sr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function xr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function go(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class pf{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function yf(){const e=o.getCurrentInstance();return new pf(e.proxy)}function bf(e,t,l,n){return{props:{...hf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=yf(),d=o.ref([]),f=o.computed(()=>d.value.filter(x=>mf(r,x)!==!1)),c=o.ref(-1),b=()=>{const x=r.modelValue,D=f.value.findIndex(V=>vr(r,V)===x);c.value!==D&&(c.value=D,r.scroll&&re(D,!1))};o.watch([()=>r.modelValue,f],()=>{b()});const E=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const D=f.value[x],v=(go(r,D,x)??{}).status??ho(r,D);return E(x)||v},h=o.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=o.computed(()=>({})),$=(x,D,V,v,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,v&&(P["is-doit"]=!0),x===c.value?P["is-active"]=!0:D==="done"?P["is-done"]=!0:D==="error"?P["is-error"]=!0:D==="half"?P["is-half"]=!0:V?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=o.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),I=(x,D={})=>{const V={...D};return w.value==="start"&&x===f.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},z=(x,D)=>{let V={};if(D<f.value.length-1){const v=D+1;g(D)&&g(v)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},B=x=>f.value.length-1===x,R=(x,D)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&D>c.value||c.value===D)return;const V=c.value,v=D;c.value=D,r.scroll&&re(D,!1);const K=vr(r,x);i("update:modelValue",K);const P={fromIndex:V,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},L=o.ref(!0),_=async(x,D)=>{try{const V=await u.load("stesbar",x,D);Array.isArray(V)&&(d.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([x,D])=>{x&&_(x,D)},{immediate:!0});const C=(x,D,V,v,K)=>{let P=null;if(a.icon)P=a.icon({item:x,index:D,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const q=r.icon??l;P=o.h(q,M)}else{const M=V??`${D+1}`;P=o.h("span",{},[M])}const j={class:"fox-steps-bar__icon",onClick:()=>{K||R(x,D)}};return o.h("view",j,[P])},k=(x,D,V)=>{const v=o.h("i",{class:"fox-steps-bar__line-inner",style:z(x,D)});return o.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const v=r.markIcon??n;x=o.h(v,V)}return o.h("view",{class:"fox-steps-bar__mark"},[x])},H=(x,D,V,v,K)=>{const P=[];if(!B(D)){const q=k(x,D);P.push(q)}const j=C(x,D,V,v,K);P.push(j);const M={class:"fox-steps-bar__head"};return o.h("view",M,P)},N=(x,D,V,v)=>{let K=null;a.main?K=a.main({item:x,index:D,status:V}):K=gf(r,x);const P={class:"fox-steps-bar__main",onClick:()=>{v||R(x,D)}};return o.h("view",P,[K])},O=(x,D,V)=>{let v=null;if(a.sub){v=a.sub({item:x,index:D,status:V});const K={class:"fox-steps-bar__sub"};return o.h("view",K,[v])}return null},A=(x,D)=>{const V=go(r,x,D)??{},v=V.status??ho(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=V.label??xr(r,x),j=[],M=C(x,D,P,v,K);M&&j.push(M);const q=N(x,D,v,K);if(q&&j.push(q),!B(D)){const te=k(x,D);te&&j.push(te)}const Y=o.h("view",{class:"fox-steps-bar__head"},j),Q=V.class,ne=V.style??{};let S=Sr(r,x);V.doit===!0&&(S=!0);const G={ref:ee(D),class:$(D,v,K,S,Q),style:I(D,ne)};return o.h("view",G,[Y])},U=(x,D)=>{const V=go(r,x,D)??{},v=V.status??ho(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=V.label??xr(r,x),j=[],M=r.layout;for(let S of M)if(S==="head"){const G=H(x,D,P,v,K);j.push(G)}else if(S==="main"){const G=N(x,D,v,K);j.push(G)}else if(S==="sub"){const G=O(x,D,v);j.push(G)}else if(S==="mark"){const G=T();j.push(G)}const q=V.class,Y=V.style??{};let Q=Sr(r,x);V.doit===!0&&(Q=!0);const ne={ref:ee(D),class:$(D,v,K,Q,q),style:I(D,Y)};return o.h("view",ne,j)},W=o.ref(),J=o.ref([]),Z=(x,D)=>{J.value[D]=x},ee=x=>D=>{Z(D,x)},re=(x,D)=>{const V=W.value,v=J.value;if(!V||!v||!v[x])return;const K=v[x];let P=0;r.direction==="vertical"?P=K.offsetTop-(V.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(V.offsetWidth-K.offsetWidth)/2,F(V,P,D?0:.3,r.direction)},F=(x,D,V,v)=>{let K=0;const P=v==="horizontal"?x.scrollLeft:x.scrollTop,j=V===0?1:Math.round(V*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(D-P)/j:x.scrollTop+=(D-P)/j,++K<j&&yn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const v=f.value[V],K=A(v,V);x.push(K)}else for(let V=0;V<f.value.length;V++){const v=f.value[V],K=U(v,V);x.push(K)}const D={ref:W,class:h.value,style:m.value};return o.h("view",D,x)}}}}const{componentName:vf,create:wf,scope:Sf}=ie("steps-bar"),mo=wf(bf(vf,Sf,zc,Yc)),xf=Symbol.for("InnerPageScopeKey"),Tf=Symbol.for("PageWrapperKey");function $f(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(l,n){o.provide(xf,!0);const r={};o.provide(Tf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return o.h(y.ElDialog,d,f)}}}}const{componentName:Dh,create:Cf,scope:Ah}=ie("dialog-item"),po=Cf($f());let kt=0;const Tr="fox-overflow-hidden",$r=()=>tt?document.body:{classList:[]},Nf=e=>[()=>{if(e())try{!kt&&$r().classList.add(Tr),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&$r().classList.remove(Tr)}catch{}}],Ef={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:kf,create:If}=ie("overlay"),Of=If({props:{...Ef},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=Nf(()=>e.lockScroll),r=o.computed(()=>({[kf]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,s=>{s?l():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Vf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const nn=Me(Of,[["render",Vf]]),Ff={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Cr=2e3;let Nr=Cr;const Df=(e,t)=>({components:t,props:{...Ff},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{l.zIndex!==Cr&&(Nr=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Nr,l.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},b=h=>{n("click-overlay",h),l.closeOnClickOverlay&&n("update:visible",!1)},E=h=>{n("opend",h)},g=h=>{n("closed",h)};return o.watch(()=>l.visible,h=>{l.visible?u():d()}),o.watch(()=>l.closeable,h=>{r.closed=h}),{...o.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:b,onOpened:E,onClosed:g}}}),{componentName:Af,create:Rf}=ie("popup"),Lf=Rf(Df(Af,{FoxOverLay:nn,Close:_c}));function Mf(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),s=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(s)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const yo=Me(Lf,[["render",Mf]]),{create:Bf}=ie("toast"),_f=Bf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,E=>{E&&i()});const u=o.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=fe(e.iconSize);return o.h(e.icon,{width:E,height:E,color:e.iconColor})},f=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),qf={key:1,class:"fox-toast-title"},Pf=["innerHTML"];function jf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",qf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Pf)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const bo=Me(_f,[["render",jf]]),zf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Hf=(e,t,l)=>({props:{...zf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=De.useFoxI18n(t),s=i(n,["placeholder"]),u=o.reactive({active:!1}),d=o.computed(()=>({background:n.background})),f=o.computed(()=>({background:n.inputBackground})),c=C=>{let T=C.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),r("update:modelValue",T,C),r("change",T,C)},b=o.ref({}),E=C=>{let T=C.target.value;u.active=!0,b.value=n.focusStyle,r("focus",T,C)},g=C=>{setTimeout(()=>{u.active=!1},0);let T=C.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),b.value={},r("blur",T,C)},h=C=>{r("update:modelValue","",C),r("change","",C),r("clear","")},m=o.computed(()=>String(n.modelValue).length>0),$=o.computed(()=>{const C={};return m.value||(C.display="none"),C}),w=()=>{r("search",n.modelValue)},I=C=>{r("keyup-input",C),C.key.toLocaleUpperCase()==="ENTER"&&w()},z=C=>{r("click-input",C)},B=C=>{r("click-left-icon",n.modelValue,C)},R=o.computed(()=>({textAlign:n.inputAlign})),L=o.ref(null);o.onMounted(()=>{n.autofocus&&L.value.focus()});const _=()=>{const C=[];if(a.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},A=o.h("view",O,[a.leftin()]);C.push(A)}const k={ref:L,class:[`${e}__input-inner`],style:R.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:c,onFocus:E,onBlur:g,onkeyup:I},T=o.h("input",k);C.push(T);const H=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},A=a?.clear?.()??n.clearIcon??l,U=o.h("view",O,[o.h(A)]);H.push(U)}if(a.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},A=o.h("view",O,[a.rightin()]);H.push(A)}if(H.length>0){const O={class:`${e}__input-inner-right`},A=o.h("view",O,H);C.push(A)}const N={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...b.value}};return o.h("view",N,C)};return()=>{const C=[];if(n.label){const H={class:`${e}__search-label`},N=o.h("span",H,[n.label]);C.push(N)}if(a.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},N=o.h("view",H,[a.leftout()]);C.push(N)}const k=_();if(C.push(k),a.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},N=o.h("view",H,[a.rightout()]);C.push(N)}const T={class:`${e}`,style:d.value};return o.h("view",T,C)}}}),{componentName:Kf,create:Wf,scope:Yf}=ie("searchbar"),vo=Wf(Hf(Kf,Yf,Te.CircleClose)),Gf=/scroll|auto|overlay/i,Er=window;function Uf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Xf(e,t=Er){let l=e;for(;l&&l!==t&&Uf(l);){const{overflowY:n}=window.getComputedStyle(l);if(Gf.test(n))return l;l=l.parentNode}return t}function kr(e,t=Er){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=Xf(e.value,t))}),l}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Zf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Jf(e,t,l){return{props:{...Zf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=De.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=o.ref(),d=kr(u),f=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=o.computed(()=>({[e]:!0})),b=w=>w?w.offsetTop+b(w.offsetParent):0,E=()=>{let w=0,I=0,z="down";if(d.value==window){const B=Ir();u.value&&(w=b(u.value)+u.value.offsetHeight-B-window.innerHeight),I=B}else{const{scrollHeight:B,clientHeight:R,scrollTop:L}=d.value;w=B-R-L,I=L}return f.beforeScrollTop>I?z="up":z="down",f.beforeScrollTop=I,r("scroll-change",I),w<=n.threshold&&z=="down"},g=()=>{Bo(()=>{if(!E()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},m=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};o.onMounted(()=>{h(),n.immediate&&g()}),o.onUnmounted(()=>{m()});const $=o.ref(!1);return o.onActivated(()=>{$.value&&($.value=!1,h())}),o.onDeactivated(()=>{$.value=!0,m()}),o.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},I=o.h("view",w,[a?.default?.()]),z=[];if(f.isInfiniting){let _=a?.loading?.()??null;if(!_){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=o.h(l,O)}const H={class:"fox-infinite__bottom-box__text"},N=o.h("view",H,[s.loadText.value]);_=[T,N]}const C={class:"fox-infinite__bottom-box"},k=o.h("view",C,_);z.push(k)}else if(!n.hasMore){let _=a?.finished?.()??null;if(!_){const C={class:"fox-infinite__bottom-tips"};_=o.h("view",C,[s.loadMoreText.value]),z.push(_)}}const B={class:"fox-infinite__bottom"},R=o.h("view",B,z),L={class:c.value,ref:u};return o.h("view",L,[I,R])}}}}const{componentName:Qf,create:ed,scope:td}=ie("infinite-loading"),wo=ed(Jf(Qf,td,so)),Or=10;function Vr(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function So(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function xo(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Vr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function nd(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),s=o.ref(0),u=o.ref(0),d=o.ref(0),f=o.ref(""),c=()=>f.value==="vertical",b=()=>f.value==="horizontal",E=()=>{i.value=0,s.value=0,u.value=0,d.value=0,f.value="",l.value=0};return{move:m=>{if(m.touches){const I=m.touches[0];i.value=I.clientX-e.value,s.value=I.clientY-t.value,r.value=I.clientX,a.value=I.clientY}else{const w=m;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-l.value,f.value||(f.value=Vr(u.value,d.value))},start:m=>{if(E(),m.touches){const I=m.touches[0];e.value=I.clientX,t.value=I.clientY}else{const w=m;e.value=w.clientX,t.value=w.clientY}l.value=Date.now()},reset:E,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:b}}const od={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},ld=(e,t,l)=>({props:{...od},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=De.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=xo(),d=o.ref(),f=kr(d),c=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=o.computed(()=>({[e]:!0})),E=o.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=o.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),m=L=>{const _=+(n.pullDistance||n.headHeight);let C=L;return L>_&&(L<_*2?C=(L+_)/2:C=_+L/4),Math.round(C)},$=(L,_)=>{const C=+(n.pullDistance||n.headHeight);c.distance=L,_?c.status="loading":L===0?c.status="normal":L<C?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",I=()=>f.value==window?Ir()==0:f.value&&f.value.scrollTop==0,z=L=>{w()&&(I()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(m(u.state.deltaY))))},R=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return o.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let _=null;if(c.status==="loading"){if(_=a?.loading?.()??null,!_){const U={class:["fox-pull-refresh-container-topbox-icon"]};_=o.h(l,U)}}else c.status==="pulling"?_=a?.pulling?.()??null:c.status==="loosing"&&(_=a?.loosing?.()??null);_&&L.push(_);const C={class:["fox-pull-refresh-container-topbox-text"]},k=o.h("dive",C,[E.value]);L.push(k);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},H=o.h("div",T,L),N={class:"fox-pull-refresh-container",style:g.value},O=o.h("div",N,[H,a?.default?.()]),A={ref:d,class:b.value};return So()?Object.assign(A,{onTouchstart:z,onTouchmove:B,onTouchend:R}):Object.assign(A,{onMousedown:z,onMousemove:B,onMouseup:R}),o.h("div",A,[O])}}}),{componentName:rd,create:ad,scope:id}=ie("pull-refresh"),To=ad(ld(rd,id,so));function sd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),u=o.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=o.computed(()=>l.color?{color:l.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=o.h(l.icon??"div",h)}const c={class:u.value,style:d.value},b=n.default?n.default():[],E=o.h("div",c,b),g={class:a.value};return l.textPosition==="right"?o.h("div",g,[f,E]):o.h("div",g,[E,f])}}}}const{componentName:ud,create:cd,scope:Rh}=ie("indicator"),$o=cd(sd(ud));function fd(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const dd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function hd(e,t,l,n=!1){return{props:{...dd},emits:["click"],setup(r,a){const i=o.ref(null),s=o.computed(()=>{const I={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(I[`${e}--${r.type??"default"}`]=!0),r.size&&(I[`${e}--${r.size}`]=!0),I}),u=o.computed(()=>{const I={},z=r.textColor??r.color;return z&&(I.color=z),I}),d=(I,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const R=r.highlightFilter;if(I.indexOf(R)!==-1){const _=I.replace(new RegExp(R,"g"),`<span>${R}</span>`);z.innerHTML=_,z.class["is-highlight"]=!0,B=o.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const R=r.highlightFilter(I);R&&(z.innerHTML=R,z.class["is-highlight"]=!0,B=o.h(r.tag,z))}return B},f=I=>{a.emit("click",I)};let c="";const b=()=>{const I=i.value;if(!I)return;const z=I.clientWidth;fd(I,B=>{const R=I.innerHTML??"";ge(R)||B<z||(c?l?.show(I,R,{type:"text",id:c,showArrow:r.showArrow},!0):c=l?.show(I,R,{type:"text",showArrow:r.showArrow},!0)??"")})},E=()=>{c&&l?.hide(c)};let g=null;const h=I=>{g||(g=setTimeout(()=>{b(),g=null},r.showAfter??0))},m=I=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{E()},r.hideAfter??0)},$=()=>{const I=i.value;I&&(I.addEventListener("mouseover",h),I.addEventListener("mouseleave",m))},w=()=>{const I=i.value;I&&(I.removeEventListener("mouseover",h),I.removeEventListener("mouseleave",m))};return o.onMounted(()=>{!se(r.showOverflowTooltip)||!l||$()}),o.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!l||w()}),()=>{const I={onClick:f,class:s.value,style:u.value,ref:i};let z=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const C=_[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const k=ye(r.digits),T=ye(r.decimalLength),H=se(r.autoPadding);let N=`${_[0].children}`,O=N.split("").reverse().join("");O=Dt(O,T,H,k,r.separator),N=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=d(N,I)),z||(I.innerHTML=N,z=o.h(r.tag,I))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const C=_[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const k=`${_[0].children}`;z=d(k,I),z||(I.innerHTML=k,z=o.h(r.tag,I))}}}z||(z=o.h(r.tag,I,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let R=null;if(r.icon){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const C={},k=r.color;k&&(C.color=k);const T={class:_,style:C};R=o.h("view",T,o.h(r.icon))}else if(a.slots.mark){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const C={},k=r.color;k&&(C.color=k);const T={class:_,style:C};R=o.h("view",T,{default:a.slots.mark})}else{const _={[`${e}__mark`]:!0};r.type&&(_[`${e}__mark--${r.type??"default"}`]=!0);const C={},k=r.color;k&&(C["background-color"]=k);const T={class:_,style:C};R=o.h("view",T)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",L,[R,z])}}}}const{componentName:gd,create:md,scope:pd}=ie("text"),Co=md(hd(gd,pd,Ve,!1)),yd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Te.ArrowUp}};function bd(e,t,l){return{props:{...yd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),i=de(n,"modelValue"),s=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=o.computed(()=>({[`${e}__text`]:!0})),d=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const h={class:u.value},m=o.h("span",h,[s.value]);c.push(m)}const b={class:d.value},E=l(n.icon,b);return E&&c.push(E),o.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:vd,create:wd,scope:Sd}=ie("more-button"),No=wd(bd(vd,Sd,(e,t)=>(e=e??Te.ArrowUp,o.h(y.ElIcon,t,{default:()=>[o.h(e)]}))));function xd(e){return e===window}const Fr=e=>{const t=o.unref(e);if(xd(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Td,create:$d,scope:Mh}=ie("tour"),Cd=$d({components:{Close:Te.Close,ElPopover:y.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const l=Td,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:$,height:w,left:I,top:z}=r.value,B=e.steps[n.active].offset??g,R=[I+$/2,z+w/2],L=Number(h||$),_=Number(m||w);return{width:`${L+ +B.left+B.right}px`,height:`${_+B.top+B.bottom}px`,top:`${R[1]-_/2-+B.top}px`,left:`${R[0]-L/2-+B.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Fr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},E=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return o.onMounted(()=>{E(e.modelValue,e.current)}),o.watch(()=>e.modelValue,g=>{E(g)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),Nd={key:0,class:"fox-tour__content"},Ed={key:0,class:"fox-tour__content-top"},kd={class:"fox-tour__content-inner"},Id={class:"fox-tour__content-bottom"},Od={class:"fox-tour__content-bottom-init"},Vd={class:"fox-tour__content-bottom-operate"},Fd={key:1,class:"fox-tour__content fox-tour__content-tile"},Dd={class:"fox-tour__content-inner"};function Ad(e,t,l,n,r,a){const i=o.resolveComponent("Close"),s=o.resolveComponent("fox-button"),u=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(o.openBlock(),o.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Nd,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Ed,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",kd,o.toDisplayString(d.content),1),o.createElementVNode("div",Id,[o.createElementVNode("div",Od,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Vd,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Fd,[o.createElementVNode("div",Dd,o.toDisplayString(d.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const Eo=Me(Cd,[["render",Ad]]),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class Rd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=So()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=xo(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Dr(e,t){return new Rd(e,t)}var Ar;const ko=typeof window<"u";ko&&((Ar=window?.navigator)!=null&&Ar.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Rr=e=>{const t=e;t.key==="Escape"&&ht.forEach(l=>l(t))},Ld=e=>{o.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Rr),ko&&ht.push(e)}),o.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&ko&&document.removeEventListener("keydown",Rr)})},Io="fox-focus-trap.focus-after-trapped",Oo="fox-focus-trap.focus-after-released",Md="fox-focus-trap.focusout-prevented",Lr={cancelable:!0,bubbles:!1},Bd={cancelable:!0,bubbles:!1},Mr="foxFocusAfterTrapped",Br="foxFocusAfterReleased",_d=Symbol("foxFocusTrap"),Vo=o.ref(),on=o.ref(0),Fo=o.ref(0);let ln=0;const _r=e=>{const t=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)t.push(l.currentNode);return t},qd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},qr=(e,t)=>{for(const l of e)if(!qd(l,t))return l},Pd=e=>{const t=_r(e),l=qr(t,e),n=qr(t.reverse(),e);return[l,n]},jd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&jd(e)&&t&&e.select()}};function Pr(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const zd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Pr(e,n),e.unshift(n)},remove:n=>{e=Pr(e,n),e[0]?.resume?.()}}},Hd=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==l)return},jr=zd(),Kd=()=>on.value>Fo.value,rn=()=>{Vo.value="pointer",on.value=window.performance.now()},zr=()=>{Vo.value="keyboard",on.value=window.performance.now()},Wd=()=>(o.onMounted(()=>{ln===0&&(document.addEventListener("mousedown",rn),document.addEventListener("touchstart",rn),document.addEventListener("keydown",zr)),ln++}),o.onBeforeUnmount(()=>{ln--,ln<=0&&(document.removeEventListener("mousedown",rn),document.removeEventListener("touchstart",rn),document.removeEventListener("keydown",zr))}),{focusReason:Vo,lastUserFocusTimestamp:on,lastAutomatedFocusTimestamp:Fo}),an=e=>new CustomEvent(Md,{...Bd,detail:e}),{componentName:Bh,create:Yd,scope:_h}=ie("focus-trap"),Gd=Yd({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Mr,Br,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Wd();Ld(h=>{se(e.trapped)&&!s.paused&&l("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:m,altKey:$,ctrlKey:w,metaKey:I,currentTarget:z,shiftKey:B}=h,{loop:R}=e,L=m==="Tab"&&!$&&!w&&!I,_=document.activeElement;if(L&&_){const C=z,[k,T]=Pd(C);if(k&&T){if(!B&&_===T){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),R&&Je(k,!0))}else if(B&&[k,C].includes(_)){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),R&&Je(T,!0))}}else if(_===C){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||h.preventDefault()}}};o.provide(_d,{focusTrapRef:n,onKeydown:u}),o.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),o.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",b)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",c),m.removeEventListener("focusout",b))});const d=h=>{l(Mr,h)},f=h=>l(Br,h),c=h=>{const m=o.unref(n);if(!m)return;const $=h.target,w=h.relatedTarget,I=$&&m.contains($);se(e.trapped)||w&&m.contains(w)||(r=w),I&&l("focusin",h),!s.paused&&se(e.trapped)&&(I?a=$:Je(a,!0))},b=h=>{const m=o.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!xn($)&&!m.contains($)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=an({focusReason:i.value});l("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&m.contains($)||l("focusout",h)}};async function E(){await o.nextTick();const h=o.unref(n);if(h){jr.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const w=new Event(Io,Lr);h.addEventListener(Io,d),h.dispatchEvent(w),w.defaultPrevented||o.nextTick(()=>{let I=e.focusStartEl;Yo(I)||(Je(I),document.activeElement!==I&&(I="first")),I==="first"&&Hd(_r(h),!0),(document.activeElement===m||I==="container")&&Je(h)})}}}function g(){const h=o.unref(n);if(h){h.removeEventListener(Io,d);const m=new CustomEvent(Oo,{...Lr,detail:{focusReason:i.value}});h.addEventListener(Oo,f),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Kd())&&Je(r??document.body,!0),h.removeEventListener(Oo,d),jr.remove(s)}}return o.onMounted(()=>{se(e.trapped)&&E(),o.watch(()=>e.trapped,h=>{se(h)?E():g()})}),o.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Ud,create:Xd,scope:Ph}=ie("floating-window"),Zd=Symbol.for("InnerPageScopeKey"),Jd=Symbol.for("PageWrapperKey"),Qd={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},eh=Xd({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Gd},props:{...Qd},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Ud,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,S=>{n.value=S});const a=o.computed(()=>n.value===!1?!1:!_.value),i=o.ref(e.left),s=o.ref(e.top),u=o.ref(e.right),d=o.ref(e.bottom),f=o.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=o.computed(()=>{const S={};return lt(i.value)?S.left="auto":S.left=Fe(i.value),lt(s.value)?S.top="auto":S.top=Fe(s.value),lt(u.value)?S.right="auto":S.right=Fe(u.value),lt(d.value)?S.bottom="auto":S.bottom=Fe(d.value),lt(e.zIndex)||(S["z-index"]=Fe(e.zIndex)),lt(R.value)||(S.height=R.value),lt(L.value)||(S.width=L.value),S}),b=o.computed(()=>e.closeIcon??Te.Close),E=o.computed(()=>e.collapseIcon??Te.ArrowUp),g=o.computed(()=>e.collapseText??""),h=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),m=o.computed(()=>e.expandText??e.title??"展开"),$=o.computed(()=>({[`${l}__collapse-text`]:!0})),w=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),I=o.ref(),z=o.ref(null),B=o.ref(null),R=o.computed(()=>Fe(e.height)||""),L=o.computed(()=>Fe(e.width)||""),_=o.ref(se(e.collapse)),C=(S,G=!0)=>{_.value!==S&&(_.value=S,S?x():D(),t("update:collapse",S),S&&typeof H.onHide=="function"?H.onHide():!S&&typeof H.onShow=="function"&&H.onShow())};o.watch(()=>e.collapse,S=>{C(S)});const k=()=>{T()},T=S=>{S=S??!_.value,C(S)};o.provide(Zd,!0);const H={setCollapse:C,setFixedNavVisible:S=>{ee.value=S}};o.provide(Jd,H);const N=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},O=o.ref(null),A=o.computed(()=>!e.fixedNavTeleport),U=o.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),W=o.ref(""),J=o.computed(()=>{const S={};return W.value?S.top=W.value:e.collapseTop&&(S.top=e.collapseTop),S}),Z=o.ref(_.value),ee=o.computed({set:S=>{Z.value=S},get:()=>n.value===!1?!1:Z.value});let re=null;const F=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),ee.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},D=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,d.value=null},v={x:0,y:0},j=Dr(S=>{if(!I.value)return;const G=I.value;if(V(),e.origin==="left-top")i.value=G.offsetLeft,s.value=G.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,d.value=te-(G.offsetTop+G.offsetHeight),v.x=i.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(G.offsetLeft+G.offsetWidth),d.value=le-(G.offsetTop+G.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(G.offsetLeft+G.offsetWidth),s.value=G.offsetTop,v.x=u.value,v.y=s.value}},S=>{if(!I.value)return;const G=I.value;V(),e.origin==="left-top"?(i.value=v.x+S.x,s.value=v.y+S.y,G.style.left=Fe(i.value),G.style.top=Fe(s.value)):e.origin==="left-bottom"?(i.value=v.x+S.x,d.value=v.y-S.y,G.style.left=Fe(i.value),G.style.bottom=Fe(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,G.style.right=Fe(u.value),G.style.bottom=Fe(d.value)):(u.value=v.x-S.x,s.value=v.y+S.y,G.style.right=Fe(u.value),G.style.top=Fe(s.value))}),M={x:0,y:0},Q=Dr(S=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},S=>{if(!O.value)return;const G=M.y+S.y;W.value=`${G}px`}),ne=()=>{if(I.value){const S=I.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=S}};return o.onMounted(()=>{if(e.draggable&&I.value){const S=[];z.value&&S.push(z.value),e.footerDraggable&&(ne(),B.value&&S.push(B.value)),j.open(S)}e.collapse===!0&&C(e.collapse,!1),O.value&&Q.open(O.value)}),o.onBeforeUnmount(()=>{e.draggable&&z.value&&j.close(),O.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:b,onClose:N,dialogRef:I,headerRef:z,onClickToggle:k,collapseIcon:E,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:F,teleportDisabled:r,fixedNavTeleportDisabled:A}}}),th={ref:"headerRef",class:"fox-floating-window__header"},nh={class:"fox-floating-window__title"},oh={class:"fox-floating-window__tools"},lh={class:"fox-floating-window__body"},rh={class:"fox-floating-window__fixednav__text"};function ah(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),s=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",th,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",nh,o.toDisplayString(e.title),1),o.createElementVNode("div",oh,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",lh,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",rh,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Do=Me(eh,[["render",ah]]);function ih(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return gl(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:jh,create:sh,scope:zh}=ie("domain-provider"),Ao=sh(ih()),uh={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 ch(e,t){return{inheritAttrs:!1,props:uh,setup(l,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,E)=>{if(f===null){a.set(b,{visible:null,callback:E});return}r.has(b)&&f.unobserve(b),r.set(b,{visible:null,callback:E}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}r.has(b)&&(r.delete(b),f.unobserve(b))};let u=l.initialVisibleObserverSize;Xa({acquire:()=>{const b=u>0;return u--,b},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const c=(b,E,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let $=!1;m.intersectionRatio>0&&($=!0);const w=r.get(m.target);if(w)try{if(l.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(I){console.error(I)}}},{root:b,rootMargin:E,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([b,E])=>{if(E||!b||f)return;let g=null;typeof b=="string"?g=document.querySelector(b):g=b,g&&c(g,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hh,create:fh,scope:Kh}=ie("rolling-provider"),Ro=fh(ch()),dh=[In,Vn,Fn,Dn,Ln,we,_n,qn,Tt,Pn,jn,zn,Hn,Kn,Wn,Yn,Un,Xn,Zn,Jn,tn,to,no,oo,lo,ro,ao,io,uo,co,fo,mo,po,nn,yo,bo,vo,wo,To,Ct,Qt,$o,Co,No,Eo,Do,Ao,Ro],hh=new Ea(dh,[Oa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),p.AutocompleteItem=Xn,p.Broadcast=Tn,p.BroadcastKey=be,p.CascaderItem=Un,p.CheckboxItem=oo,p.Content=Dn,p.DataItemsKey=at,p.DateItem=zn,p.DateUtils=Re,p.DialogItem=po,p.Domain=Pt,p.DomainKey=Le,p.DomainProvider=Ao,p.FloatingWindow=Do,p.FooterBar=Fn,p.FoxAutocompleteItem=Xn,p.FoxCascaderItem=Un,p.FoxCheckboxItem=oo,p.FoxContent=Dn,p.FoxDateItem=zn,p.FoxDialogItem=po,p.FoxDomainProvider=Ao,p.FoxFloatingWindow=Do,p.FoxFooterBar=Fn,p.FoxGroup=Ln,p.FoxGroupSetting=io,p.FoxHeaderBar=Vn,p.FoxHintText=Tt,p.FoxIndicator=$o,p.FoxInfiniteLoading=wo,p.FoxInputItem=Pn,p.FoxInputNumberItem=Yn,p.FoxItem=we,p.FoxMapping=Ct,p.FoxMoneyItem=Wn,p.FoxMoreButton=No,p.FoxOverLay=nn,p.FoxPage=In,p.FoxPopup=yo,p.FoxPrice=Qt,p.FoxPullRefresh=To,p.FoxRadioItem=no,p.FoxRateItem=lo,p.FoxRollingProvider=Ro,p.FoxRowItem=qn,p.FoxSearchBar=vo,p.FoxSelectItem=jn,p.FoxSlotItem=_n,p.FoxStepsBar=mo,p.FoxSwitchItem=ro,p.FoxTableItem=to,p.FoxTableMappingColumn=Zn,p.FoxTableRadioColumn=Jn,p.FoxTableSetting=tn,p.FoxTabsBar=uo,p.FoxTabsContainer=co,p.FoxTabsPane=fo,p.FoxText=Co,p.FoxTimeItem=Hn,p.FoxTimeSelectItem=Kn,p.FoxToast=bo,p.FoxTour=Eo,p.FoxTreeSelectItem=ao,p.Group=Ln,p.GroupSetting=io,p.HeaderBar=Vn,p.HintText=Tt,p.Indicator=$o,p.InfiniteLoading=wo,p.InputItem=Pn,p.InputNumberItem=Yn,p.Item=we,p.Mapping=Ct,p.MoneyItem=Wn,p.MoreButton=No,p.OverLay=nn,p.Page=In,p.Popup=yo,p.Price=Qt,p.PriorityPolicy=Ae,p.PullRefresh=To,p.RadioItem=no,p.RateItem=lo,p.RollingProvider=Ro,p.RowItem=qn,p.SearchBar=vo,p.SelectItem=jn,p.SlotItem=_n,p.StepsBar=mo,p.SwitchItem=ro,p.TableItem=to,p.TableMappingColumn=Zn,p.TableRadioColumn=Jn,p.TableSetting=tn,p.TabsBar=uo,p.TabsContainer=co,p.TabsPane=fo,p.Text=Co,p.TimeItem=Hn,p.TimeSelectItem=Kn,p.Toast=bo,p.Tour=Eo,p.TreeSelectItem=ao,p.UniqueID=Il,p.ValidateSchema=fl,p.ValidateSchemaKey=Ke,p.cancelRaf=Wr,p.clearNonNumber=la,p.clone=wn,p.compareTo=pn,p.createBroadcast=Mt,p.createValidateSchema=_t,p.debounce=wt,p.debounceRef=ya,p.decimalLength=ol,p.default=hh,p.defineBroadcast=sa,p.defineConfigDomain=gl,p.defineDataItem=pl,p.defineDomain=Cn,p.defineItem=Se,p.definePageState=yl,p.deleteGlobalValidator=da,p.disabledProperty=Oe,p.divide=mn,p.excludeProps=Ce,p.extend=et,p.floatData=ia,p.getGlobalValidateCheckEvents=sl,p.getGlobalValidateResetEvents=cl,p.getPageContentAreaHeight=zt,p.getPageContentAreaWidth=Ht,p.getPageFooterAreaHeight=xt,p.getPageHeaderAreaHeight=St,p.getRootDomain=it,p.hasSymbol=Xo,p.includeProps=rl,p.indexOf=ra,p.installRules=ml,p.integerLength=nl,p.isArray=Gr,p.isArrayLike=Jo,p.isBrowser=tt,p.isDate=Zr,p.isESModule=Qr,p.isEmptyString=ge,p.isEqual=He,p.isFunction=bn,p.isHidden=Lt,p.isInnerPage=wa,p.isMap=Ur,p.isNil=xn,p.isNumberString=tl,p.isObject=ze,p.isPlainObject=vn,p.isPromise=Go,p.isRegExp=el,p.isSet=Xr,p.isString=Yo,p.isSubPage=Sa,p.isSymbol=Jr,p.isTouch=So,p.isWindow=Zo,p.lastIndexOf=aa,p.makeArray=oa,p.merge=Qo,p.multiply=Ho,p.negate=Ko,p.nextTick=ta,p.numberFormat=Dt,p.objectToString=Uo,p.once=ba,p.property=ke,p.raf=yn,p.readonlyProperty=Ie,p.setGlobalValidateCheckEvents=ha,p.setGlobalValidateHandler=ca,p.setGlobalValidateMessages=ma,p.setGlobalValidateResetEvents=ga,p.setGlobalValidator=fa,p.throttle=hl,p.toBoolean=se,p.toNumber=ye,p.toPadding=qe,p.toPx=fe,p.toPxDesc=Ne,p.toTypeString=At,p.toValue=de,p.tryTimes=qt,p.typeOf=Rt,p.unNumberFormat=Wo,p.updatePageState=Nn,p.useBroadcast=bt,p.useDomain=We,p.useExpose=xe,p.useInnerSize=On,p.usePageState=jt,p.usePosition=Nl,p.useRawTouch=xo,p.useRect=Fr,p.useSize=Wt,p.useTouch=nd,p.valueLength=yt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});