@fox-js/foxui-pad 4.0.1-15 → 4.0.1-17
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 +3 -3
- package/dist/index.esm.js +5822 -5700
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/types/index.d.ts +199 -100
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(y=typeof globalThis<"u"?globalThis:y||self,t(y.FoxUI={},y.Vue,y.FoxValidator,y.ElementPlus,y.ElementPlusIconsVue,y.FoxI18n))})(this,function(y,t,Xe,k,ke,Ee){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Sat Dec 16 2023 10:00:50 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Ot=window,Yl=typeof window<"u";function Wl(){return typeof Ot<"u"?Ot.requestAnimationFrame||Ot.webkitRequestAnimationFrame||function(e){Ot.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ul(e){Yl?cancelAnimationFrame(e):clearTimeout(e)}const Mo=Wl();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Dt(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=ln(Ce(e),Ce(n)),a==1&&(o==1?e=an(e):n=an(n));let l=to(e,n);return a?a==2?"-"+Ce(l):e.length<l.length?Ce(l.substring(1)):"-"+Ce(an(l)):Ce(l)}function an(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return to(n,r)}function Ce(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 ln(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function to(e,n){[e,n]=ln(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var de=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(de||{});function ft(e,n=0,a=de.HALF_EVEN){if(a===de.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=ft(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,no(l[1],r,o,a)?(o?"-":"")+rn(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&no(i,s,o,a)&&(s=rn(s),s.length>n)?(o?"-":"")+rn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function no(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===de.DOWN||!a&&o===de.FLOOR||a&&o===de.CEILING)return!1;if(o===de.UP||a&&o===de.FLOOR||!a&&o===de.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case de.HALF_DOWN:return!1;case de.HALF_UP:return!0;case de.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function rn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function sn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=ht(e),n=ht(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=ht(e.replace(".","")),n=ht(n.replace(".","")),e.length<n.length){let h=e;e=n,n=h}if(n=="0")return"0";let s=n.length,i=0,c=[],d=s-1,u="";for(let h=0;h<s;h++)c[h]=e.length-1;for(let h=0;h<2*e.length;h++){let g=0;for(let C=n.length-1;C>=d&&C>=0;C--)c[C]>-1&&c[C]<e.length&&(g+=parseInt(e[c[C]--])*parseInt(n[C]));g+=i,i=Math.floor(g/10),u=g%10+u,d--}return u=ht(Yl(u,r)),a==1&&(u="-"+u),u}function Yl(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 ht(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 cn(e,n,a=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 o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ce(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Ce(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let u=e.length-d+l;e=Ce(e.substring(0,u)+"."+e.substring(u))}else l==d&&(e=Ce(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Dt(c,"-"+n),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Ce(ft(i,a-2))}function un(e,n){return e=e.toString(),n=n.toString(),n=dn(n),Dt(e,n)}function dn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function oo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ao(e),ao(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=un(e,sn(n,ft(cn(e,n),0,de.FLOOR)));return a+o}function ao(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function lo(e,n){let a=!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),a=!0),[e,n]=ln(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class oe{value;static RoundingModes=de;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[a,o]=n.split(/[eE]/);a=Ce(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ce(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=oe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=oe.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return oe.getPrettyValue(this.value,n,a)}static round(n,a=0,o=de.HALF_EVEN){if(n=oe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return ft(n,a,o)}round(n=0,a=de.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new oe(ft(this.value,n,a))}static floor(n){return n=oe.validate(n),n.indexOf(".")===-1?n:oe.round(n,0,de.FLOOR)}floor(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,de.FLOOR)}static ceil(n){return n=oe.validate(n),n.indexOf(".")===-1?n:oe.round(n,0,de.CEILING)}ceil(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,de.CEILING)}static add(n,a){return n=oe.validate(n),a=oe.validate(a),Dt(n,a)}add(n){return new oe(Dt(this.value,n.getValue()))}static subtract(n,a){return n=oe.validate(n),a=oe.validate(a),un(n,a)}subtract(n){return new oe(un(this.value,n.getValue()))}static multiply(n,a){return n=oe.validate(n),a=oe.validate(a),sn(n,a)}multiply(n){return new oe(sn(this.value,n.getValue()))}static divide(n,a,o){return n=oe.validate(n),a=oe.validate(a),cn(n,a,o)}divide(n,a){return new oe(cn(this.value,n.getValue(),a))}static modulus(n,a){return n=oe.validate(n),a=oe.validate(a),oo(n,a)}modulus(n){return new oe(oo(this.value,n.getValue()))}static compareTo(n,a){return n=oe.validate(n),a=oe.validate(a),lo(n,a)}compareTo(n){return lo(this.value,n.getValue())}static negate(n){return n=oe.validate(n),dn(n)}negate(){return new oe(dn(this.value))}}function ro(e,n){return oe.multiply(`${e}`,`${n}`)}function fn(e,n,a=8){return oe.divide(`${e}`,`${n}`,a)}function hn(e,n){return e=`${e}`,n=`${n}`,oe.compareTo(e,n)}function io(e){return oe.negate(e)}function Et(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let u;if(o>0){let h="",g=i.split("").reverse();for(let C=0;C<g.length;C++)h+=g[C]+((C+1)%o==0&&C+1!=g.length?l:"");c.length==0?u=`${s}${h.split("").reverse().join("")}`:u=`${s}${h.split("").reverse().join("")}.${c}`}else c.length==0?u=`${s}${i}`:u=`${s}${i}.${c}`;return u}function so(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const co=eo,Wl=Array.isArray,Ul=e=>xt(e)==="[object Map]",Gl=e=>xt(e)==="[object Set]",Fe=e=>e instanceof Date,mn=e=>typeof e=="function",uo=e=>typeof e=="string",Xl=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Zl=e=>Be(e)&&mn(e.then)&&mn(e.catch),fo=Object.prototype.toString,xt=e=>fo.call(e),gn=e=>xt(e)==="[object Object]",ho=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Jl(e){return e.__esModule||ho&&e[Symbol.toStringTag]==="Module"}const Ql=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ue(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=Ue(l,d,c)}else c!==void 0&&(n[s]=c)}}return n}function pn(e,n,a=!1){if(!a)Ue(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!gn(s))continue;r=pn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!gn(s))continue;r=pn(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const yn=Ql?Promise.resolve():null;function er(e,...n){yn!==null?n&&n.length>0?yn.then(()=>{e(n)}):yn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function se(e){return typeof e=="number"?e:Number(e)}const tr={"[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 tt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):tr[a]||"object"}function mo(e){return e&&typeof e=="object"&&"setInterval"in e}function go(e){return!e||e.offsetParent===null}function po(e){let n=!!e&&"length"in e&&e.length,a=tt(e);return a==="function"||mo(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function yo(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function nr(e,n=[]){let a=n;return e!=null&&(po(Object(e))?yo(a,typeof e=="string"?[e]:e):a.push(e)),a}function Le(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=tt(e),o=tt(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],d=n[i];if(!Le(c,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Le(r,s))return!1}return!0}return!1}const Ge=typeof window<"u";function bn(e){return e==null}function bo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function So(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wo(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 a=n.indexOf(".");return a==-1?n.length:a}function Co(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function vo(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function or(e,n=!0,a=!0){n?e=vo(e,".",/\./g):e=e.replace(/\./g,""),a?e=vo(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ar(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Le(e,a))return!0}):n.indexOf(e)}function lr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Le(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Ve(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mt(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Se(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const rr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e},ge=Symbol.for("BroadcastKey");class Sn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):bo(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Nt(e,n,a,o){const l=new Sn(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ir(e,n,a){const o=a;if(o[ge])return o[ge];const l=t.inject(ge,null),r=new Sn(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ge]=r,t.provide(ge,r),t.onUnmounted(()=>{r.destroy(),o[ge]=void 0}),r}function gt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ge]??t.inject(ge,null):t.inject(ge,null)}const Xe=e=>e.default??e;class sr{error(n,a){const o=a,l=gt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=gt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=gt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let ko=new sr;function cr(e){ko=e}function ur(e,n){Xe(We).setValidator(e,n)}function dr(e){Xe(We).deleteValidator(e)}let To=["blur","clear"];function fr(e){To=e}function $o(){return To}let Do=["focus","change"];function hr(e){Do=e}function Eo(){return Do}function mr(e){Xe(We).messages(e)}function pt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Vt(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 Me=Symbol("ValidateSchemaKey");class xo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Vt(pt(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=Vt(o);const l=pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=ko;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,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,a,o=!1){o?Xe(We).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?Xe(We).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return Xe(We).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Vt(n):this.rules=Vt([n]);const o=pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=pt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=Xe(We),c=new i(l),d=this.proxy??s;return c.validate(s,{context:d}).then(h=>{if(h.pass)this.success();else{let g="error";Array.isArray(h.errors)&&h.errors.length>0&&(g=h.errors[0].message??g,h.errors=[h.errors[0]],h.errors[0].ref=d),this.error(g)}return h}).catch(h=>{const g=h.message??`${h}`;return this.error(g),h})}}return Promise.resolve({pass:!0})}}function Bt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new xo(n,a,e)}const No=Symbol.for("EventEmitterKey");class gr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function Vo(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function pr(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function yr(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function wn(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ne=Symbol("DomainKey"),nt=Symbol("DataItemsKey");class It{_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=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const br=new It;function ot(){return br}function Pe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const Cn=Symbol("OriginalDateKey");function vn(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ne,null);s===null&&(s=ot());const i=e||n.prop||n.name,c=new It(i);c.parent=s;const d=p=>{r[Cn]||g(p),c.set("modelValue",p)},u=()=>c.getForSelf("modelValue")??null,h=()=>r[Cn]??null,g=p=>{const k={};Ue(!0,k,t.toRaw(p)),r[Cn]=k};t.isReactive(n)?t.watchEffect(()=>{c.merge(n,a)}):c.merge(n,a),n.modelValue&&g(n.modelValue),r[Ne]=c,t.provide(Ne,c);let C=null,b=null;if(l!==null){const p=t.inject(ge,null);C=Nt(r,p,i,o),c.broadcast=C,r[ge]=C,t.provide(ge,C),r.broadcast=(m,y,...f)=>Reflect.apply(C.emit,C,[m,y,...f]);const k=t.inject(Me,null);b=Bt(r,k,{componentName:""}),c.validateSchema=b,r[Me]=b,t.provide(Me,b),r[nt]=new Map,r.validate=(m=!0)=>{const y=[];let f=null;const A={deep:!1};if(m===!0)f={name:"*"};else if(Array.isArray(m)&&m.length>0){const O=m;f={name:F=>F?O.indexOf(F)!==-1:!1}}else if(m!=null&&typeof m=="object"){const O=m;if(A.ignoreHidden=O.ignoreHidden,Array.isArray(O.include)&&O.include.length>0){const F=O.include;f={name:R=>R?F.indexOf(R)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const F=O.exclude;f={name:R=>R?F.indexOf(R)===-1:!1}}else f={name:"*"}}if(f){const O=C?.emitToChildren(f,"validate",A);O&&Reflect.apply([].push,y,O)}return y.length==1?y[0]:y.length>1?Promise.all(y).then(O=>{let F=[];return O.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(F=[...F,...R.errors])}),F.length>0?{pass:!1,errors:F}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,y=!0)=>{if(y){const f=Reflect.ownKeys(m),A=[...f],O={name:F=>{const R=f.includes(F);if(R){const I=A.findIndex(E=>F===E);I!==-1&&A.splice(I,1)}return R}};C?.emitToChildren(O,"setNameValidateRules",m,!1),A.length>0&&A.forEach(F=>{let R=String(F);const E=Ao(c,R,{componentName:"",fieldName:R,pureDataValidate:!0},C,b);r[nt].set(R,E);const x=m[R];x&&E.validateSchema.setRule(x)})}},r.clearValidate=(m=!0)=>{let y=null;if(m===!0)y={name:"*"};else if(Array.isArray(m)&&m.length>0){const f=m;y={name:A=>A?f.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const f=m;if(Array.isArray(f.include)&&f.include.length>0){const A=f.include;y={name:O=>O?A.indexOf(O)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const A=f.exclude;y={name:O=>O?A.indexOf(O)===-1:!1}}else y={name:"*"}}y&&C?.emitToChildren(y,"clearValidate",!1)},r.resetFields=m=>{const y=u();if(!y)return;const f={};if(Ue(!0,f,h()??{}),Array.isArray(m))m.forEach(A=>{y[A]=f[A]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(O=>{y[O]=f[O]});else if(m&&Array.isArray(m.exclude)){let A=m.exclude??[];Reflect.ownKeys(f).forEach(O=>{A.includes(O)||(y[O]=f[O])})}else Object.assign(y,f);r.clearValidate(m)},r.setModelValue=(m,y)=>{!y||y===i?d(m):C?.emitToChildren({name:y},"setModelValue",m)},r.getModelValue=()=>u()}return t.onUnmounted(()=>{c.destroy(),r[Ne]=void 0,r[nt]&&(r[nt].clear(),r[nt]=void 0),C!==null&&(C.destroy(),r[ge]=void 0),b!==null&&(b.destroy(),r[Me]=void 0)}),c}function Bo(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ne,null);r===null&&(r=ot());const s=e||n.prop||n.name,i=new It(s);return i.parent=r,t.isReactive(n)?t.watchEffect(()=>{i.merge(n,a)}):i.merge(n,a),l[Ne]=i,t.provide(Ne,i),t.onUnmounted(()=>{i.destroy(),l[Ne]=void 0}),i}function Io(e,n,a){const l=Pe(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{n.setRule(s)}))}function pe(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ge,null),i=Nt(l,s,r,a);l[ge]=i,t.provide(ge,i),l.broadcast=(b,p,...k)=>Reflect.apply(i.emit,i,[b,p,...k]);const c=t.inject(Me,null);e.fieldName=e.fieldName??r;const d=Bt(l,c,e);l[Me]=d,t.provide(Me,d),Io(l,d,r),l.validate=(b=null)=>{const p=[];let k=!1,m=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)m=!0,k=!0;else if(b&&typeof b=="object"){const y=b;y.ignoreHidden===!0&&go(l.$el)?m=!1:(Array.isArray(y.include)&&y.include.indexOf(r)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(r),m=!0),k=y.deep??!1}else typeof b=="boolean"&&(k=b),m=!0;if(m){const y=d?.validate();p.push(y)}if(k){let y=null;const f={deep:!1};if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const A=b;y={name:O=>O?A.indexOf(O)!==-1:!1}}else if(b!=null&&typeof b=="object"){const A=b;if(f.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const O=A.include;y={name:F=>F?O.indexOf(F)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const O=A.exclude;y={name:F=>F?O.indexOf(F)===-1:!1}}else y={name:"*"}}if(y){const A=i.emitToChildren(y,"validate",f);Reflect.apply([].push,p,A)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(y=>{let f=[];return y.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(f=[...f,...A.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>d?.setRule(b),l.setNameValidateRules=(b,p=!1)=>{const k=b[r];if(k&&d?.setRule(k),p){const m={name:y=>Reflect.ownKeys(b).includes(y)};i.emitToChildren(m,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&d?.clear();let p=null;if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const k=b;p={name:m=>m?k.indexOf(m)!==-1:!1}}else if(b!=null&&typeof b=="object"){const k=b;if(Array.isArray(k.include)&&k.include.length>0){const m=k.include;p={name:y=>y?m.indexOf(y)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const m=k.exclude;p={name:y=>y?m.indexOf(y)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const u=new gr(l);l[No]=u;const h=yt((b="validate")=>{b==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:$o()).forEach(b=>{u.on(b,p=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Eo()).forEach(b=>{u.on(b,p=>{h("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ge]=void 0,d.destroy(),l[Me]=void 0,u.destroy(),l[No]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(b,...p)=>{Reflect.apply(u.emit,u,[b,...p])},onEvent:(b,p)=>{Reflect.apply(u.on,u,[p])},offEvent:(b,p)=>{Reflect.apply(u.off,u,[p])}}}function Ao(e,n,a,o,l){const r={},s=n??"";a.fieldName=s,a.validateHandler={getValue(d){const u=e.getForSelf("modelValue");return u?u[s]:null}};const i=Bt({},l,a);r.validate=(d=null)=>{const u=[];let h=!1,g=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)g=!0,h=!0;else if(d&&typeof d=="object"){const C=d;Array.isArray(C.include)&&C.include.indexOf(s)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(s),g=!0,h=C.deep??!1}else typeof d=="boolean"&&(h=d),g=!0;if(g){const C=i?.validate();u.push(C)}if(h){let C=null;const b={deep:!1};if(d===!0)C={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;C={name:k=>k?p.indexOf(k)!==-1:!1}}else if(d!=null&&typeof d=="object"){const p=d;if(Array.isArray(p.include)&&p.include.length>0){const k=p.include;C={name:m=>m?k.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const k=p.exclude;C={name:m=>m?k.indexOf(m)===-1:!1}}else C={name:"*"}}if(C){const p=c.emitToChildren(C,"validate",b);Reflect.apply([].push,u,p)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(C=>{let b=[];return C.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(b=[...b,...p.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=d=>i?.setRule(d),r.setNameValidateRules=d=>{const u=d[s];u&&i?.setRule(u)};const c=Nt(null,o,s,r);return{broadcast:c,validateSchema:i}}const ye=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,n)}px`:"";function ce(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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Ge){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const o=Number(e);return isNaN(o)?0:o}const je="PageStateKey";function Ie(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function kn(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight),e.headerPadding=Ie(a.headerPadding??n.headerPadding),e.footerHeight=ce(a.footerHeight??n.footerHeight),e.footerPadding=Ie(a.footerPadding??n.footerPadding),e.contentPadding=Ie(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function Oo(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;kn(o,r,n,!0,s,i,c,d);const u=t.reactive(o),h=e.getForParent(je);h&&(o.height=Ot(e,h),o.width=Rt(e,h),t.watch([()=>h.height,()=>h.width,()=>h.contentPadding,()=>h.headerMounted,()=>h.footerMounted],()=>{u.height=Ot(e,h),u.width=Rt(e,h)}));const g=!h;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,b,p=-1,k=-1,m=0,y=0])=>{kn(u,b,n,g,p,k,m,y)}),e.set(je,u),u}function At(e){return e.get(je)}function bt(e,n){if(n=n??e.get(je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function St(e,n){if(n=n??e.get(je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Ot(e,n){if(n=n??e.get(je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=bt(e,n),o=St(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Rt(e,n){return n=n??e.get(je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Sr(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function wr(e){return!!e.getForParent(je)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Tn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function xe(e,n,a=1,o){const l=Pe();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Tn(c,o))return c}const s=e.value;return Tn(s,o)?s:null}):t.computed(()=>{const r=e.value;return Tn(r,o)?r:l?.get(n)})}function ve(e){return xe(e,"readonly",0,function(a){return te(a)})}function ke(e){return xe(e,"disabled",0,function(a){return te(a)})}function ie(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Ro=new Map,Ft=new Map;let $n=null;function Cr(e){$n=e}function Fo(e,n,a){if(a){let o=Ft.get(a);o||(o=new Map,Ft.set(a,o)),o.set(e,n)}else Ro.set(e,n)}function Ae(e,n,a){!a&&$n&&(a=$n(e)??void 0);let o=null;if(a){let l=Ft.get(a);l&&(o=l.get(n))}return o||(o=Ro.get(n)),o}function vr(e,n){for(let a in e){const o=e[a];Fo(a,o,n)}}function kr(e){Ft.delete(e)}function Tr(){return{top:0,left:0,bottom:0,right:0}}function $r(e=0,n=0){if(Ge){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(n,o),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Dr{packages;installers;_version;get version(){return this._version}constructor(n,a,o){this.packages=n,this.installers=a,this._version=o}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ot();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Vo(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=Ue({},Tr(),n.safeAreaInset),s=$r(o,l),i=Ue({},s.pageLayout,n.pageLayout);a=a??ot(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){Cr(n)}setAPI(n,a,o){Fo(n,a,o)}getAPI(n,a,o){return Ae(n,a,o)}batchSetAPI(n,a){vr(n,a)}clearScopeAPI(n){kr(n)}getRootDomain(){return ot()}}const Er=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],xr=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Nr=e=>{Er.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),xr.forEach(n=>{e.use(n)})};function J(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const he={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},we={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Lo={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}},Mo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{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},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}},Po=[];for(const e in Mo)Po.push(e);function fe(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const Vr=Symbol.for("InnerPageScopeKey"),Br=(e,n)=>({inheritAttrs:!0,props:{...he,...Lo,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}},setup(a,o){const l=vn(a.name,a);if(l){const d=Oo(l,a);fe({getPageContentHeight:()=>Ot(l,d),getPageContentWidth:()=>Rt(l,d),getPageHeaderHeight:()=>bt(l,d),getPageFooterHeight:()=>St(l,d)});const u=t.inject(Vr,!1);d&&u&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=d=>{const u=i?.proxy;u&&typeof u.setNameValidateRules=="function"&&u.setNameValidateRules(d,!0)};return t.watch(()=>a.rules,(d,u)=>{if(!d&&!u)return;const h=t.toRaw(u),g=t.toRaw(d),C=g?Reflect.ownKeys(g):[];(h?Reflect.ownKeys(h):[]).forEach(p=>{C.includes(p)||(g[p]=[])}),c(g)},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);c(d)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:s}}}),{componentName:Ir,create:Ar,scope:Kh}=J("page"),Or=Ar(Br(Ir));function Rr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const ue=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},qo=ue(Or,[["render",Rr]]),Fr=["aria-labelledby"],Lr=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mr=[Lr],Pr=t.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}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mr,14,Fr))}}),qr=["aria-labelledby"],zr=t.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),jr=[zr],_r=t.defineComponent({__name:"Left",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}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jr,14,qr))}}),Hr=["aria-labelledby"],Kr=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),Yr=[Kr],Wr=t.defineComponent({__name:"JoySmile",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}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},Yr,14,Hr))}}),Ur=["aria-labelledby"],Gr=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Xr=[Gr],Zr=t.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}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Xr,14,Ur))}}),Jr=["aria-labelledby"],Qr=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ei=[Qr],ti=t.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}){const a=e,o=i=>{n("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},r=t.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=t.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(r.value),style:t.normalizeStyle(s.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ei,14,Jr))}});function Dn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function En(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const ni=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=Pe(),i=s?At(s):null;i&&(i.headerMounted=!0);const c=t.computed(()=>{const D=e;return{[D]:!0,[`${D}--border`]:l.border,[`${D}--fixed`]:l.fixed,[`${D}--safe-area-inset-top`]:l.safeAreaInsetTop}}),d=l.height!==null&&l.height!==void 0?ce(l.height):null,u=t.computed(()=>{const D={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const N=Ie(l.padding??i.headerPadding);return Object.assign(D,N),d&&(i.headerHeight=d),D.height=i.headerHeight,D.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,D.safeAreaTop>0&&(D.top=D.safeAreaTop+(N.top??0),D.height=D.height+D.safeAreaTop),D}if(d&&(D.height=d),l.padding){const N=Ie(l.padding);Object.assign(D,N)}return D}),h=t.ref(null),g=()=>{if(i&&h.value&&h.value.offsetParent!==null){if(!o){const D=Dn(h.value);i.headerAllHeight=D.height}return i.headerMounted=!0,!0}return!1};t.onMounted(()=>{i&&wn(g,50,5,50,!0)}),t.onUnmounted(()=>{i&&(i.headerMounted=!1)});const C=t.computed(()=>{const D={};return u.value.height!==null&&u.value.height!==void 0&&(D.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(D.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(D.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(D.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(D.paddingBottom=`${u.value.bottom}px`),D}),b=t.computed(()=>{const D={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(D.top=`${u.value.safeAreaTop}px`),D}),p=t.computed(()=>{const D={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(D.top=`${u.value.safeAreaTop}px`),D}),k=t.computed(()=>!!l.leftShow),m=t.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),y=t.computed(()=>l.titleShow?l.title||l.titleIcon||r.slots.titleIcon||r.slots.default:!1),f=t.computed(()=>l.rightShow?l.rightText||l.rightIcon||r.slots.rightIcon||r.slots.right:!1),A=t.computed(()=>l.leftIcon),O=t.computed(()=>A.value||r.slots.leftIcon),F=t.computed(()=>l.titleIcon),R=t.computed(()=>l.titleIcon||r.slots.titleIcon),I=t.computed(()=>l.rightIcon),E=t.computed(()=>l.rightIcon||r.slots.rightIcon);function x(){r.emit("back")}function z(){r.emit("click-title")}function M(){r.emit("click-right")}function w(){r.emit("click-right-text")}return{headerBarRef:h,classes:c,styles:C,mHeaderShow:m,leftStyles:b,rightStyles:p,mLeftShow:k,mTitleShow:y,mRightShow:f,mLeftIcon:A,hasLeftIcon:O,mTitleIcon:F,hasTitleIcon:R,mRightIcon:I,hasRightIcon:E,handleLeft:x,handleCenter:z,handleRight:M,handleRightText:w}}}),{componentName:oi,create:ai,scope:li}=J("header-bar"),ri=ai(ni(oi,li,_r)),ii={key:1,class:"fox-header-bar__title"},si={key:0,class:"title-text"};function ci(e,n,a,o,l,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,ref:"headerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[1]||(n[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",ii,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",si,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[3]||(n[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const zo=ue(ri,[["render",ci]]);function ui(e,n,a=!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(o,l){const r=Pe(),s=r?At(r):null,i=t.computed(()=>{const C=e;return{[C]:!0,[`${C}--${o.align}`]:!0,[`${C}--border`]:o.border,[`${C}--fixed`]:o.fixed,[`${C}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ce(o.height):null,d=t.computed(()=>{const C={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const b=Ie(o.padding??s.footerPadding);return Object.assign(C,b),c&&(s.footerHeight=c),C.height=s.footerHeight,C.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,C.safeAreaBottom>0&&(C.height=C.height+C.safeAreaBottom,C.bottom=C.safeAreaBottom+(b.bottom??0)),C}if(c&&(C.height=c),o.padding){const b=Ie(o.padding);Object.assign(C,b)}return C}),u=t.ref(null),h=()=>{if(s&&u.value&&u.value.offsetParent!==null){if(!a){const C=Dn(u.value);s.footerAllHeight=C.height}return s.footerMounted=!0,!0}return!1};t.onMounted(()=>{s&&wn(h,50,5,50,!0)}),t.onUnmounted(()=>{s&&(s.footerMounted=!1)});const g=t.computed(()=>{const C={};return d.value.height!==null&&d.value.height!==void 0&&(C.height=ye(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(C.paddingTop=ye(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(C.paddingLeft=ye(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(C.paddingRight=ye(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(C.paddingBottom=ye(d.value.bottom)),C});return{footerBarRef:u,classes:i,styles:g}}}}const{componentName:di,create:fi,scope:Yh}=J("footer-bar"),hi=fi(ui(di));function mi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"footerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const jo=ue(hi,[["render",mi]]);function gi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=Pe(),l=t.computed(()=>({[e]:!0})),r=o?At(o):null,s=t.computed(()=>{const d={};if(o&&r){if(a.padding){const C=Ie(a.padding);Object.assign(r.contentPadding,C)}const u=bt(o,r),h=St(o,r);let g="";if(r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,r.contentPadding,d.height=g,r.contentPadding.top||u>0){const C=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${u+C}px`}if(r.contentPadding.bottom||h>0){const C=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${h+C}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const u=Ie(a.padding);u.left&&(d.paddingLeft=`${u.left}px`),u.top&&(d.paddingTop=`${u.top}px`),u.right&&(d.paddingRight=`${u.right}px`),u.bottom&&(d.paddingBottom=`${u.bottom}px`)}return d}),i=t.ref(null),c=()=>{if(r&&i.value){const d=En(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>bt(o),()=>St(o)],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:pi,create:yi,scope:Wh}=J("content"),bi=yi(gi(pi));function Si(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const _o=ue(bi,[["render",Si]]),at="GroupStateKey",Ho=Symbol.for("GroupScopeKey");function Lt(){return t.inject(Ho,!1)}function Mt(e=!0){t.provide(Ho,e)}function wi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];bn(l)||(e[o]=l)})}function Ci(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};wi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(at,r),r}function xn(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(at);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const u=ce(r),h=ce(s);i||(i=d.type??"grid");const g=()=>{const C=n===""||n===-1,b=ce(n);let p=se(a);const k=ce(o);if(!C){let f=(b-(p-1)*k)/p;for(;h!==-1&&f>h;)p++,f=(b-(p-1)*k)/p;for(;u!==-1&&p>1&&f<u;)p--,f=(b-(p-1)*k)/p}let m=!1;const y=c.layout;y.value.width=n,y.value.column!==p&&(y.value.column=p,m=!0),y.value.gutter!==k&&(y.value.gutter=k,m=!0),y.value.type!==i&&(y.value.type=i,m=!0),m&&t.triggerRef(y)};if(l)g();else{const C=++c.passport;setTimeout(()=>{C===c.passport&&g()},50)}}function Pt(e,n=!1){let a;return n?a=e.getForParent(at):a=e.get(at),a.layout}function qt(e,n=!1){let a;return n?a=e.getForParent(at):a=e.get(at),a.order}function Ko(e,n=1){if(n==="stretch")return-1;const a=se(n);return a===-1?100:100*a/e}function zt(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=Ko(n.column,a),s>0&&(r.width=`${s}%`);const i=Ko(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function jt(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=se(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=se(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Yo=Symbol("RollingStateKey");function vi(e){t.provide(Yo,e)}function ki(){return t.inject(Yo,null)}function Nn(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Ti(e){let n=Nn(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Nn(a),document.body.removeChild(a)}return n}function $i(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Di={...he,...Lo,...Mo};function Ei(e,n,a){return{props:Di,emits:["update:collapse"],setup(o,l){const r=vn(o.name,o,Po),s=Ci(r,{type:o.type}),i=Lt();Mt(!0);const c=o.rollingDisplay?ki():null,d=t.ref(null),u=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),h=t.computed(()=>i&&r?Pt(r,!0).value:null),g=t.getCurrentInstance(),C=V=>{const _=g?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(V,!0)};t.watch(()=>o.rules,(V,_)=>{if(!V&&!_)return;const Y=t.toRaw(_),Z=t.toRaw(V),W=Z?Reflect.ownKeys(Z):[];(Y?Reflect.ownKeys(Y):[]).forEach(le=>{W.includes(le)||(Z[le]=[])}),C(Z)},{deep:!0});const b=e,p=t.computed(()=>{const V={};V.height=q.value;const _=i?qt(r,!0):null;if(h.value&&_){if(h.value.type==="grid"){const Y=jt(_,h.value,o.span,o.offset);Object.assign(V,Y)}else if(h.value.type==="flow"){const Y=zt(_,h.value,o.span,o.offset,o.width);Object.assign(V,Y)}}else if(o.width){const Y=ye(o.width);V.width=Y}return V}),k=t.computed(()=>{const V=s.layout.value.type;return V==="grid"||V==="flow"?{[`${b}--${V}`]:!0,[`${b}--${V}-justify-${o.justify}`]:!0,[`${b}--${V}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${V}`]:!0,[`${b}--gutter`]:!0}}),m=t.computed(()=>{if(s.layout.value.type==="grid"){let _="";if(o.columnWidth)_=`repeat(auto-fill, ${o.columnWidth})`;else{const Y=$i(E.value,s.layout.value.column,s.layout.value.gutter);_=`repeat(${s.layout.value.column}, ${Y})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":_}}}),y=t.toRef(o,"title"),f=t.toRef(o,"gutter"),A=t.toRef(o,"column"),O=t.computed(()=>i||u.value?!0:te(o.isWrap)),F=[],R=V=>{F.push(V)},I=()=>{let V=F.length;F.splice(0,V)},E=t.ref(-1),x=V=>{const _=En(V).width;_>0&&_!==E.value&&(E.value=_)};xn(r,E.value,A.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([E,A,f],([V,_,Y])=>{s.order.index=0,xn(r,V,_,Y,!1,o.minItemWidth,o.maxItemWidth,o.type)});const z=t.computed(()=>B.value?o.expandText??"":o.collapseText??""),M=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),w=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),D=t.ref(),N=t.ref(),q=t.computed(()=>j.value||ye(o.height)||""),B=t.ref(!1),j=t.ref(""),T=t.ref(!1);let L=-1;const H=(V,_=!0)=>{const Y=D.value;if(Y&&B.value!==V){if(L=L===-1?Ti(Y):L,T.value=!0,_)if(Y.style["will-change"]="height",Y.ontransitionend=function(){Y.ontransitionend=null,this.style["will-change"]="auto",V||(j.value="",T.value=!1)},V){let Z=0;o.collapseHeight?Z=o.collapseHeight:N.value&&N.value.classList.contains(`${e}__header`)&&(Z=N.value.offsetHeight),j.value=`${L}px`,t.nextTick(()=>{j.value=`${Z}px`})}else j.value=`${L}px`;else if(V){let Z=0;o.collapseHeight?Z=o.collapseHeight:N.value&&N.value.classList.contains(`${e}__header`)&&(Z=N.value.offsetHeight),j.value=`${Z}px`}else T.value=!1,j.value=`${L}px`;B.value=V,l.emit("update:collapse",V)}};t.watch(()=>o.collapse,V=>{H(V)});const K=()=>{G()},G=V=>{V=V??!B.value,H(V)};fe({toggleCollapse:G,doLayout:()=>{F[0]&&(x(F[0]),xn(r,E.value,A.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let ne=null,re=!0;const U=V=>{if(o.rules){const _=t.toRaw(o.rules);C(_)}if(Ge&&(V&&H(te(o.collapse),!1),o.autoLayout&&Array.isArray(F)&&F.length>0)){const _=F[0];x(_),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{x(_)}),ne.observe(_))}},ae=()=>{ne?.disconnect(),ne=null},P=!u.value||c?.acquire();P&&(d.value=u.value?!0:null),t.onMounted(()=>{if(P&&(U(re),re=!1),u.value&&c){let V=null,_=c.initialHeight;c.observe(D.value,Y=>{if(Y!==d.value)if(Y)d.value=!0,B.value||(j.value=""),V=setTimeout(()=>{V=null,d.value!==!1&&(U(re),re=!1)},100);else{if(V!==null&&clearTimeout(V),d.value=!1,!B.value)if(re)j.value=c.initialHeight;else{let Z=Nn(D.value);Z<=0?j.value=_:(j.value=`${Z}px`,_=j.value)}re||ae()}})}}),t.onUnmounted(()=>{ne?.disconnect(),c&&c.unobserve(D.value)});const $=(V,_,Y,Z)=>{const W={...k.value};return _===0&&(W[`${b}__first`]=!0),Y>=Z-1&&(W[`${b}__last`]=!0),t.h("div",{ref:R,key:`${_}`,class:W,style:m.value},V)};return()=>{if(u.value&&d.value!==!0){const W=o.tag||"div";return t.h(W,{ref:D,prop:o.name,class:{[`${b}`]:!0,"is-collapse":T.value},style:p.value},[])}s.order.index=0;const V=[];let _=0;if(l.slots.header){const W={key:`${_++}`,ref:N,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},Q=t.h("div",W,[l.slots.header()]);V.push(Q)}else{const W=[];if(y.value){if(o.showMark){const le={class:{[`${b}__header-mark`]:!0}};o.markColor&&(le.style={background:o.markColor});const Te=t.h("div",le);W.push(Te)}const Q=t.h("div",{class:{[`${b}__header-title`]:!0}},[y.value]);W.push(Q)}if(l.slots.toolbar&&W.push(l.slots.toolbar()),o.showCollapse){const Q=[];if(z.value){const Qe={class:M.value},et=t.h("span",Qe,[z.value]);Q.push(et)}const le={class:w.value},Te=a(o.collapseIcon,le);if(Te&&Q.push(Te),Q.length>0){const Qe=t.h("div",{class:{[`${b}__header-collapse`]:!0},onClick:K},Q);W.push(Qe)}}if(W.length>0){const Q={key:`${_++}`,ref:N,class:{[`${b}__header`]:!0,[`${b}__first`]:!0}},le=t.h("div",Q,W);V.push(le)}}I();const Y=l.slots.default?l.slots.default():[],Z=s.layout.value.type;if(Z==="grid"){const W=$(Y,_++,0,Y.length);V.push(W)}else if(Z==="flow"){const W=$(Y,_++,0,Y.length);V.push(W)}else for(let W=0;W<Y.length;W++){const Q=Y[W],le=$([Q],_++,W,Y.length);V.push(le)}if(O.value){const W=o.tag||"div";return t.h(W,{ref:D,prop:o.name,class:{[`${b}`]:!0,"is-collapse":T.value},style:p.value},[V])}else return V}}}}const{componentName:xi,create:Ni,scope:Vi}=J("group"),Wo=Ni(Ei(xi,Vi,(e,n)=>(e=e??$e.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function Bi(e){return e===window}const Ii=/matrix\((.+)\)/,Uo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Bi(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const u=Ii.exec(d);if(u){let g=u[1].split(/\s*,\s*/);g.length==6&&(i+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};function Ai(e){return e===window}const He=e=>{const n=t.unref(e);if(Ai(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Oi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ri{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new Oi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Go=new Ri,Xo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:Fi,create:Li}=J("price"),Mi=Li({props:{...Xo},setup(e){const n=t.computed(()=>({[Fi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Ve(e.price)==0?"":Et(e.price,e.decimalLength,!0,se(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),Pi=["innerHTML"],qi=["innerHTML"];function zi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Pi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,qi)):t.createCommentVNode("",!0)],2)}const Vn=ue(Mi,[["render",zi]]),{componentName:_t,create:ji}=J("hint-text"),_i=ji({components:{Price:Vn},props:{...Xo,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.ref(!0),s=t.ref({x:0,y:0}),i=t.ref({x:0,y:0}),c=t.ref(0),d=t.ref(0),u=t.ref(e.placement),h=t.computed(()=>({[_t]:!0})),g=t.ref(null),C=(I,E,x=10)=>{if(!Ge||E===!1||!I)return;r.value=!0;const z=He(e.reference);c.value=z.width,d.value=z.height,setTimeout(()=>{if(!g.value||!e.reference||e.reference.offsetParent===null)return;const M=Uo(e.reference),w=document.documentElement.clientWidth||document.body.clientWidth,D=g.value.offsetWidth,N=g.value.offsetHeight;M.y-N>=0?(u.value="top",s.value.y=M.y-N-10-4,i.value.y=N):(u.value="bottom",s.value.y=M.y+d.value+10,i.value.y=-10);const q=M.x+D-w;q<0?(s.value.x=M.x,i.value.x=20):(s.value.x=M.x-q,i.value.x=q+20),r.value=!1},x)},b=yt(()=>{C(e.message,e.visible)},10),p=t.computed(()=>e.visible&&k.value),k=t.ref(!0),m=yt(I=>{const E=I[0];E&&(k.value=E.isIntersecting)},10),y=new IntersectionObserver(m);t.watch([()=>e.message,()=>e.visible],([I,E])=>{C(I,E)}),t.onMounted(()=>{C(e.message,e.visible),Go.watch(e.reference,b),y.observe(e.reference)}),t.onBeforeMount(()=>{Go.unwatch(e.reference,b),y.unobserve(e.reference),y.disconnect()});const f=t.computed(()=>{const I={"min-width":ye(c.value)};return r.value?I.visibility="hidden":I.transform=`translate(${s.value.x}px, ${s.value.y}px)`,I}),A=t.computed(()=>({[`${_t}__content`]:!0})),O=t.computed(()=>({})),F=t.computed(()=>({[`${_t}__arrow`]:!0,[`${_t}__arrow-${e.placement}`]:!0})),R=t.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:g,classes:h,styles:f,textClasses:A,textStyles:O,arrowClasses:F,arrowStyles:R}}}),Hi={key:1,class:"text"};function Ki(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Hi,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const Ht=ue(_i,[["render",Ki]]);class Zo{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 Bn={},Yi=new Zo,lt=new Map,In=e=>{if(e){const n=document.getElementById(e);lt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of lt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}lt.clear()}},Wi=e=>{const n=document.getElementById(e.id);if(n){const a=lt.get(e.id);a?e={...Bn,...a,...e}:e={...Bn,...e};const o=t.createVNode(Ht,e);return t.render(o,n),e.id}},Ui=e=>{e.unmount=In;let n;if(e.id){if(n=e.id,lt.has(n))return Wi(e)}else n=`hinttext_${Yi.get()}`;e={...Bn,...e},e.id=n,lt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ht,e);return t.render(o,a),document.body.appendChild(a),n},Gi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Kt={show(e,n,a={},o=!0){return o&&In(),Gi(n),Ui({...a,message:n,reference:e})},hide(e){In(e)},install(e){e.config.globalProperties.$hintText=Kt}},{componentName:Jo,create:Xi}=J("item"),Zi=Xi({inheritAttrs:!0,props:{...he,...we},emits:["appear","disappear"],setup(e,n){const a=e.prop??n.attrs.name;pe({componentName:Jo,validate:!1},a);const o=Pe(),l=Lt();Mt(!1);const r=t.computed(()=>l&&o?Pt(o,!1).value:null),s=Jo,i=t.ref(null),c=t.computed(()=>{const U={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(U[e.errorMarkClass]=!!z.value,U[e.warnMarkClass]=!!E.value,U[e.infoMarkClass]=!!R.value,typeof i.value=="function"){const ae=i.value(a);U[ae]=!0}else if(typeof i.value=="string"){const ae=i.value;U[ae]=!0}return U}),d=t.computed(()=>{const U={},ae=l&&o?qt(o,!1):null;if(r.value&&ae)if(r.value.type==="grid"){const P=jt(ae,r.value,e.span,e.offset);Object.assign(U,P)}else if(r.value.type==="flow"){const P=zt(ae,r.value,e.span,e.offset,e.width);Object.assign(U,P)}else return e.width&&(U.width=ye(e.width)),U;else e.width&&(U.width=ye(e.width));return U}),u=t.ref(null),h=t.computed({get:()=>u.value??te(e.isRequired),set:U=>{u.value=U}}),g=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),C=xe(t.toRef(e,"labelPosition"),"labelPosition",_e.Near),b=t.computed(()=>C&&C.value==="top"?"top":C&&C.value==="right"?"right":"left"),p=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),k=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),m=xe(t.toRef(e,"labelWidth"),"labelWidth",_e.Near),y=t.computed(()=>m&&m.value?{width:ye(m.value)}:{}),f=t.computed(()=>({"label--string":!0,"label--required":h.value})),A=t.computed(()=>({content:!0,[e.contentClass]:!0})),O=t.computed(()=>({...e.contentStyle})),F=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(U){h.value=U},setErrorTip(U){F.errorTip=U},setErrorIcon(U){F.errorIcon=U},setWarnTip(U){F.warnTip=U},setWarnIcon(U){F.warnIcon=U},setInfoTip(U){F.infoTip=U},setInfoIcon(U){F.infoIcon=U},setCustomClassName(U){i.value=U}});const R=t.computed(()=>e.infoTip||F.infoTip),I=t.computed(()=>e.infoIcon||F.infoIcon),E=t.computed(()=>e.warnTip||F.warnTip),x=t.computed(()=>e.warnIcon||F.warnIcon),z=t.computed(()=>e.errorTip||F.errorTip),M=t.computed(()=>e.errorIcon||F.errorIcon),w=t.computed(()=>z.value?"error":E.value?"warn":R.value?"info":""),D=t.computed(()=>w.value.length>0),N=t.computed(()=>w.value==="error"?z.value:w.value==="warn"?E.value:w.value==="info"?R.value:""),q=t.computed(()=>w.value==="error"?M.value:w.value==="warn"?x.value:w.value==="info"?I.value:null),B=t.computed(()=>{let U={[`${s}__tip`]:!0,[`${s}__tip--${w.value}`]:!0};return w.value==="error"&&e.errorClass?U[`${e.errorClass}`]=!0:w.value==="warn"&&e.warnClass?U[`${e.warnClass}`]=!0:w.value==="info"&&e.infoClass&&(U[`${e.infoClass}`]=!0),U}),j=t.computed(()=>{let U={};return C&&C.value==="top"||!g.value?U["padding-left"]="0px":m&&m.value&&(U["padding-left"]=ye(m.value)),U}),T=()=>t.h(q.value,{width:12,height:12}),L=t.computed(()=>n.slots.fixedTip),H=t.computed(()=>({[`${s}__fixed-tip`]:!0})),K=t.ref();let G="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([U,ae,P,$])=>{K.value&&(U&&!me(ae)?G?Kt.show(K.value,ae,{...$,id:G,type:P},!0):G=Kt.show(K.value,ae,{...$,type:P},!0):Kt.hide(G))});let ee=null;const ne=()=>{ee||!K.value||(ee=new IntersectionObserver(U=>{let ae=!1;for(let P of U)if(P.intersectionRatio>0){ae=!0,ae&&n.emit("appear",P);break}ae||n.emit("disappear")}),ee.observe(K.value))},re=()=>{!ee||!K.value||(ee.unobserve(K.value),ee=null)};return t.watch(()=>te(e.appearListen),U=>{U?ne():re()}),t.onMounted(()=>{te(e.appearListen)&&ne()}),t.onUnmounted(re),{classes:c,styles:d,mainClasses:p,hasLabel:g,labelClasses:k,labelStyles:y,labelStringClasses:f,contentClasses:A,contentStyles:O,contentRef:K,hasTip:D,mTip:N,mIcon:q,renderIcon:T,tipClasses:B,tipStyles:j,hasFixedTip:L,fixedTipClasses:H}}}),Ji=["prop"],Qi={key:0,class:"fox-item__tip--icon"},es={class:"fox-item__tip--text"};function ts(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",Qi,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",es,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ji)}const be=ue(Zi,[["render",ts]]);function ns(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=Pe(),r=Lt();Mt(!1);const s=t.computed(()=>r&&l?Pt(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const u={},h=r&&l?qt(l,!1):null;if(s.value&&h)if(s.value.type==="grid"){const g=jt(h,s.value,a.span,a.offset);Object.assign(u,g)}else if(s.value.type==="flow"){const g=zt(h,s.value,a.span,a.offset,a.width);Object.assign(u,g)}else return a.width&&(u.width=ye(a.width)),u;else a.width&&(u.width=ye(a.width));return u});return()=>{const u={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",u,o.slots.default()):t.h("div",u)}}}}const{componentName:os,create:as,scope:Gh}=J("slot-item"),Qo=as(ns(os));function ls(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],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Pe(),i=Lt();Mt(!1);const c=t.computed(()=>{const d={};if(i&&s){const u=Pt(s,!1),h=qt(s,!1);if(u.value&&h)if(u.value.type==="grid"){const g=jt(h,u.value,a.span,a.offset);Object.assign(d,g)}else if(u.value.type==="flow"){const g=zt(h,u.value,a.span,a.offset,a.width);Object.assign(d,g)}else a.width&&(d.width=ye(a.width))}else a.width&&(d.width=ye(a.width));return d});return()=>{const d=[];if(o.slots.default){const h=o.slots.default();if(a.divide)for(let g=0;g<h.length;g++){if(g>0){const C=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(C)}d.push(h[g])}else Reflect.apply([].push,d,h)}const u={class:r.value,style:c.value};return t.h("div",u,d)}}}}const{componentName:rs,create:is,scope:Xh}=J("row-item"),ea=is(ls(rs)),ta={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function ss(e,n,a){return{props:{...he,...we,...ta},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__readonly`]:s.value})),b=w=>{h.value=w,i("update:modelValue",w),i("input",w)},p=w=>{i("change",w)};let k=ie(o,"hintText"),m=t.ref(!1);const y=w=>{let N=w.target.value;u.value=!0,me(k.value)||(m.value=!0),i("focus",N,w)},f=w=>{setTimeout(()=>{m.value&&(m.value=!1),u.value=!1},0);let N=w.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),i("blur",N,w)},A=()=>{i("clear","")},O=t.ref(!1);let F=null;const R=()=>{o.showTooltip&&O.value===!1&&(F&&clearTimeout(F),F=setTimeout(()=>{O.value=!0},150))},I=()=>{F&&(clearTimeout(F),O.value=!1,F=null)},E=t.computed(()=>O.value||m.value),x=t.computed(()=>O.value?h.value:k.value),z=t.computed(()=>Ve(o.unit)>0),M=t.ref();return fe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const D={...l.attrs,ref:M,class:C.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:A,onChange:p,onInput:b,onFocus:y,onBlur:f,onMouseover:R,onMouseleave:I},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:z.value&&(N.suffix=()=>[o.unit]);const q=[],B=t.h(v.ElInput,D,N);q.push(B);const j={default:()=>q};l.slots.default&&(j.label=l.slots.default),l.slots.default&&(j.fixedTip=l.slots.fixedTip);const L={...Se(o,ta),hintText:x.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,L,j)}}}}const{componentName:cs,create:us,scope:ds}=J("input-item"),na=us(ss(cs,ds,be)),An={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:{}}},oa=2e3;let aa=oa;const fs=(e,n)=>({components:n,props:{...An},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==oa&&(aa=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++aa,a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},u=p=>{o("click-pop",p)},h=p=>{p.stopPropagation(),o("click-close-icon",p),o("update:visible",!1)},g=p=>{o("click-overlay",p),a.closeOnClickOverlay&&o("update:visible",!1)},C=p=>{o("opend",p)},b=p=>{o("closed",p)};return t.watch(()=>a.visible,p=>{a.visible?c():d()}),t.watchEffect(()=>{l.closed=a.closeable}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:u,onClickCloseIcon:h,onClickOverlay:g,onOpened:C,onClosed:b}}}),la={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},On={...An,...la,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let wt=0;const ra="fox-overflow-hidden",ia=()=>Ge?document.body:{classList:[]},hs=e=>[()=>{if(e())try{!wt&&ia().classList.add(ra),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&ia().classList.remove(ra)}catch{}}],ms={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:gs,create:ps}=J("overlay"),ys=ps({props:{...ms},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=hs(()=>e.lockScroll),l=t.computed(()=>({[gs]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function bs(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Yt=ue(ys,[["render",bs]]),{componentName:Ss,create:ws}=J("popup"),Cs=ws(fs(Ss,{[Yt.name]:Yt,Close:Zr}));function vs(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Ke=ue(Cs,[["render",vs]]),sa=10;function ks(e,n){return e>n&&e>sa?"horizontal":n>e&&n>sa?"vertical":""}function Rn(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),u=t.ref(""),h=()=>u.value==="vertical",g=()=>u.value==="horizontal",C=()=>{s.value=0,i.value=0,c.value=0,d.value=0,u.value="",a.value=0};return{move:k=>{const m=k.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),o.value=Date.now()-a.value,u.value||(u.value=ks(c.value,d.value))},start:k=>{C(),e.value=k.touches[0].clientX,n.value=k.touches[0].clientY,a.value=Date.now()},reset:C,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:u,isVertical:h,isHorizontal:g}}let ca=36;function Ts(){return ca}function $s(e){ca=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Fn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Ds(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function Ze(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ua(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Es=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function xs(){const e=t.getCurrentInstance();return new Es(e.proxy)}function da(e,n,a){const o=Oe(e,n),l=Oe(e,a);if(o!==l)return!1;const r=Ze(e,n),s=Ze(e,a);return r===s}function Ns(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let d=a[s].findIndex(u=>{if(r==="text")return Oe(e,u)===i;if(r==="value"){let h=Ze(e,u);return h==null&&(h=Oe(e,u)),h===i}else if(r==="item")return da(e,u,i)});if(d==-1)break;l.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let d=s.findIndex(h=>{if(r==="text")return Oe(e,h)===c;if(r==="value"){let g=Ze(e,h);return g==null&&(g=Oe(e,h)),g===c}else if(r==="item")return da(e,h,c)});if(d==-1)break;l.push(d);const u=Fn(e,s[d]);if(!Array.isArray(u))break;s=u}}return l}function fa(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],u=Oe(e,d);if(l.texts.push(u),l.items.push(d),r==="text")l.values.push(u);else if(r==="value"){let h=Ze(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[c],u=Oe(e,d),h=Object.assign({},d);if(h.children=null,l.texts.push(u),l.items.push(h),r==="text")l.values.push(u);else if(r==="value"){let g=Ze(e,d);g==null&&(g=u),l.values.push(g)}else l.values.push(h);if(!Array.isArray(d.children))break;s=d.children}}return l}function ha(e){return{text:e,value:e}}const Vs=15,Bs=300,Is=200,{create:As}=J("picker-column");function Os(e){e.stopPropagation()}function Rs(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Os(e)}const Fs=As({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...la},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${se(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=I=>I>=h.currIndex+8||I<=h.currIndex-8,i=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${h.deg})`,top:`${r.value}px`})),c=I=>`transform: rotate3d(1, 0, 0, ${-h.rotation*I}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${h.scrollDistance+r.value}px, 0)`})),u=t.ref(null),h=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),C=I=>Oe(e,I),b=I=>Ze(e,I),p=Rn(),k=()=>{h.transitionEndTrigger&&(h.transitionEndTrigger(),h.transitionEndTrigger=null)},m=(I,E=!1,x=!1)=>{if(h.currIndex=I,E){const z=()=>{h.moving=!1,n("update:modelValue",I),n("change",I)};x?h.transitionEndTrigger=z:z()}},y=(I,E,x)=>{let z=I+h.startDistance;if(E==="end"){const M=-(g.value.length-1)*e.itemHeight;z<M&&(z=M,(!x||x<=0)&&(x=e.swipeDuration)),z>0&&(z=0,(!x||x<=0)&&(x=e.swipeDuration));let w=Math.abs(Math.round(-z/e.itemHeight));const D=-w*e.itemHeight,N=`${(w+1)*h.rotation}deg`,q=x?x>0:!1;m(w,!0,q),f(D,E,x,N)}else{let M=(-z/e.itemHeight+1)*h.rotation;const w=(g.value.length+1)*h.rotation,D=0;if(M=Math.min(Math.max(M,D),w),e.threeDimensional&&(M<D||M>w))return;f(z,null,void 0,`${M}deg`)}},f=(I=0,E,x=Is,z)=>{E==="end"?h.scrollTime=x:h.scrollTime=0,h.deg=z,h.scrollDistance=I},A=(I,E)=>(I=Math.abs(I/E)/.003*(I<0?-1:1),I),O=I=>{if(!e.readonly){if(h.moving){const E=u.value,{transform:x}=window.getComputedStyle(E);h.scrollDistance=+x.slice(7,x.length-1).split(", ")[5]}h.startDistance=h.scrollDistance,p.start(I),h.transitionEndTrigger=null}},F=I=>{e.readonly||(h.moving=!0,p.move(I),p.isVertical()&&(h.moving=!0,Rs(I,!0)),y(p.deltaY.value,"",0))},R=()=>{if(e.readonly)return;const I=p.deltaY.value,E=p.duration.value;if(E<Bs&&Math.abs(I)>Vs){const z=A(I,E);y(z,"end",e.swipeDuration)}else y(I,"end",0)};return t.watch(()=>e.modelValue,I=>{if(h.currIndex!==I){h.currIndex=I;const E=-I*e.itemHeight;y(E)}}),t.onMounted(()=>{const I=-e.modelValue*e.itemHeight;y(I)}),{classes:a,styles:o,contentClasses:l,source:g,itemText:C,itemValue:b,...t.toRefs(h),roller:u,getItemText:Oe,onTouchStart:O,onTouchMove:F,onTouchEnd:R,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:k}}}),Ls={key:1,class:"fox-picker__item-tile"};function Ms(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Ls,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const ma=ue(Fs,[["render",Ms]]),{create:Ps,componentName:qs,scope:zs}=J("picker"),js=Ps({components:{[ma.name]:ma,[Ke.name]:Ke},props:{...On},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=De.useFoxI18n(zs),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Ts());t.watch(()=>e.visible,x=>{x&&s.value<=0&&setTimeout(()=>{if(r.value){const z=He(r.value);s.value=z.height,$s(s.value)}},50)});const i=t.computed(()=>({[qs]:!0})),c=xs(),d=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([x,z])=>{if(x){let M=await c.load("select",x,z);if(M.length>0){let w=M[0];if(Array.isArray(w)){if(typeof w[0]=="string"){let D=M,N=[];D.forEach(q=>{let B=q.map(j=>ha(j));N.push(B)}),u.value=N}else u.value=M;d.value="multipleColumn"}else if(typeof w=="string"){let D=M,N=[],q=D.map(B=>ha(B));N.push(q),u.value=N,d.value="singleColumn"}else{const D=Fn(e,w);Array.isArray(D)?(d.value="cascade",u.value=[M]):(d.value="singleColumn",u.value=[M])}}else u.value=[]}},{immediate:!0});const h=t.ref([]),g=t.ref(e.modelValue),C=t.ref([]),b=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([x,z])=>{let M=Ns(e,x,z,d.value);if(!Le(M,b.value)){b.value=M;let w=fa(e,M,z,d.value);w&&(h.value=w.texts,n("update:text",h.value))}});const p=t.ref(e.visible);t.watch(()=>e.visible,x=>{p.value=x});const k=x=>{let z=ua(e,x);return Be(z)?z.defaultIndex??0:0},m=x=>{if(e.readonly===!0)return!0;let z=ua(e,x);return Be(z)?z.readonly??!1:!1},y=(x,z)=>{let M=b.value;M[x]=z;for(let D=0;D<x;D++)M[D]==null&&(M[D]=k(D));if(d.value==="cascade")for(let D=x+1;D<A.value.length;D++){let N=k(D);D<M.length?M[D]=N:M.push(N)}else for(let D=M.length;D<A.value.length;D++){let N=k(D);M.push(N)}b.value=M;let w=fa(e,M,u.value,d.value);w&&(h.value=w.texts,g.value=w.values,C.value=w.items)},f=x=>x<b.value.length?b.value[x]:k(x),A=t.computed(()=>{if(u.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return u.value;let x=[],z=0,M=u.value[0],w=0;for(;;){let D=M.map(B=>{let j=Object.assign({},B);return Ds(e,j,null),j});x.push(D),z>=b.value.length?w=0:w=b.value[z],(w<0||w>=M.length)&&(w=0);let N=M[w];const q=Fn(e,N);if(!Array.isArray(q))break;M=q,z++}return x}),O=t.computed(()=>se(+e.visibleItemCount-1)/2*s.value);return{...l,pickerLineRef:r,classes:i,columns:A,dataType:d,show:p,itemHeight:s,top:O,isReadonly:m,getIndex:f,change:(x,z)=>{y(x,z)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let x=u.value.length-1;for(;x>=0&&!(b.value[x]===null||b.value[x]===void 0);x--);if(x>=0&&y(x,0),d.value==="singleColumn"){let z=g.value.length>0?g.value[0]:"",M=C.value.length>0?C.value[0]:null;e.readonly||(n("update:modelValue",z),n("update:text",h.value),n("change",z,M)),n("confirm",z)}else e.readonly||(n("update:modelValue",g.value),n("update:text",h.value),n("change",g.value,C.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),_s={class:"fox-picker__bar"},Hs={class:"fox-picker__title"},Ks={class:"fox-picker__bar__action"},Ys={class:"fox-picker__column"};function Ws(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",_s,[t.createElementVNode("view",Hs,t.toDisplayString(e.title),1),t.createElementVNode("view",Ks,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ys,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":u=>e.change(d,u),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Ct=ue(js,[["render",Ws]]),ga={...On,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Us(e,n,a){return{props:{...he,...we,...ga},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=e,g=t.computed(()=>({[h]:!0})),C=xe(t.computed(()=>o.textAlign),"textAlign"),b=t.computed(()=>({textAlign:C.value??"right"})),p=ie(o,"modelValue"),k=t.ref([]),m=t.computed(()=>Array.isArray(k.value)?k.value.join(" "):k.value),y=t.ref(!1),f=()=>{y.value=!0},A=N=>{y.value=N},O=N=>{p.value=N,i("update:modelValue",N)},F=N=>{k.value=N,Array.isArray(N)&&N.length===0?i("update:text",N[0]):i("update:text",N)},R=(N,q)=>{Array.isArray(q)&&q.length==1?i("change",N,q[0]):i("change",N,q)};let I=ie(o,"hintText"),E=t.ref(!1);const x=N=>{let B=N.target.value;u.value=!0,me(I.value)||(E.value=!0),i("focus",B,N)},z=N=>{setTimeout(()=>{E.value&&(E.value=!1),u.value=!1},0);let B=N.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),y.value?setTimeout(()=>{i("blur",B,N)},50):i("blur",B,N)},M=()=>{i("clear","")},w=t.computed(()=>Ve(o.unit)>0),D=t.ref();return fe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const N={class:g.value,style:b.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,clearable:te(o.clearable),readonly:!0,value:m.value,onClick:f,onFocus:x,onBlur:z},q={};l.slots.prepend&&(q.prepend=l.slots.prepend),l.slots.append&&(q.append=l.slots.append),l.slots.prefix&&(q.prefix=l.slots.prefix),l.slots.suffix?q.suffix=l.slots.suffix:w.value?q.suffix=()=>[o.unit]:q.suffix=()=>t.h(v.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const B=[],j=t.h(v.ElInput,N,q);B.push(j);const T={default:()=>B};l.slots.default&&(T.label=l.slots.default),l.slots.fixedTip&&(T.fixedTip=l.slots.fixedTip);const L=mt(o,On);L.disabled=!1,L.readonly=r.value||s.value,L.visible=y.value,L["onUpdate:visible"]=A,L.modelValue=p.value,L.onUpdateModel=O,L.text=k.value,L["onUpdate:text"]=F,L.onClear=M,L.onChange=R;const H=t.h(Ct,L);T.hide=()=>[H];const G={...Se(o,ga),hintText:I.value,hintVisible:E.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,G,T)}}}}const{componentName:Gs,create:Xs,scope:Zs}=J("select-item"),pa=Xs(Us(Gs,Zs,be));var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ya={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",u="week",h="month",g="quarter",C="year",b="date",p="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,y={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("_")},f=function(w,D,N){var q=String(w);return!q||q.length>=D?w:""+Array(D+1-q.length).join(N)+w},A={s:f,z:function(w){var D=-w.utcOffset(),N=Math.abs(D),q=Math.floor(N/60),B=N%60;return(D<=0?"+":"-")+f(q,2,"0")+":"+f(B,2,"0")},m:function w(D,N){if(D.date()<N.date())return-w(N,D);var q=12*(N.year()-D.year())+(N.month()-D.month()),B=D.clone().add(q,h),j=N-B<0,T=D.clone().add(q+(j?-1:1),h);return+(-(q+(N-B)/(j?B-T:T-B))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:C,w:u,d,D:b,h:c,m:i,s,ms:r,Q:g}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},O="en",F={};F[O]=y;var R=function(w){return w instanceof z},I=function w(D,N,q){var B;if(!D)return O;if(typeof D=="string"){var j=D.toLowerCase();F[j]&&(B=j),N&&(F[j]=N,B=j);var T=D.split("-");if(!B&&T.length>1)return w(T[0])}else{var L=D.name;F[L]=D,B=L}return!q&&B&&(O=B),B||!q&&O},E=function(w,D){if(R(w))return w.clone();var N=typeof D=="object"?D:{};return N.date=w,N.args=arguments,new z(N)},x=A;x.l=I,x.i=R,x.w=function(w,D){return E(w,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var z=function(){function w(N){this.$L=I(N.locale,null,!0),this.parse(N)}var D=w.prototype;return D.parse=function(N){this.$d=function(q){var B=q.date,j=q.utc;if(B===null)return new Date(NaN);if(x.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var T=B.match(k);if(T){var L=T[2]-1||0,H=(T[7]||"0").substring(0,3);return j?new Date(Date.UTC(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,H)):new Date(T[1],L,T[3]||1,T[4]||0,T[5]||0,T[6]||0,H)}}return new Date(B)}(N),this.$x=N.x||{},this.init()},D.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},D.$utils=function(){return x},D.isValid=function(){return this.$d.toString()!==p},D.isSame=function(N,q){var B=E(N);return this.startOf(q)<=B&&B<=this.endOf(q)},D.isAfter=function(N,q){return E(N)<this.startOf(q)},D.isBefore=function(N,q){return this.endOf(q)<E(N)},D.$g=function(N,q,B){return x.u(N)?this[q]:this.set(B,N)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(N,q){var B=this,j=!!x.u(q)||q,T=x.p(N),L=function(ae,P){var $=x.w(B.$u?Date.UTC(B.$y,P,ae):new Date(B.$y,P,ae),B);return j?$:$.endOf(d)},H=function(ae,P){return x.w(B.toDate()[ae].apply(B.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(P)),B)},K=this.$W,G=this.$M,ee=this.$D,ne="set"+(this.$u?"UTC":"");switch(T){case C:return j?L(1,0):L(31,11);case h:return j?L(1,G):L(0,G+1);case u:var re=this.$locale().weekStart||0,U=(K<re?K+7:K)-re;return L(j?ee-U:ee+(6-U),G);case d:case b:return H(ne+"Hours",0);case c:return H(ne+"Minutes",1);case i:return H(ne+"Seconds",2);case s:return H(ne+"Milliseconds",3);default:return this.clone()}},D.endOf=function(N){return this.startOf(N,!1)},D.$set=function(N,q){var B,j=x.p(N),T="set"+(this.$u?"UTC":""),L=(B={},B[d]=T+"Date",B[b]=T+"Date",B[h]=T+"Month",B[C]=T+"FullYear",B[c]=T+"Hours",B[i]=T+"Minutes",B[s]=T+"Seconds",B[r]=T+"Milliseconds",B)[j],H=j===d?this.$D+(q-this.$W):q;if(j===h||j===C){var K=this.clone().set(b,1);K.$d[L](H),K.init(),this.$d=K.set(b,Math.min(this.$D,K.daysInMonth())).$d}else L&&this.$d[L](H);return this.init(),this},D.set=function(N,q){return this.clone().$set(N,q)},D.get=function(N){return this[x.p(N)]()},D.add=function(N,q){var B,j=this;N=Number(N);var T=x.p(q),L=function(G){var ee=E(j);return x.w(ee.date(ee.date()+Math.round(G*N)),j)};if(T===h)return this.set(h,this.$M+N);if(T===C)return this.set(C,this.$y+N);if(T===d)return L(1);if(T===u)return L(7);var H=(B={},B[i]=o,B[c]=l,B[s]=a,B)[T]||1,K=this.$d.getTime()+N*H;return x.w(K,this)},D.subtract=function(N,q){return this.add(-1*N,q)},D.format=function(N){var q=this,B=this.$locale();if(!this.isValid())return B.invalidDate||p;var j=N||"YYYY-MM-DDTHH:mm:ssZ",T=x.z(this),L=this.$H,H=this.$m,K=this.$M,G=B.weekdays,ee=B.months,ne=function(P,$,V,_){return P&&(P[$]||P(q,j))||V[$].slice(0,_)},re=function(P){return x.s(L%12||12,P,"0")},U=B.meridiem||function(P,$,V){var _=P<12?"AM":"PM";return V?_.toLowerCase():_},ae={YY:String(this.$y).slice(-2),YYYY:this.$y,M:K+1,MM:x.s(K+1,2,"0"),MMM:ne(B.monthsShort,K,ee,3),MMMM:ne(ee,K),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:ne(B.weekdaysMin,this.$W,G,2),ddd:ne(B.weekdaysShort,this.$W,G,3),dddd:G[this.$W],H:String(L),HH:x.s(L,2,"0"),h:re(1),hh:re(2),a:U(L,H,!0),A:U(L,H,!1),m:String(H),mm:x.s(H,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:T};return j.replace(m,function(P,$){return $||ae[P]||T.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(N,q,B){var j,T=x.p(q),L=E(N),H=(L.utcOffset()-this.utcOffset())*o,K=this-L,G=x.m(this,L);return G=(j={},j[C]=G/12,j[h]=G,j[g]=G/3,j[u]=(K-H)/6048e5,j[d]=(K-H)/864e5,j[c]=K/l,j[i]=K/o,j[s]=K/a,j)[T]||K,B?G:x.a(G)},D.daysInMonth=function(){return this.endOf(h).$D},D.$locale=function(){return F[this.$L]},D.locale=function(N,q){if(!N)return this.$L;var B=this.clone(),j=I(N,q,!0);return j&&(B.$L=j),B},D.clone=function(){return x.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},w}(),M=z.prototype;return E.prototype=M,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",h],["$y",C],["$D",b]].forEach(function(w){M[w[1]]=function(D){return this.$g(D,w[0],w[1])}}),E.extend=function(w,D){return w.$i||(w(D,z,E),w.$i=!0),E},E.locale=I,E.isDayjs=R,E.unix=function(w){return E(1e3*w)},E.en=F[O],E.Ls=F,E.p={},E})})(ya);var Js=ya.exports;const Re=ze(Js);var ba={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(k){this[p]=+k}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var m=k.match(/([+-]|\d\d)/g),y=60*m[1]+(+m[2]||0);return y===0?0:m[0]==="+"?-y:y}(p)}],h=function(p){var k=i[p];return k&&(k.indexOf?k:k.s.concat(k.f))},g=function(p,k){var m,y=i.meridiem;if(y){for(var f=1;f<=24;f+=1)if(p.indexOf(y(f,0,k))>-1){m=f>12;break}}else m=p===(k?"pm":"PM");return m},C={A:[s,function(p){this.afternoon=g(p,!1)}],a:[s,function(p){this.afternoon=g(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(p){var k=i.ordinal,m=p.match(/\d+/);if(this.day=m[0],k)for(var y=1;y<=31;y+=1)k(y).replace(/\[|\]/g,"")===p&&(this.day=y)}],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(p){var k=h("months"),m=(h("monthsShort")||k.map(function(y){return y.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(p){var k=h("months").indexOf(p)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(p){this.year=c(p)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function b(p){var k,m;k=p,m=i&&i.formats;for(var y=(p=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,x,z){var M=z&&z.toUpperCase();return x||m[z]||a[z]||m[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,D,N){return D||N.slice(1)})})).match(o),f=y.length,A=0;A<f;A+=1){var O=y[A],F=C[O],R=F&&F[0],I=F&&F[1];y[A]=I?{regex:R,parser:I}:O.replace(/^\[|\]$/g,"")}return function(E){for(var x={},z=0,M=0;z<f;z+=1){var w=y[z];if(typeof w=="string")M+=w.length;else{var D=w.regex,N=w.parser,q=E.slice(M),B=D.exec(q)[0];N.call(x,B),E=E.replace(B,"")}}return function(j){var T=j.afternoon;if(T!==void 0){var L=j.hours;T?L<12&&(j.hours+=12):L===12&&(j.hours=0),delete j.afternoon}}(x),x}}return function(p,k,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var y=k.prototype,f=y.parse;y.parse=function(A){var O=A.date,F=A.utc,R=A.args;this.$u=F;var I=R[1];if(typeof I=="string"){var E=R[2]===!0,x=R[3]===!0,z=E||x,M=R[2];x&&(M=R[2]),i=this.$locale(),!E&&M&&(i=m.Ls[M]),this.$d=function(q,B,j){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*q);var T=b(B)(q),L=T.year,H=T.month,K=T.day,G=T.hours,ee=T.minutes,ne=T.seconds,re=T.milliseconds,U=T.zone,ae=new Date,P=K||(L||H?1:ae.getDate()),$=L||ae.getFullYear(),V=0;L&&!H||(V=H>0?H-1:ae.getMonth());var _=G||0,Y=ee||0,Z=ne||0,W=re||0;return U?new Date(Date.UTC($,V,P,_,Y,Z,W+60*U.offset*1e3)):j?new Date(Date.UTC($,V,P,_,Y,Z,W)):new Date($,V,P,_,Y,Z,W)}catch{return new Date("")}}(O,I,F),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),z&&O!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var w=I.length,D=1;D<=w;D+=1){R[1]=I[D-1];var N=m.apply(this,R);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}D===w&&(this.$d=new Date(""))}else f.call(this,A)}}})})(ba);var Qs=ba.exports;const ec=ze(Qs);var Sa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),h=(i||"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(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return u.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return u.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}});return s.bind(this)(h)}}})})(Sa);var tc=Sa.exports;const nc=ze(tc);var wa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o,l){var r=o.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},i=function(h,g,C,b,p){var k=h.name?h:h.$locale(),m=s(k[g]),y=s(k[C]),f=m||y.map(function(O){return O.slice(0,b)});if(!p)return f;var A=k.weekStart;return f.map(function(O,F){return f[(F+(A||0))%7]})},c=function(){return l.Ls[l.locale()]},d=function(h,g){return h.formats[g]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,p,k){return p||k.slice(1)})}(h.formats[g.toUpperCase()])},u=function(){var h=this;return{months:function(g){return g?g.format("MMMM"):i(h,"months")},monthsShort:function(g){return g?g.format("MMM"):i(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):i(h,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):i(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):i(h,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return d(h.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},l.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(g){return d(h,g)},meridiem:h.meridiem,ordinal:h.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(h){return i(c(),"weekdays",null,null,h)},l.weekdaysShort=function(h){return i(c(),"weekdaysShort","weekdays",3,h)},l.weekdaysMin=function(h){return i(c(),"weekdaysMin","weekdays",2,h)}}})})(wa);var oc=wa.exports;const ac=ze(oc);var Ca={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(o).add(1,o).date(d),h=s(this).endOf(a);if(u.isBefore(h))return 1}var g=s(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),C=this.diff(g,a,!0);return C<0?s(this).startOf("week").week():Math.ceil(C)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ca);var lc=Ca.exports;const rc=ze(lc);var va={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(va);var ic=va.exports;const sc=ze(ic);var ka={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(ka);var cc=ka.exports;const uc=ze(cc);var Ta={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Ta);var dc=Ta.exports;const fc=ze(dc);var $a={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(qe,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})($a);var hc=$a.exports;const mc=ze(hc);Re.extend(ac),Re.extend(nc),Re.extend(ec),Re.extend(rc),Re.extend(sc),Re.extend(uc),Re.extend(fc),Re.extend(mc);const X={format(e,n){return Re(e).format(n)},parser(e,n){return Re(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,d=r+(6-s)*864e5,u=this.date2Str(new Date(c)),h=this.date2Str(new Date(d));return[u,h]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,u=this.date2Str(new Date(c)),h=this.date2Str(new Date(d));return[u,h]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=X.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=X.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},Da=new Date().getFullYear(),Ln={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Wt=(e,n,a)=>{let o;if(Fe(n)?o=n:typeof n=="string"&&Ve(n)>0?o=X.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Mn=(e,n,a)=>{Fe(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),X.format(new Date(o),a)};let Pn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Da-10,0,1),validator:Fe},maxDate:{type:Date,default:()=>new Date(Da+10,11,31),validator:Fe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:gc,scope:pc}=J("date-picker"),yc=gc({components:{[Ct.name]:Ct},props:{...Pn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=De.useFoxI18n(pc),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,m=>{l.value=m});function r(m,y){return new Date(m,y,0).getDate()}const s=(m,y)=>{const f=e[`${m}Date`],A=f.getFullYear();let O=1,F=1,R=0,I=0;m==="max"&&(O=12,F=r(y.getFullYear(),y.getMonth()+1),R=23,I=59);const E=I;return y.getFullYear()===A&&(O=f.getMonth()+1,y.getMonth()+1===O&&(F=f.getDate(),y.getDate()===F&&(R=f.getHours(),y.getHours()===R&&(I=f.getMinutes())))),{[`${m}Year`]:A,[`${m}Month`]:O,[`${m}Date`]:F,[`${m}Hour`]:R,[`${m}Minute`]:I,[`${m}Seconds`]:E}},i=t.computed(()=>{if(!g.value)return[];const{maxYear:m,maxDate:y,maxMonth:f,maxHour:A,maxMinute:O,maxSeconds:F}=s("max",g.value),{minYear:R,minDate:I,minMonth:E,minHour:x,minMinute:z,minSeconds:M}=s("min",g.value);let w=[{type:"year",range:[R,m]},{type:"month",range:[E,f]},{type:"day",range:[I,y]},{type:"hour",range:[x,A]},{type:"minute",range:[z,O]},{type:"seconds",range:[M,F]}];switch(e.type){case"date":w=w.slice(0,3);break;case"datetime":w=w.slice(0,5);break;case"time":w=w.slice(3,6);break;case"year-month":w=w.slice(0,2);break;case"month-day":w=w.slice(1,3);break;case"datehour":w=w.slice(0,4);break;case"hour-minute":w=w.slice(3,5);break}return w}),c=(m,y,f)=>{if(!(y>m))return null;const A=[];for(;m<=y;)e.isShowChinese?A.push({text:m+o[f],value:m}):A.push({text:`${m}`,value:m}),f==="minute"?m+=e.minuteStep:m++;return A},d=t.computed(()=>{let m=[];return i.value.forEach(y=>{let f=c(y.range[0],y.range[1],y.type);f&&m.push(f)}),m}),u=(m,y)=>m==="year"?y.getFullYear():m==="month"?y.getMonth()+1:m==="day"?y.getDate():m==="hour"?y.getHours():m==="minute"?y.getMinutes():m==="seconds"?y.getSeconds():0,h=t.ref(),g=t.ref(null);t.watchEffect(()=>{let m,y=e.modelValue;if(typeof y=="string"?y.length==0?m=new Date:e.valueFormat?m=Wt(e,e.modelValue,e.valueFormat):m=Wt(e,y,Ln[e.type]):Fe(y)?m=y:m=new Date,!!m&&(!g.value||m.getTime()!==g.value.getTime())){g.value=m;let f=[];i.value.forEach(A=>{let O=u(A.type,m);f.push(O)}),h.value=f}});const C=m=>{if(e.type==="date"){let y=m;g.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])))}else if(e.type==="datetime"){let y=m;g.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])),y[3],y[4])}else if(e.type==="time"){let y=m,f=g.value??new Date,A=new Date(f.getFullYear(),f.getMonth(),f.getDate(),y[0],y[1],y[2]);g.value=A}else if(e.type==="year-month"){let y=m,f=new Date(y[0],y[1]-1);g.value=f}else if(e.type==="month-day"){let y=m,f=g.value??new Date,A=new Date(f.getFullYear(),y[0]-1,y[1]);g.value=A}else if(e.type==="datehour"){let y=m;g.value=new Date(y[0],y[1]-1,Math.min(y[2],r(y[0],y[1])),y[3])}else if(e.type==="hour-minute"){let y=m,f=g.value??new Date,A=new Date(f.getFullYear(),f.getMonth(),f.getDate(),y[0],y[1]);g.value=A}h.value=m};return{columns:d,dateIndexs:h,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{C(m),l.value=!1;let y=g.value??new Date;if(e.valueFormat){let f=Mn(e,y,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",y);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function bc(e,n,a,o,l,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const qn=ue(yc,[["render",bc]]);function Sc(e){let n=e.format;if(!n){let a=e.type??"date";n=Ln[a]}return n}const Ea={...Pn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function wc(e,n,a){return{props:{...he,...we,...Ea,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),g=ie(o,"modelValue",T=>T==null?null:typeof T=="string"?T.length==0?null:o.valueFormat?Wt(o,T,o.valueFormat)??T:Wt(o,T,Ln[o.type])??T:Fe(T)?T:null),C=t.computed(()=>{if(!g.value)return"";const T=Sc(o);return Mn(o,g.value,T)}),b=e,p=t.computed(()=>({[`${b}__input`]:!0})),k=xe(t.computed(()=>o.textAlign),"textAlign"),m=t.computed(()=>({textAlign:k.value??"right"}));let y=ie(o,"hintText"),f=t.ref(!1);const A=t.ref(!1),O=()=>{A.value=!0},F=()=>{A.value=!1},R=T=>{A.value=T},I=T=>{if(g.value=T,o.valueFormat){let L=Mn(o,T,o.valueFormat);i("update:modelValue",L,{}),i("change",L,{})}else i("update:modelValue",T,{}),i("change",T,{})},E=T=>{let H=T.target.value;u.value=!0,i("focus",H,T)},x=T=>{setTimeout(()=>{u.value=!1},0);let H=T.target.value;o.maxLength&&H.length>Number(o.maxLength)&&(H=H.slice(0,Number(o.maxLength))),i("blur",H,T)},z=T=>{g.value="",i("update:modelValue","",T),i("change","",T),i("clear",""),F()},M=t.computed(()=>Ve(o.unit)>0),w=xe(t.computed(()=>o.longTermValue),"longTermValue",_e.Near);let D=null;const N=t.ref(te(o.longTerm)),q=T=>{if(N.value=T,i("update:longTerm",T),T){let L="";Array.isArray(w.value)?L=w.value.map((H,K)=>H||(Array.isArray(g.value)&&g.value[K]?g.value[K]:o.valueFormat?X.format(new Date,o.valueFormat):new Date)):L=w.value,D=g.value,i("update:modelValue",L)}else i("update:modelValue",D)},B=te(o.isLongTerm);if(B){const T=()=>{if(N.value===!0){let L="";Array.isArray(w.value)?L=w.value.map((H,K)=>H||(Array.isArray(g.value)&&g.value[K]?g.value[K]:o.valueFormat?X.format(new Date,o.valueFormat):new Date)):L=w.value,D=g.value,i("update:modelValue",L)}else Le(w.value,g.value)&&(N.value=!0)};T(),t.watch([()=>o.longTerm],([L])=>{N.value!==L&&T()})}const j=t.ref();return fe({showPicker:O,hidePicker:F,focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const T={class:p.value,style:m.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:C.value,onClick:O,onFocus:E,onBlur:x},L={};l.slots.prepend&&(L.prepend=l.slots.prepend),l.slots.append&&(L.append=l.slots.append),l.slots.prefix?L.prefix=l.slots.prefix:L.prefix=()=>t.h(v.ElIcon,{},{default:()=>t.h($e.Calendar)}),l.slots.suffix?L.suffix=l.slots.suffix:M.value&&(L.suffix=()=>[o.unit]);const H=[],K=t.h(v.ElInput,T,L);H.push(K);const G={default:()=>H};l.slots.default&&(G.label=l.slots.default),l.slots.fixedTip&&(G.fixedTip=l.slots.fixedTip);const ee=mt(o,Pn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=r.value||s.value||N.value,ee.visible=A.value,ee["onUpdate:visible"]=R,ee.modelValue=g.value,ee["onUpdate:modelValue"]=I,ee.onClear=z;const ne={};if(l.slots.top){const $=l.slots.top();ne.top=()=>$}if(l.slots.bottom){const $=l.slots.bottom();ne.default=()=>$}const re=t.h(qn,ee,ne);if(G.hide=()=>[re],B){const $={label:o.longTermText,modelValue:N.value,"onUpdate:modelValue":q},V=t.h(v.ElCheckbox,$),_=t.h("div",{class:{[`${b}__append`]:!0}},[V]);G.append=()=>_}const ae={...Se(o,Ea),class:{[`${b}__wrapper`]:!0,"has-append":B},hintText:y.value,hintVisible:f.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,ae,G)}}}}const{componentName:Cc,create:vc,scope:kc}=J("date-item"),xa=vc(wc(Cc,kc,be)),Tc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),zn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},Na=39,Va=64,{create:$c,scope:Dc}=J("calendar-pane"),Ec=$c({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:X.getDay(0)},endDate:{type:String,default:X.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=De.useFoxI18n(Dc),r=o(e,["title","confirmText","startText","endText","today"]),s=t.computed(()=>({height:`${Na}px`})),i=t.computed(()=>({height:`${Va}px`})),c=JSON.parse(l("weekdays")),d=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),u=t.ref(null),h=t.ref(null),g=t.ref(null),C=t.ref(null),b=t.ref(0),p=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=t.computed(()=>a.btn),m=t.computed(()=>a["top-info"]),y=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),A=P=>P.split("-"),O=P=>X.isEqual(f.currDate[0],P),F=P=>X.isEqual(f.currDate[1],P),R=P=>f.currDate?.length>0?f.currDate?.some($=>X.isEqual($,P)):!1,I=(P,$)=>$.curData[0]+"-"+$.curData[1]+"-"+X.getNumTwoBit(+P.day),E=(P,$)=>{const V=I(P,$),{type:_}=e;return P.type=="curr"?X.isEqual(f.currDate,V)||(_=="range"||_=="week")&&(O(V)||F(V))||_=="multiple"&&R(V)?`${f.dayPrefix}--active`:f.propStartDate&&X.compareDate(V,f.propStartDate)||f.propEndDate&&X.compareDate(f.propEndDate,V)?`${f.dayPrefix}--disabled`:(_=="range"||_=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&X.compareDate(f.currDate[0],V)&&X.compareDate(V,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},x=()=>{const{type:P}=e;if(P=="range"&&f.chooseData.length==2||P!="range"){let $=f.chooseData.slice(0);P=="week"&&($={weekDate:[M(f.chooseData[0]),M(f.chooseData[1])]}),n("choose",$),e.poppable&&n("update")}},z=(P,$,V=!1)=>{if(E(P,$)!=`${f.dayPrefix}--disabled`){const{type:_}=e;let[Y,Z]=$.curData,W=[...$.curData];if(W[2]=X.getNumTwoBit(Number(P.day)),W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=X.getWhatDay(+W[0],+W[1],+W[2]),_=="multiple")if(f.currDate?.length>0){let Q;f.currDate?.forEach((le,Te)=>{le==W[3]&&(Q=Te)}),V?f.chooseData.push([...W]):Q!==void 0?(f.currDate.splice(Q,1),f.chooseData.splice(Q,1)):(f.currDate.push(W[3]),f.chooseData.push([...W]))}else f.currDate=[W[3]],f.chooseData=[[...W]];else if(_=="range"){let Q=Object.values(f.currDate).length;Q==2||Q==0?f.currDate=[W[3]]:X.compareDate(f.currDate[0],W[3])?Array.isArray(f.currDate)&&f.currDate.push(W[3]):Array.isArray(f.currDate)&&f.currDate.unshift(W[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...W]]:X.compareDate(f.chooseData[0][3],W[3])?f.chooseData=[...f.chooseData,[...W]]:f.chooseData=[[...W],...f.chooseData]}else if(_=="week"){let Q=X.getWeekDate(Y,Z,P.day,e.firstDayOfWeek);f.propStartDate&&X.compareDate(Q[0],f.propStartDate)&&Q.splice(0,1,f.propStartDate),f.propEndDate&&X.compareDate(f.propEndDate,Q[1])&&Q.splice(1,1,f.propEndDate),f.currDate=Q,f.chooseData=[X.formatResultDate(Q[0]),X.formatResultDate(Q[1])]}else f.currDate=W[3],f.chooseData=[...W];if(!V){let Q=f.chooseData;_=="week"&&(Q={weekDate:[M(f.chooseData[0]),M(f.chooseData[1])]}),n("select",Q),(e.isAutoBackFill||!e.poppable)&&x()}}},M=P=>{let[$,V,_]=P;return{date:P,monthWeekNum:X.getMonthWeek($,V,_,e.firstDayOfWeek),yearWeekNum:X.getYearWeek($,V,_,e.firstDayOfWeek)}},w=P=>{const $=P=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let V=parseInt($.curData[0]),_=parseInt($.curData[1].toString().replace(/^0/,""));switch(P){case"prev":_==1&&(V-=1),_=_==1?12:--_;break;case"next":_==12&&(V+=1),_=_==12?1:++_;break}return[V+"",X.getNumTwoBit(_),X.getMonthDays(String(V),String(_))+""]},D=(P,$,V)=>{let{year:_,month:Y}=V;return $=="prev"&&P>=7&&(P-=7),Array.from(Array(P),(Z,W)=>({day:String(W+1),type:$,year:_,month:Y}))},N=(P,$,V,_)=>{P=P-e.firstDayOfWeek;let{year:Y,month:Z}=V;return $=="prev"&&P>=7&&(P-=7),Array.from(Array(_),(Q,le)=>({day:String(le+1),type:$,year:Y,month:Z})).slice(_-P)},q=(P,$)=>{const V=X.getMonthPreDay(+P[0],+P[1]);let _=Number(P[1])-1,Y=Number(P[0]);_<=0&&(_=12,Y+=1);const Z=X.getMonthDays(String(P[0]),String(P[1])),W=X.getMonthDays(Y+"",_+""),Q={year:P[0],month:P[1]},le={curData:P,title:l("monthTitle",{year:Q.year,month:Q.month}),monthData:[...N(V,"prev",{month:String(_),year:String(Y)},W),...D(Z,"curr",Q)],cssHeight:0,cssScrollHeight:0},Te=le.monthData.length>35?6:5;le.cssHeight=Na+Va*Te;let Qe=0;f.monthsData.length>0&&(Qe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),le.cssScrollHeight=Qe,$=="next"?(!f.endData||!X.compareDate(`${f.endData[0]}-${f.endData[1]}-${X.getMonthDays(f.endData[0],f.endData[1])}`,`${P[0]}-${P[1]}-${P[2]}`))&&f.monthsData.push(le):!f.startData||!X.compareDate(`${P[0]}-${P[1]}-${P[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(le):f.unLoadPrev=!0},B=()=>{let P=e.startDate?e.startDate:X.getDay(0),$=e.endDate?e.endDate:X.getDay(365);f.propStartDate=P,f.propEndDate=$,f.startData=A(P),f.endData=A($),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const V={year:Number(f.startData[0]),month:Number(f.startData[1])},_={year:Number(f.endData[0]),month:Number(f.endData[1])};let Y=_.month-V.month;_.year-V.year>0&&(Y=Y+12*(_.year-V.year)),Y<=0&&(Y=1),q(f.startData,"next");let Z=1;do q(w("next"),"next");while(Z++<Y);if(f.monthsNum=Y,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(P&&X.compareDate(f.currDate[0],P)&&f.currDate.splice(0,1,P),$&&X.compareDate($,f.currDate[1])&&f.currDate.splice(1,1,$),f.defaultData=[...A(f.currDate[0]),...A(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let W=[],Q={};f.currDate.forEach(le=>{P&&!X.compareDate(le,P)&&$&&!X.compareDate($,le)&&(Object.hasOwnProperty.call(Q,le)||(W.push(le),Q[le]=le))}),f.currDate=[...W],f.defaultData=[...A(W[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[W,Q,le]=A(f.currDate[0]),Te=X.getWeekDate(W,Q,le,e.firstDayOfWeek);f.currDate=Te,P&&X.compareDate(f.currDate[0],P)&&f.currDate.splice(0,1,P),$&&X.compareDate($,f.currDate[1])&&f.currDate.splice(1,1,$),f.defaultData=[...A(f.currDate[0]),...A(f.currDate[1])]}}else f.currDate&&(P&&X.compareDate(f.currDate,P)?f.currDate=P:$&&!X.compareDate(f.currDate,$)&&(f.currDate=$),f.defaultData=[...A(f.currDate)])};fe({scrollToDate:P=>{X.compareDate(P,f.propStartDate)?P=f.propStartDate:X.compareDate(P,f.propEndDate)||(P=f.propEndDate);let $=A(P);f.monthsData.forEach((V,_)=>{if(V.title==l("monthTitle",{year:$[0],month:$[1]})&&u.value){let Y=f.monthsData[_].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let Z=0,W=setInterval(()=>{if(Z++,u.value){let Q=Y/10;u.value.scrollTop=u.value.scrollTop+Q}Z>=10&&(clearInterval(W),u.value&&(u.value.scrollTop=f.monthsData[_].cssScrollHeight))},40)}else u.value.scrollTop=f.monthsData[_].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let P=0,$=0;f.defaultData.length>0&&f.monthsData.forEach((Y,Z)=>{Y.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(P=Z),(e.type=="range"||e.type=="week")&&Y.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&($=Z)}),H(f.monthsNum,P),f.currentIndex=P,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(z({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),z({day:f.defaultData[5],type:"curr"},f.monthsData[$],!0)):e.type=="week"?z({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(Y=>{let Z=A(Y),W=f.currentIndex;f.monthsData.forEach((Q,le)=>{Q.title==l("monthTitle",{year:Z[0],month:Z[1]})&&(W=le)}),z({day:Z[2],type:"curr"},f.monthsData[W],!0)}):z({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let V=f.monthsData[f.monthsData.length-1],_=V.cssHeight+V.cssScrollHeight;eo(()=>{u?.value&&h?.value&&C?.value&&(b.value=u.value.clientHeight,h.value.style.height=`${_}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(_/(f.monthsNum+1))}});const H=(P,$)=>{P>=3?$>0&&$<P?f.defaultRange=[$-1,$+3]:$==0?f.defaultRange=[$,$+4]:$==P&&(f.defaultRange=[$-2,$+2]):f.defaultRange=[0,P+2];let V=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=V},K=(P,$)=>(e.type=="range"||e.type=="week")&&P.type=="curr"&&E(P,$)=="fox-calendar__day--active",G=(P,$)=>K(P,$)&&O(I(P,$)),ee=(P,$)=>f.currDate.length>=2&&F(I(P,$))?K(P,$):!1,ne=()=>{if(f.currDate.length>=2)return X.isEqual(f.currDate[0],f.currDate[1])},re=P=>{const $=`${P.year}-${P.month}-${Number(P.day)<10?"0"+P.day:P.day}`;return X.isEqual($,X.date2Str(new Date))},U=P=>{if(f.monthsData.length<=1)return;const $=P.target.scrollTop;let V=Math.floor($/f.avgHeight);if(V==0)$>=f.monthsData[V+1].cssScrollHeight&&(V+=1);else if(V>0&&V<f.monthsNum-1)$>=f.monthsData[V+1].cssScrollHeight&&(V+=1),$<f.monthsData[V].cssScrollHeight&&(V-=1);else{const _=Math.round($+b.value);_<f.monthsData[V].cssScrollHeight+f.monthsData[V].cssHeight&&$>f.monthsData[V-1].cssScrollHeight&&(V-=1),V+1<=f.monthsNum&&_>=f.monthsData[V+1].cssScrollHeight+f.monthsData[V+1].cssHeight&&(V+=1),V>=1&&$<f.monthsData[V-1].cssScrollHeight&&(V-=1)}f.currentIndex!==V&&(f.currentIndex=V,H(f.monthsNum,V)),f.yearMonthTitle=f.monthsData[V].title},ae=()=>{f.chooseData.splice(0),f.monthsData.splice(0),B()};return B(),t.watch(()=>e.defaultValue,P=>{P&&e.poppable&&ae()}),{dayTitleStyle:s,dayCellStyle:i,weeks:d,compConthsData:p,showTopBtn:k,topInfo:m,bottomInfo:y,rangeTip:ne,mothsViewScroll:U,getClass:E,isStartTip:G,isEndTip:ee,chooseDay:z,isCurrDay:re,confirm:x,months:u,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:h,weeksPanel:g,viewArea:C}}}),xc={class:"fox-calendar__header"},Nc={key:0,class:"fox-calendar__header-title"},Vc={key:1,class:"fox-calendar__header-slot"},Bc={key:2,class:"fox-calendar__header-subtitle"},Ic={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ac={class:"fox-calendar__panel",ref:"monthsPanel"},Oc={class:"fox-calendar__days"},Rc=["onClick"],Fc={class:"fox-calendar__day-value"},Lc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Mc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Pc={key:2,class:"fox-calendar__day-tips--curr"},qc={key:4,class:"fox-calendar__day-tip"},zc={key:0,class:"fox-calendar__footer"};function jc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",xc,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Nc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Vc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Ac,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(s.title),5),t.createElementVNode("view",Oc,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),style:t.normalizeStyle(e.dayCellStyle),onClick:u=>e.chooseDay(c,s)},[t.createElementVNode("view",Fc,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Lc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Mc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Pc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",qc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Rc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",zc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Ba=ue(Ec,[["render",jc]]),{create:_c}=J("calendar-picker"),Hc=_c({components:{[Ba.name]:Ba,[Ke.name]:Ke},props:{...zn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=p=>{i.value?.scrollToDate(p)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,p=>{p&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),fe({scrollToDate:c,initPosition:d});const u=()=>{n("update:visible",!1)},h=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{h()},update:u,close:h,select:p=>{n("select",p)},choose:p=>{h(),n("choose",p)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Kc(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const jn=ue(Hc,[["render",Kc]]),_n=(e,n)=>{let a;return Fe(e)?a=e:typeof e=="string"&&Ve(e)>0?a=X.parser(e,n):a=new Date,a},rt=(e,n,a)=>(Fe(n)||(n=new Date),X.format(n,a)),it=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=X.date2Str(e),r=X.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]},Ia={...zn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Yc(e,n,a){return{props:{...he,...we,...Ia},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),h=t.ref(!1);const g=t.ref(!1),C=t.computed(()=>o.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},k=(B,j="one",T="YYYY-MM-DD")=>{if(Tc(B)){p();return}if(C.value&&Array.isArray(B)&&B.length==2){let L,H;typeof B[0]=="string"?(L=_n(B[0],T),H=_n(B[1],T)):(L=B[0],H=B[1]);let K=it(L),G=it(H);(b.startDate===null||b.startDate.getTime()!==L.getTime()||b.endDate?.getTime()!==H.getTime())&&(b.startDate=L,b.startArray=K,b.endDate=H,b.endArray=G)}else{let L;typeof B=="string"?L=_n(B,T):L=B;let H=it(L);(b.startDate===null||b.startDate.getTime()!==L.getTime())&&(b.startDate=L,b.startArray=H)}};k(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,B=>{k(B,o.type,o.valueFormat)});const m=t.computed(()=>{if(b.startDate===null)return"";if(C.value){let B=rt(o,b.startDate,o.format),j=rt(o,b.endDate,o.format);return`${B} ${o.rangeSeparator} ${j}`}else{let B=rt(o,b.startDate,o.format);return o.showWeek&&(B=`${B} ${b.startArray[4]}`),B}}),y=t.computed(()=>{if(b.startDate===null)return null;if(C.value){let B=X.date2Str(b.startDate),j=X.date2Str(b.endDate??new Date);return[B,j]}else return X.date2Str(b.startDate)}),f="fox-input-item",A=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),O=xe(t.computed(()=>o.textAlign),"textAlign"),F=t.computed(()=>({textAlign:O.value??"right"})),R=t.ref(!1),I=()=>{s.value||r.value||(R.value=!0)},E=()=>{R.value=!1},x=B=>{R.value=B},z=B=>{if(B){if(C.value&&Array.isArray(B)){let j=B[0],T=se(j[0]),L=se(j[1]),H=se(j[2]),K=new Date(T,L-1,H),G=B[1];T=se(G[0]),L=se(G[1]),H=se(G[2]);let ee=new Date(T,L-1,H);if(b.startDate=K,b.startArray=it(K),b.endDate=ee,b.endArray=it(ee),o.valueFormat){let ne=rt(o,K,o.valueFormat),re=rt(o,ee,o.valueFormat);i("update:modelValue",[ne,re],{})}else i("update:modelValue",[K,ee],{})}else{let j=B,T=se(j[0]),L=se(j[1]),H=se(j[2]),K=new Date(T,L-1,H);if(b.startDate=K,b.startArray=it(K),o.valueFormat){let G=rt(o,K,o.valueFormat);i("update:modelValue",G,{})}else i("update:modelValue",K,{})}i("change",B,{})}},M=B=>{let T=B.target.value;g.value=!0,i("focus",T,B)},w=B=>{setTimeout(()=>{g.value=!1},0);let T=B.target.value;o.maxLength&&T.length>Number(o.maxLength)&&(T=T.slice(0,Number(o.maxLength))),i("blur",T,B)},D=t.computed(()=>Ve(o.unit)>0),N=B=>{p(),i("update:modelValue",null,B),i("change","",B),i("clear","")},q=t.ref();return fe({showPicker:I,hidePicker:E,focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const B={class:A.value,style:F.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:m.value,onClick:I,onFocus:M,onBlur:w,onClear:N},j={};l.slots.prepend&&(j.prepend=l.slots.prepend),l.slots.append&&(j.append=l.slots.append),l.slots.prefix?j.prefix=l.slots.prefix:j.prefix=()=>t.h(v.ElIcon,{},{default:()=>t.h($e.Calendar)}),l.slots.suffix?j.suffix=l.slots.suffix:D.value&&(j.suffix=()=>[o.unit]);const T=[],L=t.h(v.ElInput,B,j);T.push(L);const H={default:()=>T};l.slots.default&&(H.label=l.slots.default),l.slots.fixedTip&&(H.fixedTip=l.slots.fixedTip);const K=mt(o,zn);K.visible=R.value,K["onUpdate:visible"]=x,K["default-value"]=y.value,K.onChoose=z;const G={};if(l.slots.btn){const ae=l.slots.btn();G.btn=()=>ae}l.slots.day&&(G.day=l.slots.day),l.slots.topInfo&&(G.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(G.bottomInfo=l.slots.bottomInfo);const ee=t.h(jn,K,G);H.hide=()=>[ee];const re={...Se(o,Ia),hintText:u.value,hintVisible:h.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,re,H)}}}}const{componentName:Wc,create:Uc,scope:Gc}=J("calendar-item"),Aa=Uc(Yc(Wc,Gc,be)),Oa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xc(e,n,a){return{props:{...he,...we,...Oa},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0})),b=F=>{h.value=F,i("update:modelValue",F),i("change",F)};let p=ie(o,"hintText"),k=t.ref(!1);const m=F=>{let I=F.target.value;u.value=!0,me(p.value)||(k.value=!0),i("focus",I,F)},y=F=>{setTimeout(()=>{k.value&&(k.value=!1),u.value=!1},0);let I=F.target.value;o.maxLength&&I.length>Number(o.maxLength)&&(I=I.slice(0,Number(o.maxLength))),i("blur",I,F)},f=()=>{i("clear","")},A=F=>{i("visible-change",F)},O=t.ref();return fe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()}}),()=>{const R={...l.attrs,ref:O,class:C.value,placeholder:d.placeholder.value,disabled:r.value,readonly:s.value,modelValue:h.value,"onUpdate:modelValue":b,onClear:f,onFocus:m,onBlur:y,onVisibleChange:A},I={},E=[],x=t.h(v.ElTimePicker,R,I);E.push(x);const z={default:()=>E};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const w={...Se(o,Oa),hintText:p.value,hintVisible:k.value,prop:`${o.prop}_item`};return t.h(a,w,z)}}}}const{componentName:Zc,create:Jc,scope:Qc}=J("time-item"),Ra=Jc(Xc(Zc,Qc,be)),Fa={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function eu(e,n,a){return{props:{...he,...we,...Fa},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0})),b=O=>{h.value=O,i("update:modelValue",O),i("change",O)};let p=ie(o,"hintText"),k=t.ref(!1);const m=O=>{let R=O.target.value;u.value=!0,me(p.value)||(k.value=!0),i("focus",R,O)},y=O=>{setTimeout(()=>{k.value&&(k.value=!1),u.value=!1},0);let R=O.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),i("blur",R,O)},f=()=>{i("clear","")},A=t.ref();return fe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const F={...l.attrs,ref:A,class:C.value,placeholder:d.placeholder.value,disabled:r.value,readonly:s.value,modelValue:h.value,"onUpdate:modelValue":b,onClear:f,onFocus:m,onBlur:y},R={},I=[],E=t.h(v.ElTimeSelect,F,R);I.push(E);const x={default:()=>I};l.slots.default&&(x.label=l.slots.default),l.slots.fixedTip&&(x.fixedTip=l.slots.fixedTip);const M={...Se(o,Fa),hintText:p.value,hintVisible:k.value,prop:`${o.prop}_item`};return t.h(a,M,x)}}}}const{componentName:tu,create:nu,scope:ou}=J("time-select-item"),La=nu(eu(tu,ou,be));function Ma(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Pa(e,n,a=20){if(typeof n=="string"&&(n=se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=ro(`${e}`,`${n}`);return Ma(o)}else{let o=fn(`${e}`,io(`${n}`),20);return Ma(o)}}function au(e,n=-1,a=!1,o=3,l=","){return Et(e,n,a,o,l)}function qa(e,n,a,o,l=!0){if(e=="")return"";if(e=so(e),n=se(n),n==1)return e;if(o)e=Pa(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(se(a)+2,"0"):e=fn(e,1,se(a)));else{let r=-1*n;e=Pa(e,r)}return e}function za(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=te(n.minInclude),l=hn(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=te(n.maxInclude),l=hn(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const ja={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 lu(e,n,a){return{props:{...he,...we,...ja},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(!1),d=ie(o,"modelValue"),u=t.ref("");t.watch([()=>d.value,()=>o.rates,()=>o.precision],([w,D,N])=>{if(me(w)){u.value="";return}const q=qa(w,D,N,!1);u.value!==q&&(u.value=q)},{immediate:!0});const h=t.computed(()=>{let w="";return c.value&&(w=u.value),w}),{t:g}=De.useFoxI18n(n),C=t.computed(()=>{let w=o.placeholder??"";return!c.value&&!me(u.value)?w=au(u.value,o.decimalLength,o.autoPadding,o.digits,o.separator):w=g(["placeholder",w]),w}),b=e,p=t.computed(()=>({[b]:!0,[`${b}__disabled`]:r.value,[`${b}__placeholder`]:u.value.length>0})),k=xe(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:k.value??"right"});const m=t.ref(""),y=t.computed(()=>{let w=m.value;return me(w)&&(w=o.errorTip??""),w}),f=t.ref(""),A=t.ref(!1),O=(w,D)=>{if(w=`${w}`,me(w)){u.value="",d.value="",D.forEach(N=>{i(N,"")}),te(o.showTip)&&A.value&&(A.value=!1);return}if(w.length>=2){let N=w;if(N.charAt(0)=="-"&&(N=N.substring(1)),N.length>=2&&N.charAt(0)=="0"&&N.charAt(1)!="."){t.triggerRef(u);return}}if(w!="-"){if(!So(w)){t.triggerRef(u);return}if(o.integerLength!=-1&&wo(w)>Number(o.integerLength)){t.triggerRef(u);return}if(o.decimalLength&&o.decimalLength!=-1&&Co(w)>Number(o.decimalLength)){t.triggerRef(u);return}let N=za(w,o);if(N.maxValid===!1){m.value=N.message,t.triggerRef(u);return}}else if(o.min!=null&&se(o.min)>=0){t.triggerRef(u);return}f.value=w,te(o.showTip)&&(A.value=w.length>0),u.value=w,d.value=qa(w,o.rates,o.precision,!0),D.forEach(N=>{i(N,d.value)})},F=w=>{O(w,["update:modelValue","input"])},R=w=>{O(w,["update:modelValue","change"])},I=w=>{if(c.value=!0,te(o.showTip)){let D=u.value;me(D)&&(D=o.hintText),me(D)||(f.value=D,A.value=!0)}m.value="",i("focus",d.value,w)},E=w=>{if(setTimeout(()=>{c.value=!1,te(o.showTip)&&A.value===!0&&(A.value=!1)},0),!me(u.value)){let D=za(u.value,o);if(D.minValid===!1||D.maxValid===!1){m.value=D.message;return}}i("update:modelValue",d.value,w),i("blur",d.value,w)},x=()=>{i("clear","")},z=t.computed(()=>Ve(o.unit)>0),M=t.ref();return fe({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const D={...l.attrs,ref:M,class:p.value,type:"digit",maxlength:o.maxLength,placeholder:C.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:x,onInput:F,onChange:R,onFocus:I,onBlur:E},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:z.value&&(N.suffix=()=>[o.unit]);const q=[],B=t.h(v.ElInput,D,N);q.push(B);const j={default:()=>q};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const L={...Se(o,ja),errorTip:y.value,hintText:f.value,hintVisible:A.value,hintType:"number",prop:`${o.prop}_item`};return t.h(a,L,j)}}}}const{componentName:ru,create:iu,scope:su}=J("money-item"),_a=iu(lu(ru,su,be)),Ha={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 cu(e,n,a){return{props:{...he,...we,...Ha},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0,[`${g}__append`]:F.value})),b=t.computed(()=>({[`${g}__unit`]:!0})),p=I=>{h.value=I,i("update:modelValue",I),i("input",I)},k=I=>{i("change",I)};let m=ie(o,"hintText"),y=t.ref(!1);const f=I=>{let x=I.target.value;u.value=!0,me(m.value)||(y.value=!0),i("focus",x,I)},A=I=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let x=I.target.value;o.maxLength&&x.length>Number(o.maxLength)&&(x=x.slice(0,Number(o.maxLength))),i("blur",x,I)},O=()=>{i("clear","")},F=t.computed(()=>Ve(o.unit)>0),R=t.ref();return fe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const E={...l.attrs,ref:R,class:C.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:O,onChange:k,onInput:p,onFocus:f,onBlur:A},x={},z=[],M=t.h(v.ElInputNumber,E,x);z.push(M);const w={default:()=>z};l.slots.default&&(w.label=l.slots.default),l.slots.fixedTip&&(w.fixedTip=l.slots.fixedTip);const N={...Se(o,Ha),hintText:m.value,hintVisible:y.value,prop:`${o.prop}_item`};if(l.slots.append)w.append=l.slots.append;else if(F.value){const B={class:b.value},j=t.h("div",B,[o.unit]);w.append=()=>j}return t.h(a,N,w)}}}}const{componentName:uu,create:du,scope:fu}=J("input-number-item"),Ka=du(cu(uu,fu,be));function vt(e,n){const a=e.textKey??"text";return n[a]??""}function kt(e,n){const a=e.valueKey??"value";return n[a]}function Ya(e,n){const a=e.childrenKey??"children";return n[a]}function Ut(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=vt(e,l),s=kt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Wa(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(vt(e,n[s])===r){const c=kt(e,n[s])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const u=Ya(e,n[s]);Array.isArray(u)&&Wa(e,u,a,o+1,l);return}}function Ua(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(kt(e,n[s])===r){const c=vt(e,n[s])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const u=Ya(e,n[s]);Array.isArray(u)&&Ua(e,u,a,o+1,l);return}}function Hn(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=vt(e,n[o]),r=vt(e,a[o]);if(l!==r)return!1;const s=kt(e,n[o]),i=kt(e,a[o]);if(s!==i)return!1}return!0}let hu=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Ae(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Be(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function mu(){const e=t.getCurrentInstance();return new hu(e.proxy)}const Gt=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:d,...u}=o,h={loading:!1,...u,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:d,_parent:n};return h.children&&h.children.length&&(h.children=Gt(h.children,h,a)),h}),Ga=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Ga(o.children,n)},gu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},pu=(e,n)=>{const a={...gu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(d=>{d={...d};const{[l]:u,[r]:h}=d,g=c[h]=c[h]||[];!i.length&&h===o&&(i=g),g.push(d),d.children=c[u]||(c[u]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((u,h)=>u[s]-h[s])}),c=null,i},yu=/scroll|auto|overlay/i,bu=window;function Su(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Xa(e,n=bu){let a=e;for(;a&&a!==n&&Su(a);){const{overflowY:o}=window.getComputedStyle(a);if(yu.test(o))return a;a=a.parentNode}return n}const{create:wu}=J("sticky"),Cu=wu({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!a.value&&!d)return;const u=He(a),h=o.value,g=He(h),C=He(d);l.height=u.height;const b=()=>{let k=!1;if(e.position==="top")k=d?r.value>u.top&&C.bottom>0:r.value>u.top;else{const m=document.documentElement.clientHeight;k=d?C.bottom>0&&m-r.value-g.height>C.top:m-r.value<u.bottom}return k},p=()=>{if(d)if(e.position==="top"){const k=C.bottom-r.value-g.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,m=C.bottom-(k-r.value);return m<0?m:0}return 0};l.transform=p(),l.fixed=b()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),Xa(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Xa(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function vu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Xt=ue(Cu,[["render",vu]]),ku=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let g=await o(l,a);r.value.width=g.width||0,r.value.height=g.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Rn();let d="";const u=(g,C)=>{let b=g;switch(e.direction=="horizontal"?(d=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(d=C>0?"bottom":"top",b=C,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),d){case"left":case"top":n.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),i.moving=!0,u(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Tu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:$u}=J("ext-tabs"),Du=$u({components:{[Xt.name]:Xt,JoySmile:Wr},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=E=>{E.forEach((x,z)=>{let M=x.type;if(M=M.name||M,M=="fox-ext-tab-pane"){let w=new Tu;if(x.props?.title||x.props?.["pane-key"]||x.props?.paneKey){let D=tt(x.props?.["pane-key"]),N=D=="number"||D=="string"?String(x.props?.["pane-key"]):null,q=tt(x.props?.paneKey),B=q=="number"||q=="string"?String(x.props?.paneKey):null;w.title=x.props?.title,w.paneKey=N||B||String(z),w.disabled=x.props?.disabled}r.value.push(w)}else{if(x.children==" ")return;Array.isArray(x.children)&&s(x.children)}})},i=t.ref(e.modelValue||0),c=E=>{let x=r.value.findIndex(z=>z.paneKey==E);r.value.length==0||x==-1||(i.value=x)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),u=t.ref(),h=t.ref([]),g=E=>{const x=u.value,z=h.value;if(!x||!z||!z[i.value])return;const M=z[i.value];let w=0;e.direction==="vertical"?w=M.offsetTop-x.offsetTop+10-(x.offsetHeight-M.offsetHeight)/2:w=M.offsetLeft-(x.offsetWidth-M.offsetWidth)/2,C(x,w,E?0:.3,e.direction)},C=(E,x,z,M)=>{let w=0;const D=M==="horizontal"?E.scrollLeft:E.scrollTop,N=z===0?1:Math.round(z*1e3/16);function q(){M==="horizontal"?E.scrollLeft+=(x-D)/N:E.scrollTop+=(x-D)/N,++w<N&&co(q)}q()},b=(E=a.default?.())=>{r.value=[],E=E?.filter(x=>typeof x.children!="string"),E&&E.length&&s(E),c(e.modelValue),t.nextTick(()=>{g()})},p=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{b(E)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),g(),l){let x=He(o.value).top+k(),z=Math.ceil(x-e.top);window.scrollTo({top:z,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const m={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,m.updateValue(r.value[i.value])},prev:()=>{i.value-=1,m.updateValue(r.value[i.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,x)=>{n("click",E),!(E.disabled||i.value==x)&&(i.value=x,m.updateValue(E))},setTabItemRef:(E,x)=>{h.value[x]=E}},{tabsContentRef:y,touchState:f,touchMethods:A}=ku(e,m),O=t.computed(()=>{let E=i.value*100;f.moving&&(E+=f.offset);let x={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(x={}),x}),F=t.computed(()=>({background:e.background})),R=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),I=t.computed(()=>{if(!e.titleGutter)return{};const E=ye(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}});return{navRef:u,tabsContentRef:y,titles:r,contentStyle:O,tabsNavStyle:F,titleStyle:I,tabsActiveStyle:R,container:o,getScrollY:d,onStickyScroll:p,...m,...A}}}),Eu=["onClick"],xu=["onClick"];function Nu(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Eu))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:u=>e.setTabItemRef(u,d)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,xu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Zt=ue(Du,[["render",Nu]]),{create:Vu}=J("ext-tab-pane"),Bu=Vu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Iu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Jt=ue(Bu,[["render",Iu]]);class Za{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Gt(n,null,this.config)}updateChildren(n,a){a?a.children=Gt(n,a,this.config):this.nodes=Gt(n,null,this.config)}getNodeByValue(n){let a;return Ga(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Au,scope:Ou}=J("cascader-pane"),Ru=Au({components:{Loading:Pr,Checklist:ti,[Zt.name]:Zt,[Jt.name]:Jt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const a=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),l=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Za([],{})),i=t.ref([]),c=t.computed(()=>a.value.lazy&&!!a.value.lazyLoad),d=new Map;let u;const h=async()=>{d.clear(),i.value=[],o.value=0,l.value=!1,u=null;let{options:m}=e;a.value.convertConfig&&(m=pu(m,a.value.convertConfig)),s.value=new Za(m,{value:a.value.valueKey,text:a.value.textKey,children:a.value.childrenKey}),c.value&&!s.value.nodes.length&&await C({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],g()},g=async()=>{const m=r.value;if(m===void 0||!s.value.nodes.length)return;if(m.length===0){o.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let y=m;if(c.value&&Array.isArray(m)&&m.length){y=[];let f=s.value.nodes.find(A=>A.value===m[0]);if(f){y=[f.value],l.value=!0;const A=await m.slice(1).reduce(async(O,F)=>{const R=await O;await C(R);const I=R?.children?.find(E=>E.value===F);return I&&y.push(F),Promise.resolve(I)},Promise.resolve(f));await C(A),l.value=!1}}y.length&&m===e.modelValue&&s.value.getPathNodesByValue(y).map((A,O)=>{o.value=O,k.handleNode(A,!0)})},C=async m=>{if(!m)return;if(!a.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,c.value)||s.value.hasChildren(m,c.value))return;m.loading=!0;const y=m.root?null:m;let f=d.get(m);f||(f=new Promise(O=>{a.value.lazyLoad?.(m,O)}),d.set(m,f));const A=await f;Array.isArray(A)&&A.length>0?s.value.updateChildren(A,y):m.leaf=!0,m.loading=!1,d.delete(m)},b=m=>{const y=m.map(f=>f.value);r.value=y,n("change",y,m),n("update:modelValue",y,m)},{t:p}=De.useFoxI18n(Ou),k={async handleNode(m,y){const{disabled:f,loading:A}=m;if(!(!y&&f||!i.value[o.value])){if(s.value.isLeaf(m,c.value)){if(m.leaf=!0,i.value[o.value].selectedNode=m,i.value=i.value.slice(0,m.level+1),!y){const O=i.value.map(F=>F.selectedNode);b(O),n("pathChange",O)}return}if(s.value.hasChildren(m,c.value)){const O=m.level+1;if(i.value[o.value].selectedNode=m,i.value=i.value.slice(0,O),i.value.push({nodes:m.children||[],selectedNode:null}),o.value=O,!y){const F=i.value.map(R=>R.selectedNode);n("pathChange",F)}return}u=m,!A&&(await C(m),u===m&&(i.value[o.value].selectedNode=m,k.handleNode(m,y)))}},handleTabClick(m){u=null,o.value=Number(m.paneKey)},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:p("select")},isSelected(m,y){return m.selectedNode&&m.selectedNode.value===y.value}};return t.watch([a,()=>e.options],()=>{h()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{m!==r.value&&(r.value=m,g())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(r.value)&&r.value.length>0&&g()}),{panes:i,initLoading:l,tabsCursor:o,...k}}}),Fu={role:"menu",class:"fox-cascader__pane"},Lu=["aria-checked","aria-disabled","onClick"],Mu={class:"fox-cascader__item__title"},Pu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function qu(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),d=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(u),key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,g=>(t.openBlock(),t.createElementBlock("view",{key:g.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,g),disabled:g.disabled}]),"aria-checked":e.isSelected(u,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(g,!1)},[t.createElementVNode("view",Mu,t.toDisplayString(g.text),1),g.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Lu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Pu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Ja=ue(Ru,[["render",qu]]),{create:zu}=J("cascader-picker"),ju=zu({components:{[Ja.name]:Ja,[Ke.name]:Ke},props:{...An,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),_u=["innerHTML"];function Hu(e,n,a,o,l,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,_u)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Kn=ue(ju,[["render",Hu]]),Qa={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function Ku(e,n,a){return{props:{...he,...we,...Qa},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),h=t.ref(!1);const g=t.ref(!1),C=mu(),b=t.ref([]);t.watch([()=>o.source,()=>o.params],async([q,B])=>{q&&(b.value=await C.load(q,B))},{immediate:!0});const p=t.ref([]),k=t.computed(()=>Array.isArray(p.value)?p.value.join(" "):p.value),m=t.ref([]),y=t.ref([]);t.watch([()=>o.modelValue,b],async([q,B])=>{if(o.lazy===!0){y.value.length==0&&(p.value=Array.isArray(q)?q:[],m.value=Array.isArray(q)?q:[]);return}if(o.valueType==="item"){let j=q;if(!Hn(o,j,y.value)){y.value=j;let T=Ut(o,j);p.value=T.texts,m.value=T.values}}else if(o.valueType==="text"){let j=q,T=[];if(Wa(o,B,j,0,T),!Hn(o,T,y.value)){y.value=T;let L=Ut(o,T);j.value=L.texts,m.value=L.values}}else{let j=q,T=[];if(Ua(o,B,j,0,T),!Hn(o,T,y.value)){y.value=T;let L=Ut(o,T);p.value=L.texts,j.value=L.values}}});const f=e,A=t.computed(()=>({[f]:!0})),O=xe(t.computed(()=>o.textAlign),"textAlign"),F=t.computed(()=>({textAlign:O.value??"right"})),R=t.ref(!1),I=()=>{r.value===!0||s.value===!0||(R.value=!0)},E=q=>{R.value=q},x=(q,B)=>{let j=B.map(L=>{if(L==null)return L;let H={...L};return Reflect.deleteProperty(H,"text"),H[o.textKey]=L.text??"",Reflect.deleteProperty(H,"value"),H[o.valueKey]=L.value??"",H});y.value=j;let T=Ut(o,j);p.value=T.texts,m.value=T.values,o.valueType==="text"?(i("change",p.value,j),i("update:modelValue",p.value)):o.valueType==="item"?(i("change",j,j),i("update:modelValue",j)):(i("change",m.value,j),i("update:modelValue",m.value)),i("update:pathNodes",j)},z=q=>{let B=q.map(j=>{if(j==null)return j;let T={...j};return Reflect.deleteProperty(T,"text"),T[o.textKey]=j.text??"",Reflect.deleteProperty(T,"value"),T[o.valueKey]=j.value??"",T});i("pathChange",B)},M=q=>{g.value=!0,i("focus",m.value,q)},w=q=>{setTimeout(()=>{g.value=!1},0),i("blur",m.value,q)},D=t.computed(()=>Ve(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!s.value);const N=t.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const q={class:A.value,style:F.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,value:k.value,onClick:I,onFocus:M,onBlur:w},B={};l.slots.prepend&&(B.prepend=l.slots.prepend),l.slots.append&&(B.append=l.slots.append),l.slots.prefix&&(B.prefix=l.slots.prefix),l.slots.suffix?B.suffix=l.slots.suffix:D.value?B.suffix=()=>[o.unit]:B.suffix=()=>t.h(v.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const j=[],T=t.h(v.ElInput,q,B);j.push(T);const L={default:()=>j};l.slots.default&&(L.label=l.slots.default),l.slots.fixedTip&&(L.fixedTip=l.slots.fixedTip);let H={};H.visible=R.value,H["onUpdate:visible"]=E,H.modelValue=m.value,H.onChange=x,H.onPathChange=z,H.options=b.value,H.title=o.title,H.lazy=o.lazy,H.lazyLoad=o.lazyLoad,H.valueKey=o.valueKey,H.textKey=o.textKey,H.childrenKey=o.childrenKey,H.convertConfig=o.convertConfig;const K=t.h(Kn,H);L.hide=()=>[K];const ee={...Se(o,Qa),hintText:u.value,hintVisible:h.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,ee,L)}}}}const{componentName:Yu,create:Wu,scope:Uu}=J("cascader-item"),el=Wu(Ku(Yu,Uu,be)),tl={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gu(e,n,a){return{props:{...he,...we,...tl},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=De.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),h=ie(o,"modelValue"),g=e,C=t.computed(()=>({[g]:!0})),b=R=>{h.value=R,i("update:modelValue",R),i("input",R)},p=R=>{i("change",R)},k=R=>{i("select",R)};let m=ie(o,"hintText"),y=t.ref(!1);const f=R=>{let E=R.target.value;u.value=!0,me(m.value)||(y.value=!0),i("focus",E,R)},A=R=>{setTimeout(()=>{y.value&&(y.value=!1),u.value=!1},0);let E=R.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),i("blur",E,R)},O=()=>{i("clear","")},F=t.ref();return fe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const I={...l.attrs,ref:F,class:C.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:s.value,modelValue:h.value,onClear:O,onChange:p,onInput:b,onFocus:f,onBlur:A,onSelect:k},E={};l.slots.prepend&&(E.prepend=l.slots.prepend),l.slots.append&&(E.append=l.slots.append),l.slots.prefix&&(E.prefix=l.slots.prefix),l.slots.suffix&&(E.suffix=l.slots.suffix),l.slots.option&&(E.default=l.slots.option);const x=[],z=t.h(v.ElAutocomplete,I,E);x.push(z);const M={default:()=>x};l.slots.default&&(M.label=l.slots.default),l.slots.fixedTip&&(M.fixedTip=l.slots.fixedTip);const D={...Se(o,tl),hintText:m.value,hintVisible:y.value,prop:`${o.prop}_item`};return t.h(a,D,M)}}}}const{componentName:Xu,create:Zu,scope:Ju}=J("autocomplete-item"),nl=Zu(Gu(Xu,Ju,be));function Qu(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],h=c.find(g=>g[o]===u);if(!h)break;s.push(h[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],u=r[c];const h=d.find(g=>g[o]===u);if(!h)break;s.push(h[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],h=c.find(g=>g[o]===u);if(!h)break;s.push(h[a]),c=h[l]}}return s}let ed=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function td(){const e=t.getCurrentInstance();return new ed(e.proxy)}const ol={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 nd(e,n){return{props:{...ol},setup(a,{attrs:o,slots:l}){const r=td(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,u])=>{s.value=await r.load(a.sourceType,d,u)},{immediate:!0});const i=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Qu(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),c=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...o};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?t.h(a.emptyTag??"span",{...o,class:a.emptyClass},i.value):t.h(c,d,{default:()=>i.value}):t.h(c,d,i.value)}}}}const{componentName:Zh,create:od,scope:Jh}=J("mapping"),Qt=od(nd());function ad(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let d=r.substring(i+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(s==0){let h=r.substring(0,i);o=o[h][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function ld(e,n){return{props:{...ol},setup(a,{attrs:o,slots:l}){return()=>{const r={default:s=>{const i=ad(s.row,s.column.property);return l.default?t.h(Qt,{...a,modelValue:i},{default:l.default}):t.h(Qt,{...a,modelValue:i})}};return t.h(v.ElTableColumn,{...o},r)}}}}const{componentName:Qh,create:rd,scope:em}=J("table-mapping-column"),al=rd(ld()),id=Symbol.for("TableStateKey");function ll(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let d=r.substring(i+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(s==0){let h=r.substring(0,i);o=o[h][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function sd(e,n){return{props:{},setup(a,{attrs:o}){const l=t.inject(id,{});return()=>{const r=l.currentRow?l.currentRow.value:null,s={default:i=>{const c=ll(i.row,i.column.property),d=r?ll(r,i.column.property):null,u=c===d,h={class:{"el-radio__input":!0,"is-checked":u}},g=t.h("span",h,[t.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":u}};return t.h("label",C,[g])}};return t.h(v.ElTableColumn,{...o},s)}}}}const{componentName:tm,create:cd,scope:nm}=J("table-radio-column"),rl=cd(sd()),ud={},dd={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"},fd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function hd(e,n){return t.openBlock(),t.createElementBlock("svg",dd,fd)}const md=ue(ud,[["render",hd]]),{componentName:am,create:gd,scope:lm}=J("table-setting"),pd={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:"不固定"}},yd=gd({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:md,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...pd},emits:["update:modelValue","change","close"],setup(e,{emit:n,attrs:a}){let o=[];const l=t.ref([]),r=t.computed(()=>l.value.filter(T=>T.label===""||T.type?!1:T.fixed===""||T.fixed===!0||T.fixed==="left")),s=t.computed(()=>l.value.filter(T=>T.label===""||T.type?!1:T.fixed==="right")),i=t.computed(()=>l.value.filter(T=>!(T.label===""||T.type||T.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||s.value.length>0)&&i.value.length>0),d=t.computed(()=>r.value.length>0),u=t.computed(()=>s.value.length>0),h=T=>T.length>1,g=T=>{const L=[];l.value=T.map((K,G)=>(!(K.label===""||K.type)&&K.visible!==!1&&L.push(K.prop),{...K,sortIndex:G})),i.value.length+r.value.length+s.value.length===L.length?y.value=!0:L.length>0&&(f.value=!0),F.value=L},C=T=>T?T.type?T.type:T.label?T.prop:"":"",b=(T,L)=>{if(T.length!==L.length)return!1;const H=T.map(K=>C(K));for(let K of L){const G=C(K);if(H.indexOf(G)===-1)return!1}return!0},p=T=>{if(!T){const L=e.tableRef.getColumnSetting(),H=L.srcColumnPropertyList;o=H.map((K,G)=>({...K,sortIndex:G})),T=L.columnPropertyList,T&&T.length>0&&b(H,T)||(T=H)}g(T)},k=()=>{e.tableRef.setColumnSetting(l.value)},m=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),f=t.ref(!1),A=T=>{const L=[];l.value.forEach(K=>{T&&!(K.label===""||K.type)&&L.push(K.prop),K.visible=T}),y.value=!1,f.value=!1,i.value.length+r.value.length+s.value.length===L.length?y.value=!0:L.length>0&&(f.value=!0),F.value=L,k()},O=()=>{p(o),k()},F=t.ref([]),R=T=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const K=T.indexOf(H.prop)!==-1;H.visible=K}),y.value=!1,f.value=!1;const L=i.value.length+r.value.length+s.value.length;T.length===L?y.value=!0:T.length>0&&(f.value=!0),k()},I=()=>{p()};t.onMounted(()=>{setTimeout(()=>{p()},50)});const E={currentRow:null,index:null,roleType:null},x=T=>T?T.dataset&&T.dataset.role==="row"?T:T.tagName.toLowerCase()!=="body"?(T=T.parentElement,x(T)):null:null;return{attrs:a,leftFixedColumns:r,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:c,isShowLeftFixedTitle:d,isShowRightFixedTitle:u,isDraggble:h,isCheckAll:y,isIndeterminate:f,handleCheckAllChange:A,handleReset:O,checkedValue:F,handleCheckChange:R,onShow:I,onDragStart:T=>{const L=T.currentTarget;L&&L.dataset&&(E.roleType=L.dataset.roleType,E.index=L.dataset.index)},onDragEnd:T=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},onDragOver:T=>{const L=T.currentTarget;T.relatedTarget;const H=x(L);if(!H)return;const K=H.dataset&&H.dataset.roleType;E.roleType===K&&(T.preventDefault(),E.currentRow&&E.currentRow!==H&&E.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),E.currentRow=H)},onDragLeave:T=>{T.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},onDrop:T=>{const L=T.currentTarget,H=x(L);if(!H)return;const K=H.dataset&&H.dataset.roleType;if(E.roleType!==K)return;T.preventDefault();const G=Number(E.index),ee=Number(H.dataset.index);if(G!==ee){if(G<ee){const ne=l.value[G];l.value.splice(G,1),l.value.splice(ee,0,ne)}else{const ne=l.value[G];l.value.splice(G,1),l.value.splice(ee+1,0,ne)}g(l.value),k()}},toLeftFixed:T=>{const L=l.value[T];L.fixed="left",k()},toRightFixed:T=>{const L=l.value[T];L.fixed="right",k()},toUnFixed:T=>{const L=l.value[T];L.fixed=void 0,k()},checkboxLabelStyle:m}}}),bd={class:"fox-table-setting"},Sd={class:"fox-table-setting__header"},wd={class:"fox-table-setting__body"},Cd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},vd={key:0,class:"fox-table-setting__body-title"},kd=["data-index","draggable"],Td={class:"tools-item"},$d={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Dd={key:0,class:"fox-table-setting__body-title"},Ed=["data-index","draggable"],xd={class:"tools-item"},Nd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vd={key:0,class:"fox-table-setting__body-title"},Bd=["data-index","draggable"],Id={class:"tools-item"};function Ad(e,n,a,o,l,r){const s=t.resolveComponent("FoxCheckbox"),i=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),u=t.resolveComponent("FoxIcon"),h=t.resolveComponent("fox-tooltip"),g=t.resolveComponent("Download"),C=t.resolveComponent("fox-checkbox"),b=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",bd,[t.createElementVNode("div",Sd,[t.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=k=>e.isCheckAll=k),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",wd,[t.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=k=>e.checkedValue=k),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Cd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",vd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,k=>(t.openBlock(),t.createElementBlock("div",{key:k.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":k.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[1]||(n[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[2]||(n[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[3]||(n[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[4]||(n[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[5]||(n[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:k.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(k.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Td,[t.createVNode(h,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toUnFixed(k.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(h,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toRightFixed(k.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,kd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",$d,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",Dd,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,k=>(t.openBlock(),t.createElementBlock("div",{key:k.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":k.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[6]||(n[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[7]||(n[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[8]||(n[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[9]||(n[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[10]||(n[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(s,{class:"checkbox-item",label:k.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(k.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",xd,[t.createVNode(h,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toLeftFixed(k.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(h,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toRightFixed(k.sortIndex)},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ed))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Nd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Vd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,k=>(t.openBlock(),t.createElementBlock("div",{key:k.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":k.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[11]||(n[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[12]||(n[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[13]||(n[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[14]||(n[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[15]||(n[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(C,{class:"checkbox-item",label:k.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(k.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(h,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toUnFixed(k.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(h,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:m=>e.toLeftFixed(k.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Yn=ue(yd,[["render",Ad]]);let Od=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let d=(o-1)*l,u=d+l;u>a.length&&(u=a.length);const h=a.slice(d,u);return{totalSize:a.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s,i]);const c=Ae(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r,s,i]))}};function Rd(){const e=t.getCurrentInstance();return new Od(e.proxy)}class Fd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const o=Ae(this.proxy,"tableSetting");return typeof o=="function"&&(a=await Reflect.apply(o,null,["load",n])),a}save(n,a){const o=Ae(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,a])}remove(n){const a=Ae(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Ld(){const e=t.getCurrentInstance();return new Fd(e.proxy)}const Md=Symbol.for("TableStateKey");function Pd(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],s=0,i=r.indexOf("["),c=i==-1?-1:r.indexOf("]",i);for(;i!==-1&&c!==-1;){let d=r.substring(i+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(s==0){let h=r.substring(0,i);o=o[h][u]}else o=o[u];s++}i=r.indexOf("[",c),c=i==-1?-1:r.indexOf("]",i)}s===0&&(o=o[r])}return o}function Wn(e,n){return e.filter(o=>{for(let l in n){const r=n[l],s=Pd(o,l);if(r!==s)return!1}return!0})}const il={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},sl={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Un={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function qd(e,n,a){return{inheritAttrs:!1,props:{...he,...we,...il,...sl,...Un},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,l){const{locale:r}=De.useFoxI18n(n),{emitEvent:s}=pe({componentName:e,validateHandler:{getValue(...$){return f.value}}},o.prop??l.attrs.name),i=e,c=t.computed(()=>({[i]:!0})),d=t.computed(()=>({[`${i}__setting`]:!0})),u=t.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${o.footerAlign}`]:!0})),h=t.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${o.paginationAlign}`]:!0})),g=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,$=>{g.value=$});const C=$=>{g.value=$,s("page-index-change",$)},b=t.ref(o.pageSize);t.watch(()=>o.pageSize,$=>{b.value=$});const p=$=>{b.value=$,s("page-size-change",$)},k=t.shallowRef({}),m=t.computed(()=>({...k.value,...o.params??{},...o.baseParams??{}})),y=t.ref(0),f=t.ref(),A=Rd();let O=!0;const F=()=>Array.isArray(o.data)||typeof o.data=="function"?!0:te(o.autoLoad),R=xe(t.computed(()=>o.lazyLoad),"lazyLoad",_e.Near,$=>te($)),I=async($,V,_,Y)=>{try{const Z=await A.load("table",$,V,_,Y,O,r.value);y.value=Z.totalSize,f.value=Z.page}catch(Z){console.error("[FoxUI] Load Table Data Fail",Z),y.value=0,f.value=[]}O=!1,setTimeout(()=>{s("loaded-data")},250)};t.watch([g,b],([$,V],[_,Y])=>{V!==Y&&(g.value=1,$=1),I(o.data,$,V,m.value)}),t.watch([()=>o.data,m],([$,V],[_,Y])=>{F()&&($!==_&&(O=!0),!(!Array.isArray($)&&Le($,_)&&Le(V,Y))&&I($,g.value,b.value,V))},{deep:!0});const E=($={},V=!1)=>new Promise(_=>{k.value=t.toRaw($??{}),t.triggerRef(k),V||(g.value=o.pageIndex??1),t.nextTick(async()=>{await I(o.data,g.value,b.value,m.value),_()})}),x=()=>{y.value=0,f.value=[]};let z=!1;const M=()=>{z||(z=!0,E())};F()&&!R.value&&E();const w=t.ref(null);t.provide(Md,{currentRow:w});const D=($,V)=>{w.value=$,s("current-change",$,V)},N=($,V,_)=>{s("row-click",$,V,_),te(o.rowClickSelectable)===!0&&P?.value.toggleRowSelection($)},q=[],B=($,V)=>{if(s("expand-change",$,V),te(o.uniqueExpansion))if(Array.isArray(V)&&V.length==0){const _=q.length;q.splice(0,_)}else{q.forEach(Y=>{Y!==$&&P?.value.toggleRowExpansion(Y,!1)});const _=q.length;q.splice(0,_,$)}},j=l.attrs.id??o.prop??l.attrs.name,T=Ld(),L=t.ref([]);let H=[];const K=()=>({srcColumnPropertyList:H.map(V=>({...V})),columnPropertyList:L.value}),G=$=>{L.value=[...$],ne()},ee=async()=>{const $=await T.load(j);$&&(L.value=$)},ne=()=>{T.save(j,L.value)},re=()=>{T.remove(j)};ee();const U=$=>$?$.type?$.type:$.label?$.prop:"":"",ae=t.computed(()=>{if(typeof l.slots.default=="function"){const $=l.slots.default(),V=new Map;if(H=[],$.forEach(_=>{const Y=_;if(!Y.props)return;const Z=U(Y.props);V.set(Z,_);const W={label:"",prop:""};Object.assign(W,Y.props),H.push(W)}),L.value.length===H.length){const _=[];for(let Y of L.value){const Z=U(Y),W=V.get(Z);if(!W)return $;if(Y.visible===!1)continue;const Q=W;Q.props.fixed=Y.fixed,_.push(Q)}return _}return $}return[]}),P=t.ref();return fe({clearSelection:()=>P?.value.clearSelection(),getSelectionRows:()=>P?.value.getSelectionRows(),toggleRowSelection:($,V)=>{P?.value.toggleRowSelection($,V)},toggleRowSelectionByProp:($,V)=>{if(!f.value)return;const _=Wn(f.value,$);_.length!==0&&_.forEach(Y=>{P?.value.toggleRowSelection(Y,V)})},toggleAllSelection:()=>{P?.value.toggleAllSelection()},toggleRowExpansion:($,V)=>{P?.value.toggleRowExpansion($,V)},toggleRowExpansionByProp:($,V)=>{if(!f.value)return;const _=Wn(f.value,$);_.length!==0&&_.forEach(Y=>{P?.value.toggleRowExpansion(Y,V)})},setCurrentRow:$=>{P?.value.setCurrentRow($)},setCurrentRowByProp:$=>{if(!f.value)return;const V=Wn(f.value,$);V.length!==0&&P?.value.setCurrentRow(V[0])},getCurrentRow:()=>w.value,clearSort:()=>{P?.value.clearSort()},clearFilter:$=>{P?.value.clearFilter($)},doLayout:()=>{P?.value.doLayout()},sort:($,V)=>{P?.value.sort($,V)},scrollTo:($,V)=>{P?.value.scrollTo($,V)},setScrollTop:$=>{P?.value.setScrollTop($)},setScrollLeft:$=>{P?.value.setScrollLeft($)},loadData:E,clearData:x,getData(){return f.value},getTotalSize(){return y.value},getPageIndex(){return g.value},getPageSize(){return b.value},getColumnSetting:K,setColumnSetting:G,removeColumnSetting:re}),()=>{const V={...l.attrs,onCurrentChange:D,onRowClick:N,onExpandChange:B,data:f.value,ref:P,class:c.value},_={};l.slots.default&&(_.default=()=>ae.value),l.slots.append&&(_.append=l.slots.append),l.slots.empty&&(_.empty=l.slots.empty);const Y=[],Z=t.h(v.ElTable,V,_);Y.push(Z);let W=null;if(typeof l.slots.pagination=="function")W=l.slots.pagination();else if(o.showPagination){const et={class:h.value,total:y.value,pageSize:b.value,"onUpdate:pageSize":p,pageSizes:o.pageSizes,currentPage:g.value,"onUpdate:currentPage":C,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};W=t.h(v.ElPagination,et)}if(o.showSetting){const et=[];W&&et.push(W);const zh=t.h(v.ElIcon,{class:d.value},{default:()=>t.h($e.Setting)}),jh=mt(o,Un),_h=t.h(Yn,{...jh,tableRef:{getColumnSetting:K,setColumnSetting:G,removeColumnSetting:re}},{default:()=>zh});et.push(_h);const Hh=t.h("div",{class:u.value},et);Y.push(Hh)}else W&&Y.push(W);const Q={default:()=>Y},Te={...Se(o,il,sl,Un),prop:`${o.prop}_item`};return Te.contentClass=`${i}__wrap`,Te.errorMarkClass="is-table-error",R.value&&F()&&(Te["appear-listen"]=!0,Te.onAppear=M),t.h(a,Te,Q)}}}}const{componentName:zd,create:jd,scope:_d}=J("table-item"),cl=jd(qd(zd,_d,be));function st(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Tt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Kd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Yd(){const e=t.getCurrentInstance();return new Kd(e.proxy)}function ul(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=st(e,n),l=st(e,a);if(o!==l)return!1;const r=Tt(e,n),s=Tt(e,a);return r===s}function Wd(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;let l=null;for(let r of o){let s=!1;if(a==="text")s=st(e,r)===n;else if(a==="item")s=ul(e,r,n);else{let i=Tt(e,r);i==null&&(i=st(e,r)),s=i===n}if(s){l=r;break}}return l}function Ud(e){return{text:e,value:e}}function Gd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const dl={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Xd(e,n,a){return{inheritAttrs:!0,props:{...he,...we,...dl},emits:["change","update:modelValue"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref(null),d=t.ref(null),u=(R,I,E,x=!0)=>{const z=Wd(o,R,I,E);if(z===null){if(d.value===null)return;d.value=null,c.value=null,x&&(i("update:modelValue",null),i("change",null));return}if(!ul(o,z,d.value)){c.value=R;const w=t.toRaw(z);d.value=w;let D=null;o.valueType==="text"?D=st(o,w):o.valueType==="item"?D=w:D=Tt(o,w),x&&(i("update:modelValue",D),i("change",D))}},h=t.ref([]),g=xe(t.computed(()=>o.lazyLoad),"lazyLoad",_e.Near,R=>te(R)),C=Yd(),b=async(R,I)=>{if(R){const E=await C.load("radio",R,I);if(E.length>0)if(typeof E[0]=="string"){let M=E.map(w=>Ud(w));h.value=M}else h.value=E}};t.watch([()=>o.source,()=>o.params],async([R,I])=>{b(R,I)},{immediate:!g.value});let p=!1;const k=()=>{p||(p=!0,b(o.source,o.params))};t.watch([()=>h.value,()=>o.modelValue],([R,I])=>{u(I,o.valueType,R,!1)});const m=e,y=t.computed(()=>({[m]:!0,[`is-${o.direction}`]:!0})),f=R=>{u(R,"value",h.value,!0)};let A=ie(o,"hintText"),O=ie(o,"hintVisible");const F=(R,I)=>{const E=[];return R.forEach((x,z)=>{const M=Tt(o,x),w=st(o,x);let D=Hd(o,x);r.value===!0&&(D=r.value),s.value===!0&&(D=s.value);const N=Gd(o,x,z)??{},q=`${M}_${z}`,B={...N,key:q,label:M,disabled:D,size:o.size,border:te(o.border)};o.itemType==="button"?E.push(t.h(v.ElRadioButton,B,{default:()=>[w]})):typeof I=="function"?E.push(t.h(v.ElRadio,B,{default:()=>I(x)})):E.push(t.h(v.ElRadio,B,{default:()=>[w]}))}),E};return()=>{const I={...l.attrs,class:y.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:f},E=[],x={};l.slots.options?x.default=l.slots.options:x.default=()=>F(h.value,l.slots.text);const z=t.h(v.ElRadioGroup,I,x);E.push(z);const M={default:()=>E};l.slots.default&&(M.label=l.slots.default),l.slots.fixedTip&&(M.fixedTip=l.slots.fixedTip);const D={...Se(o,dl),hintText:A.value,hintVisible:O.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&(D["appear-listen"]=!0,D.onAppear=k),t.h(a,D,M)}}}}const{componentName:Zd,create:Jd,scope:Qd}=J("radio-item"),fl=Jd(Xd(Zd,Qd,be));function ct(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ef(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class tf{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ae(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Be(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function nf(){const e=t.getCurrentInstance();return new tf(e.proxy)}function hl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=ct(e,n),l=ct(e,a);if(o!==l)return!1;const r=ut(e,n),s=ut(e,a);return r===s}function of(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const l=[];return n.forEach(r=>{for(let s of o){let i=!1;if(a==="text")i=ct(e,s)===r;else if(a==="item")i=hl(e,s,r);else{let c=ut(e,s);c==null&&(c=ct(e,s)),i=c===r}if(i){l.push(s);break}}}),l}function af(e){return{text:e,value:e}}function lf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const ml={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function rf(e,n,a){return{inheritAttrs:!0,props:{...he,...we,...ml},emits:["change","update:modelValue"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=t.ref([]),d=t.ref([]),u=(R,I,E,x=!0)=>{const z=of(o,R,I,E);if(z===null){if(d.value===null||d.value.length===0)return;c.value=[],d.value=[],x&&(i("update:modelValue",[]),i("change",[]));return}let M=!0;if(z.length!==d.value.length)M=!1;else for(let w=0;w<z.length;w++){const D=z[w],N=d.value[w];if(!hl(o,D,N)){M=!1;break}}if(!M){d.value=z;let w=[],D=[];z.forEach(q=>{w.push(ut(o,q)),o.valueType==="text"?D.push(ct(o,q)):o.valueType==="item"?D.push(q):D.push(ut(o,q))}),c.value=w;const N=t.toRaw(D);x&&(i("update:modelValue",N),i("change",N))}},h=t.ref([]),g=xe(t.computed(()=>o.lazyLoad),"lazyLoad",_e.Near,R=>te(R)),C=nf(),b=async(R,I)=>{if(R){const E=await C.load("checkbox",R,I);if(E.length>0)if(typeof E[0]=="string"){let M=E.map(w=>af(w));h.value=M}else h.value=E}};t.watch([()=>o.source,()=>o.params],async([R,I])=>{b(R,I)},{immediate:!g.value});let p=!1;const k=()=>{p||(p=!0,b(o.source,o.params))};t.watch([()=>h.value,()=>o.modelValue],([R,I])=>{u(I,o.valueType,R,!1)});const m=e,y=t.computed(()=>({[m]:!0,[`is-${o.direction}`]:!0})),f=R=>{u(R,"value",h.value,!0)};let A=ie(o,"hintText"),O=ie(o,"hintVisible");const F=(R,I)=>{const E=[];return R.forEach((x,z)=>{const M=ut(o,x),w=ct(o,x);let D=ef(o,x);r.value===!0&&(D=r.value),s.value===!0&&(D=s.value);const N=lf(o,x,z)??{},q=`${M}_${z}`,B={...N,key:q,class:o.itemClass,label:M,disabled:D,size:o.size,border:te(o.border)};o.itemType==="button"?E.push(t.h(v.ElCheckboxButton,B,{default:()=>[w]})):typeof I=="function"?E.push(t.h(v.ElCheckbox,B,{default:()=>I(x)})):E.push(t.h(v.ElCheckbox,B,{default:()=>[w]}))}),E};return()=>{const I={...l.attrs,class:y.value,disabled:r.value||s.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:se(o.max),min:se(o.min),onChange:f},E=[],x={};l.slots.options?x.default=l.slots.options:x.default=()=>F(h.value,l.slots.text);const z=t.h(v.ElCheckboxGroup,I,x);E.push(z);const M={default:()=>E};l.slots.default&&(M.label=l.slots.default),l.slots.fixedTip&&(M.fixedTip=l.slots.fixedTip);const D={...Se(o,ml),hintText:A.value,hintVisible:O.value,prop:`${o.prop??l.attrs.name}_item`};return g.value&&(D["appear-listen"]=!0,D.onAppear=k),t.h(a,D,M)}}}}const{componentName:sf,create:cf,scope:uf}=J("checkbox-item"),gl=cf(rf(sf,uf,be)),pl={modelValue:{type:[Number,String],required:!1}};function df(e,n,a){return{props:{...he,...we,...pl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue",p=>se(p)),d=e,u=t.computed(()=>({[d]:!0})),h=p=>{i("update:modelValue",p),i("change",p)};let g=ie(o,"hintText"),C=t.ref(!1);const b=t.ref();return fe({}),()=>{const k={...l.attrs,ref:b,class:u.value,readonly:s.value||r.value,modelValue:c.value,onChange:h},m={},y=[],f=t.h(v.ElRate,k,m);y.push(f);const A={default:()=>y};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const F={...Se(o,pl),hintText:g.value,hintVisible:C.value,prop:`${o.prop}_item`};return t.h(a,F,A)}}}}const{componentName:ff,create:hf,scope:mf}=J("rate-item"),yl=hf(df(ff,mf,be)),bl={modelValue:{type:[Boolean,String,Number],required:!1}};function gf(e,n,a){return{props:{...he,...we,...bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),{emitEvent:i}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),c=ie(o,"modelValue"),d=e,u=t.computed(()=>({[d]:!0})),h=p=>{i("update:modelValue",p),i("change",p)};let g=ie(o,"hintText"),C=ie(o,"hintVisible");const b=t.ref();return fe({}),()=>{const k={...l.attrs,ref:b,class:u.value,readonly:s.value,disabled:r.value,modelValue:c.value,onChange:h},m={},y=[],f=t.h(v.ElSwitch,k,m);y.push(f);const A={default:()=>y};l.slots.default&&(A.label=l.slots.default),l.slots.fixedTip&&(A.fixedTip=l.slots.fixedTip);const F={...Se(o,bl),hintText:g.value,hintVisible:C.value,prop:`${o.prop}_item`};return t.h(a,F,A)}}}}const{componentName:pf,create:yf,scope:bf}=J("switch-item"),Sl=yf(gf(pf,bf,be)),wl={modelValue:{type:[String,Number,Boolean],required:!1}};function Sf(e,n,a){return{props:{...he,...we,...wl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=ke(t.computed(()=>o.disabled)),s=ve(t.computed(()=>o.readonly)),i=t.ref(!1),{emitEvent:c}=pe({componentName:e,get validate(){return!r.value&&!s.value}},o.prop??l.attrs.name),d=ie(o,"modelValue"),u=e,h=t.computed(()=>({[u]:!0})),g=O=>{c("update:modelValue",O),c("change",O)};let C=ie(o,"hintText"),b=t.ref(!1);const p=O=>{let R=O.target.value;i.value=!0,me(C.value)||(b.value=!0),c("focus",R,O)},k=O=>{setTimeout(()=>{b.value&&(b.value=!1),i.value=!1},0);let R=O.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),y.value||c("blur",R,O)},m=()=>{c("clear","")},y=t.ref(!1),f=O=>{y.value=O,c("visible-change",O),O||c("selected")},A=t.ref();return fe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const F={...l.attrs,ref:A,class:h.value,disabled:r.value||s.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:m,onFocus:p,onBlur:k,onVisibleChange:f},R={};l.slots.option&&(R.default=l.slots.option);const I=[],E=t.h(v.ElTreeSelect,F,R);I.push(E);const x={default:()=>I};l.slots.default&&(x.label=l.slots.default),l.slots.fixedTip&&(x.fixedTip=l.slots.fixedTip);const M={...Se(o,wl),hintText:C.value,hintVisible:b.value,prop:`${o.prop}_item`};return t.h(a,M,x)}}}}const{componentName:wf,create:Cf,scope:vf}=J("tree-select-item"),Cl=Cf(Sf(wf,vf,be)),kf=Symbol.for("InnerPageScopeKey"),Tf=Symbol.for("PageWrapperKey");function $f(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(a,o){t.provide(kf,!0);const l={};t.provide(Tf,l);const r=c=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=t.ref(!0),i=c=>{s.value=c};return()=>{const d={...o.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},u={};if(typeof o.slots.default=="function"){const h=o.slots.default();u.default=()=>h}return t.h(v.ElDialog,d,u)}}}}const{componentName:rm,create:Df,scope:im}=J("dialog-item"),vl=Df($f());function Ef(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(a,{slots:o}){const l=e,r=t.computed(()=>({[l]:!0})),s=t.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),c=t.computed(()=>{const u={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?u["is-left"]=!0:u["is-right"]=!0,u}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let u=null;if(o.mark)u=o.mark()[0];else{const p={class:s.value,style:i.value};u=t.h(a.icon??"div",p)}const h={class:c.value,style:d.value},g=o.default?o.default():[],C=t.h("div",h,g),b={class:r.value};return a.textPosition==="right"?t.h("div",b,[u,C]):t.h("div",b,[C,u])}}}}const{componentName:xf,create:Nf,scope:sm}=J("indicator"),kl=Nf(Ef(xf));function Vf(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Bf={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function If(e,n){return{props:{...Bf},setup(a,o){const l=t.ref(!0),r=t.ref(null),s=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(g=>{u[g]=!0}),a.type&&(u[`${e}__${a.type}`]=!0),a.size&&(u[`${e}__${a.size}`]=!0),u}),i=u=>{if(u&&te(a.showOverflowTooltip)){const h=u.clientWidth;Vf(u,g=>{l.value=g<=h})}};let c=null;t.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const u=r.value;i(u),u&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{i(u)}),c.observe(u))}),t.onUnmounted(()=>{c?.disconnect()});const d=(u,h)=>{let g=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const C=a.highlightFilter;if(u.indexOf(C)!==-1){const p=u.replace(new RegExp(C,"g"),`<span>${C}</span>`);h.innerHTML=p,h.class["is-highlight"]=!0,g=t.h(a.tag,h)}}else if(typeof a.highlightFilter=="function"){const C=a.highlightFilter(u);C&&(h.innerHTML=C,h.class["is-highlight"]=!0,g=t.h(a.tag,h))}return g};return()=>{const u={},h={...o.attrs,class:{...s.value},ref:r};if(te(a.numberFormat)&&typeof o.slots.default=="function"){const p=o.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const m=se(a.digits),y=se(a.decimalLength),f=te(a.autoPadding);let A=`${p[0].children}`,O=A.split("").reverse().join("");O=Et(O,y,f,m,a.separator),A=O.split("").reverse().join("");let F=null;a.highlightFilter!==void 0&&(F=d(A,h)),F||(h.innerHTML=A,F=t.h(a.tag,h)),u.default=()=>F}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const k=o.slots.default();if(Array.isArray(k)&&k.length===1){const m=k[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const y=`${k[0].children}`;p=d(y,h),p||(h.innerHTML=y,p=t.h(a.tag,h))}}}p||(p=t.h(a.tag,h,{default:o.slots.default})),u.default=()=>p}const C={disabled:l.value};return u.content=o.slots.default,t.h(v.ElTooltip,C,u)}}}}const{componentName:Af,create:Of,scope:cm}=J("text"),Tl=Of(If(Af)),{create:Rf}=J("toast"),Ff=Rf({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 a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,C=>{C&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const C=ce(e.iconSize);return t.h(e.icon,{width:C,height:C,color:e.iconColor})},u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),h=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:h,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Lf={key:1,class:"fox-toast-title"},Mf=["innerHTML"];function Pf(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Lf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Mf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const $l=ue(Ff,[["render",Pf]]),qf={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:$e.ArrowUp}};function zf(e,n,a){return{props:{...qf},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const h={[`${e}`]:!0};return o.disabled?h[`${e}__disabled`]=!0:h[`${e}__${o.type}`]=!0,h}),s=ie(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),u=()=>{l("update:modelValue",!s.value)};return()=>{const h=[];if(i.value){const p={class:c.value},k=t.h("span",p,[i.value]);h.push(k)}const g={class:d.value},C=a(o.icon,g);return C&&h.push(C),t.h("div",{class:r.value,onClick:u},h)}}}}const{componentName:jf,create:_f,scope:Hf}=J("more-button"),Dl=_f(zf(jf,Hf,(e,n)=>(e=e??$e.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Kf,create:Yf,scope:dm}=J("tour"),Wf=Yf({components:{Close:$e.Close,ElPopover:v.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=Kf,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=t.ref({}),r=t.computed(()=>`${a}`),s=t.computed(()=>{const{offset:b,maskWidth:p,maskHeight:k}=e,{width:m,height:y,left:f,top:A}=l.value,O=e.steps[o.active].offset??b,F=[f+m/2,A+y/2],R=Number(p||m),I=Number(k||y);return{width:`${R+ +O.left+O.right}px`,height:`${I+O.top+O.bottom}px`,top:`${F[1]-I/2-+O.top}px`,left:`${F[0]-R/2-+O.left}px`}}),i=b=>{b=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,u()}),n("change",o.active)},c=b=>b.popoverWidth??e.width,d=b=>b.location??e.location,u=()=>{const b=document.querySelector(`${e.steps[o.active].target}`),p=He(b);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},h=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},g=()=>{e.closeOnClickOverlay&&h()},C=(b,p=0)=>{b&&u(),e.steps,o.active=p,o.showTour=b,o.showPopup=b};return t.onMounted(()=>{C(e.modelValue,e.current)}),t.watch(()=>e.modelValue,b=>{C(b)}),{...t.toRefs(o),classes:r,maskStyle:s,changeStep:i,popoverWidth:c,popoverLocation:d,close:h,handleClickMask:g}}}),Uf={key:0,class:"fox-tour__content"},Gf={key:0,class:"fox-tour__content-top"},Xf={class:"fox-tour__content-inner"},Zf={class:"fox-tour__content-bottom"},Jf={class:"fox-tour__content-bottom-init"},Qf={class:"fox-tour__content-bottom-operate"},eh={key:1,class:"fox-tour__content fox-tour__content-tile"},th={class:"fox-tour__content-inner"};function nh(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-button"),c=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Uf,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Gf,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[t.createVNode(s,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Xf,t.toDisplayString(d.content),1),t.createElementVNode("div",Zf,[t.createElementVNode("div",Jf,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Qf,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=h=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=h=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",eh,[t.createElementVNode("div",th,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const El=ue(Wf,[["render",nh]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Je=e=>e==null,xl=10;function oh(e,n){return e>n&&e>xl?"horizontal":n>e&&n>xl?"vertical":""}function ah(){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",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=oh(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function lh(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function rh(e){e.stopPropagation()}function ih(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&rh(e)}class sh{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=lh()}open(n){this.el=n;const a=ah(),o=(l,r,s,i,c)=>{this.updateMove({x:r,y:s})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&ih(l,!0),o(n,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(n,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Nl(e,n){return new sh(e,n)}var Vl;const Gn=typeof window<"u";Gn&&((Vl=window?.navigator)!=null&&Vl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let dt=[];const Bl=e=>{const n=e;n.key==="Escape"&&dt.forEach(a=>a(n))},ch=e=>{t.onMounted(()=>{dt.length===0&&document.addEventListener("keydown",Bl),Gn&&dt.push(e)}),t.onBeforeUnmount(()=>{dt=dt.filter(n=>n!==e),dt.length===0&&Gn&&document.removeEventListener("keydown",Bl)})},Xn="fox-focus-trap.focus-after-trapped",Zn="fox-focus-trap.focus-after-released",uh="fox-focus-trap.focusout-prevented",Il={cancelable:!0,bubbles:!1},dh={cancelable:!0,bubbles:!1},Al="foxFocusAfterTrapped",Ol="foxFocusAfterReleased",fh=Symbol("foxFocusTrap"),Jn=t.ref(),en=t.ref(0),Qn=t.ref(0);let tn=0;const Rl=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},hh=(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},Fl=(e,n)=>{for(const a of e)if(!hh(a,n))return a},mh=e=>{const n=Rl(e),a=Fl(n,e),o=Fl(n.reverse(),e);return[a,o]},gh=e=>e instanceof HTMLInputElement&&"select"in e,Ye=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Qn.value=window.performance.now(),e!==a&&gh(e)&&n&&e.select()}};function Ll(e,n){const a=[...e],o=e.indexOf(n);return o!==-1&&a.splice(o,1),a}const ph=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Ll(e,o),e.unshift(o)},remove:o=>{e=Ll(e,o),e[0]?.resume?.()}}},yh=(e,n=!1)=>{const a=document.activeElement;for(const o of e)if(Ye(o,n),document.activeElement!==a)return},Ml=ph(),bh=()=>en.value>Qn.value,nn=()=>{Jn.value="pointer",en.value=window.performance.now()},Pl=()=>{Jn.value="keyboard",en.value=window.performance.now()},Sh=()=>(t.onMounted(()=>{tn===0&&(document.addEventListener("mousedown",nn),document.addEventListener("touchstart",nn),document.addEventListener("keydown",Pl)),tn++}),t.onBeforeUnmount(()=>{tn--,tn<=0&&(document.removeEventListener("mousedown",nn),document.removeEventListener("touchstart",nn),document.removeEventListener("keydown",Pl))}),{focusReason:Jn,lastUserFocusTimestamp:en,lastAutomatedFocusTimestamp:Qn}),on=e=>new CustomEvent(uh,{...dh,detail:e}),{componentName:fm,create:wh,scope:hm}=J("focus-trap"),Ch=wh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Al,Ol,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const o=t.ref();let l,r;const{focusReason:s}=Sh();ch(p=>{te(e.trapped)&&!i.paused&&a("release-requested",p)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=p=>{if(!e.loop&&!te(e.trapped)||i.paused)return;const{key:k,altKey:m,ctrlKey:y,metaKey:f,currentTarget:A,shiftKey:O}=p,{loop:F}=e,R=k==="Tab"&&!m&&!y&&!f,I=document.activeElement;if(R&&I){const E=A,[x,z]=mh(E);if(x&&z){if(!O&&I===z){const w=on({focusReason:s.value});a("focusout-prevented",w),w.defaultPrevented||(p.preventDefault(),F&&Ye(x,!0))}else if(O&&[x,E].includes(I)){const w=on({focusReason:s.value});a("focusout-prevented",w),w.defaultPrevented||(p.preventDefault(),F&&Ye(z,!0))}}else if(I===E){const w=on({focusReason:s.value});a("focusout-prevented",w),w.defaultPrevented||p.preventDefault()}}};t.provide(fh,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,p=>{p&&(o.value=p)},{immediate:!0}),t.watch([o],([p],[k])=>{p&&(p.addEventListener("keydown",c),p.addEventListener("focusin",h),p.addEventListener("focusout",g)),k&&(k.removeEventListener("keydown",c),k.removeEventListener("focusin",h),k.removeEventListener("focusout",g))});const d=p=>{a(Al,p)},u=p=>a(Ol,p),h=p=>{const k=t.unref(o);if(!k)return;const m=p.target,y=p.relatedTarget,f=m&&k.contains(m);te(e.trapped)||y&&k.contains(y)||(l=y),f&&a("focusin",p),!i.paused&&te(e.trapped)&&(f?r=m:Ye(r,!0))},g=p=>{const k=t.unref(o);if(!(i.paused||!k))if(!e.escape&&te(e.trapped)){const m=p.relatedTarget;!bn(m)&&!k.contains(m)&&setTimeout(()=>{if(!i.paused&&te(e.trapped)){const y=on({focusReason:s.value});a("focusout-prevented",y),y.defaultPrevented||Ye(r,!0)}},0)}else{const m=p.target;m&&k.contains(m)||a("focusout",p)}};async function C(){await t.nextTick();const p=t.unref(o);if(p){Ml.push(i);const k=p.contains(document.activeElement)?l:document.activeElement;if(l=k,!p.contains(k)){const y=new Event(Xn,Il);p.addEventListener(Xn,d),p.dispatchEvent(y),y.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;uo(f)||(Ye(f),document.activeElement!==f&&(f="first")),f==="first"&&yh(Rl(p),!0),(document.activeElement===k||f==="container")&&Ye(p)})}}}function b(){const p=t.unref(o);if(p){p.removeEventListener(Xn,d);const k=new CustomEvent(Zn,{...Il,detail:{focusReason:s.value}});p.addEventListener(Zn,u),p.dispatchEvent(k),!k.defaultPrevented&&(s.value=="keyboard"||!bh())&&Ye(l??document.body,!0),p.removeEventListener(Zn,d),Ml.remove(i)}}return t.onMounted(()=>{te(e.trapped)&&C(),t.watch(()=>e.trapped,p=>{te(p)?C():b()})}),t.onBeforeUnmount(()=>{te(e.trapped)&&b()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:vh,create:kh,scope:gm}=J("floating-window"),Th=Symbol.for("InnerPageScopeKey"),$h=Symbol.for("PageWrapperKey"),Dh={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},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Eh=kh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:Ch},props:{...Dh},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=vh,o=t.ref(e.modelValue);t.watch(()=>e.modelValue,$=>{o.value=$});const l=t.computed(()=>o.value===!1?!1:!I.value),r=t.ref(e.left),s=t.ref(e.top),i=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),u=t.computed(()=>{const $={};return Je(r.value)?$.left="auto":$.left=Ee(r.value),Je(s.value)?$.top="auto":$.top=Ee(s.value),Je(i.value)?$.right="auto":$.right=Ee(i.value),Je(c.value)?$.bottom="auto":$.bottom=Ee(c.value),Je(e.zIndex)||($["z-index"]=Ee(e.zIndex)),Je(F.value)||($.height=F.value),Je(R.value)||($.width=R.value),$}),h=t.computed(()=>e.closeIcon??$e.Close);t.provide(Th,!0);const g={};t.provide($h,g);const C=()=>{typeof g.beforeClose=="function"?g.beforeClose(()=>{o.value=!1}):o.value=!1},b=t.computed(()=>e.collapseIcon??$e.ArrowUp),p=t.computed(()=>e.collapseText??""),k=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),m=t.computed(()=>e.expandText??e.title??"展开"),y=t.computed(()=>({[`${a}__collapse-text`]:!0})),f=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),A=t.ref(),O=t.ref(),F=t.computed(()=>Ee(e.height)||""),R=t.computed(()=>Ee(e.width)||""),I=t.ref(te(e.collapse)),E=($,V=!0)=>{I.value!==$&&(I.value=$,$?T():L(),n("update:collapse",$))};t.watch(()=>e.collapse,$=>{E($)});const x=()=>{z()},z=$=>{$=$??!I.value,E($)},M=t.ref(null),w=t.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),D=t.ref(""),N=t.computed(()=>{const $={};return D.value?$.top=D.value:e.collapseTop&&($.top=e.collapseTop),$}),q=t.ref(I.value);let B=null;const j=()=>{typeof B=="function"&&(B(),B=null)},T=()=>{M.value&&M.value.classList.add("slide-in"),q.value=!0,B=()=>{M.value&&M.value.classList.remove("slide-in")}},L=()=>{M.value&&M.value.classList.add("slide-out"),B=()=>{M.value&&M.value.classList.remove("slide-out"),q.value=!1}},H=()=>{r.value=null,s.value=null,i.value=null,c.value=null},K={x:0,y:0},ne=Nl($=>{if(!A.value)return;const V=A.value;if(H(),e.origin==="left-top")r.value=V.offsetLeft,s.value=V.offsetTop,K.x=r.value,K.y=s.value;else if(e.origin==="left-bottom"){const _=document.documentElement.clientHeight||document.body.clientHeight;r.value=V.offsetLeft,c.value=_-(V.offsetTop+V.offsetHeight),K.x=r.value,K.y=c.value}else if(e.origin==="right-bottom"){const _=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight;i.value=_-(V.offsetLeft+V.offsetWidth),c.value=Y-(V.offsetTop+V.offsetHeight),K.x=i.value,K.y=c.value}else{const _=document.documentElement.clientWidth||document.body.clientWidth;i.value=_-(V.offsetLeft+V.offsetWidth),s.value=V.offsetTop,K.x=i.value,K.y=s.value}},$=>{if(!A.value)return;const V=A.value;H(),e.origin==="left-top"?(r.value=K.x+$.x,s.value=K.y+$.y,V.style.left=Ee(r.value),V.style.top=Ee(s.value)):e.origin==="left-bottom"?(r.value=K.x+$.x,c.value=K.y-$.y,V.style.left=Ee(r.value),V.style.bottom=Ee(c.value)):e.origin==="right-bottom"?(i.value=K.x-$.x,c.value=K.y-$.y,V.style.right=Ee(i.value),V.style.bottom=Ee(c.value)):(i.value=K.x-$.x,s.value=K.y+$.y,V.style.right=Ee(i.value),V.style.top=Ee(s.value))}),re={x:0,y:0},P=Nl($=>{M.value&&(re.x=M.value.offsetLeft,re.y=M.value.offsetTop)},$=>{if(!M.value)return;const V=re.y+$.y;D.value=`${V}px`});return t.onMounted(()=>{e.draggable&&O.value&&A.value&&ne.open(O.value),e.collapse===!0&&E(e.collapse,!1),M.value&&P.open(M.value)}),t.onBeforeUnmount(()=>{e.draggable&&O.value&&ne.close(),M.value&&P.close()}),{classes:d,styles:u,isShow:l,closeIcon:h,onClose:C,dialogRef:A,headerRef:O,onClickToggle:x,collapseIcon:b,collapseText:p,collapseTextClasses:y,collapseIconClasses:f,expandIcon:k,expandText:m,isShowFixedNav:q,fixedNavRef:M,fixedNavClasses:w,fixedNavStyles:N,onAnimationEnd:j}}}),xh={ref:"headerRef",class:"fox-floating-window__header"},Nh={class:"fox-floating-window__title"},Vh={class:"fox-floating-window__tools"},Bh={class:"fox-floating-window__body"},Ih={class:"fox-floating-window__fixednav__text"};function Ah(e,n,a,o,l,r){const s=t.resolveComponent("FoxIcon"),i=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!e.appendToBody},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",xh,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",Nh,t.toDisplayString(e.title),1),t.createElementVNode("div",Vh,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(s,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Bh,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["disabled"])),t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Ih,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],64)}const ql=ue(Eh,[["render",Ah]]);function Oh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Bo(a.name,a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:pm,create:Rh,scope:ym}=J("domain-provider"),zl=Rh(Oh()),Fh={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 Lh(e,n){return{inheritAttrs:!1,props:Fh,setup(a,{slots:o}){if(Ge&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(g,C)=>{if(u===null){r.set(g,{visible:null,callback:C});return}l.has(g)&&u.unobserve(g),l.set(g,{visible:null,callback:C}),u.observe(g)},i=g=>{if(u===null){r.delete(g);return}l.has(g)&&(l.delete(g),u.unobserve(g))};let c=a.initialVisibleObserverSize;vi({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let u=null;const h=(g,C,b)=>{u=new IntersectionObserver(p=>{for(let k of p){let m=!1;k.intersectionRatio>0&&(m=!0);const y=l.get(k.target);if(y)try{if(a.loadPolicy==="lazy"&&!m&&y.visible!==null)return;y.visible=m,y.callback(m)}catch(f){console.error(f)}}},{root:g,rootMargin:C,threshold:b}),r.forEach((p,k)=>{l.set(k,p),u?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,C])=>{if(C||!g||u)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&h(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:bm,create:Mh,scope:Sm}=J("rolling-provider"),jl=Mh(Lh()),Ph=[qo,zo,jo,_o,Wo,be,Qo,ea,Ht,na,pa,xa,Aa,Ra,La,_a,Ka,el,nl,al,rl,Yn,cl,fl,gl,yl,Sl,Cl,vl,Qt,Vn,kl,Tl,$l,Yt,Ke,Ct,qn,jn,Jt,Zt,Kn,Dl,El,Xt,ql,zl,jl],qh=new Dr(Ph,[Nr],"4.0.0");Object.defineProperty(S,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(S,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(S,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(S,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(S,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(S,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(S,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(S,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(S,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(S,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(S,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(S,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(S,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(S,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(S,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(S,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(S,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(S,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(S,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(S,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(S,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(S,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(S,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(S,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(S,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(S,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(S,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(S,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(S,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(S,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(S,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(S,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(S,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(S,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(S,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(S,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(S,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(S,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(S,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(S,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(S,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(S,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(S,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(S,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(S,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(S,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(S,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(S,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(S,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(S,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(S,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(S,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(S,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(S,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(S,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(S,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(S,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(S,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(S,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(S,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(S,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(S,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(S,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(S,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(S,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(S,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(S,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(S,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(S,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(S,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(S,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(S,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(S,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(S,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(S,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(S,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(S,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(S,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(S,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(S,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(S,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(S,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(S,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(S,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(S,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(S,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(S,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(S,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(S,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(S,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(S,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(S,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(S,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(S,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),S.AutocompleteItem=nl,S.Broadcast=Sn,S.BroadcastKey=ge,S.CalendarItem=Aa,S.CalendarPicker=jn,S.CascaderItem=el,S.CascaderPicker=Kn,S.CheckboxItem=gl,S.Content=_o,S.DataItemsKey=nt,S.DateItem=xa,S.DatePicker=qn,S.DateUtils=X,S.DialogItem=vl,S.Domain=It,S.DomainKey=Ne,S.DomainProvider=zl,S.ExtTabPane=Jt,S.ExtTabs=Zt,S.FloatingWindow=ql,S.FooterBar=jo,S.Group=Wo,S.HeaderBar=zo,S.HintText=Ht,S.Indicator=kl,S.InputItem=na,S.InputNumberItem=Ka,S.Item=be,S.Mapping=Qt,S.MoneyItem=_a,S.MoreButton=Dl,S.Overlay=Yt,S.Page=qo,S.Picker=Ct,S.Popup=Ke,S.Price=Vn,S.PriorityPolicy=_e,S.RadioItem=fl,S.RateItem=yl,S.RollingProvider=jl,S.RowItem=ea,S.SelectItem=pa,S.SlotItem=Qo,S.SwitchItem=Sl,S.TableItem=cl,S.TableMappingColumn=al,S.TableRadioColumn=rl,S.TableSetting=Yn,S.Text=Tl,S.TimeItem=Ra,S.TimeSelectItem=La,S.Toast=$l,S.Tour=El,S.TreeSelectItem=Cl,S.UniqueID=Zo,S.ValidateSchema=xo,S.ValidateSchemaKey=Me,S.cancelRaf=Kl,S.clearNonNumber=or,S.clone=pn,S.compareTo=hn,S.createBroadcast=Nt,S.createValidateSchema=Bt,S.debounce=yt,S.debounceRef=pr,S.decimalLength=Co,S.default=qh,S.defineBroadcast=ir,S.defineConfigDomain=Bo,S.defineDataItem=Ao,S.defineDomain=vn,S.defineItem=pe,S.definePageState=Oo,S.deleteGlobalValidator=dr,S.disabledProperty=ke,S.divide=fn,S.excludeProps=Se,S.extend=Ue,S.floatData=rr,S.getGlobalValidateCheckEvents=$o,S.getGlobalValidateResetEvents=Eo,S.getPageContentAreaHeight=Ot,S.getPageContentAreaWidth=Rt,S.getPageFooterAreaHeight=St,S.getPageHeaderAreaHeight=bt,S.getRootDomain=ot,S.hasSymbol=ho,S.includeProps=mt,S.indexOf=ar,S.installRules=Io,S.integerLength=wo,S.isArray=Wl,S.isArrayLike=po,S.isBrowser=Ge,S.isDate=Fe,S.isESModule=Jl,S.isEmptyString=me,S.isEqual=Le,S.isFunction=mn,S.isHidden=go,S.isInnerPage=Sr,S.isMap=Ul,S.isNil=bn,S.isNumberString=So,S.isObject=Be,S.isPlainObject=gn,S.isPromise=Zl,S.isRegExp=bo,S.isSet=Gl,S.isString=uo,S.isSubPage=wr,S.isSymbol=Xl,S.isWindow=mo,S.lastIndexOf=lr,S.makeArray=nr,S.merge=yo,S.multiply=ro,S.negate=io,S.nextTick=er,S.numberFormat=Et,S.objectToString=fo,S.once=yr,S.property=xe,S.raf=co,S.readonlyProperty=ve,S.setGlobalValidateCheckEvents=fr,S.setGlobalValidateHandler=cr,S.setGlobalValidateMessages=mr,S.setGlobalValidateResetEvents=hr,S.setGlobalValidator=ur,S.sticky=Xt,S.throttle=Vo,S.toBoolean=te,S.toNumber=se,S.toPadding=Ie,S.toPx=ce,S.toPxDesc=ye,S.toTypeString=xt,S.toValue=ie,S.tryTimes=wn,S.typeOf=tt,S.unNumberFormat=so,S.updatePageState=kn,S.useBroadcast=gt,S.useDomain=Pe,S.useExpose=fe,S.useInnerSize=En,S.usePageState=At,S.usePosition=Uo,S.useRect=He,S.useSize=Dn,S.useTouch=Rn,S.valueLength=Ve,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function Rt(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Te(e),n=Te(n),[e,n]=hn(Te(e),Te(n)),a==1&&(o==1?e=mn(e):n=mn(n));let l=Po(e,n);return a?a==2?"-"+Te(l):e.length<l.length?Te(l.substring(1)):"-"+Te(mn(l)):Te(l)}function mn(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Po(n,r)}function Te(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 hn(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Po(e,n){[e,n]=hn(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function ht(e,n=0,a=me.HALF_EVEN){if(a===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],i=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+i,c=ht(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,qo(l[1],r,o,a)?(o?"-":"")+gn(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");i=l[1].substring(0,n);let s=l[1].substring(n);return s&&qo(s,i,o,a)&&(i=gn(i),i.length>n)?(o?"-":"")+gn(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function qo(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===me.DOWN||!a&&o===me.FLOOR||a&&o===me.CEILING)return!1;if(o===me.UP||a&&o===me.FLOOR||!a&&o===me.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function gn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function pn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=gt(e),n=gt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=gt(e.replace(".","")),n=gt(n.replace(".","")),e.length<n.length){let m=e;e=n,n=m}if(n=="0")return"0";let i=n.length,s=0,c=[],d=i-1,u="";for(let m=0;m<i;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){let p=0;for(let E=n.length-1;E>=d&&E>=0;E--)c[E]>-1&&c[E]<e.length&&(p+=parseInt(e[c[E]--])*parseInt(n[E]));p+=s,s=Math.floor(p/10),u=p%10+u,d--}return u=gt(Gl(u,r)),a==1&&(u="-"+u),u}function Gl(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 gt(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 yn(e,n,a=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 o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Te(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Te(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Te(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let u=e.length-d+l;e=Te(e.substring(0,u)+"."+e.substring(u))}else l==d&&(e=Te(e.replace(".","")))}let r=0,i=n.length,s="",c=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),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(d+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=d,s="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Rt(c,"-"+n),d++;s+=d,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+Te(ht(s,a-2))}function bn(e,n){return e=e.toString(),n=n.toString(),n=wn(n),Rt(e,n)}function wn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),jo(e),jo(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=bn(e,pn(n,ht(yn(e,n),0,me.FLOOR)));return a+o}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _o(e,n){let a=!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),a=!0),[e,n]=hn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ae{value;static RoundingModes=me;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[a,o]=n.split(/[eE]/);a=Te(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Te(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ae.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ae.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=0?o:"")+i;return(l?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return ae.getPrettyValue(this.value,n,a)}static round(n,a=0,o=me.HALF_EVEN){if(n=ae.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return ht(n,a,o)}round(n=0,a=me.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ae(ht(this.value,n,a))}static floor(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.FLOOR)}static ceil(n){return n=ae.validate(n),n.indexOf(".")===-1?n:ae.round(n,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.CEILING)}static add(n,a){return n=ae.validate(n),a=ae.validate(a),Rt(n,a)}add(n){return new ae(Rt(this.value,n.getValue()))}static subtract(n,a){return n=ae.validate(n),a=ae.validate(a),bn(n,a)}subtract(n){return new ae(bn(this.value,n.getValue()))}static multiply(n,a){return n=ae.validate(n),a=ae.validate(a),pn(n,a)}multiply(n){return new ae(pn(this.value,n.getValue()))}static divide(n,a,o){return n=ae.validate(n),a=ae.validate(a),yn(n,a,o)}divide(n,a){return new ae(yn(this.value,n.getValue(),a))}static modulus(n,a){return n=ae.validate(n),a=ae.validate(a),zo(n,a)}modulus(n){return new ae(zo(this.value,n.getValue()))}static compareTo(n,a){return n=ae.validate(n),a=ae.validate(a),_o(n,a)}compareTo(n){return _o(this.value,n.getValue())}static negate(n){return n=ae.validate(n),wn(n)}negate(){return new ae(wn(this.value))}}function Ho(e,n){return ae.multiply(`${e}`,`${n}`)}function Sn(e,n,a=8){return ae.divide(`${e}`,`${n}`,a)}function vn(e,n){return e=`${e}`,n=`${n}`,ae.compareTo(e,n)}function Ko(e){return ae.negate(e)}function Ft(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",d=r.indexOf(".");d!=-1&&(s=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let u;if(o>0){let m="",p=s.split("").reverse();for(let E=0;E<p.length;E++)m+=p[E]+((E+1)%o==0&&E+1!=p.length?l:"");c.length==0?u=`${i}${m.split("").reverse().join("")}`:u=`${i}${m.split("").reverse().join("")}.${c}`}else c.length==0?u=`${i}${s}`:u=`${i}${s}.${c}`;return u}function Yo(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Wo=Mo,Xl=Array.isArray,Zl=e=>Lt(e)==="[object Map]",Jl=e=>Lt(e)==="[object Set]",Me=e=>e instanceof Date,Cn=e=>typeof e=="function",Uo=e=>typeof e=="string",Ql=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",er=e=>Ae(e)&&Cn(e.then)&&Cn(e.catch),Go=Object.prototype.toString,Lt=e=>Go.call(e),kn=e=>Lt(e)==="[object Object]",Xo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function tr(e){return e.__esModule||Xo&&e[Symbol.toStringTag]==="Module"}const nr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ze(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let s=n[i],c=r[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},n[i]=Ze(l,d,c)}else c!==void 0&&(n[i]=c)}}return n}function Tn(e,n,a=!1){if(!a)Ze(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;r=Tn(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!kn(i))continue;r=Tn(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}}return e}const $n=nr?Promise.resolve():null;function or(e,...n){$n!==null?n&&n.length>0?$n.then(()=>{e(n)}):$n.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function oe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ce(e){return typeof e=="number"?e:Number(e)}const ar={"[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 nt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ar[a]||"object"}function Zo(e){return e&&typeof e=="object"&&"setInterval"in e}function Jo(e){return!e||e.offsetParent===null}function Qo(e){let n=!!e&&"length"in e&&e.length,a=nt(e);return a==="function"||Zo(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ea(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function lr(e,n=[]){let a=n;return e!=null&&(Qo(Object(e))?ea(a,typeof e=="string"?[e]:e):a.push(e)),a}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=nt(e),o=nt(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],c=e[s],d=n[s];if(!Pe(c,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Pe(r,i))return!1}return!0}return!1}const Je=typeof window<"u";function Dn(e){return e==null}function ta(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ye=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function na(e){return ye(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ye(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oa(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 a=n.indexOf(".");return a==-1?n.length:a}function aa(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function la(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function rr(e,n=!0,a=!0){n?e=la(e,".",/\./g):e=e.replace(/\./g,""),a?e=la(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ir(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Pe(e,a))return!0}):n.indexOf(e)}function sr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Pe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function pt(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function ve(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const cr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e},be=Symbol.for("BroadcastKey");class En{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):ta(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(a);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[a]=="function"){const c=Reflect.apply(s[a],s,[...o]);c!=null&&r.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(n,a){this.callbacks.set(n,a)}}function Mt(e,n,a,o){const l=new En(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ur(e,n,a){const o=a;if(o[be])return o[be];const l=t.inject(be,null),r=new En(l,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[be]=r,t.provide(be,r),t.onUnmounted(()=>{r.destroy(),o[be]=void 0}),r}function yt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[be]??t.inject(be,null):t.inject(be,null)}const Qe=e=>e.default??e;class dr{error(n,a){const o=a,l=yt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=yt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=yt(o),i=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let ra=new dr;function fr(e){ra=e}function mr(e,n){Qe(Xe).setValidator(e,n)}function hr(e){Qe(Xe).deleteValidator(e)}let ia=["blur","clear"];function gr(e){ia=e}function sa(){return ia}let ca=["focus","change"];function pr(e){ca=e}function ua(){return ca}function yr(e){Qe(Xe).messages(e)}function bt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Pt(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 qe=Symbol("ValidateSchemaKey");class da{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const a=Pt(bt(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=Pt(o);const l=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=ra;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,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,a,o=!1){o?Qe(Xe).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?Qe(Xe).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return Qe(Xe).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=bt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Pt(n):this.rules=Pt([n]);const o=bt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=bt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),i={[`${o}`]:r},s=Qe(Xe),c=new s(l),d=this.proxy??i;return c.validate(i,{context:d}).then(m=>{if(m.pass)this.success();else{let p="error";Array.isArray(m.errors)&&m.errors.length>0&&(p=m.errors[0].message??p,m.errors=[m.errors[0]],m.errors[0].ref=d),this.error(p)}return m}).catch(m=>{const p=m.message??`${m}`;return this.error(p),m})}}return Promise.resolve({pass:!0})}}function qt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new da(n,a,e)}const fa=Symbol.for("EventEmitterKey");class br{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function wt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function ma(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function wr(e,n){const a=wt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function Sr(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function xn(e,n,a,o=0,l=!0){let r=n,i=0;if(l){const c=e();if(i++,c||i>a)return}const s=()=>{const c=e();i++,!(c||i>a)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const Ve=Symbol("DomainKey"),ot=Symbol("DataItemsKey");class zt{_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=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const vr=new zt;function at(){return vr}function ze(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ve]??t.inject(Ve,null):t.inject(Ve,null)}const Nn=Symbol("OriginalDateKey");function Vn(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let i=t.inject(Ve,null);i===null&&(i=at());const s=e||n.prop||n.name,c=new zt(s);c.parent=i;const d=b=>{r[Nn]||p(b),c.set("modelValue",b)},u=()=>c.getForSelf("modelValue")??null,m=()=>r[Nn]??null,p=b=>{const v={};Ze(!0,v,t.toRaw(b)),r[Nn]=v};t.isReactive(n)||typeof n=="function"?t.watch(n,b=>{c.merge(b,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&p(n.modelValue),r[Ve]=c,t.provide(Ve,c);let E=null,g=null;if(l!==null){const b=t.inject(be,null);E=Mt(r,b,s,o),c.broadcast=E,r[be]=E,t.provide(be,E),r.broadcast=(h,w,...f)=>Reflect.apply(E.emit,E,[h,w,...f]);const v=t.inject(qe,null);g=qt(r,v,{componentName:""}),c.validateSchema=g,r[qe]=g,t.provide(qe,g),r[ot]=new Map,r.validate=(h=!0)=>{const w=[];let f=null;const I={deep:!1};if(h===!0)f={name:"*"};else if(Array.isArray(h)&&h.length>0){const B=h;f={name:O=>O?B.indexOf(O)!==-1:!1}}else if(h!=null&&typeof h=="object"){const B=h;if(I.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const O=B.include;f={name:R=>R?O.indexOf(R)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const O=B.exclude;f={name:R=>R?O.indexOf(R)===-1:!1}}else f={name:"*"}}if(f){const B=E?.emitToChildren(f,"validate",I);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let O=[];return B.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(O=[...O,...R.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,w=!0,f=!1)=>{if(f===!0){Reflect.ownKeys(h).forEach(B=>{let O=String(B);const V=pa(c,O,{componentName:"",fieldName:O,pureDataValidate:!0},E,g);r[ot].set(O,V);const $=h[O];$&&V.validateSchema.setRule($)});return}if(w){const I=Reflect.ownKeys(h),B={name:O=>I.includes(O)};E?.emitToChildren(B,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let w=null;if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const f=h;w={name:I=>I?f.indexOf(I)!==-1:!1}}else if(h!=null&&typeof h=="object"){const f=h;if(Array.isArray(f.include)&&f.include.length>0){const I=f.include;w={name:B=>B?I.indexOf(B)!==-1:!1}}else if(Array.isArray(f.exclude)&&f.exclude.length>0){const I=f.exclude;w={name:B=>B?I.indexOf(B)===-1:!1}}else w={name:"*"}}w&&E?.emitToChildren(w,"clearValidate",!1)},r.resetFields=h=>{const w=u();if(!w)return;const f={};if(Ze(!0,f,m()??{}),Array.isArray(h))h.forEach(I=>{w[I]=f[I]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(B=>{w[B]=f[B]});else if(h&&Array.isArray(h.exclude)){let I=h.exclude??[];Reflect.ownKeys(f).forEach(B=>{I.includes(B)||(w[B]=f[B])})}else Object.assign(w,f);r.clearValidate(h)},r.setModelValue=(h,w)=>{!w||w===s?d(h):E?.emitToChildren({name:w},"setModelValue",h)},r.getModelValue=()=>u()}return t.onUnmounted(()=>{c.destroy(),r[Ve]=void 0,r[ot]&&(r[ot].clear(),r[ot]=void 0),E!==null&&(E.destroy(),r[be]=void 0),g!==null&&(g.destroy(),r[qe]=void 0)}),c}function ha(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ve,null);r===null&&(r=at());const i=e||n.prop||n.name,s=new zt(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s.merge(c,a)},{immediate:!0}):s.merge(n,a),l[Ve]=s,t.provide(Ve,s),t.onUnmounted(()=>{s.destroy(),l[Ve]=void 0}),s}function ga(e,n,a){const l=ze(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),r.forEach(i=>{n.setRule(i)}))}function we(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(be,null),s=Mt(l,i,r,a);l[be]=s,t.provide(be,s),l.broadcast=(g,b,...v)=>Reflect.apply(s.emit,s,[g,b,...v]);const c=t.inject(qe,null);e.fieldName=e.fieldName??r;const d=qt(l,c,e);l[qe]=d,t.provide(qe,d),ga(l,d,r),l.validate=(g=null)=>{const b=[];let v=!1,h=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)h=!0,v=!0;else if(g&&typeof g=="object"){const w=g;w.ignoreHidden===!0&&Jo(l.$el)?h=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),h=!0),v=w.deep??!1}else typeof g=="boolean"&&(v=g),h=!0;if(h){const w=d?.validate();b.push(w)}if(v){let w=null;const f={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const I=g;w={name:B=>B?I.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const I=g;if(f.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const B=I.include;w={name:O=>O?B.indexOf(O)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const B=I.exclude;w={name:O=>O?B.indexOf(O)===-1:!1}}else w={name:"*"}}if(w){const I=s.emitToChildren(w,"validate",f);Reflect.apply([].push,b,I)}}return b.length==1?b[0]:b.length>1?Promise.all(b).then(w=>{let f=[];return w.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(f=[...f,...I.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>d?.setRule(g),l.setNameValidateRules=(g,b=!1)=>{const v=g[r];if(v&&d?.setRule(v),b){const h={name:w=>Reflect.ownKeys(g).includes(w)};s.emitToChildren(h,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&d?.clear();let b=null;if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;b={name:h=>h?v.indexOf(h)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const h=v.include;b={name:w=>w?h.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const h=v.exclude;b={name:w=>w?h.indexOf(w)===-1:!1}}else b={name:"*"}}b&&s.emitToChildren(b,"clearValidate",!1)};const u=new br(l);l[fa]=u;const m=wt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sa()).forEach(g=>{u.on(g,b=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ua()).forEach(g=>{u.on(g,b=>{m("reset")})}),t.onUnmounted(()=>{s.destroy(),l[be]=void 0,d.destroy(),l[qe]=void 0,u.destroy(),l[fa]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(g,...b)=>{Reflect.apply(u.emit,u,[g,...b])},onEvent:(g,b)=>{Reflect.apply(u.on,u,[b])},offEvent:(g,b)=>{Reflect.apply(u.off,u,[b])}}}function pa(e,n,a,o,l){const r={},i=n??"",s={getValue(){const u=e.getForSelf("modelValue");return u?u[i]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,i):!1}};a.fieldName=i,a.validateHandler={getValue(u){return s.getValue()}};const c=qt({},l,a);r.validate=(u=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let p=!1,E=!1;if(Array.isArray(u)&&u.indexOf(i)!==-1)E=!0,p=!0;else if(u&&typeof u=="object"){const g=u;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),E=!0,p=g.deep??!1}else typeof u=="boolean"&&(p=u),E=!0;if(E){const g=c?.validate();m.push(g)}if(p){let g=null;const b={deep:!1};if(u===!0)g={name:"*"};else if(Array.isArray(u)&&u.length>0){const v=u;g={name:h=>h?v.indexOf(h)!==-1:!1}}else if(u!=null&&typeof u=="object"){const v=u;if(Array.isArray(v.include)&&v.include.length>0){const h=v.include;g={name:w=>w?h.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const h=v.exclude;g={name:w=>w?h.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const v=d.emitToChildren(g,"validate",b);Reflect.apply([].push,m,v)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let b=[];return g.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})},r.setValidateRule=u=>c?.setRule(u),r.setNameValidateRules=u=>{const m=u[i];m&&c?.setRule(m)};const d=Mt(null,o,i,r);return{broadcast:d,validateSchema:c}}const Se=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e,n)}px`:"";function ue(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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const o=Number(e);return isNaN(o)?0:o}const Ye="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function In(e,n,a={},o=!0,l=-1,r=-1,i=0,s=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=ue(a.footerHeight??n.footerHeight),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ue(c,r):e.height=ue(r)-ue(i,r)-ue(s,r),e.width=ue(a.width??n.width??0,l)}}function ya(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ue(l.top),o.safeAreaBottom=ue(l.bottom),o.safeAreaLeft=ue(l.left),o.safeAreaRight=ue(l.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;In(o,r,n,!0,i,s,c,d);const u=t.reactive(o),m=e.getForParent(Ye);m&&(o.height=_t(e,m),o.width=Ht(e,m),t.watch([()=>m.height,()=>m.width,()=>m.contentPadding,()=>m.headerMounted,()=>m.footerMounted],()=>{u.height=_t(e,m),u.width=Ht(e,m)}));const p=!m;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,g,b=-1,v=-1,h=0,w=0])=>{In(u,g,n,p,b,v,h,w)}),e.set(Ye,u),u}function jt(e){return e.get(Ye)}function St(e,n){if(n=n??e.get(Ye),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function vt(e,n){if(n=n??e.get(Ye),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function _t(e,n){if(n=n??e.get(Ye),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=St(e,n),o=vt(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Ht(e,n){return n=n??e.get(Ye),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Cr(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function kr(e){return!!e.getForParent(Ye)}var We=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(We||{});function Bn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ne(e,n,a=1,o){const l=ze();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(Bn(c,o))return c}const i=e.value;return Bn(i,o)?i:null}):t.computed(()=>{const r=e.value;return Bn(r,o)?r:l?.get(n)})}function $e(e){return Ne(e,"readonly",0,function(a){return oe(a)})}function De(e){return Ne(e,"disabled",0,function(a){return oe(a)})}function ie(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,i=>{if(typeof a=="function"){const s=a(i);s!==r.value&&(r.value=s)}else i!==r.value&&(r.value=i)}),r}const ba=new Map,Kt=new Map;let An=null;function Tr(e){An=e}function wa(e,n,a){if(a){let o=Kt.get(a);o||(o=new Map,Kt.set(a,o)),o.set(e,n)}else ba.set(e,n)}function Re(e,n,a){!a&&An&&(a=An(e)??void 0);let o=null;if(a){let l=Kt.get(a);l&&(o=l.get(n))}return o||(o=ba.get(n)),o}function $r(e,n){for(let a in e){const o=e[a];wa(a,o,n)}}function Dr(e){Kt.delete(e)}function Er(){return{top:0,left:0,bottom:0,right:0}}function xr(e=0,n=0){if(Je){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ue(e,o)-ue(n,o),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Nr{packages;installers;_version;get version(){return this._version}constructor(n,a,o){this.packages=n,this.installers=a,this._version=o}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)}),this.installers.forEach(r=>{r(n)}));const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=at();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ma(()=>{const s={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=d,this.initPageLayout(s,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=Ze({},Er(),n.safeAreaInset),i=xr(o,l),s=Ze({},i.pageLayout,n.pageLayout);a=a??at(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){Tr(n)}setAPI(n,a,o){wa(n,a,o)}getAPI(n,a,o){return Re(n,a,o)}batchSetAPI(n,a){$r(n,a)}clearScopeAPI(n){Dr(n)}getRootDomain(){return at()}}const Vr=[k.ElAffix,k.ElAlert,k.ElAutocomplete,k.ElAutoResizer,k.ElAvatar,k.ElBacktop,k.ElBadge,k.ElBreadcrumb,k.ElBreadcrumbItem,k.ElButton,k.ElButtonGroup,k.ElCalendar,k.ElCard,k.ElCarousel,k.ElCarouselItem,k.ElCascader,k.ElCascaderPanel,k.ElCheckTag,k.ElCheckbox,k.ElCheckboxButton,k.ElCheckboxGroup,k.ElCol,k.ElCollapse,k.ElCollapseItem,k.ElCollapseTransition,k.ElColorPicker,k.ElConfigProvider,k.ElContainer,k.ElAside,k.ElFooter,k.ElHeader,k.ElMain,k.ElDatePicker,k.ElDescriptions,k.ElDescriptionsItem,k.ElDialog,k.ElDivider,k.ElDrawer,k.ElDropdown,k.ElDropdownItem,k.ElDropdownMenu,k.ElEmpty,k.ElForm,k.ElFormItem,k.ElIcon,k.ElImage,k.ElImageViewer,k.ElInput,k.ElInputNumber,k.ElLink,k.ElMenu,k.ElSubMenu,k.ElMenuItem,k.ElMenuItemGroup,k.ElPageHeader,k.ElPagination,k.ElPopconfirm,k.ElPopover,k.ElPopper,k.ElProgress,k.ElRadio,k.ElRadioButton,k.ElRadioGroup,k.ElRate,k.ElResult,k.ElRow,k.ElScrollbar,k.ElSelect,k.ElOption,k.ElOptionGroup,k.ElSelectV2,k.ElSkeleton,k.ElSkeletonItem,k.ElSlider,k.ElSpace,k.ElSteps,k.ElStep,k.ElSwitch,k.ElTable,k.ElTableColumn,k.ElTableV2,k.ElTabs,k.ElTabPane,k.ElTag,k.ElTimePicker,k.ElTimeSelect,k.ElTimeline,k.ElTimelineItem,k.ElTooltip,k.ElTransfer,k.ElTree,k.ElTreeSelect,k.ElTreeV2,k.ElUpload],Ir=[k.ElInfiniteScroll,k.ElLoading,k.ElMessage,k.ElMessageBox,k.ElNotification,k.ElPopoverDirective],Br=e=>{Vr.forEach(n=>{let a=n.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,n)):e.use(n)}),Ir.forEach(n=>{e.use(n)})};function te(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ce={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Sa={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}},va={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}},Ca=[];for(const e in va)Ca.push(e);function he(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const Ar=Symbol.for("InnerPageScopeKey"),Or=(e,n)=>({inheritAttrs:!0,props:{...ge,...Sa,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(a,o){const l=Vn(a.name,a);if(l){const d=ya(l,a);he({getPageContentHeight:()=>_t(l,d),getPageContentWidth:()=>Ht(l,d),getPageHeaderHeight:()=>St(l,d),getPageFooterHeight:()=>vt(l,d)});const u=t.inject(Ar,!1);d&&u&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),s=t.getCurrentInstance(),c=(d,u=!1)=>{const m=s?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([d,u],[m,p])=>{if(d&&m){const E=t.toRaw(m),g=t.toRaw(d),b=g?Reflect.ownKeys(g):[];(E?Reflect.ownKeys(E):[]).forEach(h=>{b.includes(h)||(g[h]=[])}),c(g)}if(u&&p){const E=t.toRaw(p),g=t.toRaw(u),b=g?Reflect.ownKeys(g):[];(E?Reflect.ownKeys(E):[]).forEach(h=>{b.includes(h)||(g[h]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);c(d)}if(a.pureDataRules){const d=t.toRaw(a.pureDataRules);c(d,!0)}}),t.onBeforeUnmount(()=>{}),{classes:r,styles:i}}}),{componentName:Rr,create:Fr,scope:Hm}=te("page"),Lr=Fr(Or(Rr));function Mr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),title:""},[t.renderSlot(e.$slots,"default")],6)}const de=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},On=de(Lr,[["render",Mr]]);function Rn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-i}}const Pr=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const i=ze(),s=i?jt(i):null;s&&(s.headerMounted=!0);const c=t.computed(()=>{const C=e;return{[C]:!0,[`${C}--border`]:l.border,[`${C}--fixed`]:l.fixed,[`${C}--safe-area-inset-top`]:l.safeAreaInsetTop}}),d=l.height!==null&&l.height!==void 0?ue(l.height):null,u=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const L=Oe(l.padding??s.headerPadding);return Object.assign(C,L),d&&(s.headerHeight=d),C.height=s.headerHeight,C.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(L.top??0),C.height=C.height+C.safeAreaTop),C}if(d&&(C.height=d),l.padding){const L=Oe(l.padding);Object.assign(C,L)}return C}),m=t.ref(null),p=()=>{if(s&&m.value&&m.value.offsetParent!==null){if(!o){const C=Rn(m.value);s.headerAllHeight=C.height}return s.headerMounted=!0,!0}return!1};let E=null;t.onMounted(()=>{s&&(xn(p,50,5,50,!0),window.ResizeObserver&&m.value&&(E=new window.ResizeObserver(()=>{p()}),E.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,E&&(E.disconnect(),E=null))});const g=t.computed(()=>{const C={};return u.value.height!==null&&u.value.height!==void 0&&(C.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(C.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(C.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(C.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(C.paddingBottom=`${u.value.bottom}px`),C}),b=t.computed(()=>{const C={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(C.top=`${u.value.safeAreaTop}px`),C}),v=t.computed(()=>{const C={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(C.top=`${u.value.safeAreaTop}px`),C}),h=t.computed(()=>!!l.leftShow),w=t.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),f=t.computed(()=>l.titleShow?l.title||l.titleIcon||r.slots.titleIcon||r.slots.default:!1),I=t.computed(()=>l.rightShow?l.rightText||l.rightIcon||r.slots.rightIcon||r.slots.right:!1),B=t.computed(()=>l.leftIcon),O=t.computed(()=>B.value||r.slots.leftIcon),R=t.computed(()=>l.titleIcon),V=t.computed(()=>l.titleIcon||r.slots.titleIcon),$=t.computed(()=>l.rightIcon),D=t.computed(()=>l.rightIcon||r.slots.rightIcon);function P(){r.emit("back")}function z(){r.emit("click-title")}function S(){r.emit("click-right")}function x(){r.emit("click-right-text")}return{headerBarRef:m,classes:c,styles:g,mHeaderShow:w,leftStyles:b,rightStyles:v,mLeftShow:h,mTitleShow:f,mRightShow:I,mLeftIcon:B,hasLeftIcon:O,mTitleIcon:R,hasTitleIcon:V,mRightIcon:$,hasRightIcon:D,handleLeft:P,handleCenter:z,handleRight:S,handleRightText:x}}}),{componentName:qr,create:zr,scope:jr}=te("header-bar"),_r=zr(Pr(qr,jr,ke.ArrowLeft)),Hr={key:1,class:"fox-header-bar__title"},Kr={key:0,class:"title-text"};function Yr(e,n,a,o,l,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,ref:"headerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[1]||(n[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",Hr,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",Kr,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[3]||(n[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const Ln=de(_r,[["render",Yr]]);function Wr(e,n,a=!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(o,l){const r=ze(),i=r?jt(r):null,s=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${o.align}`]:!0,[`${g}--border`]:o.border,[`${g}--fixed`]:o.fixed,[`${g}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ue(o.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const b=Oe(o.padding??i.footerPadding);return Object.assign(g,b),c&&(i.footerHeight=c),g.height=i.footerHeight,g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.height=g.height+g.safeAreaBottom,g.bottom=g.safeAreaBottom+(b.bottom??0)),g}if(c&&(g.height=c),o.padding){const b=Oe(o.padding);Object.assign(g,b)}return g}),u=t.ref(null),m=()=>{if(i&&u.value&&u.value.offsetParent!==null){if(!a){const g=Rn(u.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{i&&(xn(m,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{m()}),p.observe(u.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const E=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Se(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Se(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Se(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Se(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Se(d.value.bottom)),g});return{footerBarRef:u,classes:s,styles:E}}}}const{componentName:Ur,create:Gr,scope:Km}=te("footer-bar"),Xr=Gr(Wr(Ur));function Zr(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"footerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Mn=de(Xr,[["render",Zr]]);function Jr(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=ze(),l=t.computed(()=>({[e]:!0})),r=o?jt(o):null,i=t.computed(()=>{const d={};if(o&&r){if(a.padding){const E=Oe(a.padding);Object.assign(r.contentPadding,E)}const u=St(o,r),m=vt(o,r);let p="";if(r.contentHeight?p=`${r.contentHeight}`:p=`${r.height}px`,r.contentPadding,d.height=p,r.contentPadding.top||u>0){const E=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${u+E}px`}if(r.contentPadding.bottom||m>0){const E=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${m+E}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(a.padding){const u=Oe(a.padding);u.left&&(d.paddingLeft=`${u.left}px`),u.top&&(d.paddingTop=`${u.top}px`),u.right&&(d.paddingRight=`${u.right}px`),u.bottom&&(d.paddingBottom=`${u.bottom}px`)}return d}),s=t.ref(null),c=()=>{if(r&&s.value){const d=Fn(s.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>St(o),()=>vt(o)],([])=>{c()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:Qr,create:ei,scope:Ym}=te("content"),ti=ei(Jr(Qr));function ni(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Pn=de(ti,[["render",ni]]),lt="GroupStateKey",ka=Symbol.for("GroupScopeKey");function Yt(){return t.inject(ka,!1)}function Wt(e=!0){t.provide(ka,e)}function oi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Dn(l)||(e[o]=l)})}function ai(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};oi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(lt,r),r}function qn(e,n,a=-1,o=-1,l=!1,r,i,s){const c=e.get(lt);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const u=ue(r),m=ue(i);s||(s=d.type??"grid");const p=()=>{const E=n===""||n===-1,g=ue(n);let b=ce(a);const v=ue(o);if(!E){let f=(g-(b-1)*v)/b;for(;m!==-1&&f>m;)b++,f=(g-(b-1)*v)/b;for(;u!==-1&&b>1&&f<u;)b--,f=(g-(b-1)*v)/b}let h=!1;const w=c.layout;w.value.width=n,w.value.column!==b&&(w.value.column=b,h=!0),w.value.gutter!==v&&(w.value.gutter=v,h=!0),w.value.type!==s&&(w.value.type=s,h=!0),h&&t.triggerRef(w)};if(l)p();else{const E=++c.passport;setTimeout(()=>{E===c.passport&&p()},50)}}function Ut(e,n=!1){let a;return n?a=e.getForParent(lt):a=e.get(lt),a.layout}function Gt(e,n=!1){let a;return n?a=e.getForParent(lt):a=e.get(lt),a.order}function Ta(e,n=1){if(n==="stretch")return-1;const a=ce(n);return a===-1?100:100*a/e}function Xt(e,n,a=1,o=0,l){const r={};let i=0;l?i=ue(l):i=Ta(n.column,a),i>0&&(r.width=`${i}%`);const s=Ta(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Zt(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=ce(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=ce(o)%n.column;let i=(e.index+r)%n.column,s=i+l;return s>n.column?(i=0,s=i+l,e.index=e.index+(n.column-i)+l):e.index=e.index+r+l,r>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const $a=Symbol("RollingStateKey");function li(e){t.provide($a,e)}function ri(){return t.inject($a,null)}function zn(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function ii(e){let n=zn(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=zn(a),document.body.removeChild(a)}return n}function si(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const ci={...ge,...Sa,...va};function ui(e,n,a){return{props:ci,emits:["update:collapse"],setup(o,l){const r=Vn(o.name,o,Ca),i=ai(r,{type:o.type}),s=Yt();Wt(!0);const c=o.rollingDisplay?ri():null,d=t.ref(null),u=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>s&&r?Ut(r,!0).value:null),p=t.getCurrentInstance(),E=(A,H=!1)=>{const M=p?.proxy;M&&typeof M.setNameValidateRules=="function"&&M.setNameValidateRules(A,!0,H)};t.watch([()=>o.rules,()=>o.pureDataRules],([A,H],[M,K])=>{if(A&&M){const Y=t.toRaw(M),X=t.toRaw(A),re=X?Reflect.ownKeys(X):[];(Y?Reflect.ownKeys(Y):[]).forEach(Ie=>{re.includes(Ie)||(X[Ie]=[])}),E(X)}if(H&&K){const Y=t.toRaw(K),X=t.toRaw(H),re=X?Reflect.ownKeys(X):[];(Y?Reflect.ownKeys(Y):[]).forEach(Ie=>{re.includes(Ie)||(X[Ie]=[])}),E(X,!0)}},{deep:!0});const g=e,b=t.computed(()=>{const A={};A.height=L.value;const H=s?Gt(r,!0):null;if(m.value&&H){if(m.value.type==="grid"){const M=Zt(H,m.value,o.span,o.offset);Object.assign(A,M)}else if(m.value.type==="flow"){const M=Xt(H,m.value,o.span,o.offset,o.width);Object.assign(A,M)}}else if(o.width){const M=Se(o.width);A.width=M}return A}),v=t.computed(()=>{const A=i.layout.value.type;return A==="grid"||A==="flow"?{[`${g}--${A}`]:!0,[`${g}--${A}-justify-${o.justify}`]:!0,[`${g}--${A}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${A}`]:!0,[`${g}--gutter`]:!0}}),h=t.computed(()=>{if(i.layout.value.type==="grid"){let H="";if(o.columnWidth)H=`repeat(auto-fill, ${o.columnWidth})`;else{const M=si($.value,i.layout.value.column,i.layout.value.gutter);H=`repeat(${i.layout.value.column}, ${M})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":H}}}),w=t.toRef(o,"title"),f=t.toRef(o,"gutter"),I=t.toRef(o,"column"),B=t.computed(()=>s||u.value?!0:oe(o.isWrap)),O=[],R=A=>{O.push(A)},V=()=>{let A=O.length;O.splice(0,A)},$=t.ref(-1),D=A=>{const H=Fn(A).width;H>0&&H!==$.value&&($.value=H)};qn(r,$.value,I.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([$,I,f],([A,H,M])=>{i.order.index=0,qn(r,A,H,M,!1,o.minItemWidth,o.maxItemWidth,o.type)});const P=t.computed(()=>N.value?o.expandText??"":o.collapseText??""),z=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),S=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!N.value,"is-collapse":N.value})),x=t.ref(),C=t.ref(),L=t.computed(()=>q.value||Se(o.height)||""),N=t.ref(!1),q=t.ref(""),T=t.ref(!1);let F=-1;const _=(A,H=!0)=>{const M=x.value;if(M&&N.value!==A){if(F=F===-1?ii(M):F,T.value=!0,H)if(M.style["will-change"]="height",M.ontransitionend=function(){M.ontransitionend=null,this.style["will-change"]="auto",A||(q.value="",T.value=!1)},A){let K=0;o.collapseHeight?K=o.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(K=C.value.offsetHeight),q.value=`${F}px`,t.nextTick(()=>{q.value=`${K}px`})}else q.value=`${F}px`;else if(A){let K=0;o.collapseHeight?K=o.collapseHeight:C.value&&C.value.classList.contains(`${e}__header`)&&(K=C.value.offsetHeight),q.value=`${K}px`}else T.value=!1,q.value=`${F}px`;N.value=A,l.emit("update:collapse",A)}};t.watch(()=>o.collapse,A=>{_(A)});const U=()=>{J()},J=A=>{A=A??!N.value,_(A)};he({toggleCollapse:J,doLayout:()=>{O[0]&&(D(O[0]),qn(r,$.value,I.value,f.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let le=null,se=!0;const Z=A=>{if(o.rules){const H=t.toRaw(o.rules);E(H)}if(o.pureDataRules){const H=t.toRaw(o.pureDataRules);E(H,!0)}if(Je&&(A&&_(oe(o.collapse),!1),o.autoLayout&&Array.isArray(O)&&O.length>0)){const H=O[0];D(H),window.ResizeObserver&&(le=new window.ResizeObserver(()=>{D(H)}),le.observe(H))}},ne=()=>{le?.disconnect(),le=null},j=!u.value||c?.acquire();j&&(d.value=u.value?!0:null),t.onMounted(()=>{if(j&&(Z(se),se=!1),u.value&&c){let A=null,H=c.initialHeight;c.observe(x.value,M=>{if(M!==d.value)if(M)d.value=!0,N.value||(q.value=""),A=setTimeout(()=>{A=null,d.value!==!1&&(Z(se),se=!1)},100);else{if(A!==null&&clearTimeout(A),d.value=!1,!N.value)if(se)q.value=c.initialHeight;else{let K=zn(x.value);K<=0?q.value=H:(q.value=`${K}px`,H=q.value)}se||ne()}})}}),t.onUnmounted(()=>{le?.disconnect(),c&&c.unobserve(x.value)});const W=(A="right")=>{const H=[];if(P.value){const Y={class:z.value},X=t.h("span",Y,[P.value]);H.push(X)}const M={class:S.value},K=a(o.collapseIcon,M);return K&&H.push(K),H.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${A}`]:!0},onClick:U},H):null},G=(A,H,M,K)=>{const Y={...v.value};return H===0&&(Y[`${g}__first`]=!0),M>=K-1&&(Y[`${g}__last`]=!0),t.h("div",{ref:R,key:`${H}`,class:Y,style:h.value},A)};return()=>{if(u.value&&d.value!==!0){const Y=o.tag||"div";return t.h(Y,{ref:x,prop:o.name,class:{[`${g}`]:!0,"is-collapse":T.value},style:b.value},[])}i.order.index=0;const A=[];let H=0;if(l.slots.header){const Y={key:`${H++}`,ref:C,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},X=t.h("div",Y,[l.slots.header()]);A.push(X)}else{const Y=[],X=o.collapsePosition==="left";if(X&&o.showCollapse){const re=W("left");re&&Y.push(re)}if(w.value){if(o.showMark){const fe={class:{[`${g}__header-mark`]:!0}};o.markColor&&(fe.style={background:o.markColor});const Ie=t.h("div",fe);Y.push(Ie)}const re=t.h("div",{class:{[`${g}__header-title`]:!0}},[w.value]);Y.push(re)}if(l.slots.toolbar&&Y.push(l.slots.toolbar()),!X&&o.showCollapse){const re=W("right");re&&Y.push(re)}if(Y.length>0){const re={key:`${H++}`,ref:C,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},fe=t.h("div",re,Y);A.push(fe)}}V();const M=l.slots.default?l.slots.default():[],K=i.layout.value.type;if(K==="grid"){const Y=G(M,H++,0,M.length);A.push(Y)}else if(K==="flow"){const Y=G(M,H++,0,M.length);A.push(Y)}else for(let Y=0;Y<M.length;Y++){const X=M[Y],re=G([X],H++,Y,M.length);A.push(re)}if(B.value){const Y=o.tag||"div";return t.h(Y,{ref:x,prop:o.name,class:{[`${g}`]:!0,"is-collapse":T.value},style:b.value},[A])}else return A}}}}const{componentName:di,create:fi,scope:mi}=te("group"),jn=fi(ui(di,mi,(e,n)=>(e=e??ke.ArrowUp,t.h(k.ElIcon,n,{default:()=>[t.h(e)]}))));function hi(e){return e===window}const gi=/matrix\((.+)\)/,Da=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(hi(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,i=0,s=0,c=0;for(l=n;l!==document;){i+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const u=gi.exec(d);if(u){let p=u[1].split(/\s*,\s*/);p.length==6&&(s+=Number(p[4]),c+=Number(p[5]))}}l=l.parentNode}return a-=r,o-=i,a+=s,o+=c,{x:a,y:o}};function pi(e){return e===window}const Ue=e=>{const n=t.unref(e);if(pi(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class yi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class bi{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new yi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Ea=new bi,xa={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},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:wi,create:Si}=te("price"),vi=Si({props:{...xa},setup(e){const n=t.computed(()=>({[wi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Be(e.price)==0?"":Ft(e.price,e.decimalLength,!0,ce(e.digits),e.separator)),l=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),Ci=["innerHTML"],ki=["innerHTML"];function Ti(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ci)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ki)):t.createCommentVNode("",!0)],2)}const Jt=de(vi,[["render",Ti]]),{componentName:Qt,create:$i}=te("hint-text"),Di=$i({components:{Price:Jt},props:{...xa,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.ref(!0),i=t.ref({x:0,y:0}),s=t.ref({x:0,y:0}),c=t.ref(0),d=t.ref(0),u=t.ref(e.placement),m=t.computed(()=>({[Qt]:!0})),p=t.ref(null),E=(V,$,D=10)=>{if(!Je||$===!1||!V)return;r.value=!0;const P=Ue(e.reference);c.value=P.width,d.value=P.height,setTimeout(()=>{if(!p.value||!e.reference||e.reference.offsetParent===null)return;const z=Da(e.reference),S=document.documentElement.clientWidth||document.body.clientWidth,x=p.value.offsetWidth,C=p.value.offsetHeight;z.y-C>=0?(u.value="top",i.value.y=z.y-C-10-4,s.value.y=C):(u.value="bottom",i.value.y=z.y+d.value+10,s.value.y=-10);const L=z.x+x-S;L<0?(i.value.x=z.x,s.value.x=20):(i.value.x=z.x-L,s.value.x=L+20),r.value=!1},D)},g=wt(()=>{E(e.message,e.visible)},10),b=t.computed(()=>e.visible&&v.value),v=t.ref(!0),h=wt(V=>{const $=V[0];$&&(v.value=$.isIntersecting)},10),w=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([V,$])=>{E(V,$)}),t.onMounted(()=>{E(e.message,e.visible),Ea.watch(e.reference,g),w.observe(e.reference)}),t.onBeforeMount(()=>{Ea.unwatch(e.reference,g),w.unobserve(e.reference),w.disconnect()});const f=t.computed(()=>{const V={"min-width":Se(c.value)};return r.value?V.visibility="hidden":V.transform=`translate(${i.value.x}px, ${i.value.y}px)`,V}),I=t.computed(()=>({[`${Qt}__content`]:!0})),B=t.computed(()=>({})),O=t.computed(()=>({[`${Qt}__arrow`]:!0,[`${Qt}__arrow-${e.placement}`]:!0})),R=t.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:b,tipRef:p,classes:m,styles:f,textClasses:I,textStyles:B,arrowClasses:O,arrowStyles:R}}}),Ei={key:1,class:"text"};function xi(e,n,a,o,l,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Ei,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const Ct=de(Di,[["render",xi]]);class Na{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 _n={},Ni=new Na,rt=new Map,Hn=e=>{if(e){const n=document.getElementById(e);rt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of rt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}rt.clear()}},Vi=e=>{const n=document.getElementById(e.id);if(n){const a=rt.get(e.id);a?e={..._n,...a,...e}:e={..._n,...e};const o=t.createVNode(Ct,e);return t.render(o,n),e.id}},Ii=e=>{e.unmount=Hn;let n;if(e.id){if(n=e.id,rt.has(n))return Vi(e)}else n=`hinttext_${Ni.get()}`;e={..._n,...e},e.id=n,rt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ct,e);return t.render(o,a),document.body.appendChild(a),n},Bi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},en={show(e,n,a={},o=!0){return o&&Hn(),Bi(n),Ii({...a,message:n,reference:e})},hide(e){Hn(e)},install(e){e.config.globalProperties.$hintText=en}},{componentName:Va,create:Ai}=te("item"),Oi=Ai({inheritAttrs:!0,props:{...ge,...Ce},emits:["appear","disappear"],setup(e,n){const a=e.prop??n.attrs.name;we({componentName:Va,validate:!1},a);const o=ze(),l=Yt();Wt(!1);const r=t.computed(()=>l&&o?Ut(o,!1).value:null),i=Va,s=t.ref(null),c=t.computed(()=>{const Z={[i]:!0,[`${i}__gutter`]:r.value&&r.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(Z[e.errorMarkClass]=!!P.value,Z[e.warnMarkClass]=!!$.value,Z[e.infoMarkClass]=!!R.value,typeof s.value=="function"){const ne=s.value(a);Z[ne]=!0}else if(typeof s.value=="string"){const ne=s.value;Z[ne]=!0}return Z}),d=t.computed(()=>{const Z={},ne=l&&o?Gt(o,!1):null;if(r.value&&ne)if(r.value.type==="grid"){const j=Zt(ne,r.value,e.span,e.offset);Object.assign(Z,j)}else if(r.value.type==="flow"){const j=Xt(ne,r.value,e.span,e.offset,e.width);Object.assign(Z,j)}else return e.width&&(Z.width=Se(e.width)),Z;else e.width&&(Z.width=Se(e.width));return Z}),u=t.ref(null),m=t.computed({get:()=>u.value??oe(e.isRequired),set:Z=>{u.value=Z}}),p=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),E=Ne(t.toRef(e,"labelPosition"),"labelPosition",We.Near),g=t.computed(()=>E&&E.value==="top"?"top":E&&E.value==="right"?"right":"left"),b=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),v=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),h=Ne(t.toRef(e,"labelWidth"),"labelWidth",We.Near),w=t.computed(()=>h&&h.value?{width:Se(h.value)}:{}),f=t.computed(()=>({"label--string":!0,"label--required":m.value})),I=t.computed(()=>({content:!0,[e.contentClass]:!0})),B=t.computed(()=>({...e.contentStyle})),O=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});he({setRequired(Z){m.value=Z},setErrorTip(Z){O.errorTip=Z},setErrorIcon(Z){O.errorIcon=Z},setWarnTip(Z){O.warnTip=Z},setWarnIcon(Z){O.warnIcon=Z},setInfoTip(Z){O.infoTip=Z},setInfoIcon(Z){O.infoIcon=Z},setCustomClassName(Z){s.value=Z}});const R=t.computed(()=>e.infoTip||O.infoTip),V=t.computed(()=>e.infoIcon||O.infoIcon),$=t.computed(()=>e.warnTip||O.warnTip),D=t.computed(()=>e.warnIcon||O.warnIcon),P=t.computed(()=>e.errorTip||O.errorTip),z=t.computed(()=>e.errorIcon||O.errorIcon),S=t.computed(()=>P.value?"error":$.value?"warn":R.value?"info":""),x=t.computed(()=>S.value.length>0),C=t.computed(()=>S.value==="error"?P.value:S.value==="warn"?$.value:S.value==="info"?R.value:""),L=t.computed(()=>S.value==="error"?z.value:S.value==="warn"?D.value:S.value==="info"?V.value:null),N=t.computed(()=>{let Z={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?Z[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?Z[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(Z[`${e.infoClass}`]=!0),Z}),q=t.computed(()=>{let Z={};return E&&E.value==="top"||!p.value?Z["padding-left"]="0px":h&&h.value&&(Z["padding-left"]=Se(h.value)),Z}),T=()=>t.h(L.value,{width:12,height:12}),F=t.computed(()=>n.slots.fixedTip),_=t.computed(()=>({[`${i}__fixed-tip`]:!0})),U=t.ref();let J="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([Z,ne,j,W])=>{U.value&&(Z&&!ye(ne)?J?en.show(U.value,ne,{...W,id:J,type:j},!0):J=en.show(U.value,ne,{...W,type:j},!0):en.hide(J))});let Q=null;const le=()=>{Q||!U.value||(Q=new IntersectionObserver(Z=>{let ne=!1;for(let j of Z)if(j.intersectionRatio>0){ne=!0,ne&&n.emit("appear",j);break}ne||n.emit("disappear")}),Q.observe(U.value))},se=()=>{!Q||!U.value||(Q.unobserve(U.value),Q=null)};return t.watch(()=>oe(e.appearListen),Z=>{Z?le():se()}),t.onMounted(()=>{oe(e.appearListen)&&le()}),t.onUnmounted(se),{classes:c,styles:d,mainClasses:b,hasLabel:p,labelClasses:v,labelStyles:w,labelStringClasses:f,contentClasses:I,contentStyles:B,contentRef:U,hasTip:x,mTip:C,mIcon:L,renderIcon:T,tipClasses:N,tipStyles:q,hasFixedTip:F,fixedTipClasses:_}}}),Ri=["prop"],Fi={key:0,class:"fox-item__tip--icon"},Li={class:"fox-item__tip--text"};function Mi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",Fi,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",Li,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ri)}const pe=de(Oi,[["render",Mi]]);function Pi(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=ze(),r=Yt();Wt(!1);const i=t.computed(()=>r&&l?Ut(l,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const u={},m=r&&l?Gt(l,!1):null;if(i.value&&m)if(i.value.type==="grid"){const p=Zt(m,i.value,a.span,a.offset);Object.assign(u,p)}else if(i.value.type==="flow"){const p=Xt(m,i.value,a.span,a.offset,a.width);Object.assign(u,p)}else return a.width&&(u.width=Se(a.width)),u;else a.width&&(u.width=Se(a.width));return u});return()=>{const u={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",u,o.slots.default()):t.h("div",u)}}}}const{componentName:qi,create:zi,scope:Um}=te("slot-item"),Kn=zi(Pi(qi));function ji(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],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),i=ze(),s=Yt();Wt(!1);const c=t.computed(()=>{const d={};if(s&&i){const u=Ut(i,!1),m=Gt(i,!1);if(u.value&&m)if(u.value.type==="grid"){const p=Zt(m,u.value,a.span,a.offset);Object.assign(d,p)}else if(u.value.type==="flow"){const p=Xt(m,u.value,a.span,a.offset,a.width);Object.assign(d,p)}else a.width&&(d.width=Se(a.width))}else a.width&&(d.width=Se(a.width));return d});return()=>{const d=[];if(o.slots.default){const m=o.slots.default();if(a.divide)for(let p=0;p<m.length;p++){if(p>0){const E=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(E)}d.push(m[p])}else Reflect.apply([].push,d,m)}const u={class:r.value,style:c.value};return t.h("div",u,d)}}}}const{componentName:_i,create:Hi,scope:Gm}=te("row-item"),Yn=Hi(ji(_i)),je=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(o=>{typeof o=="string"&&o.indexOf("data-fox")!==0&&(n[o]=e[o])}),n},Ia={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Ki(e,n,a){return{props:{...ge,...Ce,...Ia},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0,[`${p}__disabled`]:r.value,[`${p}__readonly`]:i.value})),g=S=>{m.value=S,s("update:modelValue",S),s("input",S)},b=S=>{s("change",S)};let v=ie(o,"hintText"),h=t.ref(!1);const w=S=>{let C=S.target.value;u.value=!0,ye(v.value)||(h.value=!0),s("focus",C,S)},f=S=>{setTimeout(()=>{h.value&&(h.value=!1),u.value=!1},0);let C=S.target.value;o.maxLength&&C.length>Number(o.maxLength)&&(C=C.slice(0,Number(o.maxLength))),s("blur",C,S)},I=()=>{s("clear","")},B=t.ref(!1);let O=null;const R=()=>{o.showTooltip&&B.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{B.value=!0},150))},V=()=>{O&&(clearTimeout(O),B.value=!1,O=null)},$=t.computed(()=>B.value||h.value),D=t.computed(()=>B.value?m.value:v.value),P=t.computed(()=>Be(o.unit)>0),z=t.ref();return he({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const x={...je(l.attrs),ref:z,class:E.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:I,onChange:b,onInput:g,onFocus:w,onBlur:f,onMouseover:R,onMouseleave:V},C={};l.slots.prepend&&(C.prepend=l.slots.prepend),l.slots.append&&(C.append=l.slots.append),l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.suffix?C.suffix=l.slots.suffix:P.value&&(C.suffix=()=>[o.unit]);const L=[],N=t.h(k.ElInput,x,C);L.push(N);const q={default:()=>L};l.slots.default&&(q.label=l.slots.default),l.slots.default&&(q.fixedTip=l.slots.fixedTip);const F={...ve(o,Ia),hintText:D.value,hintVisible:$.value,prop:`${o.prop}_item`};return t.h(a,F,q)}}}}const{componentName:Yi,create:Wi,scope:Ui}=te("input-item"),Wn=Wi(Ki(Yi,Ui,pe)),Un={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:{}}},Ba=2e3;let Aa=Ba;const Gi=(e,n)=>({components:n,props:{...Un},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),i=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{a.zIndex!==Ba&&(Aa=Number(a.zIndex)),o("update:visible",!0),l.zIndex=++Aa,a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},u=b=>{o("click-pop",b)},m=b=>{b.stopPropagation(),o("click-close-icon",b),o("update:visible",!1)},p=b=>{o("click-overlay",b),a.closeOnClickOverlay&&o("update:visible",!1)},E=b=>{o("opend",b)},g=b=>{o("closed",b)};return t.watch(()=>a.visible,b=>{a.visible?c():d()}),t.watchEffect(()=>{l.closed=a.closeable}),{...t.toRefs(l),popStyle:i,transitionName:s,classes:r,onClick:u,onClickCloseIcon:m,onClickOverlay:p,onOpened:E,onClosed:g}}}),Oa={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},Gn={...Un,...Oa,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let kt=0;const Ra="fox-overflow-hidden",Fa=()=>Je?document.body:{classList:[]},Xi=e=>[()=>{if(e())try{!kt&&Fa().classList.add(Ra),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&Fa().classList.remove(Ra)}catch{}}],Zi={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:Ji,create:Qi}=te("overlay"),es=Qi({props:{...Zi},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Xi(()=>e.lockScroll),l=t.computed(()=>({[Ji]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?a():o()}),{classes:l,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ts(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const Tt=de(es,[["render",ts]]),ns=["aria-labelledby"],os=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),as=[os],ls=t.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}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},as,14,ns))}}),rs=["aria-labelledby"],is=t.createElementVNode("path",{d:"M2185.74 479.429a117.992 117.992 0 1 0-162.829-170.852c-284.772 271.204-732.314 271.204-1017.087 0A118.05 118.05 0 0 0 842.996 479.43c375.98 358.045 966.705 358.045 1342.744 0",fill:"currentColor","fill-opacity":"0.9"},null,-1),ss=[is],cs=t.defineComponent({__name:"JoySmile",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}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 3072 1024","aria-labelledby":e.name,role:"presentation"},ss,14,rs))}}),us=["aria-labelledby"],ds=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),fs=[ds],ms=t.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}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},fs,14,us))}}),hs=["aria-labelledby"],gs=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),ps=[gs],ys=t.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}){const a=e,o=n,l=c=>{o("click",c)},r=c=>{if(c)return isNaN(Number(c))?String(c):c+"px"},i=t.computed(()=>{const c="fox-icon";return{[c]:!0,[c+"-"+a.name]:a.name,[a.class]:!!a.class}}),s=t.computed(()=>{const c={};return c.height=r(a.height)??r(a.size),c.width=r(a.width)??r(a.size),c.color=a.color,c});return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(s.value),onClick:l,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ps,14,hs))}}),{componentName:bs,create:ws}=te("popup"),Ss=ws(Gi(bs,{[Tt.name]:Tt,Close:ms}));function vs(e,n,a,o,l,r){const i=t.resolveComponent("fox-overlay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const _e=de(Ss,[["render",vs]]),La=10;function Cs(e,n){return e>n&&e>La?"horizontal":n>e&&n>La?"vertical":""}function Xn(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),i=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(0),u=t.ref(""),m=()=>u.value==="vertical",p=()=>u.value==="horizontal",E=()=>{i.value=0,s.value=0,c.value=0,d.value=0,u.value="",a.value=0};return{move:v=>{const h=v.touches[0];i.value=h.clientX-e.value,s.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY,c.value=Math.abs(i.value),d.value=Math.abs(s.value),o.value=Date.now()-a.value,u.value||(u.value=Cs(c.value,d.value))},start:v=>{E(),e.value=v.touches[0].clientX,n.value=v.touches[0].clientY,a.value=Date.now()},reset:E,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:i,deltaY:s,offsetX:c,offsetY:d,direction:u,isVertical:m,isHorizontal:p}}let Ma=36;function ks(){return Ma}function Ts(e){Ma=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Zn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function $s(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function et(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Pa(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Ds=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Es(){const e=t.getCurrentInstance();return new Ds(e.proxy)}function qa(e,n,a){const o=Fe(e,n),l=Fe(e,a);if(o!==l)return!1;const r=et(e,n),i=et(e,a);return r===i}function xs(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const s=n[i];let d=a[i].findIndex(u=>{if(r==="text")return Fe(e,u)===s;if(r==="value"){let m=et(e,u);return m==null&&(m=Fe(e,u)),m===s}else if(r==="item")return qa(e,u,s)});if(d==-1)break;l.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){const c=n[s];let d=i.findIndex(m=>{if(r==="text")return Fe(e,m)===c;if(r==="value"){let p=et(e,m);return p==null&&(p=Fe(e,m)),p===c}else if(r==="item")return qa(e,m,c)});if(d==-1)break;l.push(d);const u=Zn(e,i[d]);if(!Array.isArray(u))break;i=u}}return l}function za(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const s=a[i];let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[c],u=Fe(e,d);if(l.texts.push(u),l.items.push(d),r==="text")l.values.push(u);else if(r==="value"){let m=et(e,d);m==null&&(m=u),l.values.push(m)}else l.values.push(d)}else{let i=a[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],u=Fe(e,d),m=Object.assign({},d);if(m.children=null,l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let p=et(e,d);p==null&&(p=u),l.values.push(p)}else l.values.push(m);if(!Array.isArray(d.children))break;i=d.children}}return l}function ja(e){return{text:e,value:e}}const Ns=15,Vs=300,Is=200,{create:Bs}=te("picker-column");function As(e){e.stopPropagation()}function Os(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&As(e)}const Rs=Bs({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...Oa},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${ce(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=V=>V>=m.currIndex+8||V<=m.currIndex-8,s=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-m.rotation*V}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),u=t.ref(null),m=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=t.toRef(e,"source"),E=V=>Fe(e,V),g=V=>et(e,V),b=Xn(),v=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},h=(V,$=!1,D=!1)=>{if(m.currIndex=V,$){const P=()=>{m.moving=!1,n("update:modelValue",V),n("change",V)};D?m.transitionEndTrigger=P:P()}},w=(V,$,D)=>{let P=V+m.startDistance;if($==="end"){const z=-(p.value.length-1)*e.itemHeight;P<z&&(P=z,(!D||D<=0)&&(D=e.swipeDuration)),P>0&&(P=0,(!D||D<=0)&&(D=e.swipeDuration));let S=Math.abs(Math.round(-P/e.itemHeight));const x=-S*e.itemHeight,C=`${(S+1)*m.rotation}deg`,L=D?D>0:!1;h(S,!0,L),f(x,$,D,C)}else{let z=(-P/e.itemHeight+1)*m.rotation;const S=(p.value.length+1)*m.rotation,x=0;if(z=Math.min(Math.max(z,x),S),e.threeDimensional&&(z<x||z>S))return;f(P,null,void 0,`${z}deg`)}},f=(V=0,$,D=Is,P)=>{$==="end"?m.scrollTime=D:m.scrollTime=0,m.deg=P,m.scrollDistance=V},I=(V,$)=>(V=Math.abs(V/$)/.003*(V<0?-1:1),V),B=V=>{if(!e.readonly){if(m.moving){const $=u.value,{transform:D}=window.getComputedStyle($);m.scrollDistance=+D.slice(7,D.length-1).split(", ")[5]}m.startDistance=m.scrollDistance,b.start(V),m.transitionEndTrigger=null}},O=V=>{e.readonly||(m.moving=!0,b.move(V),b.isVertical()&&(m.moving=!0,Os(V,!0)),w(b.deltaY.value,"",0))},R=()=>{if(e.readonly)return;const V=b.deltaY.value,$=b.duration.value;if($<Vs&&Math.abs(V)>Ns){const P=I(V,$);w(P,"end",e.swipeDuration)}else w(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(m.currIndex!==V){m.currIndex=V;const $=-V*e.itemHeight;w($)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;w(V)}),{classes:a,styles:o,contentClasses:l,source:p,itemText:E,itemValue:g,...t.toRefs(m),roller:u,getItemText:Fe,onTouchStart:B,onTouchMove:O,onTouchEnd:R,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:d,stopMomentum:v}}}),Fs={key:1,class:"fox-picker__item-tile"};function Ls(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Fs,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const _a=de(Rs,[["render",Ls]]),{create:Ms,componentName:Ps,scope:qs}=te("picker"),zs=Ms({components:{[_a.name]:_a,[_e.name]:_e},props:{...Gn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=Ee.useFoxI18n(qs),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(ks());t.watch(()=>e.visible,D=>{D&&i.value<=0&&setTimeout(()=>{if(r.value){const P=Ue(r.value);i.value=P.height,Ts(i.value)}},50)});const s=t.computed(()=>({[Ps]:!0})),c=Es(),d=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([D,P])=>{if(D){let z=await c.load("select",D,P);if(z.length>0){let S=z[0];if(Array.isArray(S)){if(typeof S[0]=="string"){let x=z,C=[];x.forEach(L=>{let N=L.map(q=>ja(q));C.push(N)}),u.value=C}else u.value=z;d.value="multipleColumn"}else if(typeof S=="string"){let x=z,C=[],L=x.map(N=>ja(N));C.push(L),u.value=C,d.value="singleColumn"}else{const x=Zn(e,S);Array.isArray(x)?(d.value="cascade",u.value=[z]):(d.value="singleColumn",u.value=[z])}}else u.value=[]}},{immediate:!0});const m=t.ref([]),p=t.ref(e.modelValue),E=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([D,P])=>{let z=xs(e,D,P,d.value);if(!Pe(z,g.value)){g.value=z;let S=za(e,z,P,d.value);S&&(m.value=S.texts,n("update:text",m.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,D=>{b.value=D});const v=D=>{let P=Pa(e,D);return Ae(P)?P.defaultIndex??0:0},h=D=>{if(e.readonly===!0)return!0;let P=Pa(e,D);return Ae(P)?P.readonly??!1:!1},w=(D,P)=>{let z=g.value;z[D]=P;for(let x=0;x<D;x++)z[x]==null&&(z[x]=v(x));if(d.value==="cascade")for(let x=D+1;x<I.value.length;x++){let C=v(x);x<z.length?z[x]=C:z.push(C)}else for(let x=z.length;x<I.value.length;x++){let C=v(x);z.push(C)}g.value=z;let S=za(e,z,u.value,d.value);S&&(m.value=S.texts,p.value=S.values,E.value=S.items)},f=D=>D<g.value.length?g.value[D]:v(D),I=t.computed(()=>{if(u.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return u.value;let D=[],P=0,z=u.value[0],S=0;for(;;){let x=z.map(N=>{let q=Object.assign({},N);return $s(e,q,null),q});D.push(x),P>=g.value.length?S=0:S=g.value[P],(S<0||S>=z.length)&&(S=0);let C=z[S];const L=Zn(e,C);if(!Array.isArray(L))break;z=L,P++}return D}),B=t.computed(()=>ce(+e.visibleItemCount-1)/2*i.value);return{...l,pickerLineRef:r,classes:s,columns:I,dataType:d,show:b,itemHeight:i,top:B,isReadonly:h,getIndex:f,change:(D,P)=>{w(D,P)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let D=u.value.length-1;for(;D>=0&&!(g.value[D]===null||g.value[D]===void 0);D--);if(D>=0&&w(D,0),d.value==="singleColumn"){let P=p.value.length>0?p.value[0]:"",z=E.value.length>0?E.value[0]:null;e.readonly||(n("update:modelValue",P),n("update:text",m.value),n("change",P,z)),n("confirm",P)}else e.readonly||(n("update:modelValue",p.value),n("update:text",m.value),n("change",p.value,E.value)),n("confirm",p.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}d.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),js={class:"fox-picker__bar"},_s={class:"fox-picker__title"},Hs={class:"fox-picker__bar__action"},Ks={class:"fox-picker__column"};function Ys(e,n,a,o,l,r){const i=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",js,[t.createElementVNode("view",_s,t.toDisplayString(e.title),1),t.createElementVNode("view",Hs,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ks,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(i,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":u=>e.change(d,u),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const it=de(zs,[["render",Ys]]),Ha={...Gn,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Ws(e,n,a){return{props:{...ge,...Ce,...Ha},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=e,p=t.computed(()=>({[m]:!0})),E=Ne(t.computed(()=>o.textAlign),"textAlign"),g=t.computed(()=>({textAlign:E.value??"right"})),b=ie(o,"modelValue"),v=t.ref([]),h=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),w=t.ref(!1),f=()=>{w.value=!0},I=C=>{w.value=C},B=C=>{b.value=C,s("update:modelValue",C)},O=C=>{v.value=C,Array.isArray(C)&&C.length===0?s("update:text",C[0]):s("update:text",C)},R=(C,L)=>{Array.isArray(L)&&L.length==1?s("change",C,L[0]):s("change",C,L)};let V=ie(o,"hintText"),$=t.ref(!1);const D=C=>{let N=C.target.value;u.value=!0,ye(V.value)||($.value=!0),s("focus",N,C)},P=C=>{setTimeout(()=>{$.value&&($.value=!1),u.value=!1},0);let N=C.target.value;o.maxLength&&N.length>Number(o.maxLength)&&(N=N.slice(0,Number(o.maxLength))),w.value?setTimeout(()=>{s("blur",N,C)},50):s("blur",N,C)},z=()=>{s("clear","")},S=t.computed(()=>Be(o.unit)>0),x=t.ref();return he({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()}}),()=>{const C={class:p.value,style:g.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,clearable:oe(o.clearable),readonly:!0,value:h.value,onClick:f,onFocus:D,onBlur:P},L={};l.slots.prepend&&(L.prepend=l.slots.prepend),l.slots.append&&(L.append=l.slots.append),l.slots.prefix&&(L.prefix=l.slots.prefix),l.slots.suffix?L.suffix=l.slots.suffix:S.value?L.suffix=()=>[o.unit]:L.suffix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.ArrowDown)});const N=[],q=t.h(k.ElInput,C,L);N.push(q);const T={default:()=>N};l.slots.default&&(T.label=l.slots.default),l.slots.fixedTip&&(T.fixedTip=l.slots.fixedTip);const F=pt(o,Gn);F.disabled=!1,F.readonly=r.value||i.value,F.visible=w.value,F["onUpdate:visible"]=I,F.modelValue=b.value,F.onUpdateModel=B,F.text=v.value,F["onUpdate:text"]=O,F.onClear=z,F.onChange=R;const _=t.h(it,F);T.hide=()=>[_];const J={...ve(o,Ha),hintText:V.value,hintVisible:$.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,J,T)}}}}const{componentName:Us,create:Gs,scope:Xs}=te("select-item"),Jn=Gs(Ws(Us,Xs,pe));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ka={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",i="second",s="minute",c="hour",d="day",u="week",m="month",p="quarter",E="year",g="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(S,x,C){var L=String(S);return!L||L.length>=x?S:""+Array(x+1-L.length).join(C)+S},I={s:f,z:function(S){var x=-S.utcOffset(),C=Math.abs(x),L=Math.floor(C/60),N=C%60;return(x<=0?"+":"-")+f(L,2,"0")+":"+f(N,2,"0")},m:function S(x,C){if(x.date()<C.date())return-S(C,x);var L=12*(C.year()-x.year())+(C.month()-x.month()),N=x.clone().add(L,m),q=C-N<0,T=x.clone().add(L+(q?-1:1),m);return+(-(L+(C-N)/(q?N-T:T-N))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:m,y:E,w:u,d,D:g,h:c,m:s,s:i,ms:r,Q:p}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},B="en",O={};O[B]=w;var R=function(S){return S instanceof P},V=function S(x,C,L){var N;if(!x)return B;if(typeof x=="string"){var q=x.toLowerCase();O[q]&&(N=q),C&&(O[q]=C,N=q);var T=x.split("-");if(!N&&T.length>1)return S(T[0])}else{var F=x.name;O[F]=x,N=F}return!L&&N&&(B=N),N||!L&&B},$=function(S,x){if(R(S))return S.clone();var C=typeof x=="object"?x:{};return C.date=S,C.args=arguments,new P(C)},D=I;D.l=V,D.i=R,D.w=function(S,x){return $(S,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var P=function(){function S(C){this.$L=V(C.locale,null,!0),this.parse(C)}var x=S.prototype;return x.parse=function(C){this.$d=function(L){var N=L.date,q=L.utc;if(N===null)return new Date(NaN);if(D.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var T=N.match(v);if(T){var F=T[2]-1||0,_=(T[7]||"0").substring(0,3);return q?new Date(Date.UTC(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,_)):new Date(T[1],F,T[3]||1,T[4]||0,T[5]||0,T[6]||0,_)}}return new Date(N)}(C),this.$x=C.x||{},this.init()},x.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},x.$utils=function(){return D},x.isValid=function(){return this.$d.toString()!==b},x.isSame=function(C,L){var N=$(C);return this.startOf(L)<=N&&N<=this.endOf(L)},x.isAfter=function(C,L){return $(C)<this.startOf(L)},x.isBefore=function(C,L){return this.endOf(L)<$(C)},x.$g=function(C,L,N){return D.u(C)?this[L]:this.set(N,C)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(C,L){var N=this,q=!!D.u(L)||L,T=D.p(C),F=function(ne,j){var W=D.w(N.$u?Date.UTC(N.$y,j,ne):new Date(N.$y,j,ne),N);return q?W:W.endOf(d)},_=function(ne,j){return D.w(N.toDate()[ne].apply(N.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(j)),N)},U=this.$W,J=this.$M,Q=this.$D,le="set"+(this.$u?"UTC":"");switch(T){case E:return q?F(1,0):F(31,11);case m:return q?F(1,J):F(0,J+1);case u:var se=this.$locale().weekStart||0,Z=(U<se?U+7:U)-se;return F(q?Q-Z:Q+(6-Z),J);case d:case g:return _(le+"Hours",0);case c:return _(le+"Minutes",1);case s:return _(le+"Seconds",2);case i:return _(le+"Milliseconds",3);default:return this.clone()}},x.endOf=function(C){return this.startOf(C,!1)},x.$set=function(C,L){var N,q=D.p(C),T="set"+(this.$u?"UTC":""),F=(N={},N[d]=T+"Date",N[g]=T+"Date",N[m]=T+"Month",N[E]=T+"FullYear",N[c]=T+"Hours",N[s]=T+"Minutes",N[i]=T+"Seconds",N[r]=T+"Milliseconds",N)[q],_=q===d?this.$D+(L-this.$W):L;if(q===m||q===E){var U=this.clone().set(g,1);U.$d[F](_),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else F&&this.$d[F](_);return this.init(),this},x.set=function(C,L){return this.clone().$set(C,L)},x.get=function(C){return this[D.p(C)]()},x.add=function(C,L){var N,q=this;C=Number(C);var T=D.p(L),F=function(J){var Q=$(q);return D.w(Q.date(Q.date()+Math.round(J*C)),q)};if(T===m)return this.set(m,this.$M+C);if(T===E)return this.set(E,this.$y+C);if(T===d)return F(1);if(T===u)return F(7);var _=(N={},N[s]=o,N[c]=l,N[i]=a,N)[T]||1,U=this.$d.getTime()+C*_;return D.w(U,this)},x.subtract=function(C,L){return this.add(-1*C,L)},x.format=function(C){var L=this,N=this.$locale();if(!this.isValid())return N.invalidDate||b;var q=C||"YYYY-MM-DDTHH:mm:ssZ",T=D.z(this),F=this.$H,_=this.$m,U=this.$M,J=N.weekdays,Q=N.months,le=function(j,W,G,A){return j&&(j[W]||j(L,q))||G[W].slice(0,A)},se=function(j){return D.s(F%12||12,j,"0")},Z=N.meridiem||function(j,W,G){var A=j<12?"AM":"PM";return G?A.toLowerCase():A},ne={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:D.s(U+1,2,"0"),MMM:le(N.monthsShort,U,Q,3),MMMM:le(Q,U),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:le(N.weekdaysMin,this.$W,J,2),ddd:le(N.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(F),HH:D.s(F,2,"0"),h:se(1),hh:se(2),a:Z(F,_,!0),A:Z(F,_,!1),m:String(_),mm:D.s(_,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:T};return q.replace(h,function(j,W){return W||ne[j]||T.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(C,L,N){var q,T=D.p(L),F=$(C),_=(F.utcOffset()-this.utcOffset())*o,U=this-F,J=D.m(this,F);return J=(q={},q[E]=J/12,q[m]=J,q[p]=J/3,q[u]=(U-_)/6048e5,q[d]=(U-_)/864e5,q[c]=U/l,q[s]=U/o,q[i]=U/a,q)[T]||U,N?J:D.a(J)},x.daysInMonth=function(){return this.endOf(m).$D},x.$locale=function(){return O[this.$L]},x.locale=function(C,L){if(!C)return this.$L;var N=this.clone(),q=V(C,L,!0);return q&&(N.$L=q),N},x.clone=function(){return D.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},S}(),z=P.prototype;return $.prototype=z,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",d],["$M",m],["$y",E],["$D",g]].forEach(function(S){z[S[1]]=function(x){return this.$g(x,S[0],S[1])}}),$.extend=function(S,x){return S.$i||(S(x,P,$),S.$i=!0),$},$.locale=V,$.isDayjs=R,$.unix=function(S){return $(1e3*S)},$.en=O[B],$.Ls=O,$.p={},$})})(Ka);var Zs=Ka.exports;const Le=Ke(Zs);var Ya={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(v){this[b]=+v}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var h=v.match(/([+-]|\d\d)/g),w=60*h[1]+(+h[2]||0);return w===0?0:h[0]==="+"?-w:w}(b)}],m=function(b){var v=s[b];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(b,v){var h,w=s.meridiem;if(w){for(var f=1;f<=24;f+=1)if(b.indexOf(w(f,0,v))>-1){h=f>12;break}}else h=b===(v?"pm":"PM");return h},E={A:[i,function(b){this.afternoon=p(b,!1)}],a:[i,function(b){this.afternoon=p(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[i,function(b){var v=s.ordinal,h=b.match(/\d+/);if(this.day=h[0],v)for(var w=1;w<=31;w+=1)v(w).replace(/\[|\]/g,"")===b&&(this.day=w)}],M:[r,d("month")],MM:[l,d("month")],MMM:[i,function(b){var v=m("months"),h=(m("monthsShort")||v.map(function(w){return w.slice(0,3)})).indexOf(b)+1;if(h<1)throw new Error;this.month=h%12||h}],MMMM:[i,function(b){var v=m("months").indexOf(b)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function g(b){var v,h;v=b,h=s&&s.formats;for(var w=(b=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,D,P){var z=P&&P.toUpperCase();return D||h[P]||a[P]||h[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,x,C){return x||C.slice(1)})})).match(o),f=w.length,I=0;I<f;I+=1){var B=w[I],O=E[B],R=O&&O[0],V=O&&O[1];w[I]=V?{regex:R,parser:V}:B.replace(/^\[|\]$/g,"")}return function($){for(var D={},P=0,z=0;P<f;P+=1){var S=w[P];if(typeof S=="string")z+=S.length;else{var x=S.regex,C=S.parser,L=$.slice(z),N=x.exec(L)[0];C.call(D,N),$=$.replace(N,"")}}return function(q){var T=q.afternoon;if(T!==void 0){var F=q.hours;T?F<12&&(q.hours+=12):F===12&&(q.hours=0),delete q.afternoon}}(D),D}}return function(b,v,h){h.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var w=v.prototype,f=w.parse;w.parse=function(I){var B=I.date,O=I.utc,R=I.args;this.$u=O;var V=R[1];if(typeof V=="string"){var $=R[2]===!0,D=R[3]===!0,P=$||D,z=R[2];D&&(z=R[2]),s=this.$locale(),!$&&z&&(s=h.Ls[z]),this.$d=function(L,N,q){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*L);var T=g(N)(L),F=T.year,_=T.month,U=T.day,J=T.hours,Q=T.minutes,le=T.seconds,se=T.milliseconds,Z=T.zone,ne=new Date,j=U||(F||_?1:ne.getDate()),W=F||ne.getFullYear(),G=0;F&&!_||(G=_>0?_-1:ne.getMonth());var A=J||0,H=Q||0,M=le||0,K=se||0;return Z?new Date(Date.UTC(W,G,j,A,H,M,K+60*Z.offset*1e3)):q?new Date(Date.UTC(W,G,j,A,H,M,K)):new Date(W,G,j,A,H,M,K)}catch{return new Date("")}}(B,V,O),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),P&&B!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var S=V.length,x=1;x<=S;x+=1){R[1]=V[x-1];var C=h.apply(this,R);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}x===S&&(this.$d=new Date(""))}else f.call(this,I)}}})})(Ya);var Js=Ya.exports;const Qs=Ke(Js);var Wa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o,l){var r=o.prototype,i=r.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],d=s%100;return"["+s+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(s){var c=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),m=(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(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return u.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return i.bind(this)(m)}}})})(Wa);var ec=Wa.exports;const tc=Ke(ec);var Ua={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o,l){var r=o.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},s=function(m,p,E,g,b){var v=m.name?m:m.$locale(),h=i(v[p]),w=i(v[E]),f=h||w.map(function(B){return B.slice(0,g)});if(!b)return f;var I=v.weekStart;return f.map(function(B,O){return f[(O+(I||0))%7]})},c=function(){return l.Ls[l.locale()]},d=function(m,p){return m.formats[p]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,b,v){return b||v.slice(1)})}(m.formats[p.toUpperCase()])},u=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):s(m,"months")},monthsShort:function(p){return p?p.format("MMM"):s(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(m.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return u.bind(this)()},l.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(p){return d(m,p)},meridiem:m.meridiem,ordinal:m.ordinal}},l.months=function(){return s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(m){return s(c(),"weekdays",null,null,m)},l.weekdaysShort=function(m){return s(c(),"weekdaysShort","weekdays",3,m)},l.weekdaysMin=function(m){return s(c(),"weekdaysMin","weekdays",2,m)}}})})(Ua);var nc=Ua.exports;const oc=Ke(nc);var Ga={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){var a="week",o="year";return function(l,r,i){var s=r.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(o).add(1,o).date(d),m=i(this).endOf(a);if(u.isBefore(m))return 1}var p=i(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),E=this.diff(p,a,!0);return E<0?i(this).startOf("week").week():Math.ceil(E)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ga);var ac=Ga.exports;const lc=Ke(ac);var Xa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),i=this.year();return r===1&&l===11?i+1:l===0&&r>=52?i-1:i}}})})(Xa);var rc=Xa.exports;const ic=Ke(rc);var Za={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(Za);var sc=Za.exports;const cc=Ke(sc);var Ja={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Ja);var uc=Ja.exports;const dc=Ke(uc);var Qa={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(He,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(Qa);var fc=Qa.exports;const mc=Ke(fc);Le.extend(oc),Le.extend(tc),Le.extend(Qs),Le.extend(lc),Le.extend(ic),Le.extend(cc),Le.extend(dc),Le.extend(mc);const ee={format(e,n){return Le(e).format(n)},parser(e,n){return Le(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),i=l.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((l.valueOf()-r.valueOf())/864e5);let s=l.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let i=l.getDay();if(o===0){const c=r-i*864e5,d=r+(6-i)*864e5,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[u,m]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,d=r+(7-i)*s,u=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[u,m]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ee.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ee.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i}},el=new Date().getFullYear(),Qn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},tn=(e,n,a)=>{let o;if(Me(n)?o=n:typeof n=="string"&&Be(n)>0?o=ee.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},eo=(e,n,a)=>{Me(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ee.format(new Date(o),a)};let to={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(el-10,0,1),validator:Me},maxDate:{type:Date,default:()=>new Date(el+10,11,31),validator:Me},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:hc,scope:gc}=te("date-picker"),pc=hc({components:{[it.name]:it},props:{...to},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=Ee.useFoxI18n(gc),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,h=>{l.value=h});function r(h,w){return new Date(h,w,0).getDate()}const i=(h,w)=>{const f=e[`${h}Date`],I=f.getFullYear();let B=1,O=1,R=0,V=0;h==="max"&&(B=12,O=r(w.getFullYear(),w.getMonth()+1),R=23,V=59);const $=V;return w.getFullYear()===I&&(B=f.getMonth()+1,w.getMonth()+1===B&&(O=f.getDate(),w.getDate()===O&&(R=f.getHours(),w.getHours()===R&&(V=f.getMinutes())))),{[`${h}Year`]:I,[`${h}Month`]:B,[`${h}Date`]:O,[`${h}Hour`]:R,[`${h}Minute`]:V,[`${h}Seconds`]:$}},s=t.computed(()=>{if(!p.value)return[];const{maxYear:h,maxDate:w,maxMonth:f,maxHour:I,maxMinute:B,maxSeconds:O}=i("max",p.value),{minYear:R,minDate:V,minMonth:$,minHour:D,minMinute:P,minSeconds:z}=i("min",p.value);let S=[{type:"year",range:[R,h]},{type:"month",range:[$,f]},{type:"day",range:[V,w]},{type:"hour",range:[D,I]},{type:"minute",range:[P,B]},{type:"seconds",range:[z,O]}];switch(e.type){case"date":S=S.slice(0,3);break;case"datetime":S=S.slice(0,5);break;case"time":S=S.slice(3,6);break;case"year-month":S=S.slice(0,2);break;case"month-day":S=S.slice(1,3);break;case"datehour":S=S.slice(0,4);break;case"hour-minute":S=S.slice(3,5);break}return S}),c=(h,w,f)=>{if(!(w>h))return null;const I=[];for(;h<=w;)e.isShowChinese?I.push({text:h+o[f],value:h}):I.push({text:`${h}`,value:h}),f==="minute"?h+=e.minuteStep:h++;return I},d=t.computed(()=>{let h=[];return s.value.forEach(w=>{let f=c(w.range[0],w.range[1],w.type);f&&h.push(f)}),h}),u=(h,w)=>h==="year"?w.getFullYear():h==="month"?w.getMonth()+1:h==="day"?w.getDate():h==="hour"?w.getHours():h==="minute"?w.getMinutes():h==="seconds"?w.getSeconds():0,m=t.ref(),p=t.ref(null);t.watchEffect(()=>{let h,w=e.modelValue;if(typeof w=="string"?w.length==0?h=new Date:e.valueFormat?h=tn(e,e.modelValue,e.valueFormat):h=tn(e,w,Qn[e.type]):Me(w)?h=w:h=new Date,!!h&&(!p.value||h.getTime()!==p.value.getTime())){p.value=h;let f=[];s.value.forEach(I=>{let B=u(I.type,h);f.push(B)}),m.value=f}});const E=h=>{if(e.type==="date"){let w=h;p.value=new Date(w[0],w[1]-1,Math.min(w[2],r(w[0],w[1])))}else if(e.type==="datetime"){let w=h;p.value=new Date(w[0],w[1]-1,Math.min(w[2],r(w[0],w[1])),w[3],w[4])}else if(e.type==="time"){let w=h,f=p.value??new Date,I=new Date(f.getFullYear(),f.getMonth(),f.getDate(),w[0],w[1],w[2]);p.value=I}else if(e.type==="year-month"){let w=h,f=new Date(w[0],w[1]-1);p.value=f}else if(e.type==="month-day"){let w=h,f=p.value??new Date,I=new Date(f.getFullYear(),w[0]-1,w[1]);p.value=I}else if(e.type==="datehour"){let w=h;p.value=new Date(w[0],w[1]-1,Math.min(w[2],r(w[0],w[1])),w[3])}else if(e.type==="hour-minute"){let w=h,f=p.value??new Date,I=new Date(f.getFullYear(),f.getMonth(),f.getDate(),w[0],w[1]);p.value=I}m.value=h};return{columns:d,dateIndexs:m,show:l,onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:h=>{E(h),l.value=!1;let w=p.value??new Date;if(e.valueFormat){let f=eo(e,w,e.valueFormat);n("update:modelValue",f)}else n("update:modelValue",w);n("update:visible",!1),n("confirm",h)},onClear:()=>{n("clear")}}}});function yc(e,n,a,o,l,r){const i=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const nn=de(pc,[["render",yc]]);function bc(e){let n=e.format;if(!n){let a=e.type??"date";n=Qn[a]}return n}const tl={...to,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function wc(e,n,a){return{props:{...ge,...Ce,...tl,isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1,default:"长期"},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1,default:"2999-01-01"}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),p=ie(o,"modelValue",T=>T==null?null:typeof T=="string"?T.length==0?null:o.valueFormat?tn(o,T,o.valueFormat)??T:tn(o,T,Qn[o.type])??T:Me(T)?T:null),E=t.computed(()=>{if(!p.value)return"";const T=bc(o);return eo(o,p.value,T)}),g=e,b=t.computed(()=>({[`${g}__input`]:!0})),v=Ne(t.computed(()=>o.textAlign),"textAlign"),h=t.computed(()=>({textAlign:v.value??"right"}));let w=ie(o,"hintText"),f=t.ref(!1);const I=t.ref(!1),B=()=>{I.value=!0},O=()=>{I.value=!1},R=T=>{I.value=T},V=T=>{if(p.value=T,o.valueFormat){let F=eo(o,T,o.valueFormat);s("update:modelValue",F,{}),s("change",F,{})}else s("update:modelValue",T,{}),s("change",T,{})},$=T=>{let _=T.target.value;u.value=!0,s("focus",_,T)},D=T=>{setTimeout(()=>{u.value=!1},0);let _=T.target.value;o.maxLength&&_.length>Number(o.maxLength)&&(_=_.slice(0,Number(o.maxLength))),s("blur",_,T)},P=T=>{p.value="",s("update:modelValue","",T),s("change","",T),s("clear",""),O()},z=t.computed(()=>Be(o.unit)>0),S=Ne(t.computed(()=>o.longTermValue),"longTermValue",We.Near);let x=null;const C=t.ref(oe(o.longTerm)),L=T=>{if(C.value=T,s("update:longTerm",T),T){let F="";Array.isArray(S.value)?F=S.value.map((_,U)=>_||(Array.isArray(p.value)&&p.value[U]?p.value[U]:o.valueFormat?ee.format(new Date,o.valueFormat):new Date)):F=S.value,x=p.value,s("update:modelValue",F)}else s("update:modelValue",x)},N=oe(o.isLongTerm);if(N){const T=()=>{if(C.value===!0){let F="";Array.isArray(S.value)?F=S.value.map((_,U)=>_||(Array.isArray(p.value)&&p.value[U]?p.value[U]:o.valueFormat?ee.format(new Date,o.valueFormat):new Date)):F=S.value,x=p.value,s("update:modelValue",F)}else Pe(S.value,p.value)&&(C.value=!0)};T(),t.watch([()=>o.longTerm],([F])=>{C.value!==F&&T()})}const q=t.ref();return he({showPicker:B,hidePicker:O,focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const T={class:b.value,style:h.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:E.value,onClick:B,onFocus:$,onBlur:D},F={};l.slots.prepend&&(F.prepend=l.slots.prepend),l.slots.append&&(F.append=l.slots.append),l.slots.prefix?F.prefix=l.slots.prefix:F.prefix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.Calendar)}),l.slots.suffix?F.suffix=l.slots.suffix:z.value&&(F.suffix=()=>[o.unit]);const _=[],U=t.h(k.ElInput,T,F);_.push(U);const J={default:()=>_};l.slots.default&&(J.label=l.slots.default),l.slots.fixedTip&&(J.fixedTip=l.slots.fixedTip);const Q=pt(o,to);Q.valueFormat=null,Q.disabled=!1,Q.readonly=r.value||i.value||C.value,Q.visible=I.value,Q["onUpdate:visible"]=R,Q.modelValue=p.value,Q["onUpdate:modelValue"]=V,Q.onClear=P;const le={};if(l.slots.top){const W=l.slots.top();le.top=()=>W}if(l.slots.bottom){const W=l.slots.bottom();le.default=()=>W}const se=t.h(nn,Q,le);if(J.hide=()=>[se],N){const W={label:o.longTermText,modelValue:C.value,"onUpdate:modelValue":L},G=t.h(k.ElCheckbox,W),A=t.h("div",{class:{[`${g}__append`]:!0}},[G]);J.append=()=>A}const ne={...ve(o,tl),class:{[`${g}__wrapper`]:!0,"has-append":N},hintText:w.value,hintVisible:f.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,ne,J)}}}}const{componentName:Sc,create:vc,scope:Cc}=te("date-item"),no=vc(wc(Sc,Cc,pe)),kc=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),oo={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popupStyles:{type:Object,default:{height:"80vh",width:"40vw",left:"30vw"}}},nl=39,ol=64,{create:Tc,scope:$c}=te("calendar-pane"),Dc=Tc({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ee.getDay(0)},endDate:{type:String,default:ee.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=Ee.useFoxI18n($c),r=o(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${nl}px`})),s=t.computed(()=>({height:`${ol}px`})),c=JSON.parse(l("weekdays")),d=t.ref([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),u=t.ref(null),m=t.ref(null),p=t.ref(null),E=t.ref(null),g=t.ref(0),b=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),v=t.computed(()=>a.btn),h=t.computed(()=>a["top-info"]),w=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),I=j=>j.split("-"),B=j=>ee.isEqual(f.currDate[0],j),O=j=>ee.isEqual(f.currDate[1],j),R=j=>f.currDate?.length>0?f.currDate?.some(W=>ee.isEqual(W,j)):!1,V=(j,W)=>W.curData[0]+"-"+W.curData[1]+"-"+ee.getNumTwoBit(+j.day),$=(j,W)=>{const G=V(j,W),{type:A}=e;return j.type=="curr"?ee.isEqual(f.currDate,G)||(A=="range"||A=="week")&&(B(G)||O(G))||A=="multiple"&&R(G)?`${f.dayPrefix}--active`:f.propStartDate&&ee.compareDate(G,f.propStartDate)||f.propEndDate&&ee.compareDate(f.propEndDate,G)?`${f.dayPrefix}--disabled`:(A=="range"||A=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ee.compareDate(f.currDate[0],G)&&ee.compareDate(G,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},D=()=>{const{type:j}=e;if(j=="range"&&f.chooseData.length==2||j!="range"){let W=f.chooseData.slice(0);j=="week"&&(W={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("choose",W),e.poppable&&n("update")}},P=(j,W,G=!1)=>{if($(j,W)!=`${f.dayPrefix}--disabled`){const{type:A}=e;let[H,M]=W.curData,K=[...W.curData];if(K[2]=ee.getNumTwoBit(Number(j.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=ee.getWhatDay(+K[0],+K[1],+K[2]),A=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((X,re)=>{X==K[3]&&(Y=re)}),G?f.chooseData.push([...K]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(K[3]),f.chooseData.push([...K]))}else f.currDate=[K[3]],f.chooseData=[[...K]];else if(A=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[K[3]]:ee.compareDate(f.currDate[0],K[3])?Array.isArray(f.currDate)&&f.currDate.push(K[3]):Array.isArray(f.currDate)&&f.currDate.unshift(K[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...K]]:ee.compareDate(f.chooseData[0][3],K[3])?f.chooseData=[...f.chooseData,[...K]]:f.chooseData=[[...K],...f.chooseData]}else if(A=="week"){let Y=ee.getWeekDate(H,M,j.day,e.firstDayOfWeek);f.propStartDate&&ee.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&ee.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[ee.formatResultDate(Y[0]),ee.formatResultDate(Y[1])]}else f.currDate=K[3],f.chooseData=[...K];if(!G){let Y=f.chooseData;A=="week"&&(Y={weekDate:[z(f.chooseData[0]),z(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&D()}}},z=j=>{let[W,G,A]=j;return{date:j,monthWeekNum:ee.getMonthWeek(W,G,A,e.firstDayOfWeek),yearWeekNum:ee.getYearWeek(W,G,A,e.firstDayOfWeek)}},S=j=>{const W=j=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let G=parseInt(W.curData[0]),A=parseInt(W.curData[1].toString().replace(/^0/,""));switch(j){case"prev":A==1&&(G-=1),A=A==1?12:--A;break;case"next":A==12&&(G+=1),A=A==12?1:++A;break}return[G+"",ee.getNumTwoBit(A),ee.getMonthDays(String(G),String(A))+""]},x=(j,W,G)=>{let{year:A,month:H}=G;return W=="prev"&&j>=7&&(j-=7),Array.from(Array(j),(M,K)=>({day:String(K+1),type:W,year:A,month:H}))},C=(j,W,G,A)=>{j=j-e.firstDayOfWeek;let{year:H,month:M}=G;return W=="prev"&&j>=7&&(j-=7),Array.from(Array(A),(Y,X)=>({day:String(X+1),type:W,year:H,month:M})).slice(A-j)},L=(j,W)=>{const G=ee.getMonthPreDay(+j[0],+j[1]);let A=Number(j[1])-1,H=Number(j[0]);A<=0&&(A=12,H+=1);const M=ee.getMonthDays(String(j[0]),String(j[1])),K=ee.getMonthDays(H+"",A+""),Y={year:j[0],month:j[1]},X={curData:j,title:l("monthTitle",{year:Y.year,month:Y.month}),monthData:[...C(G,"prev",{month:String(A),year:String(H)},K),...x(M,"curr",Y)],cssHeight:0,cssScrollHeight:0},re=X.monthData.length>35?6:5;X.cssHeight=nl+ol*re;let fe=0;f.monthsData.length>0&&(fe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),X.cssScrollHeight=fe,W=="next"?(!f.endData||!ee.compareDate(`${f.endData[0]}-${f.endData[1]}-${ee.getMonthDays(f.endData[0],f.endData[1])}`,`${j[0]}-${j[1]}-${j[2]}`))&&f.monthsData.push(X):!f.startData||!ee.compareDate(`${j[0]}-${j[1]}-${j[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(X):f.unLoadPrev=!0},N=()=>{let j=e.startDate?e.startDate:ee.getDay(0),W=e.endDate?e.endDate:ee.getDay(365);f.propStartDate=j,f.propEndDate=W,f.startData=I(j),f.endData=I(W),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const G={year:Number(f.startData[0]),month:Number(f.startData[1])},A={year:Number(f.endData[0]),month:Number(f.endData[1])};let H=A.month-G.month;A.year-G.year>0&&(H=H+12*(A.year-G.year)),H<=0&&(H=1),L(f.startData,"next");let M=1;do L(S("next"),"next");while(M++<H);if(f.monthsNum=H,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(j&&ee.compareDate(f.currDate[0],j)&&f.currDate.splice(0,1,j),W&&ee.compareDate(W,f.currDate[1])&&f.currDate.splice(1,1,W),f.defaultData=[...I(f.currDate[0]),...I(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let K=[],Y={};f.currDate.forEach(X=>{j&&!ee.compareDate(X,j)&&W&&!ee.compareDate(W,X)&&(Object.hasOwnProperty.call(Y,X)||(K.push(X),Y[X]=X))}),f.currDate=[...K],f.defaultData=[...I(K[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[K,Y,X]=I(f.currDate[0]),re=ee.getWeekDate(K,Y,X,e.firstDayOfWeek);f.currDate=re,j&&ee.compareDate(f.currDate[0],j)&&f.currDate.splice(0,1,j),W&&ee.compareDate(W,f.currDate[1])&&f.currDate.splice(1,1,W),f.defaultData=[...I(f.currDate[0]),...I(f.currDate[1])]}}else f.currDate&&(j&&ee.compareDate(f.currDate,j)?f.currDate=j:W&&!ee.compareDate(f.currDate,W)&&(f.currDate=W),f.defaultData=[...I(f.currDate)])};he({scrollToDate:j=>{ee.compareDate(j,f.propStartDate)?j=f.propStartDate:ee.compareDate(j,f.propEndDate)||(j=f.propEndDate);let W=I(j);f.monthsData.forEach((G,A)=>{if(G.title==l("monthTitle",{year:W[0],month:W[1]})&&u.value){let H=f.monthsData[A].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let M=0,K=setInterval(()=>{if(M++,u.value){let Y=H/10;u.value.scrollTop=u.value.scrollTop+Y}M>=10&&(clearInterval(K),u.value&&(u.value.scrollTop=f.monthsData[A].cssScrollHeight))},40)}else u.value.scrollTop=f.monthsData[A].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let j=0,W=0;f.defaultData.length>0&&f.monthsData.forEach((H,M)=>{H.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(j=M),(e.type=="range"||e.type=="week")&&H.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(W=M)}),_(f.monthsNum,j),f.currentIndex=j,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(P({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),P({day:f.defaultData[5],type:"curr"},f.monthsData[W],!0)):e.type=="week"?P({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(H=>{let M=I(H),K=f.currentIndex;f.monthsData.forEach((Y,X)=>{Y.title==l("monthTitle",{year:M[0],month:M[1]})&&(K=X)}),P({day:M[2],type:"curr"},f.monthsData[K],!0)}):P({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let G=f.monthsData[f.monthsData.length-1],A=G.cssHeight+G.cssScrollHeight;Mo(()=>{u?.value&&m?.value&&E?.value&&(g.value=u.value.clientHeight,m.value.style.height=`${A}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(A/(f.monthsNum+1))}});const _=(j,W)=>{j>=3?W>0&&W<j?f.defaultRange=[W-1,W+3]:W==0?f.defaultRange=[W,W+4]:W==j&&(f.defaultRange=[W-2,W+2]):f.defaultRange=[0,j+2];let G=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=G},U=(j,W)=>(e.type=="range"||e.type=="week")&&j.type=="curr"&&$(j,W)=="fox-calendar__day--active",J=(j,W)=>U(j,W)&&B(V(j,W)),Q=(j,W)=>f.currDate.length>=2&&O(V(j,W))?U(j,W):!1,le=()=>{if(f.currDate.length>=2)return ee.isEqual(f.currDate[0],f.currDate[1])},se=j=>{const W=`${j.year}-${j.month}-${Number(j.day)<10?"0"+j.day:j.day}`;return ee.isEqual(W,ee.date2Str(new Date))},Z=j=>{if(f.monthsData.length<=1)return;const W=j.target.scrollTop;let G=Math.floor(W/f.avgHeight);if(G==0)W>=f.monthsData[G+1].cssScrollHeight&&(G+=1);else if(G>0&&G<f.monthsNum-1)W>=f.monthsData[G+1].cssScrollHeight&&(G+=1),W<f.monthsData[G].cssScrollHeight&&(G-=1);else{const A=Math.round(W+g.value);A<f.monthsData[G].cssScrollHeight+f.monthsData[G].cssHeight&&W>f.monthsData[G-1].cssScrollHeight&&(G-=1),G+1<=f.monthsNum&&A>=f.monthsData[G+1].cssScrollHeight+f.monthsData[G+1].cssHeight&&(G+=1),G>=1&&W<f.monthsData[G-1].cssScrollHeight&&(G-=1)}f.currentIndex!==G&&(f.currentIndex=G,_(f.monthsNum,G)),f.yearMonthTitle=f.monthsData[G].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),N()};return N(),t.watch(()=>e.defaultValue,j=>{j&&e.poppable&&ne()}),{dayTitleStyle:i,dayCellStyle:s,weeks:d,compConthsData:b,showTopBtn:v,topInfo:h,bottomInfo:w,rangeTip:le,mothsViewScroll:Z,getClass:$,isStartTip:J,isEndTip:Q,chooseDay:P,isCurrDay:se,confirm:D,months:u,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:p,viewArea:E}}}),Ec={class:"fox-calendar__header"},xc={key:0,class:"fox-calendar__header-title"},Nc={key:1,class:"fox-calendar__header-slot"},Vc={key:2,class:"fox-calendar__header-subtitle"},Ic={class:"fox-calendar__weekdays",ref:"weeksPanel"},Bc={class:"fox-calendar__panel",ref:"monthsPanel"},Ac={class:"fox-calendar__days"},Oc=["onClick"],Rc={class:"fox-calendar__day-value"},Fc={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Lc={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Mc={key:2,class:"fox-calendar__day-tips--curr"},Pc={key:4,class:"fox-calendar__day-tip"},qc={key:0,class:"fox-calendar__footer"};function zc(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Ec,[e.showTitle?(t.openBlock(),t.createElementBlock("view",xc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Nc,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Vc,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Bc,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Ac,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:u=>e.chooseDay(c,i)},[t.createElementVNode("view",Rc,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Fc,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Lc,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Mc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,i)?(t.openBlock(),t.createElementBlock("view",Pc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Oc))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",qc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const al=de(Dc,[["render",zc]]),{create:jc}=te("calendar-picker"),_c=jc({components:{[al.name]:al,[_e.name]:_e},props:{...oo},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),s=t.ref(null),c=b=>{s.value?.scrollToDate(b)},d=()=>{s.value?.initPosition()};t.watch(()=>e.visible,b=>{b&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),he({scrollToDate:c,initPosition:d});const u=()=>{n("update:visible",!1)},m=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{m()},update:u,close:m,select:b=>{n("select",b)},choose:b=>{m(),n("choose",b)},calendarRef:s,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:i}}});function Hc(e,n,a,o,l,r){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:e.popupStyles}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const on=de(_c,[["render",Hc]]),ao=(e,n)=>{let a;return Me(e)?a=e:typeof e=="string"&&Be(e)>0?a=ee.parser(e,n):a=new Date,a},st=(e,n,a)=>(Me(n)||(n=new Date),ee.format(n,a)),ct=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ee.date2Str(e),r=ee.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]},ll={...oo,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Kc(e,n,a){return{props:{...ge,...Ce,...ll},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const p=t.ref(!1),E=t.computed(()=>o.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),b=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},v=(N,q="one",T="YYYY-MM-DD")=>{if(kc(N)){b();return}if(E.value&&Array.isArray(N)&&N.length==2){let F,_;typeof N[0]=="string"?(F=ao(N[0],T),_=ao(N[1],T)):(F=N[0],_=N[1]);let U=ct(F),J=ct(_);(g.startDate===null||g.startDate.getTime()!==F.getTime()||g.endDate?.getTime()!==_.getTime())&&(g.startDate=F,g.startArray=U,g.endDate=_,g.endArray=J)}else{let F;typeof N=="string"?F=ao(N,T):F=N;let _=ct(F);(g.startDate===null||g.startDate.getTime()!==F.getTime())&&(g.startDate=F,g.startArray=_)}};v(o.modelValue,o.type,o.valueFormat),t.watch(()=>o.modelValue,N=>{v(N,o.type,o.valueFormat)});const h=t.computed(()=>{if(g.startDate===null)return"";if(E.value){let N=st(o,g.startDate,o.format),q=st(o,g.endDate,o.format);return`${N} ${o.rangeSeparator} ${q}`}else{let N=st(o,g.startDate,o.format);return o.showWeek&&(N=`${N} ${g.startArray[4]}`),N}}),w=t.computed(()=>{if(g.startDate===null)return null;if(E.value){let N=ee.date2Str(g.startDate),q=ee.date2Str(g.endDate??new Date);return[N,q]}else return ee.date2Str(g.startDate)}),f="fox-input-item",I=t.computed(()=>({[f]:!0,[`${f}__disabled`]:r.value})),B=Ne(t.computed(()=>o.textAlign),"textAlign"),O=t.computed(()=>({textAlign:B.value??"right"})),R=t.ref(!1),V=()=>{i.value||r.value||(R.value=!0)},$=()=>{R.value=!1},D=N=>{R.value=N},P=N=>{if(N){if(E.value&&Array.isArray(N)){let q=N[0],T=ce(q[0]),F=ce(q[1]),_=ce(q[2]),U=new Date(T,F-1,_),J=N[1];T=ce(J[0]),F=ce(J[1]),_=ce(J[2]);let Q=new Date(T,F-1,_);if(g.startDate=U,g.startArray=ct(U),g.endDate=Q,g.endArray=ct(Q),o.valueFormat){let le=st(o,U,o.valueFormat),se=st(o,Q,o.valueFormat);s("update:modelValue",[le,se],{})}else s("update:modelValue",[U,Q],{})}else{let q=N,T=ce(q[0]),F=ce(q[1]),_=ce(q[2]),U=new Date(T,F-1,_);if(g.startDate=U,g.startArray=ct(U),o.valueFormat){let J=st(o,U,o.valueFormat);s("update:modelValue",J,{})}else s("update:modelValue",U,{})}s("change",N,{})}},z=N=>{let T=N.target.value;p.value=!0,s("focus",T,N)},S=N=>{setTimeout(()=>{p.value=!1},0);let T=N.target.value;o.maxLength&&T.length>Number(o.maxLength)&&(T=T.slice(0,Number(o.maxLength))),s("blur",T,N)},x=t.computed(()=>Be(o.unit)>0),C=N=>{b(),s("update:modelValue",null,N),s("change","",N),s("clear","")},L=t.ref();return he({showPicker:V,hidePicker:$,focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()}}),()=>{const N={class:I.value,style:O.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:o.clearable,value:h.value,onClick:V,onFocus:z,onBlur:S,onClear:C},q={};l.slots.prepend&&(q.prepend=l.slots.prepend),l.slots.append&&(q.append=l.slots.append),l.slots.prefix?q.prefix=l.slots.prefix:q.prefix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.Calendar)}),l.slots.suffix?q.suffix=l.slots.suffix:x.value&&(q.suffix=()=>[o.unit]);const T=[],F=t.h(k.ElInput,N,q);T.push(F);const _={default:()=>T};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const U=pt(o,oo);U.visible=R.value,U["onUpdate:visible"]=D,U["default-value"]=w.value,U.onChoose=P;const J={};if(l.slots.btn){const ne=l.slots.btn();J.btn=()=>ne}l.slots.day&&(J.day=l.slots.day),l.slots.topInfo&&(J.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(J.bottomInfo=l.slots.bottomInfo);const Q=t.h(on,U,J);_.hide=()=>[Q];const se={...ve(o,ll),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,se,_)}}}}const{componentName:Yc,create:Wc,scope:Uc}=te("calendar-item"),lo=Wc(Kc(Yc,Uc,pe)),rl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Gc(e,n,a){return{props:{...ge,...Ce,...rl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0})),g=O=>{m.value=O,s("update:modelValue",O),s("change",O)};let b=ie(o,"hintText"),v=t.ref(!1);const h=O=>{let V=O.target.value;u.value=!0,ye(b.value)||(v.value=!0),s("focus",V,O)},w=O=>{setTimeout(()=>{v.value&&(v.value=!1),u.value=!1},0);let V=O.target.value;o.maxLength&&V.length>Number(o.maxLength)&&(V=V.slice(0,Number(o.maxLength))),s("blur",V,O)},f=()=>{s("clear","")},I=O=>{s("visible-change",O)},B=t.ref();return he({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const R={...l.attrs,ref:B,class:E.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":g,onClear:f,onFocus:h,onBlur:w,onVisibleChange:I},V={},$=[],D=t.h(k.ElTimePicker,R,V);$.push(D);const P={default:()=>$};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const S={...ve(o,rl),hintText:b.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(a,S,P)}}}}const{componentName:Xc,create:Zc,scope:Jc}=te("time-item"),ro=Zc(Gc(Xc,Jc,pe)),il={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qc(e,n,a){return{props:{...ge,...Ce,...il},emits:["change","update:modelValue","blur","focus","clear"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0})),g=B=>{m.value=B,s("update:modelValue",B),s("change",B)};let b=ie(o,"hintText"),v=t.ref(!1);const h=B=>{let R=B.target.value;u.value=!0,ye(b.value)||(v.value=!0),s("focus",R,B)},w=B=>{setTimeout(()=>{v.value&&(v.value=!1),u.value=!1},0);let R=B.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),s("blur",R,B)},f=()=>{s("clear","")},I=t.ref();return he({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const O={...l.attrs,ref:I,class:E.value,placeholder:d.placeholder.value,disabled:r.value,readonly:i.value,modelValue:m.value,"onUpdate:modelValue":g,onClear:f,onFocus:h,onBlur:w},R={},V=[],$=t.h(k.ElTimeSelect,O,R);V.push($);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const z={...ve(o,il),hintText:b.value,hintVisible:v.value,prop:`${o.prop}_item`};return t.h(a,z,D)}}}}const{componentName:eu,create:tu,scope:nu}=te("time-select-item"),io=tu(Qc(eu,nu,pe));function sl(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function cl(e,n,a=20){if(typeof n=="string"&&(n=ce(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Ho(`${e}`,`${n}`);return sl(o)}else{let o=Sn(`${e}`,Ko(`${n}`),20);return sl(o)}}function ou(e,n=-1,a=!1,o=3,l=","){return Ft(e,n,a,o,l)}function ul(e,n,a,o,l=!0){if(e=="")return"";if(e=Yo(e),n=ce(n),n==1)return e;if(o)e=cl(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(ce(a)+2,"0"):e=Sn(e,1,ce(a)));else{let r=-1*n;e=cl(e,r)}return e}function dl(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=oe(n.minInclude),l=vn(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=oe(n.maxInclude),l=vn(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const fl={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 au(e,n,a){return{props:{...ge,...Ce,...fl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=t.ref(!1),d=ie(o,"modelValue"),u=t.ref("");t.watch([()=>d.value,()=>o.rates,()=>o.precision],([S,x,C])=>{if(ye(S)){u.value="";return}const L=ul(S,x,C,!1);u.value!==L&&(u.value=L)},{immediate:!0});const m=t.computed(()=>{let S="";return c.value&&(S=u.value),S}),{t:p}=Ee.useFoxI18n(n),E=t.computed(()=>{let S=o.placeholder??"";return!c.value&&!ye(u.value)?S=ou(u.value,o.decimalLength,o.autoPadding,o.digits,o.separator):S=p(["placeholder",S]),S}),g=e,b=t.computed(()=>({[g]:!0,[`${g}__disabled`]:r.value,[`${g}__placeholder`]:u.value.length>0})),v=Ne(t.computed(()=>o.textAlign),"textAlign");t.computed(()=>c.value?{textAlign:"left"}:{textAlign:v.value??"right"});const h=t.ref(""),w=t.computed(()=>{let S=h.value;return ye(S)&&(S=o.errorTip??""),S}),f=t.ref(""),I=t.ref(!1),B=(S,x)=>{if(S=`${S}`,ye(S)){u.value="",d.value="",x.forEach(C=>{s(C,"")}),oe(o.showTip)&&I.value&&(I.value=!1);return}if(S.length>=2){let C=S;if(C.charAt(0)=="-"&&(C=C.substring(1)),C.length>=2&&C.charAt(0)=="0"&&C.charAt(1)!="."){t.triggerRef(u);return}}if(S!="-"){if(!na(S)){t.triggerRef(u);return}if(o.integerLength!=-1&&oa(S)>Number(o.integerLength)){t.triggerRef(u);return}if(o.decimalLength&&o.decimalLength!=-1&&aa(S)>Number(o.decimalLength)){t.triggerRef(u);return}let C=dl(S,o);if(C.maxValid===!1){h.value=C.message,t.triggerRef(u);return}}else if(o.min!=null&&ce(o.min)>=0){t.triggerRef(u);return}f.value=S,oe(o.showTip)&&(I.value=S.length>0),u.value=S,d.value=ul(S,o.rates,o.precision,!0),x.forEach(C=>{s(C,d.value)})},O=S=>{B(S,["update:modelValue","input"])},R=S=>{B(S,["update:modelValue","change"])},V=S=>{if(c.value=!0,oe(o.showTip)){let x=u.value;ye(x)&&(x=o.hintText),ye(x)||(f.value=x,I.value=!0)}h.value="",s("focus",d.value,S)},$=S=>{if(setTimeout(()=>{c.value=!1,oe(o.showTip)&&I.value===!0&&(I.value=!1)},0),!ye(u.value)){let x=dl(u.value,o);if(x.minValid===!1||x.maxValid===!1){h.value=x.message;return}}s("update:modelValue",d.value,S),s("blur",d.value,S)},D=()=>{s("clear","")},P=t.computed(()=>Be(o.unit)>0),z=t.ref();return he({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const x={...je(l.attrs),ref:z,class:b.value,type:"digit",maxlength:o.maxLength,placeholder:E.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:D,onInput:O,onChange:R,onFocus:V,onBlur:$},C={};l.slots.prepend&&(C.prepend=l.slots.prepend),l.slots.append&&(C.append=l.slots.append),l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.suffix?C.suffix=l.slots.suffix:P.value&&(C.suffix=()=>[o.unit]);const L=[],N=t.h(k.ElInput,x,C);L.push(N);const q={default:()=>L};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const F={...ve(o,fl),errorTip:w.value,hintText:f.value,hintVisible:I.value,hintType:"number",prop:`${o.prop}_item`};return t.h(a,F,q)}}}}const{componentName:lu,create:ru,scope:iu}=te("money-item"),so=ru(au(lu,iu,pe)),ml={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 su(e,n,a){return{props:{...ge,...Ce,...ml},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0,[`${p}__append`]:O.value})),g=t.computed(()=>({[`${p}__unit`]:!0})),b=V=>{m.value=V,s("update:modelValue",V),s("input",V)},v=V=>{s("change",V)};let h=ie(o,"hintText"),w=t.ref(!1);const f=V=>{let D=V.target.value;u.value=!0,ye(h.value)||(w.value=!0),s("focus",D,V)},I=V=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let D=V.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),s("blur",D,V)},B=()=>{s("clear","")},O=t.computed(()=>Be(o.unit)>0),R=t.ref();return he({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const $={...je(l.attrs),ref:R,class:E.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,"adjust-position":o.adjustPosition,"always-system":o.alwaysSystem,onClear:B,onChange:v,onInput:b,onFocus:f,onBlur:I},D={},P=[],z=t.h(k.ElInputNumber,$,D);P.push(z);const S={default:()=>P};l.slots.default&&(S.label=l.slots.default),l.slots.fixedTip&&(S.fixedTip=l.slots.fixedTip);const C={...ve(o,ml),hintText:h.value,hintVisible:w.value,prop:`${o.prop}_item`};if(l.slots.append)S.append=l.slots.append;else if(O.value){const N={class:g.value},q=t.h("div",N,[o.unit]);S.append=()=>q}return t.h(a,C,S)}}}}const{componentName:cu,create:uu,scope:du}=te("input-number-item"),co=uu(su(cu,du,pe));function $t(e,n){const a=e.textKey??"text";return n[a]??""}function Dt(e,n){const a=e.valueKey??"value";return n[a]}function hl(e,n){const a=e.childrenKey??"children";return n[a]}function an(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=$t(e,l),i=Dt(e,l);a.texts.push(r),a.values.push(i??"")}return a}function gl(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if($t(e,n[i])===r){const c=Dt(e,n[i])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const u=hl(e,n[i]);Array.isArray(u)&&gl(e,u,a,o+1,l);return}}function pl(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(Dt(e,n[i])===r){const c=$t(e,n[i])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const u=hl(e,n[i]);Array.isArray(u)&&pl(e,u,a,o+1,l);return}}function uo(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=$t(e,n[o]),r=$t(e,a[o]);if(l!==r)return!1;const i=Dt(e,n[o]),s=Dt(e,a[o]);if(i!==s)return!1}return!0}let fu=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Re(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function mu(){const e=t.getCurrentInstance();return new fu(e.proxy)}const ln=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:i="children"}=a??{},{[l]:s,[r]:c,[i]:d,...u}=o,m={loading:!1,...u,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:d,_parent:n};return m.children&&m.children.length&&(m.children=ln(m.children,m,a)),m}),yl=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&yl(o.children,n)},hu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},gu=(e,n)=>{const a={...hu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:i}=a;let s=[],c={};return e.forEach(d=>{d={...d};const{[l]:u,[r]:m}=d,p=c[m]=c[m]||[];!s.length&&m===o&&(s=p),p.push(d),d.children=c[u]||(c[u]=[])}),i&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((u,m)=>u[i]-m[i])}),c=null,s},pu=/scroll|auto|overlay/i,yu=window;function bu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bl(e,n=yu){let a=e;for(;a&&a!==n&&bu(a);){const{overflowY:o}=window.getComputedStyle(a);if(pu.test(o))return a;a=a.parentNode}return n}const{create:wu}=te("sticky"),Su=wu({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),s=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!a.value&&!d)return;const u=Ue(a),m=o.value,p=Ue(m),E=Ue(d);l.height=u.height;const g=()=>{let v=!1;if(e.position==="top")v=d?r.value>u.top&&E.bottom>0:r.value>u.top;else{const h=document.documentElement.clientHeight;v=d?E.bottom>0&&h-r.value-p.height>E.top:h-r.value<u.bottom}return v},b=()=>{if(d)if(e.position==="top"){const v=E.bottom-r.value-p.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,h=E.bottom-(v-r.value);return h<0?h:0}return 0};l.transform=b(),l.fixed=g()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),bl(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{bl(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:i,stickyRef:o,stickyStyle:s}}});function vu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Et=de(Su,[["render",vu]]),Cu=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let p=await o(l,a);r.value.width=p.width||0,r.value.height=p.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=Xn();let d="";const u=(p,E)=>{let g=p;switch(e.direction=="horizontal"?(d=p>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=E>0?"bottom":"top",g=E,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,s.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,s.moving=!1);break}s.offset=g};return{touchMethods:{onTouchStart(p){e.swipeable&&c.start(p)},onTouchMove(p){e.swipeable&&(c.move(p),s.moving=!0,u(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(p.preventDefault(),p.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(p.preventDefault(),p.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,d){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:l}};class ku{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Tu}=te("ext-tabs"),$u=Tu({components:{[Et.name]:Et,JoySmile:cs},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=$=>{$.forEach((D,P)=>{let z=D.type;if(z=z.name||z,z=="fox-ext-tab-pane"){let S=new ku;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let x=nt(D.props?.["pane-key"]),C=x=="number"||x=="string"?String(D.props?.["pane-key"]):null,L=nt(D.props?.paneKey),N=L=="number"||L=="string"?String(D.props?.paneKey):null;S.title=D.props?.title,S.paneKey=C||N||String(P),S.disabled=D.props?.disabled}r.value.push(S)}else{if(D.children==" ")return;Array.isArray(D.children)&&i(D.children)}})},s=t.ref(e.modelValue||0),c=$=>{let D=r.value.findIndex(P=>P.paneKey==$);r.value.length==0||D==-1||(s.value=D)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),u=t.ref(),m=t.ref([]),p=$=>{const D=u.value,P=m.value;if(!D||!P||!P[s.value])return;const z=P[s.value];let S=0;e.direction==="vertical"?S=z.offsetTop-D.offsetTop+10-(D.offsetHeight-z.offsetHeight)/2:S=z.offsetLeft-(D.offsetWidth-z.offsetWidth)/2,E(D,S,$?0:.3,e.direction)},E=($,D,P,z)=>{let S=0;const x=z==="horizontal"?$.scrollLeft:$.scrollTop,C=P===0?1:Math.round(P*1e3/16);function L(){z==="horizontal"?$.scrollLeft+=(D-x)/C:$.scrollTop+=(D-x)/C,++S<C&&Wo(L)}L()},g=($=a.default?.())=>{r.value=[],$=$?.filter(D=>typeof D.children!="string"),$&&$.length&&i($),c(e.modelValue),t.nextTick(()=>{p()})},b=$=>{l=$.fixed};t.watch(()=>a.default?.(),$=>{g($)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,$=>{if(c($),p(),l){let D=Ue(o.value).top+v(),P=Math.ceil(D-e.top);window.scrollTo({top:P,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const h={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,h.updateValue(r.value[s.value])},prev:()=>{s.value-=1,h.updateValue(r.value[s.value])},updateValue:$=>{n("update:modelValue",$.paneKey),n("change",$)},tabChange:($,D)=>{n("click",$),!($.disabled||s.value==D)&&(s.value=D,h.updateValue($))},setTabItemRef:($,D)=>{m.value[D]=$}},{tabsContentRef:w,touchState:f,touchMethods:I}=Cu(e,h),B=t.computed(()=>{let $=s.value*100;f.moving&&($+=f.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${$}%, 0, 0)`:`translate3d( 0,-${$}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),O=t.computed(()=>({background:e.background})),R=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const $=Se(e.titleGutter);return e.direction==="vertical"?{marginTop:$,marginBottom:$}:{marginLeft:$,marginRight:$}});return{navRef:u,tabsContentRef:w,titles:r,contentStyle:B,tabsNavStyle:O,titleStyle:V,tabsActiveStyle:R,container:o,getScrollY:d,onStickyScroll:b,...h,...I}}}),Du=["onClick"],Eu=["onClick"];function xu(e,n,a,o,l,r){const i=t.resolveComponent("JoySmile"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Du))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:u=>e.setTabItemRef(u,d)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,Eu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const xt=de($u,[["render",xu]]),{create:Nu}=te("ext-tab-pane"),Vu=Nu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Iu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Nt=de(Vu,[["render",Iu]]);class wl{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=ln(n,null,this.config)}updateChildren(n,a){a?a.children=ln(n,a,this.config):this.nodes=ln(n,null,this.config)}getNodeByValue(n){let a;return yl(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:Bu,scope:Au}=te("cascader-pane"),Ou=Bu({components:{Loading:ls,Checklist:ys,[xt.name]:xt,[Nt.name]:Nt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const a=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),l=t.ref(!1),r=t.ref(e.modelValue),i=t.ref(new wl([],{})),s=t.ref([]),c=t.computed(()=>a.value.lazy&&!!a.value.lazyLoad),d=new Map;let u;const m=async()=>{d.clear(),s.value=[],o.value=0,l.value=!1,u=null;let{options:h}=e;a.value.convertConfig&&(h=gu(h,a.value.convertConfig)),i.value=new wl(h,{value:a.value.valueKey,text:a.value.textKey,children:a.value.childrenKey}),c.value&&!i.value.nodes.length&&await E({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],p()},p=async()=>{const h=r.value;if(h===void 0||!i.value.nodes.length)return;if(h.length===0){o.value=0,s.value=[{nodes:i.value.nodes,selectedNode:null}];return}let w=h;if(c.value&&Array.isArray(h)&&h.length){w=[];let f=i.value.nodes.find(I=>I.value===h[0]);if(f){w=[f.value],l.value=!0;const I=await h.slice(1).reduce(async(B,O)=>{const R=await B;await E(R);const V=R?.children?.find($=>$.value===O);return V&&w.push(O),Promise.resolve(V)},Promise.resolve(f));await E(I),l.value=!1}}w.length&&h===e.modelValue&&i.value.getPathNodesByValue(w).map((I,B)=>{o.value=B,v.handleNode(I,!0)})},E=async h=>{if(!h)return;if(!a.value.lazyLoad){h.leaf=!0;return}if(i.value.isLeaf(h,c.value)||i.value.hasChildren(h,c.value))return;h.loading=!0;const w=h.root?null:h;let f=d.get(h);f||(f=new Promise(B=>{a.value.lazyLoad?.(h,B)}),d.set(h,f));const I=await f;Array.isArray(I)&&I.length>0?i.value.updateChildren(I,w):h.leaf=!0,h.loading=!1,d.delete(h)},g=h=>{const w=h.map(f=>f.value);r.value=w,n("change",w,h),n("update:modelValue",w,h)},{t:b}=Ee.useFoxI18n(Au),v={async handleNode(h,w){const{disabled:f,loading:I}=h;if(!(!w&&f||!s.value[o.value])){if(i.value.isLeaf(h,c.value)){if(h.leaf=!0,s.value[o.value].selectedNode=h,s.value=s.value.slice(0,h.level+1),!w){const B=s.value.map(O=>O.selectedNode);g(B),n("pathChange",B)}return}if(i.value.hasChildren(h,c.value)){const B=h.level+1;if(s.value[o.value].selectedNode=h,s.value=s.value.slice(0,B),s.value.push({nodes:h.children||[],selectedNode:null}),o.value=B,!w){const O=s.value.map(R=>R.selectedNode);n("pathChange",O)}return}u=h,!I&&(await E(h),u===h&&(s.value[o.value].selectedNode=h,v.handleNode(h,w)))}},handleTabClick(h){u=null,o.value=Number(h.paneKey)},formatTabTitle(h){return h.selectedNode?h.selectedNode.text:b("select")},isSelected(h,w){return h.selectedNode&&h.selectedNode.value===w.value}};return t.watch([a,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,h=>{h!==r.value&&(r.value=h,p())}),t.watch(()=>e.visible,h=>{h&&Array.isArray(r.value)&&r.value.length>0&&p()}),{panes:s,initLoading:l,tabsCursor:o,...v}}}),Ru={role:"menu",class:"fox-cascader__pane"},Fu=["aria-checked","aria-disabled","onClick"],Lu={class:"fox-cascader__item__title"},Mu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Pu(e,n,a,o,l,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-ext-tab-pane"),d=t.resolveComponent("fox-ext-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(u),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Ru,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,p=>(t.openBlock(),t.createElementBlock("view",{key:p.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,p),disabled:p.disabled}]),"aria-checked":e.isSelected(u,p),"aria-disabled":p.disabled||void 0,role:"menuitemradio",onClick:E=>e.handleNode(p,!1)},[t.createElementVNode("view",Lu,t.toDisplayString(p.text),1),p.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Fu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Mu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Sl=de(Ou,[["render",Pu]]),{create:qu}=te("cascader-picker"),zu=qu({components:{[Sl.name]:Sl,[_e.name]:_e},props:{...Un,modelValue:{type:[Array,String]},visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue||[]),o=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),l=(i,s)=>{a.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),ju=["innerHTML"];function _u(e,n,a,o,l,r){const i=t.resolveComponent("fox-cascader-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,ju)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const rn=de(zu,[["render",_u]]),vl={modelValue:{type:[Array,String]},pathNodes:{type:[Array],required:!1},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function Hu(e,n,a){return{props:{...ge,...Ce,...vl},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","pathChange"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]);let u=ie(o,"hintText"),m=t.ref(!1);const p=t.ref(!1),E=mu(),g=t.ref([]);t.watch([()=>o.source,()=>o.params],async([L,N])=>{L&&(g.value=await E.load(L,N))},{immediate:!0});const b=t.ref([]),v=t.computed(()=>Array.isArray(b.value)?b.value.join(" "):b.value),h=t.ref([]),w=t.ref([]);t.watch([()=>o.modelValue,g],async([L,N])=>{if(o.lazy===!0){w.value.length==0&&(b.value=Array.isArray(L)?L:[],h.value=Array.isArray(L)?L:[]);return}if(o.valueType==="item"){let q=L;if(!uo(o,q,w.value)){w.value=q;let T=an(o,q);b.value=T.texts,h.value=T.values}}else if(o.valueType==="text"){let q=L,T=[];if(gl(o,N,q,0,T),!uo(o,T,w.value)){w.value=T;let F=an(o,T);q.value=F.texts,h.value=F.values}}else{let q=L,T=[];if(pl(o,N,q,0,T),!uo(o,T,w.value)){w.value=T;let F=an(o,T);b.value=F.texts,q.value=F.values}}});const f=e,I=t.computed(()=>({[f]:!0})),B=Ne(t.computed(()=>o.textAlign),"textAlign"),O=t.computed(()=>({textAlign:B.value??"right"})),R=t.ref(!1),V=()=>{r.value===!0||i.value===!0||(R.value=!0)},$=L=>{R.value=L},D=(L,N)=>{let q=N.map(F=>{if(F==null)return F;let _={...F};return Reflect.deleteProperty(_,"text"),_[o.textKey]=F.text??"",Reflect.deleteProperty(_,"value"),_[o.valueKey]=F.value??"",_});w.value=q;let T=an(o,q);b.value=T.texts,h.value=T.values,o.valueType==="text"?(s("change",b.value,q),s("update:modelValue",b.value)):o.valueType==="item"?(s("change",q,q),s("update:modelValue",q)):(s("change",h.value,q),s("update:modelValue",h.value)),s("update:pathNodes",q)},P=L=>{let N=L.map(q=>{if(q==null)return q;let T={...q};return Reflect.deleteProperty(T,"text"),T[o.textKey]=q.text??"",Reflect.deleteProperty(T,"value"),T[o.valueKey]=q.value??"",T});s("pathChange",N)},z=L=>{p.value=!0,s("focus",h.value,L)},S=L=>{setTimeout(()=>{p.value=!1},0),s("blur",h.value,L)},x=t.computed(()=>Be(o.unit)>0);t.computed(()=>o.clearable&&!r.value&&!i.value);const C=t.ref();return he({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},select:()=>{C?.value.select()}}),()=>{const L={class:I.value,style:O.value,type:"text",maxlength:o.maxLength,placeholder:d.placeholder.value,readonly:!0,value:v.value,onClick:V,onFocus:z,onBlur:S},N={};l.slots.prepend&&(N.prepend=l.slots.prepend),l.slots.append&&(N.append=l.slots.append),l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.suffix?N.suffix=l.slots.suffix:x.value?N.suffix=()=>[o.unit]:N.suffix=()=>t.h(k.ElIcon,{},{default:()=>t.h(ke.ArrowDown)});const q=[],T=t.h(k.ElInput,L,N);q.push(T);const F={default:()=>q};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);let _={};_.visible=R.value,_["onUpdate:visible"]=$,_.modelValue=h.value,_.onChange=D,_.onPathChange=P,_.options=g.value,_.title=o.title,_.lazy=o.lazy,_.lazyLoad=o.lazyLoad,_.valueKey=o.valueKey,_.textKey=o.textKey,_.childrenKey=o.childrenKey,_.convertConfig=o.convertConfig;const U=t.h(rn,_);F.hide=()=>[U];const Q={...ve(o,vl),hintText:u.value,hintVisible:m.value,prop:`${o.prop??l.attrs.name}_item`};return t.h(a,Q,F)}}}}const{componentName:Ku,create:Yu,scope:Wu}=te("cascader-item"),fo=Yu(Hu(Ku,Wu,pe)),Cl={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Uu(e,n,a){return{props:{...ge,...Ce,...Cl},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),{toLocaleRefs:c}=Ee.useFoxI18n(n),d=c(o,["placeholder"]),u=t.ref(!1),m=ie(o,"modelValue"),p=e,E=t.computed(()=>({[p]:!0})),g=R=>{m.value=R,s("update:modelValue",R),s("input",R)},b=R=>{s("change",R)},v=R=>{s("select",R)};let h=ie(o,"hintText"),w=t.ref(!1);const f=R=>{let $=R.target.value;u.value=!0,ye(h.value)||(w.value=!0),s("focus",$,R)},I=R=>{setTimeout(()=>{w.value&&(w.value=!1),u.value=!1},0);let $=R.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),s("blur",$,R)},B=()=>{s("clear","")},O=t.ref();return he({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const V={...l.attrs,ref:O,class:E.value,placeholder:d.placeholder.value,clearable:o.clearable,disabled:r.value,readonly:i.value,modelValue:m.value,onClear:B,onChange:b,onInput:g,onFocus:f,onBlur:I,onSelect:v},$={};l.slots.prepend&&($.prepend=l.slots.prepend),l.slots.append&&($.append=l.slots.append),l.slots.prefix&&($.prefix=l.slots.prefix),l.slots.suffix&&($.suffix=l.slots.suffix),l.slots.option&&($.default=l.slots.option);const D=[],P=t.h(k.ElAutocomplete,V,$);D.push(P);const z={default:()=>D};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const x={...ve(o,Cl),hintText:h.value,hintVisible:w.value,prop:`${o.prop}_item`};return t.h(a,x,z)}}}}const{componentName:Gu,create:Xu,scope:Zu}=te("autocomplete-item"),mo=Xu(Uu(Gu,Zu,pe));function Ju(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],m=c.find(p=>p[o]===u);if(!m)break;i.push(m[a])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],u=r[c];const m=d.find(p=>p[o]===u);if(!m)break;i.push(m[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let u=r[d],m=c.find(p=>p[o]===u);if(!m)break;i.push(m[a]),c=m[l]}}return i}let Qu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function ed(){const e=t.getCurrentInstance();return new Qu(e.proxy)}const kl={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 td(e,n){return{props:{...kl},setup(a,{attrs:o,slots:l}){const r=ed(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([d,u])=>{i.value=await r.load(a.sourceType,d,u)},{immediate:!0});const s=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Ju(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return d.length==0?a.emptyText??"":d.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${d[0]}`:d[0]:d.join(a.separator)}),c=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const d={...o};return l.default?l.default({text:s.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===s.value?t.h(a.emptyTag??"span",{...o,class:a.emptyClass},s.value):t.h(c,d,{default:()=>s.value}):t.h(c,d,s.value)}}}}const{componentName:Xm,create:nd,scope:Zm}=te("mapping"),Vt=nd(td());function od(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let d=r.substring(s+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(i==0){let m=r.substring(0,s);o=o[m][u]}else o=o[u];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function ad(e,n){return{props:{...kl},setup(a,{attrs:o,slots:l}){return()=>{const r={default:i=>{const s=od(i.row,i.column.property);return l.default?t.h(Vt,{...a,modelValue:s},{default:l.default}):t.h(Vt,{...a,modelValue:s})}};return t.h(k.ElTableColumn,{...o},r)}}}}const{componentName:Jm,create:ld,scope:Qm}=te("table-mapping-column"),ho=ld(ad()),rd=Symbol.for("TableStateKey");function Tl(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let d=r.substring(s+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(i==0){let m=r.substring(0,s);o=o[m][u]}else o=o[u];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function id(e,n){return{props:{},setup(a,{attrs:o}){const l=t.inject(rd,{});return()=>{const r=l.currentRow?l.currentRow.value:null,i={default:s=>{const c=Tl(s.row,s.column.property),d=r?Tl(r,s.column.property):null,u=c===d,m={class:{"el-radio__input":!0,"is-checked":u}},p=t.h("span",m,[t.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":u}};return t.h("label",E,[p])}};return t.h(k.ElTableColumn,{...o},i)}}}}const{componentName:eh,create:sd,scope:th}=te("table-radio-column"),go=sd(id()),cd={},ud={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"},dd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function fd(e,n){return t.openBlock(),t.createElementBlock("svg",ud,dd)}const md=de(cd,[["render",fd]]),{componentName:oh,create:hd,scope:ah}=te("table-setting"),gd={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:"不固定"}},pd=hd({components:{FoxPopover:k.ElPopover,FoxCheckbox:k.ElCheckbox,FoxCheckboxGroup:k.ElCheckboxGroup,FoxButton:k.ElButton,FoxIcon:k.ElIcon,DragIcon:md,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...gd},emits:["update:modelValue","change","close"],setup(e,{emit:n,attrs:a}){let o=[];const l=t.ref([]),r=t.computed(()=>l.value.filter(T=>T.label===""||T.type?!1:T.fixed===""||T.fixed===!0||T.fixed==="left")),i=t.computed(()=>l.value.filter(T=>T.label===""||T.type?!1:T.fixed==="right")),s=t.computed(()=>l.value.filter(T=>!(T.label===""||T.type||T.fixed!==void 0))),c=t.computed(()=>(r.value.length>0||i.value.length>0)&&s.value.length>0),d=t.computed(()=>r.value.length>0),u=t.computed(()=>i.value.length>0),m=T=>T.length>1,p=T=>{const F=[];l.value=T.map((U,J)=>(!(U.label===""||U.type)&&U.visible!==!1&&F.push(U.prop),{...U,sortIndex:J})),s.value.length+r.value.length+i.value.length===F.length?w.value=!0:F.length>0&&(f.value=!0),O.value=F},E=T=>T?T.type?T.type:T.label?T.prop:"":"",g=(T,F)=>{if(T.length!==F.length)return!1;const _=T.map(U=>E(U));for(let U of F){const J=E(U);if(_.indexOf(J)===-1)return!1}return!0},b=T=>{if(!T){const F=e.tableRef.getColumnSetting(),_=F.srcColumnPropertyList;o=_.map((U,J)=>({...U,sortIndex:J})),T=F.columnPropertyList,T&&T.length>0&&g(_,T)||(T=_)}p(T)},v=()=>{e.tableRef.setColumnSetting(l.value)},h=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=t.ref(!1),f=t.ref(!1),I=T=>{const F=[];l.value.forEach(U=>{T&&!(U.label===""||U.type)&&F.push(U.prop),U.visible=T}),w.value=!1,f.value=!1,s.value.length+r.value.length+i.value.length===F.length?w.value=!0:F.length>0&&(f.value=!0),O.value=F,v()},B=()=>{b(o),v()},O=t.ref([]),R=T=>{l.value.forEach(_=>{if(_.label===""||_.type)return;const U=T.indexOf(_.prop)!==-1;_.visible=U}),w.value=!1,f.value=!1;const F=s.value.length+r.value.length+i.value.length;T.length===F?w.value=!0:T.length>0&&(f.value=!0),v()},V=()=>{b()};t.onMounted(()=>{setTimeout(()=>{b()},50)});const $={currentRow:null,index:null,roleType:null},D=T=>T?T.dataset&&T.dataset.role==="row"?T:T.tagName.toLowerCase()!=="body"?(T=T.parentElement,D(T)):null:null;return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:c,isShowLeftFixedTitle:d,isShowRightFixedTitle:u,isDraggble:m,isCheckAll:w,isIndeterminate:f,handleCheckAllChange:I,handleReset:B,checkedValue:O,handleCheckChange:R,onShow:V,onDragStart:T=>{const F=T.currentTarget;F&&F.dataset&&($.roleType=F.dataset.roleType,$.index=F.dataset.index)},onDragEnd:T=>{$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null),$.index=null,$.roleType=null},onDragOver:T=>{const F=T.currentTarget;T.relatedTarget;const _=D(F);if(!_)return;const U=_.dataset&&_.dataset.roleType;$.roleType===U&&(T.preventDefault(),$.currentRow&&$.currentRow!==_&&$.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),$.currentRow=_)},onDragLeave:T=>{T.preventDefault(),$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null)},onDrop:T=>{const F=T.currentTarget,_=D(F);if(!_)return;const U=_.dataset&&_.dataset.roleType;if($.roleType!==U)return;T.preventDefault();const J=Number($.index),Q=Number(_.dataset.index);if(J!==Q){if(J<Q){const le=l.value[J];l.value.splice(J,1),l.value.splice(Q,0,le)}else{const le=l.value[J];l.value.splice(J,1),l.value.splice(Q+1,0,le)}p(l.value),v()}},toLeftFixed:T=>{const F=l.value[T];F.fixed="left",v()},toRightFixed:T=>{const F=l.value[T];F.fixed="right",v()},toUnFixed:T=>{const F=l.value[T];F.fixed=void 0,v()},checkboxLabelStyle:h}}}),yd={class:"fox-table-setting"},bd={class:"fox-table-setting__header"},wd={class:"fox-table-setting__body"},Sd={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},vd={key:0,class:"fox-table-setting__body-title"},Cd=["data-index","draggable"],kd={class:"tools-item"},Td={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},$d={key:0,class:"fox-table-setting__body-title"},Dd=["data-index","draggable"],Ed={class:"tools-item"},xd={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Nd={key:0,class:"fox-table-setting__body-title"},Vd=["data-index","draggable"],Id={class:"tools-item"};function Bd(e,n,a,o,l,r){const i=t.resolveComponent("FoxCheckbox"),s=t.resolveComponent("FoxButton"),c=t.resolveComponent("DragIcon"),d=t.resolveComponent("RefreshLeft"),u=t.resolveComponent("FoxIcon"),m=t.resolveComponent("fox-tooltip"),p=t.resolveComponent("Download"),E=t.resolveComponent("fox-checkbox"),g=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",yd,[t.createElementVNode("div",bd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",wd,[t.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[16]||(n[16]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Sd,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",vd,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[1]||(n[1]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[2]||(n[2]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[3]||(n[3]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[4]||(n[4]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[5]||(n[5]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",kd,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toRightFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Cd))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Td,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",$d,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[6]||(n[6]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[7]||(n[7]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[8]||(n[8]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[9]||(n[9]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[10]||(n[10]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Ed,[t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedRightText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toRightFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Dd))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",xd,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Nd,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,v=>(t.openBlock(),t.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[11]||(n[11]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[12]||(n[12]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[13]||(n[13]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[14]||(n[14]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[15]||(n[15]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(c,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(E,{class:"checkbox-item",label:v.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(v.label),5)]),_:2},1032,["label"]),t.createElementVNode("div",Id,[t.createVNode(m,{content:e.unFixedText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toUnFixed(v.sortIndex)},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),t.createVNode(m,{content:e.fixedLeftText,placement:"top"},{default:t.withCtx(()=>[t.createVNode(u,{onClick:h=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Vd))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const sn=de(pd,[["render",Bd]]);let Ad=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,i,s){if(Array.isArray(a)){let d=(o-1)*l,u=d+l;u>a.length&&(u=a.length);const m=a.slice(d,u);return{totalSize:a.length,page:m}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,i,s]);const c=Re(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r,i,s]))}};function Od(){const e=t.getCurrentInstance();return new Ad(e.proxy)}class Rd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const o=Re(this.proxy,"tableSetting");return typeof o=="function"&&(a=await Reflect.apply(o,null,["load",n])),a}save(n,a){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["save",n,a])}remove(n){const a=Re(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function Fd(){const e=t.getCurrentInstance();return new Rd(e.proxy)}const Ld=Symbol.for("TableStateKey");function Md(e,n){let a=n.split("."),o=e;for(let l=0;l<a.length;l++){let r=a[l],i=0,s=r.indexOf("["),c=s==-1?-1:r.indexOf("]",s);for(;s!==-1&&c!==-1;){let d=r.substring(s+1,c);if(/^\d+$/.test(d)){let u=parseInt(d);if(i==0){let m=r.substring(0,s);o=o[m][u]}else o=o[u];i++}s=r.indexOf("[",c),c=s==-1?-1:r.indexOf("]",s)}i===0&&(o=o[r])}return o}function po(e,n){return e.filter(o=>{for(let l in n){const r=n[l],i=Md(o,l);if(r!==i)return!1}return!0})}const $l={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Dl={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},yo={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Pd(e,n,a){return{inheritAttrs:!1,props:{...ge,...Ce,...$l,...Dl,...yo},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(o,l){const{locale:r}=Ee.useFoxI18n(n),{emitEvent:i}=we({componentName:e,validateHandler:{getValue(...M){return f.value}}},o.prop??l.attrs.name),s=e,c=t.computed(()=>({[s]:!0})),d=t.computed(()=>({[`${s}__setting`]:!0})),u=t.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${o.footerAlign}`]:!0})),m=t.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${o.paginationAlign}`]:!0})),p=t.ref(o.pageIndex);t.watch(()=>o.pageIndex,M=>{p.value=M});const E=M=>{p.value=M,i("page-index-change",M)},g=t.ref(o.pageSize);t.watch(()=>o.pageSize,M=>{g.value=M});const b=M=>{g.value=M,i("page-size-change",M)},v=t.shallowRef({}),h=t.computed(()=>({...v.value,...o.params??{},...o.baseParams??{}})),w=t.ref(0),f=t.ref(),I=Od();let B=!0;const O=()=>Array.isArray(o.data)||typeof o.data=="function"?!0:oe(o.autoLoad),R=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,M=>oe(M)),V=async(M,K,Y,X)=>{try{const re=await I.load("table",M,K,Y,X,B,r.value);w.value=re.totalSize,f.value=re.page}catch(re){console.error("[FoxUI] Load Table Data Fail",re),w.value=0,f.value=[]}B=!1,setTimeout(()=>{i("loaded-data")},250)};t.watch([p,g],([M,K],[Y,X])=>{K!==X&&(p.value=1,M=1),V(o.data,M,K,h.value)}),t.watch([()=>o.data,h],([M,K],[Y,X])=>{O()&&(M!==Y&&(B=!0),!(!Array.isArray(M)&&Pe(M,Y)&&Pe(K,X))&&V(M,p.value,g.value,K))},{deep:!0});const $=(M={},K=!1)=>new Promise(Y=>{v.value=t.toRaw(M??{}),t.triggerRef(v),K||(p.value=o.pageIndex??1),t.nextTick(async()=>{await V(o.data,p.value,g.value,h.value),Y()})}),D=()=>{w.value=0,f.value=[]};let P=!1;const z=()=>{P||(P=!0,$())};O()&&!R.value&&$();const S=t.ref(null);t.provide(Ld,{currentRow:S});const x=(M,K)=>{S.value=M,i("current-change",M,K)},C=(M,K,Y)=>{i("row-click",M,K,Y),oe(o.rowClickSelectable)===!0&&H?.value.toggleRowSelection(M)},L=[],N=(M,K)=>{if(i("expand-change",M,K),oe(o.uniqueExpansion))if(Array.isArray(K)&&K.length==0){const Y=L.length;L.splice(0,Y)}else{L.forEach(X=>{X!==M&&H?.value.toggleRowExpansion(X,!1)});const Y=L.length;L.splice(0,Y,M)}},q=l.attrs.id??o.prop??l.attrs.name,T=Fd(),F=t.ref([]);let _=[];const U=()=>({srcColumnPropertyList:_.map(K=>({...K})),columnPropertyList:F.value}),J=M=>{F.value=[...M],le()},Q=async()=>{const M=await T.load(q);M&&(F.value=M)},le=()=>{T.save(q,F.value)},se=()=>{T.remove(q)};Q();const Z=M=>M?M.type?M.type:M.label?M.prop:"":"",ne=t.computed(()=>{if(typeof l.slots.default=="function"){const M=l.slots.default(),K=new Map;if(_=[],M.forEach(Y=>{const X=Y;if(!X.props)return;const re=Z(X.props);K.set(re,Y);const fe={label:"",prop:""};Object.assign(fe,X.props),_.push(fe)}),F.value.length===_.length){const Y=[];for(let X of F.value){const re=Z(X),fe=K.get(re);if(!fe)return M;if(X.visible===!1)continue;const Ie=fe;Ie.props.fixed=X.fixed,Y.push(Ie)}return Y}return M}return[]}),j=t.shallowRef(new Map),W=({column:M,rowIndex:K})=>{const Y=`${K}_${M.property}`;return j.value.get(Y)??""},G=M=>typeof M=="function"?K=>{const Y=[];let X=W(K);return X&&Y.push(X),X=M(K),X&&Y.push(X),Y.length===0?"":Y.join(" ")}:W,A=(M,K,Y)=>{const X=`${M}_${K}`;Y?j.value.set(X,Y):j.value.delete(X),t.triggerRef(j)},H=t.ref();return he({clearSelection:()=>H?.value.clearSelection(),getSelectionRows:()=>H?.value.getSelectionRows(),toggleRowSelection:(M,K)=>{H?.value.toggleRowSelection(M,K)},toggleRowSelectionByProp:(M,K)=>{if(!f.value)return;const Y=po(f.value,M);Y.length!==0&&Y.forEach(X=>{H?.value.toggleRowSelection(X,K)})},toggleAllSelection:()=>{H?.value.toggleAllSelection()},toggleRowExpansion:(M,K)=>{H?.value.toggleRowExpansion(M,K)},toggleRowExpansionByProp:(M,K)=>{if(!f.value)return;const Y=po(f.value,M);Y.length!==0&&Y.forEach(X=>{H?.value.toggleRowExpansion(X,K)})},setCurrentRow:M=>{H?.value.setCurrentRow(M)},setCurrentRowByProp:M=>{if(!f.value)return;const K=po(f.value,M);K.length!==0&&H?.value.setCurrentRow(K[0])},getCurrentRow:()=>S.value,clearSort:()=>{H?.value.clearSort()},clearFilter:M=>{H?.value.clearFilter(M)},doLayout:()=>{H?.value.doLayout()},sort:(M,K)=>{H?.value.sort(M,K)},scrollTo:(M,K)=>{H?.value.scrollTo(M,K)},setScrollTop:M=>{H?.value.setScrollTop(M)},setScrollLeft:M=>{H?.value.setScrollLeft(M)},loadData:$,clearData:D,getData(){return f.value},getTotalSize(){return w.value},getPageIndex(){return p.value},getPageSize(){return g.value},getColumnSetting:U,setColumnSetting:J,removeColumnSetting:se,setCellClassName:A}),()=>{const K={...je(l.attrs),onCurrentChange:x,onRowClick:C,onExpandChange:N,data:f.value,ref:H,class:c.value,"cell-class-name":G(o.cellClassName)},Y={};l.slots.default&&(Y.default=()=>ne.value),l.slots.append&&(Y.append=l.slots.append),l.slots.empty&&(Y.empty=l.slots.empty);const X=[],re=t.h(k.ElTable,K,Y);X.push(re);let fe=null;if(typeof l.slots.pagination=="function")fe=l.slots.pagination();else if(o.showPagination){const At={class:m.value,total:w.value,pageSize:g.value,"onUpdate:pageSize":b,pageSizes:o.pageSizes,currentPage:p.value,"onUpdate:currentPage":E,hideOnSinglePage:o.hideOnSinglePage,layout:o.paginationLayout,small:!0};fe=t.h(k.ElPagination,At)}if(o.showSetting){const At=[];fe&&At.push(fe);const qm=t.h(k.ElIcon,{class:d.value},{default:()=>t.h(ke.Setting)}),zm=pt(o,yo),jm=t.h(sn,{...zm,tableRef:{getColumnSetting:U,setColumnSetting:J,removeColumnSetting:se}},{default:()=>qm});At.push(jm);const _m=t.h("div",{class:u.value},At);X.push(_m)}else fe&&X.push(fe);const Ie={default:()=>X},Bt={...ve(o,$l,Dl,yo),prop:`${o.prop}_item`};return Bt.contentClass=`${s}__wrap`,Bt.errorMarkClass="is-table-error",R.value&&O()&&(Bt["appear-listen"]=!0,Bt.onAppear=z),t.h(a,Bt,Ie)}}}}const{componentName:qd,create:zd,scope:jd}=te("table-item"),bo=zd(Pd(qd,jd,pe));function ut(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function It(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _d(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Hd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Kd(){const e=t.getCurrentInstance();return new Hd(e.proxy)}function El(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=ut(e,n),l=ut(e,a);if(o!==l)return!1;const r=It(e,n),i=It(e,a);return r===i}function Yd(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;let l=null;for(let r of o){let i=!1;if(a==="text")i=ut(e,r)===n;else if(a==="item")i=El(e,r,n);else{let s=It(e,r);s==null&&(s=ut(e,r)),i=s===n}if(i){l=r;break}}return l}function Wd(e){return{text:e,value:e}}function Ud(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const xl={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Gd(e,n,a){return{inheritAttrs:!0,props:{...ge,...Ce,...xl},emits:["change","update:modelValue"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=t.ref(null),d=t.ref(null),u=(R,V,$,D=!0)=>{const P=Yd(o,R,V,$);if(P===null){if(d.value===null)return;d.value=null,c.value=null,D&&(s("update:modelValue",null),s("change",null));return}if(!El(o,P,d.value)){c.value=R;const S=t.toRaw(P);d.value=S;let x=null;o.valueType==="text"?x=ut(o,S):o.valueType==="item"?x=S:x=It(o,S),D&&(s("update:modelValue",x),s("change",x))}},m=t.ref([]),p=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,R=>oe(R)),E=Kd(),g=async(R,V)=>{if(R){const $=await E.load("radio",R,V);if($.length>0)if(typeof $[0]=="string"){let z=$.map(S=>Wd(S));m.value=z}else m.value=$}};t.watch([()=>o.source,()=>o.params],async([R,V])=>{g(R,V)},{immediate:!p.value});let b=!1;const v=()=>{b||(b=!0,g(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,V])=>{u(V,o.valueType,R,!1)});const h=e,w=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),f=R=>{u(R,"value",m.value,!0)};let I=ie(o,"hintText"),B=ie(o,"hintVisible");const O=(R,V)=>{const $=[];return R.forEach((D,P)=>{const z=It(o,D),S=ut(o,D);let x=_d(o,D);r.value===!0&&(x=r.value),i.value===!0&&(x=i.value);const C=Ud(o,D,P)??{},L=`${z}_${P}`,N={...C,key:L,label:z,size:o.size,border:oe(o.border)};x&&(N.disabled=x),o.itemType==="button"?$.push(t.h(k.ElRadioButton,N,{default:()=>[S]})):typeof V=="function"?$.push(t.h(k.ElRadio,N,{default:()=>V(D)})):$.push(t.h(k.ElRadio,N,{default:()=>[S]}))}),$};return()=>{const V={...je(l.attrs),class:w.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,onChange:f},$=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>O(m.value,l.slots.text);const P=t.h(k.ElRadioGroup,V,D);$.push(P);const z={default:()=>$};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const x={...ve(o,xl),hintText:I.value,hintVisible:B.value,prop:`${o.prop??l.attrs.name}_item`};return p.value&&(x["appear-listen"]=!0,x.onAppear=v),t.h(a,x,z)}}}}const{componentName:Xd,create:Zd,scope:Jd}=te("radio-item"),wo=Zd(Gd(Xd,Jd,pe));function dt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}class ef{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Re(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function tf(){const e=t.getCurrentInstance();return new ef(e.proxy)}function Nl(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const o=dt(e,n),l=dt(e,a);if(o!==l)return!1;const r=ft(e,n),i=ft(e,a);return r===i}function nf(e,n,a,o){if(o.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const l=[];return n.forEach(r=>{for(let i of o){let s=!1;if(a==="text")s=dt(e,i)===r;else if(a==="item")s=Nl(e,i,r);else{let c=ft(e,i);c==null&&(c=dt(e,i)),s=c===r}if(s){l.push(i);break}}}),l}function of(e){return{text:e,value:e}}function af(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Vl={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function lf(e,n,a){return{inheritAttrs:!0,props:{...ge,...Ce,...Vl},emits:["change","update:modelValue"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=t.ref([]),d=t.ref([]),u=(R,V,$,D=!0)=>{const P=nf(o,R,V,$);if(P===null){if(d.value===null||d.value.length===0)return;c.value=[],d.value=[],D&&(s("update:modelValue",[]),s("change",[]));return}let z=!0;if(P.length!==d.value.length)z=!1;else for(let S=0;S<P.length;S++){const x=P[S],C=d.value[S];if(!Nl(o,x,C)){z=!1;break}}if(!z){d.value=P;let S=[],x=[];P.forEach(L=>{S.push(ft(o,L)),o.valueType==="text"?x.push(dt(o,L)):o.valueType==="item"?x.push(L):x.push(ft(o,L))}),c.value=S;const C=t.toRaw(x);D&&(s("update:modelValue",C),s("change",C))}},m=t.ref([]),p=Ne(t.computed(()=>o.lazyLoad),"lazyLoad",We.Near,R=>oe(R)),E=tf(),g=async(R,V)=>{if(R){const $=await E.load("checkbox",R,V);if($.length>0)if(typeof $[0]=="string"){let z=$.map(S=>of(S));m.value=z}else m.value=$}};t.watch([()=>o.source,()=>o.params],async([R,V])=>{g(R,V)},{immediate:!p.value});let b=!1;const v=()=>{b||(b=!0,g(o.source,o.params))};t.watch([()=>m.value,()=>o.modelValue],([R,V])=>{u(V,o.valueType,R,!1)});const h=e,w=t.computed(()=>({[h]:!0,[`is-${o.direction}`]:!0})),f=R=>{u(R,"value",m.value,!0)};let I=ie(o,"hintText"),B=ie(o,"hintVisible");const O=(R,V)=>{const $=[];return R.forEach((D,P)=>{const z=ft(o,D),S=dt(o,D);let x=Qd(o,D);r.value===!0&&(x=r.value),i.value===!0&&(x=i.value);const C=af(o,D,P)??{},L=`${z}_${P}`,N={...C,key:L,class:o.itemClass,label:z,size:o.size,border:oe(o.border)};x&&(N.disabled=x),o.itemType==="button"?$.push(t.h(k.ElCheckboxButton,N,{default:()=>[S]})):typeof V=="function"?$.push(t.h(k.ElCheckbox,N,{default:()=>V(D)})):$.push(t.h(k.ElCheckbox,N,{default:()=>[S]}))}),$};return()=>{const V={...je(l.attrs),class:w.value,disabled:r.value||i.value,modelValue:c.value,"text-color":o.textColor,fill:o.fill,max:ce(o.max),min:ce(o.min),onChange:f},$=[],D={};l.slots.options?D.default=l.slots.options:D.default=()=>O(m.value,l.slots.text);const P=t.h(k.ElCheckboxGroup,V,D);$.push(P);const z={default:()=>$};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const x={...ve(o,Vl),hintText:I.value,hintVisible:B.value,prop:`${o.prop??l.attrs.name}_item`};return p.value&&(x["appear-listen"]=!0,x.onAppear=v),t.h(a,x,z)}}}}const{componentName:rf,create:sf,scope:cf}=te("checkbox-item"),So=sf(lf(rf,cf,pe)),Il={modelValue:{type:[Number,String],required:!1}};function uf(e,n,a){return{props:{...ge,...Ce,...Il},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=ie(o,"modelValue",b=>ce(b)),d=e,u=t.computed(()=>({[d]:!0})),m=b=>{s("update:modelValue",b),s("change",b)};let p=ie(o,"hintText"),E=t.ref(!1);const g=t.ref();return he({}),()=>{const v={...je(l.attrs),ref:g,class:u.value,readonly:i.value||r.value,modelValue:c.value,onChange:m},h={},w=[],f=t.h(k.ElRate,v,h);w.push(f);const I={default:()=>w};l.slots.default&&(I.label=l.slots.default),l.slots.fixedTip&&(I.fixedTip=l.slots.fixedTip);const O={...ve(o,Il),hintText:p.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,O,I)}}}}const{componentName:df,create:ff,scope:mf}=te("rate-item"),vo=ff(uf(df,mf,pe)),Bl={modelValue:{type:[Boolean,String,Number],required:!1}};function hf(e,n,a){return{props:{...ge,...Ce,...Bl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),c=ie(o,"modelValue"),d=e,u=t.computed(()=>({[d]:!0})),m=b=>{s("update:modelValue",b),s("change",b)};let p=ie(o,"hintText"),E=ie(o,"hintVisible");const g=t.ref();return he({}),()=>{const v={...je(l.attrs),ref:g,class:u.value,readonly:i.value,disabled:r.value,modelValue:c.value,onChange:m},h={},w=[],f=t.h(k.ElSwitch,v,h);w.push(f);const I={default:()=>w};l.slots.default&&(I.label=l.slots.default),l.slots.fixedTip&&(I.fixedTip=l.slots.fixedTip);const O={...ve(o,Bl),hintText:p.value,hintVisible:E.value,prop:`${o.prop}_item`};return t.h(a,O,I)}}}}const{componentName:gf,create:pf,scope:yf}=te("switch-item"),Co=pf(hf(gf,yf,pe)),Al={modelValue:{type:[String,Number,Boolean],required:!1}};function bf(e,n,a){return{props:{...ge,...Ce,...Al},emits:["change","update:modelValue","blur","focus","clear","input"],setup(o,l){const r=De(t.computed(()=>o.disabled)),i=$e(t.computed(()=>o.readonly)),s=t.ref(!1),{emitEvent:c}=we({componentName:e,get validate(){return!r.value&&!i.value}},o.prop??l.attrs.name),d=ie(o,"modelValue"),u=e,m=t.computed(()=>({[u]:!0})),p=B=>{c("update:modelValue",B),c("change",B)};let E=ie(o,"hintText"),g=t.ref(!1);const b=B=>{let R=B.target.value;s.value=!0,ye(E.value)||(g.value=!0),c("focus",R,B)},v=B=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let R=B.target.value;o.maxLength&&R.length>Number(o.maxLength)&&(R=R.slice(0,Number(o.maxLength))),w.value||c("blur",R,B)},h=()=>{c("clear","")},w=t.ref(!1),f=B=>{w.value=B,c("visible-change",B),B||c("selected")},I=t.ref();return he({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const O={...je(l.attrs),ref:I,class:m.value,disabled:r.value||i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:h,onFocus:b,onBlur:v,onVisibleChange:f},R={};l.slots.option&&(R.default=l.slots.option);const V=[],$=t.h(k.ElTreeSelect,O,R);V.push($);const D={default:()=>V};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const z={...ve(o,Al),hintText:E.value,hintVisible:g.value,prop:`${o.prop}_item`};return t.h(a,z,D)}}}}const{componentName:wf,create:Sf,scope:vf}=te("tree-select-item"),ko=Sf(bf(wf,vf,pe)),Cf=Symbol.for("InnerPageScopeKey"),kf=Symbol.for("PageWrapperKey");function Tf(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(a,o){t.provide(Cf,!0);const l={};t.provide(kf,l);const r=c=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=t.ref(!0),s=c=>{i.value=c};return()=>{const d={...o.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},u={};if(typeof o.slots.default=="function"){const m=o.slots.default();u.default=()=>m}return t.h(k.ElDialog,d,u)}}}}const{componentName:lh,create:$f,scope:rh}=te("dialog-item"),To=$f(Tf());function Df(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(a,{slots:o}){const l=e,r=t.computed(()=>({[l]:!0})),i=t.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),s=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),c=t.computed(()=>{const u={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?u["is-left"]=!0:u["is-right"]=!0,u}),d=t.computed(()=>a.color?{color:a.color}:null);return()=>{let u=null;if(o.mark)u=o.mark()[0];else{const b={class:i.value,style:s.value};u=t.h(a.icon??"div",b)}const m={class:c.value,style:d.value},p=o.default?o.default():[],E=t.h("div",m,p),g={class:r.value};return a.textPosition==="right"?t.h("div",g,[u,E]):t.h("div",g,[E,u])}}}}const{componentName:Ef,create:xf,scope:ih}=te("indicator"),$o=xf(Df(Ef));function Nf(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Vf={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function If(e,n){return{props:{...Vf},setup(a,o){const l=t.ref(!0),r=t.ref(null),i=t.computed(()=>{const u={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(p=>{u[p]=!0}),a.type&&(u[`${e}__${a.type}`]=!0),a.size&&(u[`${e}__${a.size}`]=!0),u}),s=u=>{if(u&&oe(a.showOverflowTooltip)){const m=u.clientWidth;Nf(u,p=>{l.value=p<=m})}};let c=null;t.onMounted(()=>{if(!oe(a.showOverflowTooltip))return;const u=r.value;s(u),u&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{s(u)}),c.observe(u))}),t.onUnmounted(()=>{c?.disconnect()});const d=(u,m)=>{let p=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const E=a.highlightFilter;if(u.indexOf(E)!==-1){const b=u.replace(new RegExp(E,"g"),`<span>${E}</span>`);m.innerHTML=b,m.class["is-highlight"]=!0,p=t.h(a.tag,m)}}else if(typeof a.highlightFilter=="function"){const E=a.highlightFilter(u);E&&(m.innerHTML=E,m.class["is-highlight"]=!0,p=t.h(a.tag,m))}return p};return()=>{const u={},m={...o.attrs,class:{...i.value},ref:r};if(oe(a.numberFormat)&&typeof o.slots.default=="function"){const b=o.slots.default();if(Array.isArray(b)&&b.length===1){const v=b[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const h=ce(a.digits),w=ce(a.decimalLength),f=oe(a.autoPadding);let I=`${b[0].children}`,B=I.split("").reverse().join("");B=Ft(B,w,f,h,a.separator),I=B.split("").reverse().join("");let O=null;a.highlightFilter!==void 0&&(O=d(I,m)),O||(m.innerHTML=I,O=t.h(a.tag,m)),u.default=()=>O}}}else{let b=null;if(a.highlightFilter!==void 0&&typeof o.slots.default=="function"){const v=o.slots.default();if(Array.isArray(v)&&v.length===1){const h=v[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const w=`${v[0].children}`;b=d(w,m),b||(m.innerHTML=w,b=t.h(a.tag,m))}}}b||(b=t.h(a.tag,m,{default:o.slots.default})),u.default=()=>b}const E={disabled:l.value};return u.content=o.slots.default,t.h(k.ElTooltip,E,u)}}}}const{componentName:Bf,create:Af,scope:sh}=te("text"),Do=Af(If(Bf)),{create:Of}=te("toast"),Rf=Of({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 a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},i=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,E=>{E&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=ue(e.iconSize);return t.h(e.icon,{width:E,height:E,color:e.iconColor})},u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:s,renderIcon:d,hasIcon:c,toastBodyClass:u,toastIconWrapperClass:m,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ff={key:1,class:"fox-toast-title"},Lf=["innerHTML"];function Mf(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Ff,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Lf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Eo=de(Rf,[["render",Mf]]),Pf={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ke.ArrowUp}};function qf(e,n,a){return{props:{...Pf},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const m={[`${e}`]:!0};return o.disabled?m[`${e}__disabled`]=!0:m[`${e}__${o.type}`]=!0,m}),i=ie(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),u=()=>{l("update:modelValue",!i.value)};return()=>{const m=[];if(s.value){const b={class:c.value},v=t.h("span",b,[s.value]);m.push(v)}const p={class:d.value},E=a(o.icon,p);return E&&m.push(E),t.h("div",{class:r.value,onClick:u},m)}}}}const{componentName:zf,create:jf,scope:_f}=te("more-button"),xo=jf(qf(zf,_f,(e,n)=>(e=e??ke.ArrowUp,t.h(k.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:Hf,create:Kf,scope:uh}=te("tour"),Yf=Kf({components:{Close:ke.Close,ElPopover:k.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 a=Hf,o=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=t.ref({}),r=t.computed(()=>`${a}`),i=t.computed(()=>{const{offset:g,maskWidth:b,maskHeight:v}=e,{width:h,height:w,left:f,top:I}=l.value,B=e.steps[o.active].offset??g,O=[f+h/2,I+w/2],R=Number(b||h),V=Number(v||w);return{width:`${R+ +B.left+B.right}px`,height:`${V+B.top+B.bottom}px`,top:`${O[1]-V/2-+B.top}px`,left:`${O[0]-R/2-+B.left}px`}}),s=g=>{g=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,t.nextTick(()=>{o.showPopup=!0,u()}),n("change",o.active)},c=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,u=()=>{const g=document.querySelector(`${e.steps[o.active].target}`),b=Ue(g);l.value={x:b.left,y:b.top,top:b.top,left:b.left,width:b.width,height:b.height}},m=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&m()},E=(g,b=0)=>{g&&u(),e.steps,o.active=b,o.showTour=g,o.showPopup=g};return t.onMounted(()=>{E(e.modelValue,e.current)}),t.watch(()=>e.modelValue,g=>{E(g)}),{...t.toRefs(o),classes:r,maskStyle:i,changeStep:s,popoverWidth:c,popoverLocation:d,close:m,handleClickMask:p}}}),Wf={key:0,class:"fox-tour__content"},Uf={key:0,class:"fox-tour__content-top"},Gf={class:"fox-tour__content-inner"},Xf={class:"fox-tour__content-bottom"},Zf={class:"fox-tour__content-bottom-init"},Jf={class:"fox-tour__content-bottom-operate"},Qf={key:1,class:"fox-tour__content fox-tour__content-tile"},em={class:"fox-tour__content-inner"};function tm(e,n,a,o,l,r){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-button"),c=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createBlock(c,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Wf,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Uf,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Gf,t.toDisplayString(d.content),1),t.createElementVNode("div",Xf,[t.createElementVNode("div",Zf,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Jf,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=m=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",Qf,[t.createElementVNode("div",em,t.toDisplayString(d.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const No=de(Yf,[["render",tm]]),xe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null,Ol=10;function nm(e,n){return e>n&&e>Ol?"horizontal":n>e&&n>Ol?"vertical":""}function om(){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",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=nm(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function am(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function lm(e){e.stopPropagation()}function rm(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&lm(e)}class im{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=am()}open(n){this.el=n;const a=om(),o=(l,r,i,s,c)=>{this.updateMove({x:r,y:i})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&rm(l,!0),o(n,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(n,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Rl(e,n){return new im(e,n)}var Fl;const Vo=typeof window<"u";Vo&&((Fl=window?.navigator)!=null&&Fl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const Ll=e=>{const n=e;n.key==="Escape"&&mt.forEach(a=>a(n))},sm=e=>{t.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Ll),Vo&&mt.push(e)}),t.onBeforeUnmount(()=>{mt=mt.filter(n=>n!==e),mt.length===0&&Vo&&document.removeEventListener("keydown",Ll)})},Io="fox-focus-trap.focus-after-trapped",Bo="fox-focus-trap.focus-after-released",cm="fox-focus-trap.focusout-prevented",Ml={cancelable:!0,bubbles:!1},um={cancelable:!0,bubbles:!1},Pl="foxFocusAfterTrapped",ql="foxFocusAfterReleased",dm=Symbol("foxFocusTrap"),Ao=t.ref(),cn=t.ref(0),Oo=t.ref(0);let un=0;const zl=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},fm=(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},jl=(e,n)=>{for(const a of e)if(!fm(a,n))return a},mm=e=>{const n=zl(e),a=jl(n,e),o=jl(n.reverse(),e);return[a,o]},hm=e=>e instanceof HTMLInputElement&&"select"in e,Ge=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),Oo.value=window.performance.now(),e!==a&&hm(e)&&n&&e.select()}};function _l(e,n){const a=[...e],o=e.indexOf(n);return o!==-1&&a.splice(o,1),a}const gm=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=_l(e,o),e.unshift(o)},remove:o=>{e=_l(e,o),e[0]?.resume?.()}}},pm=(e,n=!1)=>{const a=document.activeElement;for(const o of e)if(Ge(o,n),document.activeElement!==a)return},Hl=gm(),ym=()=>cn.value>Oo.value,dn=()=>{Ao.value="pointer",cn.value=window.performance.now()},Kl=()=>{Ao.value="keyboard",cn.value=window.performance.now()},bm=()=>(t.onMounted(()=>{un===0&&(document.addEventListener("mousedown",dn),document.addEventListener("touchstart",dn),document.addEventListener("keydown",Kl)),un++}),t.onBeforeUnmount(()=>{un--,un<=0&&(document.removeEventListener("mousedown",dn),document.removeEventListener("touchstart",dn),document.removeEventListener("keydown",Kl))}),{focusReason:Ao,lastUserFocusTimestamp:cn,lastAutomatedFocusTimestamp:Oo}),fn=e=>new CustomEvent(cm,{...um,detail:e}),{componentName:dh,create:wm,scope:fh}=te("focus-trap"),Sm=wm({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Pl,ql,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const o=t.ref();let l,r;const{focusReason:i}=bm();sm(b=>{oe(e.trapped)&&!s.paused&&a("release-requested",b)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=b=>{if(!e.loop&&!oe(e.trapped)||s.paused)return;const{key:v,altKey:h,ctrlKey:w,metaKey:f,currentTarget:I,shiftKey:B}=b,{loop:O}=e,R=v==="Tab"&&!h&&!w&&!f,V=document.activeElement;if(R&&V){const $=I,[D,P]=mm($);if(D&&P){if(!B&&V===P){const S=fn({focusReason:i.value});a("focusout-prevented",S),S.defaultPrevented||(b.preventDefault(),O&&Ge(D,!0))}else if(B&&[D,$].includes(V)){const S=fn({focusReason:i.value});a("focusout-prevented",S),S.defaultPrevented||(b.preventDefault(),O&&Ge(P,!0))}}else if(V===$){const S=fn({focusReason:i.value});a("focusout-prevented",S),S.defaultPrevented||b.preventDefault()}}};t.provide(dm,{focusTrapRef:o,onKeydown:c}),t.watch(()=>e.focusTrapEl,b=>{b&&(o.value=b)},{immediate:!0}),t.watch([o],([b],[v])=>{b&&(b.addEventListener("keydown",c),b.addEventListener("focusin",m),b.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",c),v.removeEventListener("focusin",m),v.removeEventListener("focusout",p))});const d=b=>{a(Pl,b)},u=b=>a(ql,b),m=b=>{const v=t.unref(o);if(!v)return;const h=b.target,w=b.relatedTarget,f=h&&v.contains(h);oe(e.trapped)||w&&v.contains(w)||(l=w),f&&a("focusin",b),!s.paused&&oe(e.trapped)&&(f?r=h:Ge(r,!0))},p=b=>{const v=t.unref(o);if(!(s.paused||!v))if(!e.escape&&oe(e.trapped)){const h=b.relatedTarget;!Dn(h)&&!v.contains(h)&&setTimeout(()=>{if(!s.paused&&oe(e.trapped)){const w=fn({focusReason:i.value});a("focusout-prevented",w),w.defaultPrevented||Ge(r,!0)}},0)}else{const h=b.target;h&&v.contains(h)||a("focusout",b)}};async function E(){await t.nextTick();const b=t.unref(o);if(b){Hl.push(s);const v=b.contains(document.activeElement)?l:document.activeElement;if(l=v,!b.contains(v)){const w=new Event(Io,Ml);b.addEventListener(Io,d),b.dispatchEvent(w),w.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;Uo(f)||(Ge(f),document.activeElement!==f&&(f="first")),f==="first"&&pm(zl(b),!0),(document.activeElement===v||f==="container")&&Ge(b)})}}}function g(){const b=t.unref(o);if(b){b.removeEventListener(Io,d);const v=new CustomEvent(Bo,{...Ml,detail:{focusReason:i.value}});b.addEventListener(Bo,u),b.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!ym())&&Ge(l??document.body,!0),b.removeEventListener(Bo,d),Hl.remove(s)}}return t.onMounted(()=>{oe(e.trapped)&&E(),t.watch(()=>e.trapped,b=>{oe(b)?E():g()})}),t.onBeforeUnmount(()=>{oe(e.trapped)&&g()}),()=>typeof n.default=="function"?n.default({"handle-keydown":c}):null}}),{componentName:vm,create:Cm,scope:hh}=te("floating-window"),km=Symbol.for("InnerPageScopeKey"),Tm=Symbol.for("PageWrapperKey"),$m={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Dm=Cm({inheritAttrs:!1,components:{FoxIcon:k.ElIcon,FocusTrap:Sm},props:{...$m},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=vm,o=t.ref(e.modelValue),l=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,A=>{o.value=A});const r=t.computed(()=>o.value===!1?!1:!R.value),i=t.ref(e.left),s=t.ref(e.top),c=t.ref(e.right),d=t.ref(e.bottom),u=t.computed(()=>{const A=["fox-floating-window"];return e.customClass&&A.push(e.customClass),A}),m=t.computed(()=>{const A={};return tt(i.value)?A.left="auto":A.left=xe(i.value),tt(s.value)?A.top="auto":A.top=xe(s.value),tt(c.value)?A.right="auto":A.right=xe(c.value),tt(d.value)?A.bottom="auto":A.bottom=xe(d.value),tt(e.zIndex)||(A["z-index"]=xe(e.zIndex)),tt(B.value)||(A.height=B.value),tt(O.value)||(A.width=O.value),A}),p=t.computed(()=>e.closeIcon??ke.Close),E=t.computed(()=>e.collapseIcon??ke.ArrowUp),g=t.computed(()=>e.collapseText??""),b=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),v=t.computed(()=>e.expandText??e.title??"展开"),h=t.computed(()=>({[`${a}__collapse-text`]:!0})),w=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),f=t.ref(),I=t.ref(),B=t.computed(()=>xe(e.height)||""),O=t.computed(()=>xe(e.width)||""),R=t.ref(oe(e.collapse)),V=(A,H=!0)=>{R.value!==A&&(R.value=A,A?_():U(),n("update:collapse",A))};t.watch(()=>e.collapse,A=>{V(A)});const $=()=>{D()},D=A=>{A=A??!R.value,V(A)};t.provide(km,!0);const P={setCollapse:V,setFixedNavVisible:A=>{q.value=A}};t.provide(Tm,P);const z=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{o.value=!1}):o.value=!1},S=t.ref(null),x=t.computed(()=>!e.fixedNavTeleport),C=t.computed(()=>{const A=["fox-floating-window__fixednav"];return e.expandClass&&A.push(e.expandClass),e.collapsePosition==="left"?A.push("is-left"):e.collapsePosition==="right"&&A.push("is-right"),A}),L=t.ref(""),N=t.computed(()=>{const A={};return L.value?A.top=L.value:e.collapseTop&&(A.top=e.collapseTop),A}),q=t.ref(R.value);let T=null;const F=()=>{typeof T=="function"&&(T(),T=null)},_=()=>{S.value&&S.value.classList.add("slide-in"),q.value=!0,T=()=>{S.value&&S.value.classList.remove("slide-in")}},U=()=>{S.value&&S.value.classList.add("slide-out"),T=()=>{S.value&&S.value.classList.remove("slide-out"),q.value=!1}},J=()=>{i.value=null,s.value=null,c.value=null,d.value=null},Q={x:0,y:0},Z=Rl(A=>{if(!f.value)return;const H=f.value;if(J(),e.origin==="left-top")i.value=H.offsetLeft,s.value=H.offsetTop,Q.x=i.value,Q.y=s.value;else if(e.origin==="left-bottom"){const M=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,d.value=M-(H.offsetTop+H.offsetHeight),Q.x=i.value,Q.y=d.value}else if(e.origin==="right-bottom"){const M=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;c.value=M-(H.offsetLeft+H.offsetWidth),d.value=K-(H.offsetTop+H.offsetHeight),Q.x=c.value,Q.y=d.value}else{const M=document.documentElement.clientWidth||document.body.clientWidth;c.value=M-(H.offsetLeft+H.offsetWidth),s.value=H.offsetTop,Q.x=c.value,Q.y=s.value}},A=>{if(!f.value)return;const H=f.value;J(),e.origin==="left-top"?(i.value=Q.x+A.x,s.value=Q.y+A.y,H.style.left=xe(i.value),H.style.top=xe(s.value)):e.origin==="left-bottom"?(i.value=Q.x+A.x,d.value=Q.y-A.y,H.style.left=xe(i.value),H.style.bottom=xe(d.value)):e.origin==="right-bottom"?(c.value=Q.x-A.x,d.value=Q.y-A.y,H.style.right=xe(c.value),H.style.bottom=xe(d.value)):(c.value=Q.x-A.x,s.value=Q.y+A.y,H.style.right=xe(c.value),H.style.top=xe(s.value))}),ne={x:0,y:0},G=Rl(A=>{S.value&&(ne.x=S.value.offsetLeft,ne.y=S.value.offsetTop)},A=>{if(!S.value)return;const H=ne.y+A.y;L.value=`${H}px`});return t.onMounted(()=>{e.draggable&&I.value&&f.value&&Z.open(I.value),e.collapse===!0&&V(e.collapse,!1),S.value&&G.open(S.value)}),t.onBeforeUnmount(()=>{e.draggable&&I.value&&Z.close(),S.value&&G.close()}),{classes:u,styles:m,isShow:r,closeIcon:p,onClose:z,dialogRef:f,headerRef:I,onClickToggle:$,collapseIcon:E,collapseText:g,collapseTextClasses:h,collapseIconClasses:w,expandIcon:b,expandText:v,isShowFixedNav:q,fixedNavRef:S,fixedNavClasses:C,fixedNavStyles:N,onAnimationEnd:F,teleportDisabled:l,fixedNavTeleportDisabled:x}}}),Em={ref:"headerRef",class:"fox-floating-window__header"},xm={class:"fox-floating-window__title"},Nm={class:"fox-floating-window__tools"},Vm={class:"fox-floating-window__body"},Im={class:"fox-floating-window__fixednav__text"};function Bm(e,n,a,o,l,r){const i=t.resolveComponent("FoxIcon"),s=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Em,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",xm,t.toDisplayString(e.title),1),t.createElementVNode("div",Nm,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",Vm,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...c)=>e.onClickToggle&&e.onClickToggle(...c))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",Im,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ro=de(Dm,[["render",Bm]]);function Am(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return ha(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:gh,create:Om,scope:ph}=te("domain-provider"),Fo=Om(Am()),Rm={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 Fm(e,n){return{inheritAttrs:!1,props:Rm,setup(a,{slots:o}){if(Je&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const i=(p,E)=>{if(u===null){r.set(p,{visible:null,callback:E});return}l.has(p)&&u.unobserve(p),l.set(p,{visible:null,callback:E}),u.observe(p)},s=p=>{if(u===null){r.delete(p);return}l.has(p)&&(l.delete(p),u.unobserve(p))};let c=a.initialVisibleObserverSize;li({acquire:()=>{const p=c>0;return c--,p},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let u=null;const m=(p,E,g)=>{u=new IntersectionObserver(b=>{for(let v of b){let h=!1;v.intersectionRatio>0&&(h=!0);const w=l.get(v.target);if(w)try{if(a.loadPolicy==="lazy"&&!h&&w.visible!==null)return;w.visible=h,w.callback(h)}catch(f){console.error(f)}}},{root:p,rootMargin:E,threshold:g}),r.forEach((b,v)=>{l.set(v,b),u?.observe(v)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([p,E])=>{if(E||!p||u)return;let g=null;typeof p=="string"?g=document.querySelector(p):g=p,g&&m(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:yh,create:Lm,scope:bh}=te("rolling-provider"),Lo=Lm(Fm()),Mm=[On,Ln,Mn,Pn,jn,pe,Kn,Yn,Ct,Wn,Jn,no,lo,ro,io,so,co,fo,mo,ho,go,sn,bo,wo,So,vo,Co,ko,To,Vt,Jt,$o,Do,Eo,Tt,_e,it,nn,on,Nt,xt,rn,xo,No,Et,Ro,Fo,Lo],Pm=new Nr(Mm,[Br],"4.0.0");Object.defineProperty(y,"FoxAffix",{enumerable:!0,get:()=>k.ElAffix}),Object.defineProperty(y,"FoxAlert",{enumerable:!0,get:()=>k.ElAlert}),Object.defineProperty(y,"FoxAside",{enumerable:!0,get:()=>k.ElAside}),Object.defineProperty(y,"FoxAutoResizer",{enumerable:!0,get:()=>k.ElAutoResizer}),Object.defineProperty(y,"FoxAutocomplete",{enumerable:!0,get:()=>k.ElAutocomplete}),Object.defineProperty(y,"FoxAvatar",{enumerable:!0,get:()=>k.ElAvatar}),Object.defineProperty(y,"FoxBacktop",{enumerable:!0,get:()=>k.ElBacktop}),Object.defineProperty(y,"FoxBadge",{enumerable:!0,get:()=>k.ElBadge}),Object.defineProperty(y,"FoxBreadcrumb",{enumerable:!0,get:()=>k.ElBreadcrumb}),Object.defineProperty(y,"FoxBreadcrumbItem",{enumerable:!0,get:()=>k.ElBreadcrumbItem}),Object.defineProperty(y,"FoxButton",{enumerable:!0,get:()=>k.ElButton}),Object.defineProperty(y,"FoxButtonGroup",{enumerable:!0,get:()=>k.ElButtonGroup}),Object.defineProperty(y,"FoxCalendar",{enumerable:!0,get:()=>k.ElCalendar}),Object.defineProperty(y,"FoxCard",{enumerable:!0,get:()=>k.ElCard}),Object.defineProperty(y,"FoxCarousel",{enumerable:!0,get:()=>k.ElCarousel}),Object.defineProperty(y,"FoxCarouselItem",{enumerable:!0,get:()=>k.ElCarouselItem}),Object.defineProperty(y,"FoxCascader",{enumerable:!0,get:()=>k.ElCascader}),Object.defineProperty(y,"FoxCascaderPanel",{enumerable:!0,get:()=>k.ElCascaderPanel}),Object.defineProperty(y,"FoxCheckTag",{enumerable:!0,get:()=>k.ElCheckTag}),Object.defineProperty(y,"FoxCheckbox",{enumerable:!0,get:()=>k.ElCheckbox}),Object.defineProperty(y,"FoxCheckboxButton",{enumerable:!0,get:()=>k.ElCheckboxButton}),Object.defineProperty(y,"FoxCheckboxGroup",{enumerable:!0,get:()=>k.ElCheckboxGroup}),Object.defineProperty(y,"FoxCol",{enumerable:!0,get:()=>k.ElCol}),Object.defineProperty(y,"FoxCollapse",{enumerable:!0,get:()=>k.ElCollapse}),Object.defineProperty(y,"FoxCollapseItem",{enumerable:!0,get:()=>k.ElCollapseItem}),Object.defineProperty(y,"FoxCollapseTransition",{enumerable:!0,get:()=>k.ElCollapseTransition}),Object.defineProperty(y,"FoxColorPicker",{enumerable:!0,get:()=>k.ElColorPicker}),Object.defineProperty(y,"FoxConfigProvider",{enumerable:!0,get:()=>k.ElConfigProvider}),Object.defineProperty(y,"FoxContainer",{enumerable:!0,get:()=>k.ElContainer}),Object.defineProperty(y,"FoxDescriptions",{enumerable:!0,get:()=>k.ElDescriptions}),Object.defineProperty(y,"FoxDescriptionsItem",{enumerable:!0,get:()=>k.ElDescriptionsItem}),Object.defineProperty(y,"FoxDialog",{enumerable:!0,get:()=>k.ElDialog}),Object.defineProperty(y,"FoxDivider",{enumerable:!0,get:()=>k.ElDivider}),Object.defineProperty(y,"FoxDrawer",{enumerable:!0,get:()=>k.ElDrawer}),Object.defineProperty(y,"FoxDropdown",{enumerable:!0,get:()=>k.ElDropdown}),Object.defineProperty(y,"FoxDropdownItem",{enumerable:!0,get:()=>k.ElDropdownItem}),Object.defineProperty(y,"FoxDropdownMenu",{enumerable:!0,get:()=>k.ElDropdownMenu}),Object.defineProperty(y,"FoxEmpty",{enumerable:!0,get:()=>k.ElEmpty}),Object.defineProperty(y,"FoxFooter",{enumerable:!0,get:()=>k.ElFooter}),Object.defineProperty(y,"FoxForm",{enumerable:!0,get:()=>k.ElForm}),Object.defineProperty(y,"FoxFormItem",{enumerable:!0,get:()=>k.ElFormItem}),Object.defineProperty(y,"FoxHeader",{enumerable:!0,get:()=>k.ElHeader}),Object.defineProperty(y,"FoxIcon",{enumerable:!0,get:()=>k.ElIcon}),Object.defineProperty(y,"FoxImage",{enumerable:!0,get:()=>k.ElImage}),Object.defineProperty(y,"FoxImageViewer",{enumerable:!0,get:()=>k.ElImageViewer}),Object.defineProperty(y,"FoxInput",{enumerable:!0,get:()=>k.ElInput}),Object.defineProperty(y,"FoxInputNumber",{enumerable:!0,get:()=>k.ElInputNumber}),Object.defineProperty(y,"FoxLink",{enumerable:!0,get:()=>k.ElLink}),Object.defineProperty(y,"FoxMain",{enumerable:!0,get:()=>k.ElMain}),Object.defineProperty(y,"FoxMenu",{enumerable:!0,get:()=>k.ElMenu}),Object.defineProperty(y,"FoxMenuItem",{enumerable:!0,get:()=>k.ElMenuItem}),Object.defineProperty(y,"FoxMenuItemGroup",{enumerable:!0,get:()=>k.ElMenuItemGroup}),Object.defineProperty(y,"FoxOption",{enumerable:!0,get:()=>k.ElOption}),Object.defineProperty(y,"FoxOptionGroup",{enumerable:!0,get:()=>k.ElOptionGroup}),Object.defineProperty(y,"FoxPageHeader",{enumerable:!0,get:()=>k.ElPageHeader}),Object.defineProperty(y,"FoxPagination",{enumerable:!0,get:()=>k.ElPagination}),Object.defineProperty(y,"FoxPopconfirm",{enumerable:!0,get:()=>k.ElPopconfirm}),Object.defineProperty(y,"FoxPopover",{enumerable:!0,get:()=>k.ElPopover}),Object.defineProperty(y,"FoxPopper",{enumerable:!0,get:()=>k.ElPopper}),Object.defineProperty(y,"FoxProgress",{enumerable:!0,get:()=>k.ElProgress}),Object.defineProperty(y,"FoxRadio",{enumerable:!0,get:()=>k.ElRadio}),Object.defineProperty(y,"FoxRadioButton",{enumerable:!0,get:()=>k.ElRadioButton}),Object.defineProperty(y,"FoxRadioGroup",{enumerable:!0,get:()=>k.ElRadioGroup}),Object.defineProperty(y,"FoxRate",{enumerable:!0,get:()=>k.ElRate}),Object.defineProperty(y,"FoxResult",{enumerable:!0,get:()=>k.ElResult}),Object.defineProperty(y,"FoxRow",{enumerable:!0,get:()=>k.ElRow}),Object.defineProperty(y,"FoxScrollbar",{enumerable:!0,get:()=>k.ElScrollbar}),Object.defineProperty(y,"FoxSelect",{enumerable:!0,get:()=>k.ElSelect}),Object.defineProperty(y,"FoxSelectV2",{enumerable:!0,get:()=>k.ElSelectV2}),Object.defineProperty(y,"FoxSkeleton",{enumerable:!0,get:()=>k.ElSkeleton}),Object.defineProperty(y,"FoxSkeletonItem",{enumerable:!0,get:()=>k.ElSkeletonItem}),Object.defineProperty(y,"FoxSlider",{enumerable:!0,get:()=>k.ElSlider}),Object.defineProperty(y,"FoxSpace",{enumerable:!0,get:()=>k.ElSpace}),Object.defineProperty(y,"FoxStep",{enumerable:!0,get:()=>k.ElStep}),Object.defineProperty(y,"FoxSteps",{enumerable:!0,get:()=>k.ElSteps}),Object.defineProperty(y,"FoxSubMenu",{enumerable:!0,get:()=>k.ElSubMenu}),Object.defineProperty(y,"FoxSwitch",{enumerable:!0,get:()=>k.ElSwitch}),Object.defineProperty(y,"FoxTabPane",{enumerable:!0,get:()=>k.ElTabPane}),Object.defineProperty(y,"FoxTable",{enumerable:!0,get:()=>k.ElTable}),Object.defineProperty(y,"FoxTableColumn",{enumerable:!0,get:()=>k.ElTableColumn}),Object.defineProperty(y,"FoxTableV2",{enumerable:!0,get:()=>k.ElTableV2}),Object.defineProperty(y,"FoxTabs",{enumerable:!0,get:()=>k.ElTabs}),Object.defineProperty(y,"FoxTag",{enumerable:!0,get:()=>k.ElTag}),Object.defineProperty(y,"FoxTimePicker",{enumerable:!0,get:()=>k.ElTimePicker}),Object.defineProperty(y,"FoxTimeSelect",{enumerable:!0,get:()=>k.ElTimeSelect}),Object.defineProperty(y,"FoxTimeline",{enumerable:!0,get:()=>k.ElTimeline}),Object.defineProperty(y,"FoxTimelineItem",{enumerable:!0,get:()=>k.ElTimelineItem}),Object.defineProperty(y,"FoxTooltip",{enumerable:!0,get:()=>k.ElTooltip}),Object.defineProperty(y,"FoxTransfer",{enumerable:!0,get:()=>k.ElTransfer}),Object.defineProperty(y,"FoxTree",{enumerable:!0,get:()=>k.ElTree}),Object.defineProperty(y,"FoxTreeSelect",{enumerable:!0,get:()=>k.ElTreeSelect}),Object.defineProperty(y,"FoxTreeV2",{enumerable:!0,get:()=>k.ElTreeV2}),Object.defineProperty(y,"FoxUpload",{enumerable:!0,get:()=>k.ElUpload}),y.AutocompleteItem=mo,y.Broadcast=En,y.BroadcastKey=be,y.CalendarItem=lo,y.CalendarPicker=on,y.CascaderItem=fo,y.CascaderPicker=rn,y.CheckboxItem=So,y.Content=Pn,y.DataItemsKey=ot,y.DateItem=no,y.DatePicker=nn,y.DateUtils=ee,y.DialogItem=To,y.Domain=zt,y.DomainKey=Ve,y.DomainProvider=Fo,y.ExtTabPane=Nt,y.ExtTabs=xt,y.FloatingWindow=Ro,y.FooterBar=Mn,y.FoxAutocompleteItem=mo,y.FoxCalendarItem=lo,y.FoxCalendarPicker=on,y.FoxCascaderItem=fo,y.FoxCascaderPicker=rn,y.FoxCheckboxItem=So,y.FoxContent=Pn,y.FoxDateItem=no,y.FoxDatePicker=nn,y.FoxDialogItem=To,y.FoxDomainProvider=Fo,y.FoxExtTabPane=Nt,y.FoxExtTabs=xt,y.FoxFloatingWindow=Ro,y.FoxFooterBar=Mn,y.FoxGroup=jn,y.FoxHeaderBar=Ln,y.FoxHintText=Ct,y.FoxIndicator=$o,y.FoxInputItem=Wn,y.FoxInputNumberItem=co,y.FoxItem=pe,y.FoxMapping=Vt,y.FoxMoneyItem=so,y.FoxMoreButton=xo,y.FoxOverlay=Tt,y.FoxPage=On,y.FoxPicker=it,y.FoxPopup=_e,y.FoxPrice=Jt,y.FoxRadioItem=wo,y.FoxRateItem=vo,y.FoxRollingProvider=Lo,y.FoxRowItem=Yn,y.FoxSelectItem=Jn,y.FoxSlotItem=Kn,y.FoxSwitchItem=Co,y.FoxTableItem=bo,y.FoxTableMappingColumn=ho,y.FoxTableRadioColumn=go,y.FoxTableSetting=sn,y.FoxText=Do,y.FoxTimeItem=ro,y.FoxTimeSelectItem=io,y.FoxToast=Eo,y.FoxTour=No,y.FoxTreeSelectItem=ko,y.Foxsticky=Et,y.Group=jn,y.HeaderBar=Ln,y.HintText=Ct,y.Indicator=$o,y.InputItem=Wn,y.InputNumberItem=co,y.Item=pe,y.Mapping=Vt,y.MoneyItem=so,y.MoreButton=xo,y.Overlay=Tt,y.Page=On,y.Picker=it,y.Popup=_e,y.Price=Jt,y.PriorityPolicy=We,y.RadioItem=wo,y.RateItem=vo,y.RollingProvider=Lo,y.RowItem=Yn,y.SelectItem=Jn,y.SlotItem=Kn,y.SwitchItem=Co,y.TableItem=bo,y.TableMappingColumn=ho,y.TableRadioColumn=go,y.TableSetting=sn,y.Text=Do,y.TimeItem=ro,y.TimeSelectItem=io,y.Toast=Eo,y.Tour=No,y.TreeSelectItem=ko,y.UniqueID=Na,y.ValidateSchema=da,y.ValidateSchemaKey=qe,y.cancelRaf=Ul,y.clearNonNumber=rr,y.clone=Tn,y.compareTo=vn,y.createBroadcast=Mt,y.createValidateSchema=qt,y.debounce=wt,y.debounceRef=wr,y.decimalLength=aa,y.default=Pm,y.defineBroadcast=ur,y.defineConfigDomain=ha,y.defineDataItem=pa,y.defineDomain=Vn,y.defineItem=we,y.definePageState=ya,y.deleteGlobalValidator=hr,y.disabledProperty=De,y.divide=Sn,y.excludeProps=ve,y.extend=Ze,y.floatData=cr,y.getGlobalValidateCheckEvents=sa,y.getGlobalValidateResetEvents=ua,y.getPageContentAreaHeight=_t,y.getPageContentAreaWidth=Ht,y.getPageFooterAreaHeight=vt,y.getPageHeaderAreaHeight=St,y.getRootDomain=at,y.hasSymbol=Xo,y.includeProps=pt,y.indexOf=ir,y.installRules=ga,y.integerLength=oa,y.isArray=Xl,y.isArrayLike=Qo,y.isBrowser=Je,y.isDate=Me,y.isESModule=tr,y.isEmptyString=ye,y.isEqual=Pe,y.isFunction=Cn,y.isHidden=Jo,y.isInnerPage=Cr,y.isMap=Zl,y.isNil=Dn,y.isNumberString=na,y.isObject=Ae,y.isPlainObject=kn,y.isPromise=er,y.isRegExp=ta,y.isSet=Jl,y.isString=Uo,y.isSubPage=kr,y.isSymbol=Ql,y.isWindow=Zo,y.lastIndexOf=sr,y.makeArray=lr,y.merge=ea,y.multiply=Ho,y.negate=Ko,y.nextTick=or,y.numberFormat=Ft,y.objectToString=Go,y.once=Sr,y.property=Ne,y.raf=Wo,y.readonlyProperty=$e,y.setGlobalValidateCheckEvents=gr,y.setGlobalValidateHandler=fr,y.setGlobalValidateMessages=yr,y.setGlobalValidateResetEvents=pr,y.setGlobalValidator=mr,y.sticky=Et,y.throttle=ma,y.toBoolean=oe,y.toNumber=ce,y.toPadding=Oe,y.toPx=ue,y.toPxDesc=Se,y.toTypeString=Lt,y.toValue=ie,y.tryTimes=xn,y.typeOf=nt,y.unNumberFormat=Yo,y.updatePageState=In,y.useBroadcast=yt,y.useDomain=ze,y.useExpose=he,y.useInnerSize=Fn,y.usePageState=jt,y.usePosition=Da,y.useRect=Ue,y.useSize=Rn,y.useTouch=Xn,y.valueLength=Be,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|