@fox-js/foxui-pc 4.0.1-133 → 4.0.1-134

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 Mon Aug 24 2026 11:14:21 GMT+0800 (China Standard Time)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ht=require("@fox-js/validator"),w=require("element-plus"),Pe=require("@element-plus/icons-vue"),qe=require("@fox-js/i18n"),Ht=window,la=typeof window<"u";function oa(){return typeof Ht<"u"?Ht.requestAnimationFrame||Ht.webkitRequestAnimationFrame||function(e){Ht.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ra(e){la?cancelAnimationFrame(e):clearTimeout(e)}const Uo=oa();function Xt(e,n="0"){let o=0,t=-1;e[0]=="-"&&(o++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,t=2,n=n.substring(1),n.length),e=ke(e),n=ke(n),[e,n]=Zn(ke(e),ke(n)),o==1&&(t==1?e=Nn(e):n=Nn(n));let r=Go(e,n);return o?o==2?"-"+ke(r):e.length<r.length?ke(r.substring(1)):"-"+ke(Nn(r)):ke(r)}function Nn(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Go(n,a)}function ke(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Zn(e,n){let o=e.split("."),t=n.split("."),r=o[0].length,a=t[0].length;return r>a?t[0]=new Array(Math.abs(r-a)+1).join("0")+(t[0]?t[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=t[1]?t[1].length:0,(r||a)&&(r>a?t[1]=(t[1]?t[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]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function Go(e,n){[e,n]=Zn(e,n);let o="",t=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+t;o=a%10+o,t=Math.floor(a/10)}return t?t.toString()+o:o}var we=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 At(e,n=0,o=we.HALF_EVEN){if(o===we.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let u=a.substr(0,a.length-n);return e=u+"."+a.substr(a.length-n)+i,u=At(e,0,o),(t?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return a.length,Ql(r[1],a,t,o)?(t?"-":"")+kn(a):(t?"-":"")+a;if(r[1]){if(r[1].length<n)return(t?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let s=r[1].substring(n);return s&&Ql(s,i,t,o)&&(i=kn(i),i.length>n)?(t?"-":"")+kn(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function Ql(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===we.DOWN||!o&&t===we.FLOOR||o&&t===we.CEILING)return!1;if(t===we.UP||o&&t===we.FLOOR||!o&&t===we.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(t){case we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function kn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,t="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function Mn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Pt(e),n=Pt(n);let t=0,r=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=t+r;if(e=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.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 y=0;for(let C=n.length-1;C>=c&&C>=0;C--)u[C]>-1&&u[C]<e.length&&(y+=parseInt(e[u[C]--])*parseInt(n[C]));y+=s,s=Math.floor(y/10),f=y%10+f,c--}return f=Pt(aa(f,a)),o==1&&(f="-"+f),f}function aa(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Ln(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=ke(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=ke(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=ke(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=ke(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=ke(e.replace(".","")))}let a=0,i=n.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(n);)u=Xt(u,"-"+n),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(t==1?"-":"")+ke(At(s,o-2))}function Bn(e,n){return e=e.toString(),n=n.toString(),n=_n(n),Xt(e,n)}function _n(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Jl(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),eo(e),eo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=Bn(e,Mn(n,At(Ln(e,n),0,we.FLOOR)));return o+t}function eo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function to(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Zn(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?o?-1:1:o?1:-1;return 0}var ln=class de{value;static RoundingModes=we;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,t]=n.split(/[eE]/);o=ke(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(t=parseInt(t)+o.indexOf("."),o=o.replace(".","")):t=parseInt(t)+o.length,o.length<t?n=r+o+new Array(t-o.length+1).join("0"):o.length>=t&&t>0?n=r+ke(o.substring(0,t))+(o.length>t?"."+o.substring(t):""):n=r+"0."+new Array(-t+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,t){if(!(o||t))o=3,t=",";else if(!(o&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=n.substring(s,s+o)+(s<a-o&&s>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,t=we.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return At(n,o,t)}round(n=0,o=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(At(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),Xt(n,o)}add(n){return new de(Xt(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),Bn(n,o)}subtract(n){return new de(Bn(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),Mn(n,o)}multiply(n){return new de(Mn(this.value,n.getValue()))}static divide(n,o,t){return n=de.validate(n),o=de.validate(o),Ln(n,o,t)}divide(n,o){return new de(Ln(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),Jl(n,o)}modulus(n){return new de(Jl(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),to(n,o)}compareTo(n){return to(this.value,n.getValue())}static negate(n){return n=de.validate(n),_n(n)}negate(){return new de(_n(this.value))}};function Xo(e,n){return ln.multiply(`${e}`,`${n}`)}function Qn(e,n,o=8){return ln.divide(`${e}`,`${n}`,o)}function qn(e,n){return e=`${e}`,n=`${n}`,ln.compareTo(e,n)}function Zo(e){return ln.negate(e)}function on(e,n=-1,o=!1,t=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)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let f;if(t>0){let d="",y=s.split("").reverse();for(let C=0;C<y.length;C++)d+=y[C]+((C+1)%t==0&&C+1!=y.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 Qo(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const Jn=Uo,ia=Array.isArray,sa=e=>rn(e)==="[object Map]",ua=e=>rn(e)==="[object Set]",ca=e=>e instanceof Date,jn=e=>typeof e=="function",Jo=e=>typeof e=="string",fa=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",er=e=>ot(e)&&jn(e.then)&&jn(e.catch),tr=Object.prototype.toString,rn=e=>tr.call(e),zn=e=>rn(e)==="[object Object]",nr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||nr&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function pt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,t=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<t;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=n[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:{},n[i]=pt(r,c,u)}else u!==void 0&&(n[i]=u)}}return n}function Hn(e,n,o=!1){if(!o)pt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;a=Hn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;a=Hn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const En=ha?Promise.resolve():null;function ma(e,...n){En!==null?n&&n.length>0?En.then(()=>{e(n)}):En.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):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 ga={"[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 Zt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ga[o]||"object"}function lr(e){return e&&typeof e=="object"&&"setInterval"in e}function an(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function or(e){let n=!!e&&"length"in e&&e.length,o=Zt(e);return o==="function"||lr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function rr(e,n){let o=+n.length,t=0,r=e.length;for(;t<o;t++)e[r++]=n[t];return e.length=r,e}function pa(e,n=[]){let o=n;return e!=null&&(or(Object(e))?rr(o,typeof e=="string"?[e]:e):o.push(e)),o}function lt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Zt(e),t=Zt(n);if(o!==t)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],c=n[s];if(!lt(u,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!lt(a,i))return!1}return!0}return!1}const Ze=typeof window<"u";function el(e){return e==null}function Kn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ve=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ar(e){return ve(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ve(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ir(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function sr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function no(e,n,o){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(o,"")}function va(e,n=!0,o=!0){n?e=no(e,".",/\./g):e=e.replace(/\./g,""),o?e=no(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function ya(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(lt(e,o))return!0}):n.indexOf(e)}function ba(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(lt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function jt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ur(e,...n){const o={};return n.forEach(t=>{for(const r in t)o[r]=e[r]}),o}function Ie(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const t={};for(const r in e)o.includes(r)||(t[r]=e[r]);return t}const wa=(e,n,o)=>{const t=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(t[a]=n[r[a]]):n[a]&&(t[a]=n[a])}),t):e},ye=Symbol.for("BroadcastKey");class tl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,t){this.parent=n,this.proxy=o,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(t=>n===t);o!==-1&&this.children.splice(o,1)}destroy(){const n=[...this.children];this.children=[],n.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,o,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=n.uniqueId,a={matched:n,action:o,args:t};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let t=!1;return!o.name||o.name==="*"||o.name==="+"||Kn(o.name)&&n&&o.name.test(n)?t=!0:typeof o.name=="function"?t=Reflect.apply(o.name,null,[n]):o.name===n&&(t=!0),t}trigger(n,o,t){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(r)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(r){console.error(r)}}),n=n.parent}}emit(n,o,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const i=n.resolve,s=n.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};n.resolve=u}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):Kn(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.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,[...t]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...t]);u!=null&&a.push(u)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},o,...t]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(n,o,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const a=n.resolve,i=n.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};n.resolve=s}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function sn(e,n,o,t){const r=new tl(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function xa(e,n,o){const t=o;if(t[ye])return t[ye];const r=l.inject(ye,null),a=new tl(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),t[ye]=void 0}),a}function Dt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const mt=e=>e.default??e;class Sa{error(n,o){const t=o,r=o||l.hasInjectionContext()?Dt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?Dt(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?Dt(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?Dt(t):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.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(t))}getValue(n){return n.modelValue}}let Ft=new Sa;function Ta(e){Ft=e}function Ca(e){Ft?Object.assign(Ft,e):Ft=e}function $a(e,n){mt(ht).setValidator(e,n)}function Na(e){mt(ht).deleteValidator(e)}let cr=["blur","clear"];function ka(e){cr=e}function fr(){return cr}let dr=["focus","change","setValue"];function Ea(e){dr=e}function hr(){return dr}function Pa(e){mt(ht).messages(e)}function It(...e){const n=[];return e.forEach(o=>{o.forEach(t=>{const r=n.findIndex(a=>a.type===t.type);r!==-1&&n.splice(r,1),n.push(t)})}),n}function Kt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class mr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,t){this.parent=n,this.descriptor=o,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Kt(It(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),t.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};t.push(u)}}this.attrRules=Kt(t);const r=It(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(n,...o){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...o]);const r=Ft;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,t=!1){t?mt(ht).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?mt(ht).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return mt(ht).hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const o=It(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Kt(n):this.rules=Kt([n]);const t=It(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(t,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=It(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]:a},s=mt(ht),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function un(e,n,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 mr(n,o,e)}const Qt=Symbol.for("EventEmitterKey");class gr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let t=this.register.get(n);if(t&&Array.isArray(t)){let r=t.findIndex(a=>a===o);r!==-1&&t.splice(r,1)}}on(n,o){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(o)}emit(n,...o){const t=this.register.get(n);t&&t.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function vt(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function pr(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Ia(e,n){const o=vt((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Oa(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function cn(e,n,o,t=0,r=!0,a){let i=n,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+=t,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),yt=Symbol("DataItemsKey");class fn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=l.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const t in n){const r=n[t];o.length>0&&o.indexOf(r)!==-1||(this._props[t]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const r=t._props[n];o.push(r)}t=t._parent}return o}}const Va=new fn;function wt(){return Va}function ct(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Wt=Symbol("OriginalDateKey");function nl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=wt());const s=e||n.prop||n.name;let u=new fn(s);u.parent=i;const c=C=>{a[Wt]||y(C),u?.set("modelValue",C)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[Wt]??null,y=C=>{const g={};pt(!0,g,l.toRaw(C)),a[Wt]=g};if(l.isReactive(n)||typeof n=="function"?l.watch(n,C=>{u?.merge(C,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&y(n.modelValue),a[Le]=u,l.provide(Le,u),r!==null){const C=l.inject(ye,null),g=sn(a,C,s,t);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(S,b,...P)=>Reflect.apply(g.emit,g,[S,b,...P]);const h=l.inject(Ke,null),m=un(a,h,{componentName:""});u.validateSchema=m,a[Ke]=m,l.provide(Ke,m),a[yt]=new Map,a.validate=(S=!0)=>{const b=[];let P=null;const z={deep:!1};if(S===!0)P={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;P={name:B=>B?L.indexOf(B)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(z,L),Array.isArray(L.include)&&L.include.length>0){const B=L.include;P={name:V=>V?B.indexOf(V)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const B=L.exclude;P={name:V=>V?B.indexOf(V)===-1:!1}}else P={name:"*"}}if(P){const L=g?.emitToChildren(P,"validate",z);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let B=[];return L.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(B=[...B,...V.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,P=!1)=>{if(P===!0){Reflect.ownKeys(S).forEach(L=>{let B=String(L);const V={componentName:"",fieldName:B,pureDataValidate:!0};if(u){const A=yr(u,B,V,g,m);a[yt].set(B,A);const N=S[B];N&&A.validateSchema.setRule(N)}});return}if(b){const z=Reflect.ownKeys(S),L={name:B=>z.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const P=S;b={name:z=>z?P.indexOf(z)!==-1:!1}}else if(S!=null&&typeof S=="object"){const P=S;if(Array.isArray(P.include)&&P.include.length>0){const z=P.include;b={name:L=>L?z.indexOf(L)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const z=P.exclude;b={name:L=>L?z.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=f();if(!b)return;const P={};if(pt(!0,P,d()??{}),Array.isArray(S))S.forEach(z=>{b[z]=P[z]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=P[L]});else if(S&&Array.isArray(S.exclude)){let z=S.exclude??[];Reflect.ownKeys(P).forEach(L=>{z.includes(L)||(b[L]=P[L])})}else Object.assign(b,P);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[Ke]=void 0,l.provide(Ke,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Le]=void 0,l.provide(Le,null),a[yt]&&(a[yt].clear(),a[yt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a[Wt]=null,u=null,a=null}),u}function vr(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=wt());const i=e||n.prop||n.name;let s=new fn(i);return s.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(n,o),r[Le]=s,l.provide(Le,s),l.onUnmounted(()=>{s?.destroy(),r[Le]=void 0,l.provide(Le,null),s=null,r=null}),s}function $e(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(ye,null);let s=sn(r,i,a,o);r[ye]=s,l.provide(ye,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(Ke,null);e.fieldName=e.fieldName??a;let c=un(r,u,e);r[Ke]=c,l.provide(Ke,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,P=b.ignoreDisabled??!0,z=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;P===!0&&e.disabled===!0||z===!0&&e.readonly===!0||L===!0&&an(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 P={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const z=g;b={name:L=>L?z.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const z=g;if(Object.assign(P,z),Array.isArray(z.include)&&z.include.length>0){const L=z.include;b={name:B=>B?L.indexOf(B)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const L=z.exclude;b={name:B=>B?L.indexOf(B)===-1:!1}}else b={name:"*"}}if(b&&s){const z=s.emitToChildren(b,"validate",P);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let P=[];return b.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(P=[...P,...z.errors])}),P.length>0?{pass:!1,errors:P}:{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(n??"")!==-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 gr(r);r[Qt]=f;const d=vt((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:fr()).forEach(g=>{f&&f.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:hr()).forEach(g=>{f&&f.on(g,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ye]=void 0,l.provide(ye,null),s=null,c?.destroy(),r[Ke]=void 0,l.provide(Ke,null),c=null,f?.destroy(),r[Qt]=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 yr(e,n,o,t,r){const a={},i=n??"",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=un({},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 y=!1,C=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)C=!0,y=!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),C=!0,y=g.deep??!1}else typeof f=="boolean"&&(y=f),C=!0;if(C&&u){const g=u.validate();d.push(g)}if(y){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=sn(null,t,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function br(){let n=l.getCurrentInstance()?.proxy,o=new gr(n);return n[Qt]=o,l.onUnmounted(()=>{o?.destroy(),n[Qt]=void 0,o=null,n=null}),{emitEvent:(t,...r)=>{o&&Reflect.apply(o.emit,o,[t,...r])},onEvent:(t,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(t,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ee=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,n)}px`:"";function he(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n: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*n;const t=Number(e);return isNaN(t)?0:t}const ut="PageStateKey";function Xe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Wn(e,n,o={},t=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=Xe(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=Xe(o.footerPadding??n.footerPadding),e.contentPadding=Xe(o.contentPadding??n.contentPadding),t){const u=o.height??n.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??n.width??0,r)}}function wr(e,n={}){const o={top:null,left:null,bottom:null,right:null},t={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")??{},n.safeAreaInset??{});r&&(t.safeAreaTop=he(r.top),t.safeAreaBottom=he(r.bottom),t.safeAreaLeft=he(r.left),t.safeAreaRight=he(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;Wn(t,a,n,!0,i,s,u,c);const f=l.reactive(t),d=e.getForParent(ut);d&&(t.height=Jt(e,d),t.width=en(e,d),l.watch([()=>Jt(e,d),()=>en(e,d)],([C,g])=>{f.height=C,f.width=g}));const y=!d;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,g,h=-1,m=-1,S=0,b=0])=>{Wn(f,g,n,y,h,m,S,b)}),e.set(ut,f),f}function dn(e){return e.get(ut)}function Mt(e,n){if(n=n??e.get(ut),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Lt(e,n){if(n=n??e.get(ut),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Jt(e,n){if(n=n??e.get(ut),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Mt(e,n),t=Lt(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function en(e,n){return n=n??e.get(ut),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Da(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Fa(e){return!!e.getForParent(ut)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Pn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Re(e,n,o=1,t){const r=ct();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Pn(u,t))return u}const i=e.value;return Pn(i,t)?i:null}):l.computed(()=>{const a=e.value;return Pn(a,t)?a:r?.get(n)})}function Ae(e){return Re(e,"readonly",0,function(o){return se(o)})}function Me(e){return Re(e,"disabled",0,function(o){return se(o)})}function me(e,n="modelValue",o=null,t){const r=l.toRef(e,n);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,t&&t("setValue",u))}else s!==i.value&&(i.value=s,t&&t("setValue",s))}),i}const xr=new Map,tn=new Map;let Yn=null;function Ra(e){Yn=e}function Sr(e,n,o){if(o){let t=tn.get(o);t||(t=new Map,tn.set(o,t)),t.set(e,n)}else xr.set(e,n)}function We(e,n,o){!o&&Yn&&(o=Yn(e)??void 0);let t=null;if(o){let r=tn.get(o);r&&(t=r.get(n))}return t||(t=xr.get(n)),t}function Aa(e,n){for(let o in e){const t=e[o];Sr(o,t,n)}}function Ma(e){tn.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ba(e=0,n=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:t-he(e,t)-he(n,t)};return{rootWidth:o,rootHeight:t,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function _a(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class qa{packages;installers;_version;get version(){return this._version}constructor(n,o,t){this.packages=n,this.installers=o,this._version=t}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=_a(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=wt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=pr(()=>{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)t.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const t=n.headerBarHeight??0,r=n.footerBarHeight??0,a=pt({},La(),n.safeAreaInset),i=Ba(t,r),s=pt({},i.pageLayout,n.pageLayout);o=o??wt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ra(n)}setAPI(n,o,t){Sr(n,o,t)}getAPI(n,o,t){return We(n,o,t)}batchSetAPI(n,o){Aa(n,o)}clearScopeAPI(n){Ma(n)}getRootDomain(){return wt()}}const ja=[w.ElAffix,w.ElAlert,w.ElAutocomplete,w.ElAutoResizer,w.ElAvatar,w.ElBacktop,w.ElBadge,w.ElBreadcrumb,w.ElBreadcrumbItem,w.ElButton,w.ElButtonGroup,w.ElCalendar,w.ElCard,w.ElCarousel,w.ElCarouselItem,w.ElCascader,w.ElCascaderPanel,w.ElCheckTag,w.ElCheckbox,w.ElCheckboxButton,w.ElCheckboxGroup,w.ElCol,w.ElCollapse,w.ElCollapseItem,w.ElCollapseTransition,w.ElColorPicker,w.ElConfigProvider,w.ElContainer,w.ElAside,w.ElFooter,w.ElHeader,w.ElMain,w.ElDatePicker,w.ElDescriptions,w.ElDescriptionsItem,w.ElDialog,w.ElDivider,w.ElDrawer,w.ElDropdown,w.ElDropdownItem,w.ElDropdownMenu,w.ElEmpty,w.ElForm,w.ElFormItem,w.ElIcon,w.ElImage,w.ElImageViewer,w.ElInput,w.ElInputNumber,w.ElLink,w.ElMenu,w.ElSubMenu,w.ElMenuItem,w.ElMenuItemGroup,w.ElPageHeader,w.ElPagination,w.ElPopconfirm,w.ElPopover,w.ElPopper,w.ElProgress,w.ElRadio,w.ElRadioButton,w.ElRadioGroup,w.ElRate,w.ElResult,w.ElRow,w.ElScrollbar,w.ElSelect,w.ElOption,w.ElOptionGroup,w.ElSelectV2,w.ElSkeleton,w.ElSkeletonItem,w.ElSlider,w.ElSpace,w.ElSteps,w.ElStep,w.ElSwitch,w.ElTable,w.ElTableColumn,w.ElTableV2,w.ElTabs,w.ElTabPane,w.ElTag,w.ElTimePicker,w.ElTimeSelect,w.ElTimeline,w.ElTimelineItem,w.ElTooltip,w.ElTransfer,w.ElTree,w.ElTreeSelect,w.ElTreeV2,w.ElUpload],za=[w.ElInfiniteScroll,w.ElLoading,w.ElMessage,w.ElMessageBox,w.ElNotification,w.ElPopoverDirective],Ha=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),za.forEach(r=>{e.use(r)})};function ce(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=t=>{t.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ne(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Se={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={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}},Tr={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}},Cr={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}},$r=[];for(const e in Cr)$r.push(e);const Ka=Symbol.for("InnerPageScopeKey"),Wa={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}},Ya=(e,n)=>({inheritAttrs:!0,props:{...Se,...Tr,...Wa},setup(o,{slots:t}){const r=nl(o.name,o),a=l.inject(Ka,!1);if(r){const f=wr(r,o);Ne({getPageContentHeight:()=>Jt(r,f),getPageContentWidth:()=>en(r,f),getPageHeaderHeight:()=>Mt(r,f),getPageFooterHeight:()=>Lt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[y,C])=>{if(f&&y){const g=l.toRaw(y),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),c(h)}if(d&&C){const g=l.toRaw(C),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,[t?.default?.()])}}}),{componentName:Ua,create:Ga,scope:$h}=ce("page"),ll=Ga(Ya(Ua));function hn(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function ol(e){const n=l.unref(e),o=window.getComputedStyle(n,null),t=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:n.clientWidth-t-r,height:n.clientHeight-a-i}}const Xa=(e,n,o,t=!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=ct(),s=i?dn(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?he(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=Xe(r.padding??s.headerPadding);return Object.assign(E,T),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+(T.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const T=Xe(r.padding);Object.assign(E,T)}return E}),C=l.ref(null),g=()=>{if(s&&C.value&&!an(C.value)){if(!t){const E=hn(C.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(cn(g,50,5,50,!0),window.ResizeObserver&&C.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(C.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function P(){a.emit("click-title")}function z(){a.emit("click-right")}function L(){a.emit("click-right-text")}const B=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const T=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(T)}else if(r.leftIcon){const T=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(T)}if(r.leftText){const T=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(T)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},V=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const T=l.h("view",{class:"right-text",onClick:L},[r.rightText]);E.push(T)}if(a.slots.rightIcon){const T=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);E.push(T)}else if(r.rightIcon){const T=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);E.push(T)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},A=()=>{if(!r.titleShow)return null;const E=[],T=a.slots.default?a.slots.default():null;if(T)E.push(T);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);E.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:P},[a.slots.titleIcon()]);E.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:P},[l.h(r.titleIcon)]);E.push(j)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],T=a.slots.bottom?a.slots.bottom():null;return T&&E.push(T),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const j=[],k=B();k&&j.push(k);const O=A();O&&j.push(O);const F=V();if(F&&j.push(F),j.length>0){const Y=l.h("view",{class:f.value},j);E.push(Y)}const U=N();U&&E.push(U)}if(E.length===0)return null;const T={class:c.value,style:m.value,ref:C};return l.h("view",T,E)}}}),{componentName:Za,create:Qa,scope:Ja}=ce("header-bar"),rl=Qa(Xa(Za,Ja,Pe.ArrowLeft));function ei(e,n,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(t,r){const a=ct(),i=a?dn(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${t.align}`]:!0,[`${g}--border`]:t.border,[`${g}--fixed`]:t.fixed,[`${g}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),u=t.height!==null&&t.height!==void 0?he(t.height):null,c=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Xe(t.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),t.padding){const h=Xe(t.padding);Object.assign(g,h)}return g}),f=l.ref(null),d=()=>{if(i&&f.value&&!an(f.value)){if(!o){const g=hn(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(cn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const C=l.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Ee(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Ee(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Ee(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Ee(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Ee(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:C.value};return l.h("view",h,g)}}}}const{componentName:ti,create:ni,scope:Nh}=ce("footer-bar"),al=ni(ei(ti));function li(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const t=ct(),r=l.computed(()=>({[e]:!0})),a=t?dn(t):null,i=l.computed(()=>{const c={};if(t&&a){if(o.padding){const C=Xe(o.padding);Object.assign(a.contentPadding,C)}const f=Mt(t,a),d=Lt(t,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,c.height=y,a.contentPadding.top||f>0){const C=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+C}px`}if(a.contentPadding.bottom||d>0){const C=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+C}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=Xe(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=ol(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),t&&a&&l.watch([()=>Mt(t),()=>Lt(t)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:oi,create:ri,scope:kh}=ce("content"),ai=ri(li(oi));function ii(e,n,o,t,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 je=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},il=je(ai,[["render",ii]]),Tt="GroupStateKey",Nr=Symbol.for("GroupScopeKey");function mn(){return l.inject(Nr,!1)}function gn(e=!0){l.provide(Nr,e)}function si(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];el(r)||(e[t]=r)})}function ui(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};si(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(Tt,a),a}function In(e,n,o=-1,t=-1,r=!1,a,i,s){const u=e.get(Tt);if(!u)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=he(a),d=he(i);s||(s=c.type??"grid");const y=()=>{const C=n===""||n===-1,g=he(n);let h=xe(o);const m=he(t);if(!C){let P=(g-(h-1)*m)/h;for(;d!==-1&&P>d;)h++,P=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&P<f;)h--,P=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=n,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const C=++u.passport;setTimeout(()=>{C===u.passport&&y()},50)}}function pn(e,n=!1){let o;return n?o=e.getForParent(Tt):o=e.get(Tt),o.layout}function vn(e,n=!1){let o;return n?o=e.getForParent(Tt):o=e.get(Tt),o.order}function lo(e,n=1){if(n==="stretch")return-1;const o=xe(n);return o===-1?100:100*o/e}function yn(e,n,o=1,t=0,r){const a={};let i=0;r?i=he(r):i=lo(n.column,o),i>0&&(a.width=`${i}%`);const s=lo(n.column,t);s>0&&(a["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function bn(e,n,o=1,t=0){if(o==="stretch"){const u=e.index%n.column,c=u+(n.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%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const a=xe(t)%n.column;let i=(e.index+a)%n.column,s=i+r;return s>n.column?(i=0,s=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const kr=Symbol("RollingStateKey");function ci(e){l.provide(kr,e)}function fi(){return l.inject(kr,null)}function Un(e){let n=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"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function di(e){let n=Un(e);if(n<=0){const o=e.cloneNode(!0),t=e.offsetWidth;o.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Un(o),document.body.removeChild(o)}return n}function hi(e,n,o){if(e<=0)return"1fr";const t=(e-(n-1)*o)/n;return t>0?`${t}px`:"1fr"}const mi={...Se,...Tr,...Cr};function gi(e,n,o){return{props:mi,emits:["update:collapse","header-click"],setup(t,r){const a=nl(t.name,t,$r),i=ui(a,{type:t.type}),s=mn();gn(!0);const u=t.rollingDisplay?fi():null,c=l.ref(null),f=l.computed(()=>t.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?pn(a,!0).value:null),y=l.getCurrentInstance(),C=(H,J=!1)=>{const le=y?.proxy;le&&typeof le.setNameValidateRules=="function"&&le.setNameValidateRules(H,!0,J)};l.watch([()=>t.rules,()=>t.pureDataRules],([H,J],[le,$])=>{if(H&&le){const p=l.toRaw(le),W=l.toRaw(H),ee=W?Reflect.ownKeys(W):[];(p?Reflect.ownKeys(p):[]).forEach(ie=>{ee.includes(ie)||(W[ie]=[])}),C(W)}if(J&&$){const p=l.toRaw($),W=l.toRaw(J),ee=W?Reflect.ownKeys(W):[];(p?Reflect.ownKeys(p):[]).forEach(ie=>{ee.includes(ie)||(W[ie]=[])}),C(W,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=F.value;const J=s?vn(a,!0):null;if(d.value&&J){if(d.value.type==="grid"){const le=bn(J,d.value,t.span,t.offset);Object.assign(H,le)}else if(d.value.type==="flow"){const le=yn(J,d.value,t.span,t.offset,t.width);Object.assign(H,le)}}else if(t.width){const le=Ee(t.width);H.width=le}return H}),m=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${t.justify}`]:!0,[`${g}--${H}-align-${t.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let J="";if(t.columnWidth)J=`repeat(auto-fill, ${t.columnWidth})`;else{const le=hi(A.value,i.layout.value.column,i.layout.value.gutter);J=`repeat(${i.layout.value.column}, ${le})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":J}}}),b=l.toRef(t,"gutter"),P=l.toRef(t,"column"),z=l.computed(()=>s||f.value?!0:se(t.isWrap)),L=[],B=H=>{L.push(H)},V=()=>{let H=L.length;L.splice(0,H)},A=l.ref(-1),N=H=>{const J=ol(H).width;J>0&&J!==A.value&&(A.value=J)};In(a,A.value,P.value,b.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([A,P,b],([H,J,le])=>{i.order.index=0,In(a,H,J,le,!1,t.minItemWidth,t.maxItemWidth,t.type)});const E=l.computed(()=>U.value?t.expandText??"":t.collapseText??""),T=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),k=l.ref(),O=l.ref(),F=l.computed(()=>Y.value||Ee(t.height)||""),U=l.ref(!1),Y=l.ref(""),Q=l.ref(!1);let G=-1;const te=(H,J=!0)=>{const le=k.value;if(le&&U.value!==H){if(G=G===-1?di(le):G,Q.value=!0,J)if(le.style["will-change"]="height",le.ontransitionend=function(){le.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",Q.value=!1)},H){let $=0;t.collapseHeight?$=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&($=O.value.offsetHeight),Y.value=`${G}px`,l.nextTick(()=>{Y.value=`${$}px`})}else Y.value=`${G}px`;else if(H){let $=0;t.collapseHeight?$=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&($=O.value.offsetHeight),Y.value=`${$}px`}else Q.value=!1,Y.value=`${G}px`;U.value=H,r.emit("update:collapse",H)}};l.watch(()=>t.collapse,H=>{te(H)});const re=H=>{r.emit("header-click",H)},I=()=>{x()},x=H=>{H=H??!U.value,te(H)};Ne({toggleCollapse:x,doLayout:()=>{L[0]&&(N(L[0]),In(a,A.value,P.value,b.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let D=null,v=!0;const K=H=>{if(t.rules){const J=l.toRaw(t.rules);C(J)}if(t.pureDataRules){const J=l.toRaw(t.pureDataRules);C(J,!0)}if(Ze&&(H&&te(se(t.collapse),!1),t.autoLayout&&Array.isArray(L)&&L.length>0)){const J=L[0];N(J),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{N(J)}),D.observe(J))}},q=()=>{D?.disconnect(),D=null},_=!f.value||u?.acquire();_&&(c.value=f.value?!0:null),l.onMounted(()=>{if(_&&(K(v),v=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(k.value,le=>{if(le!==c.value)if(le)c.value=!0,U.value||(Y.value=""),H=setTimeout(()=>{H=null,c.value!==!1&&(K(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),c.value=!1,!U.value)if(v)Y.value=u.initialHeight;else{let $=Un(k.value);$<=0?Y.value=J:(Y.value=`${$}px`,J=Y.value)}v||q()}})}}),l.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve(k.value)});const M=(H="right")=>{const J=[];if(E.value){const p={class:T.value},W=l.h("span",p,[E.value]);J.push(W)}const le={class:j.value},$=o(t.collapseIcon,le);return $&&J.push($),J.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:I},J):null},X=(H,J,le,$)=>{const p={...m.value};return J===0&&(p[`${g}__first`]=!0),le>=$-1&&(p[`${g}__last`]=!0),l.h("div",{ref:B,key:`${J}`,class:p,style:S.value},H)};return()=>{if(f.value&&c.value!==!0){const p=t.tag||"div";return l.h(p,{ref:k,prop:t.name,class:{[`${g}`]:!0,"is-collapse":Q.value},style:h.value},[])}i.order.index=0;const H=[];let J=0;if(r.slots.header){const p={key:`${J++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},W=l.h("div",p,[r.slots.header()]);H.push(W)}else{const p=[],W=t.collapsePosition==="left";if(W&&t.showCollapse){const ee=M("left");ee&&p.push(ee)}if(t.title||r.slots.title){if(t.showMark){const ee={class:{[`${g}__header-mark`]:!0}};t.markColor&&(ee.style={background:t.markColor});const ue=l.h("div",ee);p.push(ue)}if(r.slots.title){const ee=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);p.push(ee)}else if(t.title){const ee=l.h("div",{class:{[`${g}__header-title`]:!0}},[t.title]);p.push(ee)}}if(r.slots.toolbar&&p.push(r.slots.toolbar()),!W&&t.showCollapse){const ee=M("right");ee&&p.push(ee)}if(p.length>0){const ee={key:`${J++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},ue=l.h("div",ee,p);H.push(ue)}}V();const le=r.slots.default?r.slots.default():[],$=i.layout.value.type;if($==="grid"){const p=X(le,J++,0,le.length);H.push(p)}else if($==="flow"){const p=X(le,J++,0,le.length);H.push(p)}else for(let p=0;p<le.length;p++){const W=le[p],ee=X([W],J++,p,le.length);H.push(ee)}if(z.value){const p=t.tag||"div";return l.h(p,{ref:k,prop:t.name,class:{[`${g}`]:!0,"is-collapse":Q.value},style:h.value},[H])}else return H}}}}const{componentName:pi,create:vi,scope:yi}=ce("group"),bi=(e,n)=>(e=e??Pe.ArrowUp,l.h(w.ElIcon,n,{default:()=>[l.h(e)]})),sl=vi(gi(pi,yi,bi));function wi(e){return e===window}const xi=/matrix\((.+)\)/,Er=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(wi(n))return{x:0,y:0};let o=0,t=0,r=n;for(;r!==null;)o+=r.offsetLeft,t+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=xi.exec(c);if(f){let y=f[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,t-=i,o+=s,t+=u,{x:o,y:t}};class Si{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ti{monitorRegister=new WeakMap;watch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a||(a=new Si,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(o),t=t.parentNode}}unwatch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const Rt=new Ti,Pr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ci,create:$i}=ce("price"),Ni=$i({props:{...Pr},setup(e){const n=l.computed(()=>({[Ci]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>jt(e.price)==0?"":on(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),ki=["innerHTML"],Ei=["innerHTML"];function Pi(e,n,o,t,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ki)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ei)):l.createCommentVNode("",!0)],2)}const wn=je(Ni,[["render",Pi]]),{componentName:On,create:Ii}=ce("hint-text"),Oi=Ii({components:{Price:wn},props:{...Pr,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,n){const o=l.ref({top:null,right:null,bottom:null,left:null}),t=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=(T,j,k,O,F,U)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,G=T.split("-");let te=[];G[0]==="top"?te=["top","bottom","right","left"]:G[0]==="bottom"?te=["bottom","top","right","left"]:G[0]==="left"?te=["left","top","bottom","right"]:G[0]==="right"&&(te=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let x=0;x<te.length;x++){const R=te[x];if(I[0]=R,G[1]&&(I[1]=G[1]),R==="top"){const D=j.y-U-e.arrowSize-e.offset;if(D>=0){re.top=D;let v=0;G[1]==="start"?v=j.x:G[1]==="end"?v=j.x+k-F:v=j.x+k/2-F/2;const K=Y-v-F;K<0?(v+=K,d.value=-K):d.value=0,re.left=v<0?0:v;break}}else if(R==="bottom"){const D=j.y+O+e.arrowSize+e.offset;if(D+U<=Q){re.top=D;let v=0;G[1]==="start"?v=j.x:G[1]==="end"?v=j.x+k-F:v=j.x+k/2-F/2;const K=Y-v-F;K<0?(v+=K,d.value=-K):d.value=0,re.left=v<0?0:v;break}}else if(R==="left"){const D=j.x-F-e.arrowSize-e.offset;if(D>=0){re.left=D;let v=0;G[1]==="start"?v=j.y:G[1]==="end"?v=j.y+O-U:v=j.y+O/2-U/2,re.top=v<0?0:v;break}}else if(R==="right"){const D=j.x+k+e.arrowSize+e.offset;if(D+F<=Y){re.left=D;let v=0;G[1]==="start"?v=j.y:G[1]==="end"?v=j.y+O-U:v=j.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},f=(T,j,k=10)=>{if(Ze&&!(j===!1||!T)&&e.reference){t.value=Er(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value?.offsetHeight??0,F=u.value?.offsetWidth??0,{bestPlacement:U,bestInsetRect:Y}=c(e.placement,t.value,r.value,a.value,F,O);i.value=U,o.value=Y,s.value=!0}},d=l.ref(0),y=vt(()=>{f(e.message,e.visible)},10),C=l.ref(e.visible);l.watch(()=>e.visible,T=>{C.value=T});const g=l.computed(()=>C.value&&h.value),h=l.ref(!0),m=vt(T=>{const j=T[0];j&&(h.value=j.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([T,j])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Rt.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeUnmount(()=>{Rt.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const T={[On]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),P=l.computed(()=>{const T={};o.value.top!==null&&(T.top=`${o.value.top}px`),o.value.right!==null&&(T.right=`${o.value.right}px`),o.value.bottom!==null&&(T.bottom=`${o.value.bottom}px`),o.value.left!==null&&(T.left=`${o.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${j}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),z=l.computed(()=>{const T=[`${On}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),L=l.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),B=l.computed(()=>({[`${On}__arrow`]:!0})),V=l.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+d.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-d.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+d.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-d.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),A=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:g,tipRef:u,classes:b,styles:P,textClasses:z,textStyles:L,arrowClasses:B,arrowStyles:V,overlayShow:A,overlayStyle:N,onClickOverlay:()=>{C.value=!1,n.emit("update:visible",!1)}}}}),Vi=["innerHTML"];function Di(e,n,o,t,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:n[0]||(n[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 zt=je(Oi,[["render",Di]]);class Ir{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Gn={},Fi=new Ir,xt=new Map,nn=e=>{if(e){const n=document.getElementById(e);xt.delete(e),n&&(l.render(null,n),n.parentNode?.removeChild(n))}else{for(const n of xt.keys()){const o=document.getElementById(n);o&&(l.render(null,o),o.parentNode?.removeChild(o))}xt.clear()}},Ri=e=>{e.unmount=nn;const n=document.getElementById(e.id);if(n){const o=xt.get(e.id);o?e={...Gn,...o,...e}:e={...Gn,...e},e.transition=!1;const t=l.createVNode(zt,e);return l.render(t,n),e.id}},Ai=e=>{e.unmount=nn;let n=e.id??`hinttext_${Fi.get()}`;e={...Gn,...e},e.id=n,xt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(zt,e);return l.render(t,o),document.body.appendChild(o),n},Mi=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Fe={show(e,n,o={},t=!0){Mi(n);const r=o.id;return r&&xt.has(r)?Ri({...o,message:n,reference:e}):(t&&nn(),Ai({...o,message:n,reference:e}))},hide(e){nn(e)},install(e){e.config.globalProperties.$hintText=Fe}};function Li(e,n,o,t=!1){return{inheritAttrs:!0,props:{...Se,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const s=ct(),u=mn();gn(!1);const c=l.computed(()=>u&&s?pn(s,!1).value:null),f=e,d=l.ref(null),y=l.computed(()=>{const $={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if($[r.errorMarkClass]=!!U.value,$[r.warnMarkClass]=!!O.value,$[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const p=d.value(i);$[p]=!0}else if(typeof d.value=="string"){const p=d.value;$[p]=!0}return $}),C=l.ref(null),g=l.computed(()=>{const $={};if(r.width)r.width!=="auto"&&($.width=Ee(r.width));else{const p=u&&s?vn(s,!1):null;if(c.value&&p){if(c.value.type==="grid"){const W=bn(p,c.value,r.span,r.offset);Object.assign($,W)}else if(c.value.type==="flow"){const W=yn(p,c.value,r.span,r.offset,r.width);Object.assign($,W)}}}if(typeof C.value=="function"){const p=C.value(i);p&&Object.assign($,p)}else if(C.value&&typeof C.value=="object"){const p=C.value;Object.assign($,p)}return $}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:$=>{h.value=$}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=Re(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),P=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),z=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${P.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${P.value}`]:!0})),B=Re(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),V=l.computed(()=>B&&B.value?{width:Ee(B.value)}:{}),A=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),T=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ne({setRequired($){m.value=$},setErrorTip($){T.errorTip=$},setErrorIcon($){T.errorIcon=$},setWarnTip($){T.warnTip=$},setWarnIcon($){T.warnIcon=$},setInfoTip($){T.infoTip=$},setInfoIcon($){T.infoIcon=$},setCustomClassName($){d.value=$},setCustomStyle($){C.value=$}});const j=l.computed(()=>r.infoTip||T.infoTip),k=l.computed(()=>r.infoIcon||T.infoIcon),O=l.computed(()=>r.warnTip||T.warnTip),F=l.computed(()=>r.warnIcon||T.warnIcon),U=l.computed(()=>r.errorTip||T.errorTip),Y=l.computed(()=>r.errorIcon||T.errorIcon),Q=l.computed(()=>U.value?"error":O.value?"warn":j.value?"info":""),G=()=>Q.value.length>0,te=l.computed(()=>Q.value==="error"?U.value:Q.value==="warn"?O.value:Q.value==="info"?j.value:""),re=l.computed(()=>Q.value==="error"?Y.value:Q.value==="warn"?F.value:Q.value==="info"?k.value:null),I=l.computed(()=>{const $={[`${f}__tip`]:!0,[`${f}__tip--${Q.value}`]:!0,[`${f}--animate`]:!0};return Q.value==="error"&&r.errorClass?$[`${r.errorClass}`]=!0:Q.value==="warn"&&r.warnClass?$[`${r.warnClass}`]=!0:Q.value==="info"&&r.infoClass&&($[`${r.infoClass}`]=!0),$}),x=l.computed(()=>{const $={};return b&&b.value==="top"||!S()?$["padding-left"]="0px":B&&B.value&&($["padding-left"]=Ee(B.value)),$}),R=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([$,p,W,ee])=>{R.value&&($&&!ve(p)?D?o.show(R.value,p,{...ee,id:D,type:W},!0):D=o.show(R.value,p,{...ee,type:W},!0):o.hide(D))});let v=null;const K=()=>{v||!R.value||(v=new IntersectionObserver($=>{let p=!1;for(let W of $)if(W.intersectionRatio>0){p=!0,p&&a.emit("appear",W);break}p||a.emit("disappear")}),v.observe(R.value))},q=()=>{v&&(R.value&&v.unobserve(R.value),v.disconnect(),v=null)};l.watch(()=>se(r.appearListen),$=>{$?K():q()}),l.onMounted(()=>{se(r.appearListen)&&K()}),l.onUnmounted(()=>{q(),D&&o.hide(D)});const _=()=>{if(!S())return null;const $=[],p=a.slots?.label?.()??r.label,W={class:A.value},ee=l.h("div",W,[p]);if($.push(ee),a.slots.fixedPreTip){const ie=a.slots.fixedPreTip();$.push(ie)}const ue={class:L.value,style:V.value};return l.h("div",ue,$)},M=()=>{const $=[];if(a.slots.prepend){const W=a.slots.prepend();$.push(W)}if(a.slots.default){const W=a.slots.default();$.push(W)}if(a.slots.append){const W=a.slots.append();$.push(W)}if(a.slots.fixedTip){const W={class:[`${f}__fixed-tip`]},ee=l.h("div",W,[a.slots.fixedTip()]);$.push(ee)}const p={ref:R,class:N.value,style:E.value};return l.h("div",p,$)},X=()=>{const $=re.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--icon"},[$()]):l.h("div",{class:"fox-item__tip--icon"},[l.h($)]):null},H=()=>{const $=te.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--text"},[$()]):l.h("div",{class:"fox-item__tip--text"},[$]):null},J=()=>{if(!G())return null;const $=[],p=X();p&&$.push(p);const W=H();W&&$.push(W);const ee={class:I.value,style:x.value};return l.h("div",ee,$)},le=()=>a.slots?.hide?.()??null;return()=>{const $=[],p=[],W=_();W&&p.push(W);const ee=M();ee&&p.push(ee);const ue={class:z.value},ie=l.h("div",ue,p);$.push(ie);const fe=J();fe&&$.push(fe);const be=le();be&&$.push(be);const Ye={class:y.value,style:g.value,prop:r.prop};return l.h("div",Ye,$)}}}}const{componentName:Bi,create:_i,scope:qi}=ce("item"),Te=_i(Li(Bi,qi,Fe,!1));function ji(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,t){const r=ct(),a=mn();gn(!1);const i=l.computed(()=>a&&r?pn(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?vn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=bn(d,i.value,o.span,o.offset);Object.assign(f,y)}else if(i.value.type==="flow"){const y=yn(d,i.value,o.span,o.offset,o.width);Object.assign(f,y)}else return o.width&&(f.width=Ee(o.width)),f;else o.width&&(f.width=Ee(o.width));return f});return()=>{const f={class:u.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",f,t.slots.default()):l.h("div",f)}}}}const{componentName:zi,create:Hi,scope:Eh}=ce("slot-item"),ul=Hi(ji(zi));function Ki(e,n){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,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=ct(),s=mn();gn(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=pn(i,!1),d=vn(i,!1);if(f.value&&d)if(f.value.type==="grid"){const y=bn(d,f.value,o.span,o.offset);Object.assign(c,y)}else if(f.value.type==="flow"){const y=yn(d,f.value,o.span,o.offset,o.width);Object.assign(c,y)}else o.width&&(c.width=Ee(o.width))}else o.width&&(c.width=Ee(o.width));return c});return()=>{const c=[];if(t.slots.default){const d=t.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const C=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(C)}c.push(d[y])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Wi,create:Yi,scope:Ph}=ce("row-item"),cl=Yi(Ki(Wi)),Je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},oo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:[Boolean,String],default:!1}};function Ui(e,n,o){return{props:{...Se,...Oe,...oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=k=>{d.value=k,s("update:modelValue",k),s("input",k)},h=k=>{s("change",k)};let m=me(t,"hintText"),S=l.ref(!1);const b=k=>{let F=k.target.value;f.value=!0,ve(m.value)||(S.value=!0),s("focus",F,k)},P=k=>{setTimeout(()=>{S.value&&(S.value=!1),f.value=!1},0);let F=k.target.value;t.maxLength&&F.length>Number(t.maxLength)&&(F=F.slice(0,Number(t.maxLength))),s("blur",F,k)},z=()=>{s("clear","")},L=l.ref(!1);let B=null;const V=()=>{se(t.showTooltip)&&L.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{L.value=!0},150))},A=()=>{B&&(clearTimeout(B),L.value=!1,B=null)},N=l.computed(()=>L.value||S.value),E=l.computed(()=>L.value?d.value:m.value),T=l.computed(()=>jt(t.unit)>0),j=l.ref();return Ne({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const O={...Je(r.attrs),ref:j,class:C.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:z,onChange:h,onInput:g,onFocus:b,onBlur:P,onMouseover:V,onMouseleave:A},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:T.value&&(F.suffix=()=>[t.unit]);const U=[],Y=l.h(w.ElInput,O,F);U.push(Y);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.default&&(Q.fixedTip=r.slots.fixedTip);const te={...Ie(t,oo),hintText:E.value,hintVisible:N.value,prop:`${t.prop}_item`};return l.h(o,te,Q)}}}}const{componentName:Gi,create:Xi,scope:Zi}=ce("input-item"),fl=Xi(Ui(Gi,Zi,Te));function st(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Or(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Qi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ji=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function es(){const e=l.getCurrentInstance();return new Ji(e.proxy)}function Vr(e,n,o){const t=st(e,n),r=st(e,o);if(t!==r)return!1;const a=Bt(e,n),i=Bt(e,o);return a===i}function Dr(e,n,o,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){const s=Or(e,i);if(Array.isArray(s)&&s.length>0){const u=Dr(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=st(e,i)===a;else if(o==="item")u=Vr(e,i,a);else{let c=Bt(e,i);c==null&&(c=st(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function ts(e){return{text:e,value:e}}const ro={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 ns(e,n,o){return{props:{...Se,...Oe,...ro},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(X=>st(t,X)).join(" "):""),C=(M,X,H,J=!0)=>{if(H.length==0){J&&(s("update:modelValue",M),s("change",M)),f.value=M;return}const le=Dr(t,M,X,H);if(le===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let $=!0;if(le.length!==d.value.length)$=!1;else for(let p=0;p<le.length;p++){const W=le[p],ee=d.value[p];if(!Vr(t,W,ee)){$=!1;break}}if(!$){d.value=le;let p=[],W=[],ee=[];le.forEach(be=>{const Ye=Bt(t,be),Ue=st(t,be);p.push(Ye),ee.push(Ue),t.valueType==="text"?W.push(Ue):t.valueType==="item"?W.push(be):W.push(Ye)});let ue,ie,fe;se(t.multiple)?(f.value=p,ue=l.toRaw(W),ie=ee,fe=l.toRaw(le)):(f.value=p[0]??"",ue=l.toRaw(W[0]??""),ie=ee[0]??"",fe=l.toRaw(le[0])),J&&(s("update:modelValue",ue),s("change",ue,fe)),s("update:text",ie)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,M=>se(M)),b=es(),P=async(M,X)=>{if(M){const H=await b.load("select",M,X);if(H.length>0)if(typeof H[0]=="string"){let $=H.map(p=>ts(p));g.value=$}else g.value=H;else g.value=null}};l.watch([()=>t.source,()=>t.params],([M,X])=>{h.value=null,P(M,X)},{immediate:!S.value});let z=!1;const L=()=>{z||(z=!0,P(t.source,t.params))};l.watch([()=>g.value,()=>t.modelValue],([M,X])=>{if(N()&&se(t.multiple)){lt(X,f.value)||(f.value=X);return}C(X,t.valueType,m.value,!1),s("setValue",X)}),t.source||(f.value=t.modelValue);let B=null,V=l.ref(!1);typeof t.remoteMethod=="function"&&(B=async M=>{if(M==null){h.value=null;return}V.value=!0;try{const X=await t.remoteMethod(M);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}V.value=!1});let A=null;typeof t.filterMethod=="function"&&(A=async M=>{if(M==null){h.value=null;return}V.value=!0;try{const X=await t.filterMethod(M,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}V.value=!1});const N=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",E=l.ref(!1),T=e,j=l.computed(()=>({[T]:!0})),k=M=>{t.allowCreate||N()&&se(t.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):C(M,"value",m.value,!0)};let O=me(t,"hintText"),F=l.ref(!1);const U=M=>{let H=M.target.value;E.value=!0,ve(O.value)||(F.value=!0),s("focus",H,M)},Y=M=>{setTimeout(()=>{F.value&&(F.value=!1),E.value=!1},0);let H=M.target.value;t.maxLength&&H.length>Number(t.maxLength)&&(H=H.slice(0,Number(t.maxLength))),D.value||s("blur",H,M)},Q=()=>{s("clear","")},G=l.ref(!1);let te=null;const re=()=>{se(t.showTooltip)&&G.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{G.value=!0},150))},I=()=>{te&&(clearTimeout(te),G.value=!1,te=null)},x=l.computed(()=>G.value||F.value),R=l.computed(()=>G.value?y.value:O.value),D=l.ref(!1),v=M=>{D.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},q=(M,X)=>{const H=[];return M.forEach((J,le)=>{const $=Or(t,J);if(Array.isArray($)&&$.length>0){const p=q($,X),W=st(t,J),ue={key:`${W}_${le}`,label:W};H.push(l.h(w.ElOptionGroup,ue,{default:()=>p}))}else{const p=Bt(t,J),W=st(t,J),ee=Qi(t,J),ie={key:`${p}_${le}`,label:W,disabled:ee,value:p};if(typeof X=="function")H.push(l.h(w.ElOption,ie,{default:()=>X(J)}));else if(t.optionType==="item"){const fe={class:{"fox-select-item__option-left":!0}},be=l.h("span",fe,[p]),Ye={class:{"fox-select-item__option-right":!0}},Ue=l.h("span",Ye,[W]),Ge=l.h("div",{class:{"fox-select-item__option":!0}},[be,Ue]);H.push(l.h(w.ElOption,ie,{default:()=>Ge}))}else t.optionType==="value"?H.push(l.h(w.ElOption,ie,{default:()=>[p]})):H.push(l.h(w.ElOption,ie))}}),H},_=l.ref();return Ne({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()}}),()=>{const X={...Je(r.attrs),ref:_,class:j.value,clearable:se(t.clearable),multiple:se(t.multiple),placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:Q,onChange:k,onFocus:U,onBlur:Y,onVisibleChange:v,onRemoveTag:K};typeof B=="function"&&(X["remote-method"]=B,X.loading=V.value),typeof A=="function"&&(X["filter-method"]=A,X.loading=V.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>q(m.value,r.slots.option);const J=[],le=l.h(w.ElSelect,X,H);J.push(le);const $={default:()=>J};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const W={...Ie(t,ro),hintText:R.value,hintVisible:x.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(W["appear-listen"]=!0,W.onAppear=L),l.h(o,W,$)}}}}const{componentName:ls,create:os,scope:rs}=ce("select-item"),dl=os(ns(ls,rs,Te));var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",y="quarter",C="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("_")},P=function(k,O,F){var U=String(k);return!U||U.length>=O?k:""+Array(O+1-U.length).join(F)+k},z={s:P,z:function(k){var O=-k.utcOffset(),F=Math.abs(O),U=Math.floor(F/60),Y=F%60;return(O<=0?"+":"-")+P(U,2,"0")+":"+P(Y,2,"0")},m:function k(O,F){if(O.date()<F.date())return-k(F,O);var U=12*(F.year()-O.year())+(F.month()-O.month()),Y=O.clone().add(U,d),Q=F-Y<0,G=O.clone().add(U+(Q?-1:1),d);return+(-(U+(F-Y)/(Q?Y-G:G-Y))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:d,y:C,w:f,d:c,D:g,h:u,m:s,s:i,ms:a,Q:y}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},L="en",B={};B[L]=b;var V=function(k){return k instanceof T},A=function k(O,F,U){var Y;if(!O)return L;if(typeof O=="string"){var Q=O.toLowerCase();B[Q]&&(Y=Q),F&&(B[Q]=F,Y=Q);var G=O.split("-");if(!Y&&G.length>1)return k(G[0])}else{var te=O.name;B[te]=O,Y=te}return!U&&Y&&(L=Y),Y||!U&&L},N=function(k,O){if(V(k))return k.clone();var F=typeof O=="object"?O:{};return F.date=k,F.args=arguments,new T(F)},E=z;E.l=A,E.i=V,E.w=function(k,O){return N(k,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function k(F){this.$L=A(F.locale,null,!0),this.parse(F)}var O=k.prototype;return O.parse=function(F){this.$d=function(U){var Y=U.date,Q=U.utc;if(Y===null)return new Date(NaN);if(E.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var G=Y.match(m);if(G){var te=G[2]-1||0,re=(G[7]||"0").substring(0,3);return Q?new Date(Date.UTC(G[1],te,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)):new Date(G[1],te,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)}}return new Date(Y)}(F),this.$x=F.x||{},this.init()},O.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},O.$utils=function(){return E},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(F,U){var Y=N(F);return this.startOf(U)<=Y&&Y<=this.endOf(U)},O.isAfter=function(F,U){return N(F)<this.startOf(U)},O.isBefore=function(F,U){return this.endOf(U)<N(F)},O.$g=function(F,U,Y){return E.u(F)?this[U]:this.set(Y,F)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(F,U){var Y=this,Q=!!E.u(U)||U,G=E.p(F),te=function(q,_){var M=E.w(Y.$u?Date.UTC(Y.$y,_,q):new Date(Y.$y,_,q),Y);return Q?M:M.endOf(c)},re=function(q,_){return E.w(Y.toDate()[q].apply(Y.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(_)),Y)},I=this.$W,x=this.$M,R=this.$D,D="set"+(this.$u?"UTC":"");switch(G){case C:return Q?te(1,0):te(31,11);case d:return Q?te(1,x):te(0,x+1);case f:var v=this.$locale().weekStart||0,K=(I<v?I+7:I)-v;return te(Q?R-K:R+(6-K),x);case c:case g:return re(D+"Hours",0);case u:return re(D+"Minutes",1);case s:return re(D+"Seconds",2);case i:return re(D+"Milliseconds",3);default:return this.clone()}},O.endOf=function(F){return this.startOf(F,!1)},O.$set=function(F,U){var Y,Q=E.p(F),G="set"+(this.$u?"UTC":""),te=(Y={},Y[c]=G+"Date",Y[g]=G+"Date",Y[d]=G+"Month",Y[C]=G+"FullYear",Y[u]=G+"Hours",Y[s]=G+"Minutes",Y[i]=G+"Seconds",Y[a]=G+"Milliseconds",Y)[Q],re=Q===c?this.$D+(U-this.$W):U;if(Q===d||Q===C){var I=this.clone().set(g,1);I.$d[te](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else te&&this.$d[te](re);return this.init(),this},O.set=function(F,U){return this.clone().$set(F,U)},O.get=function(F){return this[E.p(F)]()},O.add=function(F,U){var Y,Q=this;F=Number(F);var G=E.p(U),te=function(x){var R=N(Q);return E.w(R.date(R.date()+Math.round(x*F)),Q)};if(G===d)return this.set(d,this.$M+F);if(G===C)return this.set(C,this.$y+F);if(G===c)return te(1);if(G===f)return te(7);var re=(Y={},Y[s]=t,Y[u]=r,Y[i]=o,Y)[G]||1,I=this.$d.getTime()+F*re;return E.w(I,this)},O.subtract=function(F,U){return this.add(-1*F,U)},O.format=function(F){var U=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var Q=F||"YYYY-MM-DDTHH:mm:ssZ",G=E.z(this),te=this.$H,re=this.$m,I=this.$M,x=Y.weekdays,R=Y.months,D=function(_,M,X,H){return _&&(_[M]||_(U,Q))||X[M].slice(0,H)},v=function(_){return E.s(te%12||12,_,"0")},K=Y.meridiem||function(_,M,X){var H=_<12?"AM":"PM";return X?H.toLowerCase():H},q={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:D(Y.monthsShort,I,R,3),MMMM:D(R,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:D(Y.weekdaysMin,this.$W,x,2),ddd:D(Y.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(te),HH:E.s(te,2,"0"),h:v(1),hh:v(2),a:K(te,re,!0),A:K(te,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 Q.replace(S,function(_,M){return M||q[_]||G.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(F,U,Y){var Q,G=E.p(U),te=N(F),re=(te.utcOffset()-this.utcOffset())*t,I=this-te,x=E.m(this,te);return x=(Q={},Q[C]=x/12,Q[d]=x,Q[y]=x/3,Q[f]=(I-re)/6048e5,Q[c]=(I-re)/864e5,Q[u]=I/r,Q[s]=I/t,Q[i]=I/o,Q)[G]||I,Y?x:E.a(x)},O.daysInMonth=function(){return this.endOf(d).$D},O.$locale=function(){return B[this.$L]},O.locale=function(F,U){if(!F)return this.$L;var Y=this.clone(),Q=A(F,U,!0);return Q&&(Y.$L=Q),Y},O.clone=function(){return E.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},k}(),j=T.prototype;return N.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",C],["$D",g]].forEach(function(k){j[k[1]]=function(O){return this.$g(O,k[0],k[1])}}),N.extend=function(k,O){return k.$i||(k(O,T,N),k.$i=!0),N},N.locale=A,N.isDayjs=V,N.unix=function(k){return N(1e3*k)},N.en=B[L],N.Ls=B,N.p={},N})})(Fr);var as=Fr.exports;const Qe=at(as);var Rr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,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"},t=/(\[[^[]*\])|([-_:/.,()\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))},y=function(h,m){var S,b=s.meridiem;if(b){for(var P=1;P<=24;P+=1)if(h.indexOf(b(P,0,m))>-1){S=P>12;break}}else S=h===(m?"pm":"PM");return S},C={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,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,T){var j=T&&T.toUpperCase();return E||S[T]||o[T]||S[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,O,F){return O||F.slice(1)})})).match(t),P=b.length,z=0;z<P;z+=1){var L=b[z],B=C[L],V=B&&B[0],A=B&&B[1];b[z]=A?{regex:V,parser:A}:L.replace(/^\[|\]$/g,"")}return function(N){for(var E={},T=0,j=0;T<P;T+=1){var k=b[T];if(typeof k=="string")j+=k.length;else{var O=k.regex,F=k.parser,U=N.slice(j),Y=O.exec(U)[0];F.call(E,Y),N=N.replace(Y,"")}}return function(Q){var G=Q.afternoon;if(G!==void 0){var te=Q.hours;G?te<12&&(Q.hours+=12):te===12&&(Q.hours=0),delete Q.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,P=b.parse;b.parse=function(z){var L=z.date,B=z.utc,V=z.args;this.$u=B;var A=V[1];if(typeof A=="string"){var N=V[2]===!0,E=V[3]===!0,T=N||E,j=V[2];E&&(j=V[2]),s=this.$locale(),!N&&j&&(s=S.Ls[j]),this.$d=function(U,Y,Q){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*U);var G=g(Y)(U),te=G.year,re=G.month,I=G.day,x=G.hours,R=G.minutes,D=G.seconds,v=G.milliseconds,K=G.zone,q=new Date,_=I||(te||re?1:q.getDate()),M=te||q.getFullYear(),X=0;te&&!re||(X=re>0?re-1:q.getMonth());var H=x||0,J=R||0,le=D||0,$=v||0;return K?new Date(Date.UTC(M,X,_,H,J,le,$+60*K.offset*1e3)):Q?new Date(Date.UTC(M,X,_,H,J,le,$)):new Date(M,X,_,H,J,le,$)}catch{return new Date("")}}(L,A,B),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),T&&L!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var k=A.length,O=1;O<=k;O+=1){V[1]=A[O-1];var F=S.apply(this,V);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}O===k&&(this.$d=new Date(""))}else P.call(this,z)}}})})(Rr);var is=Rr.exports;const ss=at(is);var Ar={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t,r){var a=t.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(y){switch(y){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(),y==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),y==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return y}});return i.bind(this)(d)}}})})(Ar);var us=Ar.exports;const cs=at(us);var Mr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t,r){var a=t.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,C,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[C]),P=S||b.map(function(L){return L.slice(0,g)});if(!h)return P;var z=m.weekStart;return P.map(function(L,B){return P[(B+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,y){return d.formats[y]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},f=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return c(d.$locale(),y)},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(y){return c(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Mr);var fs=Mr.exports;const ds=at(fs);var Lr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){var o="week",t="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(t).add(1,t).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var y=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),C=this.diff(y,o,!0);return C<0?i(this).startOf("week").week():Math.ceil(C)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Lr);var hs=Lr.exports;const ms=at(hs);var Br={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t){t.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}}})})(Br);var gs=Br.exports;const ps=at(gs);var _r={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t,r){t.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")}}})})(_r);var vs=_r.exports;const ys=at(vs);var qr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(qr);var bs=qr.exports;const ws=at(bs);var jr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(jr);var xs=jr.exports;const Ss=at(xs);Qe.extend(ds);Qe.extend(cs);Qe.extend(ss);Qe.extend(ms);Qe.extend(ps);Qe.extend(ys);Qe.extend(ws);Qe.extend(Ss);const Be={format(e,n){return Qe(e).format(n)},parser(e,n){return Qe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,t,r].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const t=e*(1e3*60*60*24);return o=new Date(o.getTime()+t),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(o>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,o==t},getMonthWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return t!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-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 t!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(t===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 n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const t=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},ao={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"}},io={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 Ts(e,n,o){return{props:{...Se,...Oe,...ao,...io},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=l.computed(()=>F.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),C=l.computed(()=>F.value?"longTermKey":"normalKey"),g=_=>{if(F.value&&t.type==="daterange"){const M=[...d.value];M[0]=_,d.value=M}else d.value=_;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>F.value&&t.type==="daterange"?"date":t.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":F.value,"is-readonly":i.value,"is-disabled":a.value}));let b=me(t,"hintText"),P=l.ref(!1);const z=_=>{let X=_.target.value;f.value=!0,ve(b.value)||(P.value=!0),s("focus",X,_)},L=_=>{setTimeout(()=>{P.value&&(P.value=!1),f.value=!1},0);let X=_.target.value;t.maxLength&&X.length>Number(t.maxLength)&&(X=X.slice(0,Number(t.maxLength))),s("blur",X,_)},B=()=>{s("clear","")},V=_=>{s("calendar-change",_)},A=(_,M,X)=>{s("panel-change",_,M,X)},N=_=>{s("visible-change",_)},E=Re(l.computed(()=>t.longTermText),"longTermText",_e.Near),T=Re(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",_e.Near),j=Re(l.computed(()=>t.longTermValue),"longTermValue",_e.Near),k=Re(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let O=null;const F=l.ref(se(t.longTerm)),U=_=>{if(F.value=_,s("update:longTerm",_),_){if(O=d.value,t.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=F.value),M[0]||(M[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),M[1]||(M[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=t.valueFormat?Be.format(new Date,t.valueFormat):new Date);s("update:modelValue",d.value)}else{if(t.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),M[1]||(M[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),d.value=M}else d.value=O;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=se(t.isLongTerm);if(Y){const _=()=>{if(F.value===!0){if(O=d.value,t.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=F.value,M[0]||(M[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),M[1]||(M[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else lt(j.value,d.value)&&(F.value=!0)};_(),l.watch([()=>t.longTerm],([M])=>{F.value!==M&&_()}),l.watch([()=>d.value],([M])=>{let X=!1;if(t.type==="daterange"&&Array.isArray(M))try{let H=M[1];if(!H)return;typeof H!="string"&&t.valueFormat&&(H=Be.format(H,t.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray(k.value)&&k.value.findIndex($=>H==$)!==-1)&&(X=!0)}catch(H){console.error(H)}F.value!==X&&(F.value=X)},{immediate:!0})}const Q=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),G=l.ref(),te=l.ref(),re=/^\d+$/,I=(_,M)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(_,M):re.test(_)&&_.length===t.flashFillThreshold,x=(_,M)=>{let X;if(typeof t.flashFillFormat=="function")X=t.flashFillFormat(_,M);else{const J=t.flashFillFormat??"YYYYMMDD";X=Be.parser(_,J)}const H=t.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},R=_=>_?_.endsWith("range"):!1,D=_=>{if(!_.target)return;const M=_.target.value??"";if(I(M,t.type)){const X=x(M,t.type);if(R(t.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=X,g(H)}else g(X)}},v=_=>{if(!_.target)return;const M=_.target.value??"";if(I(M,t.type)){const X=x(M,t.type);if(R(t.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=X,g(H)}else g(X)}},K=()=>{if(t.flashFill&&G.value&&G.value.$el)if(R(t.type)){const _=G.value.$el.querySelectorAll("input.el-range-input");_[0]&&_[0].addEventListener("input",D),_[1]&&_[1].addEventListener("input",v)}else{const _=G.value.$el.querySelector("input.el-input__inner");_&&_.addEventListener("input",D)}},q=()=>{if(t.flashFill&&G.value&&G.value.$el)if(R(t.type)){const _=G.value.$el.querySelectorAll("input.el-range-input");_[0]&&_[0].removeEventListener("input",D),_[1]&&_[1].removeEventListener("input",v)}else{const _=G.value.$el.querySelector("input.el-input__inner");_&&_.removeEventListener("input",D)}};return l.onMounted(K),l.onBeforeUnmount(q),Ne({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const M={...r.attrs,key:C.value,type:h.value,ref:te,class:S.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:t.valueFormat,format:t.format,"onUpdate:modelValue":g,onClear:B,onFocus:z,onBlur:L,onCalendarChange:V,onPanelChange:A,onVisibleChange:N},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(w.ElDatePicker,M,X);H.push(J);const le={default:()=>H};if(r.slots.default&&(le.label=r.slots.default),r.slots.fixedTip&&(le.fixedTip=r.slots.fixedTip),Y){if(F.value){const ee=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ue=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ie={class:Q.value},fe=l.h("div",ie,{default:()=>[ee,ue]});H.push(fe)}if(!i.value&&!a.value){const ee={label:T.value||E.value,disabled:i.value||a.value,modelValue:F.value,"onUpdate:modelValue":U},ue=l.h(w.ElCheckbox,ee),ie=l.h("div",{class:{[`${m}__append`]:!0}},[ue]);le.append=()=>ie}}const p={...Ie(t,ao,io),ref:G,class:{[`${m}__wrapper`]:!0,"has-append":Y},hintText:b.value,hintVisible:P.value,prop:`${t.prop}_item`};return l.h(o,p,le)}}}}const{componentName:Cs,create:$s,scope:Ns}=ce("date-item"),hl=$s(Ts(Cs,Ns,Te)),so={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ks(e,n,o){return{props:{...Se,...Oe,...so},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0})),g=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=me(t,"hintText"),m=l.ref(!1);const S=B=>{let A=B.target.value;f.value=!0,ve(h.value)||(m.value=!0),s("focus",A,B)},b=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let A=B.target.value;t.maxLength&&A.length>Number(t.maxLength)&&(A=A.slice(0,Number(t.maxLength))),s("blur",A,B)},P=()=>{s("clear","")},z=B=>{s("visible-change",B)},L=l.ref();return Ne({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const V={...r.attrs,ref:L,class:C.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:P,onFocus:S,onBlur:b,onVisibleChange:z},A={},N=[],E=l.h(w.ElTimePicker,V,A);N.push(E);const T={default:()=>N};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const k={...Ie(t,so),hintText:h.value,hintVisible:m.value,prop:`${t.prop}_item`};return l.h(o,k,T)}}}}const{componentName:Es,create:Ps,scope:Is}=ce("time-item"),ml=Ps(ks(Es,Is,Te)),uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Os(e,n,o){return{props:{...Se,...Oe,...uo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=me(t,"hintText"),m=l.ref(!1);const S=L=>{let V=L.target.value;f.value=!0,ve(h.value)||(m.value=!0),s("focus",V,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let V=L.target.value;t.maxLength&&V.length>Number(t.maxLength)&&(V=V.slice(0,Number(t.maxLength))),s("blur",V,L)},P=()=>{s("clear","")},z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const B={...r.attrs,ref:z,class:C.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:P,onFocus:S,onBlur:b},V={},A=[],N=l.h(w.ElTimeSelect,B,V);A.push(N);const E={default:()=>A};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const j={...Ie(t,uo),hintText:h.value,hintVisible:m.value,prop:`${t.prop}_item`};return l.h(o,j,E)}}}}const{componentName:Vs,create:Ds,scope:Fs}=ce("time-select-item"),gl=Ds(Os(Vs,Fs,Te));function co(e,n=0){let o=`${e}`,t=o.indexOf(".");if(t==-1)return o;let r=t;for(let a=o.length-1;a>=t;a--)if(o.charAt(a)!="0"){r=a;break}return r-t<n?r=t+n+1:r!=t&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function fo(e,n,o=20){if(typeof n=="string"&&(n=xe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=Xo(`${e}`,`${n}`);return co(t)}else{let t=Qn(`${e}`,Zo(`${n}`),20);return co(t)}}function Rs(e,n=-1,o=!1,t=3,r=","){return on(e,n,o,t,r)}function ho(e,n,o,t,r=!0){if(e==="")return"";if(e=Qo(e),n=xe(n),n==1)return e;if(t)e=fo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Qn(e,1,xe(o)));else{let a=-1*n;e=fo(e,a)}return e}function mo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=se(n.minInclude),r=qn(e,n.min);if(t&&r==-1||!t&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let t=se(n.maxInclude),r=qn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const go={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 As(e,n,o){return{props:{...Se,...Oe,...go},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(!1),c=me(t,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>t.rates,()=>t.precision],([k,O,F])=>{if(ve(k)){f.value="";return}const U=ho(k,O,F,!1);f.value!==U&&(f.value=U)},{immediate:!0});const d=l.computed(()=>{let k="";return u.value&&(k=f.value),k}),{t:y}=qe.useFoxI18n(n),C=l.computed(()=>{let k=t.placeholder??"";return!u.value&&!ve(f.value)?k=Rs(f.value,t.decimalLength,t.autoPadding,t.digits,t.separator):k=y(["placeholder",k]),k}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=Re(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let k=S.value;return ve(k)&&(k=t.errorTip??""),k}),P=l.ref(""),z=l.ref(!1),L=(k,O)=>{if(k=`${k}`,ve(k)){f.value="",c.value="",O.forEach(F=>{s(F,"")}),se(t.showTip)&&z.value&&(z.value=!1);return}if(k.length>=2){let F=k;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){l.triggerRef(f);return}}if(k!="-"){if(!ar(k)){l.triggerRef(f);return}if(t.integerLength!=-1&&ir(k)>Number(t.integerLength)){l.triggerRef(f);return}if(t.decimalLength&&t.decimalLength!=-1&&sr(k)>Number(t.decimalLength)){l.triggerRef(f);return}let F=mo(k,t);if(F.maxValid===!1){S.value=F.message,l.triggerRef(f);return}}else if(t.min!=null&&xe(t.min)>=0){l.triggerRef(f);return}P.value=k,se(t.showTip)&&(z.value=k.length>0),f.value=k,c.value=ho(k,t.rates,t.precision,!0),O.forEach(F=>{s(F,c.value)})},B=k=>{L(k,["update:modelValue","input"])},V=k=>{L(k,["update:modelValue","change"])},A=k=>{if(u.value=!0,se(t.showTip)){let O=f.value;ve(O)&&(O=t.hintText),ve(O)||(P.value=O,z.value=!0)}S.value="",s("focus",c.value,k)},N=k=>{if(setTimeout(()=>{u.value=!1,se(t.showTip)&&z.value===!0&&(z.value=!1)},0),!ve(f.value)){let O=mo(f.value,t);if(O.minValid===!1||O.maxValid===!1){S.value=O.message;return}}s("update:modelValue",c.value,k),s("blur",c.value,k)},E=()=>{s("clear","")},T=l.computed(()=>jt(t.unit)>0),j=l.ref();return Ne({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const O={...Je(r.attrs),ref:j,class:h.value,type:"digit",maxlength:t.maxLength,placeholder:C.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:E,onInput:B,onChange:V,onFocus:A,onBlur:N},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:T.value&&(F.suffix=()=>[t.unit]);const U=[],Y=l.h(w.ElInput,O,F);U.push(Y);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const te={...Ie(t,go),errorTip:b.value,hintText:P.value,hintVisible:z.value,hintType:"number",prop:`${t.prop}_item`};return l.h(o,te,Q)}}}}const{componentName:Ms,create:Ls,scope:Bs}=ce("money-item"),pl=Ls(As(Ms,Bs,Te)),po={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 _s(e,n,o){return{props:{...Se,...Oe,...po},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0,[`${y}__append`]:B.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=A=>{d.value=A,s("update:modelValue",A),s("input",A)},m=A=>{s("change",A)};let S=me(t,"hintText"),b=l.ref(!1);const P=A=>{let E=A.target.value;f.value=!0,ve(S.value)||(b.value=!0),s("focus",E,A)},z=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let E=A.target.value;t.maxLength&&E.length>Number(t.maxLength)&&(E=E.slice(0,Number(t.maxLength))),s("blur",E,A)},L=()=>{s("clear","")},B=l.computed(()=>jt(t.unit)>0),V=l.ref();return Ne({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const N={...Je(r.attrs),ref:V,class:C.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:P,onBlur:z},E={},T=[],j=l.h(w.ElInputNumber,N,E);T.push(j);const k={default:()=>T};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const F={...Ie(t,po),hintText:S.value,hintVisible:b.value,prop:`${t.prop}_item`};if(r.slots.append)k.append=r.slots.append;else if(B.value){const Y={class:g.value},Q=l.h("div",Y,[t.unit]);k.append=()=>Q}return l.h(o,F,k)}}}}const{componentName:qs,create:js,scope:zs}=ce("input-number-item"),vl=js(_s(qs,zs,Te));function nt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hs(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Ks=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const a=We(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Ws(){const e=l.getCurrentInstance();return new Ks(e.proxy)}function Xn(e,n,o){const t=nt(e,n),r=nt(e,o);if(t!==r)return!1;const a=gt(e,n),i=gt(e,o);return a===i}function zr(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=t;for(let i=0;Array.isArray(a)&&i<n.length;i++){const s=n[i];if(Array.isArray(s)){const u=zr(e,s,o,t);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=nt(e,c)===s;else if(o==="item")u=Xn(e,c,s);else{let f=gt(e,c);f==null&&(f=nt(e,c)),u=f===s}if(u){r.push(c),a=Hs(e,c);break}}if(!u)break}}return r}function Ys(e){return{text:e,value:e}}const vo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},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 Us(e,n,o){return{props:{...Se,...Oe,...vo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(_=>Array.isArray(_)?_.map(X=>nt(t,X)).join(" "):nt(t,_)).join(" "):""),C=(q,_,M,X=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(f.value===q)return;f.value=q;const $=l.toRaw(q);if(X){const p=K?.value.getCheckedNodes();if(p)if(t.multiple){const W=[];p.forEach(ee=>{const ie=(ee.pathNodes??[]).map(fe=>fe.data);W.push(ie)}),s("update:pathNodes",W)}else{const ee=(p[0]?.pathNodes??[]).map(ue=>ue.data);s("update:pathNodes",ee)}s("update:modelValue",$),s("change",$)}return}const H=zr(t,q,_,M);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,X&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const J=H[H.length-1];if(E.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const $=[];H.forEach(p=>{const W=`${nt(t,p)}`;$.push(W)}),$.length>0&&(A.value=$.join(t.separator))}else A.value=null;let le=!0;if(H.length!==d.value.length)le=!1;else for(let $=0;$<H.length;$++){const p=H[$],W=d.value[$];if(Array.isArray(p)){if(!Array.isArray(W)||p.length!==W.length)le=!1;else for(let ee=0;ee<p.length;ee++)if(!Xn(t,p[ee],W[ee])){le=!1;break}}else Xn(t,p,W)||(le=!1);if(!le)break}if(!le){d.value=H;let $=[],p=[];H.forEach(ee=>{if(Array.isArray(ee)){let ue=[],ie=[];for(let fe of ee)ue.push(gt(t,fe)),t.valueType==="text"?ie.push(nt(t,fe)):t.valueType==="item"?ie.push(fe):ie.push(gt(t,fe));$.push(ue),p.push(ie)}else $.push(gt(t,ee)),t.valueType==="text"?p.push(nt(t,ee)):t.valueType==="item"?p.push(ee):p.push(gt(t,ee))}),f.value=$;const W=l.toRaw(p);X&&(s("update:pathNodes",H),s("update:modelValue",W),s("change",W))}},g=l.ref([]),h=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,q=>se(q)),m=Ws(),S=async(q,_)=>{if(q){const M=await m.load("cascader",q,_);if(M.length>0)if(typeof M[0]=="string"){let J=M.map(le=>Ys(le));g.value=J}else g.value=M}};l.watch([()=>t.source,()=>t.params],async([q,_])=>{S(q,_)},{immediate:!(h.value||t.lazy)});let b=!1;const P=()=>{b||(b=!0,S(t.source,t.params))};l.watch([()=>g.value,()=>t.modelValue],([q,_])=>{C(_,t.valueType,q,!1),s("setValue",_)}),t.lazy&&C(t.modelValue,"value",[],!1);let z=null,L=l.ref(!1);typeof t.remoteMethod=="function"&&(z=async q=>{if(q!=null){L.value=!0;try{const _=await t.remoteMethod(q);g.value=_}catch(_){console.error(_)}L.value=!1}});const B=l.ref(!1),V=e,A=l.ref(null),N=l.computed(()=>({[V]:!0,"is-incomplete":A.value&&A.value.length>0})),E=l.computed(()=>{let q={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(q.multiple=!0),t.props&&Object.assign(q,t.props),t.lazy&&(q.lazy=!0,typeof t.lazyLoad=="function"?q.lazyLoad=t.lazyLoad:q.lazyLoad=async(_,M)=>{const X=await m.load("cascader",t.source,_,!0);if(_?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===_.level){const H=_.pathLabels??[];let J=[];H.forEach(le=>{le&&J.push(le)}),J.length>0&&(A.value=J.join(t.separator))}else A.value=null;M(X)}),q}),T=q=>{t.allowCreate?(s("update:modelValue",q),s("change",q),f.value=q):C(q,"value",g.value,!0)};let j=me(t,"hintText"),k=l.ref(!1);const O=q=>{let M=q.target.value;B.value=!0,ve(j.value)||(k.value=!0),s("focus",M,q)},F=q=>{setTimeout(()=>{k.value&&(k.value=!1),B.value=!1},0);let M=q.target.value;t.maxLength&&M.length>Number(t.maxLength)&&(M=M.slice(0,Number(t.maxLength))),x.value||s("blur",M,q)},U=()=>{s("clear","")},Y=l.ref(!1);let Q=null;const G=()=>{se(t.showTooltip)&&Y.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{Y.value=!0},150))},te=()=>{Q&&(clearTimeout(Q),Y.value=!1,Q=null)},re=l.computed(()=>Y.value||k.value),I=l.computed(()=>Y.value?y.value:j.value),x=l.ref(!1),R=q=>{x.value=q,s("visible-change",q),q||s("selected")},D=q=>{s("remove-tag",q)},v=q=>{s("expand-change",q)},K=l.ref();return Ne({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const _={...r.attrs,ref:K,class:N.value,props:E.value,clearable:t.clearable,placeholder:A.value||c.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:t.separator,onClear:U,onChange:T,onFocus:O,onBlur:F,onVisibleChange:R,onRemoveTag:D,expandChange:v};typeof z=="function"&&(_["remote-method"]=z,_.loading=L.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const X=[],H=l.h(w.ElCascader,_,M);X.push(H);const J={default:()=>X};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const $={...Ie(t,vo),hintText:I.value,hintVisible:re.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:G,onMouseleave:te};return h.value&&!t.lazy&&($["appear-listen"]=!0,$.onAppear=P),l.h(o,$,J)}}}}const{componentName:Gs,create:Xs,scope:Zs}=ce("cascader-item"),yl=Xs(Us(Gs,Zs,Te)),yo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,n,o){return{props:{...Se,...Oe,...yo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0})),g=V=>{d.value=V,s("update:modelValue",V),s("input",V)},h=V=>{s("change",V)},m=V=>{s("select",V)};let S=me(t,"hintText"),b=l.ref(!1);const P=V=>{let N=V.target.value;f.value=!0,ve(S.value)||(b.value=!0),s("focus",N,V)},z=V=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let N=V.target.value;t.maxLength&&N.length>Number(t.maxLength)&&(N=N.slice(0,Number(t.maxLength))),s("blur",N,V)},L=()=>{s("clear","")},B=l.ref();return Ne({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const A={...r.attrs,ref:B,class:C.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:P,onBlur:z,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=[],T=l.h(w.ElAutocomplete,A,N);E.push(T);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const O={...Ie(t,yo),hintText:S.value,hintVisible:b.value,prop:`${t.prop}_item`};return l.h(o,O,j)}}}}const{componentName:Js,create:eu,scope:tu}=ce("autocomplete-item"),bl=eu(Qs(Js,tu,Te));function nu(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(y=>y[t]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<a.length;u++){let c=n[u],f=a[u];const d=c.find(y=>y[t]===f);if(!d)break;i.push(d[o])}else{let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(y=>y[t]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let lu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ou(){const e=l.getCurrentInstance();return new lu(e.proxy)}const Hr={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 ru(e,n){return{props:{...Hr},setup(o,{attrs:t,slots:r}){const a=ou(),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=nu(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={...t};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",{...t,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:Dh,create:au,scope:Fh}=ce("mapping"),_t=au(ru());function iu(e,n){let o=n.split("."),t=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);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function su(e,n){return{props:{...Hr},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const s=iu(i.row,i.column.property);return r.default?l.h(_t,{...o,modelValue:s},{default:r.default}):l.h(_t,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(w.ElTableColumn,{...t},a)}}}}const{componentName:Rh,create:uu,scope:Ah}=ce("table-mapping-column"),wl=uu(su()),cu=Symbol.for("TableStateKey");function bo(e,n){let o=n.split("."),t=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);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function fu(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(cu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=bo(s.row,s.column.property),c=a?bo(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":f}};return l.h("label",C,[y])}};return l.h(w.ElTableColumn,{...t},i)}}}}const{componentName:Mh,create:du,scope:Lh}=ce("table-radio-column"),xl=du(fu()),hu={},mu={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 gu(e,n){return l.openBlock(),l.createElementBlock("svg",mu,n[0]||(n[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 pu=je(hu,[["render",gu]]),{componentName:Bh,create:vu,scope:_h}=ce("table-setting"),yu={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:"不固定"}},bu=vu({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:pu,Download:Pe.Download,RefreshLeft:Pe.RefreshLeft},props:{...yu},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=v=>v.length>1,y=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(X=>X.prop===M.prop?(M.label=X.label,!0):!1)});const q=[];r.value=v.map((M,X)=>(!(M.label===""||M.type)&&M.visible!==!1&&q.push(M.prop),{...M,sortIndex:X})),s.value.length+a.value.length+i.value.length===q.length?b.value=!0:q.length>0&&(P.value=!0),B.value=q},C=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,K)=>{if(v.length!==K.length)return!1;const q=v.map(_=>C(_));for(let _ of K){const M=C(_);if(q.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),q=K.srcColumnPropertyList;t=q.map((_,M)=>({..._,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&g(q,v)||(v=q)}y(v,t)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),P=l.ref(!1),z=v=>{const K=[];r.value.forEach(_=>{v&&!(_.label===""||_.type)&&K.push(_.prop),_.visible=v}),b.value=!1,P.value=!1,s.value.length+a.value.length+i.value.length===K.length?b.value=!0:K.length>0&&(P.value=!0),B.value=K,m()},L=()=>{h(t),m()},B=l.ref([]),V=v=>{r.value.forEach(q=>{if(q.label===""||q.type)return;const _=v.indexOf(q.prop)!==-1;q.visible=_}),b.value=!1,P.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?b.value=!0:v.length>0&&(P.value=!0),m()},A=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,E(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(N.roleType=K.dataset.roleType,N.index=K.dataset.index)},j=v=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},k=v=>{const K=v.currentTarget;v.relatedTarget;const q=E(K);if(!q)return;const _=q.dataset&&q.dataset.roleType;N.roleType===_&&(v.preventDefault(),N.currentRow&&N.currentRow!==q&&N.currentRow.classList.remove("is-dragover"),q.classList.add("is-dragover"),N.currentRow=q)},O=v=>{v.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},F=v=>{const K=v.currentTarget,q=E(K);if(!q)return;const _=q.dataset&&q.dataset.roleType;if(N.roleType!==_)return;v.preventDefault();const M=Number(N.index),X=Number(q.dataset.index);if(M!==X){if(M<X){const H=r.value[M];r.value.splice(M,1),r.value.splice(X,0,H)}else{const H=r.value[M];r.value.splice(M,1),r.value.splice(X+1,0,H)}y(r.value,t),m()}},U=v=>{const K=r.value[v];K.fixed="left",m()},Y=v=>{const K=r.value[v];K.fixed="right",m()},Q=v=>{const K=r.value[v];K.fixed=void 0,m()},G=new Map;let te=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:b,isIndeterminate:P,handleCheckAllChange:z,handleReset:L,checkedValue:B,handleCheckChange:V,onShow:A,onDragStart:T,onDragEnd:j,onDragOver:k,onDragLeave:O,onDrop:F,toLeftFixed:U,toRightFixed:Y,toUnFixed:Q,checkboxLabelStyle:S,onMouseOverForOverflowText:(v,K,q)=>{const _=v.currentTarget;if(_){const M=Math.floor(_.offsetWidth);if(Math.floor(re(_))>M){let H=G.get(K);if(H){if(H===te)return;Fe.hide(H)}H=Fe.show(_,q,{type:"text",placement:"top",closeOnClick:!1}),G.set(K,H),te=H}}},onMouseLeaveForOverflowText:(v,K)=>{const q=G.get(K);q&&(Fe.hide(q),q===te&&(te=null))},onMouseOverForTip:(v,K)=>{const q=v.currentTarget;q&&(te&&Fe.hide(te),te=Fe.show(q,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{te&&(Fe.hide(te),te=null)}}}}),wu={class:"fox-table-setting"},xu={class:"fox-table-setting__header"},Su={class:"fox-table-setting__body"},Tu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Cu={key:0,class:"fox-table-setting__body-title"},$u=["data-index","draggable"],Nu=["onMouseover","onMouseleave"],ku={class:"tools-item"},Eu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Pu={key:0,class:"fox-table-setting__body-title"},Iu=["data-index","draggable"],Ou=["onMouseover","onMouseleave"],Vu={class:"tools-item"},Du={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Fu={key:0,class:"fox-table-setting__body-title"},Ru=["data-index","draggable"],Au=["onMouseover","onMouseleave"],Mu={class:"tools-item"};function Lu(e,n,o,t,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"),y=l.resolveComponent("fox-checkbox"),C=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",xu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[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",Su,[l.createVNode(C,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Cu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[6]||(n[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[7]||(n[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[8]||(n[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[9]||(n[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,Nu)]),_:2},1032,["label"]),l.createElementVNode("div",ku,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:n[1]||(n[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:n[2]||(n[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:n[3]||(n[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:n[4]||(n[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,$u))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Eu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Pu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[15]||(n[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[16]||(n[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[17]||(n[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[18]||(n[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",Vu,[l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:n[10]||(n[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:n[11]||(n[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:n[12]||(n[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:n[13]||(n[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Iu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Du,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Fu,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:n[23]||(n[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[24]||(n[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[25]||(n[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[26]||(n[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[27]||(n[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Au)]),_:2},1032,["label"]),l.createElementVNode("div",Mu,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:n[19]||(n[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:n[20]||(n[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:n[21]||(n[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ru))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const xn=je(bu,[["render",Lu]]);let Bu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,s){if(Array.isArray(o)){let c=(t-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,[t,r,a,i,s]);const u=We(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(ot(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,t,r,a,i,s]))}};function _u(){const e=l.getCurrentInstance();return new Bu(e.proxy)}class qu{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=We(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=We(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=We(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function Kr(){const e=l.getCurrentInstance();return new qu(e.proxy)}const ju=Symbol.for("TableStateKey"),wo={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"}},xo={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}},Vn={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:()=>"不固定"}},zu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Hu(e,n){let o=n.split("."),t=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);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function Dn(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=Hu(t,r);if(a!==i)return!1}return!0})}function Ku(e,n,o){return{inheritAttrs:!1,props:{...Se,...Oe,...wo,...xo,...Vn,...zu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a}=qe.useFoxI18n(n),{emitEvent:i,broadcast:s}=$e({componentName:e,validateHandler:{getValue(...Z){return V.value}}},t.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__${t.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${t.paginationAlign}`]:!0})),C=l.shallowRef({}),g=l.computed(()=>({...C.value,...t.params??{},...t.baseParams??{}})),h=l.ref(t.infiniteLoad===!0?0:t.pageIndex),m=l.ref(t.pageSize),S=se(t.infiniteLoad);S||(l.watch(()=>t.pageIndex,Z=>{h.value=Z}),l.watch(()=>t.pageSize,Z=>{m.value=Z}),l.watch([h,m],([Z,oe],[ne,ae])=>{oe!==ae&&(h.value=1,Z=1),T(t.data,Z,oe,g.value)}));const b=()=>Array.isArray(t.data)?!0:se(t.autoLoad);b()&&l.watch([()=>t.data,g],async([Z,oe],[ne,ae])=>{b()&&(Z!==ne&&(N=!0),!(!Array.isArray(Z)&&lt(Z,ne)&&lt(oe,ae))&&(S?(h.value=0,L.value=!0,V.value=[],k()):h.value===1?T(Z,h.value,m.value,oe):h.value=1))},{deep:!0});const P=Z=>{h.value=Z,i("page-index-change",Z)},z=Z=>{m.value=Z,i("page-size-change",Z)},L=l.ref(!0),B=l.ref(0),V=l.ref(),A=_u();let N=!0;const E=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,Z=>se(Z)),T=async(Z,oe,ne,ae,Ve)=>{N=!1;try{if(Ve===!0){if(!L.value)return!1;const pe=await A.load("table",Z,oe,ne,ae,N,a.value);return B.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,V.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(V.value?.length??0)>=B.value)||pe.page.length<ne?(L.value=!1,!1):!0}else{const pe=await A.load("table",Z,oe,ne,ae,N,a.value);return B.value=pe.totalSize,V.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),B.value=0,V.value=[]}return!1};let j=!1;const k=async()=>{if(!j){if(j=!0,!L.value){j=!1;return}h.value+=1,await T(t.data,h.value,m.value,g.value,!0),j=!1}},O=(Z={},oe=!1)=>new Promise(async ne=>{C.value={...l.toRaw(Z??{})},oe||(h.value=t.pageIndex??1),S===!0?(h.value=0,V.value=[],L.value=!0,await k()):await T(t.data,h.value,m.value,g.value),ne()}),F=()=>{B.value=0,V.value=[],S===!0&&(h.value=0,L.value=!0)};let U=!1;const Y=()=>{U||(U=!0,O())},Q=l.ref(null);if(S===!0){let Z=null;const oe=()=>{Q.value&&(Z=new IntersectionObserver(ae=>{let Ve=!1;for(let pe of ae)if(pe.intersectionRatio>0){Ve=!0;break}Ve&&k()}),Z.observe(Q.value))},ne=()=>{!Z||!Q.value||(Z.unobserve(Q.value),Z=null)};l.onMounted(oe),l.onBeforeUnmount(ne)}b()&&!E.value&&O();const G=l.ref(null);l.provide(ju,{currentRow:G});const te=(Z,oe)=>{G.value=Z,i("current-change",Z,oe)},re=(Z,oe,ne)=>{i("row-click",Z,oe,ne),se(t.rowClickSelectable)===!0&&ge?.value.toggleRowSelection(Z)},I=[],x=(Z,oe)=>{if(i("expand-change",Z,oe),se(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ne=I.length;I.splice(0,ne)}else{I.forEach(ae=>{ae!==Z&&ge?.value.toggleRowExpansion(ae,!1)});const ne=I.length;I.splice(0,ne,Z)}},R=r.attrs.id??t.prop??r.attrs.name,D=Kr(),v=l.ref([]);let K=[];const q=()=>({srcColumnPropertyList:K.map(oe=>({...oe})),columnPropertyList:v.value}),_=Z=>{v.value=[...Z],X()},M=async()=>{const Z=await D.load(R);Z&&(v.value=Z)},X=()=>{D.save(R,v.value)},H=()=>{D.remove(R)};M();const J=Z=>Z?Z.type?Z.type:Z.label?Z.prop:"":"",le=()=>typeof r.slots.default=="function"?r.slots.default():[],$=(Z,oe)=>{for(let ne in oe){const ae=oe[ne];typeof ae!="function"&&(Z[ne]=ae)}},p=l.computed(()=>{const Z=le(),oe=new Map;if(K=[],Z.forEach(ne=>{const ae=ne;if(!ae.props)return;const Ve=J(ae.props);oe.set(Ve,ne);const pe={label:"",prop:""};$(pe,ae.props),K.push(pe)}),v.value.length===K.length){const ne=[];for(let ae of v.value){const Ve=J(ae),pe=oe.get(Ve);if(!pe)return Z;if(ae.visible===!1)continue;const tt=pe;tt.props.fixed=ae.fixed,ne.push(tt)}return ne}return Z}),W=l.shallowRef(new Map),ee=({row:Z,column:oe,rowIndex:ne,columnIndex:ae})=>{const Ve=`${ne}_${oe.property}`,pe=`${ne}_${ae}`;let tt=W.value.get(Ve);return tt||(tt=W.value.get(pe)),typeof tt=="string"?tt:""},ue=Z=>Z?oe=>{const ne=[];let ae=ee(oe);return ae&&ne.push(ae),ae=typeof Z=="function"?Z(oe):Z,ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:ee,ie=(Z=!1)=>{W.value.forEach((oe,ne)=>{fe(ne,oe,Z)})},fe=(Z,oe,ne=!1)=>{const ae=`${Z}_item`;ne?(s.clearPersistantMessage(),Array.isArray(oe)?s.emitToChildren({name:Z},"setCellClassNames",[]):s.emitToChildren({name:ae},"setCustomClassName","")):Array.isArray(oe)?s.emitToChildren({name:Z,cachePolicy:"Persistant",uniqueId:ae},"setCellClassNames",oe):s.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:ae},"setCustomClassName",oe)},be=(Z,oe,ne)=>{const ae=`${Z}_${oe}`;ne?(W.value.set(ae,ne),fe(ae,ne)):(W.value.delete(ae),fe(ae,"",!0)),l.triggerRef(W)},Ye=Z=>{ie(!0),W.value.clear(),Z.forEach(oe=>{const ne=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?W.value.set(ne,oe.children):typeof oe.cellClassName=="string"&&W.value.set(ne,oe.cellClassName)}),ie(),l.triggerRef(W)},Ue=()=>{ie(),W.value.clear(),l.triggerRef(W)},Ge=l.shallowRef(new Map),Ce=({rowIndex:Z})=>{const oe=`${Z}`;return Ge.value.get(oe)??""},et=Z=>Z?oe=>{const ne=[];let ae=Ce(oe);return ae&&ne.push(ae),ae=typeof Z=="function"?Z(oe):Z,ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:Ce,ze=(Z,oe)=>{const ne=`${Z}`;oe?Ge.value.set(ne,oe):Ge.value.delete(ne),l.triggerRef(Ge)},Nt=()=>{Ge.value.clear(),l.triggerRef(Ge)},ge=l.ref();return Ne({clearSelection:()=>ge?.value.clearSelection(),getSelectionRows:()=>ge?.value.getSelectionRows(),toggleRowSelection:(Z,oe)=>{ge?.value.toggleRowSelection(Z,oe)},toggleRowSelectionByProp:(Z,oe)=>{if(!V.value)return;const ne=Dn(V.value,Z);ne.length!==0&&ne.forEach(ae=>{ge?.value.toggleRowSelection(ae,oe)})},toggleAllSelection:()=>{ge?.value.toggleAllSelection()},toggleRowExpansion:(Z,oe)=>{ge?.value.toggleRowExpansion(Z,oe)},toggleRowExpansionByProp:(Z,oe)=>{if(!V.value)return;const ne=Dn(V.value,Z);ne.length!==0&&ne.forEach(ae=>{ge?.value.toggleRowExpansion(ae,oe)})},setCurrentRow:Z=>{ge?.value.setCurrentRow(Z)},setCurrentRowByProp:Z=>{if(!V.value)return;const oe=Dn(V.value,Z);oe.length!==0&&ge?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ge?.value.clearSort()},clearFilter:Z=>{ge?.value.clearFilter(Z)},doLayout:()=>{ge?.value.doLayout()},sort:(Z,oe)=>{ge?.value.sort(Z,oe)},scrollTo:(Z,oe)=>{ge?.value.scrollTo(Z,oe)},setScrollTop:Z=>{ge?.value.setScrollTop(Z)},setScrollLeft:Z=>{ge?.value.setScrollLeft(Z)},loadData:O,clearData:F,getData(){return V.value},getTotalSize(){return B.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:q,setColumnSetting:_,removeColumnSetting:H,setCellClassName:be,setCellClassNames:Ye,clearCellClassName:Ue,setRowClassName:ze,clearRowClassName:Nt}),()=>{const oe={...Je(r.attrs),onCurrentChange:te,onRowClick:re,onExpandChange:x,data:V.value,ref:ge,class:c.value,"cell-class-name":ue(t.cellClassName),"row-class-name":et(t.rowClassName)},ne={};if(r.slots.default&&(ne.default=()=>p.value),r.slots.append&&(ne.append=r.slots.append),r.slots.empty&&(ne.empty=r.slots.empty),S===!0){const He=[];if(L.value){const Et=l.h(Pe.Loading,{class:`${u}__infinite-icon`});He.push(Et);const $n=l.h("span",{class:`${u}__infinite-text`},[t.loadText]);He.push($n)}else{const Et=l.h("span",{class:`${u}__infinite-text`},[t.loadMoreText]);He.push(Et)}const ft={ref:Q,class:`${u}__infinite`},Cn=l.h("div",ft,He);ne.append=()=>Cn}const ae=l.h(w.ElTable,oe,ne),Ve=[];if(Ve.push(ae),!S){let He=null;if(typeof r.slots.pagination=="function")He=r.slots.pagination();else if(t.showPagination){const ft={class:y.value,total:B.value,pageSize:m.value,"onUpdate:pageSize":z,pageSizes:t.pageSizes,currentPage:h.value,"onUpdate:currentPage":P,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,samll:t.paginationSmall,background:t.paginationBackground};He=l.h(w.ElPagination,ft)}if(t.showSetting){const ft=[];He&&ft.push(He);const Cn=l.h(w.ElIcon,{class:f.value},{default:()=>l.h(Pe.Setting)}),Et=ur(t,Vn),$n=l.h(xn,{...Et,tableRef:{getColumnSetting:q,setColumnSetting:_,removeColumnSetting:H}},{default:()=>Cn});ft.push($n);const na=l.h("div",{class:d.value},ft);Ve.push(na)}else He&&Ve.push(He)}const pe={default:()=>Ve},kt={...Ie(t,wo,xo,Vn),prop:`${t.prop}_item`};return kt.contentClass=`${u}__wrap`,kt.errorMarkClass="is-table-error",E.value&&b()&&(kt["appear-listen"]=!0,kt.onAppear=Y),l.h(o,kt,pe)}}}}const{componentName:Wu,create:Yu,scope:Uu}=ce("table-item"),Sl=Yu(Ku(Wu,Uu,Te));function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Zu(){const e=l.getCurrentInstance();return new Xu(e.proxy)}function Wr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Ct(e,n),r=Ct(e,o);if(t!==r)return!1;const a=qt(e,n),i=qt(e,o);return a===i}function Qu(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of t){let i=!1;if(o==="text")i=Ct(e,a)===n;else if(o==="item")i=Wr(e,a,n);else{let s=qt(e,a);s==null&&(s=Ct(e,a)),i=s===n}if(i){r=a;break}}return r}function Ju(e){return{text:e,value:e}}function ec(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const So={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 tc(e,n,o){return{inheritAttrs:!0,props:{...Se,...Oe,...So},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(V,A,N,E=!0)=>{const T=Qu(t,V,A,N);if(T===null){if(c.value===null)return;c.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!Wr(t,T,c.value)){u.value=V;const k=l.toRaw(T);c.value=k;let O=null;t.valueType==="text"?O=Ct(t,k):t.valueType==="item"?O=k:O=qt(t,k),E&&(s("update:modelValue",O),s("change",O))}},d=l.ref([]),y=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,V=>se(V)),C=Zu(),g=async(V,A)=>{if(V){const N=await C.load("radio",V,A);if(N.length>0)if(typeof N[0]=="string"){let j=N.map(k=>Ju(k));d.value=j}else d.value=N}};l.watch([()=>t.source,()=>t.params],async([V,A])=>{g(V,A)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([V,A])=>{f(A,t.valueType,V,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${t.direction}`]:!0})),P=V=>{f(V,"value",d.value,!0)};let z=me(t,"hintText"),L=me(t,"hintVisible");const B=(V,A)=>{const N=[];return V.forEach((E,T)=>{const j=qt(t,E),k=Ct(t,E);let O=Gu(t,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const F=ec(t,E,T)??{},U=`${j}_${T}`,Y={...F,key:U,label:j,size:t.size,border:se(t.border)};O&&(Y.disabled=O),t.itemType==="button"?N.push(l.h(w.ElRadioButton,Y,{default:()=>[k]})):typeof A=="function"?N.push(l.h(w.ElRadio,Y,{default:()=>A(E)})):N.push(l.h(w.ElRadio,Y,{default:()=>[k]}))}),N};return()=>{const A={...Je(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,onChange:P},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>B(d.value,r.slots.text);const T=l.h(w.ElRadioGroup,A,E);N.push(T);const j={default:()=>N};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const O={...Ie(t,So),hintText:z.value,hintVisible:L.value,prop:`${t.prop??r.attrs.name}_item`};return y.value&&(O["appear-listen"]=!0,O.onAppear=m),l.h(o,O,j)}}}}const{componentName:nc,create:lc,scope:oc}=ce("radio-item"),Tl=lc(tc(nc,oc,Te));function $t(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function St(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function rc(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ac=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ic(){const e=l.getCurrentInstance();return new ac(e.proxy)}function Yr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=$t(e,n),r=$t(e,o);if(t!==r)return!1;const a=St(e,n),i=St(e,o);return a===i}function sc(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){let s=!1;if(o==="text")s=$t(e,i)===a;else if(o==="item")s=Yr(e,i,a);else{let u=St(e,i);u==null&&(u=$t(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function uc(e){return{text:e,value:e}}function cc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const To={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 fc(e,n,o){return{inheritAttrs:!0,props:{...Se,...Oe,...To},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(V,A,N,E=!0)=>{const T=sc(t,V,A,N);if(T===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(T.length!==c.value.length)j=!1;else for(let k=0;k<T.length;k++){const O=T[k],F=c.value[k];if(!Yr(t,O,F)){j=!1;break}}if(!j){c.value=T;let k=[],O=[];T.forEach(U=>{k.push(St(t,U)),t.valueType==="text"?O.push($t(t,U)):t.valueType==="item"?O.push(U):O.push(St(t,U))}),u.value=k;const F=l.toRaw(O);E&&(s("update:modelValue",F),s("change",F))}},d=l.ref([]),y=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,V=>se(V)),C=ic(),g=async(V,A)=>{if(V){const N=await C.load("checkbox",V,A);if(N.length>0)if(typeof N[0]=="string"){let j=N.map(k=>uc(k));d.value=j}else d.value=N}};l.watch([()=>t.source,()=>t.params],async([V,A])=>{g(V,A)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([V,A])=>{f(A,t.valueType,V,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${t.direction}`]:!0})),P=V=>{f(V,"value",d.value,!0)};let z=me(t,"hintText"),L=me(t,"hintVisible");const B=(V,A)=>{const N=[];return V.forEach((E,T)=>{const j=St(t,E),k=$t(t,E);let O=rc(t,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const F=cc(t,E,T)??{},U=`${j}_${T}`,Y={...F,key:U,class:t.itemClass,label:j,size:t.size,border:se(t.border)};O&&(Y.disabled=O),t.itemType==="button"?N.push(l.h(w.ElCheckboxButton,Y,{default:()=>[k]})):typeof A=="function"?N.push(l.h(w.ElCheckbox,Y,{default:()=>A(E)})):N.push(l.h(w.ElCheckbox,Y,{default:()=>[k]}))}),N};return()=>{const A={...Je(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,max:xe(t.max),min:xe(t.min),onChange:P},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>B(d.value,r.slots.text);const T=l.h(w.ElCheckboxGroup,A,E);N.push(T);const j={default:()=>N};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const O={...Ie(t,To),hintText:z.value,hintVisible:L.value,prop:`${t.prop??r.attrs.name}_item`};return y.value&&(O["appear-listen"]=!0,O.onAppear=m),l.h(o,O,j)}}}}const{componentName:dc,create:hc,scope:mc}=ce("checkbox-item"),Cl=hc(fc(dc,mc,Te)),Co={modelValue:{type:[Number,String],required:!1}};function gc(e,n,o){return{props:{...Se,...Oe,...Co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",h=>xe(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=me(t,"hintText"),C=l.ref(!1);const g=l.ref();return Ne({}),()=>{const m={...Je(r.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],P=l.h(w.ElRate,m,S);b.push(P);const z={default:()=>b};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const B={...Ie(t,Co),hintText:y.value,hintVisible:C.value,prop:`${t.prop}_item`};return l.h(o,B,z)}}}}const{componentName:pc,create:vc,scope:yc}=ce("rate-item"),$l=vc(gc(pc,yc,Te)),$o={modelValue:{type:[Boolean,String,Number],required:!1}};function bc(e,n,o){return{props:{...Se,...Oe,...$o},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=me(t,"hintText"),C=me(t,"hintVisible");const g=l.ref();return Ne({}),()=>{const m={...Je(r.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],P=l.h(w.ElSwitch,m,S);b.push(P);const z={default:()=>b};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const B={...Ie(t,$o),hintText:y.value,hintVisible:C.value,prop:`${t.prop}_item`};return l.h(o,B,z)}}}}const{componentName:wc,create:xc,scope:Sc}=ce("switch-item"),Nl=xc(bc(wc,Sc,Te)),No={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Tc(e,n,o){return{props:{...Se,...Oe,...No},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),s=l.ref(!1),{emitEvent:u}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),c=me(t,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let C=me(t,"hintText"),g=l.ref(!1);const h=L=>{let V=L.target.value;s.value=!0,ve(C.value)||(g.value=!0),u("focus",V,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let V=L.target.value;t.maxLength&&V.length>Number(t.maxLength)&&(V=V.slice(0,Number(t.maxLength))),b.value||u("blur",V,L)},S=()=>{u("clear","")},b=l.ref(!1),P=L=>{b.value=L,u("visible-change",L),L||u("selected")},z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const B={...Je(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:P},V={};r.slots.option&&(V.default=r.slots.option);const A=[],N=l.h(w.ElTreeSelect,B,V);A.push(N);const E={default:()=>A};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const j={...Ie(t,No),hintText:C.value,hintVisible:g.value,prop:`${t.prop}_item`};return l.h(o,j,E)}}}}const{componentName:Cc,create:$c,scope:Nc}=ce("tree-select-item"),kl=$c(Tc(Cc,Nc,Te)),kc={},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 Pc(e,n){return l.openBlock(),l.createElementBlock("svg",Ec,n[0]||(n[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 Ic=je(kc,[["render",Pc]]),{componentName:Hh,create:Oc,scope:Kh}=ce("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:"到底部"}},Dc=Oc({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:Ic,Download:Pe.Download,RefreshLeft:Pe.RefreshLeft},props:{...Vc},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=Kr(),s=I=>I.length>1,u=()=>{const I=[],x=[...a.value];a.value=x.map((D,v)=>(D.visible!==!1&&I.push(D.prop),{...D,sortIndex:v})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),P.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 D=I.$el??I;typeof D.querySelectorAll=="function"&&(x=D.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const R=[];return x.forEach(D=>{const v=D.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const q=D.getAttribute("prop")??"",M=window.getComputedStyle(D,null).getPropertyValue("display");R.push({label:K,prop:q,sortIndex:0,visible:M!=="none"})}),R},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),R=D=>{if(!D||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(q=>{if(q.prop===K.prop){const _=q.label;return Object.assign(q,K),q.label=_,!0}return!1})}),a.value=v.sort((K,q)=>K.sortIndex-q.sortIndex),u(),I&&C(!1)};r?R(!0):cn(f,e.initDelay,5,50,!1,R)},y=()=>{const I=r??[];a.value=I.map(x=>({...x})),u(),C()},C=(I=!0)=>{I&&i.save(e.groupProp,a.value);const x=a.value.map(R=>({...R}));n("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(D=>{I&&x.push(D.prop),D.visible=I}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),P.value=x,C()},b=()=>{y()},P=l.ref([]),z=I=>{a.value.forEach(R=>{const D=I.indexOf(R.prop)!==-1;R.visible=D}),h.value=!1,m.value=!1;const x=a.value.length;I.length===x?h.value=!0:I.length>0&&(m.value=!0),C()},L=()=>{d()};l.onMounted(()=>{d(!0)});const B={currentRow:null,index:null},V=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,V(I)):null:null,A=I=>{const x=I.currentTarget;x&&x.dataset&&(B.index=x.dataset.index)},N=I=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},E=I=>{const x=I.currentTarget;I.relatedTarget;const R=V(x);R&&(I.preventDefault(),B.currentRow&&B.currentRow!==R&&B.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),B.currentRow=R)},T=I=>{I.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},j=I=>{const x=I.currentTarget,R=V(x);if(!R)return;I.preventDefault();const D=Number(B.index),v=Number(R.dataset.index);if(D!==v){if(D<v){const K=a.value[D];a.value.splice(D,1),a.value.splice(v,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(v+1,0,K)}u(),C()}},k=I=>{const x=a.value[I];a.value.splice(I,1),a.value.splice(0,0,x),u(),C()},O=I=>{const x=a.value[I];a.value.splice(I,1),a.value.push(x),u(),C()};t({refresh:()=>{r=null,d(!1)}});const F=new Map;let U=null;function Y(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:P,handleCheckChange:z,onShow:L,onDragStart:A,onDragEnd:N,onDragOver:E,onDragLeave:T,onDrop:j,checkboxLabelStyle:g,toTop:k,toBottom:O,onMouseOverForOverflowText:(I,x,R)=>{const D=I.currentTarget;if(D){const v=Math.floor(D.offsetWidth);if(Math.floor(Y(D))>v){let q=F.get(x);if(q){if(q===U)return;Fe.hide(q)}q=Fe.show(D,R,{type:"text",placement:"top",closeOnClick:!1}),F.set(x,q),U=q}}},onMouseLeaveForOverflowText:(I,x)=>{const R=F.get(x);R&&(Fe.hide(R),R===U&&(U=null))},onMouseOverForTip:(I,x)=>{const R=I.currentTarget;R&&(U&&Fe.hide(U),U=Fe.show(R,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{U&&(Fe.hide(U),U=null)}}}}),Fc={class:"fox-group-setting"},Rc={class:"fox-group-setting__header"},Ac={class:"fox-group-setting__body"},Mc={class:"fox-group-setting__body-list","data-role":"container"},Lc=["data-index","draggable"],Bc=["onMouseover","onMouseleave"],_c={class:"tools-item"};function qc(e,n,o,t,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"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Fc,[l.createElementVNode("div",Rc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=C=>e.isCheckAll=C),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",Ac,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=C=>e.checkedValue=C),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Mc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,C=>(l.openBlock(),l.createElementBlock("div",{key:C.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":C.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[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:C.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,C.prop,C.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,C.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(C.label),45,Bc)]),_:2},1032,["label"]),l.createElementVNode("div",_c,[l.createVNode(f,{onClick:g=>e.toTop(C.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(C.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Lc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const El=je(Dc,[["render",qc]]);var jc=["aria-labelledby"],zc=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:n}){let o=e,t=n,r=u=>{t("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,jc))}}),Hc=["aria-labelledby"],Pl=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:n}){let o=e,t=n,r=u=>{t("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,Hc))}}),Kc=["aria-labelledby"],Wc=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:n}){let o=e,t=n,r=u=>{t("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,Kc))}}),Yc=["aria-labelledby"],Uc=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:n}){let o=e,t=n,r=u=>{t("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,Yc))}}),Gc=["aria-labelledby"],Xc=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:n}){let o=e,t=n,r=u=>{t("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,Gc))}});const Zc={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}},ko=(e,n)=>n[e.textKey],Ot=(e,n)=>n[e.valueKey],Qc=(e,n)=>n[e.visibleKey],Eo=(e,n)=>n[e.disabledKey],Jc=(e,n)=>{const o=n[e.doitKey];return se(o)},ef=(e,n)=>{const o=n[e.numKey];return o==null?null:xe(n[o])},Po=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function tf(e,n,o,t=!1){return{props:{...Zc},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=he(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,Y(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),C=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(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),P=l.ref([]),z=(I,x)=>{P.value[x]=I},L=I=>x=>{z(x,I)},B=(I,x)=>{const R=b.value,D=P.value;if(!R||!D||!D[I])return;const v=D[I];let K=0;r.direction==="vertical"?K=v.offsetTop-(R.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(R.offsetWidth-v.offsetWidth)/2,V(R,K,x?0:.3,r.direction)},V=(I,x,R,D)=>{let v=0;const K=D==="horizontal"?I.scrollLeft:I.scrollTop,q=R===0?1:Math.round(R*1e3/16);function _(){D==="horizontal"?I.scrollLeft+=(x-K)/q:I.scrollTop+=(x-K)/q,++v<q&&Jn(_)}_()},A=(I,x)=>{const R=Ot(r,I),D={};return D[`${e}__titles-item`]=!0,D.disabled=Eo(r,I),D.active=R===d.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),x&&(x.class&&(D[`${x.class}`]=!0),x.disabled===!0&&(D.disabled=x.disabled)),D},N=(I,x)=>{const R={};if(f.value>0){const D=Math.abs(f.value/2);r.direction==="vertical"?(R["margin-top"]=`${D}px`,R["margin-bottom"]=`${D}px`):(R["margin-left"]=`${D}px`,R["margin-right"]=`${D}px`)}return x&&x.style&&Object.assign(R,x.style),R},E=(I,x)=>`${Ot(r,I)??x}`,T=(I,x)=>{const R=Ot(r,I),D={};D[`${e}__popup-item`]=!0,D.disabled=Eo(r,I),D.active=R===d.value,r.shape&&(D[`${r.shape}`]=!0);const v=Po(r,I,x);return v&&v.disabled===!0&&(D.disabled=v.disabled),D},j=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),k=(I,x)=>{const R=Ot(r,I);if(d.value==R)return;const D=()=>{d.value=R,r.scroll&&B(x,!1),i("update:modelValue",R),i("change",I,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(I,x);er(v)?v.then(K=>{K!==!1&&D()}).catch(()=>{D()}):v!==!1&&D()}else D()},O=(I,x)=>function(){k(I,x)},F=(I,x)=>{k(I,x),S(!1)},U=(I,x)=>function(){F(I,x)},Y=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(R=>Ot(r,R)===d.value);x!==-1&&B(x,I)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const Q=(I,x)=>{if(a.item)return a.item({item:I,index:x});const R=Po(r,I,x),D=[];if(a.text){const _=a.text({item:I,index:x});D.push(_)}else{const _=[];if(R?.doit===!0||Jc(r,I)){const J={class:[`${e}__titles-item-tip`,"doit"]},le=l.h("view",J);_.push(le)}const M=R?.num??ef(r,I);if(M){let J="";const le=xe(M);le>=100?J="99+":J=`${le}`;const $={class:[`${e}__titles-item-tip`,"num"]},p=l.h("view",$,[J]);_.push(p)}const X={class:`${e}__titles-item-text`};_.push(ko(r,I));const H=l.h("view",X,_);D.push(H)}const v={class:`${e}__titles-item-line`},K=l.h("view",v);D.push(K);const q={ref:L(x),class:A(I,R),style:N(I,R),key:E(I,x),onClick:O(I,x)};return l.h("view",q,D)},G=()=>{const I=a.default?a.default():[];if(I.length===0)for(let R=0;R<j.value.length;R++){const D=j.value[R],v=Q(D,R);I.push(v)}const x={ref:b,class:u.value,style:c.value};return l.h("view",x,I)},te=()=>{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 R=0;R<j.value.length;R++){const D=j.value[R];let v=null;a.popupItem?v=a.popupItem({item:D,index:R}):v=ko(r,D);const K={class:T(D,R),key:E(D,R),onClick:U(D,R)},q=l.h("view",K,[v]);I.push(q)}const x={class:y.value,style:C.value};return l.h("view",x,I)};return()=>{const I=[],x=G();if(I.push(x),r.showQuickNavigation){const D=te();I.push(D);const v=re();I.push(v)}const R={class:s.value};return l.h("view",R,I)}}}}const{create:nf,componentName:lf,scope:of}=ce("tabs-bar"),Il=nf(tf(lf,of,zc,!1)),Ur=Symbol("TabsStatesKey"),rf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function af(e,n,o=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(t.modelValue??""),direction:l.ref(t.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(!t.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(Ur,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([()=>t.modelValue,()=>t.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,[`${t.direction}`]:!0}));let y=!0;const C=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const m=hn(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:C.value,ref:f},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:c};return l.h("view",S,[m])}}}}const{create:sf,componentName:uf,scope:cf}=ce("tabs-container"),Ol=sf(af(uf,cf,!1)),ff={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function df(e,n,o){return{props:{...ff},setup(t,{emit:r,slots:a}){const i=l.inject(Ur);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.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(()=>t.loaded!=null?se(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},y=t.emptyIcon??o,C=l.h(y,d),g={class:`${e}__empty-text`},h=t.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[C,m]);c.push(b)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:hf,componentName:mf,scope:gf}=ce("tabs-pane"),Vl=hf(df(mf,gf,Pl)),pf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function vf(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Io(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Oo(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function yf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Fn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Vo(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Do(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Rn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class bf{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[t]);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function wf(){const e=l.getCurrentInstance();return new bf(e.proxy)}function xf(e,n,o,t){return{props:{...pf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=wf(),c=l.ref([]),f=l.computed(()=>c.value.filter(x=>yf(r,x)!==!1)),d=l.ref(-1),y=()=>{const x=r.modelValue,R=f.value.findIndex(D=>Io(r,D)===x);d.value!==R&&(d.value=R,r.scroll&&re(R,!1))};l.watch([()=>r.modelValue,f],()=>{y()});const C=x=>d.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const R=f.value[x],v=(Rn(r,R,x)??{}).status??Fn(r,R);return C(x)||v},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),S=(x,R,D,v,K)=>{const q={[`${s}__step`]:!0};return K&&(q[`${K}`]=!0),q[`${b.value}`]=!0,v&&(q["is-doit"]=!0),x===d.value?q["is-active"]=!0:R==="done"?q["is-done"]=!0:R==="error"?q["is-error"]=!0:R==="half"?q["is-half"]=!0:D?q["is-disabled"]=!0:q["is-normal"]=!0,q},b=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),P=(x,R={})=>{const D={...R};return b.value==="start"&&x===f.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},z=(x,R)=>{let D={};if(R<f.value.length-1){const v=R+1;g(R)&&g(v)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},L=x=>f.value.length-1===x,B=(x,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>d.value||d.value===R)return;const D=d.value,v=R;d.value=R,r.scroll&&re(R,!1);const K=Io(r,x);i("update:modelValue",K);const q={fromIndex:D,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,q)},V=l.ref(!0),A=async(x,R)=>{try{const D=await u.load("stesbar",x,R);Array.isArray(D)&&(c.value=D),V.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,R])=>{x&&A(x,R)},{immediate:!0});const N=(x,R,D,v,K)=>{let q=null;if(a.icon)q=a.icon({item:x,index:R,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const X=r.icon??o;q=l.h(X,M)}else{const M=D??`${R+1}`;q=l.h("span",{},[M])}const _={class:"fox-steps-bar__icon",onClick:()=>{K||B(x,R)}};return l.h("view",_,[q])},E=(x,R,D)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:z(x,R)});return l.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const v=r.markIcon??t;x=l.h(v,D)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},j=(x,R,D,v,K)=>{const q=[];if(!L(R)){const X=E(x,R);q.push(X)}const _=N(x,R,D,v,K);q.push(_);const M={class:"fox-steps-bar__head"};return l.h("view",M,q)},k=(x,R,D,v)=>{let K=null;a.main?K=a.main({item:x,index:R,status:D}):K=vf(r,x);const q={class:"fox-steps-bar__main",onClick:()=>{v||B(x,R)}};return l.h("view",q,[K])},O=(x,R,D)=>{let v=null;if(a.sub){v=a.sub({item:x,index:R,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[v])}return null},F=(x,R)=>{const D=Rn(r,x,R)??{},v=D.status??Fn(r,x);let K=Oo(r,x);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const q=D.label??Do(r,x),_=[],M=N(x,R,q,v,K);M&&_.push(M);const X=k(x,R,v,K);if(X&&_.push(X),!L(R)){const W=E(x,R);W&&_.push(W)}const H=l.h("view",{class:"fox-steps-bar__head"},_),J=D.class,le=D.style??{};let $=Vo(r,x);D.doit===!0&&($=!0);const p={ref:te(R),class:S(R,v,K,$,J),style:P(R,le)};return l.h("view",p,[H])},U=(x,R)=>{const D=Rn(r,x,R)??{},v=D.status??Fn(r,x);let K=Oo(r,x);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const q=D.label??Do(r,x),_=[],M=r.layout;for(let $ of M)if($==="head"){const p=j(x,R,q,v,K);_.push(p)}else if($==="main"){const p=k(x,R,v,K);_.push(p)}else if($==="sub"){const p=O(x,R,v);_.push(p)}else if($==="mark"){const p=T();_.push(p)}const X=D.class,H=D.style??{};let J=Vo(r,x);D.doit===!0&&(J=!0);const le={ref:te(R),class:S(R,v,K,J,X),style:P(R,H)};return l.h("view",le,_)},Y=l.ref(),Q=l.ref([]),G=(x,R)=>{Q.value[R]=x},te=x=>R=>{G(R,x)},re=(x,R)=>{const D=Y.value,v=Q.value;if(!D||!v||!v[x])return;const K=v[x];let q=0;r.direction==="vertical"?q=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:q=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,I(D,q,R?0:.3,r.direction)},I=(x,R,D,v)=>{let K=0;const q=v==="horizontal"?x.scrollLeft:x.scrollTop,_=D===0?1:Math.round(D*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(R-q)/_:x.scrollTop+=(R-q)/_,++K<_&&Jn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let D=0;D<f.value.length;D++){const v=f.value[D],K=F(v,D);x.push(K)}else for(let D=0;D<f.value.length;D++){const v=f.value[D],K=U(v,D);x.push(K)}const R={ref:Y,class:h.value,style:m.value};return l.h("view",R,x)}}}}const{componentName:Sf,create:Tf,scope:Cf}=ce("steps-bar"),Dl=Tf(xf(Sf,Cf,Uc,Xc)),$f=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function kf(e,n){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,t){l.provide($f,!0);const r={};l.provide(Nf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const c={...t.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 t.slots.default=="function"){const d=t.slots.default();f.default=()=>d}return l.h(w.ElDialog,c,f)}}}}const{componentName:Wh,create:Ef,scope:Yh}=ce("dialog-item"),Fl=Ef(kf());let Vt=0;const Fo="fox-overflow-hidden",Ro=()=>Ze?document.body:{classList:[]},Pf=e=>[()=>{if(e())try{!Vt&&Ro().classList.add(Fo),Vt++}catch{}},()=>{if(e()&&Vt)try{Vt--,!Vt&&Ro().classList.remove(Fo)}catch{}}],If={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Of,create:Vf}=ce("overlay"),Df=Vf({props:{...If},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=Pf(()=>e.lockScroll),r=l.computed(()=>({[Of]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():t()}),{classes:r,style:a,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ff(e,n,o,t,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:n[0]||(n[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 Sn=je(Df,[["render",Ff]]),Rf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Gr=2e3;let Ao=Gr;const Af=(e,n)=>({components:n,props:{...Rf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:t}){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!==Gr&&(Ao=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++Ao,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{t("click-pop",h)},d=h=>{h.stopPropagation(),t("click-close-icon",h),t("update:visible",!1)},y=h=>{t("click-overlay",h),o.closeOnClickOverlay&&t("update:visible",!1)},C=h=>{t("opend",h)},g=h=>{t("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:y,onOpened:C,onClosed:g}}}),{componentName:Mf,create:Lf}=ce("popup"),Bf=Lf(Af(Mf,{FoxOverLay:Sn,Close:Wc}));function _f(e,n,o,t,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:n[1]||(n[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:n[0]||(n[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 Rl=je(Bf,[["render",_f]]),{create:qf}=ce("toast"),jf=qf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const t=l.reactive({mounted:!1});l.onMounted(()=>{t.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{t.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,C=>{C&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const C=he(e.iconSize);return l.h(e.icon,{width:C,height:C,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:t,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),zf={key:1,class:"fox-toast-title"},Hf=["innerHTML"];function Kf(e,n,o,t,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:n[0]||(n[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",zf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Hf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Al=je(jf,[["render",Kf]]),Wf={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"}},Yf=(e,n,o)=>({props:{...Wf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:r}){const{emitEvent:a}=br(),{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),f=l.computed(()=>({background:t.inputBackground})),d=N=>{let T=N.target.value;t.maxLength&&T.length>Number(t.maxLength)&&(T=T.slice(0,Number(t.maxLength))),a("update:modelValue",T,N),a("change",T,N)},y=l.ref({}),C=N=>{let T=N.target.value;u.active=!0,y.value=t.focusStyle,a("focus",T,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let T=N.target.value;t.maxLength&&T.length>Number(t.maxLength)&&(T=T.slice(0,Number(t.maxLength))),y.value={},a("blur",T,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(t.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",t.modelValue)},P=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},z=N=>{a("click-input",N)},L=N=>{a("click-left-icon",t.modelValue,N)},B=l.computed(()=>({textAlign:t.inputAlign})),V=l.ref(null);l.onMounted(()=>{t.autofocus&&V.value.focus()});const A=()=>{const N=[];if(r.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},F=l.h("view",O,[r.leftin()]);N.push(F)}const E={ref:V,class:[`${e}__input-inner`],style:B.value,type:t.inputType,maxlengt:t.maxLength,placeholder:s.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:z,onInput:d,onFocus:C,onBlur:g,onkeyup:P},T=l.h("input",E);N.push(T);const j=[];if(t.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},F=r?.clear?.()??t.clearIcon??o,U=l.h("view",O,[l.h(F)]);j.push(U)}if(r.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},F=l.h("view",O,[r.rightin()]);j.push(F)}if(j.length>0){const O={class:`${e}__input-inner-right`},F=l.h("view",O,j);N.push(F)}const k={class:[`${e}__search-input`,`${t.shape}`],style:{...f.value,...y.value}};return l.h("view",k,N)};return()=>{const N=[];if(t.label){const j={class:`${e}__search-label`},k=l.h("span",j,[t.label]);N.push(k)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},k=l.h("view",j,[r.leftout()]);N.push(k)}const E=A();if(N.push(E),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},k=l.h("view",j,[r.rightout()]);N.push(k)}const T={class:`${e}`,style:c.value};return l.h("view",T,N)}}}),{componentName:Uf,create:Gf,scope:Xf}=ce("searchbar"),Ml=Gf(Yf(Uf,Xf,Pe.CircleClose)),Zf=/scroll|auto|overlay/i,Xr=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jf(e,n=Xr){let o=e;for(;o&&o!==n&&Qf(o);){const{overflowY:t}=window.getComputedStyle(o);if(Zf.test(t))return o;o=o.parentNode}return n}function Zr(e,n=Xr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Jf(e.value,n))}),o}const Qr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ed={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 td(e,n,o){return{props:{...ed},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Zr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,C=()=>{let b=0,P=0,z="down";if(c.value==window){const L=Qr();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),P=L}else{const{scrollHeight:L,clientHeight:B,scrollTop:V}=c.value;b=L-B-V,P=V}return f.beforeScrollTop>P?z="up":z="down",f.beforeScrollTop=P,r("scroll-change",P),b<=t.threshold&&z=="down"},g=()=>{Uo(()=>{if(!C()||!t.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,t.useCapture)},m=()=>{c.value&&c.value.removeEventListener("scroll",g,t.useCapture)};l.onMounted(()=>{h(),t.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(()=>t.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},P=l.h("view",b,[a?.default?.()]),z=[];if(f.isInfiniting){let A=a?.loading?.()??null;if(!A){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=l.h(o,O)}const j={class:"fox-infinite__bottom-box__text"},k=l.h("view",j,[s.loadText.value]);A=[T,k]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,A);z.push(E)}else if(!t.hasMore){let A=a?.finished?.()??null;if(!A){const N={class:"fox-infinite__bottom-tips"};A=l.h("view",N,[s.loadMoreText.value]),z.push(A)}}const L={class:"fox-infinite__bottom"},B=l.h("view",L,z),V={class:d.value,ref:u};return l.h("view",V,[P,B])}}}}const{componentName:nd,create:ld,scope:od}=ce("infinite-loading"),Ll=ld(td(nd,od,Pl)),Mo=10;function Jr(e,n){return e>n&&e>Mo?"horizontal":n>e&&n>Mo?"vertical":""}function Bl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _l(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",t=()=>{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=Jr(e.offsetX,e.offsetY))},start:i=>{if(t(),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:t,isVertical:n,isHorizontal:o,state:e}}function rd(){const e=l.ref(0),n=l.ref(0),o=l.ref(0),t=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",y=()=>f.value==="horizontal",C=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const P=m.touches[0];i.value=P.clientX-e.value,s.value=P.clientY-n.value,r.value=P.clientX,a.value=P.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-n.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),t.value=Date.now()-o.value,f.value||(f.value=Jr(u.value,c.value))},start:m=>{if(C(),m.touches){const P=m.touches[0];e.value=P.clientX,n.value=P.clientY}else{const b=m;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()},reset:C,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:y}}const ad={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}},id=(e,n,o)=>({props:{...ad},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullingText","loosingText","loadingText"]),u=_l(),c=l.ref(),f=Zr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),C=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:`${t.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const V={};return t.headHeight!=50&&(V.height=Ee(t.headHeight)),V}),m=V=>{const A=+(t.pullDistance||t.headHeight);let N=V;return V>A&&(V<A*2?N=(V+A)/2:N=A+V/4),Math.round(N)},S=(V,A)=>{const N=+(t.pullDistance||t.headHeight);d.distance=V,A?d.status="loading":V===0?d.status="normal":V<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:V})},b=()=>d.status!=="loading"&&d.status!=="complete",P=()=>f.value==window?Qr()==0:f.value&&f.value.scrollTop==0,z=V=>{b()&&(P()?(u.start(V),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=V=>{b()&&d.moving&&(u.move(V),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(V.cancelable&&V.preventDefault(),S(m(u.state.deltaY))))},B=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>t.modelValue,V=>{V?S(+t.headHeight,!0):S(0)}),()=>{const V=[];let A=null;if(d.status==="loading"){if(A=a?.loading?.()??null,!A){const U={class:["fox-pull-refresh-container-topbox-icon"]};A=l.h(o,U)}}else d.status==="pulling"?A=a?.pulling?.()??null:d.status==="loosing"&&(A=a?.loosing?.()??null);A&&V.push(A);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[C.value]);V.push(E);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",T,V),k={class:"fox-pull-refresh-container",style:g.value},O=l.h("div",k,[j,a?.default?.()]),F={ref:c,class:y.value};return Bl()?Object.assign(F,{onTouchstart:z,onTouchmove:L,onTouchend:B}):Object.assign(F,{onMousedown:z,onMousemove:L,onMouseup:B}),l.h("div",F,[O])}}}),{componentName:sd,create:ud,scope:cd}=ce("pull-refresh"),ql=ud(id(sd,cd,Pl)),fd={visible:{type:Boolean},reference:{type:[Object,String]},trigger:{type:String,default:"click"},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},title:{type:String},content:{type:String},width:{type:String},offset:{type:Number,default:()=>6},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},popperClass:{type:[String]},popperStyle:{type:[Object]},leaveHide:{type:[Boolean]},persistenet:{type:[Boolean],default:()=>!1},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function dd(e,n,o=!1){return{props:{...fd},emits:["update:visible","open","close"],setup(t,{emit:r,slots:a,expose:i}){const s=e,u=l.ref({top:null,right:null,bottom:null,left:null}),c=l.ref(0),f=l.ref(0),d=l.ref(0),y=l.ref(0),C=l.ref(t.placement),g=l.ref(!1),h=l.ref(!1),m=l.ref(null),S=l.ref(null),b=()=>S.value?S.value?.$el??S.value:typeof t.reference=="string"?document.querySelector(t.reference):t.reference,P=p=>{if(p instanceof HTMLElement){const W=p.getBoundingClientRect();return{left:W.left,top:W.top,right:W.right,bottom:W.bottom}}return p},z=(p,W,ee,ue,ie,fe,be,Ye=!0)=>{const Ue=document.documentElement.clientWidth||document.body.clientWidth,Ge=document.documentElement.clientHeight||document.body.clientHeight,Ce=p.split("-");let et=[];Ye?Ce[0]==="top"?et=["top","bottom","right","left"]:Ce[0]==="bottom"?et=["bottom","top","right","left"]:Ce[0]==="left"?et=["left","top","bottom","right"]:Ce[0]==="right"&&(et=["right","top","bottom","left"]):et=[p[0]];const ze={top:null,right:null,bottom:null,left:null},Nt=[];for(let ge=0;ge<et.length;ge++){const Z=et[ge];if(Nt[0]=Z,Ce[1]&&(Nt[1]=Ce[1]),Z==="top"){const oe=ee-be-t.arrowSize/2-t.offset;if(oe>=0){ze.top=oe;let ne=0;Ce[1]==="start"?ne=W:Ce[1]==="end"?ne=W+ue-fe:ne=W+ue/2-fe/2;const ae=Ue-ne-fe;ae<0?(ne+=ae,B.value=-ae):B.value=0,ze.left=ne<0?0:ne;break}}else if(Z==="bottom"){const oe=ee+ie+t.arrowSize/2+t.offset;if(oe+be<=Ge){ze.top=oe;let ne=0;Ce[1]==="start"?ne=W:Ce[1]==="end"?ne=W+ue-fe:ne=W+ue/2-fe/2;const ae=Ue-ne-fe;ae<0?(ne+=ae,B.value=-ae):B.value=0,ze.left=ne<0?0:ne;break}}else if(Z==="left"){const oe=W-fe-t.arrowSize/2-t.offset;if(oe>=0){ze.left=oe;let ne=0;Ce[1]==="start"?ne=ee:Ce[1]==="end"?ne=ee+ie-be:ne=ee+ie/2-be/2,ze.top=ne<0?0:ne;break}}else if(Z==="right"){const oe=W+ue+t.arrowSize/2+t.offset;if(oe+fe<=Ue){ze.left=oe;let ne=0;Ce[1]==="start"?ne=ee:Ce[1]==="end"?ne=ee+ie-be:ne=ee+ie/2-be/2,ze.top=ne<0?0:ne;break}}}return{bestPlacement:Nt.join("-"),bestInsetRect:ze}},L=()=>{const p=t.autoFit;if(!Ze||A.value===!1)return;const W=b();if(!W)return;const ee=P(W);if(!ee)return;c.value=ee.left??0,f.value=ee.top??0,d.value=(ee.right??0)-(ee.left??0),y.value=(ee.bottom??0)-(ee.top??0);const ue=m.value.offsetWidth,ie=m.value.offsetHeight,{bestPlacement:fe,bestInsetRect:be}=z(t.placement,c.value,f.value,d.value,y.value,ue,ie,p);C.value=fe,u.value=be},B=l.ref(0),V=vt(()=>{L()},10),A=l.ref(t.visible),N=p=>{A.value!==p&&(A.value=p,r("update:visible",p),r(p?"open":"close"),p?(g.value=p,setTimeout(()=>{L(),h.value=!0},0)):h.value=!1)};l.watch([()=>t.visible],([p])=>{N(p)});const E=l.computed(()=>A.value&&T.value),T=l.ref(!0),j=vt(p=>{const W=p[0];W&&(T.value=W.isIntersecting)},10),k=new IntersectionObserver(j),O=(p,W)=>{p&&(setTimeout(()=>{L()},0),t.autoFit&&(W&&(Rt.unwatch(W,V),k.unobserve(W)),p&&(Rt.watch(p,V),k.observe(p))))};l.watch(()=>t.reference,(p,W)=>{O(p?.$el??p,W?.$el??W)},{immediate:!0}),l.watch(()=>S.value,(p,W)=>{O(p?.$el??p,W?.$el??W)}),l.onBeforeUnmount(()=>{const p=b();p&&(Rt.unwatch(p,V),k.unobserve(p),k.disconnect())});let F=null,U=null;const Y=()=>{F&&(clearTimeout(F),F=null)},Q=()=>{U&&(clearTimeout(U),U=null)},G=()=>{Q(),t.openDelay>0?(Y(),F=setTimeout(()=>{F=null,N(!0)},t.openDelay)):N(!0)},te=()=>{Y(),t.closeDelay>0?(Q(),U=setTimeout(()=>{U=null,N(!1)},t.closeDelay)):N(!1)},re=()=>{A.value?te():G()};i({open:G,close:te,doLayout:L});const I=(p,...W)=>{p&&(Array.isArray(p)?p.forEach(ee=>{ee(...W)}):p(...W))},x=p=>{const W=p.props||{},ee={...W};switch(t.trigger){case"click":{const ue=W.onClick;ee.onClick=ie=>{I(ue,ie),re()};break}case"hover":{const ue=W.onMouseenter,ie=W.onMouseleave;ee.onMouseenter=fe=>{I(ue,fe),G()},ee.onMouseleave=fe=>{I(ie,fe),te()};break}case"focus":{const ue=W.onFocus;ee.onFocus=ie=>{I(ue,ie),G()};break}case"contextmenu":{const ue=W.onContextmenu;ee.onContextmenu=ie=>{ie.preventDefault(),I(ue,ie),re()};break}}return ee},R=()=>{const p=a.reference?.();if(!p?.length)return null;const W=p[0];return l.cloneVNode(W,{...x(W),ref:ee=>{S.value=ee}})},D=l.computed(()=>{const p={[s]:!0};return C.value.startsWith("top")?p["is-top"]=!0:C.value.startsWith("right")?p["is-right"]=!0:C.value.startsWith("bottom")?p["is-bottom"]=!0:C.value.startsWith("left")&&(p["is-left"]=!0),p[`is-${t.effect}`]=!0,!h.value&&E.value&&(p["is-opacity"]=!0),h.value&&E.value&&(p["is-show"]=!0),E.value||(p["is-hide"]=!0),t.popperClass&&typeof t.popperClass=="string"&&(p[`${t.popperClass}`]=!0),p}),v=l.computed(()=>{const p={};return u.value.top!==null&&(p.top=`${u.value.top}px`),u.value.right!==null&&(p.right=`${u.value.right}px`),u.value.bottom!==null&&(p.bottom=`${u.value.bottom}px`),u.value.left!==null&&(p.left=`${u.value.left}px`),t.width&&(p.width=t.width),t.zIndex&&(p["z-index"]=`${t.zIndex}`),t.popperStyle&&typeof t.popperStyle=="object"&&Object.assign(p,t.popperStyle),p}),K=()=>{N(!1)},q=()=>{if(S.value&&t.trigger==="hover"||!t.showOverlay)return null;const p={class:`${s}__overlay`,onClick:K};return l.h("div",p)},_=()=>{let p=null;return a.title?p=l.h("div",{class:`${s}__title`},{default:a.title}):t.title&&(p=l.h("div",{class:`${s}__title`},[t.title])),p},M=l.computed(()=>({[`${s}__arrow`]:!0})),X=l.computed(()=>{const p={};return t.showArrow?(p.width=`${t.arrowSize}px`,p.height=`${t.arrowSize}px`,C.value==="top"?(p.left="50%",p.bottom="0",p.transform="translate(-50%, 50%)"):C.value==="top-start"?(p.left=`${t.arrowOffset+B.value}px`,p.bottom="0",p.transform="translate(-50%, 50%)"):C.value==="top-end"?(p.right=`${t.arrowOffset-B.value}px`,p.bottom="0",p.transform="translate(-50%, 50%)"):C.value==="right"?(p.left="0",p.top="50%",p.transform="translate(-50%, -50%)"):C.value==="right-start"?(p.left="0",p.top=`${t.arrowOffset}px`,p.transform="translate(-50%, 50%)"):C.value==="right-end"?(p.left="0",p.bottom=`-${t.arrowOffset}px`,p.transform="translate(-50%, 50%)"):C.value==="bottom"?(p.left="50%",p.top="0",p.transform="translate(-50%, -50%)"):C.value==="bottom-start"?(p.left=`${t.arrowOffset+B.value}px`,p.top="0",p.transform="translate(-50%, -50%)"):C.value==="bottom-end"?(p.right=`${t.arrowOffset-B.value}px`,p.top="0",p.transform="translate(-50%, -50%)"):C.value==="left"?(p.right="0",p.top="50%",p.transform="translate(50%, -50%)"):C.value==="left-start"?(p.right="0",p.top=`${t.arrowOffset}px`,p.transform="translate(50%, -50%)"):C.value==="left-end"&&(p.right="0",p.bottom=`-${t.arrowOffset}px`,p.transform="translate(50%, -50%)"),p):{display:"none"}}),H=()=>{const p={class:M.value,style:X.value};return l.h("div",p)},J=()=>{A.value===!1&&t.persistenet!==!0&&(g.value=!1)},le=p=>{if(!m.value||A.value===!1)return;const{relatedTarget:W}=p;m.value.contains(W)||N(!1)},$=()=>{const p=[],W=_();if(W&&p.push(W),a.default){const fe=a.default();p.push(fe)}const ee=H();ee&&p.push(ee);const ue={ref:m,class:D.value,style:v.value,onAnimationend:J};return t.leaveHide&&(ue.onMouseleave=le),l.h("div",ue,{default:()=>p})};return()=>{const p=[],W=R();if(W&&p.push(W),!g.value)return p.length===null?null:p;const ee=[],ue=q();ue&&ee.push(ue);const ie=$();ie&&ee.push(ie);const fe=l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>ee});return p.push(fe),p}}}}const{componentName:hd,create:md,scope:gd}=ce("popover-dialog"),jl=md(dd(hd,gd,!1));function pd(e,n){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:t}){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(t.mark)f=t.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},y=t.default?t.default():[],C=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,C]):l.h("div",g,[C,f])}}}}const{componentName:vd,create:yd,scope:Uh}=ce("indicator"),zl=yd(pd(vd));function bd(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const t=o.getBoundingClientRect().width;if(t>0){n(t);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"),n(r)},500)}const wd={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 xd(e,n,o,t=!1){return{props:{...wd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const P={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(P[`${e}--${r.type??"default"}`]=!0),r.size&&(P[`${e}--${r.size}`]=!0),P}),u=l.computed(()=>{const P={},z=r.textColor??r.color;return z&&(P.color=z),P}),c=(P,z)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const B=r.highlightFilter;if(P.indexOf(B)!==-1){const A=P.replace(new RegExp(B,"g"),`<span>${B}</span>`);z.innerHTML=A,z.class["is-highlight"]=!0,L=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const B=r.highlightFilter(P);B&&(z.innerHTML=B,z.class["is-highlight"]=!0,L=l.h(r.tag,z))}return L},f=P=>{a.emit("click",P)};let d="";const y=()=>{const P=i.value;if(!P)return;const z=P.clientWidth;bd(P,L=>{const B=P.innerHTML??"";ve(B)||L<z||(d?o?.show(P,B,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(P,B,{type:"text",showArrow:r.showArrow},!0)??"")})},C=()=>{d&&o?.hide(d)};let g=null;const h=P=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=P=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{C()},r.hideAfter??0)},S=()=>{const P=i.value;P&&(P.addEventListener("mouseover",h),P.addEventListener("mouseleave",m))},b=()=>{const P=i.value;P&&(P.removeEventListener("mouseover",h),P.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||(b(),C())}),()=>{const P={onClick:f,class:s.value,style:u.value,ref:i};let z=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),T=xe(r.decimalLength),j=se(r.autoPadding);let k=`${A[0].children}`,O=k.split("").reverse().join("");O=on(O,T,j,E,r.separator),k=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=c(k,P)),z||(P.innerHTML=k,z=l.h(r.tag,P))}}}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}`;z=c(E,P),z||(P.innerHTML=E,z=l.h(r.tag,P))}}}z||(z=l.h(r.tag,P,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let B=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 T={class:A,style:N};B=l.h("view",T,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 T={class:A,style:N};B=l.h("view",T,{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 T={class:A,style:N};B=l.h("view",T)}const V={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",V,[B,z])}}}}const{componentName:Sd,create:Td,scope:Cd}=ce("text"),Hl=Td(xd(Sd,Cd,Fe,!1)),$d={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:Pe.ArrowUp}};function Nd(e,n,o){return{props:{...$d},emits:["click","update:modelValue"],setup(t,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return t.disabled?d[`${e}__disabled`]=!0:d[`${e}__${t.type}`]=!0,d}),i=me(t,"modelValue"),s=l.computed(()=>i.value?t.expandText??"":t.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 y={class:c.value},C=o(t.icon,y);return C&&d.push(C),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:kd,create:Ed,scope:Pd}=ce("more-button"),Id=(e,n)=>(e=e??Pe.ArrowUp,l.h(w.ElIcon,n,{default:()=>[l.h(e)]})),Kl=Ed(Nd(kd,Pd,Id));function Od(e){return e===window}const ea=e=>{const n=l.unref(e);if(Od(n)){const o=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:o,bottom:t,width:o,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Vd,create:Dd,scope:Gh}=ce("tour"),Fd=Dd({components:{Close:Pe.Close,ElPopover:w.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:n}){const o=Vd,t=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:P,top:z}=r.value,L=e.steps[t.active].offset??g,B=[P+S/2,z+b/2],V=Number(h||S),A=Number(m||b);return{width:`${V+ +L.left+L.right}px`,height:`${A+L.top+L.bottom}px`,top:`${B[1]-A/2-+L.top}px`,left:`${B[0]-V/2-+L.left}px`}}),s=g=>{g=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,f()}),n("change",t.active)},u=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[t.active].target}`),h=ea(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},C=(g,h=0)=>{g&&f(),e.steps,t.active=h,t.showTour=g,t.showPopup=g};return l.onMounted(()=>{C(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{C(g)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:y}}}),Rd={key:0,class:"fox-tour__content"},Ad={key:0,class:"fox-tour__content-top"},Md={class:"fox-tour__content-inner"},Ld={class:"fox-tour__content-bottom"},Bd={class:"fox-tour__content-bottom-init"},_d={class:"fox-tour__content-bottom-operate"},qd={key:1,class:"fox-tour__content fox-tour__content-tile"},jd={class:"fox-tour__content-inner"};function zd(e,n,o,t,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:n[0]||(n[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",Rd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Ad,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Md,l.toDisplayString(c.content),1),l.createElementVNode("div",Ld,[l.createElementVNode("div",Bd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",_d,[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:n[2]||(n[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:n[3]||(n[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",qd,[l.createElementVNode("div",jd,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Wl=je(Fd,[["render",zd]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Hd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Bl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=_l(),t=(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),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{t(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Lo(e,n){return new Hd(e,n)}let bt=[];const Bo=e=>{const n=e;n.key==="Escape"&&bt.forEach(o=>o(n))},Kd=e=>{l.onMounted(()=>{bt.length===0&&document.addEventListener("keydown",Bo),Ze&&bt.push(e)}),l.onBeforeUnmount(()=>{bt=bt.filter(n=>n!==e),bt.length===0&&Ze&&document.removeEventListener("keydown",Bo)})},An="fox-focus-trap.focus-after-trapped",_o="fox-focus-trap.focus-after-released",Wd="fox-focus-trap.focusout-prevented",qo={cancelable:!0,bubbles:!1},Yd={cancelable:!0,bubbles:!1},jo="foxFocusAfterTrapped",zo="foxFocusAfterReleased",Ud=Symbol("foxFocusTrap"),Yl=l.ref(),Tn=l.ref(0),Ul=l.ref(0);let Yt=0;const ta=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const r=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},Gd=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ho=(e,n)=>{for(const o of e)if(!Gd(o,n))return o},Xd=e=>{const n=ta(e),o=Ho(n,e),t=Ho(n.reverse(),e);return[o,t]},Zd=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Ul.value=window.performance.now(),e!==o&&Zd(e)&&n&&e.select()}};function Ko(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const Qd=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=Ko(e,t),e.unshift(t)},remove:t=>{e=Ko(e,t),e[0]?.resume?.()}}},Jd=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(it(t,n),document.activeElement!==o)return},Wo=Qd(),eh=()=>Tn.value>Ul.value,Ut=()=>{Yl.value="pointer",Tn.value=window.performance.now()},Yo=()=>{Yl.value="keyboard",Tn.value=window.performance.now()},th=()=>(l.onMounted(()=>{Yt===0&&(document.addEventListener("mousedown",Ut),document.addEventListener("touchstart",Ut),document.addEventListener("keydown",Yo)),Yt++}),l.onBeforeUnmount(()=>{Yt--,Yt<=0&&(document.removeEventListener("mousedown",Ut),document.removeEventListener("touchstart",Ut),document.removeEventListener("keydown",Yo))}),{focusReason:Yl,lastUserFocusTimestamp:Tn,lastAutomatedFocusTimestamp:Ul}),Gt=e=>new CustomEvent(Wd,{...Yd,detail:e}),{componentName:Xh,create:nh,scope:Zh}=ce("focus-trap"),lh={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"}},oh=nh({props:lh,emits:[jo,zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=th();Kd(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:P,currentTarget:z,shiftKey:L}=h,{loop:B}=e,V=m==="Tab"&&!S&&!b&&!P,A=document.activeElement;if(V&&A){const N=z,[E,T]=Xd(N);if(E&&T){if(!L&&A===T){const k=Gt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(h.preventDefault(),B&&it(E,!0))}else if(L&&[E,N].includes(A)){const k=Gt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||(h.preventDefault(),B&&it(T,!0))}}else if(A===N){const k=Gt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||h.preventDefault()}}};l.provide(Ud,{focusTrapRef:t,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(t.value=h)},{immediate:!0}),l.watch([t],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const c=h=>{o(jo,h)},f=h=>o(zo,h),d=h=>{const m=l.unref(t);if(!m)return;const S=h.target,b=h.relatedTarget,P=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),P&&o("focusin",h),!s.paused&&se(e.trapped)&&(P?a=S:it(a,!0))},y=h=>{const m=l.unref(t);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!el(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=Gt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||it(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function C(){await l.nextTick();const h=l.unref(t);if(h){Wo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(An,qo);h.addEventListener(An,c),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let P=e.focusStartEl;Jo(P)||(it(P),document.activeElement!==P&&(P="first")),P==="first"&&Jd(ta(h),!0),(document.activeElement===m||P==="container")&&it(h)})}}}function g(){const h=l.unref(t);if(h){h.removeEventListener(An,c);const m=new CustomEvent(_o,{...qo,detail:{focusReason:i.value}});h.addEventListener(_o,f,{once:!0}),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!eh())&&it(r??document.body,!0),Wo.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&C(),l.watch(()=>e.trapped,h=>{se(h)?C():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g(),t.value&&(t.value.removeEventListener("keydown",u),t.value.removeEventListener("focusin",d),t.value.removeEventListener("focusout",y))}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:rh,create:ah,scope:Qh}=ce("floating-window"),ih=Symbol.for("InnerPageScopeKey"),sh=Symbol.for("PageWrapperKey"),uh={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}},ch=ah({inheritAttrs:!1,components:{FoxIcon:w.ElIcon,FocusTrap:oh},props:{...uh},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=rh,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,$=>{t.value=$});const a=l.computed(()=>t.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 $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=l.computed(()=>{const $={};return dt(i.value)?$.left="auto":$.left=De(i.value),dt(s.value)?$.top="auto":$.top=De(s.value),dt(u.value)?$.right="auto":$.right=De(u.value),dt(c.value)?$.bottom="auto":$.bottom=De(c.value),dt(e.zIndex)||($["z-index"]=De(e.zIndex)),dt(B.value)||($.height=B.value),dt(V.value)||($.width=V.value),$}),y=l.computed(()=>e.closeIcon??Pe.Close),C=l.computed(()=>e.collapseIcon??Pe.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Pe.ArrowRight:e.expandIcon??Pe.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})),P=l.ref(),z=l.ref(null),L=l.ref(null),B=l.computed(()=>De(e.height)||""),V=l.computed(()=>De(e.width)||""),A=l.ref(se(e.collapse)),N=($,p=!0)=>{A.value!==$&&(A.value=$,$?x():R(),n("update:collapse",$),$&&typeof j.onHide=="function"?j.onHide():!$&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,$=>{N($)});const E=()=>{T()},T=$=>{$=$??!A.value,N($)};l.provide(ih,!0);const j={setCollapse:N,setFixedNavVisible:$=>{te.value=$}};l.provide(sh,j);const k=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{t.value=!1}):t.value=!1},O=l.ref(null),F=l.computed(()=>!e.fixedNavTeleport),U=l.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),Y=l.ref(""),Q=l.computed(()=>{const $={};return Y.value?$.top=Y.value:e.collapseTop&&($.top=e.collapseTop),$}),G=l.ref(A.value),te=l.computed({set:$=>{G.value=$},get:()=>t.value===!1?!1:G.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),te.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},R=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),te.value=!1}},D=()=>{i.value=null,s.value=null,u.value=null,c.value=null},v={x:0,y:0},_=Lo($=>{if(!P.value)return;const p=P.value;if(D(),e.origin==="left-top")i.value=p.offsetLeft,s.value=p.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const W=document.documentElement.clientHeight||document.body.clientHeight;i.value=p.offsetLeft,c.value=W-(p.offsetTop+p.offsetHeight),v.x=i.value,v.y=c.value}else if(e.origin==="right-bottom"){const W=document.documentElement.clientWidth||document.body.clientWidth,ee=document.documentElement.clientHeight||document.body.clientHeight;u.value=W-(p.offsetLeft+p.offsetWidth),c.value=ee-(p.offsetTop+p.offsetHeight),v.x=u.value,v.y=c.value}else{const W=document.documentElement.clientWidth||document.body.clientWidth;u.value=W-(p.offsetLeft+p.offsetWidth),s.value=p.offsetTop,v.x=u.value,v.y=s.value}},$=>{if(!P.value)return;const p=P.value;D(),e.origin==="left-top"?(i.value=v.x+$.x,s.value=v.y+$.y,p.style.left=De(i.value),p.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=v.x+$.x,c.value=v.y-$.y,p.style.left=De(i.value),p.style.bottom=De(c.value)):e.origin==="right-bottom"?(u.value=v.x-$.x,c.value=v.y-$.y,p.style.right=De(u.value),p.style.bottom=De(c.value)):(u.value=v.x-$.x,s.value=v.y+$.y,p.style.right=De(u.value),p.style.top=De(s.value))}),M={x:0,y:0},J=Lo($=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},$=>{if(!O.value)return;const p=M.y+$.y;Y.value=`${p}px`}),le=()=>{if(P.value){const $=P.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=$}};return l.onMounted(()=>{if(e.draggable&&P.value){const $=[];z.value&&$.push(z.value),e.footerDraggable&&(le(),L.value&&$.push(L.value)),_.open($)}e.collapse===!0&&N(e.collapse,!1),O.value&&J.open(O.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&_.close(),O.value&&J.close()}),{classes:f,styles:d,isShow:a,closeIcon:y,onClose:k,dialogRef:P,headerRef:z,onClickToggle:E,collapseIcon:C,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:te,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:Q,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:F}}}),fh={ref:"headerRef",class:"fox-floating-window__header"},dh={class:"fox-floating-window__title"},hh={class:"fox-floating-window__tools"},mh={class:"fox-floating-window__body"},gh={class:"fox-floating-window__fixednav__text"};function ph(e,n,o,t,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",fh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",dh,l.toDisplayString(e.title),1),l.createElementVNode("div",hh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[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",mh,[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:n[2]||(n[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[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",gh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Gl=je(ch,[["render",ph]]);function vh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:t}){return vr(o.name,()=>o.config),()=>typeof t.default=="function"?t.default():null}}}const{componentName:Jh,create:yh,scope:em}=ce("domain-provider"),Xl=yh(vh()),bh={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 wh(e,n){return{inheritAttrs:!1,props:bh,setup(o,{slots:t}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,C)=>{if(f===null){a.set(y,{visible:null,callback:C});return}r.has(y)&&f.unobserve(y),r.set(y,{visible:null,callback:C}),f.observe(y)},s=y=>{if(f===null){a.delete(y);return}r.has(y)&&(r.delete(y),f.unobserve(y))};let u=o.initialVisibleObserverSize;ci({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(y,C,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(P){console.error(P)}}},{root:y,rootMargin:C,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,C])=>{if(C||!y||f)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{componentName:tm,create:xh,scope:nm}=ce("rolling-provider"),Zl=xh(wh()),Sh=[ll,rl,al,il,sl,Te,ul,cl,zt,fl,dl,hl,ml,gl,pl,vl,yl,bl,wl,xl,xn,Sl,Tl,Cl,$l,Nl,kl,El,Il,Ol,Vl,Dl,Fl,Sn,Rl,Al,Ml,Ll,ql,jl,_t,wn,zl,Hl,Kl,Wl,Gl,Xl,Zl],Th=new qa(Sh,[Ha],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>w.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>w.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>w.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>w.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>w.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>w.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>w.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>w.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>w.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>w.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>w.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>w.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>w.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>w.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>w.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>w.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>w.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>w.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>w.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>w.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>w.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>w.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>w.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>w.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>w.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>w.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>w.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>w.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>w.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>w.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>w.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>w.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>w.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>w.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>w.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>w.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>w.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>w.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>w.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>w.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>w.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>w.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>w.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>w.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>w.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>w.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>w.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>w.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>w.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>w.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>w.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>w.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>w.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>w.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>w.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>w.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>w.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>w.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>w.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>w.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>w.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>w.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>w.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>w.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>w.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>w.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>w.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>w.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>w.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>w.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>w.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>w.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>w.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>w.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>w.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>w.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>w.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>w.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>w.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>w.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>w.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>w.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>w.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>w.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>w.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>w.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>w.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>w.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>w.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>w.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>w.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>w.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>w.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>w.ElUpload});exports.AutocompleteItem=bl;exports.Broadcast=tl;exports.BroadcastKey=ye;exports.CascaderItem=yl;exports.CheckboxItem=Cl;exports.Content=il;exports.DataItemsKey=yt;exports.DateItem=hl;exports.DateUtils=Be;exports.DialogItem=Fl;exports.Domain=fn;exports.DomainKey=Le;exports.DomainProvider=Xl;exports.FloatingWindow=Gl;exports.FooterBar=al;exports.FoxAutocompleteItem=bl;exports.FoxCascaderItem=yl;exports.FoxCheckboxItem=Cl;exports.FoxContent=il;exports.FoxDateItem=hl;exports.FoxDialogItem=Fl;exports.FoxDomainProvider=Xl;exports.FoxFloatingWindow=Gl;exports.FoxFooterBar=al;exports.FoxGroup=sl;exports.FoxGroupSetting=El;exports.FoxHeaderBar=rl;exports.FoxHintText=zt;exports.FoxIndicator=zl;exports.FoxInfiniteLoading=Ll;exports.FoxInputItem=fl;exports.FoxInputNumberItem=vl;exports.FoxItem=Te;exports.FoxMapping=_t;exports.FoxMoneyItem=pl;exports.FoxMoreButton=Kl;exports.FoxOverLay=Sn;exports.FoxPage=ll;exports.FoxPopoverDialog=jl;exports.FoxPopup=Rl;exports.FoxPrice=wn;exports.FoxPullRefresh=ql;exports.FoxRadioItem=Tl;exports.FoxRateItem=$l;exports.FoxRollingProvider=Zl;exports.FoxRowItem=cl;exports.FoxSearchBar=Ml;exports.FoxSelectItem=dl;exports.FoxSlotItem=ul;exports.FoxStepsBar=Dl;exports.FoxSwitchItem=Nl;exports.FoxTableItem=Sl;exports.FoxTableMappingColumn=wl;exports.FoxTableRadioColumn=xl;exports.FoxTableSetting=xn;exports.FoxTabsBar=Il;exports.FoxTabsContainer=Ol;exports.FoxTabsPane=Vl;exports.FoxText=Hl;exports.FoxTimeItem=ml;exports.FoxTimeSelectItem=gl;exports.FoxToast=Al;exports.FoxTour=Wl;exports.FoxTreeSelectItem=kl;exports.Group=sl;exports.GroupSetting=El;exports.HeaderBar=rl;exports.HintText=zt;exports.Indicator=zl;exports.InfiniteLoading=Ll;exports.InputItem=fl;exports.InputNumberItem=vl;exports.Item=Te;exports.Mapping=_t;exports.MoneyItem=pl;exports.MoreButton=Kl;exports.OverLay=Sn;exports.Page=ll;exports.PopoverDialog=jl;exports.Popup=Rl;exports.Price=wn;exports.PriorityPolicy=_e;exports.PullRefresh=ql;exports.RadioItem=Tl;exports.RateItem=$l;exports.RollingProvider=Zl;exports.RowItem=cl;exports.SearchBar=Ml;exports.SelectItem=dl;exports.SlotItem=ul;exports.StepsBar=Dl;exports.SwitchItem=Nl;exports.TableItem=Sl;exports.TableMappingColumn=wl;exports.TableRadioColumn=xl;exports.TableSetting=xn;exports.TabsBar=Il;exports.TabsContainer=Ol;exports.TabsPane=Vl;exports.Text=Hl;exports.TimeItem=ml;exports.TimeSelectItem=gl;exports.Toast=Al;exports.Tour=Wl;exports.TreeSelectItem=kl;exports.UniqueID=Ir;exports.ValidateSchema=mr;exports.ValidateSchemaKey=Ke;exports.cancelRaf=ra;exports.clearNonNumber=va;exports.clone=Hn;exports.compareTo=qn;exports.createBroadcast=sn;exports.createValidateSchema=un;exports.debounce=vt;exports.debounceRef=Ia;exports.decimalLength=sr;exports.default=Th;exports.defineBroadcast=xa;exports.defineConfigDomain=vr;exports.defineDataItem=yr;exports.defineDomain=nl;exports.defineItem=$e;exports.definePageState=wr;exports.defineSimpleItem=br;exports.deleteGlobalValidator=Na;exports.disabledProperty=Me;exports.divide=Qn;exports.excludeProps=Ie;exports.extend=pt;exports.floatData=wa;exports.getGlobalValidateCheckEvents=fr;exports.getGlobalValidateResetEvents=hr;exports.getPageContentAreaHeight=Jt;exports.getPageContentAreaWidth=en;exports.getPageFooterAreaHeight=Lt;exports.getPageHeaderAreaHeight=Mt;exports.getRootDomain=wt;exports.hasSymbol=nr;exports.includeProps=ur;exports.indexOf=ya;exports.integerLength=ir;exports.isArray=ia;exports.isArrayLike=or;exports.isBrowser=Ze;exports.isDate=ca;exports.isESModule=da;exports.isEmptyString=ve;exports.isEqual=lt;exports.isFunction=jn;exports.isHidden=an;exports.isInnerPage=Da;exports.isMap=sa;exports.isNil=el;exports.isNumberString=ar;exports.isObject=ot;exports.isPlainObject=zn;exports.isPromise=er;exports.isRegExp=Kn;exports.isSet=ua;exports.isString=Jo;exports.isSubPage=Fa;exports.isSymbol=fa;exports.isTouch=Bl;exports.isWindow=lr;exports.lastIndexOf=ba;exports.makeArray=pa;exports.merge=rr;exports.multiply=Xo;exports.negate=Zo;exports.nextTick=ma;exports.numberFormat=on;exports.objectToString=tr;exports.once=Oa;exports.overrideGlobalValidateHandler=Ca;exports.property=Re;exports.raf=Jn;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=ka;exports.setGlobalValidateHandler=Ta;exports.setGlobalValidateMessages=Pa;exports.setGlobalValidateResetEvents=Ea;exports.setGlobalValidator=$a;exports.throttle=pr;exports.toBoolean=se;exports.toNumber=xe;exports.toPadding=Xe;exports.toPx=he;exports.toPxDesc=Ee;exports.toTypeString=rn;exports.toValue=me;exports.tryTimes=cn;exports.typeOf=Zt;exports.unNumberFormat=Qo;exports.updatePageState=Wn;exports.useBroadcast=Dt;exports.useDomain=ct;exports.useExpose=Ne;exports.useInnerSize=ol;exports.usePageState=dn;exports.usePosition=Er;exports.useRawTouch=_l;exports.useRect=ea;exports.useSize=hn;exports.useTouch=rd;exports.valueLength=jt;
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Aug 24 2026 15:28:42 GMT+0800 (China Standard Time)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),ht=require("@fox-js/validator"),w=require("element-plus"),Pe=require("@element-plus/icons-vue"),qe=require("@fox-js/i18n"),Ht=window,la=typeof window<"u";function oa(){return typeof Ht<"u"?Ht.requestAnimationFrame||Ht.webkitRequestAnimationFrame||function(e){Ht.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ra(e){la?cancelAnimationFrame(e):clearTimeout(e)}const Wo=oa();function Xt(e,n="0"){let o=0,t=-1;e[0]=="-"&&(o++,t=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,t=2,n=n.substring(1),n.length),e=Ee(e),n=Ee(n),[e,n]=Zn(Ee(e),Ee(n)),o==1&&(t==1?e=Nn(e):n=Nn(n));let r=Yo(e,n);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(Nn(r)):Ee(r)}function Nn(e){let n="",o=e.length,t=e.split(".")[1],r=t?t.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Yo(n,a)}function Ee(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Zn(e,n){let o=e.split("."),t=n.split("."),r=o[0].length,a=t[0].length;return r>a?t[0]=new Array(Math.abs(r-a)+1).join("0")+(t[0]?t[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=t[1]?t[1].length:0,(r||a)&&(r>a?t[1]=(t[1]?t[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]:""),n=t[0]+(t[1]?"."+t[1]:""),[e,n]}function Yo(e,n){[e,n]=Zn(e,n);let o="",t=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+t;o=a%10+o,t=Math.floor(a/10)}return t?t.toString()+o:o}var we=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 At(e,n=0,o=we.HALF_EVEN){if(o===we.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let t=!1;e[0]==="-"&&(t=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let u=a.substr(0,a.length-n);return e=u+"."+a.substr(a.length-n)+i,u=At(e,0,o),(t?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return a.length,Ql(r[1],a,t,o)?(t?"-":"")+En(a):(t?"-":"")+a;if(r[1]){if(r[1].length<n)return(t?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(t?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let s=r[1].substring(n);return s&&Ql(s,i,t,o)&&(i=En(i),i.length>n)?(t?"-":"")+En(a,parseInt(i[0]))+"."+i.substring(1):(t?"-":"")+a+"."+i}function Ql(e,n,o,t){if(!e||e===new Array(e.length+1).join("0")||t===we.DOWN||!o&&t===we.FLOOR||o&&t===we.CEILING)return!1;if(t===we.UP||o&&t===we.FLOOR||!o&&t===we.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(t){case we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function En(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,t="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,t+=a}return n&&(t+=n),t.split("").reverse().join("")}function Mn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Pt(e),n=Pt(n);let t=0,r=0;e.indexOf(".")!=-1&&(t=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=t+r;if(e=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.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 y=0;for(let C=n.length-1;C>=c&&C>=0;C--)u[C]>-1&&u[C]<e.length&&(y+=parseInt(e[u[C]--])*parseInt(n[C]));y+=s,s=Math.floor(y/10),f=y%10+f,c--}return f=Pt(aa(f,a)),o==1&&(f="-"+f),f}function aa(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Ln(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let t=0;n[0]=="-"&&(n=n.substring(1),t++),e[0]=="-"&&(e=e.substring(1),t++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ee(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ee(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let f=e.length-c+r;e=Ee(e.substring(0,f)+"."+e.substring(f))}else r==c&&(e=Ee(e.replace(".","")))}let a=0,i=n.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(n);)u=Xt(u,"-"+n),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(t==1?"-":"")+Ee(At(s,o-2))}function Bn(e,n){return e=e.toString(),n=n.toString(),n=_n(n),Xt(e,n)}function _n(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Jl(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),eo(e),eo(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let t=Bn(e,Mn(n,At(Ln(e,n),0,we.FLOOR)));return o+t}function eo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function to(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Zn(e,n),e.localeCompare(n)==0)return 0;for(let t=0;t<e.length;t++)if(e[t]!=n[t])return e[t]>n[t]?o?-1:1:o?1:-1;return 0}var ln=class de{value;static RoundingModes=we;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,t]=n.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(t=parseInt(t)+o.indexOf("."),o=o.replace(".","")):t=parseInt(t)+o.length,o.length<t?n=r+o+new Array(t-o.length+1).join("0"):o.length>=t&&t>0?n=r+Ee(o.substring(0,t))+(o.length>t?"."+o.substring(t):""):n=r+"0."+new Array(-t+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,t){if(!(o||t))o=3,t=",";else if(!(o&&t))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=n.substring(s,s+o)+(s<a-o&&s>=0?t:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,t=we.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return At(n,o,t)}round(n=0,o=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(At(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),Xt(n,o)}add(n){return new de(Xt(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),Bn(n,o)}subtract(n){return new de(Bn(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),Mn(n,o)}multiply(n){return new de(Mn(this.value,n.getValue()))}static divide(n,o,t){return n=de.validate(n),o=de.validate(o),Ln(n,o,t)}divide(n,o){return new de(Ln(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),Jl(n,o)}modulus(n){return new de(Jl(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),to(n,o)}compareTo(n){return to(this.value,n.getValue())}static negate(n){return n=de.validate(n),_n(n)}negate(){return new de(_n(this.value))}};function Uo(e,n){return ln.multiply(`${e}`,`${n}`)}function Qn(e,n,o=8){return ln.divide(`${e}`,`${n}`,o)}function qn(e,n){return e=`${e}`,n=`${n}`,ln.compareTo(e,n)}function Go(e){return ln.negate(e)}function on(e,n=-1,o=!1,t=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)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let f;if(t>0){let d="",y=s.split("").reverse();for(let C=0;C<y.length;C++)d+=y[C]+((C+1)%t==0&&C+1!=y.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 Xo(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let t=n.replace(/[^\d\.-]/g,"");return`${o}${t}`}const Jn=Wo,ia=Array.isArray,sa=e=>rn(e)==="[object Map]",ua=e=>rn(e)==="[object Set]",ca=e=>e instanceof Date,jn=e=>typeof e=="function",Zo=e=>typeof e=="string",fa=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Qo=e=>ot(e)&&jn(e.then)&&jn(e.catch),Jo=Object.prototype.toString,rn=e=>Jo.call(e),zn=e=>rn(e)==="[object Object]",er=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||er&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function pt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,t=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<t;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=n[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:{},n[i]=pt(r,c,u)}else u!==void 0&&(n[i]=u)}}return n}function Hn(e,n,o=!1){if(!o)pt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;a=Hn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const t=Object.getOwnPropertySymbols(n);for(let r of t){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;a=Hn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const kn=ha?Promise.resolve():null;function ma(e,...n){kn!==null?n&&n.length>0?kn.then(()=>{e(n)}):kn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):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 ga={"[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 Zt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ga[o]||"object"}function tr(e){return e&&typeof e=="object"&&"setInterval"in e}function an(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function nr(e){let n=!!e&&"length"in e&&e.length,o=Zt(e);return o==="function"||tr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function lr(e,n){let o=+n.length,t=0,r=e.length;for(;t<o;t++)e[r++]=n[t];return e.length=r,e}function pa(e,n=[]){let o=n;return e!=null&&(nr(Object(e))?lr(o,typeof e=="string"?[e]:e):o.push(e)),o}function lt(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Zt(e),t=Zt(n);if(o!==t)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],c=n[s];if(!lt(u,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!lt(a,i))return!1}return!0}return!1}const Ze=typeof window<"u";function el(e){return e==null}function Kn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ve=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function or(e){return ve(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ve(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function rr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function ar(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function no(e,n,o){const t=e.indexOf(n);return t===-1?e:n==="-"&&t!==0?e.slice(0,t):e.slice(0,t+1)+e.slice(t).replace(o,"")}function va(e,n=!0,o=!0){n?e=no(e,".",/\./g):e=e.replace(/\./g,""),o?e=no(e,"-",/-/g):e=e.replace(/-/,"");const t=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(t,"")}function ya(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(lt(e,o))return!0}):n.indexOf(e)}function ba(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(t=>{if(lt(e,t))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function jt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ir(e,...n){const o={};return n.forEach(t=>{for(const r in t)o[r]=e[r]}),o}function Ie(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const t={};for(const r in e)o.includes(r)||(t[r]=e[r]);return t}const wa=(e,n,o)=>{const t=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(t).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(t[a]=n[r[a]]):n[a]&&(t[a]=n[a])}),t):e},ye=Symbol.for("BroadcastKey");class tl{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(n,o,t){this.parent=n,this.proxy=o,this.name=t,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(t=>n===t);o!==-1&&this.children.splice(o,1)}destroy(){const n=[...this.children];this.children=[],n.forEach(o=>o.destroy()),this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.callbacks.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,o,t){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=n.uniqueId,a={matched:n,action:o,args:t};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(o=>{n.push(o)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let t=!1;return!o.name||o.name==="*"||o.name==="+"||Kn(o.name)&&n&&o.name.test(n)?t=!0:typeof o.name=="function"?t=Reflect.apply(o.name,null,[n]):o.name===n&&(t=!0),t}trigger(n,o,t){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...t]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...t])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(r)}pull(){let n=this.parent;for(;n;){const o=n.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.forEach(t=>{if(this.isMatched(this.name,t.matched))try{this.trigger(t.matched,t.action,t.args)}catch(r){console.error(r)}}),n=n.parent}}emit(n,o,...t){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const i=n.resolve,s=n.uniqueId??"",u=(...c)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...c)};n.resolve=u}n.cachePolicy="None"}let r=!1;!n.name||n.name==="*"?r=!0:n.name==="+"?(r=!1,n.name="*"):Kn(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.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,[...t]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...t]);u!=null&&a.push(u)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...a),n.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},o,...t]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(n,o,...t){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,o,t),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,o,t)){const a=n.resolve,i=n.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};n.resolve=s}n.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...t]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function sn(e,n,o,t){const r=new tl(n,e,o);if(t&&typeof t=="object")for(const a in t)r.on(a,t[a]);return r}function xa(e,n,o){const t=o;if(t[ye])return t[ye];const r=l.inject(ye,null),a=new tl(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return t[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),t[ye]=void 0}),a}function Dt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const mt=e=>e.default??e;class Sa{error(n,o){const t=o,r=o||l.hasInjectionContext()?Dt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof t.setErrorTip=="function"&&t.setErrorTip(n)}reset(n){const o=n,t=n||l.hasInjectionContext()?Dt(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,t=n||l.hasInjectionContext()?Dt(n):null;t?t.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,t){Array.isArray(n)||(n=[n]);const r=t,a=t||l.hasInjectionContext()?Dt(t):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=n.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(t))}getValue(n){return n.modelValue}}let Ft=new Sa;function Ta(e){Ft=e}function Ca(e){Ft?Object.assign(Ft,e):Ft=e}function $a(e,n){mt(ht).setValidator(e,n)}function Na(e){mt(ht).deleteValidator(e)}let sr=["blur","clear"];function Ea(e){sr=e}function ur(){return sr}let cr=["focus","change","setValue"];function ka(e){cr=e}function fr(){return cr}function Pa(e){mt(ht).messages(e)}function It(...e){const n=[];return e.forEach(o=>{o.forEach(t=>{const r=n.findIndex(a=>a.type===t.type);r!==-1&&n.splice(r,1),n.push(t)})}),n}function Kt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class dr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,t){this.parent=n,this.descriptor=o,this.proxy=t,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Kt(It(this.attrRules,this.rules)),t=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),t.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};t.push(u)}}this.attrRules=Kt(t);const r=It(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(n,...o){const t=this.descriptor.validateHandler;if(t&&typeof t[n]=="function")return Reflect.apply(t[n],t,[...o]);const r=Ft;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,t=!1){t?mt(ht).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?mt(ht).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return mt(ht).hasValidator(n);{let t=Reflect.has(this.validators,n);return!t&&this.parent!==null&&(t=this.parent.hasValidator(n,!1)),t}}setRule(n){const o=It(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Kt(n):this.rules=Kt([n]);const t=It(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(t,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=It(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${t}`]:o},a=this.getValue(),i={[`${t}`]:a},s=mt(ht),u=new s(r),c=this.proxy??i;return u.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function un(e,n,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 dr(n,o,e)}const Qt=Symbol.for("EventEmitterKey");class hr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let t=this.register.get(n);if(t&&Array.isArray(t)){let r=t.findIndex(a=>a===o);r!==-1&&t.splice(r,1)}}on(n,o){let t=this.register.get(n);t||(t=new Array,this.register.set(n,t)),t.push(o)}emit(n,...o){const t=this.register.get(n);t&&t.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function vt(e,n){let o=null;return function(...t){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...t])},n)}}function mr(e,n){let o=0;return function(...t){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...t]))}}function Ia(e,n){const o=vt((t,r)=>{e=t,r()},n);return l.customRef((t,r)=>({get(){return t(),e},set(a){o(a,r)}}))}function Oa(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function cn(e,n,o,t=0,r=!0,a){let i=n,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+=t,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),yt=Symbol("DataItemsKey");class fn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=l.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const t in n){const r=n[t];o.length>0&&o.indexOf(r)!==-1||(this._props[t]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const t=this._props[n];if(t!=null)return t}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let t=this;for(;t!=null;){if(Reflect.has(t._props,n)){const r=t._props[n];o.push(r)}t=t._parent}return o}}const Va=new fn;function wt(){return Va}function ct(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const Wt=Symbol("OriginalDateKey");function nl(e,n,o=[],t){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=wt());const s=e||n.prop||n.name;let u=new fn(s);u.parent=i;const c=C=>{a[Wt]||y(C),u?.set("modelValue",C)},f=()=>u?.getForSelf("modelValue")??null,d=()=>a[Wt]??null,y=C=>{const g={};pt(!0,g,l.toRaw(C)),a[Wt]=g};if(l.isReactive(n)||typeof n=="function"?l.watch(n,C=>{u?.merge(C,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&y(n.modelValue),a[Le]=u,l.provide(Le,u),r!==null){const C=l.inject(ye,null),g=sn(a,C,s,t);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(S,b,...P)=>Reflect.apply(g.emit,g,[S,b,...P]);const h=l.inject(Ke,null),m=un(a,h,{componentName:""});u.validateSchema=m,a[Ke]=m,l.provide(Ke,m),a[yt]=new Map,a.validate=(S=!0)=>{const b=[];let P=null;const z={deep:!1};if(S===!0)P={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;P={name:B=>B?L.indexOf(B)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(z,L),Array.isArray(L.include)&&L.include.length>0){const B=L.include;P={name:V=>V?B.indexOf(V)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const B=L.exclude;P={name:V=>V?B.indexOf(V)===-1:!1}}else P={name:"*"}}if(P){const L=g?.emitToChildren(P,"validate",z);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let B=[];return L.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(B=[...B,...V.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,P=!1)=>{if(P===!0){Reflect.ownKeys(S).forEach(L=>{let B=String(L);const V={componentName:"",fieldName:B,pureDataValidate:!0};if(u){const A=pr(u,B,V,g,m);a[yt].set(B,A);const N=S[B];N&&A.validateSchema.setRule(N)}});return}if(b){const z=Reflect.ownKeys(S),L={name:B=>z.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const P=S;b={name:z=>z?P.indexOf(z)!==-1:!1}}else if(S!=null&&typeof S=="object"){const P=S;if(Array.isArray(P.include)&&P.include.length>0){const z=P.include;b={name:L=>L?z.indexOf(L)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const z=P.exclude;b={name:L=>L?z.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=f();if(!b)return;const P={};if(pt(!0,P,d()??{}),Array.isArray(S))S.forEach(z=>{b[z]=P[z]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=P[L]});else if(S&&Array.isArray(S.exclude)){let z=S.exclude??[];Reflect.ownKeys(P).forEach(L=>{z.includes(L)||(b[L]=P[L])})}else Object.assign(b,P);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[Ke]=void 0,l.provide(Ke,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Le]=void 0,l.provide(Le,null),a[yt]&&(a[yt].clear(),a[yt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a[Wt]=null,u=null,a=null}),u}function gr(e,n,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=wt());const i=e||n.prop||n.name;let s=new fn(i);return s.parent=a,l.isReactive(n)||typeof n=="function"?l.watch(n,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(n,o),r[Le]=s,l.provide(Le,s),l.onUnmounted(()=>{s?.destroy(),r[Le]=void 0,l.provide(Le,null),s=null,r=null}),s}function $e(e,n,o){const r=l.getCurrentInstance()?.proxy,a=n??"",i=l.inject(ye,null);let s=sn(r,i,a,o);r[ye]=s,l.provide(ye,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(Ke,null);e.fieldName=e.fieldName??a;let c=un(r,u,e);r[Ke]=c,l.provide(Ke,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,P=b.ignoreDisabled??!0,z=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;P===!0&&e.disabled===!0||z===!0&&e.readonly===!0||L===!0&&an(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 P={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const z=g;b={name:L=>L?z.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const z=g;if(Object.assign(P,z),Array.isArray(z.include)&&z.include.length>0){const L=z.include;b={name:B=>B?L.indexOf(B)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const L=z.exclude;b={name:B=>B?L.indexOf(B)===-1:!1}}else b={name:"*"}}if(b&&s){const z=s.emitToChildren(b,"validate",P);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let P=[];return b.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(P=[...P,...z.errors])}),P.length>0?{pass:!1,errors:P}:{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(n??"")!==-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 hr(r);r[Qt]=f;const d=vt((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ur()).forEach(g=>{f&&f.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fr()).forEach(g=>{f&&f.on(g,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ye]=void 0,l.provide(ye,null),s=null,c?.destroy(),r[Ke]=void 0,l.provide(Ke,null),c=null,f?.destroy(),r[Qt]=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 pr(e,n,o,t,r){const a={},i=n??"",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=un({},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 y=!1,C=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)C=!0,y=!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),C=!0,y=g.deep??!1}else typeof f=="boolean"&&(y=f),C=!0;if(C&&u){const g=u.validate();d.push(g)}if(y){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=sn(null,t,i,a);return l.onUnmounted(()=>{u=null,c=null}),{broadcast:c,validateSchema:u}}function vr(){let n=l.getCurrentInstance()?.proxy,o=new hr(n);return n[Qt]=o,l.onUnmounted(()=>{o?.destroy(),n[Qt]=void 0,o=null,n=null}),{emitEvent:(t,...r)=>{o&&Reflect.apply(o.emit,o,[t,...r])},onEvent:(t,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(t,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,n)}px`:"";function he(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n: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*n;const t=Number(e);return isNaN(t)?0:t}const ut="PageStateKey";function Xe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function Wn(e,n,o={},t=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=Xe(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=Xe(o.footerPadding??n.footerPadding),e.contentPadding=Xe(o.contentPadding??n.contentPadding),t){const u=o.height??n.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??n.width??0,r)}}function yr(e,n={}){const o={top:null,left:null,bottom:null,right:null},t={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")??{},n.safeAreaInset??{});r&&(t.safeAreaTop=he(r.top),t.safeAreaBottom=he(r.bottom),t.safeAreaLeft=he(r.left),t.safeAreaRight=he(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;Wn(t,a,n,!0,i,s,u,c);const f=l.reactive(t),d=e.getForParent(ut);d&&(t.height=Jt(e,d),t.width=en(e,d),l.watch([()=>Jt(e,d),()=>en(e,d)],([C,g])=>{f.height=C,f.width=g}));const y=!d;return l.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,g,h=-1,m=-1,S=0,b=0])=>{Wn(f,g,n,y,h,m,S,b)}),e.set(ut,f),f}function dn(e){return e.get(ut)}function Mt(e,n){if(n=n??e.get(ut),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Lt(e,n){if(n=n??e.get(ut),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Jt(e,n){if(n=n??e.get(ut),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Mt(e,n),t=Lt(e,n);return n.height-o-t-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function en(e,n){return n=n??e.get(ut),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Da(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function Fa(e){return!!e.getForParent(ut)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Pn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Re(e,n,o=1,t){const r=ct();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(n);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Pn(u,t))return u}const i=e.value;return Pn(i,t)?i:null}):l.computed(()=>{const a=e.value;return Pn(a,t)?a:r?.get(n)})}function Ae(e){return Re(e,"readonly",0,function(o){return se(o)})}function Me(e){return Re(e,"disabled",0,function(o){return se(o)})}function me(e,n="modelValue",o=null,t){const r=l.toRef(e,n);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,t&&t("setValue",u))}else s!==i.value&&(i.value=s,t&&t("setValue",s))}),i}const br=new Map,tn=new Map;let Yn=null;function Ra(e){Yn=e}function wr(e,n,o){if(o){let t=tn.get(o);t||(t=new Map,tn.set(o,t)),t.set(e,n)}else br.set(e,n)}function We(e,n,o){!o&&Yn&&(o=Yn(e)??void 0);let t=null;if(o){let r=tn.get(o);r&&(t=r.get(n))}return t||(t=br.get(n)),t}function Aa(e,n){for(let o in e){const t=e[o];wr(o,t,n)}}function Ma(e){tn.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ba(e=0,n=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:t-he(e,t)-he(n,t)};return{rootWidth:o,rootHeight:t,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function _a(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class qa{packages;installers;_version;get version(){return this._version}constructor(n,o,t){this.packages=n,this.installers=o,this._version=t}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=_a(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const t=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=wt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mr(()=>{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)t.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const t=n.headerBarHeight??0,r=n.footerBarHeight??0,a=pt({},La(),n.safeAreaInset),i=Ba(t,r),s=pt({},i.pageLayout,n.pageLayout);o=o??wt(),o.set("safeAreaInset",a),o.set("headerBarHeight",t),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ra(n)}setAPI(n,o,t){wr(n,o,t)}getAPI(n,o,t){return We(n,o,t)}batchSetAPI(n,o){Aa(n,o)}clearScopeAPI(n){Ma(n)}getRootDomain(){return wt()}}const ja=[w.ElAffix,w.ElAlert,w.ElAutocomplete,w.ElAutoResizer,w.ElAvatar,w.ElBacktop,w.ElBadge,w.ElBreadcrumb,w.ElBreadcrumbItem,w.ElButton,w.ElButtonGroup,w.ElCalendar,w.ElCard,w.ElCarousel,w.ElCarouselItem,w.ElCascader,w.ElCascaderPanel,w.ElCheckTag,w.ElCheckbox,w.ElCheckboxButton,w.ElCheckboxGroup,w.ElCol,w.ElCollapse,w.ElCollapseItem,w.ElCollapseTransition,w.ElColorPicker,w.ElConfigProvider,w.ElContainer,w.ElAside,w.ElFooter,w.ElHeader,w.ElMain,w.ElDatePicker,w.ElDescriptions,w.ElDescriptionsItem,w.ElDialog,w.ElDivider,w.ElDrawer,w.ElDropdown,w.ElDropdownItem,w.ElDropdownMenu,w.ElEmpty,w.ElForm,w.ElFormItem,w.ElIcon,w.ElImage,w.ElImageViewer,w.ElInput,w.ElInputNumber,w.ElLink,w.ElMenu,w.ElSubMenu,w.ElMenuItem,w.ElMenuItemGroup,w.ElPageHeader,w.ElPagination,w.ElPopconfirm,w.ElPopover,w.ElPopper,w.ElProgress,w.ElRadio,w.ElRadioButton,w.ElRadioGroup,w.ElRate,w.ElResult,w.ElRow,w.ElScrollbar,w.ElSelect,w.ElOption,w.ElOptionGroup,w.ElSelectV2,w.ElSkeleton,w.ElSkeletonItem,w.ElSlider,w.ElSpace,w.ElSteps,w.ElStep,w.ElSwitch,w.ElTable,w.ElTableColumn,w.ElTableV2,w.ElTabs,w.ElTabPane,w.ElTag,w.ElTimePicker,w.ElTimeSelect,w.ElTimeline,w.ElTimelineItem,w.ElTooltip,w.ElTransfer,w.ElTree,w.ElTreeSelect,w.ElTreeV2,w.ElUpload],za=[w.ElInfiniteScroll,w.ElLoading,w.ElMessage,w.ElMessageBox,w.ElNotification,w.ElPopoverDirective],Ha=(e,n={})=>{const o=n.componentPrefix??"fox",t=o[0].toUpperCase()+o.slice(1);ja.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${t}${a.slice(2)}`,e.component(a,r)):e.use(r)}),za.forEach(r=>{e.use(r)})};function ce(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=t=>{t.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Ne(e,n=null){if(n||(n=l.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Se={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},xr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Sr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Tr=[];for(const e in Sr)Tr.push(e);const Ka=Symbol.for("InnerPageScopeKey"),Wa={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}},Ya=(e,n)=>({inheritAttrs:!0,props:{...Se,...xr,...Wa},setup(o,{slots:t}){const r=nl(o.name,o),a=l.inject(Ka,!1);if(r){const f=yr(r,o);Ne({getPageContentHeight:()=>Jt(r,f),getPageContentWidth:()=>en(r,f),getPageHeaderHeight:()=>Mt(r,f),getPageFooterHeight:()=>Lt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),c=(f,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(f,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,d],[y,C])=>{if(f&&y){const g=l.toRaw(y),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),c(h)}if(d&&C){const g=l.toRaw(C),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,[t?.default?.()])}}}),{componentName:Ua,create:Ga,scope:Nh}=ce("page"),ll=Ga(Ya(Ua));function hn(e){const n=l.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function ol(e){const n=l.unref(e),o=window.getComputedStyle(n,null),t=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:n.clientWidth-t-r,height:n.clientHeight-a-i}}const Xa=(e,n,o,t=!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=ct(),s=i?dn(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?he(r.height):null,y=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=Xe(r.padding??s.headerPadding);return Object.assign(k,T),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(T.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),r.padding){const T=Xe(r.padding);Object.assign(k,T)}return k}),C=l.ref(null),g=()=>{if(s&&C.value&&!an(C.value)){if(!t){const k=hn(C.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(cn(g,50,5,50,!0),window.ResizeObserver&&C.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(C.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const k={};return y.value.height!==null&&y.value.height!==void 0&&(k.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(k.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(k.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(k.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(k.paddingBottom=`${y.value.bottom}px`),k}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function P(){a.emit("click-title")}function z(){a.emit("click-right")}function L(){a.emit("click-right-text")}const B=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const T=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);k.push(T)}else if(r.leftIcon){const T=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);k.push(T)}if(r.leftText){const T=l.h("view",{class:"left-text",onClick:b},[r.leftText]);k.push(T)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},V=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const T=l.h("view",{class:"right-text",onClick:L},[r.rightText]);k.push(T)}if(a.slots.rightIcon){const T=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(T)}else if(r.rightIcon){const T=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);k.push(T)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},A=()=>{if(!r.titleShow)return null;const k=[],T=a.slots.default?a.slots.default():null;if(T)k.push(T);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:P},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:P},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},N=()=>{const k=[],T=a.slots.bottom?a.slots.bottom():null;return T&&k.push(T),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!S.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],E=B();E&&j.push(E);const O=A();O&&j.push(O);const F=V();if(F&&j.push(F),j.length>0){const Y=l.h("view",{class:f.value},j);k.push(Y)}const U=N();U&&k.push(U)}if(k.length===0)return null;const T={class:c.value,style:m.value,ref:C};return l.h("view",T,k)}}}),{componentName:Za,create:Qa,scope:Ja}=ce("header-bar"),rl=Qa(Xa(Za,Ja,Pe.ArrowLeft));function ei(e,n,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(t,r){const a=ct(),i=a?dn(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${t.align}`]:!0,[`${g}--border`]:t.border,[`${g}--fixed`]:t.fixed,[`${g}--safe-area-inset-bottom`]:t.safeAreaInsetBottom}}),u=t.height!==null&&t.height!==void 0?he(t.height):null,c=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Xe(t.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),t.padding){const h=Xe(t.padding);Object.assign(g,h)}return g}),f=l.ref(null),d=()=>{if(i&&f.value&&!an(f.value)){if(!o){const g=hn(f.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(cn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(f.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const C=l.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=ke(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=ke(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=ke(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=ke(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=ke(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:C.value};return l.h("view",h,g)}}}}const{componentName:ti,create:ni,scope:Eh}=ce("footer-bar"),al=ni(ei(ti));function li(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const t=ct(),r=l.computed(()=>({[e]:!0})),a=t?dn(t):null,i=l.computed(()=>{const c={};if(t&&a){if(o.padding){const C=Xe(o.padding);Object.assign(a.contentPadding,C)}const f=Mt(t,a),d=Lt(t,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,c.height=y,a.contentPadding.top||f>0){const C=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${f+C}px`}if(a.contentPadding.bottom||d>0){const C=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${d+C}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=Xe(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=ol(s.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return l.onMounted(()=>{u()}),t&&a&&l.watch([()=>Mt(t),()=>Lt(t)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:oi,create:ri,scope:kh}=ce("content"),ai=ri(li(oi));function ii(e,n,o,t,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 je=(e,n)=>{const o=e.__vccOpts||e;for(const[t,r]of n)o[t]=r;return o},il=je(ai,[["render",ii]]),Tt="GroupStateKey",Cr=Symbol.for("GroupScopeKey");function mn(){return l.inject(Cr,!1)}function gn(e=!0){l.provide(Cr,e)}function si(e,n={}){Reflect.ownKeys(n).forEach(t=>{if(typeof t!="string")return;const r=n[t];el(r)||(e[t]=r)})}function ui(e,n={}){const t={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};si(t,n);const r=l.shallowRef(t),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(Tt,a),a}function In(e,n,o=-1,t=-1,r=!1,a,i,s){const u=e.get(Tt);if(!u)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),t===-1&&(t=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const f=he(a),d=he(i);s||(s=c.type??"grid");const y=()=>{const C=n===""||n===-1,g=he(n);let h=xe(o);const m=he(t);if(!C){let P=(g-(h-1)*m)/h;for(;d!==-1&&P>d;)h++,P=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&P<f;)h--,P=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=n,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const C=++u.passport;setTimeout(()=>{C===u.passport&&y()},50)}}function pn(e,n=!1){let o;return n?o=e.getForParent(Tt):o=e.get(Tt),o.layout}function vn(e,n=!1){let o;return n?o=e.getForParent(Tt):o=e.get(Tt),o.order}function lo(e,n=1){if(n==="stretch")return-1;const o=xe(n);return o===-1?100:100*o/e}function yn(e,n,o=1,t=0,r){const a={};let i=0;r?i=he(r):i=lo(n.column,o),i>0&&(a.width=`${i}%`);const s=lo(n.column,t);s>0&&(a["margin-left"]=`${s}%`);const u=n.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function bn(e,n,o=1,t=0){if(o==="stretch"){const u=e.index%n.column,c=u+(n.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%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const a=xe(t)%n.column;let i=(e.index+a)%n.column,s=i+r;return s>n.column?(i=0,s=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const $r=Symbol("RollingStateKey");function ci(e){l.provide($r,e)}function fi(){return l.inject($r,null)}function Un(e){let n=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"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function di(e){let n=Un(e);if(n<=0){const o=e.cloneNode(!0),t=e.offsetWidth;o.style=`width: ${t}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Un(o),document.body.removeChild(o)}return n}function hi(e,n,o){if(e<=0)return"1fr";const t=(e-(n-1)*o)/n;return t>0?`${t}px`:"1fr"}const mi={...Se,...xr,...Sr};function gi(e,n,o){return{props:mi,emits:["update:collapse","header-click"],setup(t,r){const a=nl(t.name,t,Tr),i=ui(a,{type:t.type}),s=mn();gn(!0);const u=t.rollingDisplay?fi():null,c=l.ref(null),f=l.computed(()=>t.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?pn(a,!0).value:null),y=l.getCurrentInstance(),C=(H,J=!1)=>{const le=y?.proxy;le&&typeof le.setNameValidateRules=="function"&&le.setNameValidateRules(H,!0,J)};l.watch([()=>t.rules,()=>t.pureDataRules],([H,J],[le,$])=>{if(H&&le){const p=l.toRaw(le),W=l.toRaw(H),ee=W?Reflect.ownKeys(W):[];(p?Reflect.ownKeys(p):[]).forEach(ie=>{ee.includes(ie)||(W[ie]=[])}),C(W)}if(J&&$){const p=l.toRaw($),W=l.toRaw(J),ee=W?Reflect.ownKeys(W):[];(p?Reflect.ownKeys(p):[]).forEach(ie=>{ee.includes(ie)||(W[ie]=[])}),C(W,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=F.value;const J=s?vn(a,!0):null;if(d.value&&J){if(d.value.type==="grid"){const le=bn(J,d.value,t.span,t.offset);Object.assign(H,le)}else if(d.value.type==="flow"){const le=yn(J,d.value,t.span,t.offset,t.width);Object.assign(H,le)}}else if(t.width){const le=ke(t.width);H.width=le}return H}),m=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${t.justify}`]:!0,[`${g}--${H}-align-${t.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let J="";if(t.columnWidth)J=`repeat(auto-fill, ${t.columnWidth})`;else{const le=hi(A.value,i.layout.value.column,i.layout.value.gutter);J=`repeat(${i.layout.value.column}, ${le})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":J}}}),b=l.toRef(t,"gutter"),P=l.toRef(t,"column"),z=l.computed(()=>s||f.value?!0:se(t.isWrap)),L=[],B=H=>{L.push(H)},V=()=>{let H=L.length;L.splice(0,H)},A=l.ref(-1),N=H=>{const J=ol(H).width;J>0&&J!==A.value&&(A.value=J)};In(a,A.value,P.value,b.value,!0,t.minItemWidth,t.maxItemWidth,t.type),t.autoLayout&&l.watch([A,P,b],([H,J,le])=>{i.order.index=0,In(a,H,J,le,!1,t.minItemWidth,t.maxItemWidth,t.type)});const k=l.computed(()=>U.value?t.expandText??"":t.collapseText??""),T=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),E=l.ref(),O=l.ref(),F=l.computed(()=>Y.value||ke(t.height)||""),U=l.ref(!1),Y=l.ref(""),Q=l.ref(!1);let G=-1;const te=(H,J=!0)=>{const le=E.value;if(le&&U.value!==H){if(G=G===-1?di(le):G,Q.value=!0,J)if(le.style["will-change"]="height",le.ontransitionend=function(){le.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",Q.value=!1)},H){let $=0;t.collapseHeight?$=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&($=O.value.offsetHeight),Y.value=`${G}px`,l.nextTick(()=>{Y.value=`${$}px`})}else Y.value=`${G}px`;else if(H){let $=0;t.collapseHeight?$=t.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&($=O.value.offsetHeight),Y.value=`${$}px`}else Q.value=!1,Y.value=`${G}px`;U.value=H,r.emit("update:collapse",H)}};l.watch(()=>t.collapse,H=>{te(H)});const re=H=>{r.emit("header-click",H)},I=()=>{x()},x=H=>{H=H??!U.value,te(H)};Ne({toggleCollapse:x,doLayout:()=>{L[0]&&(N(L[0]),In(a,A.value,P.value,b.value,!0,t.minItemWidth,t.maxItemWidth,t.type))}});let D=null,v=!0;const K=H=>{if(t.rules){const J=l.toRaw(t.rules);C(J)}if(t.pureDataRules){const J=l.toRaw(t.pureDataRules);C(J,!0)}if(Ze&&(H&&te(se(t.collapse),!1),t.autoLayout&&Array.isArray(L)&&L.length>0)){const J=L[0];N(J),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{N(J)}),D.observe(J))}},q=()=>{D?.disconnect(),D=null},_=!f.value||u?.acquire();_&&(c.value=f.value?!0:null),l.onMounted(()=>{if(_&&(K(v),v=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(E.value,le=>{if(le!==c.value)if(le)c.value=!0,U.value||(Y.value=""),H=setTimeout(()=>{H=null,c.value!==!1&&(K(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),c.value=!1,!U.value)if(v)Y.value=u.initialHeight;else{let $=Un(E.value);$<=0?Y.value=J:(Y.value=`${$}px`,J=Y.value)}v||q()}})}}),l.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve(E.value)});const M=(H="right")=>{const J=[];if(k.value){const p={class:T.value},W=l.h("span",p,[k.value]);J.push(W)}const le={class:j.value},$=o(t.collapseIcon,le);return $&&J.push($),J.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:I},J):null},X=(H,J,le,$)=>{const p={...m.value};return J===0&&(p[`${g}__first`]=!0),le>=$-1&&(p[`${g}__last`]=!0),l.h("div",{ref:B,key:`${J}`,class:p,style:S.value},H)};return()=>{if(f.value&&c.value!==!0){const p=t.tag||"div";return l.h(p,{ref:E,prop:t.name,class:{[`${g}`]:!0,"is-collapse":Q.value},style:h.value},[])}i.order.index=0;const H=[];let J=0;if(r.slots.header){const p={key:`${J++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},W=l.h("div",p,[r.slots.header()]);H.push(W)}else{const p=[],W=t.collapsePosition==="left";if(W&&t.showCollapse){const ee=M("left");ee&&p.push(ee)}if(t.title||r.slots.title){if(t.showMark){const ee={class:{[`${g}__header-mark`]:!0}};t.markColor&&(ee.style={background:t.markColor});const ue=l.h("div",ee);p.push(ue)}if(r.slots.title){const ee=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);p.push(ee)}else if(t.title){const ee=l.h("div",{class:{[`${g}__header-title`]:!0}},[t.title]);p.push(ee)}}if(r.slots.toolbar&&p.push(r.slots.toolbar()),!W&&t.showCollapse){const ee=M("right");ee&&p.push(ee)}if(p.length>0){const ee={key:`${J++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},ue=l.h("div",ee,p);H.push(ue)}}V();const le=r.slots.default?r.slots.default():[],$=i.layout.value.type;if($==="grid"){const p=X(le,J++,0,le.length);H.push(p)}else if($==="flow"){const p=X(le,J++,0,le.length);H.push(p)}else for(let p=0;p<le.length;p++){const W=le[p],ee=X([W],J++,p,le.length);H.push(ee)}if(z.value){const p=t.tag||"div";return l.h(p,{ref:E,prop:t.name,class:{[`${g}`]:!0,"is-collapse":Q.value},style:h.value},[H])}else return H}}}}const{componentName:pi,create:vi,scope:yi}=ce("group"),bi=(e,n)=>(e=e??Pe.ArrowUp,l.h(w.ElIcon,n,{default:()=>[l.h(e)]})),sl=vi(gi(pi,yi,bi));function wi(e){return e===window}const xi=/matrix\((.+)\)/,Nr=e=>{const n=l.unref(e);if(!n)return{x:0,y:0};if(wi(n))return{x:0,y:0};let o=0,t=0,r=n;for(;r!==null;)o+=r.offsetLeft,t+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const f=xi.exec(c);if(f){let y=f[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,t-=i,o+=s,t+=u,{x:o,y:t}};class Si{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ti{monitorRegister=new WeakMap;watch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a||(a=new Si,t.addEventListener("scroll",a.listen),t===document.body&&t.addEventListener("resize",a.listen),this.monitorRegister.set(t,a)),a.add(o),t=t.parentNode}}unwatch(n,o){let t=n.parentNode;const r=document.body.parentNode;for(;t&&t!==r;){let a=this.monitorRegister.get(t);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(t),t.removeEventListener("scroll",a.listen),t===document.body&&t.removeEventListener("resize",a.listen))),t=t.parentNode}}}const Rt=new Ti,Er={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ci,create:$i}=ce("price"),Ni=$i({props:{...Er},setup(e){const n=l.computed(()=>({[Ci]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),t=l.computed(()=>jt(e.price)==0?"":on(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=t.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),Ei=["innerHTML"],ki=["innerHTML"];function Pi(e,n,o,t,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,Ei)):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,ki)):l.createCommentVNode("",!0)],2)}const wn=je(Ni,[["render",Pi]]),{componentName:On,create:Ii}=ce("hint-text"),Oi=Ii({components:{Price:wn},props:{...Er,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=l.ref({top:null,right:null,bottom:null,left:null}),t=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=(T,j,E,O,F,U)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,Q=document.documentElement.clientHeight||document.body.clientHeight,G=T.split("-");let te=[];G[0]==="top"?te=["top","bottom","right","left"]:G[0]==="bottom"?te=["bottom","top","right","left"]:G[0]==="left"?te=["left","top","bottom","right"]:G[0]==="right"&&(te=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let x=0;x<te.length;x++){const R=te[x];if(I[0]=R,G[1]&&(I[1]=G[1]),R==="top"){const D=j.y-U-e.arrowSize-e.offset;if(D>=0){re.top=D;let v=0;G[1]==="start"?v=j.x:G[1]==="end"?v=j.x+E-F:v=j.x+E/2-F/2;const K=Y-v-F;K<0?(v+=K,d.value=-K):d.value=0,re.left=v<0?0:v;break}}else if(R==="bottom"){const D=j.y+O+e.arrowSize+e.offset;if(D+U<=Q){re.top=D;let v=0;G[1]==="start"?v=j.x:G[1]==="end"?v=j.x+E-F:v=j.x+E/2-F/2;const K=Y-v-F;K<0?(v+=K,d.value=-K):d.value=0,re.left=v<0?0:v;break}}else if(R==="left"){const D=j.x-F-e.arrowSize-e.offset;if(D>=0){re.left=D;let v=0;G[1]==="start"?v=j.y:G[1]==="end"?v=j.y+O-U:v=j.y+O/2-U/2,re.top=v<0?0:v;break}}else if(R==="right"){const D=j.x+E+e.arrowSize+e.offset;if(D+F<=Y){re.left=D;let v=0;G[1]==="start"?v=j.y:G[1]==="end"?v=j.y+O-U:v=j.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},f=(T,j,E=10)=>{if(Ze&&!(j===!1||!T)&&e.reference){t.value=Nr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value?.offsetHeight??0,F=u.value?.offsetWidth??0,{bestPlacement:U,bestInsetRect:Y}=c(e.placement,t.value,r.value,a.value,F,O);i.value=U,o.value=Y,s.value=!0}},d=l.ref(0),y=vt(()=>{f(e.message,e.visible)},10),C=l.ref(e.visible);l.watch(()=>e.visible,T=>{C.value=T});const g=l.computed(()=>C.value&&h.value),h=l.ref(!0),m=vt(T=>{const j=T[0];j&&(h.value=j.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([T,j])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Rt.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeUnmount(()=>{Rt.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const T={[On]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),P=l.computed(()=>{const T={};o.value.top!==null&&(T.top=`${o.value.top}px`),o.value.right!==null&&(T.right=`${o.value.right}px`),o.value.bottom!==null&&(T.bottom=`${o.value.bottom}px`),o.value.left!==null&&(T.left=`${o.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${j}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),z=l.computed(()=>{const T=[`${On}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),L=l.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),B=l.computed(()=>({[`${On}__arrow`]:!0})),V=l.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+d.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-d.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+d.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-d.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),A=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:g,tipRef:u,classes:b,styles:P,textClasses:z,textStyles:L,arrowClasses:B,arrowStyles:V,overlayShow:A,overlayStyle:N,onClickOverlay:()=>{C.value=!1,n.emit("update:visible",!1)}}}}),Vi=["innerHTML"];function Di(e,n,o,t,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:n[0]||(n[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 zt=je(Oi,[["render",Di]]);class kr{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Gn={},Fi=new kr,xt=new Map,nn=e=>{if(e){const n=document.getElementById(e);xt.delete(e),n&&(l.render(null,n),n.parentNode?.removeChild(n))}else{for(const n of xt.keys()){const o=document.getElementById(n);o&&(l.render(null,o),o.parentNode?.removeChild(o))}xt.clear()}},Ri=e=>{e.unmount=nn;const n=document.getElementById(e.id);if(n){const o=xt.get(e.id);o?e={...Gn,...o,...e}:e={...Gn,...e},e.transition=!1;const t=l.createVNode(zt,e);return l.render(t,n),e.id}},Ai=e=>{e.unmount=nn;let n=e.id??`hinttext_${Fi.get()}`;e={...Gn,...e},e.id=n,xt.set(n,e);const o=document.createElement("div");o.id=e.id;const t=l.createVNode(zt,e);return l.render(t,o),document.body.appendChild(o),n},Mi=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Fe={show(e,n,o={},t=!0){Mi(n);const r=o.id;return r&&xt.has(r)?Ri({...o,message:n,reference:e}):(t&&nn(),Ai({...o,message:n,reference:e}))},hide(e){nn(e)},install(e){e.config.globalProperties.$hintText=Fe}};function Li(e,n,o,t=!1){return{inheritAttrs:!0,props:{...Se,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const s=ct(),u=mn();gn(!1);const c=l.computed(()=>u&&s?pn(s,!1).value:null),f=e,d=l.ref(null),y=l.computed(()=>{const $={[f]:!0,[`${f}__gutter`]:c.value&&c.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if($[r.errorMarkClass]=!!U.value,$[r.warnMarkClass]=!!O.value,$[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const p=d.value(i);$[p]=!0}else if(typeof d.value=="string"){const p=d.value;$[p]=!0}return $}),C=l.ref(null),g=l.computed(()=>{const $={};if(r.width)r.width!=="auto"&&($.width=ke(r.width));else{const p=u&&s?vn(s,!1):null;if(c.value&&p){if(c.value.type==="grid"){const W=bn(p,c.value,r.span,r.offset);Object.assign($,W)}else if(c.value.type==="flow"){const W=yn(p,c.value,r.span,r.offset,r.width);Object.assign($,W)}}}if(typeof C.value=="function"){const p=C.value(i);p&&Object.assign($,p)}else if(C.value&&typeof C.value=="object"){const p=C.value;Object.assign($,p)}return $}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:$=>{h.value=$}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=Re(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),P=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),z=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${P.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${P.value}`]:!0})),B=Re(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),V=l.computed(()=>B&&B.value?{width:ke(B.value)}:{}),A=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),T=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ne({setRequired($){m.value=$},setErrorTip($){T.errorTip=$},setErrorIcon($){T.errorIcon=$},setWarnTip($){T.warnTip=$},setWarnIcon($){T.warnIcon=$},setInfoTip($){T.infoTip=$},setInfoIcon($){T.infoIcon=$},setCustomClassName($){d.value=$},setCustomStyle($){C.value=$}});const j=l.computed(()=>r.infoTip||T.infoTip),E=l.computed(()=>r.infoIcon||T.infoIcon),O=l.computed(()=>r.warnTip||T.warnTip),F=l.computed(()=>r.warnIcon||T.warnIcon),U=l.computed(()=>r.errorTip||T.errorTip),Y=l.computed(()=>r.errorIcon||T.errorIcon),Q=l.computed(()=>U.value?"error":O.value?"warn":j.value?"info":""),G=()=>Q.value.length>0,te=l.computed(()=>Q.value==="error"?U.value:Q.value==="warn"?O.value:Q.value==="info"?j.value:""),re=l.computed(()=>Q.value==="error"?Y.value:Q.value==="warn"?F.value:Q.value==="info"?E.value:null),I=l.computed(()=>{const $={[`${f}__tip`]:!0,[`${f}__tip--${Q.value}`]:!0,[`${f}--animate`]:!0};return Q.value==="error"&&r.errorClass?$[`${r.errorClass}`]=!0:Q.value==="warn"&&r.warnClass?$[`${r.warnClass}`]=!0:Q.value==="info"&&r.infoClass&&($[`${r.infoClass}`]=!0),$}),x=l.computed(()=>{const $={};return b&&b.value==="top"||!S()?$["padding-left"]="0px":B&&B.value&&($["padding-left"]=ke(B.value)),$}),R=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([$,p,W,ee])=>{R.value&&($&&!ve(p)?D?o.show(R.value,p,{...ee,id:D,type:W},!0):D=o.show(R.value,p,{...ee,type:W},!0):o.hide(D))});let v=null;const K=()=>{v||!R.value||(v=new IntersectionObserver($=>{let p=!1;for(let W of $)if(W.intersectionRatio>0){p=!0,p&&a.emit("appear",W);break}p||a.emit("disappear")}),v.observe(R.value))},q=()=>{v&&(R.value&&v.unobserve(R.value),v.disconnect(),v=null)};l.watch(()=>se(r.appearListen),$=>{$?K():q()}),l.onMounted(()=>{se(r.appearListen)&&K()}),l.onUnmounted(()=>{q(),D&&o.hide(D)});const _=()=>{if(!S())return null;const $=[],p=a.slots?.label?.()??r.label,W={class:A.value},ee=l.h("div",W,[p]);if($.push(ee),a.slots.fixedPreTip){const ie=a.slots.fixedPreTip();$.push(ie)}const ue={class:L.value,style:V.value};return l.h("div",ue,$)},M=()=>{const $=[];if(a.slots.prepend){const W=a.slots.prepend();$.push(W)}if(a.slots.default){const W=a.slots.default();$.push(W)}if(a.slots.append){const W=a.slots.append();$.push(W)}if(a.slots.fixedTip){const W={class:[`${f}__fixed-tip`]},ee=l.h("div",W,[a.slots.fixedTip()]);$.push(ee)}const p={ref:R,class:N.value,style:k.value};return l.h("div",p,$)},X=()=>{const $=re.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--icon"},[$()]):l.h("div",{class:"fox-item__tip--icon"},[l.h($)]):null},H=()=>{const $=te.value;return $?typeof $=="function"?l.h("div",{class:"fox-item__tip--text"},[$()]):l.h("div",{class:"fox-item__tip--text"},[$]):null},J=()=>{if(!G())return null;const $=[],p=X();p&&$.push(p);const W=H();W&&$.push(W);const ee={class:I.value,style:x.value};return l.h("div",ee,$)},le=()=>a.slots?.hide?.()??null;return()=>{const $=[],p=[],W=_();W&&p.push(W);const ee=M();ee&&p.push(ee);const ue={class:z.value},ie=l.h("div",ue,p);$.push(ie);const fe=J();fe&&$.push(fe);const be=le();be&&$.push(be);const Ye={class:y.value,style:g.value,prop:r.prop};return l.h("div",Ye,$)}}}}const{componentName:Bi,create:_i,scope:qi}=ce("item"),Te=_i(Li(Bi,qi,Fe,!1));function ji(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,t){const r=ct(),a=mn();gn(!1);const i=l.computed(()=>a&&r?pn(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?vn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=bn(d,i.value,o.span,o.offset);Object.assign(f,y)}else if(i.value.type==="flow"){const y=yn(d,i.value,o.span,o.offset,o.width);Object.assign(f,y)}else return o.width&&(f.width=ke(o.width)),f;else o.width&&(f.width=ke(o.width));return f});return()=>{const f={class:u.value,style:c.value};return t.slots&&typeof t.slots.default=="function"?l.h("div",f,t.slots.default()):l.h("div",f)}}}}const{componentName:zi,create:Hi,scope:Ph}=ce("slot-item"),ul=Hi(ji(zi));function Ki(e,n){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,t){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=ct(),s=mn();gn(!1);const u=l.computed(()=>{const c={};if(s&&i){const f=pn(i,!1),d=vn(i,!1);if(f.value&&d)if(f.value.type==="grid"){const y=bn(d,f.value,o.span,o.offset);Object.assign(c,y)}else if(f.value.type==="flow"){const y=yn(d,f.value,o.span,o.offset,o.width);Object.assign(c,y)}else o.width&&(c.width=ke(o.width))}else o.width&&(c.width=ke(o.width));return c});return()=>{const c=[];if(t.slots.default){const d=t.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const C=l.h("div",{class:{[`${r}__divide`]:!0}});c.push(C)}c.push(d[y])}else Reflect.apply([].push,c,d)}const f={class:a.value,style:u.value};return l.h("div",f,c)}}}}const{componentName:Wi,create:Yi,scope:Ih}=ce("row-item"),cl=Yi(Ki(Wi)),Je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(t=>{typeof t=="string"&&t.indexOf("data-fox")!==0&&(n[t]=e[t])}),n},oo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:[Boolean,String],default:!1}};function Ui(e,n,o){return{props:{...Se,...Oe,...oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=E=>{d.value=E,s("update:modelValue",E),s("input",E)},h=E=>{s("change",E)};let m=me(t,"hintText"),S=l.ref(!1);const b=E=>{let F=E.target.value;f.value=!0,ve(m.value)||(S.value=!0),s("focus",F,E)},P=E=>{setTimeout(()=>{S.value&&(S.value=!1),f.value=!1},0);let F=E.target.value;t.maxLength&&F.length>Number(t.maxLength)&&(F=F.slice(0,Number(t.maxLength))),s("blur",F,E)},z=()=>{s("clear","")},L=l.ref(!1);let B=null;const V=()=>{se(t.showTooltip)&&L.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{L.value=!0},150))},A=()=>{B&&(clearTimeout(B),L.value=!1,B=null)},N=l.computed(()=>L.value||S.value),k=l.computed(()=>L.value?d.value:m.value),T=l.computed(()=>jt(t.unit)>0),j=l.ref();return Ne({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const O={...Je(r.attrs),ref:j,class:C.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:z,onChange:h,onInput:g,onFocus:b,onBlur:P,onMouseover:V,onMouseleave:A},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:T.value&&(F.suffix=()=>[t.unit]);const U=[],Y=l.h(w.ElInput,O,F);U.push(Y);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.default&&(Q.fixedTip=r.slots.fixedTip);const te={...Ie(t,oo),hintText:k.value,hintVisible:N.value,prop:`${t.prop}_item`};return l.h(o,te,Q)}}}}const{componentName:Gi,create:Xi,scope:Zi}=ce("input-item"),fl=Xi(Ui(Gi,Zi,Te));function st(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Bt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Pr(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Qi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Ji=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function es(){const e=l.getCurrentInstance();return new Ji(e.proxy)}function Ir(e,n,o){const t=st(e,n),r=st(e,o);if(t!==r)return!1;const a=Bt(e,n),i=Bt(e,o);return a===i}function Or(e,n,o,t){if(t.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){const s=Pr(e,i);if(Array.isArray(s)&&s.length>0){const u=Or(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=st(e,i)===a;else if(o==="item")u=Ir(e,i,a);else{let c=Bt(e,i);c==null&&(c=st(e,i)),u=c===a}if(u){r.push(i);break}}}}),r}function ts(e){return{text:e,value:e}}const ro={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 ns(e,n,o){return{props:{...Se,...Oe,...ro},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(X=>st(t,X)).join(" "):""),C=(M,X,H,J=!0)=>{if(H.length==0){J&&(s("update:modelValue",M),s("change",M)),f.value=M;return}const le=Or(t,M,X,H);if(le===null){if(d.value===null||d.value.length===0)return;f.value=null,d.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let $=!0;if(le.length!==d.value.length)$=!1;else for(let p=0;p<le.length;p++){const W=le[p],ee=d.value[p];if(!Ir(t,W,ee)){$=!1;break}}if(!$){d.value=le;let p=[],W=[],ee=[];le.forEach(be=>{const Ye=Bt(t,be),Ue=st(t,be);p.push(Ye),ee.push(Ue),t.valueType==="text"?W.push(Ue):t.valueType==="item"?W.push(be):W.push(Ye)});let ue,ie,fe;se(t.multiple)?(f.value=p,ue=l.toRaw(W),ie=ee,fe=l.toRaw(le)):(f.value=p[0]??"",ue=l.toRaw(W[0]??""),ie=ee[0]??"",fe=l.toRaw(le[0])),J&&(s("update:modelValue",ue),s("change",ue,fe)),s("update:text",ie)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,M=>se(M)),b=es(),P=async(M,X)=>{if(M){const H=await b.load("select",M,X);if(H.length>0)if(typeof H[0]=="string"){let $=H.map(p=>ts(p));g.value=$}else g.value=H;else g.value=null}};l.watch([()=>t.source,()=>t.params],([M,X])=>{h.value=null,P(M,X)},{immediate:!S.value});let z=!1;const L=()=>{z||(z=!0,P(t.source,t.params))};l.watch([()=>g.value,()=>t.modelValue],([M,X])=>{if(N()&&se(t.multiple)){lt(X,f.value)||(f.value=X);return}C(X,t.valueType,m.value,!1),s("setValue",X)}),t.source||(f.value=t.modelValue);let B=null,V=l.ref(!1);typeof t.remoteMethod=="function"&&(B=async M=>{if(M==null){h.value=null;return}V.value=!0;try{const X=await t.remoteMethod(M);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}V.value=!1});let A=null;typeof t.filterMethod=="function"&&(A=async M=>{if(M==null){h.value=null;return}V.value=!0;try{const X=await t.filterMethod(M,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}V.value=!1});const N=()=>typeof t.remoteMethod=="function"||typeof t.filterMethod=="function",k=l.ref(!1),T=e,j=l.computed(()=>({[T]:!0})),E=M=>{t.allowCreate||N()&&se(t.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):C(M,"value",m.value,!0)};let O=me(t,"hintText"),F=l.ref(!1);const U=M=>{let H=M.target.value;k.value=!0,ve(O.value)||(F.value=!0),s("focus",H,M)},Y=M=>{setTimeout(()=>{F.value&&(F.value=!1),k.value=!1},0);let H=M.target.value;t.maxLength&&H.length>Number(t.maxLength)&&(H=H.slice(0,Number(t.maxLength))),D.value||s("blur",H,M)},Q=()=>{s("clear","")},G=l.ref(!1);let te=null;const re=()=>{se(t.showTooltip)&&G.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{G.value=!0},150))},I=()=>{te&&(clearTimeout(te),G.value=!1,te=null)},x=l.computed(()=>G.value||F.value),R=l.computed(()=>G.value?y.value:O.value),D=l.ref(!1),v=M=>{D.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},q=(M,X)=>{const H=[];return M.forEach((J,le)=>{const $=Pr(t,J);if(Array.isArray($)&&$.length>0){const p=q($,X),W=st(t,J),ue={key:`${W}_${le}`,label:W};H.push(l.h(w.ElOptionGroup,ue,{default:()=>p}))}else{const p=Bt(t,J),W=st(t,J),ee=Qi(t,J),ie={key:`${p}_${le}`,label:W,disabled:ee,value:p};if(typeof X=="function")H.push(l.h(w.ElOption,ie,{default:()=>X(J)}));else if(t.optionType==="item"){const fe={class:{"fox-select-item__option-left":!0}},be=l.h("span",fe,[p]),Ye={class:{"fox-select-item__option-right":!0}},Ue=l.h("span",Ye,[W]),Ge=l.h("div",{class:{"fox-select-item__option":!0}},[be,Ue]);H.push(l.h(w.ElOption,ie,{default:()=>Ge}))}else t.optionType==="value"?H.push(l.h(w.ElOption,ie,{default:()=>[p]})):H.push(l.h(w.ElOption,ie))}}),H},_=l.ref();return Ne({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()}}),()=>{const X={...Je(r.attrs),ref:_,class:j.value,clearable:se(t.clearable),multiple:se(t.multiple),placeholder:c.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":t.valueKey,"allow-create":t.allowCreate,onClear:Q,onChange:E,onFocus:U,onBlur:Y,onVisibleChange:v,onRemoveTag:K};typeof B=="function"&&(X["remote-method"]=B,X.loading=V.value),typeof A=="function"&&(X["filter-method"]=A,X.loading=V.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>q(m.value,r.slots.option);const J=[],le=l.h(w.ElSelect,X,H);J.push(le);const $={default:()=>J};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const W={...Ie(t,ro),hintText:R.value,hintVisible:x.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(W["appear-listen"]=!0,W.onAppear=L),l.h(o,W,$)}}}}const{componentName:ls,create:os,scope:rs}=ce("select-item"),dl=os(ns(ls,rs,Te));var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){var o=1e3,t=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",y="quarter",C="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("_")},P=function(E,O,F){var U=String(E);return!U||U.length>=O?E:""+Array(O+1-U.length).join(F)+E},z={s:P,z:function(E){var O=-E.utcOffset(),F=Math.abs(O),U=Math.floor(F/60),Y=F%60;return(O<=0?"+":"-")+P(U,2,"0")+":"+P(Y,2,"0")},m:function E(O,F){if(O.date()<F.date())return-E(F,O);var U=12*(F.year()-O.year())+(F.month()-O.month()),Y=O.clone().add(U,d),Q=F-Y<0,G=O.clone().add(U+(Q?-1:1),d);return+(-(U+(F-Y)/(Q?Y-G:G-Y))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:d,y:C,w:f,d:c,D:g,h:u,m:s,s:i,ms:a,Q:y}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},L="en",B={};B[L]=b;var V=function(E){return E instanceof T},A=function E(O,F,U){var Y;if(!O)return L;if(typeof O=="string"){var Q=O.toLowerCase();B[Q]&&(Y=Q),F&&(B[Q]=F,Y=Q);var G=O.split("-");if(!Y&&G.length>1)return E(G[0])}else{var te=O.name;B[te]=O,Y=te}return!U&&Y&&(L=Y),Y||!U&&L},N=function(E,O){if(V(E))return E.clone();var F=typeof O=="object"?O:{};return F.date=E,F.args=arguments,new T(F)},k=z;k.l=A,k.i=V,k.w=function(E,O){return N(E,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function E(F){this.$L=A(F.locale,null,!0),this.parse(F)}var O=E.prototype;return O.parse=function(F){this.$d=function(U){var Y=U.date,Q=U.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var G=Y.match(m);if(G){var te=G[2]-1||0,re=(G[7]||"0").substring(0,3);return Q?new Date(Date.UTC(G[1],te,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)):new Date(G[1],te,G[3]||1,G[4]||0,G[5]||0,G[6]||0,re)}}return new Date(Y)}(F),this.$x=F.x||{},this.init()},O.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},O.$utils=function(){return k},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(F,U){var Y=N(F);return this.startOf(U)<=Y&&Y<=this.endOf(U)},O.isAfter=function(F,U){return N(F)<this.startOf(U)},O.isBefore=function(F,U){return this.endOf(U)<N(F)},O.$g=function(F,U,Y){return k.u(F)?this[U]:this.set(Y,F)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(F,U){var Y=this,Q=!!k.u(U)||U,G=k.p(F),te=function(q,_){var M=k.w(Y.$u?Date.UTC(Y.$y,_,q):new Date(Y.$y,_,q),Y);return Q?M:M.endOf(c)},re=function(q,_){return k.w(Y.toDate()[q].apply(Y.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(_)),Y)},I=this.$W,x=this.$M,R=this.$D,D="set"+(this.$u?"UTC":"");switch(G){case C:return Q?te(1,0):te(31,11);case d:return Q?te(1,x):te(0,x+1);case f:var v=this.$locale().weekStart||0,K=(I<v?I+7:I)-v;return te(Q?R-K:R+(6-K),x);case c:case g:return re(D+"Hours",0);case u:return re(D+"Minutes",1);case s:return re(D+"Seconds",2);case i:return re(D+"Milliseconds",3);default:return this.clone()}},O.endOf=function(F){return this.startOf(F,!1)},O.$set=function(F,U){var Y,Q=k.p(F),G="set"+(this.$u?"UTC":""),te=(Y={},Y[c]=G+"Date",Y[g]=G+"Date",Y[d]=G+"Month",Y[C]=G+"FullYear",Y[u]=G+"Hours",Y[s]=G+"Minutes",Y[i]=G+"Seconds",Y[a]=G+"Milliseconds",Y)[Q],re=Q===c?this.$D+(U-this.$W):U;if(Q===d||Q===C){var I=this.clone().set(g,1);I.$d[te](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else te&&this.$d[te](re);return this.init(),this},O.set=function(F,U){return this.clone().$set(F,U)},O.get=function(F){return this[k.p(F)]()},O.add=function(F,U){var Y,Q=this;F=Number(F);var G=k.p(U),te=function(x){var R=N(Q);return k.w(R.date(R.date()+Math.round(x*F)),Q)};if(G===d)return this.set(d,this.$M+F);if(G===C)return this.set(C,this.$y+F);if(G===c)return te(1);if(G===f)return te(7);var re=(Y={},Y[s]=t,Y[u]=r,Y[i]=o,Y)[G]||1,I=this.$d.getTime()+F*re;return k.w(I,this)},O.subtract=function(F,U){return this.add(-1*F,U)},O.format=function(F){var U=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var Q=F||"YYYY-MM-DDTHH:mm:ssZ",G=k.z(this),te=this.$H,re=this.$m,I=this.$M,x=Y.weekdays,R=Y.months,D=function(_,M,X,H){return _&&(_[M]||_(U,Q))||X[M].slice(0,H)},v=function(_){return k.s(te%12||12,_,"0")},K=Y.meridiem||function(_,M,X){var H=_<12?"AM":"PM";return X?H.toLowerCase():H},q={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:k.s(I+1,2,"0"),MMM:D(Y.monthsShort,I,R,3),MMMM:D(R,I),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:D(Y.weekdaysMin,this.$W,x,2),ddd:D(Y.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(te),HH:k.s(te,2,"0"),h:v(1),hh:v(2),a:K(te,re,!0),A:K(te,re,!1),m:String(re),mm:k.s(re,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:G};return Q.replace(S,function(_,M){return M||q[_]||G.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(F,U,Y){var Q,G=k.p(U),te=N(F),re=(te.utcOffset()-this.utcOffset())*t,I=this-te,x=k.m(this,te);return x=(Q={},Q[C]=x/12,Q[d]=x,Q[y]=x/3,Q[f]=(I-re)/6048e5,Q[c]=(I-re)/864e5,Q[u]=I/r,Q[s]=I/t,Q[i]=I/o,Q)[G]||I,Y?x:k.a(x)},O.daysInMonth=function(){return this.endOf(d).$D},O.$locale=function(){return B[this.$L]},O.locale=function(F,U){if(!F)return this.$L;var Y=this.clone(),Q=A(F,U,!0);return Q&&(Y.$L=Q),Y},O.clone=function(){return k.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},E}(),j=T.prototype;return N.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",C],["$D",g]].forEach(function(E){j[E[1]]=function(O){return this.$g(O,E[0],E[1])}}),N.extend=function(E,O){return E.$i||(E(O,T,N),E.$i=!0),N},N.locale=A,N.isDayjs=V,N.unix=function(E){return N(1e3*E)},N.en=B[L],N.Ls=B,N.p={},N})})(Vr);var as=Vr.exports;const Qe=at(as);var Dr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,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"},t=/(\[[^[]*\])|([-_:/.,()\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))},y=function(h,m){var S,b=s.meridiem;if(b){for(var P=1;P<=24;P+=1)if(h.indexOf(b(P,0,m))>-1){S=P>12;break}}else S=h===(m?"pm":"PM");return S},C={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,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,k,T){var j=T&&T.toUpperCase();return k||S[T]||o[T]||S[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,O,F){return O||F.slice(1)})})).match(t),P=b.length,z=0;z<P;z+=1){var L=b[z],B=C[L],V=B&&B[0],A=B&&B[1];b[z]=A?{regex:V,parser:A}:L.replace(/^\[|\]$/g,"")}return function(N){for(var k={},T=0,j=0;T<P;T+=1){var E=b[T];if(typeof E=="string")j+=E.length;else{var O=E.regex,F=E.parser,U=N.slice(j),Y=O.exec(U)[0];F.call(k,Y),N=N.replace(Y,"")}}return function(Q){var G=Q.afternoon;if(G!==void 0){var te=Q.hours;G?te<12&&(Q.hours+=12):te===12&&(Q.hours=0),delete Q.afternoon}}(k),k}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,P=b.parse;b.parse=function(z){var L=z.date,B=z.utc,V=z.args;this.$u=B;var A=V[1];if(typeof A=="string"){var N=V[2]===!0,k=V[3]===!0,T=N||k,j=V[2];k&&(j=V[2]),s=this.$locale(),!N&&j&&(s=S.Ls[j]),this.$d=function(U,Y,Q){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*U);var G=g(Y)(U),te=G.year,re=G.month,I=G.day,x=G.hours,R=G.minutes,D=G.seconds,v=G.milliseconds,K=G.zone,q=new Date,_=I||(te||re?1:q.getDate()),M=te||q.getFullYear(),X=0;te&&!re||(X=re>0?re-1:q.getMonth());var H=x||0,J=R||0,le=D||0,$=v||0;return K?new Date(Date.UTC(M,X,_,H,J,le,$+60*K.offset*1e3)):Q?new Date(Date.UTC(M,X,_,H,J,le,$)):new Date(M,X,_,H,J,le,$)}catch{return new Date("")}}(L,A,B),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),T&&L!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var E=A.length,O=1;O<=E;O+=1){V[1]=A[O-1];var F=S.apply(this,V);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}O===E&&(this.$d=new Date(""))}else P.call(this,z)}}})})(Dr);var is=Dr.exports;const ss=at(is);var Fr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t,r){var a=t.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(y){switch(y){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(),y==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),y==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return y}});return i.bind(this)(d)}}})})(Fr);var us=Fr.exports;const cs=at(us);var Rr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t,r){var a=t.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,C,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[C]),P=S||b.map(function(L){return L.slice(0,g)});if(!h)return P;var z=m.weekStart;return P.map(function(L,B){return P[(B+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},c=function(d,y){return d.formats[y]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},f=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return c(d.$locale(),y)},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(y){return c(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Rr);var fs=Rr.exports;const ds=at(fs);var Ar={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){var o="week",t="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(t).add(1,t).date(c),d=i(this).endOf(o);if(f.isBefore(d))return 1}var y=i(this).startOf(t).date(c).startOf(o).subtract(1,"millisecond"),C=this.diff(y,o,!0);return C<0?i(this).startOf("week").week():Math.ceil(C)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Ar);var hs=Ar.exports;const ms=at(hs);var Mr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t){t.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}}})})(Mr);var gs=Mr.exports;const ps=at(gs);var Lr={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t,r){t.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Lr);var vs=Lr.exports;const ys=at(vs);var Br={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t){t.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Br);var bs=Br.exports;const ws=at(bs);var _r={exports:{}};(function(e,n){(function(o,t){e.exports=t()})(rt,function(){return function(o,t){t.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(_r);var xs=_r.exports;const Ss=at(xs);Qe.extend(ds);Qe.extend(cs);Qe.extend(ss);Qe.extend(ms);Qe.extend(ps);Qe.extend(ys);Qe.extend(ws);Qe.extend(Ss);const Be={format(e,n){return Qe(e).format(n)},parser(e,n){return Qe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let t=new Date(e+"/"+n+"/01").getDay();return t==0&&(t=7),t},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),t=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,t,r].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const t=e*(1e3*60*60*24);return o=new Date(o.getTime()+t),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let t;return typeof n=="string"?t=new Date(n.replace("-","/").replace("-","/")):t=n,!(o>=t)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let t;return typeof n=="string"?t=new Date(n).getTime():t=n,o==t},getMonthWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return t!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-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 t!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,n,o,t=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(t===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 n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const t=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const t=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=t.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},qr={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"},editable:{type:[Boolean,String],required:!1,default:()=>!0}},jr={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}},Ts={...Se,...Oe,...qr,...jr};function Cs(e,n,o){return{props:Ts,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},`${t.prop??r.attrs.name}`),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=l.computed(()=>F.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),C=l.computed(()=>F.value?"longTermKey":"normalKey"),g=_=>{if(F.value&&t.type==="daterange"){const M=[...d.value];M[0]=_,d.value=M}else d.value=_;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>F.value&&t.type==="daterange"?"date":t.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":F.value,"is-readonly":i.value,"is-disabled":a.value}));let b=me(t,"hintText"),P=l.ref(!1);const z=_=>{let X=_.target.value;f.value=!0,ve(b.value)||(P.value=!0),s("focus",X,_)},L=_=>{setTimeout(()=>{P.value&&(P.value=!1),f.value=!1},0);let X=_.target.value;s("blur",X,_)},B=()=>{s("clear","")},V=_=>{s("calendar-change",_)},A=(_,M,X)=>{s("panel-change",_,M,X)},N=_=>{s("visible-change",_)},k=Re(l.computed(()=>t.longTermText),"longTermText",_e.Near),T=Re(l.computed(()=>t.longTermActionLabel),"longTermActionLabel",_e.Near),j=Re(l.computed(()=>t.longTermValue),"longTermValue",_e.Near),E=Re(l.computed(()=>t.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let O=null;const F=l.ref(se(t.longTerm)),U=_=>{if(F.value=_,s("update:longTerm",_),_){if(O=d.value,t.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=F.value),M[0]||(M[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),M[1]||(M[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=t.valueFormat?Be.format(new Date,t.valueFormat):new Date);s("update:modelValue",d.value)}else{if(t.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),M[1]||(M[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),d.value=M}else d.value=O;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=se(t.isLongTerm);if(Y){const _=()=>{if(F.value===!0){if(O=d.value,t.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=F.value,M[0]||(M[0]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),M[1]||(M[1]=t.valueFormat?Be.format(new Date,t.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else lt(j.value,d.value)&&(F.value=!0)};_(),l.watch([()=>t.longTerm],([M])=>{F.value!==M&&_()}),l.watch([()=>d.value],([M])=>{let X=!1;if(t.type==="daterange"&&Array.isArray(M))try{let H=M[1];if(!H)return;typeof H!="string"&&t.valueFormat&&(H=Be.format(H,t.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray(E.value)&&E.value.findIndex($=>H==$)!==-1)&&(X=!0)}catch(H){console.error(H)}F.value!==X&&(F.value=X)},{immediate:!0})}const Q=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),G=l.ref(),te=l.ref(),re=/^\d+$/,I=(_,M)=>typeof t.flashFillThreshold=="function"?t.flashFillThreshold(_,M):re.test(_)&&_.length===t.flashFillThreshold,x=(_,M)=>{let X;if(typeof t.flashFillFormat=="function")X=t.flashFillFormat(_,M);else{const J=t.flashFillFormat??"YYYYMMDD";X=Be.parser(_,J)}const H=t.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},R=_=>_?_.endsWith("range"):!1,D=_=>{if(!_.target)return;const M=_.target.value??"";if(t.type&&I(M,t.type)){const X=x(M,t.type);if(R(t.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=X,g(H)}else g(X)}},v=_=>{if(!_.target)return;const M=_.target.value??"";if(t.type&&I(M,t.type)){const X=x(M,t.type);if(R(t.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=X,g(H)}else g(X)}},K=()=>{if(t.flashFill&&G.value&&G.value.$el)if(R(t.type)){const _=G.value.$el.querySelectorAll("input.el-range-input");_[0]&&_[0].addEventListener("input",D),_[1]&&_[1].addEventListener("input",v)}else{const _=G.value.$el.querySelector("input.el-input__inner");_&&_.addEventListener("input",D)}},q=()=>{if(t.flashFill&&G.value&&G.value.$el)if(R(t.type)){const _=G.value.$el.querySelectorAll("input.el-range-input");_[0]&&_[0].removeEventListener("input",D),_[1]&&_[1].removeEventListener("input",v)}else{const _=G.value.$el.querySelector("input.el-input__inner");_&&_.removeEventListener("input",D)}};return l.onMounted(K),l.onBeforeUnmount(q),Ne({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const M={...r.attrs,key:C.value,type:h.value,ref:te,class:S.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:t.valueFormat,format:t.format,editable:se(t.editable),"onUpdate:modelValue":g,onClear:B,onFocus:z,onBlur:L,onCalendarChange:V,onPanelChange:A,onVisibleChange:N},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(w.ElDatePicker,M,X);H.push(J);const le={default:()=>H};if(r.slots.default&&(le.label=r.slots.default),r.slots.fixedTip&&(le.fixedTip=r.slots.fixedTip),Y){if(F.value){const ee=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ue=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),ie={class:Q.value},fe=l.h("div",ie,{default:()=>[ee,ue]});H.push(fe)}if(!i.value&&!a.value){const ee={label:T.value||k.value,disabled:i.value||a.value,modelValue:F.value,"onUpdate:modelValue":U},ue=l.h(w.ElCheckbox,ee),ie=l.h("div",{class:{[`${m}__append`]:!0}},[ue]);le.append=()=>ie}}const p={...Ie(t,qr,jr),ref:G,class:{[`${m}__wrapper`]:!0,"has-append":Y},hintText:b.value,hintVisible:P.value,prop:`${t.prop}_item`};return l.h(o,p,le)}}}}const{componentName:$s,create:Ns,scope:Es}=ce("date-item"),hl=Ns(Cs($s,Es,Te)),ao={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ks(e,n,o){return{props:{...Se,...Oe,...ao},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0})),g=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=me(t,"hintText"),m=l.ref(!1);const S=B=>{let A=B.target.value;f.value=!0,ve(h.value)||(m.value=!0),s("focus",A,B)},b=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let A=B.target.value;t.maxLength&&A.length>Number(t.maxLength)&&(A=A.slice(0,Number(t.maxLength))),s("blur",A,B)},P=()=>{s("clear","")},z=B=>{s("visible-change",B)},L=l.ref();return Ne({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const V={...r.attrs,ref:L,class:C.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:P,onFocus:S,onBlur:b,onVisibleChange:z},A={},N=[],k=l.h(w.ElTimePicker,V,A);N.push(k);const T={default:()=>N};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const E={...Ie(t,ao),hintText:h.value,hintVisible:m.value,prop:`${t.prop}_item`};return l.h(o,E,T)}}}}const{componentName:Ps,create:Is,scope:Os}=ce("time-item"),ml=Is(ks(Ps,Os,Te)),io={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vs(e,n,o){return{props:{...Se,...Oe,...io},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=me(t,"hintText"),m=l.ref(!1);const S=L=>{let V=L.target.value;f.value=!0,ve(h.value)||(m.value=!0),s("focus",V,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let V=L.target.value;t.maxLength&&V.length>Number(t.maxLength)&&(V=V.slice(0,Number(t.maxLength))),s("blur",V,L)},P=()=>{s("clear","")},z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const B={...r.attrs,ref:z,class:C.value,placeholder:c.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:P,onFocus:S,onBlur:b},V={},A=[],N=l.h(w.ElTimeSelect,B,V);A.push(N);const k={default:()=>A};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...Ie(t,io),hintText:h.value,hintVisible:m.value,prop:`${t.prop}_item`};return l.h(o,j,k)}}}}const{componentName:Ds,create:Fs,scope:Rs}=ce("time-select-item"),gl=Fs(Vs(Ds,Rs,Te));function so(e,n=0){let o=`${e}`,t=o.indexOf(".");if(t==-1)return o;let r=t;for(let a=o.length-1;a>=t;a--)if(o.charAt(a)!="0"){r=a;break}return r-t<n?r=t+n+1:r!=t&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function uo(e,n,o=20){if(typeof n=="string"&&(n=xe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let t=Uo(`${e}`,`${n}`);return so(t)}else{let t=Qn(`${e}`,Go(`${n}`),20);return so(t)}}function As(e,n=-1,o=!1,t=3,r=","){return on(e,n,o,t,r)}function co(e,n,o,t,r=!0){if(e==="")return"";if(e=Xo(e),n=xe(n),n==1)return e;if(t)e=uo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Qn(e,1,xe(o)));else{let a=-1*n;e=uo(e,a)}return e}function fo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let t=se(n.minInclude),r=qn(e,n.min);if(t&&r==-1||!t&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let t=se(n.maxInclude),r=qn(e,n.max);(t&&r==1||!t&&(r==0||r==1))&&(o.maxValid=!1)}return o}const ho={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 Ms(e,n,o){return{props:{...Se,...Oe,...ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(!1),c=me(t,"modelValue",null,s),f=l.ref("");l.watch([()=>c.value,()=>t.rates,()=>t.precision],([E,O,F])=>{if(ve(E)){f.value="";return}const U=co(E,O,F,!1);f.value!==U&&(f.value=U)},{immediate:!0});const d=l.computed(()=>{let E="";return u.value&&(E=f.value),E}),{t:y}=qe.useFoxI18n(n),C=l.computed(()=>{let E=t.placeholder??"";return!u.value&&!ve(f.value)?E=As(f.value,t.decimalLength,t.autoPadding,t.digits,t.separator):E=y(["placeholder",E]),E}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=Re(l.computed(()=>t.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let E=S.value;return ve(E)&&(E=t.errorTip??""),E}),P=l.ref(""),z=l.ref(!1),L=(E,O)=>{if(E=`${E}`,ve(E)){f.value="",c.value="",O.forEach(F=>{s(F,"")}),se(t.showTip)&&z.value&&(z.value=!1);return}if(E.length>=2){let F=E;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){l.triggerRef(f);return}}if(E!="-"){if(!or(E)){l.triggerRef(f);return}if(t.integerLength!=-1&&rr(E)>Number(t.integerLength)){l.triggerRef(f);return}if(t.decimalLength&&t.decimalLength!=-1&&ar(E)>Number(t.decimalLength)){l.triggerRef(f);return}let F=fo(E,t);if(F.maxValid===!1){S.value=F.message,l.triggerRef(f);return}}else if(t.min!=null&&xe(t.min)>=0){l.triggerRef(f);return}P.value=E,se(t.showTip)&&(z.value=E.length>0),f.value=E,c.value=co(E,t.rates,t.precision,!0),O.forEach(F=>{s(F,c.value)})},B=E=>{L(E,["update:modelValue","input"])},V=E=>{L(E,["update:modelValue","change"])},A=E=>{if(u.value=!0,se(t.showTip)){let O=f.value;ve(O)&&(O=t.hintText),ve(O)||(P.value=O,z.value=!0)}S.value="",s("focus",c.value,E)},N=E=>{if(setTimeout(()=>{u.value=!1,se(t.showTip)&&z.value===!0&&(z.value=!1)},0),!ve(f.value)){let O=fo(f.value,t);if(O.minValid===!1||O.maxValid===!1){S.value=O.message;return}}s("update:modelValue",c.value,E),s("blur",c.value,E)},k=()=>{s("clear","")},T=l.computed(()=>jt(t.unit)>0),j=l.ref();return Ne({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const O={...Je(r.attrs),ref:j,class:h.value,type:"digit",maxlength:t.maxLength,placeholder:C.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:k,onInput:B,onChange:V,onFocus:A,onBlur:N},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:T.value&&(F.suffix=()=>[t.unit]);const U=[],Y=l.h(w.ElInput,O,F);U.push(Y);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const te={...Ie(t,ho),errorTip:b.value,hintText:P.value,hintVisible:z.value,hintType:"number",prop:`${t.prop}_item`};return l.h(o,te,Q)}}}}const{componentName:Ls,create:Bs,scope:_s}=ce("money-item"),pl=Bs(Ms(Ls,_s,Te)),mo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function qs(e,n,o){return{props:{...Se,...Oe,...mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0,[`${y}__append`]:B.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=A=>{d.value=A,s("update:modelValue",A),s("input",A)},m=A=>{s("change",A)};let S=me(t,"hintText"),b=l.ref(!1);const P=A=>{let k=A.target.value;f.value=!0,ve(S.value)||(b.value=!0),s("focus",k,A)},z=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let k=A.target.value;t.maxLength&&k.length>Number(t.maxLength)&&(k=k.slice(0,Number(t.maxLength))),s("blur",k,A)},L=()=>{s("clear","")},B=l.computed(()=>jt(t.unit)>0),V=l.ref();return Ne({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const N={...Je(r.attrs),ref:V,class:C.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":t.adjustPosition,"always-system":t.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:P,onBlur:z},k={},T=[],j=l.h(w.ElInputNumber,N,k);T.push(j);const E={default:()=>T};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const F={...Ie(t,mo),hintText:S.value,hintVisible:b.value,prop:`${t.prop}_item`};if(r.slots.append)E.append=r.slots.append;else if(B.value){const Y={class:g.value},Q=l.h("div",Y,[t.unit]);E.append=()=>Q}return l.h(o,F,E)}}}}const{componentName:js,create:zs,scope:Hs}=ce("input-number-item"),vl=zs(qs(js,Hs,Te));function nt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ks(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Ws=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t,r);const a=We(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await a(o,t,r))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}function Xn(e,n,o){const t=nt(e,n),r=nt(e,o);if(t!==r)return!1;const a=gt(e,n),i=gt(e,o);return a===i}function zr(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=t;for(let i=0;Array.isArray(a)&&i<n.length;i++){const s=n[i];if(Array.isArray(s)){const u=zr(e,s,o,t);r.push(u)}else{let u=!1;for(let c of a){if(o==="text")u=nt(e,c)===s;else if(o==="item")u=Xn(e,c,s);else{let f=gt(e,c);f==null&&(f=nt(e,c)),u=f===s}if(u){r.push(c),a=Ks(e,c);break}}if(!u)break}}return r}function Us(e){return{text:e,value:e}}const go={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 Gs(e,n,o){return{props:{...Se,...Oe,...go},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(_=>Array.isArray(_)?_.map(X=>nt(t,X)).join(" "):nt(t,_)).join(" "):""),C=(q,_,M,X=!0)=>{if(t.props&&t.props.lazy===!0||t.lazy===!0){if(f.value===q)return;f.value=q;const $=l.toRaw(q);if(X){const p=K?.value.getCheckedNodes();if(p)if(t.multiple){const W=[];p.forEach(ee=>{const ie=(ee.pathNodes??[]).map(fe=>fe.data);W.push(ie)}),s("update:pathNodes",W)}else{const ee=(p[0]?.pathNodes??[]).map(ue=>ue.data);s("update:pathNodes",ee)}s("update:modelValue",$),s("change",$)}return}const H=zr(t,q,_,M);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],f.value=null,X&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const $=[];H.forEach(p=>{const W=`${nt(t,p)}`;$.push(W)}),$.length>0&&(A.value=$.join(t.separator))}else A.value=null;let le=!0;if(H.length!==d.value.length)le=!1;else for(let $=0;$<H.length;$++){const p=H[$],W=d.value[$];if(Array.isArray(p)){if(!Array.isArray(W)||p.length!==W.length)le=!1;else for(let ee=0;ee<p.length;ee++)if(!Xn(t,p[ee],W[ee])){le=!1;break}}else Xn(t,p,W)||(le=!1);if(!le)break}if(!le){d.value=H;let $=[],p=[];H.forEach(ee=>{if(Array.isArray(ee)){let ue=[],ie=[];for(let fe of ee)ue.push(gt(t,fe)),t.valueType==="text"?ie.push(nt(t,fe)):t.valueType==="item"?ie.push(fe):ie.push(gt(t,fe));$.push(ue),p.push(ie)}else $.push(gt(t,ee)),t.valueType==="text"?p.push(nt(t,ee)):t.valueType==="item"?p.push(ee):p.push(gt(t,ee))}),f.value=$;const W=l.toRaw(p);X&&(s("update:pathNodes",H),s("update:modelValue",W),s("change",W))}},g=l.ref([]),h=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,q=>se(q)),m=Ys(),S=async(q,_)=>{if(q){const M=await m.load("cascader",q,_);if(M.length>0)if(typeof M[0]=="string"){let J=M.map(le=>Us(le));g.value=J}else g.value=M}};l.watch([()=>t.source,()=>t.params],async([q,_])=>{S(q,_)},{immediate:!(h.value||t.lazy)});let b=!1;const P=()=>{b||(b=!0,S(t.source,t.params))};l.watch([()=>g.value,()=>t.modelValue],([q,_])=>{C(_,t.valueType,q,!1),s("setValue",_)}),t.lazy&&C(t.modelValue,"value",[],!1);let z=null,L=l.ref(!1);typeof t.remoteMethod=="function"&&(z=async q=>{if(q!=null){L.value=!0;try{const _=await t.remoteMethod(q);g.value=_}catch(_){console.error(_)}L.value=!1}});const B=l.ref(!1),V=e,A=l.ref(null),N=l.computed(()=>({[V]:!0,"is-incomplete":A.value&&A.value.length>0})),k=l.computed(()=>{let q={label:t.textKey,value:t.valueKey,children:t.childrenKey};return t.multiple===!0&&(q.multiple=!0),t.props&&Object.assign(q,t.props),t.lazy&&(q.lazy=!0,typeof t.lazyLoad=="function"?q.lazyLoad=t.lazyLoad:q.lazyLoad=async(_,M)=>{const X=await m.load("cascader",t.source,_,!0);if(_?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===_.level){const H=_.pathLabels??[];let J=[];H.forEach(le=>{le&&J.push(le)}),J.length>0&&(A.value=J.join(t.separator))}else A.value=null;M(X)}),q}),T=q=>{t.allowCreate?(s("update:modelValue",q),s("change",q),f.value=q):C(q,"value",g.value,!0)};let j=me(t,"hintText"),E=l.ref(!1);const O=q=>{let M=q.target.value;B.value=!0,ve(j.value)||(E.value=!0),s("focus",M,q)},F=q=>{setTimeout(()=>{E.value&&(E.value=!1),B.value=!1},0);let M=q.target.value;t.maxLength&&M.length>Number(t.maxLength)&&(M=M.slice(0,Number(t.maxLength))),x.value||s("blur",M,q)},U=()=>{s("clear","")},Y=l.ref(!1);let Q=null;const G=()=>{se(t.showTooltip)&&Y.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{Y.value=!0},150))},te=()=>{Q&&(clearTimeout(Q),Y.value=!1,Q=null)},re=l.computed(()=>Y.value||E.value),I=l.computed(()=>Y.value?y.value:j.value),x=l.ref(!1),R=q=>{x.value=q,s("visible-change",q),q||s("selected")},D=q=>{s("remove-tag",q)},v=q=>{s("expand-change",q)},K=l.ref();return Ne({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const _={...r.attrs,ref:K,class:N.value,props:k.value,clearable:t.clearable,placeholder:A.value||c.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:f.value,separator:t.separator,onClear:U,onChange:T,onFocus:O,onBlur:F,onVisibleChange:R,onRemoveTag:D,expandChange:v};typeof z=="function"&&(_["remote-method"]=z,_.loading=L.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const X=[],H=l.h(w.ElCascader,_,M);X.push(H);const J={default:()=>X};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const $={...Ie(t,go),hintText:I.value,hintVisible:re.value,prop:`${t.prop??r.attrs.name}_item`,onMouseover:G,onMouseleave:te};return h.value&&!t.lazy&&($["appear-listen"]=!0,$.onAppear=P),l.h(o,$,J)}}}}const{componentName:Xs,create:Zs,scope:Qs}=ce("cascader-item"),yl=Zs(Gs(Xs,Qs,Te)),po={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Js(e,n,o){return{props:{...Se,...Oe,...po},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),{toLocaleRefs:u}=qe.useFoxI18n(n),c=u(t,["placeholder"]),f=l.ref(!1),d=me(t,"modelValue",null,s),y=e,C=l.computed(()=>({[y]:!0})),g=V=>{d.value=V,s("update:modelValue",V),s("input",V)},h=V=>{s("change",V)},m=V=>{s("select",V)};let S=me(t,"hintText"),b=l.ref(!1);const P=V=>{let N=V.target.value;f.value=!0,ve(S.value)||(b.value=!0),s("focus",N,V)},z=V=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let N=V.target.value;t.maxLength&&N.length>Number(t.maxLength)&&(N=N.slice(0,Number(t.maxLength))),s("blur",N,V)},L=()=>{s("clear","")},B=l.ref();return Ne({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const A={...r.attrs,ref:B,class:C.value,placeholder:c.placeholder.value,clearable:t.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:P,onBlur:z,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 k=[],T=l.h(w.ElAutocomplete,A,N);k.push(T);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const O={...Ie(t,po),hintText:S.value,hintVisible:b.value,prop:`${t.prop}_item`};return l.h(o,O,j)}}}}const{componentName:eu,create:tu,scope:nu}=ce("autocomplete-item"),bl=tu(Js(eu,nu,Te));function lu(e,n,o,t,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(y=>y[t]===f);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<n.length&&u<a.length;u++){let c=n[u],f=a[u];const d=c.find(y=>y[t]===f);if(!d)break;i.push(d[o])}else{let u=n;for(let c=0;u&&c<a.length;c++){let f=a[c],d=u.find(y=>y[t]===f);if(!d)break;i.push(d[o]),u=d[r]}}return i}let ou=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function ru(){const e=l.getCurrentInstance();return new ou(e.proxy)}const Hr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function au(e,n){return{props:{...Hr},setup(o,{attrs:t,slots:r}){const a=ru(),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=lu(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={...t};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",{...t,class:o.emptyClass},s.value):l.h(u,c,{default:()=>s.value}):l.h(u,c,s.value)}}}}const{componentName:Fh,create:iu,scope:Rh}=ce("mapping"),_t=iu(au());function su(e,n){let o=n.split("."),t=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);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function uu(e,n){return{props:{...Hr},setup(o,{attrs:t,slots:r}){return()=>{const a={default:i=>{const s=su(i.row,i.column.property);return r.default?l.h(_t,{...o,modelValue:s},{default:r.default}):l.h(_t,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(w.ElTableColumn,{...t},a)}}}}const{componentName:Ah,create:cu,scope:Mh}=ce("table-mapping-column"),wl=cu(uu()),fu=Symbol.for("TableStateKey");function vo(e,n){let o=n.split("."),t=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);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function du(e,n){return{props:{},setup(o,{attrs:t}){const r=l.inject(fu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=vo(s.row,s.column.property),c=a?vo(a,s.column.property):null,f=u===c,d={class:{"el-radio__input":!0,"is-checked":f}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":f}};return l.h("label",C,[y])}};return l.h(w.ElTableColumn,{...t},i)}}}}const{componentName:Lh,create:hu,scope:Bh}=ce("table-radio-column"),xl=hu(du()),mu={},gu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function pu(e,n){return l.openBlock(),l.createElementBlock("svg",gu,n[0]||(n[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 vu=je(mu,[["render",pu]]),{componentName:_h,create:yu,scope:qh}=ce("table-setting"),bu={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},wu=yu({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:vu,Download:Pe.Download,RefreshLeft:Pe.RefreshLeft},props:{...bu},setup(e,{emit:n,attrs:o}){let t=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),c=l.computed(()=>a.value.length>0),f=l.computed(()=>i.value.length>0),d=v=>v.length>1,y=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(X=>X.prop===M.prop?(M.label=X.label,!0):!1)});const q=[];r.value=v.map((M,X)=>(!(M.label===""||M.type)&&M.visible!==!1&&q.push(M.prop),{...M,sortIndex:X})),s.value.length+a.value.length+i.value.length===q.length?b.value=!0:q.length>0&&(P.value=!0),B.value=q},C=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,K)=>{if(v.length!==K.length)return!1;const q=v.map(_=>C(_));for(let _ of K){const M=C(_);if(q.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),q=K.srcColumnPropertyList;t=q.map((_,M)=>({..._,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&g(q,v)||(v=q)}y(v,t)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),P=l.ref(!1),z=v=>{const K=[];r.value.forEach(_=>{v&&!(_.label===""||_.type)&&K.push(_.prop),_.visible=v}),b.value=!1,P.value=!1,s.value.length+a.value.length+i.value.length===K.length?b.value=!0:K.length>0&&(P.value=!0),B.value=K,m()},L=()=>{h(t),m()},B=l.ref([]),V=v=>{r.value.forEach(q=>{if(q.label===""||q.type)return;const _=v.indexOf(q.prop)!==-1;q.visible=_}),b.value=!1,P.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?b.value=!0:v.length>0&&(P.value=!0),m()},A=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(N.roleType=K.dataset.roleType,N.index=K.dataset.index)},j=v=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},E=v=>{const K=v.currentTarget;v.relatedTarget;const q=k(K);if(!q)return;const _=q.dataset&&q.dataset.roleType;N.roleType===_&&(v.preventDefault(),N.currentRow&&N.currentRow!==q&&N.currentRow.classList.remove("is-dragover"),q.classList.add("is-dragover"),N.currentRow=q)},O=v=>{v.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},F=v=>{const K=v.currentTarget,q=k(K);if(!q)return;const _=q.dataset&&q.dataset.roleType;if(N.roleType!==_)return;v.preventDefault();const M=Number(N.index),X=Number(q.dataset.index);if(M!==X){if(M<X){const H=r.value[M];r.value.splice(M,1),r.value.splice(X,0,H)}else{const H=r.value[M];r.value.splice(M,1),r.value.splice(X+1,0,H)}y(r.value,t),m()}},U=v=>{const K=r.value[v];K.fixed="left",m()},Y=v=>{const K=r.value[v];K.fixed="right",m()},Q=v=>{const K=r.value[v];K.fixed=void 0,m()},G=new Map;let te=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:c,isShowRightFixedTitle:f,isDraggble:d,isCheckAll:b,isIndeterminate:P,handleCheckAllChange:z,handleReset:L,checkedValue:B,handleCheckChange:V,onShow:A,onDragStart:T,onDragEnd:j,onDragOver:E,onDragLeave:O,onDrop:F,toLeftFixed:U,toRightFixed:Y,toUnFixed:Q,checkboxLabelStyle:S,onMouseOverForOverflowText:(v,K,q)=>{const _=v.currentTarget;if(_){const M=Math.floor(_.offsetWidth);if(Math.floor(re(_))>M){let H=G.get(K);if(H){if(H===te)return;Fe.hide(H)}H=Fe.show(_,q,{type:"text",placement:"top",closeOnClick:!1}),G.set(K,H),te=H}}},onMouseLeaveForOverflowText:(v,K)=>{const q=G.get(K);q&&(Fe.hide(q),q===te&&(te=null))},onMouseOverForTip:(v,K)=>{const q=v.currentTarget;q&&(te&&Fe.hide(te),te=Fe.show(q,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{te&&(Fe.hide(te),te=null)}}}}),xu={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"},Ou=["data-index","draggable"],Vu=["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,n,o,t,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"),y=l.resolveComponent("fox-checkbox"),C=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",xu,[l.createElementVNode("div",Su,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[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(C,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[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:n[5]||(n[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[6]||(n[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[7]||(n[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[8]||(n[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[9]||(n[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:n[1]||(n[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:n[2]||(n[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:n[3]||(n[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:n[4]||(n[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:n[14]||(n[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[15]||(n[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[16]||(n[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[17]||(n[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[18]||(n[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,Vu)]),_:2},1032,["label"]),l.createElementVNode("div",Du,[l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:n[10]||(n[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:n[11]||(n[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:n[12]||(n[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:n[13]||(n[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ou))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Fu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Ru,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[24]||(n[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[25]||(n[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[26]||(n[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[27]||(n[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Mu)]),_:2},1032,["label"]),l.createElementVNode("div",Lu,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:n[19]||(n[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:n[20]||(n[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:n[21]||(n[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:n[22]||(n[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 xn=je(wu,[["render",Bu]]);let _u=class{proxy;constructor(n){this.proxy=n}async load(n,o,t,r,a,i,s){if(Array.isArray(o)){let c=(t-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,[t,r,a,i,s]);const u=We(this.proxy,n);return u===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(ot(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,t,r,a,i,s]))}};function qu(){const e=l.getCurrentInstance();return new _u(e.proxy)}class ju{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const t=We(this.proxy,"tableSetting");return typeof t=="function"&&(o=await Reflect.apply(t,null,["load",n])),o}save(n,o){const t=We(this.proxy,"tableSetting");typeof t=="function"&&Reflect.apply(t,null,["save",n,o])}remove(n){const o=We(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function Kr(){const e=l.getCurrentInstance();return new ju(e.proxy)}const zu=Symbol.for("TableStateKey"),yo={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"}},bo={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}},Vn={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,n){let o=n.split("."),t=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);t=t[d][f]}else t=t[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(t=t[a])}return t}function Dn(e,n){return e.filter(t=>{for(let r in n){const a=n[r],i=Ku(t,r);if(a!==i)return!1}return!0})}function Wu(e,n,o){return{inheritAttrs:!1,props:{...Se,...Oe,...yo,...bo,...Vn,...Hu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(t,r){const{locale:a}=qe.useFoxI18n(n),{emitEvent:i,broadcast:s}=$e({componentName:e,validateHandler:{getValue(...Z){return V.value}}},t.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__${t.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${t.paginationAlign}`]:!0})),C=l.shallowRef({}),g=l.computed(()=>({...C.value,...t.params??{},...t.baseParams??{}})),h=l.ref(t.infiniteLoad===!0?0:t.pageIndex),m=l.ref(t.pageSize),S=se(t.infiniteLoad);S||(l.watch(()=>t.pageIndex,Z=>{h.value=Z}),l.watch(()=>t.pageSize,Z=>{m.value=Z}),l.watch([h,m],([Z,oe],[ne,ae])=>{oe!==ae&&(h.value=1,Z=1),T(t.data,Z,oe,g.value)}));const b=()=>Array.isArray(t.data)?!0:se(t.autoLoad);b()&&l.watch([()=>t.data,g],async([Z,oe],[ne,ae])=>{b()&&(Z!==ne&&(N=!0),!(!Array.isArray(Z)&&lt(Z,ne)&&lt(oe,ae))&&(S?(h.value=0,L.value=!0,V.value=[],E()):h.value===1?T(Z,h.value,m.value,oe):h.value=1))},{deep:!0});const P=Z=>{h.value=Z,i("page-index-change",Z)},z=Z=>{m.value=Z,i("page-size-change",Z)},L=l.ref(!0),B=l.ref(0),V=l.ref(),A=qu();let N=!0;const k=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,Z=>se(Z)),T=async(Z,oe,ne,ae,Ve)=>{N=!1;try{if(Ve===!0){if(!L.value)return!1;const pe=await A.load("table",Z,oe,ne,ae,N,a.value);return B.value=pe.totalSize,!pe.page||!Array.isArray(pe.page)||(Reflect.apply([].push,V.value,pe.page),setTimeout(()=>{i("loaded-data")},250),(V.value?.length??0)>=B.value)||pe.page.length<ne?(L.value=!1,!1):!0}else{const pe=await A.load("table",Z,oe,ne,ae,N,a.value);return B.value=pe.totalSize,V.value=pe.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(pe){console.error("[FoxUI] Load Table Data Fail",pe),B.value=0,V.value=[]}return!1};let j=!1;const E=async()=>{if(!j){if(j=!0,!L.value){j=!1;return}h.value+=1,await T(t.data,h.value,m.value,g.value,!0),j=!1}},O=(Z={},oe=!1)=>new Promise(async ne=>{C.value={...l.toRaw(Z??{})},oe||(h.value=t.pageIndex??1),S===!0?(h.value=0,V.value=[],L.value=!0,await E()):await T(t.data,h.value,m.value,g.value),ne()}),F=()=>{B.value=0,V.value=[],S===!0&&(h.value=0,L.value=!0)};let U=!1;const Y=()=>{U||(U=!0,O())},Q=l.ref(null);if(S===!0){let Z=null;const oe=()=>{Q.value&&(Z=new IntersectionObserver(ae=>{let Ve=!1;for(let pe of ae)if(pe.intersectionRatio>0){Ve=!0;break}Ve&&E()}),Z.observe(Q.value))},ne=()=>{!Z||!Q.value||(Z.unobserve(Q.value),Z=null)};l.onMounted(oe),l.onBeforeUnmount(ne)}b()&&!k.value&&O();const G=l.ref(null);l.provide(zu,{currentRow:G});const te=(Z,oe)=>{G.value=Z,i("current-change",Z,oe)},re=(Z,oe,ne)=>{i("row-click",Z,oe,ne),se(t.rowClickSelectable)===!0&&ge?.value.toggleRowSelection(Z)},I=[],x=(Z,oe)=>{if(i("expand-change",Z,oe),se(t.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ne=I.length;I.splice(0,ne)}else{I.forEach(ae=>{ae!==Z&&ge?.value.toggleRowExpansion(ae,!1)});const ne=I.length;I.splice(0,ne,Z)}},R=r.attrs.id??t.prop??r.attrs.name,D=Kr(),v=l.ref([]);let K=[];const q=()=>({srcColumnPropertyList:K.map(oe=>({...oe})),columnPropertyList:v.value}),_=Z=>{v.value=[...Z],X()},M=async()=>{const Z=await D.load(R);Z&&(v.value=Z)},X=()=>{D.save(R,v.value)},H=()=>{D.remove(R)};M();const J=Z=>Z?Z.type?Z.type:Z.label?Z.prop:"":"",le=()=>typeof r.slots.default=="function"?r.slots.default():[],$=(Z,oe)=>{for(let ne in oe){const ae=oe[ne];typeof ae!="function"&&(Z[ne]=ae)}},p=l.computed(()=>{const Z=le(),oe=new Map;if(K=[],Z.forEach(ne=>{const ae=ne;if(!ae.props)return;const Ve=J(ae.props);oe.set(Ve,ne);const pe={label:"",prop:""};$(pe,ae.props),K.push(pe)}),v.value.length===K.length){const ne=[];for(let ae of v.value){const Ve=J(ae),pe=oe.get(Ve);if(!pe)return Z;if(ae.visible===!1)continue;const tt=pe;tt.props.fixed=ae.fixed,ne.push(tt)}return ne}return Z}),W=l.shallowRef(new Map),ee=({row:Z,column:oe,rowIndex:ne,columnIndex:ae})=>{const Ve=`${ne}_${oe.property}`,pe=`${ne}_${ae}`;let tt=W.value.get(Ve);return tt||(tt=W.value.get(pe)),typeof tt=="string"?tt:""},ue=Z=>Z?oe=>{const ne=[];let ae=ee(oe);return ae&&ne.push(ae),ae=typeof Z=="function"?Z(oe):Z,ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:ee,ie=(Z=!1)=>{W.value.forEach((oe,ne)=>{fe(ne,oe,Z)})},fe=(Z,oe,ne=!1)=>{const ae=`${Z}_item`;ne?(s.clearPersistantMessage(),Array.isArray(oe)?s.emitToChildren({name:Z},"setCellClassNames",[]):s.emitToChildren({name:ae},"setCustomClassName","")):Array.isArray(oe)?s.emitToChildren({name:Z,cachePolicy:"Persistant",uniqueId:ae},"setCellClassNames",oe):s.emitToChildren({name:ae,cachePolicy:"Persistant",uniqueId:ae},"setCustomClassName",oe)},be=(Z,oe,ne)=>{const ae=`${Z}_${oe}`;ne?(W.value.set(ae,ne),fe(ae,ne)):(W.value.delete(ae),fe(ae,"",!0)),l.triggerRef(W)},Ye=Z=>{ie(!0),W.value.clear(),Z.forEach(oe=>{const ne=`${oe.rowIndex}_${oe.column}`;Array.isArray(oe.children)?W.value.set(ne,oe.children):typeof oe.cellClassName=="string"&&W.value.set(ne,oe.cellClassName)}),ie(),l.triggerRef(W)},Ue=()=>{ie(),W.value.clear(),l.triggerRef(W)},Ge=l.shallowRef(new Map),Ce=({rowIndex:Z})=>{const oe=`${Z}`;return Ge.value.get(oe)??""},et=Z=>Z?oe=>{const ne=[];let ae=Ce(oe);return ae&&ne.push(ae),ae=typeof Z=="function"?Z(oe):Z,ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:Ce,ze=(Z,oe)=>{const ne=`${Z}`;oe?Ge.value.set(ne,oe):Ge.value.delete(ne),l.triggerRef(Ge)},Nt=()=>{Ge.value.clear(),l.triggerRef(Ge)},ge=l.ref();return Ne({clearSelection:()=>ge?.value.clearSelection(),getSelectionRows:()=>ge?.value.getSelectionRows(),toggleRowSelection:(Z,oe)=>{ge?.value.toggleRowSelection(Z,oe)},toggleRowSelectionByProp:(Z,oe)=>{if(!V.value)return;const ne=Dn(V.value,Z);ne.length!==0&&ne.forEach(ae=>{ge?.value.toggleRowSelection(ae,oe)})},toggleAllSelection:()=>{ge?.value.toggleAllSelection()},toggleRowExpansion:(Z,oe)=>{ge?.value.toggleRowExpansion(Z,oe)},toggleRowExpansionByProp:(Z,oe)=>{if(!V.value)return;const ne=Dn(V.value,Z);ne.length!==0&&ne.forEach(ae=>{ge?.value.toggleRowExpansion(ae,oe)})},setCurrentRow:Z=>{ge?.value.setCurrentRow(Z)},setCurrentRowByProp:Z=>{if(!V.value)return;const oe=Dn(V.value,Z);oe.length!==0&&ge?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ge?.value.clearSort()},clearFilter:Z=>{ge?.value.clearFilter(Z)},doLayout:()=>{ge?.value.doLayout()},sort:(Z,oe)=>{ge?.value.sort(Z,oe)},scrollTo:(Z,oe)=>{ge?.value.scrollTo(Z,oe)},setScrollTop:Z=>{ge?.value.setScrollTop(Z)},setScrollLeft:Z=>{ge?.value.setScrollLeft(Z)},loadData:O,clearData:F,getData(){return V.value},getTotalSize(){return B.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:q,setColumnSetting:_,removeColumnSetting:H,setCellClassName:be,setCellClassNames:Ye,clearCellClassName:Ue,setRowClassName:ze,clearRowClassName:Nt}),()=>{const oe={...Je(r.attrs),onCurrentChange:te,onRowClick:re,onExpandChange:x,data:V.value,ref:ge,class:c.value,"cell-class-name":ue(t.cellClassName),"row-class-name":et(t.rowClassName)},ne={};if(r.slots.default&&(ne.default=()=>p.value),r.slots.append&&(ne.append=r.slots.append),r.slots.empty&&(ne.empty=r.slots.empty),S===!0){const He=[];if(L.value){const kt=l.h(Pe.Loading,{class:`${u}__infinite-icon`});He.push(kt);const $n=l.h("span",{class:`${u}__infinite-text`},[t.loadText]);He.push($n)}else{const kt=l.h("span",{class:`${u}__infinite-text`},[t.loadMoreText]);He.push(kt)}const ft={ref:Q,class:`${u}__infinite`},Cn=l.h("div",ft,He);ne.append=()=>Cn}const ae=l.h(w.ElTable,oe,ne),Ve=[];if(Ve.push(ae),!S){let He=null;if(typeof r.slots.pagination=="function")He=r.slots.pagination();else if(t.showPagination){const ft={class:y.value,total:B.value,pageSize:m.value,"onUpdate:pageSize":z,pageSizes:t.pageSizes,currentPage:h.value,"onUpdate:currentPage":P,hideOnSinglePage:t.hideOnSinglePage,layout:t.paginationLayout,samll:t.paginationSmall,background:t.paginationBackground};He=l.h(w.ElPagination,ft)}if(t.showSetting){const ft=[];He&&ft.push(He);const Cn=l.h(w.ElIcon,{class:f.value},{default:()=>l.h(Pe.Setting)}),kt=ir(t,Vn),$n=l.h(xn,{...kt,tableRef:{getColumnSetting:q,setColumnSetting:_,removeColumnSetting:H}},{default:()=>Cn});ft.push($n);const na=l.h("div",{class:d.value},ft);Ve.push(na)}else He&&Ve.push(He)}const pe={default:()=>Ve},Et={...Ie(t,yo,bo,Vn),prop:`${t.prop}_item`};return Et.contentClass=`${u}__wrap`,Et.errorMarkClass="is-table-error",k.value&&b()&&(Et["appear-listen"]=!0,Et.onAppear=Y),l.h(o,Et,pe)}}}}const{componentName:Yu,create:Uu,scope:Gu}=ce("table-item"),Sl=Uu(Wu(Yu,Gu,Te));function Ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Xu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Zu=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function Qu(){const e=l.getCurrentInstance();return new Zu(e.proxy)}function Wr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=Ct(e,n),r=Ct(e,o);if(t!==r)return!1;const a=qt(e,n),i=qt(e,o);return a===i}function Ju(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of t){let i=!1;if(o==="text")i=Ct(e,a)===n;else if(o==="item")i=Wr(e,a,n);else{let s=qt(e,a);s==null&&(s=Ct(e,a)),i=s===n}if(i){r=a;break}}return r}function ec(e){return{text:e,value:e}}function tc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const wo={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,n,o){return{inheritAttrs:!0,props:{...Se,...Oe,...wo},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref(null),c=l.ref(null),f=(V,A,N,k=!0)=>{const T=Ju(t,V,A,N);if(T===null){if(c.value===null)return;c.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!Wr(t,T,c.value)){u.value=V;const E=l.toRaw(T);c.value=E;let O=null;t.valueType==="text"?O=Ct(t,E):t.valueType==="item"?O=E:O=qt(t,E),k&&(s("update:modelValue",O),s("change",O))}},d=l.ref([]),y=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,V=>se(V)),C=Qu(),g=async(V,A)=>{if(V){const N=await C.load("radio",V,A);if(N.length>0)if(typeof N[0]=="string"){let j=N.map(E=>ec(E));d.value=j}else d.value=N}};l.watch([()=>t.source,()=>t.params],async([V,A])=>{g(V,A)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([V,A])=>{f(A,t.valueType,V,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${t.direction}`]:!0})),P=V=>{f(V,"value",d.value,!0)};let z=me(t,"hintText"),L=me(t,"hintVisible");const B=(V,A)=>{const N=[];return V.forEach((k,T)=>{const j=qt(t,k),E=Ct(t,k);let O=Xu(t,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const F=tc(t,k,T)??{},U=`${j}_${T}`,Y={...F,key:U,label:j,size:t.size,border:se(t.border)};O&&(Y.disabled=O),t.itemType==="button"?N.push(l.h(w.ElRadioButton,Y,{default:()=>[E]})):typeof A=="function"?N.push(l.h(w.ElRadio,Y,{default:()=>A(k)})):N.push(l.h(w.ElRadio,Y,{default:()=>[E]}))}),N};return()=>{const A={...Je(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,onChange:P},N=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>B(d.value,r.slots.text);const T=l.h(w.ElRadioGroup,A,k);N.push(T);const j={default:()=>N};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const O={...Ie(t,wo),hintText:z.value,hintVisible:L.value,prop:`${t.prop??r.attrs.name}_item`};return y.value&&(O["appear-listen"]=!0,O.onAppear=m),l.h(o,O,j)}}}}const{componentName:lc,create:oc,scope:rc}=ce("radio-item"),Tl=oc(nc(lc,rc,Te));function $t(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function St(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ac(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ic=class{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await o(t);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await r(o,t))}};function sc(){const e=l.getCurrentInstance();return new ic(e.proxy)}function Yr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const t=$t(e,n),r=$t(e,o);if(t!==r)return!1;const a=St(e,n),i=St(e,o);return a===i}function uc(e,n,o,t){if(t.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of t){let s=!1;if(o==="text")s=$t(e,i)===a;else if(o==="item")s=Yr(e,i,a);else{let u=St(e,i);u==null&&(u=$t(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function cc(e){return{text:e,value:e}}function fc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const xo={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,n,o){return{inheritAttrs:!0,props:{...Se,...Oe,...xo},emits:["change","update:modelValue","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=l.ref([]),c=l.ref([]),f=(V,A,N,k=!0)=>{const T=uc(t,V,A,N);if(T===null){if(c.value===null||c.value.length===0)return;u.value=[],c.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(T.length!==c.value.length)j=!1;else for(let E=0;E<T.length;E++){const O=T[E],F=c.value[E];if(!Yr(t,O,F)){j=!1;break}}if(!j){c.value=T;let E=[],O=[];T.forEach(U=>{E.push(St(t,U)),t.valueType==="text"?O.push($t(t,U)):t.valueType==="item"?O.push(U):O.push(St(t,U))}),u.value=E;const F=l.toRaw(O);k&&(s("update:modelValue",F),s("change",F))}},d=l.ref([]),y=Re(l.computed(()=>t.appearLoad),"appearLoad",_e.Near,V=>se(V)),C=sc(),g=async(V,A)=>{if(V){const N=await C.load("checkbox",V,A);if(N.length>0)if(typeof N[0]=="string"){let j=N.map(E=>cc(E));d.value=j}else d.value=N}};l.watch([()=>t.source,()=>t.params],async([V,A])=>{g(V,A)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(t.source,t.params))};l.watch([()=>d.value,()=>t.modelValue],([V,A])=>{f(A,t.valueType,V,!1),s("setValue",A)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${t.direction}`]:!0})),P=V=>{f(V,"value",d.value,!0)};let z=me(t,"hintText"),L=me(t,"hintVisible");const B=(V,A)=>{const N=[];return V.forEach((k,T)=>{const j=St(t,k),E=$t(t,k);let O=ac(t,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const F=fc(t,k,T)??{},U=`${j}_${T}`,Y={...F,key:U,class:t.itemClass,label:j,size:t.size,border:se(t.border)};O&&(Y.disabled=O),t.itemType==="button"?N.push(l.h(w.ElCheckboxButton,Y,{default:()=>[E]})):typeof A=="function"?N.push(l.h(w.ElCheckbox,Y,{default:()=>A(k)})):N.push(l.h(w.ElCheckbox,Y,{default:()=>[E]}))}),N};return()=>{const A={...Je(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":t.textColor,fill:t.fill,max:xe(t.max),min:xe(t.min),onChange:P},N=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>B(d.value,r.slots.text);const T=l.h(w.ElCheckboxGroup,A,k);N.push(T);const j={default:()=>N};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const O={...Ie(t,xo),hintText:z.value,hintVisible:L.value,prop:`${t.prop??r.attrs.name}_item`};return y.value&&(O["appear-listen"]=!0,O.onAppear=m),l.h(o,O,j)}}}}const{componentName:hc,create:mc,scope:gc}=ce("checkbox-item"),Cl=mc(dc(hc,gc,Te)),So={modelValue:{type:[Number,String],required:!1}};function pc(e,n,o){return{props:{...Se,...Oe,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",h=>xe(h),s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=me(t,"hintText"),C=l.ref(!1);const g=l.ref();return Ne({}),()=>{const m={...Je(r.attrs),ref:g,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],P=l.h(w.ElRate,m,S);b.push(P);const z={default:()=>b};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const B={...Ie(t,So),hintText:y.value,hintVisible:C.value,prop:`${t.prop}_item`};return l.h(o,B,z)}}}}const{componentName:vc,create:yc,scope:bc}=ce("rate-item"),$l=yc(pc(vc,bc,Te)),To={modelValue:{type:[Boolean,String,Number],required:!1}};function wc(e,n,o){return{props:{...Se,...Oe,...To},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),{emitEvent:s}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),u=me(t,"modelValue",null,s),c=e,f=l.computed(()=>({[c]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=me(t,"hintText"),C=me(t,"hintVisible");const g=l.ref();return Ne({}),()=>{const m={...Je(r.attrs),ref:g,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],P=l.h(w.ElSwitch,m,S);b.push(P);const z={default:()=>b};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const B={...Ie(t,To),hintText:y.value,hintVisible:C.value,prop:`${t.prop}_item`};return l.h(o,B,z)}}}}const{componentName:xc,create:Sc,scope:Tc}=ce("switch-item"),Nl=Sc(wc(xc,Tc,Te)),Co={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Cc(e,n,o){return{props:{...Se,...Oe,...Co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(t,r){const a=Me(l.computed(()=>t.disabled)),i=Ae(l.computed(()=>t.readonly)),s=l.ref(!1),{emitEvent:u}=$e({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},t.prop??r.attrs.name),c=me(t,"modelValue",null,u),f=e,d=l.computed(()=>({[f]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let C=me(t,"hintText"),g=l.ref(!1);const h=L=>{let V=L.target.value;s.value=!0,ve(C.value)||(g.value=!0),u("focus",V,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let V=L.target.value;t.maxLength&&V.length>Number(t.maxLength)&&(V=V.slice(0,Number(t.maxLength))),b.value||u("blur",V,L)},S=()=>{u("clear","")},b=l.ref(!1),P=L=>{b.value=L,u("visible-change",L),L||u("selected")},z=l.ref();return Ne({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const B={...Je(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:c.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:P},V={};r.slots.option&&(V.default=r.slots.option);const A=[],N=l.h(w.ElTreeSelect,B,V);A.push(N);const k={default:()=>A};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...Ie(t,Co),hintText:C.value,hintVisible:g.value,prop:`${t.prop}_item`};return l.h(o,j,k)}}}}const{componentName:$c,create:Nc,scope:Ec}=ce("tree-select-item"),El=Nc(Cc($c,Ec,Te)),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"};function Ic(e,n){return l.openBlock(),l.createElementBlock("svg",Pc,n[0]||(n[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 Oc=je(kc,[["render",Ic]]),{componentName:Kh,create:Vc,scope:Wh}=ce("group-setting"),Dc={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:"到底部"}},Fc=Vc({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:Oc,Download:Pe.Download,RefreshLeft:Pe.RefreshLeft},props:{...Dc},emits:["change"],setup(e,{emit:n,attrs:o,expose:t}){let r=null;const a=l.ref([]),i=Kr(),s=I=>I.length>1,u=()=>{const I=[],x=[...a.value];a.value=x.map((D,v)=>(D.visible!==!1&&I.push(D.prop),{...D,sortIndex:v})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),P.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 D=I.$el??I;typeof D.querySelectorAll=="function"&&(x=D.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const R=[];return x.forEach(D=>{const v=D.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const q=D.getAttribute("prop")??"",M=window.getComputedStyle(D,null).getPropertyValue("display");R.push({label:K,prop:q,sortIndex:0,visible:M!=="none"})}),R},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),R=D=>{if(!D||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(q=>{if(q.prop===K.prop){const _=q.label;return Object.assign(q,K),q.label=_,!0}return!1})}),a.value=v.sort((K,q)=>K.sortIndex-q.sortIndex),u(),I&&C(!1)};r?R(!0):cn(f,e.initDelay,5,50,!1,R)},y=()=>{const I=r??[];a.value=I.map(x=>({...x})),u(),C()},C=(I=!0)=>{I&&i.save(e.groupProp,a.value);const x=a.value.map(R=>({...R}));n("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(D=>{I&&x.push(D.prop),D.visible=I}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),P.value=x,C()},b=()=>{y()},P=l.ref([]),z=I=>{a.value.forEach(R=>{const D=I.indexOf(R.prop)!==-1;R.visible=D}),h.value=!1,m.value=!1;const x=a.value.length;I.length===x?h.value=!0:I.length>0&&(m.value=!0),C()},L=()=>{d()};l.onMounted(()=>{d(!0)});const B={currentRow:null,index:null},V=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,V(I)):null:null,A=I=>{const x=I.currentTarget;x&&x.dataset&&(B.index=x.dataset.index)},N=I=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},k=I=>{const x=I.currentTarget;I.relatedTarget;const R=V(x);R&&(I.preventDefault(),B.currentRow&&B.currentRow!==R&&B.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),B.currentRow=R)},T=I=>{I.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},j=I=>{const x=I.currentTarget,R=V(x);if(!R)return;I.preventDefault();const D=Number(B.index),v=Number(R.dataset.index);if(D!==v){if(D<v){const K=a.value[D];a.value.splice(D,1),a.value.splice(v,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(v+1,0,K)}u(),C()}},E=I=>{const x=a.value[I];a.value.splice(I,1),a.value.splice(0,0,x),u(),C()},O=I=>{const x=a.value[I];a.value.splice(I,1),a.value.push(x),u(),C()};t({refresh:()=>{r=null,d(!1)}});const F=new Map;let U=null;function Y(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:P,handleCheckChange:z,onShow:L,onDragStart:A,onDragEnd:N,onDragOver:k,onDragLeave:T,onDrop:j,checkboxLabelStyle:g,toTop:E,toBottom:O,onMouseOverForOverflowText:(I,x,R)=>{const D=I.currentTarget;if(D){const v=Math.floor(D.offsetWidth);if(Math.floor(Y(D))>v){let q=F.get(x);if(q){if(q===U)return;Fe.hide(q)}q=Fe.show(D,R,{type:"text",placement:"top",closeOnClick:!1}),F.set(x,q),U=q}}},onMouseLeaveForOverflowText:(I,x)=>{const R=F.get(x);R&&(Fe.hide(R),R===U&&(U=null))},onMouseOverForTip:(I,x)=>{const R=I.currentTarget;R&&(U&&Fe.hide(U),U=Fe.show(R,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{U&&(Fe.hide(U),U=null)}}}}),Rc={class:"fox-group-setting"},Ac={class:"fox-group-setting__header"},Mc={class:"fox-group-setting__body"},Lc={class:"fox-group-setting__body-list","data-role":"container"},Bc=["data-index","draggable"],_c=["onMouseover","onMouseleave"],qc={class:"tools-item"};function jc(e,n,o,t,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"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Rc,[l.createElementVNode("div",Ac,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=C=>e.isCheckAll=C),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",Mc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=C=>e.checkedValue=C),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Lc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,C=>(l.openBlock(),l.createElementBlock("div",{key:C.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":C.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:n[6]||(n[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:n[7]||(n[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:n[8]||(n[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:n[9]||(n[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:C.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,C.prop,C.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,C.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(C.label),45,_c)]),_:2},1032,["label"]),l.createElementVNode("div",qc,[l.createVNode(f,{onClick:g=>e.toTop(C.sortIndex),onMouseover:n[1]||(n[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:n[2]||(n[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(C.sortIndex),onMouseover:n[3]||(n[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:n[4]||(n[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Bc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const kl=je(Fc,[["render",jc]]);var zc=["aria-labelledby"],Hc=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:n}){let o=e,t=n,r=u=>{t("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,zc))}}),Kc=["aria-labelledby"],Pl=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:n}){let o=e,t=n,r=u=>{t("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,Kc))}}),Wc=["aria-labelledby"],Yc=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:n}){let o=e,t=n,r=u=>{t("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,Wc))}}),Uc=["aria-labelledby"],Gc=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:n}){let o=e,t=n,r=u=>{t("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,Uc))}}),Xc=["aria-labelledby"],Zc=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:n}){let o=e,t=n,r=u=>{t("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,Xc))}});const Qc={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}},$o=(e,n)=>n[e.textKey],Ot=(e,n)=>n[e.valueKey],Jc=(e,n)=>n[e.visibleKey],No=(e,n)=>n[e.disabledKey],ef=(e,n)=>{const o=n[e.doitKey];return se(o)},tf=(e,n)=>{const o=n[e.numKey];return o==null?null:xe(n[o])},Eo=(e,n,o)=>{const t=e.itemOptions;return typeof t=="function"?t(n,o):t||null};function nf(e,n,o,t=!1){return{props:{...Qc},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=he(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,Y(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),C=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(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),P=l.ref([]),z=(I,x)=>{P.value[x]=I},L=I=>x=>{z(x,I)},B=(I,x)=>{const R=b.value,D=P.value;if(!R||!D||!D[I])return;const v=D[I];let K=0;r.direction==="vertical"?K=v.offsetTop-(R.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(R.offsetWidth-v.offsetWidth)/2,V(R,K,x?0:.3,r.direction)},V=(I,x,R,D)=>{let v=0;const K=D==="horizontal"?I.scrollLeft:I.scrollTop,q=R===0?1:Math.round(R*1e3/16);function _(){D==="horizontal"?I.scrollLeft+=(x-K)/q:I.scrollTop+=(x-K)/q,++v<q&&Jn(_)}_()},A=(I,x)=>{const R=Ot(r,I),D={};return D[`${e}__titles-item`]=!0,D.disabled=No(r,I),D.active=R===d.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),x&&(x.class&&(D[`${x.class}`]=!0),x.disabled===!0&&(D.disabled=x.disabled)),D},N=(I,x)=>{const R={};if(f.value>0){const D=Math.abs(f.value/2);r.direction==="vertical"?(R["margin-top"]=`${D}px`,R["margin-bottom"]=`${D}px`):(R["margin-left"]=`${D}px`,R["margin-right"]=`${D}px`)}return x&&x.style&&Object.assign(R,x.style),R},k=(I,x)=>`${Ot(r,I)??x}`,T=(I,x)=>{const R=Ot(r,I),D={};D[`${e}__popup-item`]=!0,D.disabled=No(r,I),D.active=R===d.value,r.shape&&(D[`${r.shape}`]=!0);const v=Eo(r,I,x);return v&&v.disabled===!0&&(D.disabled=v.disabled),D},j=l.computed(()=>(r.data??[]).filter(x=>Jc(r,x)!==!1)),E=(I,x)=>{const R=Ot(r,I);if(d.value==R)return;const D=()=>{d.value=R,r.scroll&&B(x,!1),i("update:modelValue",R),i("change",I,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(I,x);Qo(v)?v.then(K=>{K!==!1&&D()}).catch(()=>{D()}):v!==!1&&D()}else D()},O=(I,x)=>function(){E(I,x)},F=(I,x)=>{E(I,x),S(!1)},U=(I,x)=>function(){F(I,x)},Y=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(R=>Ot(r,R)===d.value);x!==-1&&B(x,I)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const Q=(I,x)=>{if(a.item)return a.item({item:I,index:x});const R=Eo(r,I,x),D=[];if(a.text){const _=a.text({item:I,index:x});D.push(_)}else{const _=[];if(R?.doit===!0||ef(r,I)){const J={class:[`${e}__titles-item-tip`,"doit"]},le=l.h("view",J);_.push(le)}const M=R?.num??tf(r,I);if(M){let J="";const le=xe(M);le>=100?J="99+":J=`${le}`;const $={class:[`${e}__titles-item-tip`,"num"]},p=l.h("view",$,[J]);_.push(p)}const X={class:`${e}__titles-item-text`};_.push($o(r,I));const H=l.h("view",X,_);D.push(H)}const v={class:`${e}__titles-item-line`},K=l.h("view",v);D.push(K);const q={ref:L(x),class:A(I,R),style:N(I,R),key:k(I,x),onClick:O(I,x)};return l.h("view",q,D)},G=()=>{const I=a.default?a.default():[];if(I.length===0)for(let R=0;R<j.value.length;R++){const D=j.value[R],v=Q(D,R);I.push(v)}const x={ref:b,class:u.value,style:c.value};return l.h("view",x,I)},te=()=>{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 R=0;R<j.value.length;R++){const D=j.value[R];let v=null;a.popupItem?v=a.popupItem({item:D,index:R}):v=$o(r,D);const K={class:T(D,R),key:k(D,R),onClick:U(D,R)},q=l.h("view",K,[v]);I.push(q)}const x={class:y.value,style:C.value};return l.h("view",x,I)};return()=>{const I=[],x=G();if(I.push(x),r.showQuickNavigation){const D=te();I.push(D);const v=re();I.push(v)}const R={class:s.value};return l.h("view",R,I)}}}}const{create:lf,componentName:of,scope:rf}=ce("tabs-bar"),Il=lf(nf(of,rf,Hc,!1)),Ur=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,n,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(t,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(t.modelValue??""),direction:l.ref(t.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(!t.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(Ur,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([()=>t.modelValue,()=>t.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,[`${t.direction}`]:!0}));let y=!0;const C=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!c.value)return;const h=()=>{const m=hn(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:C.value,ref:f},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:c};return l.h("view",S,[m])}}}}const{create:uf,componentName:cf,scope:ff}=ce("tabs-container"),Ol=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,n,o){return{props:{...df},setup(t,{emit:r,slots:a}){const i=l.inject(Ur);l.onMounted(()=>{i.add(t.paneKey)}),l.onBeforeUnmount(()=>{i.remove(t.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(()=>t.loaded!=null?se(t.loaded):i.isLoaded(t.paneKey));return()=>{let c=[];if(u.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const d={class:`${e}__empty-icon`},y=t.emptyIcon??o,C=l.h(y,d),g={class:`${e}__empty-text`},h=t.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[C,m]);c.push(b)}const f={class:`${e}`,style:s.value};return l.h("view",f,c)}}}}const{create:mf,componentName:gf,scope:pf}=ce("tabs-pane"),Vl=mf(hf(gf,pf,Pl)),vf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function yf(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ko(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Po(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Fn(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Io(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Oo(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Rn(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class wf{proxy;constructor(n){this.proxy=n}async load(n,o,t){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[t]);const r=We(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(ot(t)&&l.isReactive(t)&&(t=l.toRaw(t)),await Reflect.apply(r,null,[o,t]))}}function xf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function Sf(e,n,o,t){return{props:{...vf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=xf(),c=l.ref([]),f=l.computed(()=>c.value.filter(x=>bf(r,x)!==!1)),d=l.ref(-1),y=()=>{const x=r.modelValue,R=f.value.findIndex(D=>ko(r,D)===x);d.value!==R&&(d.value=R,r.scroll&&re(R,!1))};l.watch([()=>r.modelValue,f],()=>{y()});const C=x=>d.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const R=f.value[x],v=(Rn(r,R,x)??{}).status??Fn(r,R);return C(x)||v},h=l.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),S=(x,R,D,v,K)=>{const q={[`${s}__step`]:!0};return K&&(q[`${K}`]=!0),q[`${b.value}`]=!0,v&&(q["is-doit"]=!0),x===d.value?q["is-active"]=!0:R==="done"?q["is-done"]=!0:R==="error"?q["is-error"]=!0:R==="half"?q["is-half"]=!0:D?q["is-disabled"]=!0:q["is-normal"]=!0,q},b=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),P=(x,R={})=>{const D={...R};return b.value==="start"&&x===f.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},z=(x,R)=>{let D={};if(R<f.value.length-1){const v=R+1;g(R)&&g(v)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},L=x=>f.value.length-1===x,B=(x,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>d.value||d.value===R)return;const D=d.value,v=R;d.value=R,r.scroll&&re(R,!1);const K=ko(r,x);i("update:modelValue",K);const q={fromIndex:D,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,q)},V=l.ref(!0),A=async(x,R)=>{try{const D=await u.load("stesbar",x,R);Array.isArray(D)&&(c.value=D),V.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,R])=>{x&&A(x,R)},{immediate:!0});const N=(x,R,D,v,K)=>{let q=null;if(a.icon)q=a.icon({item:x,index:R,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const X=r.icon??o;q=l.h(X,M)}else{const M=D??`${R+1}`;q=l.h("span",{},[M])}const _={class:"fox-steps-bar__icon",onClick:()=>{K||B(x,R)}};return l.h("view",_,[q])},k=(x,R,D)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:z(x,R)});return l.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const v=r.markIcon??t;x=l.h(v,D)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},j=(x,R,D,v,K)=>{const q=[];if(!L(R)){const X=k(x,R);q.push(X)}const _=N(x,R,D,v,K);q.push(_);const M={class:"fox-steps-bar__head"};return l.h("view",M,q)},E=(x,R,D,v)=>{let K=null;a.main?K=a.main({item:x,index:R,status:D}):K=yf(r,x);const q={class:"fox-steps-bar__main",onClick:()=>{v||B(x,R)}};return l.h("view",q,[K])},O=(x,R,D)=>{let v=null;if(a.sub){v=a.sub({item:x,index:R,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[v])}return null},F=(x,R)=>{const D=Rn(r,x,R)??{},v=D.status??Fn(r,x);let K=Po(r,x);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const q=D.label??Oo(r,x),_=[],M=N(x,R,q,v,K);M&&_.push(M);const X=E(x,R,v,K);if(X&&_.push(X),!L(R)){const W=k(x,R);W&&_.push(W)}const H=l.h("view",{class:"fox-steps-bar__head"},_),J=D.class,le=D.style??{};let $=Io(r,x);D.doit===!0&&($=!0);const p={ref:te(R),class:S(R,v,K,$,J),style:P(R,le)};return l.h("view",p,[H])},U=(x,R)=>{const D=Rn(r,x,R)??{},v=D.status??Fn(r,x);let K=Po(r,x);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const q=D.label??Oo(r,x),_=[],M=r.layout;for(let $ of M)if($==="head"){const p=j(x,R,q,v,K);_.push(p)}else if($==="main"){const p=E(x,R,v,K);_.push(p)}else if($==="sub"){const p=O(x,R,v);_.push(p)}else if($==="mark"){const p=T();_.push(p)}const X=D.class,H=D.style??{};let J=Io(r,x);D.doit===!0&&(J=!0);const le={ref:te(R),class:S(R,v,K,J,X),style:P(R,H)};return l.h("view",le,_)},Y=l.ref(),Q=l.ref([]),G=(x,R)=>{Q.value[R]=x},te=x=>R=>{G(R,x)},re=(x,R)=>{const D=Y.value,v=Q.value;if(!D||!v||!v[x])return;const K=v[x];let q=0;r.direction==="vertical"?q=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:q=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,I(D,q,R?0:.3,r.direction)},I=(x,R,D,v)=>{let K=0;const q=v==="horizontal"?x.scrollLeft:x.scrollTop,_=D===0?1:Math.round(D*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(R-q)/_:x.scrollTop+=(R-q)/_,++K<_&&Jn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let D=0;D<f.value.length;D++){const v=f.value[D],K=F(v,D);x.push(K)}else for(let D=0;D<f.value.length;D++){const v=f.value[D],K=U(v,D);x.push(K)}const R={ref:Y,class:h.value,style:m.value};return l.h("view",R,x)}}}}const{componentName:Tf,create:Cf,scope:$f}=ce("steps-bar"),Dl=Cf(Sf(Tf,$f,Gc,Zc)),Nf=Symbol.for("InnerPageScopeKey"),Ef=Symbol.for("PageWrapperKey");function kf(e,n){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,t){l.provide(Nf,!0);const r={};l.provide(Ef,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const c={...t.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 t.slots.default=="function"){const d=t.slots.default();f.default=()=>d}return l.h(w.ElDialog,c,f)}}}}const{componentName:Yh,create:Pf,scope:Uh}=ce("dialog-item"),Fl=Pf(kf());let Vt=0;const Vo="fox-overflow-hidden",Do=()=>Ze?document.body:{classList:[]},If=e=>[()=>{if(e())try{!Vt&&Do().classList.add(Vo),Vt++}catch{}},()=>{if(e()&&Vt)try{Vt--,!Vt&&Do().classList.remove(Vo)}catch{}}],Of={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:Vf,create:Df}=ce("overlay"),Ff=Df({props:{...Of},emits:["click","update:visible"],setup(e,{emit:n}){const[o,t]=If(()=>e.lockScroll),r=l.computed(()=>({[Vf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():t()}),{classes:r,style:a,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Rf(e,n,o,t,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:n[0]||(n[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 Sn=je(Ff,[["render",Rf]]),Af={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:{}}},Gr=2e3;let Fo=Gr;const Mf=(e,n)=>({components:n,props:{...Af},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:t}){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!==Gr&&(Fo=Number(o.zIndex)),t("update:visible",!0),r.zIndex=++Fo,o.destroyOnClose&&(r.showSlot=!0),t("open")},c=()=>{t("update:visible",!1),t("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{t("click-pop",h)},d=h=>{h.stopPropagation(),t("click-close-icon",h),t("update:visible",!1)},y=h=>{t("click-overlay",h),o.closeOnClickOverlay&&t("update:visible",!1)},C=h=>{t("opend",h)},g=h=>{t("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:y,onOpened:C,onClosed:g}}}),{componentName:Lf,create:Bf}=ce("popup"),_f=Bf(Mf(Lf,{FoxOverLay:Sn,Close:Yc}));function qf(e,n,o,t,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:n[1]||(n[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:n[0]||(n[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 Rl=je(_f,[["render",qf]]),{create:jf}=ce("toast"),zf=jf({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:n}){let o=null;const t=l.reactive({mounted:!1});l.onMounted(()=>{t.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{t.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),l.watch(()=>e.duration,C=>{C&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const C=he(e.iconSize);return l.h(e.icon,{width:C,height:C,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:t,hide:a,clickCover:s,renderIcon:c,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,n,o,t,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:n[0]||(n[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",Hf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Al=je(zf,[["render",Wf]]),Yf={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"}},Uf=(e,n,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(t,{slots:r}){const{emitEvent:a}=vr(),{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["placeholder"]),u=l.reactive({active:!1}),c=l.computed(()=>({background:t.background})),f=l.computed(()=>({background:t.inputBackground})),d=N=>{let T=N.target.value;t.maxLength&&T.length>Number(t.maxLength)&&(T=T.slice(0,Number(t.maxLength))),a("update:modelValue",T,N),a("change",T,N)},y=l.ref({}),C=N=>{let T=N.target.value;u.active=!0,y.value=t.focusStyle,a("focus",T,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let T=N.target.value;t.maxLength&&T.length>Number(t.maxLength)&&(T=T.slice(0,Number(t.maxLength))),y.value={},a("blur",T,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(t.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",t.modelValue)},P=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},z=N=>{a("click-input",N)},L=N=>{a("click-left-icon",t.modelValue,N)},B=l.computed(()=>({textAlign:t.inputAlign})),V=l.ref(null);l.onMounted(()=>{t.autofocus&&V.value.focus()});const A=()=>{const N=[];if(r.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},F=l.h("view",O,[r.leftin()]);N.push(F)}const k={ref:V,class:[`${e}__input-inner`],style:B.value,type:t.inputType,maxlengt:t.maxLength,placeholder:s.placeholder.value,value:t.modelValue,disabled:t.disabled,readonly:t.readonly,onClick:z,onInput:d,onFocus:C,onBlur:g,onkeyup:P},T=l.h("input",k);N.push(T);const j=[];if(t.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},F=r?.clear?.()??t.clearIcon??o,U=l.h("view",O,[l.h(F)]);j.push(U)}if(r.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},F=l.h("view",O,[r.rightin()]);j.push(F)}if(j.length>0){const O={class:`${e}__input-inner-right`},F=l.h("view",O,j);N.push(F)}const E={class:[`${e}__search-input`,`${t.shape}`],style:{...f.value,...y.value}};return l.h("view",E,N)};return()=>{const N=[];if(t.label){const j={class:`${e}__search-label`},E=l.h("span",j,[t.label]);N.push(E)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},E=l.h("view",j,[r.leftout()]);N.push(E)}const k=A();if(N.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},E=l.h("view",j,[r.rightout()]);N.push(E)}const T={class:`${e}`,style:c.value};return l.h("view",T,N)}}}),{componentName:Gf,create:Xf,scope:Zf}=ce("searchbar"),Ml=Xf(Uf(Gf,Zf,Pe.CircleClose)),Qf=/scroll|auto|overlay/i,Xr=window;function Jf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ed(e,n=Xr){let o=e;for(;o&&o!==n&&Jf(o);){const{overflowY:t}=window.getComputedStyle(o);if(Qf.test(t))return o;o=o.parentNode}return n}function Zr(e,n=Xr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ed(e.value,n))}),o}const Qr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={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 nd(e,n,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullText","loadText","loadMoreText"]),u=l.ref(),c=Zr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,C=()=>{let b=0,P=0,z="down";if(c.value==window){const L=Qr();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),P=L}else{const{scrollHeight:L,clientHeight:B,scrollTop:V}=c.value;b=L-B-V,P=V}return f.beforeScrollTop>P?z="up":z="down",f.beforeScrollTop=P,r("scroll-change",P),b<=t.threshold&&z=="down"},g=()=>{Wo(()=>{if(!C()||!t.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,t.useCapture)},m=()=>{c.value&&c.value.removeEventListener("scroll",g,t.useCapture)};l.onMounted(()=>{h(),t.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(()=>t.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},P=l.h("view",b,[a?.default?.()]),z=[];if(f.isInfiniting){let A=a?.loading?.()??null;if(!A){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=l.h(o,O)}const j={class:"fox-infinite__bottom-box__text"},E=l.h("view",j,[s.loadText.value]);A=[T,E]}const N={class:"fox-infinite__bottom-box"},k=l.h("view",N,A);z.push(k)}else if(!t.hasMore){let A=a?.finished?.()??null;if(!A){const N={class:"fox-infinite__bottom-tips"};A=l.h("view",N,[s.loadMoreText.value]),z.push(A)}}const L={class:"fox-infinite__bottom"},B=l.h("view",L,z),V={class:d.value,ref:u};return l.h("view",V,[P,B])}}}}const{componentName:ld,create:od,scope:rd}=ce("infinite-loading"),Ll=od(nd(ld,rd,Pl)),Ro=10;function Jr(e,n){return e>n&&e>Ro?"horizontal":n>e&&n>Ro?"vertical":""}function Bl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _l(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",t=()=>{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=Jr(e.offsetX,e.offsetY))},start:i=>{if(t(),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:t,isVertical:n,isHorizontal:o,state:e}}function ad(){const e=l.ref(0),n=l.ref(0),o=l.ref(0),t=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",y=()=>f.value==="horizontal",C=()=>{i.value=0,s.value=0,u.value=0,c.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const P=m.touches[0];i.value=P.clientX-e.value,s.value=P.clientY-n.value,r.value=P.clientX,a.value=P.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-n.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),c.value=Math.abs(s.value),t.value=Date.now()-o.value,f.value||(f.value=Jr(u.value,c.value))},start:m=>{if(C(),m.touches){const P=m.touches[0];e.value=P.clientX,n.value=P.clientY}else{const b=m;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()},reset:C,startX:e,startY:n,startTime:o,duration:t,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:c,direction:f,isVertical:d,isHorizontal:y}}const id={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},sd=(e,n,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(t,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(n),s=i(t,["pullingText","loosingText","loadingText"]),u=_l(),c=l.ref(),f=Zr(c),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),C=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:`${t.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const V={};return t.headHeight!=50&&(V.height=ke(t.headHeight)),V}),m=V=>{const A=+(t.pullDistance||t.headHeight);let N=V;return V>A&&(V<A*2?N=(V+A)/2:N=A+V/4),Math.round(N)},S=(V,A)=>{const N=+(t.pullDistance||t.headHeight);d.distance=V,A?d.status="loading":V===0?d.status="normal":V<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:V})},b=()=>d.status!=="loading"&&d.status!=="complete",P=()=>f.value==window?Qr()==0:f.value&&f.value.scrollTop==0,z=V=>{b()&&(P()?(u.start(V),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=V=>{b()&&d.moving&&(u.move(V),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(V.cancelable&&V.preventDefault(),S(m(u.state.deltaY))))},B=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+t.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>t.modelValue,V=>{V?S(+t.headHeight,!0):S(0)}),()=>{const V=[];let A=null;if(d.status==="loading"){if(A=a?.loading?.()??null,!A){const U={class:["fox-pull-refresh-container-topbox-icon"]};A=l.h(o,U)}}else d.status==="pulling"?A=a?.pulling?.()??null:d.status==="loosing"&&(A=a?.loosing?.()??null);A&&V.push(A);const N={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",N,[C.value]);V.push(k);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",T,V),E={class:"fox-pull-refresh-container",style:g.value},O=l.h("div",E,[j,a?.default?.()]),F={ref:c,class:y.value};return Bl()?Object.assign(F,{onTouchstart:z,onTouchmove:L,onTouchend:B}):Object.assign(F,{onMousedown:z,onMousemove:L,onMouseup:B}),l.h("div",F,[O])}}}),{componentName:ud,create:cd,scope:fd}=ce("pull-refresh"),ql=cd(sd(ud,fd,Pl)),dd={visible:{type:Boolean},reference:{type:[Object,String]},trigger:{type:String,default:"click"},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},title:{type:String},content:{type:String},width:{type:String},offset:{type:Number,default:()=>6},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},popperClass:{type:[String]},popperStyle:{type:[Object]},leaveHide:{type:[Boolean]},persistenet:{type:[Boolean],default:()=>!1},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function hd(e,n,o=!1){return{props:dd,emits:["update:visible","open","close"],setup(t,{emit:r,slots:a,expose:i}){const s=e,u=l.ref({top:null,right:null,bottom:null,left:null}),c=l.ref(0),f=l.ref(0),d=l.ref(0),y=l.ref(0),C=l.ref(t.placement),g=l.ref(!1),h=l.ref(!1),m=l.ref(null),S=l.ref(null),b=()=>S.value?S.value?.$el??S.value:typeof t.reference=="string"?document.querySelector(t.reference):t.reference,P=p=>{if(p instanceof Element){const W=p.getBoundingClientRect();return{left:W.left,top:W.top,right:W.right,bottom:W.bottom}}return p},z=(p,W,ee,ue,ie,fe,be,Ye=!0)=>{const Ue=document.documentElement.clientWidth||document.body.clientWidth,Ge=document.documentElement.clientHeight||document.body.clientHeight,Ce=p.split("-");let et=[];Ye?Ce[0]==="top"?et=["top","bottom","right","left"]:Ce[0]==="bottom"?et=["bottom","top","right","left"]:Ce[0]==="left"?et=["left","top","bottom","right"]:Ce[0]==="right"&&(et=["right","top","bottom","left"]):et=[p[0]];const ze={top:null,right:null,bottom:null,left:null},Nt=[];for(let ge=0;ge<et.length;ge++){const Z=et[ge];if(Nt[0]=Z,Ce[1]&&(Nt[1]=Ce[1]),Z==="top"){const oe=ee-be-t.arrowSize/2-t.offset;if(oe>=0){ze.top=oe;let ne=0;Ce[1]==="start"?ne=W:Ce[1]==="end"?ne=W+ue-fe:ne=W+ue/2-fe/2;const ae=Ue-ne-fe;ae<0?(ne+=ae,B.value=-ae):B.value=0,ze.left=ne<0?0:ne;break}}else if(Z==="bottom"){const oe=ee+ie+t.arrowSize/2+t.offset;if(oe+be<=Ge){ze.top=oe;let ne=0;Ce[1]==="start"?ne=W:Ce[1]==="end"?ne=W+ue-fe:ne=W+ue/2-fe/2;const ae=Ue-ne-fe;ae<0?(ne+=ae,B.value=-ae):B.value=0,ze.left=ne<0?0:ne;break}}else if(Z==="left"){const oe=W-fe-t.arrowSize/2-t.offset;if(oe>=0){ze.left=oe;let ne=0;Ce[1]==="start"?ne=ee:Ce[1]==="end"?ne=ee+ie-be:ne=ee+ie/2-be/2,ze.top=ne<0?0:ne;break}}else if(Z==="right"){const oe=W+ue+t.arrowSize/2+t.offset;if(oe+fe<=Ue){ze.left=oe;let ne=0;Ce[1]==="start"?ne=ee:Ce[1]==="end"?ne=ee+ie-be:ne=ee+ie/2-be/2,ze.top=ne<0?0:ne;break}}}return{bestPlacement:Nt.join("-"),bestInsetRect:ze}},L=()=>{const p=t.autoFit;if(!Ze||A.value===!1)return;const W=b();if(!W)return;const ee=P(W);if(!ee)return;c.value=ee.left??0,f.value=ee.top??0,d.value=(ee.right??0)-(ee.left??0),y.value=(ee.bottom??0)-(ee.top??0);const ue=m.value.offsetWidth,ie=m.value.offsetHeight,{bestPlacement:fe,bestInsetRect:be}=z(t.placement,c.value,f.value,d.value,y.value,ue,ie,p);C.value=fe,u.value=be},B=l.ref(0),V=vt(()=>{L()},10),A=l.ref(t.visible),N=p=>{A.value!==p&&(A.value=p,r("update:visible",p),r(p?"open":"close"),p?(g.value=p,setTimeout(()=>{L(),h.value=!0},0)):h.value=!1)};l.watch([()=>t.visible],([p])=>{N(p)});const k=l.computed(()=>A.value&&T.value),T=l.ref(!0),j=vt(p=>{const W=p[0];W&&(T.value=W.isIntersecting)},10),E=new IntersectionObserver(j),O=(p,W)=>{p&&(setTimeout(()=>{L()},0),t.autoFit&&(W&&W instanceof Element&&(Rt.unwatch(W,V),E.unobserve(W)),p&&p instanceof Element&&(Rt.watch(p,V),E.observe(p))))};l.watch(()=>t.reference,(p,W)=>{O(p?.$el??p,W?.$el??W)},{immediate:!0}),l.watch(()=>S.value,(p,W)=>{O(p?.$el??p,W?.$el??W)}),l.onBeforeUnmount(()=>{const p=b();p instanceof Element&&(Rt.unwatch(p,V),E.unobserve(p)),E?.disconnect()});let F=null,U=null;const Y=()=>{F&&(clearTimeout(F),F=null)},Q=()=>{U&&(clearTimeout(U),U=null)},G=()=>{Q(),t.openDelay>0?(Y(),F=setTimeout(()=>{F=null,N(!0)},t.openDelay)):N(!0)},te=()=>{Y(),t.closeDelay>0?(Q(),U=setTimeout(()=>{U=null,N(!1)},t.closeDelay)):N(!1)},re=()=>{A.value?te():G()};i({open:G,close:te,doLayout:L});const I=(p,...W)=>{p&&(Array.isArray(p)?p.forEach(ee=>{ee(...W)}):p(...W))},x=p=>{const W=p.props||{},ee={...W};switch(t.trigger){case"click":{const ue=W.onClick;ee.onClick=ie=>{I(ue,ie),re()};break}case"hover":{const ue=W.onMouseenter,ie=W.onMouseleave;ee.onMouseenter=fe=>{I(ue,fe),G()},ee.onMouseleave=fe=>{I(ie,fe),te()};break}case"focus":{const ue=W.onFocus;ee.onFocus=ie=>{I(ue,ie),G()};break}case"contextmenu":{const ue=W.onContextmenu;ee.onContextmenu=ie=>{ie.preventDefault(),I(ue,ie),re()};break}}return ee},R=()=>{const p=a.reference?.();if(!p?.length)return null;const W=p[0];return l.cloneVNode(W,{...x(W),ref:ee=>{S.value=ee?.ref??ee}})},D=l.computed(()=>{const p={[s]:!0};return C.value.startsWith("top")?p["is-top"]=!0:C.value.startsWith("right")?p["is-right"]=!0:C.value.startsWith("bottom")?p["is-bottom"]=!0:C.value.startsWith("left")&&(p["is-left"]=!0),p[`is-${t.effect}`]=!0,!h.value&&k.value&&(p["is-opacity"]=!0),h.value&&k.value&&(p["is-show"]=!0),k.value||(p["is-hide"]=!0),t.popperClass&&typeof t.popperClass=="string"&&(p[`${t.popperClass}`]=!0),p}),v=l.computed(()=>{const p={};return u.value.top!==null&&(p.top=`${u.value.top}px`),u.value.right!==null&&(p.right=`${u.value.right}px`),u.value.bottom!==null&&(p.bottom=`${u.value.bottom}px`),u.value.left!==null&&(p.left=`${u.value.left}px`),t.width&&(p.width=t.width),t.zIndex&&(p["z-index"]=`${t.zIndex}`),t.popperStyle&&typeof t.popperStyle=="object"&&Object.assign(p,t.popperStyle),p}),K=()=>{N(!1)},q=()=>{if(S.value&&t.trigger==="hover"||!t.showOverlay)return null;const p={class:`${s}__overlay`,onClick:K};return l.h("div",p)},_=()=>{let p=null;return a.title?p=l.h("div",{class:`${s}__title`},{default:a.title}):t.title&&(p=l.h("div",{class:`${s}__title`},[t.title])),p},M=l.computed(()=>({[`${s}__arrow`]:!0})),X=l.computed(()=>{const p={};return t.showArrow?(p.width=`${t.arrowSize}px`,p.height=`${t.arrowSize}px`,C.value==="top"?(p.left="50%",p.bottom="0",p.transform="translate(-50%, 50%)"):C.value==="top-start"?(p.left=`${t.arrowOffset+B.value}px`,p.bottom="0",p.transform="translate(-50%, 50%)"):C.value==="top-end"?(p.right=`${t.arrowOffset-B.value}px`,p.bottom="0",p.transform="translate(-50%, 50%)"):C.value==="right"?(p.left="0",p.top="50%",p.transform="translate(-50%, -50%)"):C.value==="right-start"?(p.left="0",p.top=`${t.arrowOffset}px`,p.transform="translate(-50%, 50%)"):C.value==="right-end"?(p.left="0",p.bottom=`-${t.arrowOffset}px`,p.transform="translate(-50%, 50%)"):C.value==="bottom"?(p.left="50%",p.top="0",p.transform="translate(-50%, -50%)"):C.value==="bottom-start"?(p.left=`${t.arrowOffset+B.value}px`,p.top="0",p.transform="translate(-50%, -50%)"):C.value==="bottom-end"?(p.right=`${t.arrowOffset-B.value}px`,p.top="0",p.transform="translate(-50%, -50%)"):C.value==="left"?(p.right="0",p.top="50%",p.transform="translate(50%, -50%)"):C.value==="left-start"?(p.right="0",p.top=`${t.arrowOffset}px`,p.transform="translate(50%, -50%)"):C.value==="left-end"&&(p.right="0",p.bottom=`-${t.arrowOffset}px`,p.transform="translate(50%, -50%)"),p):{display:"none"}}),H=()=>{const p={class:M.value,style:X.value};return l.h("div",p)},J=()=>{A.value===!1&&t.persistenet!==!0&&(g.value=!1)},le=p=>{if(!m.value||A.value===!1)return;const{relatedTarget:W}=p;m.value.contains(W)||N(!1)},$=()=>{const p=[],W=_();if(W&&p.push(W),a.default){const fe=a.default();p.push(fe)}const ee=H();ee&&p.push(ee);const ue={ref:m,class:D.value,style:v.value,onAnimationend:J};return t.leaveHide&&(ue.onMouseleave=le),l.h("div",ue,{default:()=>p})};return()=>{const p=[],W=R();if(W&&p.push(W),!g.value)return p.length===null?null:p;const ee=[],ue=q();ue&&ee.push(ue);const ie=$();ie&&ee.push(ie);const fe=l.h(l.Teleport,{to:t.teleport,disabled:t.teleportDisable},{default:()=>ee});return p.push(fe),p}}}}const{componentName:md,create:gd,scope:pd}=ce("popover-dialog"),jl=gd(hd(md,pd,!1));function vd(e,n){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:t}){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(t.mark)f=t.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},y=t.default?t.default():[],C=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,C]):l.h("div",g,[C,f])}}}}const{componentName:yd,create:bd,scope:Gh}=ce("indicator"),zl=bd(vd(yd));function wd(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const t=o.getBoundingClientRect().width;if(t>0){n(t);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"),n(r)},500)}const xd={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 Sd(e,n,o,t=!1){return{props:{...xd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const P={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(P[`${e}--${r.type??"default"}`]=!0),r.size&&(P[`${e}--${r.size}`]=!0),P}),u=l.computed(()=>{const P={},z=r.textColor??r.color;return z&&(P.color=z),P}),c=(P,z)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const B=r.highlightFilter;if(P.indexOf(B)!==-1){const A=P.replace(new RegExp(B,"g"),`<span>${B}</span>`);z.innerHTML=A,z.class["is-highlight"]=!0,L=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const B=r.highlightFilter(P);B&&(z.innerHTML=B,z.class["is-highlight"]=!0,L=l.h(r.tag,z))}return L},f=P=>{a.emit("click",P)};let d="";const y=()=>{const P=i.value;if(!P)return;const z=P.clientWidth;wd(P,L=>{const B=P.innerHTML??"";ve(B)||L<z||(d?o?.show(P,B,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(P,B,{type:"text",showArrow:r.showArrow},!0)??"")})},C=()=>{d&&o?.hide(d)};let g=null;const h=P=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=P=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{C()},r.hideAfter??0)},S=()=>{const P=i.value;P&&(P.addEventListener("mouseover",h),P.addEventListener("mouseleave",m))},b=()=>{const P=i.value;P&&(P.removeEventListener("mouseover",h),P.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||(b(),C())}),()=>{const P={onClick:f,class:s.value,style:u.value,ref:i};let z=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 k=xe(r.digits),T=xe(r.decimalLength),j=se(r.autoPadding);let E=`${A[0].children}`,O=E.split("").reverse().join("");O=on(O,T,j,k,r.separator),E=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=c(E,P)),z||(P.innerHTML=E,z=l.h(r.tag,P))}}}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 k=`${A[0].children}`;z=c(k,P),z||(P.innerHTML=k,z=l.h(r.tag,P))}}}z||(z=l.h(r.tag,P,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let B=null;if(r.icon){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const N={},k=r.color;k&&(N.color=k);const T={class:A,style:N};B=l.h("view",T,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={},k=r.color;k&&(N.color=k);const T={class:A,style:N};B=l.h("view",T,{default:a.slots.mark})}else{const A={[`${e}__mark`]:!0};r.type&&(A[`${e}__mark--${r.type??"default"}`]=!0);const N={},k=r.color;k&&(N["background-color"]=k);const T={class:A,style:N};B=l.h("view",T)}const V={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",V,[B,z])}}}}const{componentName:Td,create:Cd,scope:$d}=ce("text"),Hl=Cd(Sd(Td,$d,Fe,!1)),Nd={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:Pe.ArrowUp}};function Ed(e,n,o){return{props:{...Nd},emits:["click","update:modelValue"],setup(t,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return t.disabled?d[`${e}__disabled`]=!0:d[`${e}__${t.type}`]=!0,d}),i=me(t,"modelValue"),s=l.computed(()=>i.value?t.expandText??"":t.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 y={class:c.value},C=o(t.icon,y);return C&&d.push(C),l.h("div",{class:a.value,onClick:f},d)}}}}const{componentName:kd,create:Pd,scope:Id}=ce("more-button"),Od=(e,n)=>(e=e??Pe.ArrowUp,l.h(w.ElIcon,n,{default:()=>[l.h(e)]})),Kl=Pd(Ed(kd,Id,Od));function Vd(e){return e===window}const ea=e=>{const n=l.unref(e);if(Vd(n)){const o=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:o,bottom:t,width:o,height:t}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Dd,create:Fd,scope:Xh}=ce("tour"),Rd=Fd({components:{Close:Pe.Close,ElPopover:w.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:n}){const o=Dd,t=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:P,top:z}=r.value,L=e.steps[t.active].offset??g,B=[P+S/2,z+b/2],V=Number(h||S),A=Number(m||b);return{width:`${V+ +L.left+L.right}px`,height:`${A+L.top+L.bottom}px`,top:`${B[1]-A/2-+L.top}px`,left:`${B[0]-V/2-+L.left}px`}}),s=g=>{g=="next"?t.active=t.active+1:t.active=t.active-1,t.showPopup=!1,l.nextTick(()=>{t.showPopup=!0,f()}),n("change",t.active)},u=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[t.active].target}`),h=ea(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{t.showTour=!1,t.showPopup=!1,n("close",t.active),n("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},C=(g,h=0)=>{g&&f(),e.steps,t.active=h,t.showTour=g,t.showPopup=g};return l.onMounted(()=>{C(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{C(g)}),{...l.toRefs(t),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:c,close:d,handleClickMask:y}}}),Ad={key:0,class:"fox-tour__content"},Md={key:0,class:"fox-tour__content-top"},Ld={class:"fox-tour__content-inner"},Bd={class:"fox-tour__content-bottom"},_d={class:"fox-tour__content-bottom-init"},qd={class:"fox-tour__content-bottom-operate"},jd={key:1,class:"fox-tour__content fox-tour__content-tile"},zd={class:"fox-tour__content-inner"};function Hd(e,n,o,t,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:n[0]||(n[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",Ad,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Md,[l.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Ld,l.toDisplayString(c.content),1),l.createElementVNode("div",Bd,[l.createElementVNode("div",_d,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",qd,[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:n[2]||(n[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:n[3]||(n[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",jd,[l.createElementVNode("div",zd,l.toDisplayString(c.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Wl=je(Rd,[["render",Hd]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Kd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=Bl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=_l(),t=(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),t(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{t(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ao(e,n){return new Kd(e,n)}let bt=[];const Mo=e=>{const n=e;n.key==="Escape"&&bt.forEach(o=>o(n))},Wd=e=>{l.onMounted(()=>{bt.length===0&&document.addEventListener("keydown",Mo),Ze&&bt.push(e)}),l.onBeforeUnmount(()=>{bt=bt.filter(n=>n!==e),bt.length===0&&Ze&&document.removeEventListener("keydown",Mo)})},An="fox-focus-trap.focus-after-trapped",Lo="fox-focus-trap.focus-after-released",Yd="fox-focus-trap.focusout-prevented",Bo={cancelable:!0,bubbles:!1},Ud={cancelable:!0,bubbles:!1},_o="foxFocusAfterTrapped",qo="foxFocusAfterReleased",Gd=Symbol("foxFocusTrap"),Yl=l.ref(),Tn=l.ref(0),Ul=l.ref(0);let Yt=0;const ta=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{const r=t.tagName==="INPUT"&&t.type==="hidden";return t.disabled||t.hidden||r?NodeFilter.FILTER_SKIP:t.tabIndex>=0||t===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},Xd=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},jo=(e,n)=>{for(const o of e)if(!Xd(o,n))return o},Zd=e=>{const n=ta(e),o=jo(n,e),t=jo(n.reverse(),e);return[o,t]},Qd=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Ul.value=window.performance.now(),e!==o&&Qd(e)&&n&&e.select()}};function zo(e,n){const o=[...e],t=e.indexOf(n);return t!==-1&&o.splice(t,1),o}const Jd=()=>{let e=[];return{push:t=>{const r=e[0];r&&t!==r&&r.pause(),e=zo(e,t),e.unshift(t)},remove:t=>{e=zo(e,t),e[0]?.resume?.()}}},eh=(e,n=!1)=>{const o=document.activeElement;for(const t of e)if(it(t,n),document.activeElement!==o)return},Ho=Jd(),th=()=>Tn.value>Ul.value,Ut=()=>{Yl.value="pointer",Tn.value=window.performance.now()},Ko=()=>{Yl.value="keyboard",Tn.value=window.performance.now()},nh=()=>(l.onMounted(()=>{Yt===0&&(document.addEventListener("mousedown",Ut),document.addEventListener("touchstart",Ut),document.addEventListener("keydown",Ko)),Yt++}),l.onBeforeUnmount(()=>{Yt--,Yt<=0&&(document.removeEventListener("mousedown",Ut),document.removeEventListener("touchstart",Ut),document.removeEventListener("keydown",Ko))}),{focusReason:Yl,lastUserFocusTimestamp:Tn,lastAutomatedFocusTimestamp:Ul}),Gt=e=>new CustomEvent(Yd,{...Ud,detail:e}),{componentName:Zh,create:lh,scope:Qh}=ce("focus-trap"),oh={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"}},rh=lh({props:oh,emits:[_o,qo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const t=l.ref();let r,a;const{focusReason:i}=nh();Wd(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:P,currentTarget:z,shiftKey:L}=h,{loop:B}=e,V=m==="Tab"&&!S&&!b&&!P,A=document.activeElement;if(V&&A){const N=z,[k,T]=Zd(N);if(k&&T){if(!L&&A===T){const E=Gt({focusReason:i.value});o("focusout-prevented",E),E.defaultPrevented||(h.preventDefault(),B&&it(k,!0))}else if(L&&[k,N].includes(A)){const E=Gt({focusReason:i.value});o("focusout-prevented",E),E.defaultPrevented||(h.preventDefault(),B&&it(T,!0))}}else if(A===N){const E=Gt({focusReason:i.value});o("focusout-prevented",E),E.defaultPrevented||h.preventDefault()}}};l.provide(Gd,{focusTrapRef:t,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(t.value=h)},{immediate:!0}),l.watch([t],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const c=h=>{o(_o,h)},f=h=>o(qo,h),d=h=>{const m=l.unref(t);if(!m)return;const S=h.target,b=h.relatedTarget,P=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),P&&o("focusin",h),!s.paused&&se(e.trapped)&&(P?a=S:it(a,!0))},y=h=>{const m=l.unref(t);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!el(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=Gt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||it(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function C(){await l.nextTick();const h=l.unref(t);if(h){Ho.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(An,Bo);h.addEventListener(An,c),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let P=e.focusStartEl;Zo(P)||(it(P),document.activeElement!==P&&(P="first")),P==="first"&&eh(ta(h),!0),(document.activeElement===m||P==="container")&&it(h)})}}}function g(){const h=l.unref(t);if(h){h.removeEventListener(An,c);const m=new CustomEvent(Lo,{...Bo,detail:{focusReason:i.value}});h.addEventListener(Lo,f,{once:!0}),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!th())&&it(r??document.body,!0),Ho.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&C(),l.watch(()=>e.trapped,h=>{se(h)?C():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g(),t.value&&(t.value.removeEventListener("keydown",u),t.value.removeEventListener("focusin",d),t.value.removeEventListener("focusout",y))}),()=>typeof n.default=="function"?n.default({"handle-keydown":u}):null}}),{componentName:ah,create:ih,scope:Jh}=ce("floating-window"),sh=Symbol.for("InnerPageScopeKey"),uh=Symbol.for("PageWrapperKey"),ch={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}},fh=ih({inheritAttrs:!1,components:{FoxIcon:w.ElIcon,FocusTrap:rh},props:{...ch},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=ah,t=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,$=>{t.value=$});const a=l.computed(()=>t.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 $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=l.computed(()=>{const $={};return dt(i.value)?$.left="auto":$.left=De(i.value),dt(s.value)?$.top="auto":$.top=De(s.value),dt(u.value)?$.right="auto":$.right=De(u.value),dt(c.value)?$.bottom="auto":$.bottom=De(c.value),dt(e.zIndex)||($["z-index"]=De(e.zIndex)),dt(B.value)||($.height=B.value),dt(V.value)||($.width=V.value),$}),y=l.computed(()=>e.closeIcon??Pe.Close),C=l.computed(()=>e.collapseIcon??Pe.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Pe.ArrowRight:e.expandIcon??Pe.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})),P=l.ref(),z=l.ref(null),L=l.ref(null),B=l.computed(()=>De(e.height)||""),V=l.computed(()=>De(e.width)||""),A=l.ref(se(e.collapse)),N=($,p=!0)=>{A.value!==$&&(A.value=$,$?x():R(),n("update:collapse",$),$&&typeof j.onHide=="function"?j.onHide():!$&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,$=>{N($)});const k=()=>{T()},T=$=>{$=$??!A.value,N($)};l.provide(sh,!0);const j={setCollapse:N,setFixedNavVisible:$=>{te.value=$}};l.provide(uh,j);const E=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{t.value=!1}):t.value=!1},O=l.ref(null),F=l.computed(()=>!e.fixedNavTeleport),U=l.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),Y=l.ref(""),Q=l.computed(()=>{const $={};return Y.value?$.top=Y.value:e.collapseTop&&($.top=e.collapseTop),$}),G=l.ref(A.value),te=l.computed({set:$=>{G.value=$},get:()=>t.value===!1?!1:G.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),te.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},R=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),te.value=!1}},D=()=>{i.value=null,s.value=null,u.value=null,c.value=null},v={x:0,y:0},_=Ao($=>{if(!P.value)return;const p=P.value;if(D(),e.origin==="left-top")i.value=p.offsetLeft,s.value=p.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const W=document.documentElement.clientHeight||document.body.clientHeight;i.value=p.offsetLeft,c.value=W-(p.offsetTop+p.offsetHeight),v.x=i.value,v.y=c.value}else if(e.origin==="right-bottom"){const W=document.documentElement.clientWidth||document.body.clientWidth,ee=document.documentElement.clientHeight||document.body.clientHeight;u.value=W-(p.offsetLeft+p.offsetWidth),c.value=ee-(p.offsetTop+p.offsetHeight),v.x=u.value,v.y=c.value}else{const W=document.documentElement.clientWidth||document.body.clientWidth;u.value=W-(p.offsetLeft+p.offsetWidth),s.value=p.offsetTop,v.x=u.value,v.y=s.value}},$=>{if(!P.value)return;const p=P.value;D(),e.origin==="left-top"?(i.value=v.x+$.x,s.value=v.y+$.y,p.style.left=De(i.value),p.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=v.x+$.x,c.value=v.y-$.y,p.style.left=De(i.value),p.style.bottom=De(c.value)):e.origin==="right-bottom"?(u.value=v.x-$.x,c.value=v.y-$.y,p.style.right=De(u.value),p.style.bottom=De(c.value)):(u.value=v.x-$.x,s.value=v.y+$.y,p.style.right=De(u.value),p.style.top=De(s.value))}),M={x:0,y:0},J=Ao($=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},$=>{if(!O.value)return;const p=M.y+$.y;Y.value=`${p}px`}),le=()=>{if(P.value){const $=P.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=$}};return l.onMounted(()=>{if(e.draggable&&P.value){const $=[];z.value&&$.push(z.value),e.footerDraggable&&(le(),L.value&&$.push(L.value)),_.open($)}e.collapse===!0&&N(e.collapse,!1),O.value&&J.open(O.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&_.close(),O.value&&J.close()}),{classes:f,styles:d,isShow:a,closeIcon:y,onClose:E,dialogRef:P,headerRef:z,onClickToggle:k,collapseIcon:C,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:te,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:Q,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:F}}}),dh={ref:"headerRef",class:"fox-floating-window__header"},hh={class:"fox-floating-window__title"},mh={class:"fox-floating-window__tools"},gh={class:"fox-floating-window__body"},ph={class:"fox-floating-window__fixednav__text"};function vh(e,n,o,t,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",dh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",hh,l.toDisplayString(e.title),1),l.createElementVNode("div",mh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[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",gh,[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:n[2]||(n[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[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",ph,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Gl=je(fh,[["render",vh]]);function yh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:t}){return gr(o.name,()=>o.config),()=>typeof t.default=="function"?t.default():null}}}const{componentName:em,create:bh,scope:tm}=ce("domain-provider"),Xl=bh(yh()),wh={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 xh(e,n){return{inheritAttrs:!1,props:wh,setup(o,{slots:t}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,C)=>{if(f===null){a.set(y,{visible:null,callback:C});return}r.has(y)&&f.unobserve(y),r.set(y,{visible:null,callback:C}),f.observe(y)},s=y=>{if(f===null){a.delete(y);return}r.has(y)&&(r.delete(y),f.unobserve(y))};let u=o.initialVisibleObserverSize;ci({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const d=(y,C,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(P){console.error(P)}}},{root:y,rootMargin:C,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,C])=>{if(C||!y||f)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof t.default=="function"?t.default():null}}}const{componentName:nm,create:Sh,scope:lm}=ce("rolling-provider"),Zl=Sh(xh()),Th=[ll,rl,al,il,sl,Te,ul,cl,zt,fl,dl,hl,ml,gl,pl,vl,yl,bl,wl,xl,xn,Sl,Tl,Cl,$l,Nl,El,kl,Il,Ol,Vl,Dl,Fl,Sn,Rl,Al,Ml,Ll,ql,jl,_t,wn,zl,Hl,Kl,Wl,Gl,Xl,Zl],Ch=new qa(Th,[Ha],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>w.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>w.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>w.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>w.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>w.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>w.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>w.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>w.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>w.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>w.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>w.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>w.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>w.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>w.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>w.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>w.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>w.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>w.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>w.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>w.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>w.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>w.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>w.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>w.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>w.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>w.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>w.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>w.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>w.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>w.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>w.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>w.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>w.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>w.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>w.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>w.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>w.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>w.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>w.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>w.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>w.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>w.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>w.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>w.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>w.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>w.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>w.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>w.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>w.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>w.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>w.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>w.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>w.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>w.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>w.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>w.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>w.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>w.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>w.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>w.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>w.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>w.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>w.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>w.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>w.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>w.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>w.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>w.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>w.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>w.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>w.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>w.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>w.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>w.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>w.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>w.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>w.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>w.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>w.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>w.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>w.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>w.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>w.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>w.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>w.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>w.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>w.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>w.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>w.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>w.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>w.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>w.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>w.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>w.ElUpload});exports.AutocompleteItem=bl;exports.Broadcast=tl;exports.BroadcastKey=ye;exports.CascaderItem=yl;exports.CheckboxItem=Cl;exports.Content=il;exports.DataItemsKey=yt;exports.DateItem=hl;exports.DateUtils=Be;exports.DialogItem=Fl;exports.Domain=fn;exports.DomainKey=Le;exports.DomainProvider=Xl;exports.FloatingWindow=Gl;exports.FooterBar=al;exports.FoxAutocompleteItem=bl;exports.FoxCascaderItem=yl;exports.FoxCheckboxItem=Cl;exports.FoxContent=il;exports.FoxDateItem=hl;exports.FoxDialogItem=Fl;exports.FoxDomainProvider=Xl;exports.FoxFloatingWindow=Gl;exports.FoxFooterBar=al;exports.FoxGroup=sl;exports.FoxGroupSetting=kl;exports.FoxHeaderBar=rl;exports.FoxHintText=zt;exports.FoxIndicator=zl;exports.FoxInfiniteLoading=Ll;exports.FoxInputItem=fl;exports.FoxInputNumberItem=vl;exports.FoxItem=Te;exports.FoxMapping=_t;exports.FoxMoneyItem=pl;exports.FoxMoreButton=Kl;exports.FoxOverLay=Sn;exports.FoxPage=ll;exports.FoxPopoverDialog=jl;exports.FoxPopup=Rl;exports.FoxPrice=wn;exports.FoxPullRefresh=ql;exports.FoxRadioItem=Tl;exports.FoxRateItem=$l;exports.FoxRollingProvider=Zl;exports.FoxRowItem=cl;exports.FoxSearchBar=Ml;exports.FoxSelectItem=dl;exports.FoxSlotItem=ul;exports.FoxStepsBar=Dl;exports.FoxSwitchItem=Nl;exports.FoxTableItem=Sl;exports.FoxTableMappingColumn=wl;exports.FoxTableRadioColumn=xl;exports.FoxTableSetting=xn;exports.FoxTabsBar=Il;exports.FoxTabsContainer=Ol;exports.FoxTabsPane=Vl;exports.FoxText=Hl;exports.FoxTimeItem=ml;exports.FoxTimeSelectItem=gl;exports.FoxToast=Al;exports.FoxTour=Wl;exports.FoxTreeSelectItem=El;exports.Group=sl;exports.GroupSetting=kl;exports.HeaderBar=rl;exports.HintText=zt;exports.Indicator=zl;exports.InfiniteLoading=Ll;exports.InputItem=fl;exports.InputNumberItem=vl;exports.Item=Te;exports.Mapping=_t;exports.MoneyItem=pl;exports.MoreButton=Kl;exports.OverLay=Sn;exports.Page=ll;exports.PopoverDialog=jl;exports.Popup=Rl;exports.Price=wn;exports.PriorityPolicy=_e;exports.PullRefresh=ql;exports.RadioItem=Tl;exports.RateItem=$l;exports.RollingProvider=Zl;exports.RowItem=cl;exports.SearchBar=Ml;exports.SelectItem=dl;exports.SlotItem=ul;exports.StepsBar=Dl;exports.SwitchItem=Nl;exports.TableItem=Sl;exports.TableMappingColumn=wl;exports.TableRadioColumn=xl;exports.TableSetting=xn;exports.TabsBar=Il;exports.TabsContainer=Ol;exports.TabsPane=Vl;exports.Text=Hl;exports.TimeItem=ml;exports.TimeSelectItem=gl;exports.Toast=Al;exports.Tour=Wl;exports.TreeSelectItem=El;exports.UniqueID=kr;exports.ValidateSchema=dr;exports.ValidateSchemaKey=Ke;exports.cancelRaf=ra;exports.clearNonNumber=va;exports.clone=Hn;exports.compareTo=qn;exports.createBroadcast=sn;exports.createValidateSchema=un;exports.debounce=vt;exports.debounceRef=Ia;exports.decimalLength=ar;exports.default=Ch;exports.defineBroadcast=xa;exports.defineConfigDomain=gr;exports.defineDataItem=pr;exports.defineDomain=nl;exports.defineItem=$e;exports.definePageState=yr;exports.defineSimpleItem=vr;exports.deleteGlobalValidator=Na;exports.disabledProperty=Me;exports.divide=Qn;exports.excludeProps=Ie;exports.extend=pt;exports.floatData=wa;exports.getGlobalValidateCheckEvents=ur;exports.getGlobalValidateResetEvents=fr;exports.getPageContentAreaHeight=Jt;exports.getPageContentAreaWidth=en;exports.getPageFooterAreaHeight=Lt;exports.getPageHeaderAreaHeight=Mt;exports.getRootDomain=wt;exports.hasSymbol=er;exports.includeProps=ir;exports.indexOf=ya;exports.integerLength=rr;exports.isArray=ia;exports.isArrayLike=nr;exports.isBrowser=Ze;exports.isDate=ca;exports.isESModule=da;exports.isEmptyString=ve;exports.isEqual=lt;exports.isFunction=jn;exports.isHidden=an;exports.isInnerPage=Da;exports.isMap=sa;exports.isNil=el;exports.isNumberString=or;exports.isObject=ot;exports.isPlainObject=zn;exports.isPromise=Qo;exports.isRegExp=Kn;exports.isSet=ua;exports.isString=Zo;exports.isSubPage=Fa;exports.isSymbol=fa;exports.isTouch=Bl;exports.isWindow=tr;exports.lastIndexOf=ba;exports.makeArray=pa;exports.merge=lr;exports.multiply=Uo;exports.negate=Go;exports.nextTick=ma;exports.numberFormat=on;exports.objectToString=Jo;exports.once=Oa;exports.overrideGlobalValidateHandler=Ca;exports.property=Re;exports.raf=Jn;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Ea;exports.setGlobalValidateHandler=Ta;exports.setGlobalValidateMessages=Pa;exports.setGlobalValidateResetEvents=ka;exports.setGlobalValidator=$a;exports.throttle=mr;exports.toBoolean=se;exports.toNumber=xe;exports.toPadding=Xe;exports.toPx=he;exports.toPxDesc=ke;exports.toTypeString=rn;exports.toValue=me;exports.tryTimes=cn;exports.typeOf=Zt;exports.unNumberFormat=Xo;exports.updatePageState=Wn;exports.useBroadcast=Dt;exports.useDomain=ct;exports.useExpose=Ne;exports.useInnerSize=ol;exports.usePageState=dn;exports.usePosition=Nr;exports.useRawTouch=_l;exports.useRect=ea;exports.useSize=hn;exports.useTouch=ad;exports.valueLength=jt;