@fox-js/foxui-pc 4.0.1-129 → 4.0.1-130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Aug 20 2026 16:29:36 GMT+0800 (China Standard Time)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ut=require("@fox-js/validator"),y=require("element-plus"),Ee=require("@element-plus/icons-vue"),Be=require("@fox-js/i18n"),Bt=window,na=typeof window<"u";function la(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function oa(e){na?cancelAnimationFrame(e):clearTimeout(e)}const Ho=la();function Ht(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=Wn($e(e),$e(t)),o==1&&(n==1?e=xn(e):t=xn(t));let r=Ko(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(xn(r)):$e(r)}function xn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Ko(t,a)}function $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 Wn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ko(e,t){[e,t]=Wn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var be=function(e){return 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}({});function It(e,t=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=It(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Yl(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Yl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Yl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===be.DOWN||!o&&n===be.FLOOR||o&&n===be.CEILING)return!1;if(n===be.UP||o&&n===be.FLOOR||!o&&n===be.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 be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function On(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],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 v=0;for(let P=t.length-1;P>=c&&P>=0;P--)u[P]>-1&&u[P]<e.length&&(v+=parseInt(e[u[P]--])*parseInt(t[P]));v+=s,s=Math.floor(v/10),f=v%10+f,c--}return f=Ct(ra(f,a)),o==1&&(f="-"+f),f}function ra(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Dn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=$e(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=$e(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==c&&(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 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=Ht(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?"-":"")+$e(It(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),Ht(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ul(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Gl(e),Gl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,On(t,It(Dn(e,t),0,be.FLOOR)));return o+n}function Gl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Xl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Wn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}var Zt=class ce{value;static RoundingModes=be;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+$e(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=be.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return It(t,o,n)}round(t=0,o=be.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(It(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Ht(t,o)}add(t){return new ce(Ht(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),Fn(t,o)}subtract(t){return new ce(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),On(t,o)}multiply(t){return new ce(On(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),Dn(t,o,n)}divide(t,o){return new ce(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Ul(t,o)}modulus(t){return new ce(Ul(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Xl(t,o)}compareTo(t){return Xl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),Rn(t)}negate(){return new ce(Rn(this.value))}};function Wo(e,t){return Zt.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return Zt.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,Zt.compareTo(e,t)}function Yo(e){return Zt.negate(e)}function Qt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",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="",v=s.split("").reverse();for(let P=0;P<v.length;P++)d+=v[P]+((P+1)%n==0&&P+1!=v.length?r:"");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 Uo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Un=Ho,aa=Array.isArray,ia=e=>Jt(e)==="[object Map]",sa=e=>Jt(e)==="[object Set]",ua=e=>e instanceof Date,Mn=e=>typeof e=="function",Go=e=>typeof e=="string",ca=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",Xo=e=>Qe(e)&&Mn(e.then)&&Mn(e.catch),Zo=Object.prototype.toString,Jt=e=>Zo.call(e),Ln=e=>Jt(e)==="[object Object]",Qo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function fa(e){return e.__esModule||Qo&&e[Symbol.toStringTag]==="Module"}const da=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function dt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},t[i]=dt(r,c,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)dt(!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)&&!Ln(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Ln(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Sn=da?Promise.resolve():null;function ha(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 xe(e){return typeof e=="number"?e:Number(e)}const ma={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Jo(e){return e&&typeof e=="object"&&"setInterval"in e}function en(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function er(e){let t=!!e&&"length"in e&&e.length,o=Kt(e);return o==="function"||Jo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function tr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ga(e,t=[]){let o=t;return e!=null&&(er(Object(e))?tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Kt(e),n=Kt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],c=t[s];if(!Xe(u,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const Ze=typeof window<"u";function Gn(e){return e==null}function _n(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function lr(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function or(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Zl(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function pa(e,t=!0,o=!0){t?e=Zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function ya(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Mt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rr(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ba=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ve=Symbol.for("BroadcastKey");class Xn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;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(){const t=[...this.children];this.children=[],t.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||_n(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,s=t.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};t.resolve=u}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):_n(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}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){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};t.resolve=s}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function tn(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function xa(e,t,o){const n=o;if(n[ve])return n[ve];const r=l.inject(ve,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const ct=e=>e.default??e;class wa{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?kt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Pt=new wa;function Sa(e){Pt=e}function Ta(e){Pt?Object.assign(Pt,e):Pt=e}function Ca(e,t){ct(ut).setValidator(e,t)}function $a(e){ct(ut).deleteValidator(e)}let ar=["blur","clear"];function Na(e){ar=e}function ir(){return ar}let sr=["focus","change","setValue"];function Ea(e){sr=e}function ur(){return sr}function ka(e){ct(ut).messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const je=Symbol("ValidateSchemaKey");class cr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Pt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ct(ut).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?ct(ut).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ct(ut).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ct(ut),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function nn(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new cr(t,o,e)}const Wt=Symbol.for("EventEmitterKey");class fr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Vt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function dr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Pa(e,t){const o=Vt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function ln(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){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 Ae=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class on{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Va=new on;function pt(){return Va}function at(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Tn=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=pt());const s=e||t.prop||t.name;let u=new on(s);u.parent=i;const c=P=>{a[Tn]||v(P),u?.set("modelValue",P)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[Tn]??null,v=P=>{const g={};dt(!0,g,l.toRaw(P)),a[Tn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,P=>{u?.merge(P,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const P=l.inject(ve,null),g=tn(a,P,s,n);u.broadcast=g,a[ve]=g,l.provide(ve,g),a.broadcast=(S,b,...$)=>Reflect.apply(g.emit,g,[S,b,...$]);const h=l.inject(je,null),m=nn(a,h,{componentName:""});u.validateSchema=m,a[je]=m,l.provide(je,m),a[mt]=new Map,a.validate=(S=!0)=>{const b=[];let $=null;const j={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const M=S;$={name:L=>L?M.indexOf(L)!==-1:!1}}else if(S!=null&&typeof S=="object"){const M=S;if(Object.assign(j,M),Array.isArray(M.include)&&M.include.length>0){const L=M.include;$={name:O=>O?L.indexOf(O)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const L=M.exclude;$={name:O=>O?L.indexOf(O)===-1:!1}}else $={name:"*"}}if($){const M=g?.emitToChildren($,"validate",j);M&&Reflect.apply([].push,b,M)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(M=>{let L=[];return M.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(L=[...L,...O.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(S).forEach(M=>{let L=String(M);const O={componentName:"",fieldName:L,pureDataValidate:!0};if(u){const A=mr(u,L,O,g,m);a[mt].set(L,A);const N=S[L];N&&A.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),M={name:L=>j.includes(L),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(M,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const $=S;b={name:j=>j?$.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const $=S;if(Array.isArray($.include)&&$.include.length>0){const j=$.include;b={name:M=>M?j.indexOf(M)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const j=$.exclude;b={name:M=>M?j.indexOf(M)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=f();if(!b)return;const $={};if(dt(!0,$,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=$[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(M=>{b[M]=$[M]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys($).forEach(M=>{j.includes(M)||(b[M]=$[M])})}else Object.assign(b,$);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?c(S):g?.emitToChildren({name:b,messagingPolicy:"Once"},"setModelValue",S)},a.getModelValue=()=>f(),setTimeout(function(){g?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[je]=void 0,l.provide(je,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function hr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=pt());const i=e||t.prop||t.name;let s=new on(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ve,null);let s=tn(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(je,null);e.fieldName=e.fieldName??a;let c=nn(r,u,e);r[je]=c,l.provide(je,c),r.validate=(g=null)=>{if(!c)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,$=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,M=b.ignoreHidden??!0;$===!0&&e.disabled===!0||j===!0&&e.readonly===!0||M===!0&&en(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=c?.validate();h.push(b)}if(m){let b=null;const $={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:M=>M?j.indexOf(M)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign($,j),Array.isArray(j.include)&&j.include.length>0){const M=j.include;b={name:L=>L?M.indexOf(L)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const M=j.exclude;b={name:L=>L?M.indexOf(L)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",$);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&($=[...$,...j.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>c?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&c?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let f=new fr(r);r[Wt]=f;const d=Vt((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(g=>{f&&f.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ur()).forEach(g=>{f&&f.on(g,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,c?.destroy(),r[je]=void 0,l.provide(je,null),c=null,f?.destroy(),r[Wt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:c,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function mr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};let u=nn({},r,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,P=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)P=!0,v=!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),P=!0,v=g.deep??!1}else typeof f=="boolean"&&(v=f),P=!0;if(P&&u){const g=u.validate();d.push(g)}if(v){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:S=>S?m.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&c){const m=c.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};let c=tn(null,n,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function gr(){let t=l.getCurrentInstance()?.proxy,o=new fr(t);return t[Wt]=o,l.onUnmounted(()=>{o?.destroy(),t[Wt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function qn(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function pr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;qn(n,a,t,!0,i,s,u,c);const f=l.reactive(n),d=e.getForParent(rt);d&&(n.height=Yt(e,d),n.width=Ut(e,d),l.watch([()=>Yt(e,d),()=>Ut(e,d)],([P,g])=>{f.height=P,f.width=g}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([P,g,h=-1,m=-1,S=0,b=0])=>{qn(f,g,t,v,h,m,S,b)}),e.set(rt,f),f}function rn(e){return e.get(rt)}function Ot(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Dt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ut(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Oa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(rt)}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Cn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=at();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Cn(u,n))return u}const i=e.value;return Cn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Cn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return se(o)})}function Re(e){return De(e,"disabled",0,function(o){return se(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const vr=new Map,Gt=new Map;let jn=null;function Fa(e){jn=e}function yr(e,t,o){if(o){let n=Gt.get(o);n||(n=new Map,Gt.set(o,n)),n.set(e,t)}else vr.set(e,t)}function ze(e,t,o){!o&&jn&&(o=jn(e)??void 0);let n=null;if(o){let r=Gt.get(o);r&&(n=r.get(t))}return n||(n=vr.get(t)),n}function Ra(e,t){for(let o in e){const n=e[o];yr(o,n,t)}}function Aa(e){Gt.delete(e)}function Ma(){return{top:0,left:0,bottom:0,right:0}}function La(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ba(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class _a{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ba(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=dr(()=>{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,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=dt({},Ma(),t.safeAreaInset),i=La(n,r),s=dt({},i.pageLayout,t.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){yr(t,o,n)}getAPI(t,o,n){return ze(t,o,n)}batchSetAPI(t,o){Ra(t,o)}clearScopeAPI(t){Aa(t)}getRootDomain(){return pt()}}const qa=[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],ja=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],za=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);qa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ja.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ce(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={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}},Pe={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}},br={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},xr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},wr=[];for(const e in xr)wr.push(e);const Ha=Symbol.for("InnerPageScopeKey"),Ka={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Wa=(e,t)=>({inheritAttrs:!0,props:{...we,...br,...Ka},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Ha,!1);if(r){const f=pr(r,o);Ce({getPageContentHeight:()=>Yt(r,f),getPageContentWidth:()=>Ut(r,f),getPageHeaderHeight:()=>Ot(r,f),getPageFooterHeight:()=>Dt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[v,P])=>{if(f&&v){const g=l.toRaw(v),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),c(h)}if(d&&P){const g=l.toRaw(P),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),c(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);c(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:s.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ya,create:Ua,scope:Th}=ie("page"),Qn=Ua(Wa(Ya));function an(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Jn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ga=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=at(),s=i?rn(i):null;s&&(s.headerMounted=!0);const u=e,c=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,v=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const w=Ke(r.padding??s.headerPadding);return Object.assign(E,w),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(w.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const w=Ke(r.padding);Object.assign(E,w)}return E}),P=l.ref(null),g=()=>{if(s&&P.value&&!en(P.value)){if(!n){const E=an(P.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(ln(g,50,5,50,!0),window.ResizeObserver&&P.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(P.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return v.value.height!==null&&v.value.height!==void 0&&(E.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(E.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(E.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(E.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(E.paddingBottom=`${v.value.bottom}px`),E}),S=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function j(){a.emit("click-right")}function M(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const w=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(w)}else if(r.leftIcon){const w=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(w)}if(r.leftText){const w=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(w)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const w=l.h("view",{class:"right-text",onClick:M},[r.rightText]);E.push(w)}if(a.slots.rightIcon){const w=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(w)}else if(r.rightIcon){const w=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(w)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},A=()=>{if(!r.titleShow)return null;const E=[],w=a.slots.default?a.slots.default():null;if(w)E.push(w);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],w=a.slots.bottom?a.slots.bottom():null;return w&&E.push(w),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],C=L();C&&q.push(C);const k=A();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:f.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const w={class:c.value,style:m.value,ref:P};return l.h("view",w,E)}}}),{componentName:Xa,create:Za,scope:Qa}=ie("header-bar"),el=Za(Ga(Xa,Qa,Ee.ArrowLeft));function Ja(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=at(),i=a?rn(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,c=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Ke(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),d=()=>{if(i&&f.value&&!en(f.value)){if(!o){const g=an(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(ln(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const P=l.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Ne(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Ne(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Ne(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Ne(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Ne(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:P.value};return l.h("view",h,g)}}}}const{componentName:ei,create:ti,scope:Ch}=ie("footer-bar"),tl=ti(Ja(ei));function ni(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=at(),r=l.computed(()=>({[e]:!0})),a=n?rn(n):null,i=l.computed(()=>{const c={};if(n&&a){if(o.padding){const P=Ke(o.padding);Object.assign(a.contentPadding,P)}const f=Ot(n,a),d=Dt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,c.height=v,a.contentPadding.top||f>0){const P=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+P}px`}if(a.contentPadding.bottom||d>0){const P=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+P}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=Ke(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=l.ref(null),u=()=>{if(a&&s.value){const c=Jn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Dt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:li,create:oi,scope:$h}=ie("content"),ri=oi(ni(li));function ai(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=_e(ri,[["render",ai]]),bt="GroupStateKey",Sr=Symbol.for("GroupScopeKey");function sn(){return l.inject(Sr,!1)}function un(e=!0){l.provide(Sr,e)}function ii(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Gn(r)||(e[n]=r)})}function si(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ii(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function $n(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(bt);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=de(a),d=de(i);s||(s=c.type??"grid");const v=()=>{const P=t===""||t===-1,g=de(t);let h=xe(o);const m=de(n);if(!P){let $=(g-(h-1)*m)/h;for(;d!==-1&&$>d;)h++,$=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&$<f;)h--,$=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)v();else{const P=++u.passport;setTimeout(()=>{P===u.passport&&v()},50)}}function cn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.layout}function fn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.order}function Ql(e,t=1){if(t==="stretch")return-1;const o=xe(t);return o===-1?100:100*o/e}function dn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Ql(t.column,o),i>0&&(a.width=`${i}%`);const s=Ql(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 hn(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 r=xe(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=xe(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Tr=Symbol("RollingStateKey");function ui(e){l.provide(Tr,e)}function ci(){return l.inject(Tr,null)}function zn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function fi(e){let t=zn(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=zn(o),document.body.removeChild(o)}return t}function di(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const hi={...we,...br,...xr};function mi(e,t,o){return{props:hi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,wr),i=si(a,{type:n.type}),s=sn();un(!0);const u=n.rollingDisplay?ci():null,c=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?cn(a,!0).value:null),v=l.getCurrentInstance(),P=(z,Q=!1)=>{const te=v?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Q)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Q],[te,T])=>{if(z&&te){const K=l.toRaw(te),J=l.toRaw(z),le=J?Reflect.ownKeys(J):[];(K?Reflect.ownKeys(K):[]).forEach(ue=>{le.includes(ue)||(J[ue]=[])}),P(J)}if(Q&&T){const K=l.toRaw(T),J=l.toRaw(Q),le=J?Reflect.ownKeys(J):[];(K?Reflect.ownKeys(K):[]).forEach(ue=>{le.includes(ue)||(J[ue]=[])}),P(J,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Q=s?fn(a,!0):null;if(d.value&&Q){if(d.value.type==="grid"){const te=hn(Q,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=dn(Q,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ne(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const te=di(A.value,i.layout.value.column,i.layout.value.gutter);Q=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Q}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),j=l.computed(()=>s||f.value?!0:se(n.isWrap)),M=[],L=z=>{M.push(z)},O=()=>{let z=M.length;M.splice(0,z)},A=l.ref(-1),N=z=>{const Q=Jn(z).width;Q>0&&Q!==A.value&&(A.value=Q)};$n(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([A,$,b],([z,Q,te])=>{i.order.index=0,$n(a,z,Q,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),w=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),C=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ne(n.height)||""),Y=l.ref(!1),W=l.ref(""),Z=l.ref(!1);let G=-1;const ee=(z,Q=!0)=>{const te=C.value;if(te&&Y.value!==z){if(G=G===-1?fi(te):G,Z.value=!0,Q)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",Z.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${G}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${G}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else Z.value=!1,W.value=`${G}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const re=z=>{r.emit("header-click",z)},I=()=>{x()},x=z=>{z=z??!Y.value,ee(z)};Ce({toggleCollapse:x,doLayout:()=>{M[0]&&(N(M[0]),$n(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let V=null,p=!0;const H=z=>{if(n.rules){const Q=l.toRaw(n.rules);P(Q)}if(n.pureDataRules){const Q=l.toRaw(n.pureDataRules);P(Q,!0)}if(Ze&&(z&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const Q=M[0];N(Q),window.ResizeObserver&&(V=new window.ResizeObserver(()=>{N(Q)}),V.observe(Q))}},_=()=>{V?.disconnect(),V=null},B=!f.value||u?.acquire();B&&(c.value=f.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),f.value&&u){let z=null,Q=u.initialHeight;u.observe(C.value,te=>{if(te!==c.value)if(te)c.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,c.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),c.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=zn(C.value);T<=0?W.value=Q:(W.value=`${T}px`,Q=W.value)}p||_()}})}}),l.onUnmounted(()=>{V?.disconnect(),u&&u.unobserve(C.value)});const R=(z="right")=>{const Q=[];if(E.value){const K={class:w.value},J=l.h("span",K,[E.value]);Q.push(J)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Q.push(T),Q.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Q):null},U=(z,Q,te,T)=>{const K={...m.value};return Q===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:L,key:`${Q}`,class:K,style:S.value},z)};return()=>{if(f.value&&c.value!==!0){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":Z.value},style:h.value},[])}i.order.index=0;const z=[];let Q=0;if(r.slots.header){const K={key:`${Q++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},J=l.h("div",K,[r.slots.header()]);z.push(J)}else{const K=[],J=n.collapsePosition==="left";if(J&&n.showCollapse){const le=R("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!J&&n.showCollapse){const le=R("right");le&&K.push(le)}if(K.length>0){const le={key:`${Q++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},fe=l.h("div",le,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=U(te,Q++,0,te.length);z.push(K)}else if(T==="flow"){const K=U(te,Q++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const J=te[K],le=U([J],Q++,K,te.length);z.push(le)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":Z.value},style:h.value},[z])}else return z}}}}const{componentName:gi,create:pi,scope:vi}=ie("group"),yi=(e,t)=>(e=e??Ee.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]})),ll=pi(mi(gi,vi,yi));function bi(e){return e===window}const xi=/matrix\((.+)\)/,Cr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(bi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=xi.exec(c);if(f){let v=f[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class wi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Si{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new wi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Jl=new Si,$r={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ti,create:Ci}=ie("price"),$i=Ci({props:{...$r},setup(e){const t=l.computed(()=>({[Ti]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Mt(e.price)==0?"":Qt(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ni=["innerHTML"],Ei=["innerHTML"];function ki(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ni)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ei)):l.createCommentVNode("",!0)],2)}const mn=_e($i,[["render",ki]]),{componentName:Nn,create:Pi}=ie("hint-text"),Ii=Pi({components:{Price:mn},props:{...$r,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),c=(w,q,C,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,G=w.split("-");let ee=[];G[0]==="top"?ee=["top","bottom","right","left"]:G[0]==="bottom"?ee=["bottom","top","right","left"]:G[0]==="left"?ee=["left","top","bottom","right"]:G[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let x=0;x<ee.length;x++){const F=ee[x];if(I[0]=F,G[1]&&(I[1]=G[1]),F==="top"){const V=q.y-Y-e.arrowSize-e.offset;if(V>=0){re.top=V;let p=0;G[1]==="start"?p=q.x:G[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="bottom"){const V=q.y+k+e.arrowSize+e.offset;if(V+Y<=Z){re.top=V;let p=0;G[1]==="start"?p=q.x:G[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="left"){const V=q.x-D-e.arrowSize-e.offset;if(V>=0){re.left=V;let p=0;G[1]==="start"?p=q.y:G[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}else if(F==="right"){const V=q.x+C+e.arrowSize+e.offset;if(V+D<=W){re.left=V;let p=0;G[1]==="start"?p=q.y:G[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},f=(w,q,C=10)=>{if(Ze&&!(q===!1||!w)&&e.reference){n.value=Cr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value?.offsetHeight??0,D=u.value?.offsetWidth??0,{bestPlacement:Y,bestInsetRect:W}=c(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0}},d=l.ref(0),v=Vt(()=>{f(e.message,e.visible)},10),P=l.ref(e.visible);l.watch(()=>e.visible,w=>{P.value=w});const g=l.computed(()=>P.value&&h.value),h=l.ref(!0),m=Vt(w=>{const q=w[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([w,q])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Jl.watch(e.reference,v),S.observe(e.reference)}),l.onBeforeUnmount(()=>{Jl.unwatch(e.reference,v),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const w={[Nn]:!0};return i.value.startsWith("top")?w["is-top"]=!0:i.value.startsWith("right")?w["is-right"]=!0:i.value.startsWith("bottom")?w["is-bottom"]=!0:i.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),$=l.computed(()=>{const w={};o.value.top!==null&&(w.top=`${o.value.top}px`),o.value.right!==null&&(w.right=`${o.value.right}px`),o.value.bottom!==null&&(w.bottom=`${o.value.bottom}px`),o.value.left!==null&&(w.left=`${o.value.left}px`),e.autoFit&&(w["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${q}px`,s.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),j=l.computed(()=>{const w=[`${Nn}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),M=l.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),L=l.computed(()=>({[`${Nn}__arrow`]:!0})),O=l.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,i.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):i.value==="top-start"?(w.left=`${e.arrowOffset+d.value}px`,w.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(w.right=`${e.arrowOffset-d.value}px`,w.bottom=`-${e.arrowSize}px`):i.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):i.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):i.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(w.left=`${e.arrowOffset+d.value}px`,w.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(w.right=`${e.arrowOffset-d.value}px`,w.top=`-${e.arrowSize}px`):i.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):i.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):i.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),A=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:g,tipRef:u,classes:b,styles:$,textClasses:j,textStyles:M,arrowClasses:L,arrowStyles:O,overlayShow:A,overlayStyle:N,onClickOverlay:()=>{P.value=!1,t.emit("update:visible",!1)}}}}),Vi=["innerHTML"];function Oi(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Lt=_e(Ii,[["render",Oi]]);class Nr{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 Hn={},Di=new Nr,vt=new Map,Xt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&(l.render(null,t),t.parentNode?.removeChild(t))}else{for(const t of vt.keys()){const o=document.getElementById(t);o&&(l.render(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Fi=e=>{e.unmount=Xt;const t=document.getElementById(e.id);if(t){const o=vt.get(e.id);o?e={...Hn,...o,...e}:e={...Hn,...e},e.transition=!1;const n=l.createVNode(Lt,e);return l.render(n,t),e.id}},Ri=e=>{e.unmount=Xt;let t=e.id??`hinttext_${Di.get()}`;e={...Hn,...e},e.id=t,vt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Lt,e);return l.render(n,o),document.body.appendChild(o),t},Ai=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Oe={show(e,t,o={},n=!0){Ai(t);const r=o.id;return r&&vt.has(r)?Fi({...o,message:t,reference:e}):(n&&Xt(),Ri({...o,message:t,reference:e}))},hide(e){Xt(e)},install(e){e.config.globalProperties.$hintText=Oe}};function Mi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Pe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const s=at(),u=sn();un(!1);const c=l.computed(()=>u&&s?cn(s,!1).value:null),f=e,d=l.ref(null),v=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),P=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ne(r.width));else{const K=u&&s?fn(s,!1):null;if(c.value&&K){if(c.value.type==="grid"){const J=hn(K,c.value,r.span,r.offset);Object.assign(T,J)}else if(c.value.type==="flow"){const J=dn(K,c.value,r.span,r.offset,r.width);Object.assign(T,J)}}}if(typeof P.value=="function"){const K=P.value(i);K&&Object.assign(T,K)}else if(P.value&&typeof P.value=="object"){const K=P.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Le.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${$.value}`]:!0})),M=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),L=De(l.toRef(r,"labelWidth"),"labelWidth",Le.Near),O=l.computed(()=>L&&L.value?{width:Ne(L.value)}:{}),A=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),w=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ce({setRequired(T){m.value=T},setErrorTip(T){w.errorTip=T},setErrorIcon(T){w.errorIcon=T},setWarnTip(T){w.warnTip=T},setWarnIcon(T){w.warnIcon=T},setInfoTip(T){w.infoTip=T},setInfoIcon(T){w.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){P.value=T}});const q=l.computed(()=>r.infoTip||w.infoTip),C=l.computed(()=>r.infoIcon||w.infoIcon),k=l.computed(()=>r.warnTip||w.warnTip),D=l.computed(()=>r.warnIcon||w.warnIcon),Y=l.computed(()=>r.errorTip||w.errorTip),W=l.computed(()=>r.errorIcon||w.errorIcon),Z=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),G=()=>Z.value.length>0,ee=l.computed(()=>Z.value==="error"?Y.value:Z.value==="warn"?k.value:Z.value==="info"?q.value:""),re=l.computed(()=>Z.value==="error"?W.value:Z.value==="warn"?D.value:Z.value==="info"?C.value:null),I=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${Z.value}`]:!0,[`${f}--animate`]:!0};return Z.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:Z.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:Z.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":L&&L.value&&(T["padding-left"]=Ne(L.value)),T}),F=l.ref();let V="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,J,le])=>{F.value&&(T&&!pe(K)?V?o.show(F.value,K,{...le,id:V,type:J},!0):V=o.show(F.value,K,{...le,type:J},!0):o.hide(V))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let J of T)if(J.intersectionRatio>0){K=!0,K&&a.emit("appear",J);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{p&&(F.value&&p.unobserve(F.value),p.disconnect(),p=null)};l.watch(()=>se(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{se(r.appearListen)&&H()}),l.onUnmounted(()=>{_(),V&&o.hide(V)});const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,J={class:A.value},le=l.h("div",J,[K]);if(T.push(le),a.slots.fixedPreTip){const ue=a.slots.fixedPreTip();T.push(ue)}const fe={class:M.value,style:O.value};return l.h("div",fe,T)},R=()=>{const T=[];if(a.slots.prepend){const J=a.slots.prepend();T.push(J)}if(a.slots.default){const J=a.slots.default();T.push(J)}if(a.slots.append){const J=a.slots.append();T.push(J)}if(a.slots.fixedTip){const J={class:[`${f}__fixed-tip`]},le=l.h("div",J,[a.slots.fixedTip()]);T.push(le)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},U=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Q=()=>{if(!G())return null;const T=[],K=U();K&&T.push(K);const J=z();J&&T.push(J);const le={class:I.value,style:x.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],J=B();J&&K.push(J);const le=R();le&&K.push(le);const fe={class:j.value},ue=l.h("div",fe,K);T.push(ue);const ge=Q();ge&&T.push(ge);const He=te();He&&T.push(He);const tt={class:v.value,style:g.value,prop:r.prop};return l.h("div",tt,T)}}}}const{componentName:Li,create:Bi,scope:_i}=ie("item"),Se=Bi(Mi(Li,_i,Oe,!1));function qi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=at(),a=sn();un(!1);const i=l.computed(()=>a&&r?cn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const f={},d=a&&r?fn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=hn(d,i.value,o.span,o.offset);Object.assign(f,v)}else if(i.value.type==="flow"){const v=dn(d,i.value,o.span,o.offset,o.width);Object.assign(f,v)}else return o.width&&(f.width=Ne(o.width)),f;else o.width&&(f.width=Ne(o.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:ji,create:zi,scope:Nh}=ie("slot-item"),ol=zi(qi(ji));function Hi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=at(),s=sn();un(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=cn(i,!1),d=fn(i,!1);if(f.value&&d)if(f.value.type==="grid"){const v=hn(d,f.value,o.span,o.offset);Object.assign(c,v)}else if(f.value.type==="flow"){const v=dn(d,f.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Ne(o.width))}else o.width&&(c.width=Ne(o.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const P=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(P)}c.push(d[v])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Ki,create:Wi,scope:Eh}=ie("row-item"),rl=Wi(Hi(Ki)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},eo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Yi(e,t,o){return{props:{...we,...Pe,...eo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),g=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let m=he(n,"hintText"),S=l.ref(!1);const b=C=>{let D=C.target.value;f.value=!0,pe(m.value)||(S.value=!0),s("focus",D,C)},$=C=>{setTimeout(()=>{S.value&&(S.value=!1),f.value=!1},0);let D=C.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,C)},j=()=>{s("clear","")},M=l.ref(!1);let L=null;const O=()=>{n.showTooltip&&M.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{M.value=!0},150))},A=()=>{L&&(clearTimeout(L),M.value=!1,L=null)},N=l.computed(()=>M.value||S.value),E=l.computed(()=>M.value?d.value:m.value),w=l.computed(()=>Mt(n.unit)>0),q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:P.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:j,onChange:h,onInput:g,onFocus:b,onBlur:$,onMouseover:O,onMouseleave:A},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:w.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(y.ElInput,k,D);Y.push(W);const Z={default:()=>Y};r.slots.default&&(Z.label=r.slots.default),r.slots.default&&(Z.fixedTip=r.slots.fixedTip);const ee={...ke(n,eo),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,Z)}}}}const{componentName:Ui,create:Gi,scope:Xi}=ie("input-item"),al=Gi(Yi(Ui,Xi,Se));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Er(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Zi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ji(){const e=l.getCurrentInstance();return new Qi(e.proxy)}function kr(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function Pr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Er(e,i);if(Array.isArray(s)&&s.length>0){const u=Pr(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ot(e,i)===a;else if(o==="item")u=kr(e,i,a);else{let c=Ft(e,i);c==null&&(c=ot(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function es(e){return{text:e,value:e}}const to={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ts(e,t,o){return{props:{...we,...Pe,...to},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(U=>ot(n,U)).join(" "):""),P=(R,U,z,Q=!0)=>{if(z.length==0){Q&&(s("update:modelValue",R),s("change",R)),f.value=R;return}const te=Pr(n,R,U,z);if(te===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const J=te[K],le=d.value[K];if(!kr(n,J,le)){T=!1;break}}if(!T){d.value=te;let K=[],J=[],le=[];te.forEach(He=>{const tt=Ft(n,He),ht=ot(n,He);K.push(tt),le.push(ht),n.valueType==="text"?J.push(ht):n.valueType==="item"?J.push(He):J.push(tt)});let fe,ue,ge;se(n.multiple)?(f.value=K,fe=l.toRaw(J),ue=le,ge=l.toRaw(te)):(f.value=K[0]??"",fe=l.toRaw(J[0]??""),ue=le[0]??"",ge=l.toRaw(te[0])),Q&&(s("update:modelValue",fe),s("change",fe,ge)),s("update:text",ue)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,R=>se(R)),b=Ji(),$=async(R,U)=>{if(R){const z=await b.load("select",R,U);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>es(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([R,U])=>{h.value=null,$(R,U)},{immediate:!S.value});let j=!1;const M=()=>{j||(j=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([R,U])=>{if(N()&&se(n.multiple)){Xe(U,f.value)||(f.value=U);return}P(U,n.valueType,m.value,!1),s("setValue",U)}),n.source||(f.value=n.modelValue);let L=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(L=async R=>{if(R==null){h.value=null;return}O.value=!0;try{const U=await n.remoteMethod(R);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}O.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async R=>{if(R==null){h.value=null;return}O.value=!0;try{const U=await n.filterMethod(R,g.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),w=e,q=l.computed(()=>({[w]:!0})),C=R=>{n.allowCreate||N()&&se(n.multiple)?(s("update:modelValue",R),s("change",R),s("update:text",R),f.value=R):P(R,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=R=>{let z=R.target.value;E.value=!0,pe(k.value)||(D.value=!0),s("focus",z,R)},W=R=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=R.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),V.value||s("blur",z,R)},Z=()=>{s("clear","")},G=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&G.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{G.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),G.value=!1,ee=null)},x=l.computed(()=>G.value||D.value),F=l.computed(()=>G.value?v.value:k.value),V=l.ref(!1),p=R=>{V.value=R,s("visible-change",R),R||s("selected")},H=R=>{s("remove-tag",R)},_=(R,U)=>{const z=[];return R.forEach((Q,te)=>{const T=Er(n,Q);if(Array.isArray(T)&&T.length>0){const K=_(T,U),J=ot(n,Q),fe={key:`${J}_${te}`,label:J};z.push(l.h(y.ElOptionGroup,fe,{default:()=>K}))}else{const K=Ft(n,Q),J=ot(n,Q),le=Zi(n,Q),ue={key:`${K}_${te}`,label:J,disabled:le,value:K};if(typeof U=="function")z.push(l.h(y.ElOption,ue,{default:()=>U(Q)}));else if(n.optionType==="item"){const ge={class:{"fox-select-item__option-left":!0}},He=l.h("span",ge,[K]),tt={class:{"fox-select-item__option-right":!0}},ht=l.h("span",tt,[J]),nt=l.h("div",{class:{"fox-select-item__option":!0}},[He,ht]);z.push(l.h(y.ElOption,ue,{default:()=>nt}))}else n.optionType==="value"?z.push(l.h(y.ElOption,ue,{default:()=>[K]})):z.push(l.h(y.ElOption,ue))}}),z},B=l.ref();return Ce({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const U={...Ye(r.attrs),ref:B,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:Z,onChange:C,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof L=="function"&&(U["remote-method"]=L,U.loading=O.value),typeof A=="function"&&(U["filter-method"]=A,U.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Q=[],te=l.h(y.ElSelect,U,z);Q.push(te);const T={default:()=>Q};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const J={...ke(n,to),hintText:F.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(J["appear-listen"]=!0,J.onAppear=M),l.h(o,J,T)}}}}const{componentName:ns,create:ls,scope:os}=ie("select-item"),il=ls(ts(ns,os,Se));var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ir={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",v="quarter",P="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(C,k,D){var Y=String(C);return!Y||Y.length>=k?C:""+Array(k+1-Y.length).join(D)+C},j={s:$,z:function(C){var k=-C.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+$(Y,2,"0")+":"+$(W,2,"0")},m:function C(k,D){if(k.date()<D.date())return-C(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),Z=D-W<0,G=k.clone().add(Y+(Z?-1:1),d);return+(-(Y+(D-W)/(Z?W-G:G-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:P,w:f,d:c,D:g,h:u,m:s,s:i,ms:a,Q:v}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},M="en",L={};L[M]=b;var O=function(C){return C instanceof w},A=function C(k,D,Y){var W;if(!k)return M;if(typeof k=="string"){var Z=k.toLowerCase();L[Z]&&(W=Z),D&&(L[Z]=D,W=Z);var G=k.split("-");if(!W&&G.length>1)return C(G[0])}else{var ee=k.name;L[ee]=k,W=ee}return!Y&&W&&(M=W),W||!Y&&M},N=function(C,k){if(O(C))return C.clone();var D=typeof k=="object"?k:{};return D.date=C,D.args=arguments,new w(D)},E=j;E.l=A,E.i=O,E.w=function(C,k){return N(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var w=function(){function C(D){this.$L=A(D.locale,null,!0),this.parse(D)}var k=C.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,Z=Y.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var G=W.match(m);if(G){var ee=G[2]-1||0,re=(G[7]||"0").substring(0,3);return Z?new Date(Date.UTC(G[1],ee,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)):new Date(G[1],ee,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,Z=!!E.u(Y)||Y,G=E.p(D),ee=function(_,B){var R=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return Z?R:R.endOf(c)},re=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,x=this.$M,F=this.$D,V="set"+(this.$u?"UTC":"");switch(G){case P:return Z?ee(1,0):ee(31,11);case d:return Z?ee(1,x):ee(0,x+1);case f:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(Z?F-H:F+(6-H),x);case c: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()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,Z=E.p(D),G="set"+(this.$u?"UTC":""),ee=(W={},W[c]=G+"Date",W[g]=G+"Date",W[d]=G+"Month",W[P]=G+"FullYear",W[u]=G+"Hours",W[s]=G+"Minutes",W[i]=G+"Seconds",W[a]=G+"Milliseconds",W)[Z],re=Z===c?this.$D+(Y-this.$W):Y;if(Z===d||Z===P){var I=this.clone().set(g,1);I.$d[ee](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,Z=this;D=Number(D);var G=E.p(Y),ee=function(x){var F=N(Z);return E.w(F.date(F.date()+Math.round(x*D)),Z)};if(G===d)return this.set(d,this.$M+D);if(G===P)return this.set(P,this.$y+D);if(G===c)return ee(1);if(G===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[G]||1,I=this.$d.getTime()+D*re;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var Z=D||"YYYY-MM-DDTHH:mm:ssZ",G=E.z(this),ee=this.$H,re=this.$m,I=this.$M,x=W.weekdays,F=W.months,V=function(B,R,U,z){return B&&(B[R]||B(Y,Z))||U[R].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,R,U){var z=B<12?"AM":"PM";return U?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:V(W.monthsShort,I,F,3),MMMM:V(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,re,!0),A:H(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:G};return Z.replace(S,function(B,R){return R||_[B]||G.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var Z,G=E.p(Y),ee=N(D),re=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,x=E.m(this,ee);return x=(Z={},Z[P]=x/12,Z[d]=x,Z[v]=x/3,Z[f]=(I-re)/6048e5,Z[c]=(I-re)/864e5,Z[u]=I/r,Z[s]=I/n,Z[i]=I/o,Z)[G]||I,W?x:E.a(x)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return L[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),Z=A(D,Y,!0);return Z&&(W.$L=Z),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},C}(),q=w.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",P],["$D",g]].forEach(function(C){q[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),N.extend=function(C,k){return C.$i||(C(k,w,N),C.$i=!0),N},N.locale=A,N.isDayjs=O,N.unix=function(C){return N(1e3*C)},N.en=L[M],N.Ls=L,N.p={},N})})(Ir);var rs=Ir.exports;const We=et(rs);var Vr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=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 S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},v=function(h,m){var S,b=s.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,m))>-1){S=$>12;break}}else S=h===(m?"pm":"PM");return S},P={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(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,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:[r,c("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,w){var q=w&&w.toUpperCase();return E||S[w]||o[w]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,k,D){return k||D.slice(1)})})).match(n),$=b.length,j=0;j<$;j+=1){var M=b[j],L=P[M],O=L&&L[0],A=L&&L[1];b[j]=A?{regex:O,parser:A}:M.replace(/^\[|\]$/g,"")}return function(N){for(var E={},w=0,q=0;w<$;w+=1){var C=b[w];if(typeof C=="string")q+=C.length;else{var k=C.regex,D=C.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(Z){var G=Z.afternoon;if(G!==void 0){var ee=Z.hours;G?ee<12&&(Z.hours+=12):ee===12&&(Z.hours=0),delete Z.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,$=b.parse;b.parse=function(j){var M=j.date,L=j.utc,O=j.args;this.$u=L;var A=O[1];if(typeof A=="string"){var N=O[2]===!0,E=O[3]===!0,w=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,Z){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var G=g(W)(Y),ee=G.year,re=G.month,I=G.day,x=G.hours,F=G.minutes,V=G.seconds,p=G.milliseconds,H=G.zone,_=new Date,B=I||(ee||re?1:_.getDate()),R=ee||_.getFullYear(),U=0;ee&&!re||(U=re>0?re-1:_.getMonth());var z=x||0,Q=F||0,te=V||0,T=p||0;return H?new Date(Date.UTC(R,U,B,z,Q,te,T+60*H.offset*1e3)):Z?new Date(Date.UTC(R,U,B,z,Q,te,T)):new Date(R,U,B,z,Q,te,T)}catch{return new Date("")}}(M,A,L),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),w&&M!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var C=A.length,k=1;k<=C;k+=1){O[1]=A[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===C&&(this.$d=new Date(""))}else $.call(this,j)}}})})(Vr);var as=Vr.exports;const is=et(as);var Or={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],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(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),v==="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 v}});return i.bind(this)(d)}}})})(Or);var ss=Or.exports;const us=et(ss);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,P,g,h){var m=d.name?d:d.$locale(),S=i(m[v]),b=i(m[P]),$=S||b.map(function(M){return M.slice(0,g)});if(!h)return $;var j=m.weekStart;return $.map(function(M,L){return $[(L+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,v){return d.formats[v]||function(P){return P.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[v.toUpperCase()])},f=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return c(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Dr);var cs=Dr.exports;const fs=et(cs);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var 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 v=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),P=this.diff(v,o,!0);return P<0?i(this).startOf("week").week():Math.ceil(P)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Fr);var ds=Fr.exports;const hs=et(ds);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Rr);var ms=Rr.exports;const gs=et(ms);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Ar);var ps=Ar.exports;const vs=et(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Mr);var ys=Mr.exports;const bs=et(ys);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Lr);var xs=Lr.exports;const ws=et(xs);We.extend(fs);We.extend(us);We.extend(is);We.extend(hs);We.extend(gs);We.extend(vs);We.extend(bs);We.extend(ws);const Me={format(e,t){return We(e).format(t)},parser(e,t){return We(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,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]=Me.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Me.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},no={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},lo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ss(e,t,o){return{props:{...we,...Pe,...no,...lo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),P=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const R=[...d.value];R[0]=B,d.value=R}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const j=B=>{let U=B.target.value;f.value=!0,pe(b.value)||($.value=!0),s("focus",U,B)},M=B=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let U=B.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,B)},L=()=>{s("clear","")},O=B=>{s("calendar-change",B)},A=(B,R,U)=>{s("panel-change",B,R,U)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Le.Near),w=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Le.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Le.Near),C=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Le.Near);let k=null;const D=l.ref(se(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const R=[];Array.isArray(q.value)?(R[0]=d.value?d.value[0]??q.value[0]:null,R[1]=q.value[1]??q.value[0]):(R[0]=d.value?d.value[0]??q.value:null,R[1]=D.value),R[0]||(R[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=R}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Me.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const R=[];R[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?R[1]=k[1]:R[1]=k,R[0]||(R[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=R}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=se(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const R=[d.value[0]];Array.isArray(q.value)?R[1]=q.value[1]??q.value[0]:R[1]=D.value,R[0]||(R[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=R}else d.value=q.value;s("update:modelValue",d.value)}else Xe(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([R])=>{D.value!==R&&B()}),l.watch([()=>d.value],([R])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(R))try{let z=R[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Me.format(z,n.valueFormat));let Q=Array.isArray(q.value)?q.value[1]:q.value;(z===Q||Array.isArray(C.value)&&C.value.findIndex(T=>z==T)!==-1)&&(U=!0)}catch(z){console.error(z)}D.value!==U&&(D.value=U)},{immediate:!0})}const Z=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),G=l.ref(),ee=l.ref(),re=/^\d+$/,I=(B,R)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,R):re.test(B)&&B.length===n.flashFillThreshold,x=(B,R)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(B,R);else{const Q=n.flashFillFormat??"YYYYMMDD";U=Me.parser(B,Q)}const z=n.valueFormat??"YYYY-MM-DD";return Me.format(U,z)},F=B=>B?B.endsWith("range"):!1,V=B=>{if(!B.target)return;const R=B.target.value??"";if(I(R,n.type)){const U=x(R,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=U,g(z)}else g(U)}},p=B=>{if(!B.target)return;const R=B.target.value??"";if(I(R,n.type)){const U=x(R,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=U,g(z)}else g(U)}},H=()=>{if(n.flashFill&&G.value&&G.value.$el)if(F(n.type)){const B=G.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",V),B[1]&&B[1].addEventListener("input",p)}else{const B=G.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",V)}},_=()=>{if(n.flashFill&&G.value&&G.value.$el)if(F(n.type)){const B=G.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",V),B[1]&&B[1].removeEventListener("input",p)}else{const B=G.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",V)}};return l.onMounted(H),l.onBeforeUnmount(_),Ce({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const R={...r.attrs,key:P.value,type:h.value,ref:ee,class:S.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:L,onFocus:j,onBlur:M,onCalendarChange:O,onPanelChange:A,onVisibleChange:N},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const z=[],Q=l.h(y.ElDatePicker,R,U);z.push(Q);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ue={class:Z.value},ge=l.h("div",ue,{default:()=>[le,fe]});z.push(ge)}if(!i.value&&!a.value){const le={label:w.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(y.ElCheckbox,le),ue=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ue}}const K={...ke(n,no,lo),ref:G,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:Ts,create:Cs,scope:$s}=ie("date-item"),sl=Cs(Ss(Ts,$s,Se)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ns(e,t,o){return{props:{...we,...Pe,...oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let A=L.target.value;f.value=!0,pe(h.value)||(m.value=!0),s("focus",A,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let A=L.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),s("blur",A,L)},$=()=>{s("clear","")},j=L=>{s("visible-change",L)},M=l.ref();return Ce({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const O={...r.attrs,ref:M,class:P.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b,onVisibleChange:j},A={},N=[],E=l.h(y.ElTimePicker,O,A);N.push(E);const w={default:()=>N};r.slots.default&&(w.label=r.slots.default),r.slots.fixedTip&&(w.fixedTip=r.slots.fixedTip);const C={...ke(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,w)}}}}const{componentName:Es,create:ks,scope:Ps}=ie("time-item"),ul=ks(Ns(Es,Ps,Se)),ro={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Is(e,t,o){return{props:{...we,...Pe,...ro},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let O=M.target.value;f.value=!0,pe(h.value)||(m.value=!0),s("focus",O,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let O=M.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,M)},$=()=>{s("clear","")},j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const L={...r.attrs,ref:j,class:P.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b},O={},A=[],N=l.h(y.ElTimeSelect,L,O);A.push(N);const E={default:()=>A};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,ro),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Vs,create:Os,scope:Ds}=ie("time-select-item"),cl=Os(Is(Vs,Ds,Se));function ao(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function io(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wo(`${e}`,`${t}`);return ao(n)}else{let n=Yn(`${e}`,Yo(`${t}`),20);return ao(n)}}function Fs(e,t=-1,o=!1,n=3,r=","){return Qt(e,t,o,n,r)}function so(e,t,o,n,r=!0){if(e==="")return"";if(e=Uo(e),t=xe(t),t==1)return e;if(n)e=io(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Yn(e,1,xe(o)));else{let a=-1*t;e=io(e,a)}return e}function uo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=An(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const co={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Rs(e,t,o){return{props:{...we,...Pe,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),c=he(n,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>n.rates,()=>n.precision],([C,k,D])=>{if(pe(C)){f.value="";return}const Y=so(C,k,D,!1);f.value!==Y&&(f.value=Y)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=f.value),C}),{t:v}=Be.useFoxI18n(t),P=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!pe(f.value)?C=Fs(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=v(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let C=S.value;return pe(C)&&(C=n.errorTip??""),C}),$=l.ref(""),j=l.ref(!1),M=(C,k)=>{if(C=`${C}`,pe(C)){f.value="",c.value="",k.forEach(D=>{s(D,"")}),se(n.showTip)&&j.value&&(j.value=!1);return}if(C.length>=2){let D=C;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(f);return}}if(C!="-"){if(!nr(C)){l.triggerRef(f);return}if(n.integerLength!=-1&&lr(C)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&or(C)>Number(n.decimalLength)){l.triggerRef(f);return}let D=uo(C,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(f);return}}else if(n.min!=null&&xe(n.min)>=0){l.triggerRef(f);return}$.value=C,se(n.showTip)&&(j.value=C.length>0),f.value=C,c.value=so(C,n.rates,n.precision,!0),k.forEach(D=>{s(D,c.value)})},L=C=>{M(C,["update:modelValue","input"])},O=C=>{M(C,["update:modelValue","change"])},A=C=>{if(u.value=!0,se(n.showTip)){let k=f.value;pe(k)&&(k=n.hintText),pe(k)||($.value=k,j.value=!0)}S.value="",s("focus",c.value,C)},N=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&j.value===!0&&(j.value=!1)},0),!pe(f.value)){let k=uo(f.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",c.value,C),s("blur",c.value,C)},E=()=>{s("clear","")},w=l.computed(()=>Mt(n.unit)>0),q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:P.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:L,onChange:O,onFocus:A,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:w.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(y.ElInput,k,D);Y.push(W);const Z={default:()=>Y};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const ee={...ke(n,co),errorTip:b.value,hintText:$.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,Z)}}}}const{componentName:As,create:Ms,scope:Ls}=ie("money-item"),fl=Ms(Rs(As,Ls,Se)),fo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Bs(e,t,o){return{props:{...we,...Pe,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0,[`${v}__append`]:L.value})),g=l.computed(()=>({[`${v}__unit`]:!0})),h=A=>{d.value=A,s("update:modelValue",A),s("input",A)},m=A=>{s("change",A)};let S=he(n,"hintText"),b=l.ref(!1);const $=A=>{let E=A.target.value;f.value=!0,pe(S.value)||(b.value=!0),s("focus",E,A)},j=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let E=A.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,A)},M=()=>{s("clear","")},L=l.computed(()=>Mt(n.unit)>0),O=l.ref();return Ce({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ye(r.attrs),ref:O,class:P.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:M,onChange:m,onInput:h,onFocus:$,onBlur:j},E={},w=[],q=l.h(y.ElInputNumber,N,E);w.push(q);const C={default:()=>w};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...ke(n,fo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(L.value){const W={class:g.value},Z=l.h("div",W,[n.unit]);C.append=()=>Z}return l.h(o,D,C)}}}}const{componentName:_s,create:qs,scope:js}=ie("input-number-item"),dl=qs(Bs(_s,js,Se));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function zs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}function Kn(e,t,o){const n=Ge(e,t),r=Ge(e,o);if(n!==r)return!1;const a=ft(e,t),i=ft(e,o);return a===i}function Br(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Br(e,s,o,n);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=Ge(e,c)===s;else if(o==="item")u=Kn(e,c,s);else{let f=ft(e,c);f==null&&(f=Ge(e,c)),u=f===s}if(u){r.push(c),a=zs(e,c);break}}if(!u)break}}return r}function Ws(e){return{text:e,value:e}}const ho={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ys(e,t,o){return{props:{...we,...Pe,...ho},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(U=>Ge(n,U)).join(" "):Ge(n,B)).join(" "):""),P=(_,B,R,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===_)return;f.value=_;const T=l.toRaw(_);if(U){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const J=[];K.forEach(le=>{const ue=(le.pathNodes??[]).map(ge=>ge.data);J.push(ue)}),s("update:pathNodes",J)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",le)}s("update:modelValue",T),s("change",T)}return}const z=Br(n,_,B,R);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=z[z.length-1];if(E.value.checkStrictly!==!0&&Q&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const T=[];z.forEach(K=>{const J=`${Ge(n,K)}`;T.push(J)}),T.length>0&&(A.value=T.join(n.separator))}else A.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],J=d.value[T];if(Array.isArray(K)){if(!Array.isArray(J)||K.length!==J.length)te=!1;else for(let le=0;le<K.length;le++)if(!Kn(n,K[le],J[le])){te=!1;break}}else Kn(n,K,J)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ue=[];for(let ge of le)fe.push(ft(n,ge)),n.valueType==="text"?ue.push(Ge(n,ge)):n.valueType==="item"?ue.push(ge):ue.push(ft(n,ge));T.push(fe),K.push(ue)}else T.push(ft(n,le)),n.valueType==="text"?K.push(Ge(n,le)):n.valueType==="item"?K.push(le):K.push(ft(n,le))}),f.value=T;const J=l.toRaw(K);U&&(s("update:pathNodes",z),s("update:modelValue",J),s("change",J))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,_=>se(_)),m=Ks(),S=async(_,B)=>{if(_){const R=await m.load("cascader",_,B);if(R.length>0)if(typeof R[0]=="string"){let Q=R.map(te=>Ws(te));g.value=Q}else g.value=R}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{P(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&P(n.modelValue,"value",[],!1);let j=null,M=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){M.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}M.value=!1}});const L=l.ref(!1),O=e,A=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":A.value&&A.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,R)=>{const U=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===B.level){const z=B.pathLabels??[];let Q=[];z.forEach(te=>{te&&Q.push(te)}),Q.length>0&&(A.value=Q.join(n.separator))}else A.value=null;R(U)}),_}),w=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),f.value=_):P(_,"value",g.value,!0)};let q=he(n,"hintText"),C=l.ref(!1);const k=_=>{let R=_.target.value;L.value=!0,pe(q.value)||(C.value=!0),s("focus",R,_)},D=_=>{setTimeout(()=>{C.value&&(C.value=!1),L.value=!1},0);let R=_.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),x.value||s("blur",R,_)},Y=()=>{s("clear","")},W=l.ref(!1);let Z=null;const G=()=>{n.showTooltip&&W.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{W.value=!0},150))},ee=()=>{Z&&(clearTimeout(Z),W.value=!1,Z=null)},re=l.computed(()=>W.value||C.value),I=l.computed(()=>W.value?v.value:q.value),x=l.ref(!1),F=_=>{x.value=_,s("visible-change",_),_||s("selected")},V=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return Ce({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:A.value||c.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:Y,onChange:w,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:V,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=M.value);const R={};r.slots.option&&(R.default=r.slots.option),r.slots.empty&&(R.empty=r.slots.empty);const U=[],z=l.h(y.ElCascader,B,R);U.push(z);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const T={...ke(n,ho),hintText:I.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:G,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=$),l.h(o,T,Q)}}}}const{componentName:Us,create:Gs,scope:Xs}=ie("cascader-item"),hl=Gs(Ys(Us,Xs,Se)),mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zs(e,t,o){return{props:{...we,...Pe,...mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const $=O=>{let N=O.target.value;f.value=!0,pe(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},M=()=>{s("clear","")},L=l.ref();return Ce({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const A={...r.attrs,ref:L,class:P.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:M,onChange:h,onInput:g,onFocus:$,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],w=l.h(y.ElAutocomplete,A,N);E.push(w);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,mo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:Qs,create:Js,scope:eu}=ie("autocomplete-item"),ml=Js(Zs(Qs,eu,Se));function tu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[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(v=>v[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(v=>v[n]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let nu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function lu(){const e=l.getCurrentInstance();return new nu(e.proxy)}const _r={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ou(e,t){return{props:{..._r},setup(o,{attrs:n,slots:r}){const a=lu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=tu(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?l.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:Vh,create:ru,scope:Oh}=ie("mapping"),Rt=ru(ou());function au(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let 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 iu(e,t){return{props:{..._r},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=au(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Dh,create:su,scope:Fh}=ie("table-mapping-column"),gl=su(iu()),uu=Symbol.for("TableStateKey");function go(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let 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 cu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(uu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=go(s.row,s.column.property),c=a?go(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),P={class:{"el-radio":!0,"is-checked":f}};return l.h("label",P,[v])}};return l.h(y.ElTableColumn,{...n},i)}}}}const{componentName:Rh,create:fu,scope:Ah}=ie("table-radio-column"),pl=fu(cu()),du={},hu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},mu=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),gu=[mu];function pu(e,t){return l.openBlock(),l.createElementBlock("svg",hu,gu)}const vu=_e(du,[["render",pu]]),{componentName:Mh,create:yu,scope:Lh}=ie("table-setting"),bu={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},xu=yu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:vu,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...bu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=p=>p.length>1,v=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(R=>{H.some(U=>U.prop===R.prop?(R.label=U.label,!0):!1)});const _=[];r.value=p.map((R,U)=>(!(R.label===""||R.type)&&R.visible!==!1&&_.push(R.prop),{...R,sortIndex:U})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),L.value=_},P=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>P(B));for(let B of H){const R=P(B);if(_.indexOf(R)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,R)=>({...B,sortIndex:R})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}v(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,$.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&($.value=!0),L.value=H,m()},M=()=>{h(n),m()},L=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,$.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&($.value=!0),m()},A=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,w=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const R=Number(N.index),U=Number(_.dataset.index);if(R!==U){if(R<U){const z=r.value[R];r.value.splice(R,1),r.value.splice(U,0,z)}else{const z=r.value[R];r.value.splice(R,1),r.value.splice(U+1,0,z)}v(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},Z=p=>{const H=r.value[p];H.fixed=void 0,m()},G=new Map;let ee=null;function re(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:j,handleReset:M,checkedValue:L,handleCheckChange:O,onShow:A,onDragStart:w,onDragEnd:q,onDragOver:C,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:Z,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const R=Math.floor(B.offsetWidth);if(Math.floor(re(B))>R){let z=G.get(H);if(z){if(z===ee)return;Oe.hide(z)}z=Oe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),G.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=G.get(H);_&&(Oe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Oe.hide(ee),ee=Oe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Oe.hide(ee),ee=null)}}}}),wu={class:"fox-table-setting"},Su={class:"fox-table-setting__header"},Tu={class:"fox-table-setting__body"},Cu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},$u={key:0,class:"fox-table-setting__body-title"},Nu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],ku={class:"tools-item"},Pu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Iu={key:0,class:"fox-table-setting__body-title"},Vu=["data-index","draggable"],Ou=["onMouseover","onMouseleave"],Du={class:"tools-item"},Fu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ru={key:0,class:"fox-table-setting__body-title"},Au=["data-index","draggable"],Mu=["onMouseover","onMouseleave"],Lu={class:"tools-item"};function Bu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),P=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",wu,[l.createElementVNode("div",Su,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Tu,[l.createVNode(P,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Cu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",$u,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",ku,[l.createVNode(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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Nu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Pu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Iu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Ou)]),_:2},1032,["label"]),l.createElementVNode("div",Du,[l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Vu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Fu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Ru,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Mu)]),_:2},1032,["label"]),l.createElementVNode("div",Lu,[l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Au))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const gn=_e(xu,[["render",Bu]]);let _u=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let c=(n-1)*r,f=c+r;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,r,a,i,s]);const u=ze(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Qe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function qu(){const e=l.getCurrentInstance();return new _u(e.proxy)}class ju{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=ze(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=ze(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function qr(){const e=l.getCurrentInstance();return new ju(e.proxy)}const zu=Symbol.for("TableStateKey"),po={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},vo={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},En={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},Hu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Ku(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let 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 kn(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Ku(n,r);if(a!==i)return!1}return!0})}function Wu(e,t,o){return{inheritAttrs:!1,props:{...we,...Pe,...po,...vo,...En,...Hu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Te({componentName:e,validateHandler:{getValue(...X){return O.value}}},n.prop??r.attrs.name),u=e,c=l.computed(()=>({[u]:!0})),f=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),P=l.shallowRef({}),g=l.computed(()=>({...P.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=se(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,X=>{h.value=X}),l.watch(()=>n.pageSize,X=>{m.value=X}),l.watch([h,m],([X,ne],[oe,ae])=>{ne!==ae&&(h.value=1,X=1),w(n.data,X,ne,g.value)}));const b=()=>Array.isArray(n.data)?!0:se(n.autoLoad);b()&&l.watch([()=>n.data,g],async([X,ne],[oe,ae])=>{b()&&(X!==oe&&(N=!0),!(!Array.isArray(X)&&Xe(X,oe)&&Xe(ne,ae))&&(S?(h.value=0,M.value=!0,O.value=[],C()):h.value===1?w(X,h.value,m.value,ne):h.value=1))},{deep:!0});const $=X=>{h.value=X,i("page-index-change",X)},j=X=>{m.value=X,i("page-size-change",X)},M=l.ref(!0),L=l.ref(0),O=l.ref(),A=qu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,X=>se(X)),w=async(X,ne,oe,ae,Ie)=>{N=!1;try{if(Ie===!0){if(!M.value)return!1;const me=await A.load("table",X,ne,oe,ae,N,a.value);return L.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=L.value)||me.page.length<oe?(M.value=!1,!1):!0}else{const me=await A.load("table",X,ne,oe,ae,N,a.value);return L.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),L.value=0,O.value=[]}return!1};let q=!1;const C=async()=>{if(!q){if(q=!0,!M.value){q=!1;return}h.value+=1,await w(n.data,h.value,m.value,g.value,!0),q=!1}},k=(X={},ne=!1)=>new Promise(async oe=>{P.value={...l.toRaw(X??{})},ne||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],M.value=!0,await C()):await w(n.data,h.value,m.value,g.value),oe()}),D=()=>{L.value=0,O.value=[],S===!0&&(h.value=0,M.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},Z=l.ref(null);if(S===!0){let X=null;const ne=()=>{Z.value&&(X=new IntersectionObserver(ae=>{let Ie=!1;for(let me of ae)if(me.intersectionRatio>0){Ie=!0;break}Ie&&C()}),X.observe(Z.value))},oe=()=>{!X||!Z.value||(X.unobserve(Z.value),X=null)};l.onMounted(ne),l.onBeforeUnmount(oe)}b()&&!E.value&&k();const G=l.ref(null);l.provide(zu,{currentRow:G});const ee=(X,ne)=>{G.value=X,i("current-change",X,ne)},re=(X,ne,oe)=>{i("row-click",X,ne,oe),se(n.rowClickSelectable)===!0&&ye?.value.toggleRowSelection(X)},I=[],x=(X,ne)=>{if(i("expand-change",X,ne),se(n.uniqueExpansion))if(Array.isArray(ne)&&ne.length==0){const oe=I.length;I.splice(0,oe)}else{I.forEach(ae=>{ae!==X&&ye?.value.toggleRowExpansion(ae,!1)});const oe=I.length;I.splice(0,oe,X)}},F=r.attrs.id??n.prop??r.attrs.name,V=qr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(ne=>({...ne})),columnPropertyList:p.value}),B=X=>{p.value=[...X],U()},R=async()=>{const X=await V.load(F);X&&(p.value=X)},U=()=>{V.save(F,p.value)},z=()=>{V.remove(F)};R();const Q=X=>X?X.type?X.type:X.label?X.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(X,ne)=>{for(let oe in ne){const ae=ne[oe];typeof ae!="function"&&(X[oe]=ae)}},K=l.computed(()=>{const X=te(),ne=new Map;if(H=[],X.forEach(oe=>{const ae=oe;if(!ae.props)return;const Ie=Q(ae.props);ne.set(Ie,oe);const me={label:"",prop:""};T(me,ae.props),H.push(me)}),p.value.length===H.length){const oe=[];for(let ae of p.value){const Ie=Q(ae),me=ne.get(Ie);if(!me)return X;if(ae.visible===!1)continue;const Ue=me;Ue.props.fixed=ae.fixed,oe.push(Ue)}return oe}return X}),J=l.shallowRef(new Map),le=({row:X,column:ne,rowIndex:oe,columnIndex:ae})=>{const Ie=`${oe}_${ne.property}`,me=`${oe}_${ae}`;let Ue=J.value.get(Ie);return Ue||(Ue=J.value.get(me)),typeof Ue=="string"?Ue:""},fe=X=>X?ne=>{const oe=[];let ae=le(ne);return ae&&oe.push(ae),ae=typeof X=="function"?X(ne):X,ae&&oe.push(ae),oe.length===0?"":oe.join(" ")}:le,ue=(X=!1)=>{J.value.forEach((ne,oe)=>{ge(oe,ne,X)})},ge=(X,ne,oe=!1)=>{const ae=`${X}_item`;oe?(s.clearPersistantMessage(),Array.isArray(ne)?s.emitToChildren({name:X},"setCellClassNames",[]):s.emitToChildren({name:ae},"setCustomClassName","")):Array.isArray(ne)?s.emitToChildren({name:X,cachePolicy:"Persistant",uniqueId:ae},"setCellClassNames",ne):s.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:ae},"setCustomClassName",ne)},He=(X,ne,oe)=>{const ae=`${X}_${ne}`;oe?(J.value.set(ae,oe),ge(ae,oe)):(J.value.delete(ae),ge(ae,"",!0)),l.triggerRef(J)},tt=X=>{ue(!0),J.value.clear(),X.forEach(ne=>{const oe=`${ne.rowIndex}_${ne.column}`;Array.isArray(ne.children)?J.value.set(oe,ne.children):typeof ne.cellClassName=="string"&&J.value.set(oe,ne.cellClassName)}),ue(),l.triggerRef(J)},ht=()=>{ue(),J.value.clear(),l.triggerRef(J)},nt=l.shallowRef(new Map),Wl=({rowIndex:X})=>{const ne=`${X}`;return nt.value.get(ne)??""},Qr=X=>X?ne=>{const oe=[];let ae=Wl(ne);return ae&&oe.push(ae),ae=typeof X=="function"?X(ne):X,ae&&oe.push(ae),oe.length===0?"":oe.join(" ")}:Wl,Jr=(X,ne)=>{const oe=`${X}`;ne?nt.value.set(oe,ne):nt.value.delete(oe),l.triggerRef(nt)},ea=()=>{nt.value.clear(),l.triggerRef(nt)},ye=l.ref();return Ce({clearSelection:()=>ye?.value.clearSelection(),getSelectionRows:()=>ye?.value.getSelectionRows(),toggleRowSelection:(X,ne)=>{ye?.value.toggleRowSelection(X,ne)},toggleRowSelectionByProp:(X,ne)=>{if(!O.value)return;const oe=kn(O.value,X);oe.length!==0&&oe.forEach(ae=>{ye?.value.toggleRowSelection(ae,ne)})},toggleAllSelection:()=>{ye?.value.toggleAllSelection()},toggleRowExpansion:(X,ne)=>{ye?.value.toggleRowExpansion(X,ne)},toggleRowExpansionByProp:(X,ne)=>{if(!O.value)return;const oe=kn(O.value,X);oe.length!==0&&oe.forEach(ae=>{ye?.value.toggleRowExpansion(ae,ne)})},setCurrentRow:X=>{ye?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!O.value)return;const ne=kn(O.value,X);ne.length!==0&&ye?.value.setCurrentRow(ne[0])},getCurrentRow:()=>G.value,clearSort:()=>{ye?.value.clearSort()},clearFilter:X=>{ye?.value.clearFilter(X)},doLayout:()=>{ye?.value.doLayout()},sort:(X,ne)=>{ye?.value.sort(X,ne)},scrollTo:(X,ne)=>{ye?.value.scrollTo(X,ne)},setScrollTop:X=>{ye?.value.setScrollTop(X)},setScrollLeft:X=>{ye?.value.setScrollLeft(X)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return L.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:He,setCellClassNames:tt,clearCellClassName:ht,setRowClassName:Jr,clearRowClassName:ea}),()=>{const ne={...Ye(r.attrs),onCurrentChange:ee,onRowClick:re,onExpandChange:x,data:O.value,ref:ye,class:c.value,"cell-class-name":fe(n.cellClassName),"row-class-name":Qr(n.rowClassName)},oe={};if(r.slots.default&&(oe.default=()=>K.value),r.slots.append&&(oe.append=r.slots.append),r.slots.empty&&(oe.empty=r.slots.empty),S===!0){const qe=[];if(M.value){const Tt=l.h(Ee.Loading,{class:`${u}__infinite-icon`});qe.push(Tt);const bn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);qe.push(bn)}else{const Tt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);qe.push(Tt)}const it={ref:Z,class:`${u}__infinite`},yn=l.h("div",it,qe);oe.append=()=>yn}const ae=l.h(y.ElTable,ne,oe),Ie=[];if(Ie.push(ae),!S){let qe=null;if(typeof r.slots.pagination=="function")qe=r.slots.pagination();else if(n.showPagination){const it={class:v.value,total:L.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};qe=l.h(y.ElPagination,it)}if(n.showSetting){const it=[];qe&&it.push(qe);const yn=l.h(y.ElIcon,{class:f.value},{default:()=>l.h(Ee.Setting)}),Tt=rr(n,En),bn=l.h(gn,{...Tt,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>yn});it.push(bn);const ta=l.h("div",{class:d.value},it);Ie.push(ta)}else qe&&Ie.push(qe)}const me={default:()=>Ie},St={...ke(n,po,vo,En),prop:`${n.prop}_item`};return St.contentClass=`${u}__wrap`,St.errorMarkClass="is-table-error",E.value&&b()&&(St["appear-listen"]=!0,St.onAppear=W),l.h(o,St,me)}}}}const{componentName:Yu,create:Uu,scope:Gu}=ie("table-item"),vl=Uu(Wu(Yu,Gu,Se));function xt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Xu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Zu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Qu(){const e=l.getCurrentInstance();return new Zu(e.proxy)}function jr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=xt(e,t),r=xt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function Ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=xt(e,a)===t;else if(o==="item")i=jr(e,a,t);else{let s=At(e,a);s==null&&(s=xt(e,a)),i=s===t}if(i){r=a;break}}return r}function ec(e){return{text:e,value:e}}function tc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function nc(e,t,o){return{inheritAttrs:!0,props:{...we,...Pe,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(O,A,N,E=!0)=>{const w=Ju(n,O,A,N);if(w===null){if(c.value===null)return;c.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!jr(n,w,c.value)){u.value=O;const C=l.toRaw(w);c.value=C;let k=null;n.valueType==="text"?k=xt(n,C):n.valueType==="item"?k=C:k=At(n,C),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),v=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,O=>se(O)),P=Qu(),g=async(O,A)=>{if(O){const N=await P.load("radio",O,A);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>ec(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,A])=>{g(O,A)},{immediate:!v.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,A])=>{f(A,n.valueType,O,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{f(O,"value",d.value,!0)};let j=he(n,"hintText"),M=he(n,"hintVisible");const L=(O,A)=>{const N=[];return O.forEach((E,w)=>{const q=At(n,E),C=xt(n,E);let k=Xu(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=tc(n,E,w)??{},Y=`${q}_${w}`,W={...D,key:Y,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(y.ElRadioButton,W,{default:()=>[C]})):typeof A=="function"?N.push(l.h(y.ElRadio,W,{default:()=>A(E)})):N.push(l.h(y.ElRadio,W,{default:()=>[C]}))}),N};return()=>{const A={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>L(d.value,r.slots.text);const w=l.h(y.ElRadioGroup,A,E);N.push(w);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,yo),hintText:j.value,hintVisible:M.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:lc,create:oc,scope:rc}=ie("radio-item"),yl=oc(nc(lc,rc,Se));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ac(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ic=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function sc(){const e=l.getCurrentInstance();return new ic(e.proxy)}function zr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=yt(e,t),i=yt(e,o);return a===i}function uc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=wt(e,i)===a;else if(o==="item")s=zr(e,i,a);else{let u=yt(e,i);u==null&&(u=wt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function cc(e){return{text:e,value:e}}function fc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const bo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function dc(e,t,o){return{inheritAttrs:!0,props:{...we,...Pe,...bo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(O,A,N,E=!0)=>{const w=uc(n,O,A,N);if(w===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(w.length!==c.value.length)q=!1;else for(let C=0;C<w.length;C++){const k=w[C],D=c.value[C];if(!zr(n,k,D)){q=!1;break}}if(!q){c.value=w;let C=[],k=[];w.forEach(Y=>{C.push(yt(n,Y)),n.valueType==="text"?k.push(wt(n,Y)):n.valueType==="item"?k.push(Y):k.push(yt(n,Y))}),u.value=C;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),v=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,O=>se(O)),P=sc(),g=async(O,A)=>{if(O){const N=await P.load("checkbox",O,A);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>cc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,A])=>{g(O,A)},{immediate:!v.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,A])=>{f(A,n.valueType,O,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{f(O,"value",d.value,!0)};let j=he(n,"hintText"),M=he(n,"hintVisible");const L=(O,A)=>{const N=[];return O.forEach((E,w)=>{const q=yt(n,E),C=wt(n,E);let k=ac(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=fc(n,E,w)??{},Y=`${q}_${w}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(y.ElCheckboxButton,W,{default:()=>[C]})):typeof A=="function"?N.push(l.h(y.ElCheckbox,W,{default:()=>A(E)})):N.push(l.h(y.ElCheckbox,W,{default:()=>[C]}))}),N};return()=>{const A={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:xe(n.max),min:xe(n.min),onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>L(d.value,r.slots.text);const w=l.h(y.ElCheckboxGroup,A,E);N.push(w);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,bo),hintText:j.value,hintVisible:M.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:hc,create:mc,scope:gc}=ie("checkbox-item"),bl=mc(dc(hc,gc,Se)),xo={modelValue:{type:[Number,String],required:!1}};function pc(e,t,o){return{props:{...we,...Pe,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>xe(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=he(n,"hintText"),P=l.ref(!1);const g=l.ref();return Ce({}),()=>{const m={...Ye(r.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(y.ElRate,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const L={...ke(n,xo),hintText:v.value,hintVisible:P.value,prop:`${n.prop}_item`};return l.h(o,L,j)}}}}const{componentName:vc,create:yc,scope:bc}=ie("rate-item"),xl=yc(pc(vc,bc,Se)),wo={modelValue:{type:[Boolean,String,Number],required:!1}};function xc(e,t,o){return{props:{...we,...Pe,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=he(n,"hintText"),P=he(n,"hintVisible");const g=l.ref();return Ce({}),()=>{const m={...Ye(r.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(y.ElSwitch,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const L={...ke(n,wo),hintText:v.value,hintVisible:P.value,prop:`${n.prop}_item`};return l.h(o,L,j)}}}}const{componentName:wc,create:Sc,scope:Tc}=ie("switch-item"),wl=Sc(xc(wc,Tc,Se)),So={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Cc(e,t,o){return{props:{...we,...Pe,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),c=he(n,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),v=M=>{u("update:modelValue",M),u("change",M)};let P=he(n,"hintText"),g=l.ref(!1);const h=M=>{let O=M.target.value;s.value=!0,pe(P.value)||(g.value=!0),u("focus",O,M)},m=M=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=M.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,M)},S=()=>{u("clear","")},b=l.ref(!1),$=M=>{b.value=M,u("visible-change",M),M||u("selected")},j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const L={...Ye(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":v,onClear:S,onFocus:h,onBlur:m,onVisibleChange:$},O={};r.slots.option&&(O.default=r.slots.option);const A=[],N=l.h(y.ElTreeSelect,L,O);A.push(N);const E={default:()=>A};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,So),hintText:P.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:$c,create:Nc,scope:Ec}=ie("tree-select-item"),Sl=Nc(Cc($c,Ec,Se)),kc={},Pc={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"},Ic=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),Vc=[Ic];function Oc(e,t){return l.openBlock(),l.createElementBlock("svg",Pc,Vc)}const Dc=_e(kc,[["render",Oc]]),{componentName:jh,create:Fc,scope:zh}=ie("group-setting"),Rc={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Ac=Fc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Dc,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Rc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=qr(),s=I=>I.length>1,u=()=>{const I=[],x=[...a.value];a.value=x.map((V,p)=>(V.visible!==!1&&I.push(V.prop),{...V,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),$.value=I},c=I=>{let x=null;if(typeof I=="string")x=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const V=I.$el??I;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const F=[];return x.forEach(V=>{const p=V.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=V.getAttribute("prop")??"",R=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:R!=="none"})}),F},f=()=>{if(!r){const I=c(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const x=await i.load(e.groupProp),F=V=>{if(!V||!r)return;const p=r.map(H=>({...H}));Array.isArray(x)&&x.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&P(!1)};r?F(!0):ln(f,e.initDelay,5,50,!1,F)},v=()=>{const I=r??[];a.value=I.map(x=>({...x})),u(),P()},P=(I=!0)=>{I&&i.save(e.groupProp,a.value);const x=a.value.map(F=>({...F}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const x=[];a.value.forEach(V=>{I&&x.push(V.prop),V.visible=I}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),$.value=x,P()},b=()=>{v()},$=l.ref([]),j=I=>{a.value.forEach(F=>{const V=I.indexOf(F.prop)!==-1;F.visible=V}),h.value=!1,m.value=!1;const x=a.value.length;I.length===x?h.value=!0:I.length>0&&(m.value=!0),P()},M=()=>{d()};l.onMounted(()=>{d(!0)});const L={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,A=I=>{const x=I.currentTarget;x&&x.dataset&&(L.index=x.dataset.index)},N=I=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},E=I=>{const x=I.currentTarget;I.relatedTarget;const F=O(x);F&&(I.preventDefault(),L.currentRow&&L.currentRow!==F&&L.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),L.currentRow=F)},w=I=>{I.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},q=I=>{const x=I.currentTarget,F=O(x);if(!F)return;I.preventDefault();const V=Number(L.index),p=Number(F.dataset.index);if(V!==p){if(V<p){const H=a.value[V];a.value.splice(V,1),a.value.splice(p,0,H)}else{const H=a.value[V];a.value.splice(V,1),a.value.splice(p+1,0,H)}u(),P()}},C=I=>{const x=a.value[I];a.value.splice(I,1),a.value.splice(0,0,x),u(),P()},k=I=>{const x=a.value[I];a.value.splice(I,1),a.value.push(x),u(),P()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const x=document.createRange();return x.setStart(I,0),x.setEnd(I,I.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:$,handleCheckChange:j,onShow:M,onDragStart:A,onDragEnd:N,onDragOver:E,onDragLeave:w,onDrop:q,checkboxLabelStyle:g,toTop:C,toBottom:k,onMouseOverForOverflowText:(I,x,F)=>{const V=I.currentTarget;if(V){const p=Math.floor(V.offsetWidth);if(Math.floor(W(V))>p){let _=D.get(x);if(_){if(_===Y)return;Oe.hide(_)}_=Oe.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(x,_),Y=_}}},onMouseLeaveForOverflowText:(I,x)=>{const F=D.get(x);F&&(Oe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,x)=>{const F=I.currentTarget;F&&(Y&&Oe.hide(Y),Y=Oe.show(F,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Oe.hide(Y),Y=null)}}}}),Mc={class:"fox-group-setting"},Lc={class:"fox-group-setting__header"},Bc={class:"fox-group-setting__body"},_c={class:"fox-group-setting__body-list","data-role":"container"},qc=["data-index","draggable"],jc=["onMouseover","onMouseleave"],zc={class:"tools-item"};function Hc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Mc,[l.createElementVNode("div",Lc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=P=>e.isCheckAll=P),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Bc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=P=>e.checkedValue=P),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",_c,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,P=>(l.openBlock(),l.createElementBlock("div",{key:P.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":P.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:P.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,P.prop,P.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,P.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(P.label),45,jc)]),_:2},1032,["label"]),l.createElementVNode("div",zc,[l.createVNode(f,{onClick:g=>e.toTop(P.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(P.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,qc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=_e(Ac,[["render",Hc]]);var Kc=["aria-labelledby"],Wc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Kc))}}),Yc=["aria-labelledby"],Cl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8M550.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 16s-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.4zM121.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.4zM38.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.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 16zm160-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.4M473.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.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.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.8M985.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.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Yc))}}),Uc=["aria-labelledby"],Gc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Uc))}}),Xc=["aria-labelledby"],Zc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Xc))}}),Qc=["aria-labelledby"],Jc=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 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)]],14,Qc))}});const ef={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},To=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],tf=(e,t)=>t[e.visibleKey],Co=(e,t)=>t[e.disabledKey],nf=(e,t)=>{const o=t[e.doitKey];return se(o)},lf=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function of(e,t,o,n=!1){return{props:{...ef},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),c=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),P=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const x=I;x?(h.value=x,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),j=(I,x)=>{$.value[x]=I},M=I=>x=>{j(x,I)},L=(I,x)=>{const F=b.value,V=$.value;if(!F||!V||!V[I])return;const p=V[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,x?0:.3,r.direction)},O=(I,x,F,V)=>{let p=0;const H=V==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){V==="horizontal"?I.scrollLeft+=(x-H)/_:I.scrollTop+=(x-H)/_,++p<_&&Un(B)}B()},A=(I,x)=>{const F=Nt(r,I),V={};return V[`${e}__titles-item`]=!0,V.disabled=Co(r,I),V.active=F===d.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},N=(I,x)=>{const F={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(F,x.style),F},E=(I,x)=>`${Nt(r,I)??x}`,w=(I,x)=>{const F=Nt(r,I),V={};V[`${e}__popup-item`]=!0,V.disabled=Co(r,I),V.active=F===d.value,r.shape&&(V[`${r.shape}`]=!0);const p=$o(r,I,x);return p&&p.disabled===!0&&(V.disabled=p.disabled),V},q=l.computed(()=>(r.data??[]).filter(x=>tf(r,x)!==!1)),C=(I,x)=>{const F=Nt(r,I);if(d.value==F)return;const V=()=>{d.value=F,r.scroll&&L(x,!1),i("update:modelValue",F),i("change",I,x)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,x);Xo(p)?p.then(H=>{H!==!1&&V()}).catch(()=>{V()}):p!==!1&&V()}else V()},k=(I,x)=>function(){C(I,x)},D=(I,x)=>{C(I,x),S(!1)},Y=(I,x)=>function(){D(I,x)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(F=>Nt(r,F)===d.value);x!==-1&&L(x,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const Z=(I,x)=>{if(a.item)return a.item({item:I,index:x});const F=$o(r,I,x),V=[];if(a.text){const B=a.text({item:I,index:x});V.push(B)}else{const B=[];if(F?.doit===!0||nf(r,I)){const Q={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Q);B.push(te)}const R=F?.num??lf(r,I);if(R){let Q="";const te=xe(R);te>=100?Q="99+":Q=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Q]);B.push(K)}const U={class:`${e}__titles-item-text`};B.push(To(r,I));const z=l.h("view",U,B);V.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);V.push(H);const _={ref:M(x),class:A(I,F),style:N(I,F),key:E(I,x),onClick:k(I,x)};return l.h("view",_,V)},G=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const V=q.value[F],p=Z(V,F);I.push(p)}const x={ref:b,class:u.value,style:c.value};return l.h("view",x,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const x={class:`${e}__navigation`,onClick:m};return l.h("view",x,[I])},re=()=>{const I=[];for(let F=0;F<q.value.length;F++){const V=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:V,index:F}):p=To(r,V);const H={class:w(V,F),key:E(V,F),onClick:Y(V,F)},_=l.h("view",H,[p]);I.push(_)}const x={class:v.value,style:P.value};return l.h("view",x,I)};return()=>{const I=[],x=G();if(I.push(x),r.showQuickNavigation){const V=ee();I.push(V);const p=re();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:rf,componentName:af,scope:sf}=ie("tabs-bar"),$l=rf(of(af,sf,Wc,!1)),Hr=Symbol("TabsStatesKey"),uf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function cf(e,t,o=!1){return{props:{...uf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Hr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const c=l.ref(null),f=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const P=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const m=an(c.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(c.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:P.value,ref:f},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:c};return l.h("view",S,[m])}}}}const{create:ff,componentName:df,scope:hf}=ie("tabs-container"),Nl=ff(cf(df,hf,!1)),mf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function gf(e,t,o){return{props:{...mf},setup(n,{emit:r,slots:a}){const i=l.inject(Hr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,P=l.h(v,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[P,m]);c.push(b)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:pf,componentName:vf,scope:yf}=ie("tabs-pane"),El=pf(gf(vf,yf,Cl)),bf={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 xf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function No(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Eo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function wf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Pn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function ko(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Po(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Sf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Tf(){const e=l.getCurrentInstance();return new Sf(e.proxy)}function Cf(e,t,o,n){return{props:{...bf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Tf(),c=l.ref([]),f=l.computed(()=>c.value.filter(x=>wf(r,x)!==!1)),d=l.ref(-1),v=()=>{const x=r.modelValue,F=f.value.findIndex(V=>No(r,V)===x);d.value!==F&&(d.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,f],()=>{v()});const P=x=>d.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const F=f.value[x],p=(In(r,F,x)??{}).status??Pn(r,F);return P(x)||p},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),S=(x,F,V,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),x===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:V?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),$=(x,F={})=>{const V={...F};return b.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},j=(x,F)=>{let V={};if(F<f.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},M=x=>f.value.length-1===x,L=(x,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const V=d.value,p=F;d.value=F,r.scroll&&re(F,!1);const H=No(r,x);i("update:modelValue",H);const _={fromIndex:V,currentIndex:p,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),A=async(x,F)=>{try{const V=await u.load("stesbar",x,F);Array.isArray(V)&&(c.value=V),O.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,F])=>{x&&A(x,F)},{immediate:!0});const N=(x,F,V,p,H)=>{let _=null;if(a.icon)_=a.icon({item:x,index:F,status:p});else if(p==="done"){const R={};r.iconSize&&(R.width=r.iconSize,R.height=r.iconSize);const U=r.icon??o;_=l.h(U,R)}else{const R=V??`${F+1}`;_=l.h("span",{},[R])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||L(x,F)}};return l.h("view",B,[_])},E=(x,F,V)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(x,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},w=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const p=r.markIcon??n;x=l.h(p,V)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},q=(x,F,V,p,H)=>{const _=[];if(!M(F)){const U=E(x,F);_.push(U)}const B=N(x,F,V,p,H);_.push(B);const R={class:"fox-steps-bar__head"};return l.h("view",R,_)},C=(x,F,V,p)=>{let H=null;a.main?H=a.main({item:x,index:F,status:V}):H=xf(r,x);const _={class:"fox-steps-bar__main",onClick:()=>{p||L(x,F)}};return l.h("view",_,[H])},k=(x,F,V)=>{let p=null;if(a.sub){p=a.sub({item:x,index:F,status:V});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(x,F)=>{const V=In(r,x,F)??{},p=V.status??Pn(r,x);let H=Eo(r,x);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=V.label??Po(r,x),B=[],R=N(x,F,_,p,H);R&&B.push(R);const U=C(x,F,p,H);if(U&&B.push(U),!M(F)){const J=E(x,F);J&&B.push(J)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Q=V.class,te=V.style??{};let T=ko(r,x);V.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Q),style:$(F,te)};return l.h("view",K,[z])},Y=(x,F)=>{const V=In(r,x,F)??{},p=V.status??Pn(r,x);let H=Eo(r,x);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=V.label??Po(r,x),B=[],R=r.layout;for(let T of R)if(T==="head"){const K=q(x,F,_,p,H);B.push(K)}else if(T==="main"){const K=C(x,F,p,H);B.push(K)}else if(T==="sub"){const K=k(x,F,p);B.push(K)}else if(T==="mark"){const K=w();B.push(K)}const U=V.class,z=V.style??{};let Q=ko(r,x);V.doit===!0&&(Q=!0);const te={ref:ee(F),class:S(F,p,H,Q,U),style:$(F,z)};return l.h("view",te,B)},W=l.ref(),Z=l.ref([]),G=(x,F)=>{Z.value[F]=x},ee=x=>F=>{G(F,x)},re=(x,F)=>{const V=W.value,p=Z.value;if(!V||!p||!p[x])return;const H=p[x];let _=0;r.direction==="vertical"?_=H.offsetTop-(V.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(V.offsetWidth-H.offsetWidth)/2,I(V,_,F?0:.3,r.direction)},I=(x,F,V,p)=>{let H=0;const _=p==="horizontal"?x.scrollLeft:x.scrollTop,B=V===0?1:Math.round(V*1e3/16);function R(){p==="horizontal"?x.scrollLeft+=(F-_)/B:x.scrollTop+=(F-_)/B,++H<B&&Un(R)}R()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const p=f.value[V],H=D(p,V);x.push(H)}else for(let V=0;V<f.value.length;V++){const p=f.value[V],H=Y(p,V);x.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,x)}}}}const{componentName:$f,create:Nf,scope:Ef}=ie("steps-bar"),kl=Nf(Cf($f,Ef,Zc,Jc)),kf=Symbol.for("InnerPageScopeKey"),Pf=Symbol.for("PageWrapperKey");function If(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(kf,!0);const r={};l.provide(Pf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.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 l.h(y.ElDialog,c,f)}}}}const{componentName:Hh,create:Vf,scope:Kh}=ie("dialog-item"),Pl=Vf(If());let Et=0;const Io="fox-overflow-hidden",Vo=()=>Ze?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Et&&Vo().classList.add(Io),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Vo().classList.remove(Io)}catch{}}],Df={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:Ff,create:Rf}=ie("overlay"),Af=Rf({props:{...Df},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Of(()=>e.lockScroll),r=l.computed(()=>({[Ff]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Mf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const pn=_e(Af,[["render",Mf]]),Lf={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:{}}},Kr=2e3;let Oo=Kr;const Bf=(e,t)=>({components:t,props:{...Lf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Kr&&(Oo=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Oo,o.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},P=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():c()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:d,onClickOverlay:v,onOpened:P,onClosed:g}}}),{componentName:_f,create:qf}=ie("popup"),jf=qf(Bf(_f,{FoxOverLay:pn,Close:Gc}));function zf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Il=_e(jf,[["render",zf]]),{create:Hf}=ie("toast"),Kf=Hf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,P=>{P&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const P=de(e.iconSize);return l.h(e.icon,{width:P,height:P,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Wf={key:1,class:"fox-toast-title"},Yf=["innerHTML"];function Uf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Wf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Yf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Vl=_e(Kf,[["render",Uf]]),Gf={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"}},Xf=(e,t,o)=>({props:{...Gf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=gr(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),d=N=>{let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),a("update:modelValue",w,N),a("change",w,N)},v=l.ref({}),P=N=>{let w=N.target.value;u.active=!0,v.value=n.focusStyle,a("focus",w,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),v.value={},a("blur",w,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},$=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},M=N=>{a("click-left-icon",n.modelValue,N)},L=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const A=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:L.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:P,onBlur:g,onkeyup:$},w=l.h("input",E);N.push(w);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...v.value}};return l.h("view",C,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},C=l.h("span",q,[n.label]);N.push(C)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",q,[r.leftout()]);N.push(C)}const E=A();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",q,[r.rightout()]);N.push(C)}const w={class:`${e}`,style:c.value};return l.h("view",w,N)}}}),{componentName:Zf,create:Qf,scope:Jf}=ie("searchbar"),Ol=Qf(Xf(Zf,Jf,Ee.CircleClose)),ed=/scroll|auto|overlay/i,Wr=window;function td(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function nd(e,t=Wr){let o=e;for(;o&&o!==t&&td(o);){const{overflowY:n}=window.getComputedStyle(o);if(ed.test(n))return o;o=o.parentNode}return t}function Yr(e,t=Wr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=nd(e.value,t))}),o}const Ur=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ld={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 od(e,t,o){return{props:{...ld},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Yr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=b=>b?b.offsetTop+v(b.offsetParent):0,P=()=>{let b=0,$=0,j="down";if(c.value==window){const M=Ur();u.value&&(b=v(u.value)+u.value.offsetHeight-M-window.innerHeight),$=M}else{const{scrollHeight:M,clientHeight:L,scrollTop:O}=c.value;b=M-L-O,$=O}return f.beforeScrollTop>$?j="up":j="down",f.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&j=="down"},g=()=>{Ho(()=>{if(!P()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{c.value&&c.value.addEventListener("scroll",g,n.useCapture)},m=()=>{c.value&&c.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),j=[];if(f.isInfiniting){let A=a?.loading?.()??null;if(!A){let w=a?.loadingIcon?.()??null;if(!w){const k={class:["fox-infinite__bottom-box__img"]};w=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},C=l.h("view",q,[s.loadText.value]);A=[w,C]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,A);j.push(E)}else if(!n.hasMore){let A=a?.finished?.()??null;if(!A){const N={class:"fox-infinite__bottom-tips"};A=l.h("view",N,[s.loadMoreText.value]),j.push(A)}}const M={class:"fox-infinite__bottom"},L=l.h("view",M,j),O={class:d.value,ref:u};return l.h("view",O,[$,L])}}}}const{componentName:rd,create:ad,scope:id}=ie("infinite-loading"),Dl=ad(od(rd,id,Cl)),Do=10;function Gr(e,t){return e>t&&e>Do?"horizontal":t>e&&t>Do?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.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=Gr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function sd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(""),d=()=>f.value==="vertical",v=()=>f.value==="horizontal",P=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const $=m.touches[0];i.value=$.clientX-e.value,s.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=Gr(u.value,c.value))},start:m=>{if(P(),m.touches){const $=m.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:P,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:v}}const ud={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}},cd=(e,t,o)=>({props:{...ud},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),c=l.ref(),f=Yr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),P=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ne(n.headHeight)),O}),m=O=>{const A=+(n.pullDistance||n.headHeight);let N=O;return O>A&&(O<A*2?N=(O+A)/2:N=A+O/4),Math.round(N)},S=(O,A)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,A?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",$=()=>f.value==window?Ur()==0:f.value&&f.value.scrollTop==0,j=O=>{b()&&($()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},L=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let A=null;if(d.status==="loading"){if(A=a?.loading?.()??null,!A){const Y={class:["fox-pull-refresh-container-topbox-icon"]};A=l.h(o,Y)}}else d.status==="pulling"?A=a?.pulling?.()??null:d.status==="loosing"&&(A=a?.loosing?.()??null);A&&O.push(A);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[P.value]);O.push(E);const w={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",w,O),C={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",C,[q,a?.default?.()]),D={ref:c,class:v.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:M,onTouchend:L}):Object.assign(D,{onMousedown:j,onMousemove:M,onMouseup:L}),l.h("div",D,[k])}}}),{componentName:fd,create:dd,scope:hd}=ie("pull-refresh"),Al=dd(cd(fd,hd,Cl));function md(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=l.h(o.icon??"div",h)}const d={class:u.value,style:c.value},v=n.default?n.default():[],P=l.h("div",d,v),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,P]):l.h("div",g,[P,f])}}}}const{componentName:gd,create:pd,scope:Wh}=ie("indicator"),Ml=pd(md(gd));function vd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const yd={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 bd(e,t,o,n=!1){return{props:{...yd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},j=r.textColor??r.color;return j&&($.color=j),$}),c=($,j)=>{let M=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const L=r.highlightFilter;if($.indexOf(L)!==-1){const A=$.replace(new RegExp(L,"g"),`<span>${L}</span>`);j.innerHTML=A,j.class["is-highlight"]=!0,M=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const L=r.highlightFilter($);L&&(j.innerHTML=L,j.class["is-highlight"]=!0,M=l.h(r.tag,j))}return M},f=$=>{a.emit("click",$)};let d="";const v=()=>{const $=i.value;if(!$)return;const j=$.clientWidth;vd($,M=>{const L=$.innerHTML??"";pe(L)||M<j||(d?o?.show($,L,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show($,L,{type:"text",showArrow:r.showArrow},!0)??"")})},P=()=>{d&&o?.hide(d)};let g=null;const h=$=>{g||(g=setTimeout(()=>{v(),g=null},r.showAfter??0))},m=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{P()},r.hideAfter??0)},S=()=>{const $=i.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",m))},b=()=>{const $=i.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||(b(),P())}),()=>{const $={onClick:f,class:s.value,style:u.value,ref:i};let j=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const N=A[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=xe(r.digits),w=xe(r.decimalLength),q=se(r.autoPadding);let C=`${A[0].children}`,k=C.split("").reverse().join("");k=Qt(k,w,q,E,r.separator),C=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=c(C,$)),j||($.innerHTML=C,j=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const N=A[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${A[0].children}`;j=c(E,$),j||($.innerHTML=E,j=l.h(r.tag,$))}}}j||(j=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let L=null;if(r.icon){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const w={class:A,style:N};L=l.h("view",w,l.h(r.icon))}else if(a.slots.mark){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const w={class:A,style:N};L=l.h("view",w,{default:a.slots.mark})}else{const A={[`${e}__mark`]:!0};r.type&&(A[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const w={class:A,style:N};L=l.h("view",w)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[L,j])}}}}const{componentName:xd,create:wd,scope:Sd}=ie("text"),Ll=wd(bd(xd,Sd,Oe,!1)),Td={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ee.ArrowUp}};function Cd(e,t,o){return{props:{...Td},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const v={class:c.value},P=o(n.icon,v);return P&&d.push(P),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:$d,create:Nd,scope:Ed}=ie("more-button"),kd=(e,t)=>(e=e??Ee.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Nd(Cd($d,Ed,kd));function Pd(e){return e===window}const Xr=e=>{const t=l.unref(e);if(Pd(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:Id,create:Vd,scope:Yh}=ie("tour"),Od=Vd({components:{Close:Ee.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=Id,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:$,top:j}=r.value,M=e.steps[n.active].offset??g,L=[$+S/2,j+b/2],O=Number(h||S),A=Number(m||b);return{width:`${O+ +M.left+M.right}px`,height:`${A+M.top+M.bottom}px`,top:`${L[1]-A/2-+M.top}px`,left:`${L[0]-O/2-+M.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Xr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},P=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{P(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{P(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:v}}}),Dd={key:0,class:"fox-tour__content"},Fd={key:0,class:"fox-tour__content-top"},Rd={class:"fox-tour__content-inner"},Ad={class:"fox-tour__content-bottom"},Md={class:"fox-tour__content-bottom-init"},Ld={class:"fox-tour__content-bottom-operate"},Bd={key:1,class:"fox-tour__content fox-tour__content-tile"},_d={class:"fox-tour__content-inner"};function qd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Dd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Fd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Rd,l.toDisplayString(c.content),1),l.createElementVNode("div",Ad,[l.createElementVNode("div",Md,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Ld,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Bd,[l.createElementVNode("div",_d,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=_e(Od,[["render",qd]]),Ve=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,st=e=>e==null;class jd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fo(e,t){return new jd(e,t)}let gt=[];const Ro=e=>{const t=e;t.key==="Escape"&&gt.forEach(o=>o(t))},zd=e=>{l.onMounted(()=>{gt.length===0&&document.addEventListener("keydown",Ro),Ze&&gt.push(e)}),l.onBeforeUnmount(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Ze&&document.removeEventListener("keydown",Ro)})},Vn="fox-focus-trap.focus-after-trapped",Ao="fox-focus-trap.focus-after-released",Hd="fox-focus-trap.focusout-prevented",Mo={cancelable:!0,bubbles:!1},Kd={cancelable:!0,bubbles:!1},Lo="foxFocusAfterTrapped",Bo="foxFocusAfterReleased",Wd=Symbol("foxFocusTrap"),ql=l.ref(),vn=l.ref(0),jl=l.ref(0);let qt=0;const Zr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Yd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_o=(e,t)=>{for(const o of e)if(!Yd(o,t))return o},Ud=e=>{const t=Zr(e),o=_o(t,e),n=_o(t.reverse(),e);return[o,n]},Gd=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&Gd(e)&&t&&e.select()}};function qo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Xd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=qo(e,n),e.unshift(n)},remove:n=>{e=qo(e,n),e[0]?.resume?.()}}},Zd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(lt(n,t),document.activeElement!==o)return},jo=Xd(),Qd=()=>vn.value>jl.value,jt=()=>{ql.value="pointer",vn.value=window.performance.now()},zo=()=>{ql.value="keyboard",vn.value=window.performance.now()},Jd=()=>(l.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",jt),document.addEventListener("touchstart",jt),document.addEventListener("keydown",zo)),qt++}),l.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",jt),document.removeEventListener("touchstart",jt),document.removeEventListener("keydown",zo))}),{focusReason:ql,lastUserFocusTimestamp:vn,lastAutomatedFocusTimestamp:jl}),zt=e=>new CustomEvent(Hd,{...Kd,detail:e}),{componentName:Uh,create:eh,scope:Gh}=ie("focus-trap"),th={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"}},nh=eh({props:th,emits:[Lo,Bo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Jd();zd(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:$,currentTarget:j,shiftKey:M}=h,{loop:L}=e,O=m==="Tab"&&!S&&!b&&!$,A=document.activeElement;if(O&&A){const N=j,[E,w]=Ud(N);if(E&&w){if(!M&&A===w){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),L&&lt(E,!0))}else if(M&&[E,N].includes(A)){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),L&&lt(w,!0))}}else if(A===N){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(Wd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",v))});const c=h=>{o(Lo,h)},f=h=>o(Bo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,$=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),$&&o("focusin",h),!s.paused&&se(e.trapped)&&($?a=S:lt(a,!0))},v=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!Gn(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=zt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||lt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function P(){await l.nextTick();const h=l.unref(n);if(h){jo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Mo);h.addEventListener(Vn,c),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;Go($)||(lt($),document.activeElement!==$&&($="first")),$==="first"&&Zd(Zr(h),!0),(document.activeElement===m||$==="container")&&lt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,c);const m=new CustomEvent(Ao,{...Mo,detail:{focusReason:i.value}});h.addEventListener(Ao,f,{once:!0}),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Qd())&&lt(r??document.body,!0),jo.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&P(),l.watch(()=>e.trapped,h=>{se(h)?P():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g(),n.value&&(n.value.removeEventListener("keydown",u),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",v))}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:lh,create:oh,scope:Xh}=ie("floating-window"),rh=Symbol.for("InnerPageScopeKey"),ah=Symbol.for("PageWrapperKey"),ih={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}},sh=oh({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:nh},props:{...ih},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=lh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!A.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),c=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return st(i.value)?T.left="auto":T.left=Ve(i.value),st(s.value)?T.top="auto":T.top=Ve(s.value),st(u.value)?T.right="auto":T.right=Ve(u.value),st(c.value)?T.bottom="auto":T.bottom=Ve(c.value),st(e.zIndex)||(T["z-index"]=Ve(e.zIndex)),st(L.value)||(T.height=L.value),st(O.value)||(T.width=O.value),T}),v=l.computed(()=>e.closeIcon??Ee.Close),P=l.computed(()=>e.collapseIcon??Ee.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),$=l.ref(),j=l.ref(null),M=l.ref(null),L=l.computed(()=>Ve(e.height)||""),O=l.computed(()=>Ve(e.width)||""),A=l.ref(se(e.collapse)),N=(T,K=!0)=>{A.value!==T&&(A.value=T,T?x():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{w()},w=T=>{T=T??!A.value,N(T)};l.provide(rh,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(ah,q);const C=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),Z=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),G=l.ref(A.value),ee=l.computed({set:T=>{G.value=T},get:()=>n.value===!1?!1:G.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,re=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),re=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,c.value=null},p={x:0,y:0},B=Fo(T=>{if(!$.value)return;const K=$.value;if(V(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const J=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=J-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=c.value}else if(e.origin==="right-bottom"){const J=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=J-(K.offsetLeft+K.offsetWidth),c.value=le-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=c.value}else{const J=document.documentElement.clientWidth||document.body.clientWidth;u.value=J-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!$.value)return;const K=$.value;V(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Ve(i.value),K.style.top=Ve(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,c.value=p.y-T.y,K.style.left=Ve(i.value),K.style.bottom=Ve(c.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,c.value=p.y-T.y,K.style.right=Ve(u.value),K.style.bottom=Ve(c.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Ve(u.value),K.style.top=Ve(s.value))}),R={x:0,y:0},Q=Fo(T=>{k.value&&(R.x=k.value.offsetLeft,R.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=R.y+T.y;W.value=`${K}px`}),te=()=>{if($.value){const T=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=T}};return l.onMounted(()=>{if(e.draggable&&$.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),M.value&&T.push(M.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Q.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Q.close()}),{classes:f,styles:d,isShow:a,closeIcon:v,onClose:C,dialogRef:$,headerRef:j,onClickToggle:E,collapseIcon:P,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:Z,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),uh={ref:"headerRef",class:"fox-floating-window__header"},ch={class:"fox-floating-window__title"},fh={class:"fox-floating-window__tools"},dh={class:"fox-floating-window__body"},hh={class:"fox-floating-window__fixednav__text"};function mh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",uh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ch,l.toDisplayString(e.title),1),l.createElementVNode("div",fh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",dh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",hh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=_e(sh,[["render",mh]]);function gh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return hr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Zh,create:ph,scope:Qh}=ie("domain-provider"),Hl=ph(gh()),vh={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 yh(e,t){return{inheritAttrs:!1,props:vh,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,P)=>{if(f===null){a.set(v,{visible:null,callback:P});return}r.has(v)&&f.unobserve(v),r.set(v,{visible:null,callback:P}),f.observe(v)},s=v=>{if(f===null){a.delete(v);return}r.has(v)&&(r.delete(v),f.unobserve(v))};let u=o.initialVisibleObserverSize;ui({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(v,P,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch($){console.error($)}}},{root:v,rootMargin:P,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,P])=>{if(P||!v||f)return;let g=null;typeof v=="string"?g=document.querySelector(v):g=v,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Jh,create:bh,scope:em}=ie("rolling-provider"),Kl=bh(yh()),xh=[Qn,el,tl,nl,ll,Se,ol,rl,Lt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,gn,vl,yl,bl,xl,wl,Sl,Tl,$l,Nl,El,kl,Pl,pn,Il,Vl,Ol,Dl,Al,Rt,mn,Ml,Ll,Bl,_l,zl,Hl,Kl],wh=new _a(xh,[za],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>y.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>y.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>y.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>y.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>y.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>y.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>y.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>y.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>y.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>y.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>y.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>y.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>y.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>y.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>y.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>y.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>y.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ve;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=mt;exports.DateItem=sl;exports.DateUtils=Me;exports.DialogItem=Pl;exports.Domain=on;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Pl;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Lt;exports.FoxIndicator=Ml;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Se;exports.FoxMapping=Rt;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=pn;exports.FoxPage=Qn;exports.FoxPopup=Il;exports.FoxPrice=mn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=xl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Ol;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=wl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=gn;exports.FoxTabsBar=$l;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ll;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Vl;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Lt;exports.Indicator=Ml;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Se;exports.Mapping=Rt;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=pn;exports.Page=Qn;exports.Popup=Il;exports.Price=mn;exports.PriorityPolicy=Le;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=xl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Ol;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=wl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=gn;exports.TabsBar=$l;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ll;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Vl;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=Nr;exports.ValidateSchema=cr;exports.ValidateSchemaKey=je;exports.cancelRaf=oa;exports.clearNonNumber=pa;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=tn;exports.createValidateSchema=nn;exports.debounce=Vt;exports.debounceRef=Pa;exports.decimalLength=or;exports.default=wh;exports.defineBroadcast=xa;exports.defineConfigDomain=hr;exports.defineDataItem=mr;exports.defineDomain=Zn;exports.defineItem=Te;exports.definePageState=pr;exports.defineSimpleItem=gr;exports.deleteGlobalValidator=$a;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=ke;exports.extend=dt;exports.floatData=ba;exports.getGlobalValidateCheckEvents=ir;exports.getGlobalValidateResetEvents=ur;exports.getPageContentAreaHeight=Yt;exports.getPageContentAreaWidth=Ut;exports.getPageFooterAreaHeight=Dt;exports.getPageHeaderAreaHeight=Ot;exports.getRootDomain=pt;exports.hasSymbol=Qo;exports.includeProps=rr;exports.indexOf=va;exports.integerLength=lr;exports.isArray=aa;exports.isArrayLike=er;exports.isBrowser=Ze;exports.isDate=ua;exports.isESModule=fa;exports.isEmptyString=pe;exports.isEqual=Xe;exports.isFunction=Mn;exports.isHidden=en;exports.isInnerPage=Oa;exports.isMap=ia;exports.isNil=Gn;exports.isNumberString=nr;exports.isObject=Qe;exports.isPlainObject=Ln;exports.isPromise=Xo;exports.isRegExp=_n;exports.isSet=sa;exports.isString=Go;exports.isSubPage=Da;exports.isSymbol=ca;exports.isTouch=Fl;exports.isWindow=Jo;exports.lastIndexOf=ya;exports.makeArray=ga;exports.merge=tr;exports.multiply=Wo;exports.negate=Yo;exports.nextTick=ha;exports.numberFormat=Qt;exports.objectToString=Zo;exports.once=Ia;exports.overrideGlobalValidateHandler=Ta;exports.property=De;exports.raf=Un;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=Na;exports.setGlobalValidateHandler=Sa;exports.setGlobalValidateMessages=ka;exports.setGlobalValidateResetEvents=Ea;exports.setGlobalValidator=Ca;exports.throttle=dr;exports.toBoolean=se;exports.toNumber=xe;exports.toPadding=Ke;exports.toPx=de;exports.toPxDesc=Ne;exports.toTypeString=Jt;exports.toValue=he;exports.tryTimes=ln;exports.typeOf=Kt;exports.unNumberFormat=Uo;exports.updatePageState=qn;exports.useBroadcast=kt;exports.useDomain=at;exports.useExpose=Ce;exports.useInnerSize=Jn;exports.usePageState=rn;exports.usePosition=Cr;exports.useRawTouch=Rl;exports.useRect=Xr;exports.useSize=an;exports.useTouch=sd;exports.valueLength=Mt;
2
+ * @fox-js/foxui-desktop v4.0.0 Sun Aug 23 2026 11:01:17 GMT+0800 (China Standard Time)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ut=require("@fox-js/validator"),y=require("element-plus"),Ee=require("@element-plus/icons-vue"),Be=require("@fox-js/i18n"),Bt=window,na=typeof window<"u";function la(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function oa(e){na?cancelAnimationFrame(e):clearTimeout(e)}const Ho=la();function Kt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=Wn($e(e),$e(t)),o==1&&(n==1?e=wn(e):t=wn(t));let r=Ko(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(wn(r)):$e(r)}function wn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Ko(t,a)}function $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 Wn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ko(e,t){[e,t]=Wn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var be=function(e){return 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}({});function It(e,t=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=It(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Yl(r[1],a,n,o)?(n?"-":"")+Sn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Yl(s,i,n,o)&&(i=Sn(i),i.length>t)?(n?"-":"")+Sn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Yl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===be.DOWN||!o&&n===be.FLOOR||o&&n===be.CEILING)return!1;if(n===be.UP||o&&n===be.FLOOR||!o&&n===be.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 be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Sn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function On(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],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 v=0;for(let P=t.length-1;P>=c&&P>=0;P--)u[P]>-1&&u[P]<e.length&&(v+=parseInt(e[u[P]--])*parseInt(t[P]));v+=s,s=Math.floor(v/10),f=v%10+f,c--}return f=Ct(ra(f,a)),o==1&&(f="-"+f),f}function ra(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Dn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=$e(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=$e(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==c&&(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 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=Kt(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?"-":"")+$e(It(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),Kt(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ul(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Gl(e),Gl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,On(t,It(Dn(e,t),0,be.FLOOR)));return o+n}function Gl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Xl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Wn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}var Qt=class ce{value;static RoundingModes=be;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+$e(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=be.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return It(t,o,n)}round(t=0,o=be.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(It(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Kt(t,o)}add(t){return new ce(Kt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),Fn(t,o)}subtract(t){return new ce(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),On(t,o)}multiply(t){return new ce(On(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),Dn(t,o,n)}divide(t,o){return new ce(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Ul(t,o)}modulus(t){return new ce(Ul(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Xl(t,o)}compareTo(t){return Xl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),Rn(t)}negate(){return new ce(Rn(this.value))}};function Wo(e,t){return Qt.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return Qt.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,Qt.compareTo(e,t)}function Yo(e){return Qt.negate(e)}function Jt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",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="",v=s.split("").reverse();for(let P=0;P<v.length;P++)d+=v[P]+((P+1)%n==0&&P+1!=v.length?r:"");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 Uo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Un=Ho,aa=Array.isArray,ia=e=>en(e)==="[object Map]",sa=e=>en(e)==="[object Set]",ua=e=>e instanceof Date,Mn=e=>typeof e=="function",Go=e=>typeof e=="string",ca=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",Xo=e=>Qe(e)&&Mn(e.then)&&Mn(e.catch),Zo=Object.prototype.toString,en=e=>Zo.call(e),Ln=e=>en(e)==="[object Object]",Qo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function fa(e){return e.__esModule||Qo&&e[Symbol.toStringTag]==="Module"}const da=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function dt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let c;Array.isArray(u)?c=s&&Array.isArray(s)?s:[]:c=s&&typeof s=="object"?s:{},t[i]=dt(r,c,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)dt(!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)&&!Ln(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Ln(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Tn=da?Promise.resolve():null;function ha(e,...t){Tn!==null?t&&t.length>0?Tn.then(()=>{e(t)}):Tn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ie(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function xe(e){return typeof e=="number"?e:Number(e)}const ma={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Wt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Jo(e){return e&&typeof e=="object"&&"setInterval"in e}function tn(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function er(e){let t=!!e&&"length"in e&&e.length,o=Wt(e);return o==="function"||Jo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function tr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ga(e,t=[]){let o=t;return e!=null&&(er(Object(e))?tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Wt(e),n=Wt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],c=t[s];if(!Xe(u,c))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const Ze=typeof window<"u";function Gn(e){return e==null}function _n(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function lr(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function or(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Zl(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function pa(e,t=!0,o=!0){t?e=Zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function ya(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Mt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rr(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ba=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ve=Symbol.for("BroadcastKey");class Xn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;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(){const t=[...this.children];this.children=[],t.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||_n(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,s=t.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};t.resolve=u}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):_n(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}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){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};t.resolve=s}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function nn(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function xa(e,t,o){const n=o;if(n[ve])return n[ve];const r=l.inject(ve,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const ct=e=>e.default??e;class wa{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?kt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Pt=new wa;function Sa(e){Pt=e}function Ta(e){Pt?Object.assign(Pt,e):Pt=e}function Ca(e,t){ct(ut).setValidator(e,t)}function $a(e){ct(ut).deleteValidator(e)}let ar=["blur","clear"];function Na(e){ar=e}function ir(){return ar}let sr=["focus","change","setValue"];function Ea(e){sr=e}function ur(){return sr}function ka(e){ct(ut).messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const je=Symbol("ValidateSchemaKey");class cr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Pt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ct(ut).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?ct(ut).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ct(ut).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ct(ut),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function ln(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new cr(t,o,e)}const Yt=Symbol.for("EventEmitterKey");class fr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Vt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function dr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Pa(e,t){const o=Vt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function on(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){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 Ae=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class rn{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Va=new rn;function pt(){return Va}function at(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const qt=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=pt());const s=e||t.prop||t.name;let u=new rn(s);u.parent=i;const c=P=>{a[qt]||v(P),u?.set("modelValue",P)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[qt]??null,v=P=>{const g={};dt(!0,g,l.toRaw(P)),a[qt]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,P=>{u?.merge(P,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const P=l.inject(ve,null),g=nn(a,P,s,n);u.broadcast=g,a[ve]=g,l.provide(ve,g),a.broadcast=(S,b,...$)=>Reflect.apply(g.emit,g,[S,b,...$]);const h=l.inject(je,null),m=ln(a,h,{componentName:""});u.validateSchema=m,a[je]=m,l.provide(je,m),a[mt]=new Map,a.validate=(S=!0)=>{const b=[];let $=null;const j={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const M=S;$={name:L=>L?M.indexOf(L)!==-1:!1}}else if(S!=null&&typeof S=="object"){const M=S;if(Object.assign(j,M),Array.isArray(M.include)&&M.include.length>0){const L=M.include;$={name:O=>O?L.indexOf(O)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const L=M.exclude;$={name:O=>O?L.indexOf(O)===-1:!1}}else $={name:"*"}}if($){const M=g?.emitToChildren($,"validate",j);M&&Reflect.apply([].push,b,M)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(M=>{let L=[];return M.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(L=[...L,...O.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(S).forEach(M=>{let L=String(M);const O={componentName:"",fieldName:L,pureDataValidate:!0};if(u){const A=mr(u,L,O,g,m);a[mt].set(L,A);const N=S[L];N&&A.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),M={name:L=>j.includes(L),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(M,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const $=S;b={name:j=>j?$.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const $=S;if(Array.isArray($.include)&&$.include.length>0){const j=$.include;b={name:M=>M?j.indexOf(M)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const j=$.exclude;b={name:M=>M?j.indexOf(M)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=f();if(!b)return;const $={};if(dt(!0,$,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=$[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(M=>{b[M]=$[M]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys($).forEach(M=>{j.includes(M)||(b[M]=$[M])})}else Object.assign(b,$);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?c(S):g?.emitToChildren({name:b,messagingPolicy:"Once"},"setModelValue",S)},a.getModelValue=()=>f(),setTimeout(function(){g?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[je]=void 0,l.provide(je,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a[qt]=null,u=null,a=null}),u}function hr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=pt());const i=e||t.prop||t.name;let s=new rn(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ve,null);let s=nn(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(je,null);e.fieldName=e.fieldName??a;let c=ln(r,u,e);r[je]=c,l.provide(je,c),r.validate=(g=null)=>{if(!c)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,$=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,M=b.ignoreHidden??!0;$===!0&&e.disabled===!0||j===!0&&e.readonly===!0||M===!0&&tn(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=c?.validate();h.push(b)}if(m){let b=null;const $={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:M=>M?j.indexOf(M)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign($,j),Array.isArray(j.include)&&j.include.length>0){const M=j.include;b={name:L=>L?M.indexOf(L)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const M=j.exclude;b={name:L=>L?M.indexOf(L)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",$);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&($=[...$,...j.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>c?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&c?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let f=new fr(r);r[Yt]=f;const d=Vt((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(g=>{f&&f.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ur()).forEach(g=>{f&&f.on(g,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,c?.destroy(),r[je]=void 0,l.provide(je,null),c=null,f?.destroy(),r[Yt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:c,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function mr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};o.fieldName=i,o.validateHandler={getValue(f){return s.getValue()}};let u=ln({},r,o);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,P=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)P=!0,v=!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),P=!0,v=g.deep??!1}else typeof f=="boolean"&&(v=f),P=!0;if(P&&u){const g=u.validate();d.push(g)}if(v){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:S=>S?m.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&c){const m=c.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const d=f[i];d&&u?.setRule(d)};let c=nn(null,n,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function gr(){let t=l.getCurrentInstance()?.proxy,o=new fr(t);return t[Yt]=o,l.onUnmounted(()=>{o?.destroy(),t[Yt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(Ze){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function qn(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function pr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;qn(n,a,t,!0,i,s,u,c);const f=l.reactive(n),d=e.getForParent(rt);d&&(n.height=Ut(e,d),n.width=Gt(e,d),l.watch([()=>Ut(e,d),()=>Gt(e,d)],([P,g])=>{f.height=P,f.width=g}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([P,g,h=-1,m=-1,S=0,b=0])=>{qn(f,g,t,v,h,m,S,b)}),e.set(rt,f),f}function an(e){return e.get(rt)}function Ot(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Ut(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Dt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Oa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(rt)}var Le=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Le||{});function Cn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=at();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Cn(u,n))return u}const i=e.value;return Cn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Cn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return ie(o)})}function Re(e){return De(e,"disabled",0,function(o){return ie(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const vr=new Map,Xt=new Map;let jn=null;function Fa(e){jn=e}function yr(e,t,o){if(o){let n=Xt.get(o);n||(n=new Map,Xt.set(o,n)),n.set(e,t)}else vr.set(e,t)}function ze(e,t,o){!o&&jn&&(o=jn(e)??void 0);let n=null;if(o){let r=Xt.get(o);r&&(n=r.get(t))}return n||(n=vr.get(t)),n}function Ra(e,t){for(let o in e){const n=e[o];yr(o,n,t)}}function Aa(e){Xt.delete(e)}function Ma(){return{top:0,left:0,bottom:0,right:0}}function La(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ba(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class _a{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ba(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=dr(()=>{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,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=dt({},Ma(),t.safeAreaInset),i=La(n,r),s=dt({},i.pageLayout,t.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){yr(t,o,n)}getAPI(t,o,n){return ze(t,o,n)}batchSetAPI(t,o){Ra(t,o)}clearScopeAPI(t){Aa(t)}getRootDomain(){return pt()}}const qa=[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],ja=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],za=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);qa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ja.forEach(r=>{e.use(r)})};function se(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ce(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={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}},Pe={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}},br={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},xr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},wr=[];for(const e in xr)wr.push(e);const Ha=Symbol.for("InnerPageScopeKey"),Ka={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Wa=(e,t)=>({inheritAttrs:!0,props:{...we,...br,...Ka},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Ha,!1);if(r){const f=pr(r,o);Ce({getPageContentHeight:()=>Ut(r,f),getPageContentWidth:()=>Gt(r,f),getPageHeaderHeight:()=>Ot(r,f),getPageFooterHeight:()=>Dt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[v,P])=>{if(f&&v){const g=l.toRaw(v),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),c(h)}if(d&&P){const g=l.toRaw(P),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),c(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);c(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);c(f,!0)}}),()=>{const f={class:i.value,style:s.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ya,create:Ua,scope:bh}=se("page"),Qn=Ua(Wa(Ya));function sn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Jn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ga=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=at(),s=i?an(i):null;s&&(s.headerMounted=!0);const u=e,c=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,v=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const w=Ke(r.padding??s.headerPadding);return Object.assign(E,w),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(w.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const w=Ke(r.padding);Object.assign(E,w)}return E}),P=l.ref(null),g=()=>{if(s&&P.value&&!tn(P.value)){if(!n){const E=sn(P.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(on(g,50,5,50,!0),window.ResizeObserver&&P.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(P.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return v.value.height!==null&&v.value.height!==void 0&&(E.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(E.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(E.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(E.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(E.paddingBottom=`${v.value.bottom}px`),E}),S=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function j(){a.emit("click-right")}function M(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const w=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(w)}else if(r.leftIcon){const w=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(w)}if(r.leftText){const w=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(w)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const w=l.h("view",{class:"right-text",onClick:M},[r.rightText]);E.push(w)}if(a.slots.rightIcon){const w=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(w)}else if(r.rightIcon){const w=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(w)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},A=()=>{if(!r.titleShow)return null;const E=[],w=a.slots.default?a.slots.default():null;if(w)E.push(w);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],w=a.slots.bottom?a.slots.bottom():null;return w&&E.push(w),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],C=L();C&&q.push(C);const k=A();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:f.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const w={class:c.value,style:m.value,ref:P};return l.h("view",w,E)}}}),{componentName:Xa,create:Za,scope:Qa}=se("header-bar"),el=Za(Ga(Xa,Qa,Ee.ArrowLeft));function Ja(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=at(),i=a?an(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,c=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Ke(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),d=()=>{if(i&&f.value&&!tn(f.value)){if(!o){const g=sn(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(on(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const P=l.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Ne(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Ne(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Ne(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Ne(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Ne(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:P.value};return l.h("view",h,g)}}}}const{componentName:ei,create:ti,scope:xh}=se("footer-bar"),tl=ti(Ja(ei));function ni(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=at(),r=l.computed(()=>({[e]:!0})),a=n?an(n):null,i=l.computed(()=>{const c={};if(n&&a){if(o.padding){const P=Ke(o.padding);Object.assign(a.contentPadding,P)}const f=Ot(n,a),d=Dt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,c.height=v,a.contentPadding.top||f>0){const P=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+P}px`}if(a.contentPadding.bottom||d>0){const P=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+P}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=Ke(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=l.ref(null),u=()=>{if(a&&s.value){const c=Jn(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Dt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:li,create:oi,scope:wh}=se("content"),ri=oi(ni(li));function ai(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=_e(ri,[["render",ai]]),bt="GroupStateKey",Sr=Symbol.for("GroupScopeKey");function un(){return l.inject(Sr,!1)}function cn(e=!0){l.provide(Sr,e)}function ii(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Gn(r)||(e[n]=r)})}function si(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ii(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function $n(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(bt);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=de(a),d=de(i);s||(s=c.type??"grid");const v=()=>{const P=t===""||t===-1,g=de(t);let h=xe(o);const m=de(n);if(!P){let $=(g-(h-1)*m)/h;for(;d!==-1&&$>d;)h++,$=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&$<f;)h--,$=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)v();else{const P=++u.passport;setTimeout(()=>{P===u.passport&&v()},50)}}function fn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.layout}function dn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.order}function Ql(e,t=1){if(t==="stretch")return-1;const o=xe(t);return o===-1?100:100*o/e}function hn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Ql(t.column,o),i>0&&(a.width=`${i}%`);const s=Ql(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 mn(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 r=xe(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=xe(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Tr=Symbol("RollingStateKey");function ui(e){l.provide(Tr,e)}function ci(){return l.inject(Tr,null)}function zn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function fi(e){let t=zn(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=zn(o),document.body.removeChild(o)}return t}function di(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const hi={...we,...br,...xr};function mi(e,t,o){return{props:hi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,wr),i=si(a,{type:n.type}),s=un();cn(!0);const u=n.rollingDisplay?ci():null,c=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?fn(a,!0).value:null),v=l.getCurrentInstance(),P=(z,Q=!1)=>{const te=v?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Q)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Q],[te,T])=>{if(z&&te){const K=l.toRaw(te),J=l.toRaw(z),le=J?Reflect.ownKeys(J):[];(K?Reflect.ownKeys(K):[]).forEach(ue=>{le.includes(ue)||(J[ue]=[])}),P(J)}if(Q&&T){const K=l.toRaw(T),J=l.toRaw(Q),le=J?Reflect.ownKeys(J):[];(K?Reflect.ownKeys(K):[]).forEach(ue=>{le.includes(ue)||(J[ue]=[])}),P(J,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Q=s?dn(a,!0):null;if(d.value&&Q){if(d.value.type==="grid"){const te=mn(Q,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=hn(Q,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ne(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const te=di(A.value,i.layout.value.column,i.layout.value.gutter);Q=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Q}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),j=l.computed(()=>s||f.value?!0:ie(n.isWrap)),M=[],L=z=>{M.push(z)},O=()=>{let z=M.length;M.splice(0,z)},A=l.ref(-1),N=z=>{const Q=Jn(z).width;Q>0&&Q!==A.value&&(A.value=Q)};$n(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([A,$,b],([z,Q,te])=>{i.order.index=0,$n(a,z,Q,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),w=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),C=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ne(n.height)||""),Y=l.ref(!1),W=l.ref(""),Z=l.ref(!1);let G=-1;const ee=(z,Q=!0)=>{const te=C.value;if(te&&Y.value!==z){if(G=G===-1?fi(te):G,Z.value=!0,Q)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",Z.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${G}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${G}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else Z.value=!1,W.value=`${G}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const re=z=>{r.emit("header-click",z)},I=()=>{x()},x=z=>{z=z??!Y.value,ee(z)};Ce({toggleCollapse:x,doLayout:()=>{M[0]&&(N(M[0]),$n(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let V=null,p=!0;const H=z=>{if(n.rules){const Q=l.toRaw(n.rules);P(Q)}if(n.pureDataRules){const Q=l.toRaw(n.pureDataRules);P(Q,!0)}if(Ze&&(z&&ee(ie(n.collapse),!1),n.autoLayout&&Array.isArray(M)&&M.length>0)){const Q=M[0];N(Q),window.ResizeObserver&&(V=new window.ResizeObserver(()=>{N(Q)}),V.observe(Q))}},_=()=>{V?.disconnect(),V=null},B=!f.value||u?.acquire();B&&(c.value=f.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),f.value&&u){let z=null,Q=u.initialHeight;u.observe(C.value,te=>{if(te!==c.value)if(te)c.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,c.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),c.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=zn(C.value);T<=0?W.value=Q:(W.value=`${T}px`,Q=W.value)}p||_()}})}}),l.onUnmounted(()=>{V?.disconnect(),u&&u.unobserve(C.value)});const R=(z="right")=>{const Q=[];if(E.value){const K={class:w.value},J=l.h("span",K,[E.value]);Q.push(J)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Q.push(T),Q.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Q):null},U=(z,Q,te,T)=>{const K={...m.value};return Q===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:L,key:`${Q}`,class:K,style:S.value},z)};return()=>{if(f.value&&c.value!==!0){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":Z.value},style:h.value},[])}i.order.index=0;const z=[];let Q=0;if(r.slots.header){const K={key:`${Q++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},J=l.h("div",K,[r.slots.header()]);z.push(J)}else{const K=[],J=n.collapsePosition==="left";if(J&&n.showCollapse){const le=R("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!J&&n.showCollapse){const le=R("right");le&&K.push(le)}if(K.length>0){const le={key:`${Q++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},fe=l.h("div",le,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=U(te,Q++,0,te.length);z.push(K)}else if(T==="flow"){const K=U(te,Q++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const J=te[K],le=U([J],Q++,K,te.length);z.push(le)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":Z.value},style:h.value},[z])}else return z}}}}const{componentName:gi,create:pi,scope:vi}=se("group"),yi=(e,t)=>(e=e??Ee.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]})),ll=pi(mi(gi,vi,yi));function bi(e){return e===window}const xi=/matrix\((.+)\)/,Cr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(bi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=xi.exec(c);if(f){let v=f[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class wi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Si{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new wi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Jl=new Si,$r={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ti,create:Ci}=se("price"),$i=Ci({props:{...$r},setup(e){const t=l.computed(()=>({[Ti]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Mt(e.price)==0?"":Jt(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ni=["innerHTML"],Ei=["innerHTML"];function ki(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ni)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ei)):l.createCommentVNode("",!0)],2)}const gn=_e($i,[["render",ki]]),{componentName:Nn,create:Pi}=se("hint-text"),Ii=Pi({components:{Price:gn},props:{...$r,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),c=(w,q,C,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,G=w.split("-");let ee=[];G[0]==="top"?ee=["top","bottom","right","left"]:G[0]==="bottom"?ee=["bottom","top","right","left"]:G[0]==="left"?ee=["left","top","bottom","right"]:G[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let x=0;x<ee.length;x++){const F=ee[x];if(I[0]=F,G[1]&&(I[1]=G[1]),F==="top"){const V=q.y-Y-e.arrowSize-e.offset;if(V>=0){re.top=V;let p=0;G[1]==="start"?p=q.x:G[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="bottom"){const V=q.y+k+e.arrowSize+e.offset;if(V+Y<=Z){re.top=V;let p=0;G[1]==="start"?p=q.x:G[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="left"){const V=q.x-D-e.arrowSize-e.offset;if(V>=0){re.left=V;let p=0;G[1]==="start"?p=q.y:G[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}else if(F==="right"){const V=q.x+C+e.arrowSize+e.offset;if(V+D<=W){re.left=V;let p=0;G[1]==="start"?p=q.y:G[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},f=(w,q,C=10)=>{if(Ze&&!(q===!1||!w)&&e.reference){n.value=Cr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value?.offsetHeight??0,D=u.value?.offsetWidth??0,{bestPlacement:Y,bestInsetRect:W}=c(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0}},d=l.ref(0),v=Vt(()=>{f(e.message,e.visible)},10),P=l.ref(e.visible);l.watch(()=>e.visible,w=>{P.value=w});const g=l.computed(()=>P.value&&h.value),h=l.ref(!0),m=Vt(w=>{const q=w[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([w,q])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Jl.watch(e.reference,v),S.observe(e.reference)}),l.onBeforeUnmount(()=>{Jl.unwatch(e.reference,v),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const w={[Nn]:!0};return i.value.startsWith("top")?w["is-top"]=!0:i.value.startsWith("right")?w["is-right"]=!0:i.value.startsWith("bottom")?w["is-bottom"]=!0:i.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),$=l.computed(()=>{const w={};o.value.top!==null&&(w.top=`${o.value.top}px`),o.value.right!==null&&(w.right=`${o.value.right}px`),o.value.bottom!==null&&(w.bottom=`${o.value.bottom}px`),o.value.left!==null&&(w.left=`${o.value.left}px`),e.autoFit&&(w["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${q}px`,s.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),j=l.computed(()=>{const w=[`${Nn}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),M=l.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),L=l.computed(()=>({[`${Nn}__arrow`]:!0})),O=l.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,i.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):i.value==="top-start"?(w.left=`${e.arrowOffset+d.value}px`,w.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(w.right=`${e.arrowOffset-d.value}px`,w.bottom=`-${e.arrowSize}px`):i.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):i.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):i.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(w.left=`${e.arrowOffset+d.value}px`,w.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(w.right=`${e.arrowOffset-d.value}px`,w.top=`-${e.arrowSize}px`):i.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):i.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):i.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),A=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:g,tipRef:u,classes:b,styles:$,textClasses:j,textStyles:M,arrowClasses:L,arrowStyles:O,overlayShow:A,overlayStyle:N,onClickOverlay:()=>{P.value=!1,t.emit("update:visible",!1)}}}}),Vi=["innerHTML"];function Oi(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Lt=_e(Ii,[["render",Oi]]);class Nr{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 Hn={},Di=new Nr,vt=new Map,Zt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&(l.render(null,t),t.parentNode?.removeChild(t))}else{for(const t of vt.keys()){const o=document.getElementById(t);o&&(l.render(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Fi=e=>{e.unmount=Zt;const t=document.getElementById(e.id);if(t){const o=vt.get(e.id);o?e={...Hn,...o,...e}:e={...Hn,...e},e.transition=!1;const n=l.createVNode(Lt,e);return l.render(n,t),e.id}},Ri=e=>{e.unmount=Zt;let t=e.id??`hinttext_${Di.get()}`;e={...Hn,...e},e.id=t,vt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Lt,e);return l.render(n,o),document.body.appendChild(o),t},Ai=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Oe={show(e,t,o={},n=!0){Ai(t);const r=o.id;return r&&vt.has(r)?Fi({...o,message:t,reference:e}):(n&&Zt(),Ri({...o,message:t,reference:e}))},hide(e){Zt(e)},install(e){e.config.globalProperties.$hintText=Oe}};function Mi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Pe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const s=at(),u=un();cn(!1);const c=l.computed(()=>u&&s?fn(s,!1).value:null),f=e,d=l.ref(null),v=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ie(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),P=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ne(r.width));else{const K=u&&s?dn(s,!1):null;if(c.value&&K){if(c.value.type==="grid"){const J=mn(K,c.value,r.span,r.offset);Object.assign(T,J)}else if(c.value.type==="flow"){const J=hn(K,c.value,r.span,r.offset,r.width);Object.assign(T,J)}}}if(typeof P.value=="function"){const K=P.value(i);K&&Object.assign(T,K)}else if(P.value&&typeof P.value=="object"){const K=P.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??ie(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Le.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${$.value}`]:!0})),M=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),L=De(l.toRef(r,"labelWidth"),"labelWidth",Le.Near),O=l.computed(()=>L&&L.value?{width:Ne(L.value)}:{}),A=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),w=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ce({setRequired(T){m.value=T},setErrorTip(T){w.errorTip=T},setErrorIcon(T){w.errorIcon=T},setWarnTip(T){w.warnTip=T},setWarnIcon(T){w.warnIcon=T},setInfoTip(T){w.infoTip=T},setInfoIcon(T){w.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){P.value=T}});const q=l.computed(()=>r.infoTip||w.infoTip),C=l.computed(()=>r.infoIcon||w.infoIcon),k=l.computed(()=>r.warnTip||w.warnTip),D=l.computed(()=>r.warnIcon||w.warnIcon),Y=l.computed(()=>r.errorTip||w.errorTip),W=l.computed(()=>r.errorIcon||w.errorIcon),Z=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),G=()=>Z.value.length>0,ee=l.computed(()=>Z.value==="error"?Y.value:Z.value==="warn"?k.value:Z.value==="info"?q.value:""),re=l.computed(()=>Z.value==="error"?W.value:Z.value==="warn"?D.value:Z.value==="info"?C.value:null),I=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${Z.value}`]:!0,[`${f}--animate`]:!0};return Z.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:Z.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:Z.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":L&&L.value&&(T["padding-left"]=Ne(L.value)),T}),F=l.ref();let V="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,J,le])=>{F.value&&(T&&!pe(K)?V?o.show(F.value,K,{...le,id:V,type:J},!0):V=o.show(F.value,K,{...le,type:J},!0):o.hide(V))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let J of T)if(J.intersectionRatio>0){K=!0,K&&a.emit("appear",J);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{p&&(F.value&&p.unobserve(F.value),p.disconnect(),p=null)};l.watch(()=>ie(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{ie(r.appearListen)&&H()}),l.onUnmounted(()=>{_(),V&&o.hide(V)});const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,J={class:A.value},le=l.h("div",J,[K]);if(T.push(le),a.slots.fixedPreTip){const ue=a.slots.fixedPreTip();T.push(ue)}const fe={class:M.value,style:O.value};return l.h("div",fe,T)},R=()=>{const T=[];if(a.slots.prepend){const J=a.slots.prepend();T.push(J)}if(a.slots.default){const J=a.slots.default();T.push(J)}if(a.slots.append){const J=a.slots.append();T.push(J)}if(a.slots.fixedTip){const J={class:[`${f}__fixed-tip`]},le=l.h("div",J,[a.slots.fixedTip()]);T.push(le)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},U=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Q=()=>{if(!G())return null;const T=[],K=U();K&&T.push(K);const J=z();J&&T.push(J);const le={class:I.value,style:x.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],J=B();J&&K.push(J);const le=R();le&&K.push(le);const fe={class:j.value},ue=l.h("div",fe,K);T.push(ue);const ge=Q();ge&&T.push(ge);const He=te();He&&T.push(He);const tt={class:v.value,style:g.value,prop:r.prop};return l.h("div",tt,T)}}}}const{componentName:Li,create:Bi,scope:_i}=se("item"),Se=Bi(Mi(Li,_i,Oe,!1));function qi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=at(),a=un();cn(!1);const i=l.computed(()=>a&&r?fn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),c=l.computed(()=>{const f={},d=a&&r?dn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=mn(d,i.value,o.span,o.offset);Object.assign(f,v)}else if(i.value.type==="flow"){const v=hn(d,i.value,o.span,o.offset,o.width);Object.assign(f,v)}else return o.width&&(f.width=Ne(o.width)),f;else o.width&&(f.width=Ne(o.width));return f});return()=>{const f={class:u.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:ji,create:zi,scope:Sh}=se("slot-item"),ol=zi(qi(ji));function Hi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=at(),s=un();cn(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=fn(i,!1),d=dn(i,!1);if(f.value&&d)if(f.value.type==="grid"){const v=mn(d,f.value,o.span,o.offset);Object.assign(c,v)}else if(f.value.type==="flow"){const v=hn(d,f.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Ne(o.width))}else o.width&&(c.width=Ne(o.width));return c});return()=>{const c=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const P=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(P)}c.push(d[v])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Ki,create:Wi,scope:Th}=se("row-item"),rl=Wi(Hi(Ki)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},eo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:[Boolean,String],default:!1}};function Yi(e,t,o){return{props:{...we,...Pe,...eo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),g=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let m=he(n,"hintText"),S=l.ref(!1);const b=C=>{let D=C.target.value;f.value=!0,pe(m.value)||(S.value=!0),s("focus",D,C)},$=C=>{setTimeout(()=>{S.value&&(S.value=!1),f.value=!1},0);let D=C.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,C)},j=()=>{s("clear","")},M=l.ref(!1);let L=null;const O=()=>{ie(n.showTooltip)&&M.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{M.value=!0},150))},A=()=>{L&&(clearTimeout(L),M.value=!1,L=null)},N=l.computed(()=>M.value||S.value),E=l.computed(()=>M.value?d.value:m.value),w=l.computed(()=>Mt(n.unit)>0),q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:P.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:j,onChange:h,onInput:g,onFocus:b,onBlur:$,onMouseover:O,onMouseleave:A},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:w.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(y.ElInput,k,D);Y.push(W);const Z={default:()=>Y};r.slots.default&&(Z.label=r.slots.default),r.slots.default&&(Z.fixedTip=r.slots.fixedTip);const ee={...ke(n,eo),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,Z)}}}}const{componentName:Ui,create:Gi,scope:Xi}=se("input-item"),al=Gi(Yi(Ui,Xi,Se));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Er(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Zi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ji(){const e=l.getCurrentInstance();return new Qi(e.proxy)}function kr(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function Pr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Er(e,i);if(Array.isArray(s)&&s.length>0){const u=Pr(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ot(e,i)===a;else if(o==="item")u=kr(e,i,a);else{let c=Ft(e,i);c==null&&(c=ot(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function es(e){return{text:e,value:e}}const to={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean,String],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:[Boolean,String],default:!1}};function ts(e,t,o){return{props:{...we,...Pe,...to},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(U=>ot(n,U)).join(" "):""),P=(R,U,z,Q=!0)=>{if(z.length==0){Q&&(s("update:modelValue",R),s("change",R)),f.value=R;return}const te=Pr(n,R,U,z);if(te===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const J=te[K],le=d.value[K];if(!kr(n,J,le)){T=!1;break}}if(!T){d.value=te;let K=[],J=[],le=[];te.forEach(He=>{const tt=Ft(n,He),ht=ot(n,He);K.push(tt),le.push(ht),n.valueType==="text"?J.push(ht):n.valueType==="item"?J.push(He):J.push(tt)});let fe,ue,ge;ie(n.multiple)?(f.value=K,fe=l.toRaw(J),ue=le,ge=l.toRaw(te)):(f.value=K[0]??"",fe=l.toRaw(J[0]??""),ue=le[0]??"",ge=l.toRaw(te[0])),Q&&(s("update:modelValue",fe),s("change",fe,ge)),s("update:text",ue)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,R=>ie(R)),b=Ji(),$=async(R,U)=>{if(R){const z=await b.load("select",R,U);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>es(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([R,U])=>{h.value=null,$(R,U)},{immediate:!S.value});let j=!1;const M=()=>{j||(j=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([R,U])=>{if(N()&&ie(n.multiple)){Xe(U,f.value)||(f.value=U);return}P(U,n.valueType,m.value,!1),s("setValue",U)}),n.source||(f.value=n.modelValue);let L=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(L=async R=>{if(R==null){h.value=null;return}O.value=!0;try{const U=await n.remoteMethod(R);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}O.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async R=>{if(R==null){h.value=null;return}O.value=!0;try{const U=await n.filterMethod(R,g.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),w=e,q=l.computed(()=>({[w]:!0})),C=R=>{n.allowCreate||N()&&ie(n.multiple)?(s("update:modelValue",R),s("change",R),s("update:text",R),f.value=R):P(R,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=R=>{let z=R.target.value;E.value=!0,pe(k.value)||(D.value=!0),s("focus",z,R)},W=R=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=R.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),V.value||s("blur",z,R)},Z=()=>{s("clear","")},G=l.ref(!1);let ee=null;const re=()=>{ie(n.showTooltip)&&G.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{G.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),G.value=!1,ee=null)},x=l.computed(()=>G.value||D.value),F=l.computed(()=>G.value?v.value:k.value),V=l.ref(!1),p=R=>{V.value=R,s("visible-change",R),R||s("selected")},H=R=>{s("remove-tag",R)},_=(R,U)=>{const z=[];return R.forEach((Q,te)=>{const T=Er(n,Q);if(Array.isArray(T)&&T.length>0){const K=_(T,U),J=ot(n,Q),fe={key:`${J}_${te}`,label:J};z.push(l.h(y.ElOptionGroup,fe,{default:()=>K}))}else{const K=Ft(n,Q),J=ot(n,Q),le=Zi(n,Q),ue={key:`${K}_${te}`,label:J,disabled:le,value:K};if(typeof U=="function")z.push(l.h(y.ElOption,ue,{default:()=>U(Q)}));else if(n.optionType==="item"){const ge={class:{"fox-select-item__option-left":!0}},He=l.h("span",ge,[K]),tt={class:{"fox-select-item__option-right":!0}},ht=l.h("span",tt,[J]),nt=l.h("div",{class:{"fox-select-item__option":!0}},[He,ht]);z.push(l.h(y.ElOption,ue,{default:()=>nt}))}else n.optionType==="value"?z.push(l.h(y.ElOption,ue,{default:()=>[K]})):z.push(l.h(y.ElOption,ue))}}),z},B=l.ref();return Ce({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const U={...Ye(r.attrs),ref:B,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:Z,onChange:C,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof L=="function"&&(U["remote-method"]=L,U.loading=O.value),typeof A=="function"&&(U["filter-method"]=A,U.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Q=[],te=l.h(y.ElSelect,U,z);Q.push(te);const T={default:()=>Q};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const J={...ke(n,to),hintText:F.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(J["appear-listen"]=!0,J.onAppear=M),l.h(o,J,T)}}}}const{componentName:ns,create:ls,scope:os}=se("select-item"),il=ls(ts(ns,os,Se));var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ir={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",v="quarter",P="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(C,k,D){var Y=String(C);return!Y||Y.length>=k?C:""+Array(k+1-Y.length).join(D)+C},j={s:$,z:function(C){var k=-C.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+$(Y,2,"0")+":"+$(W,2,"0")},m:function C(k,D){if(k.date()<D.date())return-C(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),Z=D-W<0,G=k.clone().add(Y+(Z?-1:1),d);return+(-(Y+(D-W)/(Z?W-G:G-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:P,w:f,d:c,D:g,h:u,m:s,s:i,ms:a,Q:v}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},M="en",L={};L[M]=b;var O=function(C){return C instanceof w},A=function C(k,D,Y){var W;if(!k)return M;if(typeof k=="string"){var Z=k.toLowerCase();L[Z]&&(W=Z),D&&(L[Z]=D,W=Z);var G=k.split("-");if(!W&&G.length>1)return C(G[0])}else{var ee=k.name;L[ee]=k,W=ee}return!Y&&W&&(M=W),W||!Y&&M},N=function(C,k){if(O(C))return C.clone();var D=typeof k=="object"?k:{};return D.date=C,D.args=arguments,new w(D)},E=j;E.l=A,E.i=O,E.w=function(C,k){return N(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var w=function(){function C(D){this.$L=A(D.locale,null,!0),this.parse(D)}var k=C.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,Z=Y.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var G=W.match(m);if(G){var ee=G[2]-1||0,re=(G[7]||"0").substring(0,3);return Z?new Date(Date.UTC(G[1],ee,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)):new Date(G[1],ee,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,Z=!!E.u(Y)||Y,G=E.p(D),ee=function(_,B){var R=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return Z?R:R.endOf(c)},re=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,x=this.$M,F=this.$D,V="set"+(this.$u?"UTC":"");switch(G){case P:return Z?ee(1,0):ee(31,11);case d:return Z?ee(1,x):ee(0,x+1);case f:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(Z?F-H:F+(6-H),x);case c: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()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,Z=E.p(D),G="set"+(this.$u?"UTC":""),ee=(W={},W[c]=G+"Date",W[g]=G+"Date",W[d]=G+"Month",W[P]=G+"FullYear",W[u]=G+"Hours",W[s]=G+"Minutes",W[i]=G+"Seconds",W[a]=G+"Milliseconds",W)[Z],re=Z===c?this.$D+(Y-this.$W):Y;if(Z===d||Z===P){var I=this.clone().set(g,1);I.$d[ee](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,Z=this;D=Number(D);var G=E.p(Y),ee=function(x){var F=N(Z);return E.w(F.date(F.date()+Math.round(x*D)),Z)};if(G===d)return this.set(d,this.$M+D);if(G===P)return this.set(P,this.$y+D);if(G===c)return ee(1);if(G===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[G]||1,I=this.$d.getTime()+D*re;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var Z=D||"YYYY-MM-DDTHH:mm:ssZ",G=E.z(this),ee=this.$H,re=this.$m,I=this.$M,x=W.weekdays,F=W.months,V=function(B,R,U,z){return B&&(B[R]||B(Y,Z))||U[R].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,R,U){var z=B<12?"AM":"PM";return U?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:V(W.monthsShort,I,F,3),MMMM:V(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,re,!0),A:H(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:G};return Z.replace(S,function(B,R){return R||_[B]||G.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var Z,G=E.p(Y),ee=N(D),re=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,x=E.m(this,ee);return x=(Z={},Z[P]=x/12,Z[d]=x,Z[v]=x/3,Z[f]=(I-re)/6048e5,Z[c]=(I-re)/864e5,Z[u]=I/r,Z[s]=I/n,Z[i]=I/o,Z)[G]||I,W?x:E.a(x)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return L[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),Z=A(D,Y,!0);return Z&&(W.$L=Z),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},C}(),q=w.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",P],["$D",g]].forEach(function(C){q[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),N.extend=function(C,k){return C.$i||(C(k,w,N),C.$i=!0),N},N.locale=A,N.isDayjs=O,N.unix=function(C){return N(1e3*C)},N.en=L[M],N.Ls=L,N.p={},N})})(Ir);var rs=Ir.exports;const We=et(rs);var Vr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},c=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 S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},v=function(h,m){var S,b=s.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,m))>-1){S=$>12;break}}else S=h===(m?"pm":"PM");return S},P={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(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,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:[r,c("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,w){var q=w&&w.toUpperCase();return E||S[w]||o[w]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,k,D){return k||D.slice(1)})})).match(n),$=b.length,j=0;j<$;j+=1){var M=b[j],L=P[M],O=L&&L[0],A=L&&L[1];b[j]=A?{regex:O,parser:A}:M.replace(/^\[|\]$/g,"")}return function(N){for(var E={},w=0,q=0;w<$;w+=1){var C=b[w];if(typeof C=="string")q+=C.length;else{var k=C.regex,D=C.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(Z){var G=Z.afternoon;if(G!==void 0){var ee=Z.hours;G?ee<12&&(Z.hours+=12):ee===12&&(Z.hours=0),delete Z.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,$=b.parse;b.parse=function(j){var M=j.date,L=j.utc,O=j.args;this.$u=L;var A=O[1];if(typeof A=="string"){var N=O[2]===!0,E=O[3]===!0,w=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,Z){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var G=g(W)(Y),ee=G.year,re=G.month,I=G.day,x=G.hours,F=G.minutes,V=G.seconds,p=G.milliseconds,H=G.zone,_=new Date,B=I||(ee||re?1:_.getDate()),R=ee||_.getFullYear(),U=0;ee&&!re||(U=re>0?re-1:_.getMonth());var z=x||0,Q=F||0,te=V||0,T=p||0;return H?new Date(Date.UTC(R,U,B,z,Q,te,T+60*H.offset*1e3)):Z?new Date(Date.UTC(R,U,B,z,Q,te,T)):new Date(R,U,B,z,Q,te,T)}catch{return new Date("")}}(M,A,L),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),w&&M!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var C=A.length,k=1;k<=C;k+=1){O[1]=A[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===C&&(this.$d=new Date(""))}else $.call(this,j)}}})})(Vr);var as=Vr.exports;const is=et(as);var Or={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],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(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),v==="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 v}});return i.bind(this)(d)}}})})(Or);var ss=Or.exports;const us=et(ss);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,P,g,h){var m=d.name?d:d.$locale(),S=i(m[v]),b=i(m[P]),$=S||b.map(function(M){return M.slice(0,g)});if(!h)return $;var j=m.weekStart;return $.map(function(M,L){return $[(L+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,v){return d.formats[v]||function(P){return P.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[v.toUpperCase()])},f=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return c(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Dr);var cs=Dr.exports;const fs=et(cs);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var 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 v=i(this).startOf(n).date(c).startOf(o).subtract(1,"millisecond"),P=this.diff(v,o,!0);return P<0?i(this).startOf("week").week():Math.ceil(P)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Fr);var ds=Fr.exports;const hs=et(ds);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Rr);var ms=Rr.exports;const gs=et(ms);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Ar);var ps=Ar.exports;const vs=et(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Mr);var ys=Mr.exports;const bs=et(ys);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Lr);var xs=Lr.exports;const ws=et(xs);We.extend(fs);We.extend(us);We.extend(is);We.extend(hs);We.extend(gs);We.extend(vs);We.extend(bs);We.extend(ws);const Me={format(e,t){return We(e).format(t)},parser(e,t){return We(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,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]=Me.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Me.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},no={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},lo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ss(e,t,o){return{props:{...we,...Pe,...no,...lo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),P=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const R=[...d.value];R[0]=B,d.value=R}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const j=B=>{let U=B.target.value;f.value=!0,pe(b.value)||($.value=!0),s("focus",U,B)},M=B=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let U=B.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,B)},L=()=>{s("clear","")},O=B=>{s("calendar-change",B)},A=(B,R,U)=>{s("panel-change",B,R,U)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Le.Near),w=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Le.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Le.Near),C=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Le.Near);let k=null;const D=l.ref(ie(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const R=[];Array.isArray(q.value)?(R[0]=d.value?d.value[0]??q.value[0]:null,R[1]=q.value[1]??q.value[0]):(R[0]=d.value?d.value[0]??q.value:null,R[1]=D.value),R[0]||(R[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=R}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Me.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const R=[];R[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?R[1]=k[1]:R[1]=k,R[0]||(R[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=R}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=ie(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const R=[d.value[0]];Array.isArray(q.value)?R[1]=q.value[1]??q.value[0]:R[1]=D.value,R[0]||(R[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=R}else d.value=q.value;s("update:modelValue",d.value)}else Xe(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([R])=>{D.value!==R&&B()}),l.watch([()=>d.value],([R])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(R))try{let z=R[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Me.format(z,n.valueFormat));let Q=Array.isArray(q.value)?q.value[1]:q.value;(z===Q||Array.isArray(C.value)&&C.value.findIndex(T=>z==T)!==-1)&&(U=!0)}catch(z){console.error(z)}D.value!==U&&(D.value=U)},{immediate:!0})}const Z=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),G=l.ref(),ee=l.ref(),re=/^\d+$/,I=(B,R)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,R):re.test(B)&&B.length===n.flashFillThreshold,x=(B,R)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(B,R);else{const Q=n.flashFillFormat??"YYYYMMDD";U=Me.parser(B,Q)}const z=n.valueFormat??"YYYY-MM-DD";return Me.format(U,z)},F=B=>B?B.endsWith("range"):!1,V=B=>{if(!B.target)return;const R=B.target.value??"";if(I(R,n.type)){const U=x(R,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=U,g(z)}else g(U)}},p=B=>{if(!B.target)return;const R=B.target.value??"";if(I(R,n.type)){const U=x(R,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=U,g(z)}else g(U)}},H=()=>{if(n.flashFill&&G.value&&G.value.$el)if(F(n.type)){const B=G.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",V),B[1]&&B[1].addEventListener("input",p)}else{const B=G.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",V)}},_=()=>{if(n.flashFill&&G.value&&G.value.$el)if(F(n.type)){const B=G.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",V),B[1]&&B[1].removeEventListener("input",p)}else{const B=G.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",V)}};return l.onMounted(H),l.onBeforeUnmount(_),Ce({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const R={...r.attrs,key:P.value,type:h.value,ref:ee,class:S.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:L,onFocus:j,onBlur:M,onCalendarChange:O,onPanelChange:A,onVisibleChange:N},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const z=[],Q=l.h(y.ElDatePicker,R,U);z.push(Q);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ue={class:Z.value},ge=l.h("div",ue,{default:()=>[le,fe]});z.push(ge)}if(!i.value&&!a.value){const le={label:w.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(y.ElCheckbox,le),ue=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ue}}const K={...ke(n,no,lo),ref:G,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:Ts,create:Cs,scope:$s}=se("date-item"),sl=Cs(Ss(Ts,$s,Se)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ns(e,t,o){return{props:{...we,...Pe,...oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let A=L.target.value;f.value=!0,pe(h.value)||(m.value=!0),s("focus",A,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let A=L.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),s("blur",A,L)},$=()=>{s("clear","")},j=L=>{s("visible-change",L)},M=l.ref();return Ce({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()}}),()=>{const O={...r.attrs,ref:M,class:P.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b,onVisibleChange:j},A={},N=[],E=l.h(y.ElTimePicker,O,A);N.push(E);const w={default:()=>N};r.slots.default&&(w.label=r.slots.default),r.slots.fixedTip&&(w.fixedTip=r.slots.fixedTip);const C={...ke(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,w)}}}}const{componentName:Es,create:ks,scope:Ps}=se("time-item"),ul=ks(Ns(Es,Ps,Se)),ro={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Is(e,t,o){return{props:{...we,...Pe,...ro},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let O=M.target.value;f.value=!0,pe(h.value)||(m.value=!0),s("focus",O,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let O=M.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,M)},$=()=>{s("clear","")},j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const L={...r.attrs,ref:j,class:P.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b},O={},A=[],N=l.h(y.ElTimeSelect,L,O);A.push(N);const E={default:()=>A};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,ro),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Vs,create:Os,scope:Ds}=se("time-select-item"),cl=Os(Is(Vs,Ds,Se));function ao(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function io(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wo(`${e}`,`${t}`);return ao(n)}else{let n=Yn(`${e}`,Yo(`${t}`),20);return ao(n)}}function Fs(e,t=-1,o=!1,n=3,r=","){return Jt(e,t,o,n,r)}function so(e,t,o,n,r=!0){if(e==="")return"";if(e=Uo(e),t=xe(t),t==1)return e;if(n)e=io(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Yn(e,1,xe(o)));else{let a=-1*t;e=io(e,a)}return e}function uo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ie(t.minInclude),r=An(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ie(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const co={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Rs(e,t,o){return{props:{...we,...Pe,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),c=he(n,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>n.rates,()=>n.precision],([C,k,D])=>{if(pe(C)){f.value="";return}const Y=so(C,k,D,!1);f.value!==Y&&(f.value=Y)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=f.value),C}),{t:v}=Be.useFoxI18n(t),P=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!pe(f.value)?C=Fs(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=v(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let C=S.value;return pe(C)&&(C=n.errorTip??""),C}),$=l.ref(""),j=l.ref(!1),M=(C,k)=>{if(C=`${C}`,pe(C)){f.value="",c.value="",k.forEach(D=>{s(D,"")}),ie(n.showTip)&&j.value&&(j.value=!1);return}if(C.length>=2){let D=C;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(f);return}}if(C!="-"){if(!nr(C)){l.triggerRef(f);return}if(n.integerLength!=-1&&lr(C)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&or(C)>Number(n.decimalLength)){l.triggerRef(f);return}let D=uo(C,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(f);return}}else if(n.min!=null&&xe(n.min)>=0){l.triggerRef(f);return}$.value=C,ie(n.showTip)&&(j.value=C.length>0),f.value=C,c.value=so(C,n.rates,n.precision,!0),k.forEach(D=>{s(D,c.value)})},L=C=>{M(C,["update:modelValue","input"])},O=C=>{M(C,["update:modelValue","change"])},A=C=>{if(u.value=!0,ie(n.showTip)){let k=f.value;pe(k)&&(k=n.hintText),pe(k)||($.value=k,j.value=!0)}S.value="",s("focus",c.value,C)},N=C=>{if(setTimeout(()=>{u.value=!1,ie(n.showTip)&&j.value===!0&&(j.value=!1)},0),!pe(f.value)){let k=uo(f.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",c.value,C),s("blur",c.value,C)},E=()=>{s("clear","")},w=l.computed(()=>Mt(n.unit)>0),q=l.ref();return Ce({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:P.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:L,onChange:O,onFocus:A,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:w.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(y.ElInput,k,D);Y.push(W);const Z={default:()=>Y};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const ee={...ke(n,co),errorTip:b.value,hintText:$.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,Z)}}}}const{componentName:As,create:Ms,scope:Ls}=se("money-item"),fl=Ms(Rs(As,Ls,Se)),fo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Bs(e,t,o){return{props:{...we,...Pe,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0,[`${v}__append`]:L.value})),g=l.computed(()=>({[`${v}__unit`]:!0})),h=A=>{d.value=A,s("update:modelValue",A),s("input",A)},m=A=>{s("change",A)};let S=he(n,"hintText"),b=l.ref(!1);const $=A=>{let E=A.target.value;f.value=!0,pe(S.value)||(b.value=!0),s("focus",E,A)},j=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let E=A.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,A)},M=()=>{s("clear","")},L=l.computed(()=>Mt(n.unit)>0),O=l.ref();return Ce({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ye(r.attrs),ref:O,class:P.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:M,onChange:m,onInput:h,onFocus:$,onBlur:j},E={},w=[],q=l.h(y.ElInputNumber,N,E);w.push(q);const C={default:()=>w};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...ke(n,fo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(L.value){const W={class:g.value},Z=l.h("div",W,[n.unit]);C.append=()=>Z}return l.h(o,D,C)}}}}const{componentName:_s,create:qs,scope:js}=se("input-number-item"),dl=qs(Bs(_s,js,Se));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function zs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}function Kn(e,t,o){const n=Ge(e,t),r=Ge(e,o);if(n!==r)return!1;const a=ft(e,t),i=ft(e,o);return a===i}function Br(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Br(e,s,o,n);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=Ge(e,c)===s;else if(o==="item")u=Kn(e,c,s);else{let f=ft(e,c);f==null&&(f=Ge(e,c)),u=f===s}if(u){r.push(c),a=zs(e,c);break}}if(!u)break}}return r}function Ws(e){return{text:e,value:e}}const ho={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:[Boolean,String],default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ys(e,t,o){return{props:{...we,...Pe,...ho},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(U=>Ge(n,U)).join(" "):Ge(n,B)).join(" "):""),P=(_,B,R,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===_)return;f.value=_;const T=l.toRaw(_);if(U){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const J=[];K.forEach(le=>{const ue=(le.pathNodes??[]).map(ge=>ge.data);J.push(ue)}),s("update:pathNodes",J)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",le)}s("update:modelValue",T),s("change",T)}return}const z=Br(n,_,B,R);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=z[z.length-1];if(E.value.checkStrictly!==!0&&Q&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const T=[];z.forEach(K=>{const J=`${Ge(n,K)}`;T.push(J)}),T.length>0&&(A.value=T.join(n.separator))}else A.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],J=d.value[T];if(Array.isArray(K)){if(!Array.isArray(J)||K.length!==J.length)te=!1;else for(let le=0;le<K.length;le++)if(!Kn(n,K[le],J[le])){te=!1;break}}else Kn(n,K,J)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ue=[];for(let ge of le)fe.push(ft(n,ge)),n.valueType==="text"?ue.push(Ge(n,ge)):n.valueType==="item"?ue.push(ge):ue.push(ft(n,ge));T.push(fe),K.push(ue)}else T.push(ft(n,le)),n.valueType==="text"?K.push(Ge(n,le)):n.valueType==="item"?K.push(le):K.push(ft(n,le))}),f.value=T;const J=l.toRaw(K);U&&(s("update:pathNodes",z),s("update:modelValue",J),s("change",J))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,_=>ie(_)),m=Ks(),S=async(_,B)=>{if(_){const R=await m.load("cascader",_,B);if(R.length>0)if(typeof R[0]=="string"){let Q=R.map(te=>Ws(te));g.value=Q}else g.value=R}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{P(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&P(n.modelValue,"value",[],!1);let j=null,M=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){M.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}M.value=!1}});const L=l.ref(!1),O=e,A=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":A.value&&A.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,R)=>{const U=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===B.level){const z=B.pathLabels??[];let Q=[];z.forEach(te=>{te&&Q.push(te)}),Q.length>0&&(A.value=Q.join(n.separator))}else A.value=null;R(U)}),_}),w=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),f.value=_):P(_,"value",g.value,!0)};let q=he(n,"hintText"),C=l.ref(!1);const k=_=>{let R=_.target.value;L.value=!0,pe(q.value)||(C.value=!0),s("focus",R,_)},D=_=>{setTimeout(()=>{C.value&&(C.value=!1),L.value=!1},0);let R=_.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),x.value||s("blur",R,_)},Y=()=>{s("clear","")},W=l.ref(!1);let Z=null;const G=()=>{ie(n.showTooltip)&&W.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{W.value=!0},150))},ee=()=>{Z&&(clearTimeout(Z),W.value=!1,Z=null)},re=l.computed(()=>W.value||C.value),I=l.computed(()=>W.value?v.value:q.value),x=l.ref(!1),F=_=>{x.value=_,s("visible-change",_),_||s("selected")},V=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return Ce({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:A.value||c.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:Y,onChange:w,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:V,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=M.value);const R={};r.slots.option&&(R.default=r.slots.option),r.slots.empty&&(R.empty=r.slots.empty);const U=[],z=l.h(y.ElCascader,B,R);U.push(z);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const T={...ke(n,ho),hintText:I.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:G,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=$),l.h(o,T,Q)}}}}const{componentName:Us,create:Gs,scope:Xs}=se("cascader-item"),hl=Gs(Ys(Us,Xs,Se)),mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zs(e,t,o){return{props:{...we,...Pe,...mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),c=u(n,["placeholder"]),f=l.ref(!1),d=he(n,"modelValue",null,s),v=e,P=l.computed(()=>({[v]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const $=O=>{let N=O.target.value;f.value=!0,pe(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},M=()=>{s("clear","")},L=l.ref();return Ce({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const A={...r.attrs,ref:L,class:P.value,placeholder:c.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:M,onChange:h,onInput:g,onFocus:$,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],w=l.h(y.ElAutocomplete,A,N);E.push(w);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,mo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:Qs,create:Js,scope:eu}=se("autocomplete-item"),ml=Js(Zs(Qs,eu,Se));function tu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(v=>v[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(v=>v[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(v=>v[n]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let nu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function lu(){const e=l.getCurrentInstance();return new nu(e.proxy)}const _r={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ou(e,t){return{props:{..._r},setup(o,{attrs:n,slots:r}){const a=lu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([c,f])=>{i.value=await a.load(o.sourceType,c,f)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=tu(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?l.resolveComponent(o.tag):o.tag;return()=>{const c={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:Eh,create:ru,scope:kh}=se("mapping"),Rt=ru(ou());function au(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let 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 iu(e,t){return{props:{..._r},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=au(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Ph,create:su,scope:Ih}=se("table-mapping-column"),gl=su(iu()),uu=Symbol.for("TableStateKey");function go(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let 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 cu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(uu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=go(s.row,s.column.property),c=a?go(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),P={class:{"el-radio":!0,"is-checked":f}};return l.h("label",P,[v])}};return l.h(y.ElTableColumn,{...n},i)}}}}const{componentName:Vh,create:fu,scope:Oh}=se("table-radio-column"),pl=fu(cu()),du={},hu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function mu(e,t){return l.openBlock(),l.createElementBlock("svg",hu,t[0]||(t[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const gu=_e(du,[["render",mu]]),{componentName:Dh,create:pu,scope:Fh}=se("table-setting"),vu={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:"不固定"}},yu=pu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:gu,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...vu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=p=>p.length>1,v=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(R=>{H.some(U=>U.prop===R.prop?(R.label=U.label,!0):!1)});const _=[];r.value=p.map((R,U)=>(!(R.label===""||R.type)&&R.visible!==!1&&_.push(R.prop),{...R,sortIndex:U})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),L.value=_},P=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>P(B));for(let B of H){const R=P(B);if(_.indexOf(R)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,R)=>({...B,sortIndex:R})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}v(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,$.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&($.value=!0),L.value=H,m()},M=()=>{h(n),m()},L=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,$.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&($.value=!0),m()},A=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,w=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const R=Number(N.index),U=Number(_.dataset.index);if(R!==U){if(R<U){const z=r.value[R];r.value.splice(R,1),r.value.splice(U,0,z)}else{const z=r.value[R];r.value.splice(R,1),r.value.splice(U+1,0,z)}v(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},Z=p=>{const H=r.value[p];H.fixed=void 0,m()},G=new Map;let ee=null;function re(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:j,handleReset:M,checkedValue:L,handleCheckChange:O,onShow:A,onDragStart:w,onDragEnd:q,onDragOver:C,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:Z,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const R=Math.floor(B.offsetWidth);if(Math.floor(re(B))>R){let z=G.get(H);if(z){if(z===ee)return;Oe.hide(z)}z=Oe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),G.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=G.get(H);_&&(Oe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Oe.hide(ee),ee=Oe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Oe.hide(ee),ee=null)}}}}),bu={class:"fox-table-setting"},xu={class:"fox-table-setting__header"},wu={class:"fox-table-setting__body"},Su={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Tu={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],$u=["onMouseover","onMouseleave"],Nu={class:"tools-item"},Eu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ku={key:0,class:"fox-table-setting__body-title"},Pu=["data-index","draggable"],Iu=["onMouseover","onMouseleave"],Vu={class:"tools-item"},Ou={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Du={key:0,class:"fox-table-setting__body-title"},Fu=["data-index","draggable"],Ru=["onMouseover","onMouseleave"],Au={class:"tools-item"};function Mu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),P=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",bu,[l.createElementVNode("div",xu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",wu,[l.createVNode(P,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Su,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Tu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,$u)]),_:2},1032,["label"]),l.createElementVNode("div",Nu,[l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Eu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",ku,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Iu)]),_:2},1032,["label"]),l.createElementVNode("div",Vu,[l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Pu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Du,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Ru)]),_:2},1032,["label"]),l.createElementVNode("div",Au,[l.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:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.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:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Fu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pn=_e(yu,[["render",Mu]]);let Lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let c=(n-1)*r,f=c+r;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,r,a,i,s]);const u=ze(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Qe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function Bu(){const e=l.getCurrentInstance();return new Lu(e.proxy)}class _u{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=ze(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=ze(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function qr(){const e=l.getCurrentInstance();return new _u(e.proxy)}const qu=Symbol.for("TableStateKey"),po={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},vo={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},En={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:()=>"不固定"}},ju={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function zu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let 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 kn(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=zu(n,r);if(a!==i)return!1}return!0})}function Hu(e,t,o){return{inheritAttrs:!1,props:{...we,...Pe,...po,...vo,...En,...ju},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Te({componentName:e,validateHandler:{getValue(...X){return O.value}}},n.prop??r.attrs.name),u=e,c=l.computed(()=>({[u]:!0})),f=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),P=l.shallowRef({}),g=l.computed(()=>({...P.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=ie(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,X=>{h.value=X}),l.watch(()=>n.pageSize,X=>{m.value=X}),l.watch([h,m],([X,ne],[oe,ae])=>{ne!==ae&&(h.value=1,X=1),w(n.data,X,ne,g.value)}));const b=()=>Array.isArray(n.data)?!0:ie(n.autoLoad);b()&&l.watch([()=>n.data,g],async([X,ne],[oe,ae])=>{b()&&(X!==oe&&(N=!0),!(!Array.isArray(X)&&Xe(X,oe)&&Xe(ne,ae))&&(S?(h.value=0,M.value=!0,O.value=[],C()):h.value===1?w(X,h.value,m.value,ne):h.value=1))},{deep:!0});const $=X=>{h.value=X,i("page-index-change",X)},j=X=>{m.value=X,i("page-size-change",X)},M=l.ref(!0),L=l.ref(0),O=l.ref(),A=Bu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,X=>ie(X)),w=async(X,ne,oe,ae,Ie)=>{N=!1;try{if(Ie===!0){if(!M.value)return!1;const me=await A.load("table",X,ne,oe,ae,N,a.value);return L.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=L.value)||me.page.length<oe?(M.value=!1,!1):!0}else{const me=await A.load("table",X,ne,oe,ae,N,a.value);return L.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),L.value=0,O.value=[]}return!1};let q=!1;const C=async()=>{if(!q){if(q=!0,!M.value){q=!1;return}h.value+=1,await w(n.data,h.value,m.value,g.value,!0),q=!1}},k=(X={},ne=!1)=>new Promise(async oe=>{P.value={...l.toRaw(X??{})},ne||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],M.value=!0,await C()):await w(n.data,h.value,m.value,g.value),oe()}),D=()=>{L.value=0,O.value=[],S===!0&&(h.value=0,M.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},Z=l.ref(null);if(S===!0){let X=null;const ne=()=>{Z.value&&(X=new IntersectionObserver(ae=>{let Ie=!1;for(let me of ae)if(me.intersectionRatio>0){Ie=!0;break}Ie&&C()}),X.observe(Z.value))},oe=()=>{!X||!Z.value||(X.unobserve(Z.value),X=null)};l.onMounted(ne),l.onBeforeUnmount(oe)}b()&&!E.value&&k();const G=l.ref(null);l.provide(qu,{currentRow:G});const ee=(X,ne)=>{G.value=X,i("current-change",X,ne)},re=(X,ne,oe)=>{i("row-click",X,ne,oe),ie(n.rowClickSelectable)===!0&&ye?.value.toggleRowSelection(X)},I=[],x=(X,ne)=>{if(i("expand-change",X,ne),ie(n.uniqueExpansion))if(Array.isArray(ne)&&ne.length==0){const oe=I.length;I.splice(0,oe)}else{I.forEach(ae=>{ae!==X&&ye?.value.toggleRowExpansion(ae,!1)});const oe=I.length;I.splice(0,oe,X)}},F=r.attrs.id??n.prop??r.attrs.name,V=qr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(ne=>({...ne})),columnPropertyList:p.value}),B=X=>{p.value=[...X],U()},R=async()=>{const X=await V.load(F);X&&(p.value=X)},U=()=>{V.save(F,p.value)},z=()=>{V.remove(F)};R();const Q=X=>X?X.type?X.type:X.label?X.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(X,ne)=>{for(let oe in ne){const ae=ne[oe];typeof ae!="function"&&(X[oe]=ae)}},K=l.computed(()=>{const X=te(),ne=new Map;if(H=[],X.forEach(oe=>{const ae=oe;if(!ae.props)return;const Ie=Q(ae.props);ne.set(Ie,oe);const me={label:"",prop:""};T(me,ae.props),H.push(me)}),p.value.length===H.length){const oe=[];for(let ae of p.value){const Ie=Q(ae),me=ne.get(Ie);if(!me)return X;if(ae.visible===!1)continue;const Ue=me;Ue.props.fixed=ae.fixed,oe.push(Ue)}return oe}return X}),J=l.shallowRef(new Map),le=({row:X,column:ne,rowIndex:oe,columnIndex:ae})=>{const Ie=`${oe}_${ne.property}`,me=`${oe}_${ae}`;let Ue=J.value.get(Ie);return Ue||(Ue=J.value.get(me)),typeof Ue=="string"?Ue:""},fe=X=>X?ne=>{const oe=[];let ae=le(ne);return ae&&oe.push(ae),ae=typeof X=="function"?X(ne):X,ae&&oe.push(ae),oe.length===0?"":oe.join(" ")}:le,ue=(X=!1)=>{J.value.forEach((ne,oe)=>{ge(oe,ne,X)})},ge=(X,ne,oe=!1)=>{const ae=`${X}_item`;oe?(s.clearPersistantMessage(),Array.isArray(ne)?s.emitToChildren({name:X},"setCellClassNames",[]):s.emitToChildren({name:ae},"setCustomClassName","")):Array.isArray(ne)?s.emitToChildren({name:X,cachePolicy:"Persistant",uniqueId:ae},"setCellClassNames",ne):s.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:ae},"setCustomClassName",ne)},He=(X,ne,oe)=>{const ae=`${X}_${ne}`;oe?(J.value.set(ae,oe),ge(ae,oe)):(J.value.delete(ae),ge(ae,"",!0)),l.triggerRef(J)},tt=X=>{ue(!0),J.value.clear(),X.forEach(ne=>{const oe=`${ne.rowIndex}_${ne.column}`;Array.isArray(ne.children)?J.value.set(oe,ne.children):typeof ne.cellClassName=="string"&&J.value.set(oe,ne.cellClassName)}),ue(),l.triggerRef(J)},ht=()=>{ue(),J.value.clear(),l.triggerRef(J)},nt=l.shallowRef(new Map),Wl=({rowIndex:X})=>{const ne=`${X}`;return nt.value.get(ne)??""},Qr=X=>X?ne=>{const oe=[];let ae=Wl(ne);return ae&&oe.push(ae),ae=typeof X=="function"?X(ne):X,ae&&oe.push(ae),oe.length===0?"":oe.join(" ")}:Wl,Jr=(X,ne)=>{const oe=`${X}`;ne?nt.value.set(oe,ne):nt.value.delete(oe),l.triggerRef(nt)},ea=()=>{nt.value.clear(),l.triggerRef(nt)},ye=l.ref();return Ce({clearSelection:()=>ye?.value.clearSelection(),getSelectionRows:()=>ye?.value.getSelectionRows(),toggleRowSelection:(X,ne)=>{ye?.value.toggleRowSelection(X,ne)},toggleRowSelectionByProp:(X,ne)=>{if(!O.value)return;const oe=kn(O.value,X);oe.length!==0&&oe.forEach(ae=>{ye?.value.toggleRowSelection(ae,ne)})},toggleAllSelection:()=>{ye?.value.toggleAllSelection()},toggleRowExpansion:(X,ne)=>{ye?.value.toggleRowExpansion(X,ne)},toggleRowExpansionByProp:(X,ne)=>{if(!O.value)return;const oe=kn(O.value,X);oe.length!==0&&oe.forEach(ae=>{ye?.value.toggleRowExpansion(ae,ne)})},setCurrentRow:X=>{ye?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!O.value)return;const ne=kn(O.value,X);ne.length!==0&&ye?.value.setCurrentRow(ne[0])},getCurrentRow:()=>G.value,clearSort:()=>{ye?.value.clearSort()},clearFilter:X=>{ye?.value.clearFilter(X)},doLayout:()=>{ye?.value.doLayout()},sort:(X,ne)=>{ye?.value.sort(X,ne)},scrollTo:(X,ne)=>{ye?.value.scrollTo(X,ne)},setScrollTop:X=>{ye?.value.setScrollTop(X)},setScrollLeft:X=>{ye?.value.setScrollLeft(X)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return L.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:He,setCellClassNames:tt,clearCellClassName:ht,setRowClassName:Jr,clearRowClassName:ea}),()=>{const ne={...Ye(r.attrs),onCurrentChange:ee,onRowClick:re,onExpandChange:x,data:O.value,ref:ye,class:c.value,"cell-class-name":fe(n.cellClassName),"row-class-name":Qr(n.rowClassName)},oe={};if(r.slots.default&&(oe.default=()=>K.value),r.slots.append&&(oe.append=r.slots.append),r.slots.empty&&(oe.empty=r.slots.empty),S===!0){const qe=[];if(M.value){const Tt=l.h(Ee.Loading,{class:`${u}__infinite-icon`});qe.push(Tt);const xn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);qe.push(xn)}else{const Tt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);qe.push(Tt)}const it={ref:Z,class:`${u}__infinite`},bn=l.h("div",it,qe);oe.append=()=>bn}const ae=l.h(y.ElTable,ne,oe),Ie=[];if(Ie.push(ae),!S){let qe=null;if(typeof r.slots.pagination=="function")qe=r.slots.pagination();else if(n.showPagination){const it={class:v.value,total:L.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};qe=l.h(y.ElPagination,it)}if(n.showSetting){const it=[];qe&&it.push(qe);const bn=l.h(y.ElIcon,{class:f.value},{default:()=>l.h(Ee.Setting)}),Tt=rr(n,En),xn=l.h(pn,{...Tt,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>bn});it.push(xn);const ta=l.h("div",{class:d.value},it);Ie.push(ta)}else qe&&Ie.push(qe)}const me={default:()=>Ie},St={...ke(n,po,vo,En),prop:`${n.prop}_item`};return St.contentClass=`${u}__wrap`,St.errorMarkClass="is-table-error",E.value&&b()&&(St["appear-listen"]=!0,St.onAppear=W),l.h(o,St,me)}}}}const{componentName:Ku,create:Wu,scope:Yu}=se("table-item"),vl=Wu(Hu(Ku,Yu,Se));function xt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Uu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Xu(){const e=l.getCurrentInstance();return new Gu(e.proxy)}function jr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=xt(e,t),r=xt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function Zu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=xt(e,a)===t;else if(o==="item")i=jr(e,a,t);else{let s=At(e,a);s==null&&(s=xt(e,a)),i=s===t}if(i){r=a;break}}return r}function Qu(e){return{text:e,value:e}}function Ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function ec(e,t,o){return{inheritAttrs:!0,props:{...we,...Pe,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(O,A,N,E=!0)=>{const w=Zu(n,O,A,N);if(w===null){if(c.value===null)return;c.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!jr(n,w,c.value)){u.value=O;const C=l.toRaw(w);c.value=C;let k=null;n.valueType==="text"?k=xt(n,C):n.valueType==="item"?k=C:k=At(n,C),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),v=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,O=>ie(O)),P=Xu(),g=async(O,A)=>{if(O){const N=await P.load("radio",O,A);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>Qu(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,A])=>{g(O,A)},{immediate:!v.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,A])=>{f(A,n.valueType,O,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{f(O,"value",d.value,!0)};let j=he(n,"hintText"),M=he(n,"hintVisible");const L=(O,A)=>{const N=[];return O.forEach((E,w)=>{const q=At(n,E),C=xt(n,E);let k=Uu(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=Ju(n,E,w)??{},Y=`${q}_${w}`,W={...D,key:Y,label:q,size:n.size,border:ie(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(y.ElRadioButton,W,{default:()=>[C]})):typeof A=="function"?N.push(l.h(y.ElRadio,W,{default:()=>A(E)})):N.push(l.h(y.ElRadio,W,{default:()=>[C]}))}),N};return()=>{const A={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>L(d.value,r.slots.text);const w=l.h(y.ElRadioGroup,A,E);N.push(w);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,yo),hintText:j.value,hintVisible:M.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:tc,create:nc,scope:lc}=se("radio-item"),yl=nc(ec(tc,lc,Se));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function oc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let rc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ac(){const e=l.getCurrentInstance();return new rc(e.proxy)}function zr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=yt(e,t),i=yt(e,o);return a===i}function ic(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=wt(e,i)===a;else if(o==="item")s=zr(e,i,a);else{let u=yt(e,i);u==null&&(u=wt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function sc(e){return{text:e,value:e}}function uc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const bo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function cc(e,t,o){return{inheritAttrs:!0,props:{...we,...Pe,...bo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(O,A,N,E=!0)=>{const w=ic(n,O,A,N);if(w===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(w.length!==c.value.length)q=!1;else for(let C=0;C<w.length;C++){const k=w[C],D=c.value[C];if(!zr(n,k,D)){q=!1;break}}if(!q){c.value=w;let C=[],k=[];w.forEach(Y=>{C.push(yt(n,Y)),n.valueType==="text"?k.push(wt(n,Y)):n.valueType==="item"?k.push(Y):k.push(yt(n,Y))}),u.value=C;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),v=De(l.computed(()=>n.appearLoad),"appearLoad",Le.Near,O=>ie(O)),P=ac(),g=async(O,A)=>{if(O){const N=await P.load("checkbox",O,A);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>sc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,A])=>{g(O,A)},{immediate:!v.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,A])=>{f(A,n.valueType,O,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{f(O,"value",d.value,!0)};let j=he(n,"hintText"),M=he(n,"hintVisible");const L=(O,A)=>{const N=[];return O.forEach((E,w)=>{const q=yt(n,E),C=wt(n,E);let k=oc(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=uc(n,E,w)??{},Y=`${q}_${w}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:ie(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(y.ElCheckboxButton,W,{default:()=>[C]})):typeof A=="function"?N.push(l.h(y.ElCheckbox,W,{default:()=>A(E)})):N.push(l.h(y.ElCheckbox,W,{default:()=>[C]}))}),N};return()=>{const A={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:xe(n.max),min:xe(n.min),onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>L(d.value,r.slots.text);const w=l.h(y.ElCheckboxGroup,A,E);N.push(w);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,bo),hintText:j.value,hintVisible:M.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:fc,create:dc,scope:hc}=se("checkbox-item"),bl=dc(cc(fc,hc,Se)),xo={modelValue:{type:[Number,String],required:!1}};function mc(e,t,o){return{props:{...we,...Pe,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>xe(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=he(n,"hintText"),P=l.ref(!1);const g=l.ref();return Ce({}),()=>{const m={...Ye(r.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(y.ElRate,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const L={...ke(n,xo),hintText:v.value,hintVisible:P.value,prop:`${n.prop}_item`};return l.h(o,L,j)}}}}const{componentName:gc,create:pc,scope:vc}=se("rate-item"),xl=pc(mc(gc,vc,Se)),wo={modelValue:{type:[Boolean,String,Number],required:!1}};function yc(e,t,o){return{props:{...we,...Pe,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=he(n,"hintText"),P=he(n,"hintVisible");const g=l.ref();return Ce({}),()=>{const m={...Ye(r.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(y.ElSwitch,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const L={...ke(n,wo),hintText:v.value,hintVisible:P.value,prop:`${n.prop}_item`};return l.h(o,L,j)}}}}const{componentName:bc,create:xc,scope:wc}=se("switch-item"),wl=xc(yc(bc,wc,Se)),So={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Sc(e,t,o){return{props:{...we,...Pe,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),c=he(n,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),v=M=>{u("update:modelValue",M),u("change",M)};let P=he(n,"hintText"),g=l.ref(!1);const h=M=>{let O=M.target.value;s.value=!0,pe(P.value)||(g.value=!0),u("focus",O,M)},m=M=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=M.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,M)},S=()=>{u("clear","")},b=l.ref(!1),$=M=>{b.value=M,u("visible-change",M),M||u("selected")},j=l.ref();return Ce({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const L={...Ye(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":v,onClear:S,onFocus:h,onBlur:m,onVisibleChange:$},O={};r.slots.option&&(O.default=r.slots.option);const A=[],N=l.h(y.ElTreeSelect,L,O);A.push(N);const E={default:()=>A};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,So),hintText:P.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Tc,create:Cc,scope:$c}=se("tree-select-item"),Sl=Cc(Sc(Tc,$c,Se)),Nc={},Ec={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"};function kc(e,t){return l.openBlock(),l.createElementBlock("svg",Ec,t[0]||(t[0]=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)]))}const Pc=_e(Nc,[["render",kc]]),{componentName:Lh,create:Ic,scope:Bh}=se("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:"到底部"}},Oc=Ic({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Pc,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Vc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=qr(),s=I=>I.length>1,u=()=>{const I=[],x=[...a.value];a.value=x.map((V,p)=>(V.visible!==!1&&I.push(V.prop),{...V,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),$.value=I},c=I=>{let x=null;if(typeof I=="string")x=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const V=I.$el??I;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const F=[];return x.forEach(V=>{const p=V.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=V.getAttribute("prop")??"",R=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:R!=="none"})}),F},f=()=>{if(!r){const I=c(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const x=await i.load(e.groupProp),F=V=>{if(!V||!r)return;const p=r.map(H=>({...H}));Array.isArray(x)&&x.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&P(!1)};r?F(!0):on(f,e.initDelay,5,50,!1,F)},v=()=>{const I=r??[];a.value=I.map(x=>({...x})),u(),P()},P=(I=!0)=>{I&&i.save(e.groupProp,a.value);const x=a.value.map(F=>({...F}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const x=[];a.value.forEach(V=>{I&&x.push(V.prop),V.visible=I}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),$.value=x,P()},b=()=>{v()},$=l.ref([]),j=I=>{a.value.forEach(F=>{const V=I.indexOf(F.prop)!==-1;F.visible=V}),h.value=!1,m.value=!1;const x=a.value.length;I.length===x?h.value=!0:I.length>0&&(m.value=!0),P()},M=()=>{d()};l.onMounted(()=>{d(!0)});const L={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,A=I=>{const x=I.currentTarget;x&&x.dataset&&(L.index=x.dataset.index)},N=I=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},E=I=>{const x=I.currentTarget;I.relatedTarget;const F=O(x);F&&(I.preventDefault(),L.currentRow&&L.currentRow!==F&&L.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),L.currentRow=F)},w=I=>{I.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},q=I=>{const x=I.currentTarget,F=O(x);if(!F)return;I.preventDefault();const V=Number(L.index),p=Number(F.dataset.index);if(V!==p){if(V<p){const H=a.value[V];a.value.splice(V,1),a.value.splice(p,0,H)}else{const H=a.value[V];a.value.splice(V,1),a.value.splice(p+1,0,H)}u(),P()}},C=I=>{const x=a.value[I];a.value.splice(I,1),a.value.splice(0,0,x),u(),P()},k=I=>{const x=a.value[I];a.value.splice(I,1),a.value.push(x),u(),P()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const x=document.createRange();return x.setStart(I,0),x.setEnd(I,I.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:$,handleCheckChange:j,onShow:M,onDragStart:A,onDragEnd:N,onDragOver:E,onDragLeave:w,onDrop:q,checkboxLabelStyle:g,toTop:C,toBottom:k,onMouseOverForOverflowText:(I,x,F)=>{const V=I.currentTarget;if(V){const p=Math.floor(V.offsetWidth);if(Math.floor(W(V))>p){let _=D.get(x);if(_){if(_===Y)return;Oe.hide(_)}_=Oe.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(x,_),Y=_}}},onMouseLeaveForOverflowText:(I,x)=>{const F=D.get(x);F&&(Oe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,x)=>{const F=I.currentTarget;F&&(Y&&Oe.hide(Y),Y=Oe.show(F,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Oe.hide(Y),Y=null)}}}}),Dc={class:"fox-group-setting"},Fc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Ac={class:"fox-group-setting__body-list","data-role":"container"},Mc=["data-index","draggable"],Lc=["onMouseover","onMouseleave"],Bc={class:"tools-item"};function _c(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),c=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Dc,[l.createElementVNode("div",Fc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=P=>e.isCheckAll=P),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Rc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=P=>e.checkedValue=P),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ac,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,P=>(l.openBlock(),l.createElementBlock("div",{key:P.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":P.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:P.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,P.prop,P.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,P.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(P.label),45,Lc)]),_:2},1032,["label"]),l.createElementVNode("div",Bc,[l.createVNode(f,{onClick:g=>e.toTop(P.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(P.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Mc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=_e(Oc,[["render",_c]]);var qc=["aria-labelledby"],jc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,qc))}}),zc=["aria-labelledby"],Cl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8M550.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 16s-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.4zM121.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.4zM38.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.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 16zm160-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.4M473.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.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.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.8M985.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.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,zc))}}),Hc=["aria-labelledby"],Kc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Hc))}}),Wc=["aria-labelledby"],Yc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,Wc))}}),Uc=["aria-labelledby"],Gc=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){let o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>({"fox-icon":!0,["fox-icon-"+o.name]:o.name,[o.class]:!!o.class})),s=l.computed(()=>{let u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,c)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 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)]],14,Uc))}});const Xc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},To=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],Zc=(e,t)=>t[e.visibleKey],Co=(e,t)=>t[e.disabledKey],Qc=(e,t)=>{const o=t[e.doitKey];return ie(o)},Jc=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function ef(e,t,o,n=!1){return{props:{...Xc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),c=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),P=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const x=I;x?(h.value=x,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),j=(I,x)=>{$.value[x]=I},M=I=>x=>{j(x,I)},L=(I,x)=>{const F=b.value,V=$.value;if(!F||!V||!V[I])return;const p=V[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,x?0:.3,r.direction)},O=(I,x,F,V)=>{let p=0;const H=V==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){V==="horizontal"?I.scrollLeft+=(x-H)/_:I.scrollTop+=(x-H)/_,++p<_&&Un(B)}B()},A=(I,x)=>{const F=Nt(r,I),V={};return V[`${e}__titles-item`]=!0,V.disabled=Co(r,I),V.active=F===d.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},N=(I,x)=>{const F={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(F,x.style),F},E=(I,x)=>`${Nt(r,I)??x}`,w=(I,x)=>{const F=Nt(r,I),V={};V[`${e}__popup-item`]=!0,V.disabled=Co(r,I),V.active=F===d.value,r.shape&&(V[`${r.shape}`]=!0);const p=$o(r,I,x);return p&&p.disabled===!0&&(V.disabled=p.disabled),V},q=l.computed(()=>(r.data??[]).filter(x=>Zc(r,x)!==!1)),C=(I,x)=>{const F=Nt(r,I);if(d.value==F)return;const V=()=>{d.value=F,r.scroll&&L(x,!1),i("update:modelValue",F),i("change",I,x)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,x);Xo(p)?p.then(H=>{H!==!1&&V()}).catch(()=>{V()}):p!==!1&&V()}else V()},k=(I,x)=>function(){C(I,x)},D=(I,x)=>{C(I,x),S(!1)},Y=(I,x)=>function(){D(I,x)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(F=>Nt(r,F)===d.value);x!==-1&&L(x,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const Z=(I,x)=>{if(a.item)return a.item({item:I,index:x});const F=$o(r,I,x),V=[];if(a.text){const B=a.text({item:I,index:x});V.push(B)}else{const B=[];if(F?.doit===!0||Qc(r,I)){const Q={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Q);B.push(te)}const R=F?.num??Jc(r,I);if(R){let Q="";const te=xe(R);te>=100?Q="99+":Q=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Q]);B.push(K)}const U={class:`${e}__titles-item-text`};B.push(To(r,I));const z=l.h("view",U,B);V.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);V.push(H);const _={ref:M(x),class:A(I,F),style:N(I,F),key:E(I,x),onClick:k(I,x)};return l.h("view",_,V)},G=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const V=q.value[F],p=Z(V,F);I.push(p)}const x={ref:b,class:u.value,style:c.value};return l.h("view",x,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const x={class:`${e}__navigation`,onClick:m};return l.h("view",x,[I])},re=()=>{const I=[];for(let F=0;F<q.value.length;F++){const V=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:V,index:F}):p=To(r,V);const H={class:w(V,F),key:E(V,F),onClick:Y(V,F)},_=l.h("view",H,[p]);I.push(_)}const x={class:v.value,style:P.value};return l.h("view",x,I)};return()=>{const I=[],x=G();if(I.push(x),r.showQuickNavigation){const V=ee();I.push(V);const p=re();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:tf,componentName:nf,scope:lf}=se("tabs-bar"),$l=tf(ef(nf,lf,jc,!1)),Hr=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function rf(e,t,o=!1){return{props:{...of},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Hr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const c=l.ref(null),f=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const P=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const m=sn(c.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(c.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:P.value,ref:f},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:c};return l.h("view",S,[m])}}}}const{create:af,componentName:sf,scope:uf}=se("tabs-container"),Nl=af(rf(sf,uf,!1)),cf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function ff(e,t,o){return{props:{...cf},setup(n,{emit:r,slots:a}){const i=l.inject(Hr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),u=l.computed(()=>n.loaded!=null?ie(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,P=l.h(v,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[P,m]);c.push(b)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:df,componentName:hf,scope:mf}=se("tabs-pane"),El=df(ff(hf,mf,Cl)),gf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function pf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function No(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Eo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function vf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Pn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function ko(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Po(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class yf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function bf(){const e=l.getCurrentInstance();return new yf(e.proxy)}function xf(e,t,o,n){return{props:{...gf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=bf(),c=l.ref([]),f=l.computed(()=>c.value.filter(x=>vf(r,x)!==!1)),d=l.ref(-1),v=()=>{const x=r.modelValue,F=f.value.findIndex(V=>No(r,V)===x);d.value!==F&&(d.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,f],()=>{v()});const P=x=>d.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const F=f.value[x],p=(In(r,F,x)??{}).status??Pn(r,F);return P(x)||p},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),S=(x,F,V,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),x===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:V?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),$=(x,F={})=>{const V={...F};return b.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},j=(x,F)=>{let V={};if(F<f.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},M=x=>f.value.length-1===x,L=(x,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const V=d.value,p=F;d.value=F,r.scroll&&re(F,!1);const H=No(r,x);i("update:modelValue",H);const _={fromIndex:V,currentIndex:p,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),A=async(x,F)=>{try{const V=await u.load("stesbar",x,F);Array.isArray(V)&&(c.value=V),O.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,F])=>{x&&A(x,F)},{immediate:!0});const N=(x,F,V,p,H)=>{let _=null;if(a.icon)_=a.icon({item:x,index:F,status:p});else if(p==="done"){const R={};r.iconSize&&(R.width=r.iconSize,R.height=r.iconSize);const U=r.icon??o;_=l.h(U,R)}else{const R=V??`${F+1}`;_=l.h("span",{},[R])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||L(x,F)}};return l.h("view",B,[_])},E=(x,F,V)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(x,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},w=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const p=r.markIcon??n;x=l.h(p,V)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},q=(x,F,V,p,H)=>{const _=[];if(!M(F)){const U=E(x,F);_.push(U)}const B=N(x,F,V,p,H);_.push(B);const R={class:"fox-steps-bar__head"};return l.h("view",R,_)},C=(x,F,V,p)=>{let H=null;a.main?H=a.main({item:x,index:F,status:V}):H=pf(r,x);const _={class:"fox-steps-bar__main",onClick:()=>{p||L(x,F)}};return l.h("view",_,[H])},k=(x,F,V)=>{let p=null;if(a.sub){p=a.sub({item:x,index:F,status:V});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(x,F)=>{const V=In(r,x,F)??{},p=V.status??Pn(r,x);let H=Eo(r,x);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=V.label??Po(r,x),B=[],R=N(x,F,_,p,H);R&&B.push(R);const U=C(x,F,p,H);if(U&&B.push(U),!M(F)){const J=E(x,F);J&&B.push(J)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Q=V.class,te=V.style??{};let T=ko(r,x);V.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Q),style:$(F,te)};return l.h("view",K,[z])},Y=(x,F)=>{const V=In(r,x,F)??{},p=V.status??Pn(r,x);let H=Eo(r,x);V.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=V.label??Po(r,x),B=[],R=r.layout;for(let T of R)if(T==="head"){const K=q(x,F,_,p,H);B.push(K)}else if(T==="main"){const K=C(x,F,p,H);B.push(K)}else if(T==="sub"){const K=k(x,F,p);B.push(K)}else if(T==="mark"){const K=w();B.push(K)}const U=V.class,z=V.style??{};let Q=ko(r,x);V.doit===!0&&(Q=!0);const te={ref:ee(F),class:S(F,p,H,Q,U),style:$(F,z)};return l.h("view",te,B)},W=l.ref(),Z=l.ref([]),G=(x,F)=>{Z.value[F]=x},ee=x=>F=>{G(F,x)},re=(x,F)=>{const V=W.value,p=Z.value;if(!V||!p||!p[x])return;const H=p[x];let _=0;r.direction==="vertical"?_=H.offsetTop-(V.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(V.offsetWidth-H.offsetWidth)/2,I(V,_,F?0:.3,r.direction)},I=(x,F,V,p)=>{let H=0;const _=p==="horizontal"?x.scrollLeft:x.scrollTop,B=V===0?1:Math.round(V*1e3/16);function R(){p==="horizontal"?x.scrollLeft+=(F-_)/B:x.scrollTop+=(F-_)/B,++H<B&&Un(R)}R()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const p=f.value[V],H=D(p,V);x.push(H)}else for(let V=0;V<f.value.length;V++){const p=f.value[V],H=Y(p,V);x.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,x)}}}}const{componentName:wf,create:Sf,scope:Tf}=se("steps-bar"),kl=Sf(xf(wf,Tf,Yc,Gc)),Cf=Symbol.for("InnerPageScopeKey"),$f=Symbol.for("PageWrapperKey");function Nf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(Cf,!0);const r={};l.provide($f,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.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 l.h(y.ElDialog,c,f)}}}}const{componentName:_h,create:Ef,scope:qh}=se("dialog-item"),Pl=Ef(Nf());let Et=0;const Io="fox-overflow-hidden",Vo=()=>Ze?document.body:{classList:[]},kf=e=>[()=>{if(e())try{!Et&&Vo().classList.add(Io),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Vo().classList.remove(Io)}catch{}}],Pf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:If,create:Vf}=se("overlay"),Of=Vf({props:{...Pf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=kf(()=>e.lockScroll),r=l.computed(()=>({[If]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Df(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const vn=_e(Of,[["render",Df]]),Ff={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Kr=2e3;let Oo=Kr;const Rf=(e,t)=>({components:t,props:{...Ff},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Kr&&(Oo=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Oo,o.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},P=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():c()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:d,onClickOverlay:v,onOpened:P,onClosed:g}}}),{componentName:Af,create:Mf}=se("popup"),Lf=Mf(Rf(Af,{FoxOverLay:vn,Close:Kc}));function Bf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Il=_e(Lf,[["render",Bf]]),{create:_f}=se("toast"),qf=_f({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,P=>{P&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const P=de(e.iconSize);return l.h(e.icon,{width:P,height:P,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),jf={key:1,class:"fox-toast-title"},zf=["innerHTML"];function Hf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",jf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,zf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Vl=_e(qf,[["render",Hf]]),Kf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Wf=(e,t,o)=>({props:{...Kf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=gr(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),d=N=>{let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),a("update:modelValue",w,N),a("change",w,N)},v=l.ref({}),P=N=>{let w=N.target.value;u.active=!0,v.value=n.focusStyle,a("focus",w,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let w=N.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),v.value={},a("blur",w,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},$=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},M=N=>{a("click-left-icon",n.modelValue,N)},L=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const A=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:L.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:P,onBlur:g,onkeyup:$},w=l.h("input",E);N.push(w);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...v.value}};return l.h("view",C,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},C=l.h("span",q,[n.label]);N.push(C)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",q,[r.leftout()]);N.push(C)}const E=A();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",q,[r.rightout()]);N.push(C)}const w={class:`${e}`,style:c.value};return l.h("view",w,N)}}}),{componentName:Yf,create:Uf,scope:Gf}=se("searchbar"),Ol=Uf(Wf(Yf,Gf,Ee.CircleClose)),Xf=/scroll|auto|overlay/i,Wr=window;function Zf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Qf(e,t=Wr){let o=e;for(;o&&o!==t&&Zf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Xf.test(n))return o;o=o.parentNode}return t}function Yr(e,t=Wr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Qf(e.value,t))}),o}const Ur=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Jf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function ed(e,t,o){return{props:{...Jf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Yr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=b=>b?b.offsetTop+v(b.offsetParent):0,P=()=>{let b=0,$=0,j="down";if(c.value==window){const M=Ur();u.value&&(b=v(u.value)+u.value.offsetHeight-M-window.innerHeight),$=M}else{const{scrollHeight:M,clientHeight:L,scrollTop:O}=c.value;b=M-L-O,$=O}return f.beforeScrollTop>$?j="up":j="down",f.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&j=="down"},g=()=>{Ho(()=>{if(!P()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{c.value&&c.value.addEventListener("scroll",g,n.useCapture)},m=()=>{c.value&&c.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),j=[];if(f.isInfiniting){let A=a?.loading?.()??null;if(!A){let w=a?.loadingIcon?.()??null;if(!w){const k={class:["fox-infinite__bottom-box__img"]};w=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},C=l.h("view",q,[s.loadText.value]);A=[w,C]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,A);j.push(E)}else if(!n.hasMore){let A=a?.finished?.()??null;if(!A){const N={class:"fox-infinite__bottom-tips"};A=l.h("view",N,[s.loadMoreText.value]),j.push(A)}}const M={class:"fox-infinite__bottom"},L=l.h("view",M,j),O={class:d.value,ref:u};return l.h("view",O,[$,L])}}}}const{componentName:td,create:nd,scope:ld}=se("infinite-loading"),Dl=nd(ed(td,ld,Cl)),Do=10;function Gr(e,t){return e>t&&e>Do?"horizontal":t>e&&t>Do?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.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=Gr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function od(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),c=l.ref(0),f=l.ref(""),d=()=>f.value==="vertical",v=()=>f.value==="horizontal",P=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const $=m.touches[0];i.value=$.clientX-e.value,s.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),n.value=Date.now()-o.value,f.value||(f.value=Gr(u.value,c.value))},start:m=>{if(P(),m.touches){const $=m.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:P,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:v}}const rd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},ad=(e,t,o)=>({props:{...rd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),c=l.ref(),f=Yr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),P=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ne(n.headHeight)),O}),m=O=>{const A=+(n.pullDistance||n.headHeight);let N=O;return O>A&&(O<A*2?N=(O+A)/2:N=A+O/4),Math.round(N)},S=(O,A)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,A?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",$=()=>f.value==window?Ur()==0:f.value&&f.value.scrollTop==0,j=O=>{b()&&($()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},L=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let A=null;if(d.status==="loading"){if(A=a?.loading?.()??null,!A){const Y={class:["fox-pull-refresh-container-topbox-icon"]};A=l.h(o,Y)}}else d.status==="pulling"?A=a?.pulling?.()??null:d.status==="loosing"&&(A=a?.loosing?.()??null);A&&O.push(A);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[P.value]);O.push(E);const w={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",w,O),C={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",C,[q,a?.default?.()]),D={ref:c,class:v.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:M,onTouchend:L}):Object.assign(D,{onMousedown:j,onMousemove:M,onMouseup:L}),l.h("div",D,[k])}}}),{componentName:id,create:sd,scope:ud}=se("pull-refresh"),Al=sd(ad(id,ud,Cl));function cd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=l.h(o.icon??"div",h)}const d={class:u.value,style:c.value},v=n.default?n.default():[],P=l.h("div",d,v),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,P]):l.h("div",g,[P,f])}}}}const{componentName:fd,create:dd,scope:jh}=se("indicator"),Ml=dd(cd(fd));function hd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const md={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function gd(e,t,o,n=!1){return{props:{...md},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},j=r.textColor??r.color;return j&&($.color=j),$}),c=($,j)=>{let M=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const L=r.highlightFilter;if($.indexOf(L)!==-1){const A=$.replace(new RegExp(L,"g"),`<span>${L}</span>`);j.innerHTML=A,j.class["is-highlight"]=!0,M=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const L=r.highlightFilter($);L&&(j.innerHTML=L,j.class["is-highlight"]=!0,M=l.h(r.tag,j))}return M},f=$=>{a.emit("click",$)};let d="";const v=()=>{const $=i.value;if(!$)return;const j=$.clientWidth;hd($,M=>{const L=$.innerHTML??"";pe(L)||M<j||(d?o?.show($,L,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show($,L,{type:"text",showArrow:r.showArrow},!0)??"")})},P=()=>{d&&o?.hide(d)};let g=null;const h=$=>{g||(g=setTimeout(()=>{v(),g=null},r.showAfter??0))},m=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{P()},r.hideAfter??0)},S=()=>{const $=i.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",m))},b=()=>{const $=i.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!ie(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!ie(r.showOverflowTooltip)||!o||(b(),P())}),()=>{const $={onClick:f,class:s.value,style:u.value,ref:i};let j=null;if(ie(r.numberFormat)&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const N=A[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=xe(r.digits),w=xe(r.decimalLength),q=ie(r.autoPadding);let C=`${A[0].children}`,k=C.split("").reverse().join("");k=Jt(k,w,q,E,r.separator),C=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=c(C,$)),j||($.innerHTML=C,j=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const N=A[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${A[0].children}`;j=c(E,$),j||($.innerHTML=E,j=l.h(r.tag,$))}}}j||(j=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let L=null;if(r.icon){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const w={class:A,style:N};L=l.h("view",w,l.h(r.icon))}else if(a.slots.mark){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const w={class:A,style:N};L=l.h("view",w,{default:a.slots.mark})}else{const A={[`${e}__mark`]:!0};r.type&&(A[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const w={class:A,style:N};L=l.h("view",w)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[L,j])}}}}const{componentName:pd,create:vd,scope:yd}=se("text"),Ll=vd(gd(pd,yd,Oe,!1)),bd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ee.ArrowUp}};function xd(e,t,o){return{props:{...bd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),c=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const v={class:c.value},P=o(n.icon,v);return P&&d.push(P),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:wd,create:Sd,scope:Td}=se("more-button"),Cd=(e,t)=>(e=e??Ee.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Sd(xd(wd,Td,Cd));function $d(e){return e===window}const Xr=e=>{const t=l.unref(e);if($d(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Nd,create:Ed,scope:zh}=se("tour"),kd=Ed({components:{Close:Ee.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=Nd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:$,top:j}=r.value,M=e.steps[n.active].offset??g,L=[$+S/2,j+b/2],O=Number(h||S),A=Number(m||b);return{width:`${O+ +M.left+M.right}px`,height:`${A+M.top+M.bottom}px`,top:`${L[1]-A/2-+M.top}px`,left:`${L[0]-O/2-+M.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Xr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},P=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{P(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{P(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:v}}}),Pd={key:0,class:"fox-tour__content"},Id={key:0,class:"fox-tour__content-top"},Vd={class:"fox-tour__content-inner"},Od={class:"fox-tour__content-bottom"},Dd={class:"fox-tour__content-bottom-init"},Fd={class:"fox-tour__content-bottom-operate"},Rd={key:1,class:"fox-tour__content fox-tour__content-tile"},Ad={class:"fox-tour__content-inner"};function Md(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(c,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Pd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Id,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Vd,l.toDisplayString(c.content),1),l.createElementVNode("div",Od,[l.createElementVNode("div",Dd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Fd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("div",Ad,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=_e(kd,[["render",Md]]),Ve=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,st=e=>e==null;class Ld{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fo(e,t){return new Ld(e,t)}let gt=[];const Ro=e=>{const t=e;t.key==="Escape"&&gt.forEach(o=>o(t))},Bd=e=>{l.onMounted(()=>{gt.length===0&&document.addEventListener("keydown",Ro),Ze&&gt.push(e)}),l.onBeforeUnmount(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Ze&&document.removeEventListener("keydown",Ro)})},Vn="fox-focus-trap.focus-after-trapped",Ao="fox-focus-trap.focus-after-released",_d="fox-focus-trap.focusout-prevented",Mo={cancelable:!0,bubbles:!1},qd={cancelable:!0,bubbles:!1},Lo="foxFocusAfterTrapped",Bo="foxFocusAfterReleased",jd=Symbol("foxFocusTrap"),ql=l.ref(),yn=l.ref(0),jl=l.ref(0);let jt=0;const Zr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},zd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_o=(e,t)=>{for(const o of e)if(!zd(o,t))return o},Hd=e=>{const t=Zr(e),o=_o(t,e),n=_o(t.reverse(),e);return[o,n]},Kd=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&Kd(e)&&t&&e.select()}};function qo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Wd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=qo(e,n),e.unshift(n)},remove:n=>{e=qo(e,n),e[0]?.resume?.()}}},Yd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(lt(n,t),document.activeElement!==o)return},jo=Wd(),Ud=()=>yn.value>jl.value,zt=()=>{ql.value="pointer",yn.value=window.performance.now()},zo=()=>{ql.value="keyboard",yn.value=window.performance.now()},Gd=()=>(l.onMounted(()=>{jt===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",zo)),jt++}),l.onBeforeUnmount(()=>{jt--,jt<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",zo))}),{focusReason:ql,lastUserFocusTimestamp:yn,lastAutomatedFocusTimestamp:jl}),Ht=e=>new CustomEvent(_d,{...qd,detail:e}),{componentName:Hh,create:Xd,scope:Kh}=se("focus-trap"),Zd={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"}},Qd=Xd({props:Zd,emits:[Lo,Bo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=Gd();Bd(h=>{ie(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ie(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:$,currentTarget:j,shiftKey:M}=h,{loop:L}=e,O=m==="Tab"&&!S&&!b&&!$,A=document.activeElement;if(O&&A){const N=j,[E,w]=Hd(N);if(E&&w){if(!M&&A===w){const C=Ht({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),L&&lt(E,!0))}else if(M&&[E,N].includes(A)){const C=Ht({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),L&&lt(w,!0))}}else if(A===N){const C=Ht({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(jd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",v))});const c=h=>{o(Lo,h)},f=h=>o(Bo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,$=S&&m.contains(S);ie(e.trapped)||b&&m.contains(b)||(r=b),$&&o("focusin",h),!s.paused&&ie(e.trapped)&&($?a=S:lt(a,!0))},v=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&ie(e.trapped)){const S=h.relatedTarget;!Gn(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&ie(e.trapped)){const b=Ht({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||lt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function P(){await l.nextTick();const h=l.unref(n);if(h){jo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Mo);h.addEventListener(Vn,c),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;Go($)||(lt($),document.activeElement!==$&&($="first")),$==="first"&&Yd(Zr(h),!0),(document.activeElement===m||$==="container")&&lt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,c);const m=new CustomEvent(Ao,{...Mo,detail:{focusReason:i.value}});h.addEventListener(Ao,f,{once:!0}),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Ud())&&lt(r??document.body,!0),jo.remove(s)}}return l.onMounted(()=>{ie(e.trapped)&&P(),l.watch(()=>e.trapped,h=>{ie(h)?P():g()})}),l.onBeforeUnmount(()=>{ie(e.trapped)&&g(),n.value&&(n.value.removeEventListener("keydown",u),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",v))}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Jd,create:eh,scope:Wh}=se("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={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}},oh=eh({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Qd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Jd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!A.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),c=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return st(i.value)?T.left="auto":T.left=Ve(i.value),st(s.value)?T.top="auto":T.top=Ve(s.value),st(u.value)?T.right="auto":T.right=Ve(u.value),st(c.value)?T.bottom="auto":T.bottom=Ve(c.value),st(e.zIndex)||(T["z-index"]=Ve(e.zIndex)),st(L.value)||(T.height=L.value),st(O.value)||(T.width=O.value),T}),v=l.computed(()=>e.closeIcon??Ee.Close),P=l.computed(()=>e.collapseIcon??Ee.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),$=l.ref(),j=l.ref(null),M=l.ref(null),L=l.computed(()=>Ve(e.height)||""),O=l.computed(()=>Ve(e.width)||""),A=l.ref(ie(e.collapse)),N=(T,K=!0)=>{A.value!==T&&(A.value=T,T?x():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{w()},w=T=>{T=T??!A.value,N(T)};l.provide(th,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,q);const C=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),Z=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),G=l.ref(A.value),ee=l.computed({set:T=>{G.value=T},get:()=>n.value===!1?!1:G.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,re=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),re=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,c.value=null},p={x:0,y:0},B=Fo(T=>{if(!$.value)return;const K=$.value;if(V(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const J=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=J-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=c.value}else if(e.origin==="right-bottom"){const J=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=J-(K.offsetLeft+K.offsetWidth),c.value=le-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=c.value}else{const J=document.documentElement.clientWidth||document.body.clientWidth;u.value=J-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!$.value)return;const K=$.value;V(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Ve(i.value),K.style.top=Ve(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,c.value=p.y-T.y,K.style.left=Ve(i.value),K.style.bottom=Ve(c.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,c.value=p.y-T.y,K.style.right=Ve(u.value),K.style.bottom=Ve(c.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Ve(u.value),K.style.top=Ve(s.value))}),R={x:0,y:0},Q=Fo(T=>{k.value&&(R.x=k.value.offsetLeft,R.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=R.y+T.y;W.value=`${K}px`}),te=()=>{if($.value){const T=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");M.value=T}};return l.onMounted(()=>{if(e.draggable&&$.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),M.value&&T.push(M.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Q.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Q.close()}),{classes:f,styles:d,isShow:a,closeIcon:v,onClose:C,dialogRef:$,headerRef:j,onClickToggle:E,collapseIcon:P,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:Z,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",rh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ah,l.toDisplayString(e.title),1),l.createElementVNode("div",ih,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",sh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",uh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=_e(oh,[["render",ch]]);function fh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return hr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Yh,create:dh,scope:Uh}=se("domain-provider"),Hl=dh(fh()),hh={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 mh(e,t){return{inheritAttrs:!1,props:hh,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,P)=>{if(f===null){a.set(v,{visible:null,callback:P});return}r.has(v)&&f.unobserve(v),r.set(v,{visible:null,callback:P}),f.observe(v)},s=v=>{if(f===null){a.delete(v);return}r.has(v)&&(r.delete(v),f.unobserve(v))};let u=o.initialVisibleObserverSize;ui({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(v,P,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch($){console.error($)}}},{root:v,rootMargin:P,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,P])=>{if(P||!v||f)return;let g=null;typeof v=="string"?g=document.querySelector(v):g=v,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gh,create:gh,scope:Xh}=se("rolling-provider"),Kl=gh(mh()),ph=[Qn,el,tl,nl,ll,Se,ol,rl,Lt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,pn,vl,yl,bl,xl,wl,Sl,Tl,$l,Nl,El,kl,Pl,vn,Il,Vl,Ol,Dl,Al,Rt,gn,Ml,Ll,Bl,_l,zl,Hl,Kl],vh=new _a(ph,[za],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>y.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>y.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>y.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>y.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>y.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>y.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>y.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>y.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>y.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>y.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>y.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>y.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>y.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>y.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>y.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>y.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>y.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ve;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=mt;exports.DateItem=sl;exports.DateUtils=Me;exports.DialogItem=Pl;exports.Domain=rn;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Pl;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Lt;exports.FoxIndicator=Ml;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Se;exports.FoxMapping=Rt;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=vn;exports.FoxPage=Qn;exports.FoxPopup=Il;exports.FoxPrice=gn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=xl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Ol;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=wl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=pn;exports.FoxTabsBar=$l;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ll;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Vl;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Lt;exports.Indicator=Ml;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Se;exports.Mapping=Rt;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=vn;exports.Page=Qn;exports.Popup=Il;exports.Price=gn;exports.PriorityPolicy=Le;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=xl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Ol;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=wl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=pn;exports.TabsBar=$l;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ll;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Vl;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=Nr;exports.ValidateSchema=cr;exports.ValidateSchemaKey=je;exports.cancelRaf=oa;exports.clearNonNumber=pa;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=nn;exports.createValidateSchema=ln;exports.debounce=Vt;exports.debounceRef=Pa;exports.decimalLength=or;exports.default=vh;exports.defineBroadcast=xa;exports.defineConfigDomain=hr;exports.defineDataItem=mr;exports.defineDomain=Zn;exports.defineItem=Te;exports.definePageState=pr;exports.defineSimpleItem=gr;exports.deleteGlobalValidator=$a;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=ke;exports.extend=dt;exports.floatData=ba;exports.getGlobalValidateCheckEvents=ir;exports.getGlobalValidateResetEvents=ur;exports.getPageContentAreaHeight=Ut;exports.getPageContentAreaWidth=Gt;exports.getPageFooterAreaHeight=Dt;exports.getPageHeaderAreaHeight=Ot;exports.getRootDomain=pt;exports.hasSymbol=Qo;exports.includeProps=rr;exports.indexOf=va;exports.integerLength=lr;exports.isArray=aa;exports.isArrayLike=er;exports.isBrowser=Ze;exports.isDate=ua;exports.isESModule=fa;exports.isEmptyString=pe;exports.isEqual=Xe;exports.isFunction=Mn;exports.isHidden=tn;exports.isInnerPage=Oa;exports.isMap=ia;exports.isNil=Gn;exports.isNumberString=nr;exports.isObject=Qe;exports.isPlainObject=Ln;exports.isPromise=Xo;exports.isRegExp=_n;exports.isSet=sa;exports.isString=Go;exports.isSubPage=Da;exports.isSymbol=ca;exports.isTouch=Fl;exports.isWindow=Jo;exports.lastIndexOf=ya;exports.makeArray=ga;exports.merge=tr;exports.multiply=Wo;exports.negate=Yo;exports.nextTick=ha;exports.numberFormat=Jt;exports.objectToString=Zo;exports.once=Ia;exports.overrideGlobalValidateHandler=Ta;exports.property=De;exports.raf=Un;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=Na;exports.setGlobalValidateHandler=Sa;exports.setGlobalValidateMessages=ka;exports.setGlobalValidateResetEvents=Ea;exports.setGlobalValidator=Ca;exports.throttle=dr;exports.toBoolean=ie;exports.toNumber=xe;exports.toPadding=Ke;exports.toPx=de;exports.toPxDesc=Ne;exports.toTypeString=en;exports.toValue=he;exports.tryTimes=on;exports.typeOf=Wt;exports.unNumberFormat=Uo;exports.updatePageState=qn;exports.useBroadcast=kt;exports.useDomain=at;exports.useExpose=Ce;exports.useInnerSize=Jn;exports.usePageState=an;exports.usePosition=Cr;exports.useRawTouch=Rl;exports.useRect=Xr;exports.useSize=sn;exports.useTouch=od;exports.valueLength=Mt;