@fox-js/foxui-pc 4.0.1-5 → 4.0.1-50
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 +4 -4
- package/dist/index.esm.js +7186 -3484
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +236 -45
- package/package.json +4 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-
|
|
5
|
-
*/function Ge(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=te(e),t=te(t),[e,t]=ht(te(e),te(t)),r==1&&(n==1?e=dt(e):t=dt(t));let a=qt(e,t);return r?r==2?"-"+te(a):e.length<a.length?te(a.substring(1)):"-"+te(dt(a)):te(a)}function dt(e){let t="",r=e.length,n=e.split(".")[1],a=n?n.length:0;for(let u=0;u<r;u++)e[u]>="0"&&e[u]<="9"?t+=9-parseInt(e[u]):t+=e[u];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return qt(t,l)}function te(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function ht(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-l)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function qt(e,t){[e,t]=ht(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let l=parseInt(e[a])+parseInt(t[a])+n;r=l%10+r,n=Math.floor(l/10)}return n?n.toString()+r:r}var U=(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))(U||{});function qe(e,t=0,r=U.HALF_EVEN){if(r===U.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),l=a[0],u=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let c=l.substr(0,l.length-t);return e=c+"."+l.substr(l.length-t)+u,c=qe(e,0,r),(n?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return l.length,Bt(a[1],l,n,r)?(n?"-":"")+gt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");u=a[1].substring(0,t);let s=a[1].substring(t);return s&&Bt(s,u,n,r)&&(u=gt(u),u.length>t)?(n?"-":"")+gt(l,parseInt(u[0]))+"."+u.substring(1):(n?"-":"")+l+"."+u}function Bt(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===U.DOWN||!r&&n===U.FLOOR||r&&n===U.CEILING)return!1;if(n===U.UP||r&&n===U.FLOOR||!r&&n===U.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case U.HALF_DOWN:return!1;case U.HALF_UP:return!0;case U.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let a=r;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function mt(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Be(e),t=Be(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=Be(e.replace(".","")),t=Be(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let u=t.length,s=0,c=[],o=u-1,h="";for(let g=0;g<u;g++)c[g]=e.length-1;for(let g=0;g<2*e.length;g++){let w=0;for(let D=t.length-1;D>=o&&D>=0;D--)c[D]>-1&&c[D]<e.length&&(w+=parseInt(e[c[D]--])*parseInt(t[D]));w+=s,s=Math.floor(w/10),h=w%10+h,o--}return h=Be(Sr(h,l)),r==1&&(h="-"+h),h}function Sr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Be(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 yt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=te(t.replace(".","")),a>=0){let o=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(o==-1)e=te(e+new Array(a+1).join("0"));else if(a>o)e=e.replace(".",""),e=te(e+new Array(a-o+1).join("0"));else if(a<o){e=e.replace(".","");let h=e.length-o+a;e=te(e.substring(0,h)+"."+e.substring(h))}else a==o&&(e=te(e.replace(".","")))}let l=0,u=t.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(0,u+1):e.substring(0,u);if(e=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(u+1):e.substring(u),c.indexOf(".")>-1){let o=c.length-c.indexOf(".")-1;c=c.replace(".",""),u>c.length&&(o+=u-c.length,c=c+new Array(u-c.length+1).join("0")),l=o,s="0."+new Array(o).join("0")}for(r=r+2;l<=r;){let o=0;for(;parseInt(c)>=parseInt(t);)c=Ge(c,"-"+t),o++;s+=o,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,c=c+"0")}return(n==1?"-":"")+te(qe(s,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ge(e,t)}function bt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),_t(e),_t(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=pt(e,mt(t,qe(yt(e,t),0,U.FLOOR)));return r+n}function _t(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Lt(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=ht(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?r?-1:1:r?1:-1;return 0}class K{value;static RoundingModes=U;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=te(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=a+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=a+te(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=K.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=K.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var u="",s=l;s>0;)s<r?(r=s,s=0):s-=r,u=t.substring(s,s+r)+(s<l-r&&s>=0?n:"")+u;return(a?"-":"")+u+t.substring(l)}getPrettyValue(t,r){return K.getPrettyValue(this.value,t,r)}static round(t,r=0,n=U.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return qe(t,r,n)}round(t=0,r=U.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(qe(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,U.FLOOR)}floor(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,U.FLOOR)}static ceil(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,U.CEILING)}ceil(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,U.CEILING)}static add(t,r){return t=K.validate(t),r=K.validate(r),Ge(t,r)}add(t){return new K(Ge(this.value,t.getValue()))}static subtract(t,r){return t=K.validate(t),r=K.validate(r),pt(t,r)}subtract(t){return new K(pt(this.value,t.getValue()))}static multiply(t,r){return t=K.validate(t),r=K.validate(r),mt(t,r)}multiply(t){return new K(mt(this.value,t.getValue()))}static divide(t,r,n){return t=K.validate(t),r=K.validate(r),yt(t,r,n)}divide(t,r){return new K(yt(this.value,t.getValue(),r))}static modulus(t,r){return t=K.validate(t),r=K.validate(r),Pt(t,r)}modulus(t){return new K(Pt(this.value,t.getValue()))}static compareTo(t,r){return t=K.validate(t),r=K.validate(r),Lt(t,r)}compareTo(t){return Lt(this.value,t.getValue())}static negate(t){return t=K.validate(t),bt(t)}negate(){return new K(bt(this.value))}}function Ht(e,t){return K.multiply(`${e}`,`${t}`)}function wt(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function $t(e,t){return e=`${e}`,t=`${t}`,K.compareTo(e,t)}function Kt(e){return K.negate(e)}function St(e,t=-1,r=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let u=l.charAt(0);u=="-"?l=l.substring(1):u="";let s=l,c="",o=l.indexOf(".");o!=-1&&(s=l.substring(0,o),c=l.substring(o+1)),t!=-1&&(t<c.length?c=c.substring(0,t):r&&t>c.length&&(c=c.padEnd(t,"0")));let h;if(n>0){let g="",w=s.split("").reverse();for(let D=0;D<w.length;D++)g+=w[D]+((D+1)%n==0&&D+1!=w.length?a:"");c.length==0?h=`${u}${g.split("").reverse().join("")}`:h=`${u}${g.split("").reverse().join("")}.${c}`}else c.length==0?h=`${u}${s}`:h=`${u}${s}.${c}`;return h}function zt(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Pe=typeof window<"u",Er=Pe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Gt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Z=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Wt(e){return Z(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Z(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Yt(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Ut(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Zt(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function vr(e,t=!0,r=!0){t?e=Zt(e,".",/\./g):e=e.replace(/\./g,""),r?e=Zt(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Or(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(L.isEqual(e,r))return!0}):t.indexOf(e)}function xr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(L.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function We(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Cr(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function le(e,...t){const r=[];t.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const n={};for(const a in e)r.includes(a)||(n[a]=e[a]);return n}const Vr=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?(typeof a[l]=="function"&&(n[l]=a[l](t)),typeof a[l]=="string"&&(n[l]=t[a[l]])):t[l]&&(n[l]=t[l])}),n):e},X=Symbol("BroadcastKey");class Et{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Gt(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const u=this.callbacks.get(r);if(typeof u=="function"){const c=Reflect.apply(u,this.proxy,[...n]);c!=null&&l.push(c)}const s=this.proxy??{};if(typeof s[r]=="function"){const c=Reflect.apply(s[r],s,[...n]);c!=null&&l.push(c)}}return this.children.forEach(u=>{const s=Reflect.apply(u.emit,u,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}emitToChildren(t,r,...n){const a=[];return this.children.forEach(l=>{const u=Reflect.apply(l.emit,l,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}on(t,r){this.callbacks.set(t,r)}}function Ye(e,t,r,n){const a=new Et(t,e,r);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Nr(e,t,r){const n=r;if(n[X])return n[X];const a=i.inject(X,null),l=new Et(a,r,e);if(t&&typeof t=="object")for(const u in t)l.on(u,t[u]);return n[X]=l,i.provide(X,l),i.onUnmounted(()=>{l.destroy(),n[X]=void 0}),l}function _e(e=null){return e||(e=i.getCurrentInstance()?.proxy??null),e?e[X]??i.inject(X,null):i.inject(X,null)}class Tr{error(t,r){const n=r,a=_e(r);a?a.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=_e(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=_e(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const a=n,l=_e(n),u=r.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=t.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!u&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):u&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Xt=new Tr;function Ar(e){Xt=e}function Ir(e,t){xe.default.setValidator(e,t)}function Rr(e){xe.default.deleteValidator(e)}let Jt=["blur","clear"];function jr(e){Jt=e}function Qt(){return Jt}let en=["focus","change"];function Mr(e){en=e}function tn(){return en}function Dr(e){xe.default.messages(e)}function Le(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Ue(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ye=Symbol("ValidateSchemaKey");class nn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;!t||(this.scope=i.effectScope(),this.scope.run(()=>{i.watchEffect(()=>{const r=Ue(Le(this.attrRules,this.rules)),n=[];for(let l in t){let u=t[l];if(this.hasValidator(l,!0)){if(u===!1)continue;let c={type:l};u!==null&&typeof u=="object"&&Object.assign(c,u),n.push(c);continue}let s=this.getValidator(l);if(s!==null){let c={type:l,validator:s};n.push(c)}}this.attrRules=Ue(n);const a=Le(this.attrRules,this.rules);i.nextTick(()=>{this.decorate(a,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const a=Xt;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?xe.default.setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?xe.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return xe.default.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=Le(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ue(t):this.rules=Ue([t]);const n=Le(this.attrRules,this.rules);i.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Le(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},l=this.getValue(),u={[`${n}`]:l},s=new xe.default(a),c=this.proxy??u;return s.validate(u,{context:c}).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=c),this.error(g)}return h}).catch(h=>{const g=h.message??`${h}`;return this.error(g),h})}}return Promise.resolve({pass:!0})}}function Ze(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(l){return l[a]}}}return new nn(t,r,e)}const rn=Symbol("EventEmitterKey");class Fr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===r);a!==-1&&n.splice(a,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...r])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function kr(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function vt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const be=Symbol("DomainKey"),Ae=Symbol("DataItemsKey");class Ot{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=i.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const a=t[n];r.length>0&&r.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];r.push(a)}n=n._parent}return r}}const qr=new Ot;function He(){return qr}function we(e=null){e||(e=i.getCurrentInstance());const t=e?.proxy;return t?t[be]??i.inject(be,null):i.inject(be,null)}const xt=Symbol("OriginalDateKey");function Ct(e,t,r=[],n){const a=i.getCurrentInstance(),l=a?.proxy;let u=i.inject(be,null);u===null&&(u=He());const s=e||t.prop||t.name,c=new Ot(s);c.parent=u;const o=A=>{if(!l[xt]){const x={};L.extend(!0,x,i.toRaw(t.modelValue)),l[xt]=x}c.set("modelValue",A)},h=()=>c.getForSelf("modelValue")??null,g=()=>l[xt]??null;i.isReactive(t)?i.watchEffect(()=>{c.merge(t,r)}):c.merge(t,r),l[be]=c,i.provide(be,c);let w=null,D=null;if(a!==null){const A=i.inject(X,null);w=Ye(l,A,s,n),c.broadcast=w,l[X]=w,i.provide(X,w),l.broadcast=(b,I,...M)=>Reflect.apply(w.emit,w,[b,I,...M]);const x=i.inject(ye,null);D=Ze(l,x,{componentName:""}),c.validateSchema=D,l[ye]=D,i.provide(ye,D),l[Ae]=new Map,l.validate=(b=!0)=>{const I=[];let M=null;if(b===!0)M={name:"*"};else if(Array.isArray(b)&&b.length>0){const S=b;M={name:p=>p?S.indexOf(p)!==-1:!1}}else if(b!=null&&typeof b=="object"){const S=b;if(Array.isArray(S.include)&&S.include.length>0){const p=S.include;M={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const p=S.exclude;M={name:$=>$?p.indexOf($)===-1:!1}}}if(M){const S=w?.emitToChildren(M,"validate",!1);S&&Reflect.apply([].push,I,S)}return I.length==1?I[0]:I.length>1?Promise.all(I).then(S=>{let p=[];return S.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(p=[...p,...$.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(b,I=!0)=>{if(I){const M=Reflect.ownKeys(b),S=[...M],p={name:$=>{const E=M.includes($);if(E){const R=S.findIndex(N=>$===N);R!==-1&&S.splice(R,1)}return E}};w?.emitToChildren(p,"setNameValidateRules",b,!1),S.length>0&&S.forEach($=>{let E=String($);const N=an(c,E,{componentName:"",fieldName:E,pureDataValidate:!0},w,D);l[Ae].set(E,N);const C=b[E];C&&N.validateSchema.setRule(C)})}},l.clearValidate=(b=!0)=>{let I=null;if(b===!0)I={name:"*"};else if(Array.isArray(b)&&b.length>0){const M=b;I={name:S=>S?M.indexOf(S)!==-1:!1}}else if(b!=null&&typeof b=="object"){const M=b;if(Array.isArray(M.include)&&M.include.length>0){const S=M.include;I={name:p=>p?S.indexOf(p)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const S=M.exclude;I={name:p=>p?S.indexOf(p)===-1:!1}}}I&&w?.emitToChildren(I,"clearValidate",!1)},l.resetFields=b=>{const I=h();if(!I)return;const M={};if(L.extend(!0,M,g()??{}),Array.isArray(b))b.forEach(S=>{I[S]=M[S]});else if(b&&Array.isArray(b.include))(b.include??[]).forEach(p=>{I[p]=M[p]});else if(b&&Array.isArray(b.exclude)){let S=b.exclude??[];Reflect.ownKeys(M).forEach(p=>{S.includes(p)||(I[p]=M[p])})}else Object.assign(I,M);l.clearValidate(b)},l.setModelValue=(b,I)=>{!I||I===s?o(b):w?.emitToChildren({name:I},"setModelValue",b)},l.getModelValue=()=>h()}return i.onUnmounted(()=>{c.destroy(),l[be]=void 0,l[Ae]&&(l[Ae].clear(),l[Ae]=void 0),w!==null&&(w.destroy(),l[X]=void 0),D!==null&&(D.destroy(),l[ye]=void 0)}),c}function re(e,t,r){const a=i.getCurrentInstance()?.proxy,l=t??"",u=i.inject(X,null),s=Ye(a,u,l,r);a[X]=s,i.provide(X,s),a.broadcast=(A,x,...b)=>Reflect.apply(s.emit,s,[A,x,...b]);const c=i.inject(ye,null);e.fieldName=e.fieldName??l;const o=Ze(a,c,e);a[ye]=o,i.provide(ye,o),a.validate=(A=null)=>{const x=[];if(!Array.isArray(A)||A.indexOf(l)!==-1){const I=o?.validate();x.push(I)}let b=null;if(A===!0)b={name:"*"};else if(Array.isArray(A)&&A.length>0){const I=A;b={name:M=>M?I.indexOf(M)!==-1:!1}}else if(A!=null&&typeof A=="object"){const I=A;if(Array.isArray(I.include)&&I.include.length>0){const M=I.include;b={name:S=>S?M.indexOf(S)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const M=I.exclude;b={name:S=>S?M.indexOf(S)===-1:!1}}}if(b){const I=s.emitToChildren(b,"validate",!1);Reflect.apply([].push,x,I)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(I=>{let M=[];return I.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(M=[...M,...S.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=A=>o?.setRule(A),a.setNameValidateRules=(A,x=!1)=>{const b=A[l];if(b&&o?.setRule(b),x){const I={name:M=>Reflect.ownKeys(A).includes(M)};s.emitToChildren(I,"setNameValidateRules",A,!1)}},a.clearValidate=(A=null)=>{(!Array.isArray(A)||A.indexOf(t??"")!==-1)&&o?.clear();let x=null;if(A===!0)x={name:"*"};else if(Array.isArray(A)&&A.length>0){const b=A;x={name:I=>I?b.indexOf(I)!==-1:!1}}else if(A!=null&&typeof A=="object"){const b=A;if(Array.isArray(b.include)&&b.include.length>0){const I=b.include;x={name:M=>M?I.indexOf(M)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const I=b.exclude;x={name:M=>M?I.indexOf(M)===-1:!1}}}x&&s.emitToChildren(x,"clearValidate",!1)};const h=new Fr(a);a[rn]=h;const g=vt((A="validate")=>{A==="reset"?o.clear():o.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qt()).forEach(A=>{h.on(A,x=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:tn()).forEach(A=>{h.on(A,x=>{g("reset")})}),i.onUnmounted(()=>{s.destroy(),a[X]=void 0,o.destroy(),a[ye]=void 0,h.destroy(),a[rn]=void 0}),{broadcast:s,validateSchema:o,emitEvent:(A,...x)=>{Reflect.apply(h.emit,h,[A,...x])},onEvent:(A,x)=>{Reflect.apply(h.on,h,[x])},offEvent:(A,x)=>{Reflect.apply(h.off,h,[x])}}}function an(e,t,r,n,a){const l={},u=t??"";r.fieldName=u,r.validateHandler={getValue(o){const h=e.getForSelf("modelValue");return h?h[u]:null}};const s=Ze({},a,r);l.validate=(o=null)=>{const h=[];if(!Array.isArray(o)||o.indexOf(u)!==-1){const w=s?.validate();h.push(w)}let g=null;if(o===!0)g={name:"*"};else if(Array.isArray(o)&&o.length>0){const w=o;g={name:D=>D?w.indexOf(D)!==-1:!1}}else if(o!=null&&typeof o=="object"){const w=o;if(Array.isArray(w.include)&&w.include.length>0){const D=w.include;g={name:A=>A?D.indexOf(A)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const D=w.exclude;g={name:A=>A?D.indexOf(A)===-1:!1}}}if(g){const w=c.emitToChildren(g,"validate",!1);Reflect.apply([].push,h,w)}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let D=[];return w.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(D=[...D,...A.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=o=>s?.setRule(o),l.setNameValidateRules=o=>{const h=o[u];h&&s?.setRule(h)};const c=Ye(null,n,u,l);return{broadcast:c,validateSchema:s}}const J=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${Q(e,t)}px`:"";function Q(e,t=-1){if(typeof e=="number")return e<1?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let a=Number(e.substring(0,r)),l=1;if(Pe){const{fontSize:u}=window.getComputedStyle(document.documentElement,null),s=u.indexOf("px");s>0&&(l=Number(u.substring(0,s)))}return a*=l,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))*t;const n=Number(e);return isNaN(n)?0:n}const $e="PageStateKey";function he(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=Q(e.top)),e.left!==null&&e.left!==void 0&&(t.left=Q(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=Q(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=Q(e.right))),t}function Vt(e,t,r={},n=!0,a=-1,l=-1,u=0,s=0){e.headerHeight=Q(r.headerHeight??t.headerHeight),e.headerPadding=he(r.headerPadding??t.headerPadding),e.footerHeight=Q(r.footerHeight??t.footerHeight),e.footerPadding=he(r.footerPadding??t.footerPadding),e.contentPadding=he(r.contentPadding??t.contentPadding),n&&(e.height=Q(r.height??t.height,l)-Q(u,l)-Q(s,l),e.width=Q(r.width??t.width,a))}function ln(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=Q(a.top),n.safeAreaBottom=Q(a.bottom),n.safeAreaLeft=Q(a.left),n.safeAreaRight=Q(a.right));const l=e.get("pageLayout");if(!l)return null;const u=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,o=e.get("footerBarHeight")??0;Vt(n,l,t,!0,u,s,c,o);const h=i.reactive(n),g=e.getForParent($e);g&&(n.height=et(e,g),n.width=tt(e,g),i.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{h.height=et(e,g),h.width=tt(e,g)}));const w=!g;return i.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([D,A=-1,x=-1,b=0,I=0])=>{Vt(h,D,t,w,A,x,b,I)}),e.set($e,h),h}function Xe(e){return e.get($e)}function Je(e,t){return t=t??e.get($e),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function Qe(e,t){return t=t??e.get($e),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function et(e,t){if(t=t??e.get($e),t){const r=Je(e,t),n=Qe(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function tt(e,t){return t=t??e.get($e),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Br(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Pr(e){return!!e.getForParent($e)}var nt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(nt||{});function Nt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ie(e,t,r=1,n){const a=we();return a==null?e:r===0?i.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const c=l[s];if(Nt(c,n))return c}const u=e.value;return Nt(u,n)?u:null}):i.computed(()=>{const l=e.value;return Nt(l,n)?l:a?.get(t)})}function ue(e){return Ie(e,"readonly",0,function(r){return L.toBoolean(r)})}function ce(e){return Ie(e,"disabled",0,function(r){return L.toBoolean(r)})}function Y(e,t="modelValue",r){const n=i.toRef(e,t);let a=n.value;typeof r=="function"&&(a=r(n.value));const l=i.ref(a);return i.watch(n,u=>{if(typeof r=="function"){const s=r(u);s!==l.value&&(l.value=s)}else u!==l.value&&(l.value=u)}),l}const on=new Map,rt=new Map;let Tt=null;function _r(e){Tt=e}function sn(e,t,r){if(r){let n=rt.get(r);n||(n=new Map,rt.set(r,n)),n.set(e,t)}else on.set(e,t)}function Ce(e,t,r){!r&&Tt&&(r=Tt(e)??void 0);let n=null;if(r){let a=rt.get(r);a&&(n=a.get(t))}return n||(n=on.get(t)),n}function Lr(e,t){for(let r in e){const n=e[r];sn(r,n,t)}}function Hr(e){rt.delete(e)}function Kr(){return{top:0,left:0,bottom:0,right:0}}function zr(){if(Pe){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class Gr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=He();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=vt(()=>{const s={...r},c=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=o,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in r)n.indexOf(l)===-1&&a.set(l,r[l])}initPageLayout(t,r){const n=L.extend({},Kr(),t.safeAreaInset),a=L.extend({},zr(),t.pageLayout);r=r??He(),r.set("safeAreaInset",n),r.set("headerBarHeight",t.headerBarHeight??0),r.set("footerBarHeight",t.footerBarHeight??0),r.set("pageLayout",a),r.set("rootWidth",a.width),r.set("rootHeight",a.height)}setScopeGetter(t){_r(t)}setAPI(t,r,n){sn(t,r,n)}getAPI(t,r,n){return Ce(t,r,n)}batchSetAPI(t,r){Lr(t,r)}clearScopeAPI(t){Hr(t)}getRootDomain(){return He()}}const Wr=[f.ElAffix,f.ElAlert,f.ElAutocomplete,f.ElAutoResizer,f.ElAvatar,f.ElBacktop,f.ElBadge,f.ElBreadcrumb,f.ElBreadcrumbItem,f.ElButton,f.ElButtonGroup,f.ElCalendar,f.ElCard,f.ElCarousel,f.ElCarouselItem,f.ElCascader,f.ElCascaderPanel,f.ElCheckTag,f.ElCheckbox,f.ElCheckboxButton,f.ElCheckboxGroup,f.ElCol,f.ElCollapse,f.ElCollapseItem,f.ElCollapseTransition,f.ElColorPicker,f.ElConfigProvider,f.ElContainer,f.ElAside,f.ElFooter,f.ElHeader,f.ElMain,f.ElDatePicker,f.ElDescriptions,f.ElDescriptionsItem,f.ElDialog,f.ElDivider,f.ElDrawer,f.ElDropdown,f.ElDropdownItem,f.ElDropdownMenu,f.ElEmpty,f.ElForm,f.ElFormItem,f.ElIcon,f.ElImage,f.ElImageViewer,f.ElInput,f.ElInputNumber,f.ElLink,f.ElMenu,f.ElSubMenu,f.ElMenuItem,f.ElMenuItemGroup,f.ElPageHeader,f.ElPagination,f.ElPopconfirm,f.ElPopover,f.ElPopper,f.ElProgress,f.ElRadio,f.ElRadioButton,f.ElRadioGroup,f.ElRate,f.ElResult,f.ElRow,f.ElScrollbar,f.ElSelect,f.ElOption,f.ElOptionGroup,f.ElSelectV2,f.ElSkeleton,f.ElSkeletonItem,f.ElSlider,f.ElSpace,f.ElSteps,f.ElStep,f.ElSwitch,f.ElTable,f.ElTableColumn,f.ElTableV2,f.ElTabs,f.ElTabPane,f.ElTag,f.ElTimePicker,f.ElTimeSelect,f.ElTimeline,f.ElTimelineItem,f.ElTooltip,f.ElTransfer,f.ElTree,f.ElTreeSelect,f.ElTreeV2,f.ElUpload],Yr=[f.ElInfiniteScroll,f.ElLoading,f.ElMessage,f.ElMessageBox,f.ElNotification,f.ElPopoverDirective],Ur=e=>{Wr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Yr.forEach(t=>{e.use(t)})};function W(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},i.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,i.defineComponent(r)}}}const ne={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}},oe={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},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:{}},hasBorder:{type:Boolean,default:!0}},un={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},cn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0}},fn=[];for(const e in cn)fn.push(e);function se(e,t=null){if(t||(t=i.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Zr=Symbol.for("InnerPageScopeKey"),Xr=(e,t)=>({inheritAttrs:!1,props:{...ne,...un,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(r,n){const a=Ct(r.name,r);if(a){const o=ln(a,r);se({getPageContentHeight:()=>et(a,o),getPageContentWidth:()=>tt(a,o),getPageHeaderHeight:()=>Je(a,o),getPageFooterHeight:()=>Qe(a,o)});const h=i.inject(Zr,!1);o&&h&&(o.contentHeight="100%")}const l=i.computed(()=>({[e]:!0})),u=i.computed(()=>({})),s=i.getCurrentInstance(),c=o=>{const h=s?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(o,!0)};return i.watch(()=>r.rules,(o,h)=>{if(!o&&!h)return;const g=i.toRaw(h),w=i.toRaw(o),D=w?Reflect.ownKeys(w):[];(g?Reflect.ownKeys(g):[]).forEach(x=>{D.includes(x)||(w[x]=[])}),c(w)},{deep:!0}),i.onMounted(()=>{if(r.rules){const o=i.toRaw(r.rules);c(o)}}),{classes:l,styles:u}}}),{componentName:Jr,create:Qr,scope:Ml}=W("page"),ea=Qr(Xr(Jr));function ta(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},dn=Ve(ea,[["render",ta]]),na=(e,t)=>({props:{padding:{type:[Object],required:!1}},emits:[],setup(r,n){const a=we(),l=a?Xe(a):null;l&&(l.headerMounted=!0);const u=i.computed(()=>({[e]:!0})),s=i.computed(()=>{const o={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&l){const h=he(r.padding??l.footerPadding);return Object.assign(o,h),o.height=l.headerHeight,o.safeAreaTop=l.safeAreaTop,o.safeAreaTop&&(o.top=o.safeAreaTop+(h.top??0),o.height=o.height+l.safeAreaTop),o.height,o.safeAreaTop,o}if(r.padding){const h=he(r.padding);Object.assign(o,h)}return o});i.onUnmounted(()=>{l&&(l.headerMounted=!1)});const c=i.computed(()=>{const o={};return s.value.height&&(o.height=`${s.value.height}px`),s.value.top&&(o.paddingTop=`${s.value.top}px`),s.value.left&&(o.paddingLeft=`${s.value.left}px`),s.value.right&&(o.paddingRight=`${s.value.right}px`),s.value.bottom&&(o.paddingBottom=`${s.value.bottom}px`),o});return{classes:u,styles:c}}}),{componentName:ra,create:aa,scope:Dl}=W("header-bar"),ia=aa(na(ra));function la(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const hn=Ve(ia,[["render",la]]);function oa(e,t){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const a=we(),l=a?Xe(a):null;l&&(l.footerMounted=!0);const u=i.computed(()=>{const o=e;let h=e;return r.align==="left"?h=`${h}__left`:r.align==="right"?h=`${h}__right`:h=`${h}__center`,{[o]:!0,[h]:!0}}),s=i.computed(()=>{const o={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&l){const h=he(r.padding??l.footerPadding);return Object.assign(o,h),o.safeAreaBottom=l.safeAreaBottom,o.safeAreaBottom&&(o.height=l.footerHeight+l.safeAreaBottom,o.bottom=o.safeAreaBottom+(h.bottom??0)),o.height,o.safeAreaBottom,o}if(r.padding){const h=he(r.padding);Object.assign(o,h)}return o});i.onUnmounted(()=>{l&&(l.footerMounted=!1)});const c=i.computed(()=>{const o={};return s.value&&(o.height=`${s.value.height}px`),s.value&&(o.paddingTop=`${s.value.top}px`),s.value&&(o.paddingLeft=`${s.value.left}px`),s.value&&(o.paddingRight=`${s.value.right}px`),s.value&&(o.paddingBottom=`${s.value.bottom}px`),o});return{classes:u,styles:c}}}}const{componentName:sa,create:ua,scope:Fl}=W("footer-bar"),ca=ua(oa(sa));function fa(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const gn=Ve(ca,[["render",fa]]);function da(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=we(),a=i.computed(()=>({[e]:!0})),l=i.computed(()=>{const u={};if(n){const s=Xe(n);if(s){if(r.padding){const g=he(r.padding);Object.assign(s.contentPadding,g)}const c=Je(n,s),o=Qe(n,s);let h="";if(s.contentHeight?h=`${s.contentHeight}`:h=`${s.height}px`,s.contentPadding,u.height=h,s.contentPadding.top||c>0){const g=(s&&s.contentPadding&&s.contentPadding.top)??0;u.paddingTop=`${c+g}px`}if(s.contentPadding.bottom||o>0){const g=(s&&s.contentPadding&&s.contentPadding.bottom)??0;u.paddingBottom=`${o+g}px`}return s.contentPadding.left&&(u.paddingLeft=`${s.contentPadding.left}px`),s.contentPadding.right&&(u.paddingRight=`${s.contentPadding.right}px`),u}}if(r.padding){const s=he(r.padding);s.left&&(u.paddingLeft=`${s.left}px`),s.top&&(u.paddingTop=`${s.top}px`),s.right&&(u.paddingRight=`${s.right}px`),s.bottom&&(u.paddingBottom=`${s.bottom}px`)}return u});return{classes:a,styles:l}}}}const{componentName:ha,create:ga,scope:kl}=W("content"),ma=ga(da(ha));function ya(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const mn=Ve(ma,[["render",ya]]),at="GroupStateKey",yn=Symbol.for("GroupScopeKey");function it(){return i.inject(yn,!1)}function lt(e=!0){i.provide(yn,e)}function pa(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const a=i.shallowRef(n),l=i.markRaw({layout:a,passport:0});return e.set(at,l),l}function pn(e,t,r=-1,n=-1,a=!1){const l=e.get(at);if(!l)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0);const s=u.minItemWidth??-1,c=()=>{const o=t===""||t===-1,h=Q(t);let g=L.toNumber(r);const w=Q(n);if(!o){let x=(h-(g-1)*w)/g;for(;s!==-1&&g>1&&x<s;)g--,x=(h-(g-1)*w)/g}let D=!1;const A=l.layout;A.value.width=t,A.value.column!==g&&(A.value.column=g,D=!0),A.value.gutter!==w&&(A.value.gutter=w,D=!0),D&&i.triggerRef(A)};if(a)c();else{const o=++l.passport;setTimeout(()=>{o===l.passport&&c()},50)}}function ot(e,t=!1){let r;return t?r=e.getForParent(at):r=e.get(at),r.layout}function Se(e,t=1){return t==="stretch"?-1:(t=L.toNumber(t),t===-1?100:100*t/e)}function ba(e){return e===window}const st=e=>{const t=i.unref(e);if(ba(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ke=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,wa=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},$a=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=L.toNumber(e.props.offset);return t<0?0:t};function Sa(e,t){return{props:{...ne,...un,...cn},setup(r,n){const a=Ct(r.name,r,fn),l=pa(a,{type:r.type}),u=it();lt(!0);const s=i.getCurrentInstance(),c=p=>{const $=s?.proxy;$&&typeof $.setNameValidateRules=="function"&&$.setNameValidateRules(p,!0)};i.watch(()=>r.rules,(p,$)=>{if(!p&&!$)return;const E=i.toRaw($),R=i.toRaw(p),N=R?Reflect.ownKeys(R):[];(E?Reflect.ownKeys(E):[]).forEach(m=>{N.includes(m)||(R[m]=[])}),c(R)},{deep:!0}),i.onMounted(()=>{if(r.rules){const p=i.toRaw(r.rules);c(p)}});const o=e,h=i.computed(()=>{const p={};if(u&&a){const $=ot(a,!0);if($.value.type!=="flex")return{};if(r.width){const N=J(r.width);p.width=N}else{const N=Se($.value.column,r.span);N>0&&(p.width=`${N}%`)}if(r.height){const N=J(r.height);p.height=N}const E=Se($.value.column,r.offset);E>0&&(p["margin-left"]=`${E}%`);const R=$.value.gutter/2;R>0&&(p["padding-left"]=`${R}px`,p["padding-right"]=`${R}px`)}else{if(r.width){const $=J(r.width);p.width=$}if(r.height){const $=J(r.height);p.height=$}}return p}),g=i.computed(()=>r.type==="flex"?{[`${Ke("",r.type)}`]:!0,[`${Ke("justify",r.justify)}`]:!0,[`${Ke("align",r.align)}`]:!0,[`${Ke("flex",r.flexWrap)}`]:!0,[`${o}__gutter`]:!0}:{[`${Ke("",r.type)}`]:!0,[`${o}__gutter`]:!0}),w=i.toRef(r,"title"),D=i.toRef(r,"gutter"),A=i.toRef(r,"column"),x=i.computed(()=>u?!0:r.isWrap),b=i.ref([]),I=p=>{b.value.push(p)},M=i.ref(-1);if(pn(a,M.value,A.value,D.value,!0),r.autoLayout){i.watch([M,A,D],([$,E,R])=>{pn(a,$,E,R,!1)});let p=null;i.onMounted(()=>{if(Pe&&b.value&&b.value.length>0){const $=b.value[0];M.value=st($).width,window.ResizeObserver&&(p=new window.ResizeObserver(()=>{const E=st($).width;E>0&&E!==M.value&&(M.value=E)}),p.observe($))}}),i.onUnmounted(()=>{p?.disconnect()})}const S=(p,$,E,R)=>{const N={...g.value};return $===0&&(N[`${o}__first`]=!0),E>=R-1&&(N[`${o}__last`]=!0),i.h("div",{ref:I,key:`${$}`,class:N},p)};return()=>{const p=[];let $=0;if(n.slots.title){const C={key:`${$++}`,class:{[`${o}__title`]:!0,[`${o}__first`]:!0}},m=i.h("div",C,[n.slots.title()]);p.push(m)}else if(w.value){const C={key:`${$++}`,class:{[`${o}__title`]:!0,[`${o}__first`]:!0}},m=[];if(r.showMark){const V=i.h("div",{class:{[`${o}__title-mark`]:!0}});m.push(V)}const k=i.h("div",{class:{[`${o}__title-text`]:!0}},[w.value]);m.push(k);const _=i.h("div",C,m);p.push(_)}const E=n.slots.default?n.slots.default():[];let R=[],N=0;if(r.type==="flex"){for(let C=0;C<E.length;C++){const m=E[C],k=wa(m),_=$a(m);if(k==="stretch"){if(N<l.layout.value.column){R.push(m);const y=S([...R],$++,C,E.length);p.push(y)}else{const y=S([...R],$++,C-1,E.length);p.push(y);const v=S([m],$++,C,E.length);p.push(v)}N=0,R=[];continue}let V=L.toNumber(k);if(V===-1){if(R.length>0){const v=S([...R],$++,C-1,E.length);p.push(v)}const y=S([m],$++,C,E.length);p.push(y),N=0,R=[];continue}V>l.layout.value.column?V=l.layout.value.column:V<=0&&(V=1);const j=N+V+_;if(j>l.layout.value.column){const y=S([...R],$++,C-1,E.length);p.push(y),N=V+_,R=[m]}else R.push(m),N=j}if(R.length>0){const C=S([...R],$++,E.length,E.length);p.push(C)}}else for(let C=0;C<E.length;C++){const m=E[C],k=S([m],$++,C,E.length);p.push(k)}return x.value?i.h("div",{class:{[`${o}`]:!0},style:h.value},[p]):p}}}}const{componentName:Ea,create:va,scope:ql}=W("group"),bn=va(Sa(Ea)),wn={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,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Oa,create:xa}=W("price"),Ca=xa({props:{...wn},setup(e){const t=i.computed(()=>({[Oa]:!0})),r=i.computed(()=>e.needSymbol?e.symbol:""),n=i.computed(()=>We(e.price)==0?"":St(e.price,e.decimalLength,!0,e.digits,e.separator)),a=i.computed(()=>{let u=n.value;if(u.length==0)return"";let s=u.indexOf(".");return u.substring(0,s)}),l=i.computed(()=>{let u=n.value;if(u.length==0)return"";let s=u.indexOf(".");return u.substring(s+1)});return{classes:t,showSymbol:r,intText:a,decimalText:l}}}),Va=["innerHTML"],Na=["innerHTML"];function Ta(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("view",{class:i.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(i.openBlock(),i.createElementBlock("view",{key:0,class:i.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Va)):i.createCommentVNode("",!0),i.createElementVNode("view",{class:i.normalizeClass(`fox-price--${e.size}`)},i.toDisplayString(e.intText),3),e.decimalText.length!=0?(i.openBlock(),i.createElementBlock("view",{key:1,class:i.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):i.createCommentVNode("",!0),i.createElementVNode("view",{class:i.normalizeClass(`fox-price--decimal-${e.size}`)},i.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(i.openBlock(),i.createElementBlock("view",{key:2,class:i.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Na)):i.createCommentVNode("",!0)],2)}const ut=Ve(Ca,[["render",Ta]]),{componentName:At,create:Aa}=W("hint-text"),Ia=Aa({components:{[ut.name]:ut},props:{...wn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=i.computed(()=>({[At]:!0})),l=i.computed(()=>({left:J(e.startPoint.x),top:J(e.startPoint.y-e.height-10-4),height:J(e.height),width:J(e.width)})),u=i.computed(()=>({[`${At}__content`]:!0})),s=i.computed(()=>({})),c=i.computed(()=>({[`${At}__arrow`]:!0})),o=i.computed(()=>({top:J(e.height)}));return{classes:a,styles:l,textClasses:u,textStyles:s,arrowClasses:c,arrowStyles:o}}}),Ra={key:1,class:"text"};function ja(e,t,r,n,a,l){const u=i.resolveComponent("fox-price");return i.openBlock(),i.createBlock(i.Transition,{name:"hint-text-fade"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.createElementVNode("div",{class:i.normalizeClass(e.textClasses),style:i.normalizeStyle(e.textStyles)},[e.type=="number"?(i.openBlock(),i.createBlock(u,{key:0,price:e.message,position:"before"},null,8,["price"])):(i.openBlock(),i.createElementBlock("span",Ra,i.toDisplayString(e.message),1))],6),i.createElementVNode("div",{class:i.normalizeClass(e.arrowClasses),style:i.normalizeStyle(e.arrowStyles)},null,6)],6),[[i.vShow,e.visible]])]),_:1})}const ct=Ve(Ia,[["render",ja]]);class $n{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function Ma(e){return e===window}const Sn=e=>{const t=i.unref(e);if(!t)return{x:0,y:0};if(Ma(t))return{x:0,y:0};let r=0,n=0,a=t;for(;a!==null;)n+=a.scrollTop,r+=a.scrollLeft,a=a.parentElement;const l=t.getBoundingClientRect(),u=l.x+r,s=l.y+n;return{x:u,y:s}},It={},Da=new $n,Re=new Map,Rt=e=>{if(e){const t=document.getElementById(e);Re.delete(e),t&&document.body.removeChild(t)}else{for(const t of Re.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Re.clear()}},Fa=e=>{const t=document.getElementById(e.id);if(t){const r=Re.get(e.id);r?e={...It,...r,...e}:e={...It,...e};const n=i.createVNode(ct,e);return i.render(n,t),e.id}},ka=e=>{e.unmount=Rt;let t;if(e.id){if(t=e.id,Re.has(t))return Fa(e)}else t=`hinttext_${Da.get()}`;e={...It,...e},e.id=t,Re.set(t,e);const r=document.createElement("div");r.id=e.id;const n=i.createVNode(ct,e);return i.render(n,r),document.body.appendChild(r),t},qa=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&Rt(),qa(t);const a=Sn(e),l={x:a.x,y:a.y},s=st(e).width;return ka({...r,message:t,startPoint:l,width:s})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:En,create:Ba}=W("item"),Pa=Ba({inheritAttrs:!0,props:{...ne,...oe},setup(e,t){re({componentName:En,validate:!1},e.prop??e.name);const r=we(),n=it();lt(!1);const a=En,l=i.computed(()=>({[a]:!0,[`${a}__gutter`]:!0,[`${a}__stretch`]:e.span==="stretch",[`${a}__input--border`]:e.hasBorder,"is-error":!!N.value,"is-warn":!!E.value,"is-info":!!p.value})),u=i.computed(()=>{const T={};if(n&&r){const F=ot(r,!1);if(F.value.type!=="flex")return e.width&&(T.width=J(e.width)),T;if(e.width)T.width=J(e.width);else{const P=Se(F.value.column,e.span);P>0&&(T.width=`${P}%`)}const q=Se(F.value.column,e.offset);q>0&&(T["margin-left"]=`${q}%`);const B=F.value.gutter/2;B>0&&(T["padding-left"]=`${B}px`,T["padding-right"]=`${B}px`)}else e.width&&(T.width=J(e.width));return T}),s=i.ref(null),c=i.computed({get:()=>s.value??L.toBoolean(e.isRequired),set:T=>{s.value=T}}),o=i.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),h=Ie(i.toRef(e,"labelPosition"),"labelPosition",nt.Near),g=i.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),w=i.computed(()=>({[`${a}__main`]:!0,[`${a}__main--${g.value}`]:!0})),D=i.computed(()=>({label:!0,[`label--${g.value}`]:!0})),A=Ie(i.toRef(e,"labelWidth"),"labelWidth",nt.Near),x=i.computed(()=>A&&A.value?{width:J(A.value)}:{}),b=i.computed(()=>({["label--string"]:!0,["label--required"]:c.value})),I=i.computed(()=>({content:!0,[e.contentClass]:!0})),M=i.computed(()=>({...e.contentStyle})),S=i.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});se({setRequired(T){c.value=T},setErrorTip(T){S.errorTip=T},setErrorIcon(T){S.errorIcon=T},setWarnTip(T){S.warnTip=T},setWarnIcon(T){S.warnIcon=T},setInfoTip(T){S.infoTip=T},setInfoIcon(T){S.infoIcon=T}});const p=i.computed(()=>e.infoTip||S.infoTip),$=i.computed(()=>e.infoIcon||S.infoIcon),E=i.computed(()=>e.warnTip||S.warnTip),R=i.computed(()=>e.warnIcon||S.warnIcon),N=i.computed(()=>e.errorTip||S.errorTip),C=i.computed(()=>e.errorIcon||S.errorIcon),m=i.computed(()=>N.value?"error":E.value?"warn":p.value?"info":""),k=i.computed(()=>m.value.length>0),_=i.computed(()=>m.value==="error"?N.value:m.value==="warn"?E.value:m.value==="info"?p.value:""),V=i.computed(()=>m.value==="error"?C.value:m.value==="warn"?R.value:m.value==="info"?$.value:null),j=i.computed(()=>{let T={[`${a}__tip`]:!0,[`${a}__tip--${m.value}`]:!0};return m.value==="error"&&e.errorClass?T[`${e.errorClass}`]=!0:m.value==="warn"&&e.warnClass?T[`${e.warnClass}`]=!0:m.value==="info"&&e.infoClass&&(T[`${e.infoClass}`]=!0),T}),y=i.computed(()=>{let T={};return h&&h.value==="top"?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=J(A.value)),T}),v=i.ref();let O="";return i.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([T,F,q,B])=>{!v.value||(T&&!Z(F)?O?ft.show(v.value,F,{...B,id:O,type:q}):O=ft.show(v.value,F,{...B,type:q}):ft.hide(O))}),{classes:l,styles:u,mainClasses:w,hasLabel:o,labelClasses:D,labelStyles:x,labelStringClasses:b,contentClasses:I,contentStyles:M,contentRef:v,hasTip:k,mTip:_,mIcon:V,tipClasses:j,tipStyles:y}}}),_a={key:0,class:"fox-item__tip-icon"},La={class:"fox-item__tip-text"};function Ha(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.createElementVNode("div",{class:i.normalizeClass(e.mainClasses)},[e.hasLabel?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.labelClasses),style:i.normalizeStyle(e.labelStyles)},[i.createElementVNode("div",{class:i.normalizeClass(e.labelStringClasses)},[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])],2)],6)):i.createCommentVNode("",!0),i.createElementVNode("div",{ref:"contentRef",class:i.normalizeClass(e.contentClasses),style:i.normalizeStyle(e.contentStyles)},[i.renderSlot(e.$slots,"prepend"),i.renderSlot(e.$slots,"default"),i.renderSlot(e.$slots,"append")],6)],2),i.createVNode(i.Transition,{name:"fox-item__animate"},{default:i.withCtx(()=>[e.hasTip?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.tipClasses),style:i.normalizeStyle(e.tipStyles)},[e.mIcon?(i.openBlock(),i.createElementBlock("div",_a,i.toDisplayString(e.mIcon),1)):i.createCommentVNode("",!0),i.createElementVNode("div",La,i.toDisplayString(e.mTip),1)],6)):i.createCommentVNode("",!0)]),_:1}),i.renderSlot(e.$slots,"hide")],6)}const ae=Ve(Pa,[["render",Ha]]);function Ka(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const a=e,l=i.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch"})),u=we(),s=it();lt(!1);const c=i.computed(()=>{const o={};if(s&&u){const h=ot(u,!1);if(h.value.type!=="flex")return r.width&&(o.width=toPxDesc(r.width)),o;if(r.width)o.width=toPxDesc(r.width);else{const D=Se(h.value.column,r.span);D>0&&(o.width=`${D}%`)}const g=Se(h.value.column,r.offset);g>0&&(o["margin-left"]=`${g}%`);const w=h.value.gutter/2;w>0&&(o["padding-left"]=`${w}px`,o["padding-right"]=`${w}px`)}else r.width&&(o.width=toPxDesc(r.width));return o});return()=>{const o={class:l.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?i.h("div",o,n.slots.default()):i.h("div",o)}}}}const{componentName:za,create:Ga,scope:Bl}=W("slot-item"),vn=Ga(Ka(za));function Wa(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]}},setup(r,n){const a=e,l=i.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),u=we(),s=it();lt(!1);const c=i.computed(()=>{const h={};if(s&&u){const g=ot(u,!1);if(g.value.type!=="flex")return r.width&&(h.width=J(r.width)),h;if(r.width)h.width=J(r.width);else{const A=Se(g.value.column,r.span);A>0&&(h.width=`${A}%`)}const w=Se(g.value.column,r.offset);w>0&&(h["margin-left"]=`${w}%`);const D=g.value.gutter/2;D>0&&(h["padding-left"]=`${D}px`,h["padding-right"]=`${D}px`)}else r.width&&(h.width=J(r.width));return h}),o=i.computed(()=>({[`${a}__content`]:!0}));return()=>{const h=[];n.slots.default&&h.push(n.slots.default());const g={class:o.value},w=i.h("div",g,h),D={class:l.value,style:c.value};return i.h("div",D,[w])}}}}const{componentName:Ya,create:Ua,scope:Pl}=W("row-item"),On=Ua(Wa(Ya)),xn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Za(e,t,r){return{props:{...ne,...oe,...xn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=R=>{g.value=R,l("update:modelValue",R),l("input",R)},x=R=>{l("change",R)};let b=Y(n,"hintText"),I=i.ref(!1);const M=R=>{let C=R.target.value;c.value=!0,Z(b.value)||(I.value=!0),l("focus",C,R)},S=R=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let C=R.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),l("blur",C,R)},p=()=>{l("clear","")},$=i.computed(()=>We(n.unit)>0),E=i.ref();return se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()}}),()=>{const N={...a.attrs,ref:E,class:D.value,placeholder:s.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:h.value,modelValue:g.value,onClear:p,onChange:x,onInput:A,onFocus:M,onBlur:S},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:$.value&&(C.suffix=()=>[n.unit]);const m=[],k=i.h(f.ElInput,N,C);m.push(k);const _={default:()=>m};if(a.slots.default){const v=a.slots.default();_.label=()=>v}const j={...le(n,xn),hintText:b.value,hintVisible:I.value,prop:`${n.prop}_item`};return i.h(r,j,_)}}}}const{componentName:Xa,create:Ja,scope:Qa}=W("input-item"),Cn=Ja(Za(Xa,Qa,ae));function Ne(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class ei{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function ti(){const e=i.getCurrentInstance();return new ei(e.proxy)}function Nn(e,t,r){const n=Ne(e,t),a=Ne(e,r);if(n!==a)return!1;const l=je(e,t),u=je(e,r);return l===u}function Tn(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let u of n){const s=Vn(e,u);if(Array.isArray(s)&&s.length>0){const c=Tn(e,l,r,s)??[];Reflect.apply([].push,a,c)}else{let c=!1;if(r==="text")c=Ne(e,u)===l;else if(r==="item")c=Nn(e,u,l);else{let o=je(e,u);o==null&&(o=Ne(e,u)),c=o===l}if(c){a.push(u);break}}}}),a}function ni(e){return{text:e,value:e}}const An={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1}};function ri(e,t,r){return{props:{...ne,...oe,...An},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(null),o=i.ref([]),h=(y,v,O,T=!0)=>{const F=Tn(n,y,v,O);if(F===null){if(o.value===null||o.value.length===0)return;c.value=null,o.value=[],T&&(l("update:modelValue",null),l("change",null));return}let q=!0;if(F.length!==o.value.length)q=!1;else for(let B=0;B<F.length;B++){const P=F[B],H=o.value[B];if(!Nn(n,P,H)){q=!1;break}}if(!q){o.value=F;let B=[],P=[];F.forEach(z=>{B.push(je(n,z)),n.valueType==="text"?P.push(Ne(n,z)):n.valueType==="item"?P.push(z):P.push(je(n,z))});let H;n.multiple?(c.value=B,H=i.toRaw(P)):(c.value=B[0]??"",H=i.toRaw(P[0]??"")),T&&(l("update:modelValue",H),l("change",H))}},g=i.ref([]),w=ti();i.watch([()=>n.source,()=>n.params],async([y,v])=>{if(y){const O=await w.load("select",y,v);if(O.length>0)if(typeof O[0]=="string"){let q=O.map(B=>ni(B));g.value=q}else g.value=O}},{immediate:!0}),i.watch([()=>g.value,()=>n.modelValue],([y,v])=>{h(v,n.valueType,y,!1)});let D=null,A=i.ref(!1);typeof n.remoteMethod=="function"&&(D=async y=>{if(y!=null){A.value=!0;try{const v=await n.remoteMethod(y);g.value=v}catch(v){console.error(v)}A.value=!1}});const x=i.ref(!1),b=ce(i.computed(()=>n.disabled)),I=ue(i.computed(()=>n.readonly)),M=e,S=i.computed(()=>({[M]:!0})),p=y=>{n.allowCreate?(l("update:modelValue",y),l("change",y),c.value=y):h(y,"value",g.value,!0)};let $=Y(n,"hintText"),E=i.ref(!1);const R=y=>{let O=y.target.value;x.value=!0,Z($.value)||(E.value=!0),l("focus",O,y)},N=y=>{setTimeout(()=>{E.value&&(E.value=!1),x.value=!1},0);let O=y.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),m.value?setTimeout(()=>{l("blur",O,y)},50):l("blur",O,y)},C=()=>{l("clear","")},m=i.ref(!1),k=y=>{m.value=y,l("visible-change",y)},_=y=>{l("remove-tag",y)},V=(y,v)=>{const O=[];return y.forEach((T,F)=>{const q=Vn(n,T);if(Array.isArray(q)&&q.length>0){const B=V(q,v),P=Ne(n,T),z={key:`${P}_${F}`,label:P};O.push(i.h(f.ElOptionGroup,z,{default:()=>B}))}else{const B=je(n,T),P=Ne(n,T),H=L.toBoolean(T.disabled),G={key:`${B}_${F}`,label:P,disabled:H,value:B};typeof v=="function"?O.push(i.h(f.ElOption,G,{default:v})):O.push(i.h(f.ElOption,G))}}),O},j=i.ref();return se({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const v={...a.attrs,ref:j,class:S.value,clearable:n.clearable,multiple:n.multiple,placeholder:s.placeholder.value,disabled:b.value||I.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:C,onChange:p,onFocus:R,onBlur:N,onVisibleChange:k,onRemoveTag:_};typeof D=="function"&&(v["remote-method"]=D,v.loading=A.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),O.default=()=>V(g.value,a.slots.option);const T=[],F=i.h(f.ElSelect,v,O);T.push(F);const q={default:()=>T};if(a.slots.default){const z=a.slots.default();q.label=()=>z}const P={...le(n,An),hintText:$.value,hintVisible:E.value,prop:`${n.prop??n.name}_item`};return i.h(r,P,q)}}}}const{componentName:ai,create:ii,scope:li}=W("select-item"),In=ii(ri(ai,li,ae)),Rn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function oi(e,t,r){return{props:{...ne,...oe,...Rn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=N=>{g.value=N,l("update:modelValue",N),l("change",N)};let x=Y(n,"hintText"),b=i.ref(!1);const I=N=>{let m=N.target.value;c.value=!0,Z(x.value)||(b.value=!0),l("focus",m,N)},M=N=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let m=N.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),l("blur",m,N)},S=()=>{l("clear","")},p=N=>{l("calendar-change",N)},$=(N,C,m)=>{l("panel-change",N,C,m)},E=N=>{l("visible-change",N)},R=i.ref();return se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const C={...a.attrs,ref:R,class:D.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:A,onClear:S,onFocus:I,onBlur:M,onCalendarChange:p,onPanelChange:$,onVisibleChange:E},m={};a.slots["range-separator"]&&(m["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(m.default=a.slots.cell);const k=[],_=i.h(f.ElDatePicker,C,m);k.push(_);const V={default:()=>k};if(a.slots.default){const O=a.slots.default();V.label=()=>O}const y={...le(n,Rn),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return i.h(r,y,V)}}}}const{componentName:si,create:ui,scope:ci}=W("date-item"),jn=ui(oi(si,ci,ae)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function fi(e,t,r){return{props:{...ne,...oe,...Mn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=E=>{g.value=E,l("update:modelValue",E),l("change",E)};let x=Y(n,"hintText"),b=i.ref(!1);const I=E=>{let N=E.target.value;c.value=!0,Z(x.value)||(b.value=!0),l("focus",N,E)},M=E=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=E.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),l("blur",N,E)},S=()=>{l("clear","")},p=E=>{l("visible-change",E)},$=i.ref();return se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()}}),()=>{const R={...a.attrs,ref:$,class:D.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:A,onClear:S,onFocus:I,onBlur:M,onVisibleChange:p},N={},C=[],m=i.h(f.ElTimePicker,R,N);C.push(m);const k={default:()=>C};if(a.slots.default){const y=a.slots.default();k.label=()=>y}const V={...le(n,Mn),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return i.h(r,V,k)}}}}const{componentName:di,create:hi,scope:gi}=W("time-item"),Dn=hi(fi(di,gi,ae)),Fn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function mi(e,t,r){return{props:{...ne,...oe,...Fn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=$=>{g.value=$,l("update:modelValue",$),l("change",$)};let x=Y(n,"hintText"),b=i.ref(!1);const I=$=>{let R=$.target.value;c.value=!0,Z(x.value)||(b.value=!0),l("focus",R,$)},M=$=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let R=$.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),l("blur",R,$)},S=()=>{l("clear","")},p=i.ref();return se({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},handleOpen:()=>{p?.value.handleOpen()},handleClose:()=>{p?.value.handleClose()}}),()=>{const E={...a.attrs,ref:p,class:D.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:A,onClear:S,onFocus:I,onBlur:M},R={},N=[],C=i.h(f.ElTimeSelect,E,R);N.push(C);const m={default:()=>N};if(a.slots.default){const j=a.slots.default();m.label=()=>j}const _={...le(n,Fn),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return i.h(r,_,m)}}}}const{componentName:yi,create:pi,scope:bi}=W("time-select-item"),kn=pi(mi(yi,bi,ae));function qn(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let l=r.length-1;l>=n;l--)if(r.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function Bn(e,t,r=20){if(typeof t=="string"&&(t=L.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ht(`${e}`,`${t}`);return qn(n)}else{let n=wt(`${e}`,Kt(`${t}`),20);return qn(n)}}function wi(e,t=-1,r=!1,n=3,a=","){return St(e,t,r,n,a)}function Pn(e,t,r,n,a=!0){if(e=="")return"";if(e=zt(e),t=L.toNumber(t),t==1)return e;if(n)e=Bn(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(L.toNumber(r)+2,"0"):e=wt(e,1,L.toNumber(r)));else{let l=-1*t;e=Bn(e,l)}return e}function _n(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=L.toBoolean(t.minInclude),a=$t(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=l.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=L.toBoolean(t.maxInclude),a=$t(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(r.maxValid=!1)}return r}const Ln={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}};function $i(e,t,r){return{props:{...ne,...oe,...Ln},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=i.ref(!1),s=ce(i.computed(()=>n.disabled)),c=ue(i.computed(()=>n.readonly)),o=Y(n,"modelValue"),h=i.ref("");i.watch([()=>o.value,()=>n.rates,()=>n.precision],([V,j,y])=>{if(Z(V))return"";const v=Pn(V,j,y,!1);h.value!==v&&(h.value=v)},{immediate:!0});const g=i.computed(()=>{let V="";return u.value&&(V=h.value),V}),{t:w}=me.useFoxI18n(t),D=i.computed(()=>{let V=n.placeholder??"";return!u.value&&!Z(h.value)?V=wi(h.value,n.decimalLength,n.autoPadding,n.digits,n.separator):V=w(["placeholder",V]),V}),A=e,x=i.computed(()=>({[A]:!0,[`${A}__disabled`]:s.value,[`${A}__placeholder`]:h.value.length>0})),b=Ie(i.computed(()=>n.textAlign),"textAlign");i.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const I=i.ref(""),M=i.computed(()=>{let V=I.value;return Z(V)&&(V=n.errorTip??""),V}),S=i.ref(""),p=i.ref(!1),$=(V,j)=>{if(V=`${V}`,Z(V)){h.value="",o.value="",j.forEach(y=>{l(y,"")}),L.toBoolean(n.showTip)&&p.value&&(p.value=!1);return}if(V.length>=2){let y=V;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){i.triggerRef(h);return}}if(V!="-"){if(!Wt(V)){i.triggerRef(h);return}if(n.integerLength!=-1&&Yt(V)>Number(n.integerLength)){i.triggerRef(h);return}if(n.decimalLength&&n.decimalLength!=-1&&Ut(V)>Number(n.decimalLength)){i.triggerRef(h);return}let y=_n(V,n);if(y.maxValid===!1){I.value=y.message,i.triggerRef(h);return}}else if(n.min!=null&&L.toNumber(n.min)>=0){i.triggerRef(h);return}S.value=V,L.toBoolean(n.showTip)&&(p.value=V.length>0),h.value=V,o.value=Pn(V,n.rates,n.precision,!0),j.forEach(y=>{l(y,o.value)})},E=V=>{$(V,["update:modelValue","input"])},R=V=>{$(V,["update:modelValue","change"])},N=V=>{if(u.value=!0,L.toBoolean(n.showTip)){let j=h.value;Z(j)&&(j=n.hintText),Z(j)||(S.value=j,p.value=!0)}I.value="",l("focus",o.value,V)},C=V=>{if(setTimeout(()=>{u.value=!1,L.toBoolean(n.showTip)&&p.value===!0&&(p.value=!1)},0),!Z(h.value)){let j=_n(h.value,n);if(j.minValid===!1||j.maxValid){I.value=j.message;return}}l("update:modelValue",o.value,V),l("blur",o.value,V)},m=()=>{l("clear","")},k=i.computed(()=>We(n.unit)>0),_=i.ref();return se({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const j={...a.attrs,ref:_,class:x.value,type:"digit",maxlength:n.maxLength,placeholder:D.value,clearable:n.clearable,disabled:s.value,readonly:c.value,modelValue:g.value,onClear:m,onInput:E,onChange:R,onFocus:N,onBlur:C},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:k.value&&(y.suffix=()=>[n.unit]);const v=[],O=i.h(f.ElInput,j,y);v.push(O);const T={default:()=>v};if(a.slots.default){const P=a.slots.default();T.label=()=>P}const q={...le(n,Ln),errorTip:M.value,hintText:S.value,hintVisible:p.value,hintType:"number",prop:`${n.prop}_item`};return i.h(r,q,T)}}}}const{componentName:Si,create:Ei,scope:vi}=W("money-item"),Hn=Ei($i(Si,vi,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Te(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Oi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class xi{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function Ci(){const e=i.getCurrentInstance();return new xi(e.proxy)}function jt(e,t,r){const n=Me(e,t),a=Me(e,r);if(n!==a)return!1;const l=Te(e,t),u=Te(e,r);return l===u}function Kn(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let u=0;Array.isArray(l)&&u<t.length;u++){const s=t[u];if(Array.isArray(s)){const c=Kn(e,s,r,n);a.push(c)}else{let c=!1;for(let o of l){if(r==="text")c=Me(e,o)===s;else if(r==="item")c=jt(e,o,s);else{let h=Te(e,o);h==null&&(h=Me(e,o)),c=h===s}if(c){a.push(o),l=Oi(e,o);break}}if(!c)break}}return a}function Vi(e){return{text:e,value:e}}const zn={modelValue:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1}};function Ni(e,t,r){return{props:{...ne,...oe,...zn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(null),o=i.ref([]),h=(v,O,T,F=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===v)return;c.value=v;const P=i.toRaw(v);F&&(l("update:modelValue",P),l("change",P))}const q=Kn(n,v,O,T);if(q===null){if(o.value.length===0||o.value===null)return;o.value=[],c.value=null,F&&(l("update:modelValue",null),l("change",null));return}let B=!0;if(q.length!==o.value.length)B=!1;else for(let P=0;P<q.length;P++){const H=q[P],z=o.value[P];if(Array.isArray(H)){if(!Array.isArray(z)||H.length!==z.length)B=!1;else for(let G=0;G<H.length;G++)if(!jt(n,H[G],z[G])){B=!1;break}}else jt(n,H,z)||(B=!1);if(!B)break}if(!B){o.value=q;let P=[],H=[];q.forEach(G=>{if(Array.isArray(G)){let ge=[],fe=[];for(let ie of G)ge.push(Te(n,ie)),n.valueType==="text"?fe.push(Me(n,ie)):n.valueType==="item"?fe.push(ie):fe.push(Te(n,ie));P.push(ge),H.push(fe)}else P.push(Te(n,G)),n.valueType==="text"?H.push(Me(n,G)):n.valueType==="item"?H.push(G):H.push(Te(n,G))}),c.value=P;const z=i.toRaw(H);F&&(l("update:modelValue",z),l("change",z))}},g=i.ref([]),w=Ci();i.watch([()=>n.source,()=>n.params],async([v,O])=>{if(v){const T=await w.load("cascader",v,O);if(T.length>0)if(typeof T[0]=="string"){let B=T.map(P=>Vi(P));g.value=B}else g.value=T}},{immediate:!0}),i.watch([()=>g.value,()=>n.modelValue],([v,O])=>{h(O,n.valueType,v,!1)});let D=null,A=i.ref(!1);typeof n.remoteMethod=="function"&&(D=async v=>{if(v!=null){A.value=!0;try{const O=await n.remoteMethod(v);g.value=O}catch(O){console.error(O)}A.value=!1}});const x=i.ref(!1),b=ce(i.computed(()=>n.disabled)),I=ue(i.computed(()=>n.readonly)),M=e,S=i.computed(()=>({[M]:!0})),p=i.computed(()=>{let v={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(v.multiple=!0),n.props&&Object.assign(v,n.props),v}),$=v=>{n.allowCreate?(l("update:modelValue",v),l("change",v),c.value=v):h(v,"value",g.value,!0)};let E=Y(n,"hintText"),R=i.ref(!1);const N=v=>{let T=v.target.value;x.value=!0,Z(E.value)||(R.value=!0),l("focus",T,v)},C=v=>{setTimeout(()=>{R.value&&(R.value=!1),x.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),k.value?setTimeout(()=>{l("blur",T,v)},50):l("blur",T,v)},m=()=>{l("clear","")},k=i.ref(!1),_=v=>{k.value=v,l("visible-change",v)},V=v=>{l("remove-tag",v)},j=v=>{l("expand-change",v)},y=i.ref();return se({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},getCheckedNodes:()=>y?.value.getCheckedNodes()}),()=>{const O={...a.attrs,ref:y,class:S.value,props:p.value,clearable:n.clearable,placeholder:s.placeholder.value,disabled:b.value||I.value,options:g.value,modelValue:c.value,onClear:m,onChange:$,onFocus:N,onBlur:C,onVisibleChange:_,onRemoveTag:V,expandChange:j};typeof D=="function"&&(O["remote-method"]=D,O.loading=A.value);const T={};a.slots.option&&(T.default=a.slots.option),a.slots.empty&&(T.empty=a.slots.empty);const F=[],q=i.h(f.ElCascader,O,T);F.push(q);const B={default:()=>F};if(a.slots.default){const G=a.slots.default();B.label=()=>G}const H={...le(n,zn),hintText:E.value,hintVisible:R.value,prop:`${n.prop??n.name}_item`};return i.h(r,H,B)}}}}const{componentName:Ti,create:Ai,scope:Ii}=W("cascader-item"),Gn=Ai(Ni(Ti,Ii,ae)),Wn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ri(e,t,r){return{props:{...ne,...oe,...Wn},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=E=>{g.value=E,l("update:modelValue",E),l("input",E)},x=E=>{l("change",E)};let b=Y(n,"hintText"),I=i.ref(!1);const M=E=>{let N=E.target.value;c.value=!0,Z(b.value)||(I.value=!0),l("focus",N,E)},S=E=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let N=E.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),l("blur",N,E)},p=()=>{l("clear","")},$=i.ref();return se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const R={...a.attrs,ref:$,class:D.value,placeholder:s.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:h.value,modelValue:g.value,onClear:p,onChange:x,onInput:A,onFocus:M,onBlur:S},N={};a.slots.prepend&&(N.prepend=a.slots.prepend),a.slots.append&&(N.append=a.slots.append),a.slots.prefix&&(N.prefix=a.slots.prefix),a.slots.suffix&&(N.suffix=a.slots.suffix),a.slots.option&&(N.default=a.slots.option);const C=[],m=i.h(f.ElAutocomplete,R,N);C.push(m);const k={default:()=>C};if(a.slots.default){const y=a.slots.default();k.label=()=>y}const V={...le(n,Wn),hintText:b.value,hintVisible:I.value,prop:`${n.prop}_item`};return i.h(r,V,k)}}}}const{componentName:ji,create:Mi,scope:Di}=W("autocomplete-item"),Yn=Mi(Ri(ji,Di,ae));function Fi(e,t,r,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const u=[],s=t[0];if(Array.isArray(s))for(let c=0;c<t.length&&c<l.length;c++){let o=t[c],h=l[c];const g=o.find(w=>w[n]===h);if(!g)break;u.push(g[r])}else{let c=t;for(let o=0;c&&o<l.length;o++){let h=l[o],g=c.find(w=>w[n]===h);if(!g)break;u.push(g[r]),c=g[a]}}return u}class ki{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function qi(){const e=i.getCurrentInstance();return new ki(e.proxy)}const Un={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:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Bi(e,t){return{props:{...Un},setup(r,{attrs:n}){const a=qi(),l=i.ref([]);i.watch([()=>r.source,()=>r.params],async([c,o])=>{l.value=await a.load(r.sourceType,c,o)},{immediate:!0});const u=i.computed(()=>{if(!Array.isArray(l.value)||l.value.length===0)return"";let c=Fi(r.modelValue,l.value,r.textKey,r.valueKey,r.childrenKey);return c.length==0?"":c.length===1?c[0]:c.join(r.separator)}),s=r.resolveTag?i.resolveComponent(r.tag):r.tag;return()=>{const c={...n};return r.resolveTag?i.h(s,c,{default:()=>u.value}):i.h(s,c,u.value)}}}}const{componentName:_l,create:Pi,scope:Ll}=W("mapping"),Mt=Pi(Bi());function _i(e,t){return{props:{...Un},setup(r,{attrs:n}){return()=>{const a={default:l=>{const u=l.row[l.column.property];return i.h(Mt,{...r,modelValue:u})}};return i.h(f.ElTableColumn,{...n},a)}}}}const{componentName:Hl,create:Li,scope:Kl}=W("table-mapping-column"),Zn=Li(_i());class Hi{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,l,u,s){if(Array.isArray(r)){let o=(n-1)*a,h=o+a;h>r.length&&(h=r.length);const g=r.slice(o,h);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,l,u,s]);const c=Ce(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(L.isObject(l)&&i.isReactive(l)&&(l=i.toRaw(l)),await await Reflect.apply(c,null,[r,n,a,l,u,s]))}}function Ki(){const e=i.getCurrentInstance();return new Hi(e.proxy)}const Xn={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Jn={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"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function zi(e,t,r){return{inheritAttrs:!1,props:{...ne,...oe,...Xn,...Jn},emits:["change","page-size-change","page-index-change","current-change"],setup(n,a){const{locale:l}=me.useFoxI18n(t),{emitEvent:u}=re({componentName:e},n.prop??n.name),s=e,c=i.computed(()=>({[s]:!0})),o=i.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),h=i.ref(n.pageIndex);i.watch(()=>n.pageIndex,m=>{h.value=m});const g=m=>{h.value=m,u("page-index-change",m)},w=i.ref(n.pageSize);i.watch(()=>n.pageSize,m=>{w.value=m});const D=m=>{w.value=m,u("page-size-change",m)},A=i.shallowRef({}),x=i.computed(()=>({...A.value,...n.params??{},...n.baseParams??{}})),b=i.ref(0),I=i.ref(),M=Ki();let S=!0;const p=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:L.toBoolean(n.autoLoad),$=async(m,k,_,V)=>{try{const j=await M.load("table",m,k,_,V,S,l.value);b.value=j.totalSize,I.value=j.page}catch(j){console.error("[FoxUI] Load Table Data Fail",j),b.value=0,I.value=[]}S=!1};i.watch([h,w],([m,k],[_,V])=>{k!==V&&(h.value=1,m=1),$(n.data,m,k,x.value)}),i.watch([()=>n.data,x],([m,k],[_,V])=>{!p()||(m!==_&&(S=!0),$(m,h.value,w.value,k))});const E=(m={})=>{A.value=i.toRaw(m??{}),i.triggerRef(A),i.nextTick(()=>{$(n.data,h.value,w.value,x.value)})};p()&&E();let R=null;const N=(m,k)=>{R=m,u("current-change",m,k)},C=i.ref();return se({clearSelection:()=>C?.value.clearSelection(),getSelectionRows:()=>C?.value.getSelectionRows(),toggleRowSelection:(m,k)=>{C?.value.toggleRowSelection(m,k)},toggleAllSelection:()=>{C?.value.toggleAllSelection()},toggleRowExpansion:(m,k)=>{C?.value.toggleRowExpansion(m,k)},setCurrentRow:m=>{C?.value.setCurrentRow(m)},getCurrentRow:()=>R,clearSort:()=>{C?.value.clearSort()},clearFilter:m=>{C?.value.clearFilter(m)},doLayout:()=>{C?.value.doLayout()},sort:(m,k)=>{C?.value.sort(m,k)},scrollTo:(m,k)=>{C?.value.scrollTo(m,k)},setScrollTop:m=>{C?.value.setScrollTop(m)},setScrollLeft:m=>{C?.value.setScrollLeft(m)},loadData:E}),()=>{const k={...a.attrs,onCurrentChange:N,data:I.value,ref:C,class:c.value},_={};a.slots.default&&(_.default=a.slots.default),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const V=[],j=i.h(f.ElTable,k,_);if(V.push(j),typeof a.slots.pagination=="function"){const F=a.slots.pagination();V.push(F)}else if(n.paginationVisible){const F={class:o.value,total:b.value,pageSize:w.value,["onUpdate:pageSize"]:D,pageSizes:n.pageSizes,currentPage:h.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},q=i.h(f.ElPagination,F);V.push(q)}const y={default:()=>V},O={...le(n,Xn,Jn),prop:`${n.prop}_item`};return O.contentClass=`${s}__wrap`,i.h(r,O,y)}}}}const{componentName:Gi,create:Wi,scope:Yi}=W("table-item"),Qn=Wi(zi(Gi,Yi,ae));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ze(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Ui{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function Zi(){const e=i.getCurrentInstance();return new Ui(e.proxy)}function er(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=De(e,t),a=De(e,r);if(n!==a)return!1;const l=ze(e,t),u=ze(e,r);return l===u}function Xi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let u=!1;if(r==="text")u=De(e,l)===t;else if(r==="item")u=er(e,l,t);else{let s=ze(e,l);s==null&&(s=De(e,l)),u=s===t}if(u){a=l;break}}return a}function Ji(e){return{text:e,value:e}}const tr={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"},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"},itemClass:{type:[String],required:!1}};function Qi(e,t,r){return{inheritAttrs:!0,props:{...ne,...oe,...tr},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=i.ref(null),s=i.ref(null),c=(S,p,$,E=!0)=>{const R=Xi(n,S,p,$);if(R===null){if(s.value===null)return;s.value=null,u.value=null,E&&(l("update:modelValue",null),l("change",null));return}if(!er(n,R,s.value)){u.value=S;const C=i.toRaw(R);s.value=C;let m=null;n.valueType==="text"?m=De(n,C):n.valueType==="item"?m=C:m=ze(n,C),E&&(l("update:modelValue",m),l("change",m))}},o=i.ref([]),h=Zi();i.watch([()=>n.source,()=>n.params],async([S,p])=>{if(S){const $=await h.load("radio",S,p);if($.length>0)if(typeof $[0]=="string"){let N=$.map(C=>Ji(C));o.value=N}else o.value=$}},{immediate:!0}),i.watch([()=>o.value,()=>n.modelValue],([S,p])=>{c(p,n.valueType,S,!1)});const g=ce(i.computed(()=>n.disabled)),w=ue(i.computed(()=>n.readonly)),D=e,A=i.computed(()=>({[D]:!0})),x=S=>{c(S,"value",o.value,!0)};let b=Y(n,"hintText"),I=Y(n,"hintVisible");const M=S=>{const p=[];return S.forEach(($,E)=>{const R=ze(n,$),N=De(n,$),C=L.toBoolean($.disabled),k={key:`${R}_${E}`,class:n.itemClass,label:R,disabled:C,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?p.push(i.h(f.ElRadioButton,k,{default:()=>[N]})):p.push(i.h(f.ElRadio,k,{default:()=>[N]}))}),p};return()=>{const p={...a.attrs,class:A.value,disabled:g.value||w.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:x},$=[],E={};a.slots.options?E.default=a.slots.options:E.default=()=>M(o.value);const R=i.h(f.ElRadioGroup,p,E);$.push(R);const N={default:()=>$};if(a.slots.default){const _=a.slots.default();N.label=()=>_}const m={...le(n,tr),hintText:b.value,hintVisible:I.value,prop:`${n.prop??n.name}_item`};return i.h(r,m,N)}}}}const{componentName:el,create:tl,scope:nl}=W("radio-item"),nr=tl(Qi(el,nl,ae));function Fe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ke(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class rl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function al(){const e=i.getCurrentInstance();return new rl(e.proxy)}function rr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Fe(e,t),a=Fe(e,r);if(n!==a)return!1;const l=ke(e,t),u=ke(e,r);return l===u}function il(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let u of n){let s=!1;if(r==="text")s=Fe(e,u)===l;else if(r==="item")s=rr(e,u,l);else{let c=ke(e,u);c==null&&(c=Fe(e,u)),s=c===l}if(s){a.push(u);break}}}),a}function ll(e){return{text:e,value:e}}const ar={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"},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"},itemClass:{type:[String],required:!1}};function ol(e,t,r){return{inheritAttrs:!1,props:{...ne,...oe,...ar},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=i.ref([]),s=i.ref([]),c=(S,p,$,E=!0)=>{const R=il(n,S,p,$);if(R===null){if(s.value===null||s.value.length===0)return;u.value=[],s.value=[],E&&(l("update:modelValue",[]),l("change",[]));return}let N=!0;if(R.length!==s.value.length)N=!1;else for(let C=0;C<R.length;C++){const m=R[C],k=s.value[C];if(!rr(n,m,k)){N=!1;break}}if(!N){s.value=R;let C=[],m=[];R.forEach(_=>{C.push(ke(n,_)),n.valueType==="text"?m.push(Fe(n,_)):n.valueType==="item"?m.push(_):m.push(ke(n,_))}),u.value=C;const k=i.toRaw(m);E&&(l("update:modelValue",k),l("change",k))}},o=i.ref([]),h=al();i.watch([()=>n.source,()=>n.params],async([S,p])=>{if(S){const $=await h.load("checkbox",S,p);if($.length>0)if(typeof $[0]=="string"){let N=$.map(C=>ll(C));o.value=N}else o.value=$}},{immediate:!0}),i.watch([()=>o.value,()=>n.modelValue],([S,p])=>{c(p,n.valueType,S,!1)});const g=ce(i.computed(()=>n.disabled)),w=ue(i.computed(()=>n.readonly)),D=e,A=i.computed(()=>({[D]:!0})),x=S=>{c(S,"value",o.value,!0)};let b=Y(n,"hintText"),I=Y(n,"hintVisible");const M=S=>{const p=[];return S.forEach(($,E)=>{const R=ke(n,$),N=Fe(n,$),C=L.toBoolean($.disabled),k={key:`${R}_${E}`,class:n.itemClass,label:R,disabled:C,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?p.push(i.h(f.ElCheckboxButton,k,{default:()=>[N]})):p.push(i.h(f.ElCheckbox,k,{default:()=>[N]}))}),p};return()=>{const p={...a.attrs,class:A.value,disabled:g.value||w.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:L.toNumber(n.max),min:L.toNumber(n.min),onChange:x},$=[],E={};a.slots.options?E.default=a.slots.options:E.default=()=>M(o.value);const R=i.h(f.ElCheckboxGroup,p,E);$.push(R);const N={default:()=>$};if(a.slots.default){const _=a.slots.default();N.label=()=>_}const m={...le(n,ar),hintText:b.value,hintVisible:I.value,prop:`${n.prop??n.name}_item`};return i.h(r,m,N)}}}}const{componentName:sl,create:ul,scope:cl}=W("checkbox-item"),ir=ul(ol(sl,cl,ae)),lr={modelValue:{type:[Number,String],required:!1}};function fl(e,t,r){return{props:{...ne,...oe,...lr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=ce(i.computed(()=>n.disabled)),s=ue(i.computed(()=>n.readonly)),c=Y(n,"modelValue"),o=e,h=i.computed(()=>({[o]:!0})),g=x=>{l("update:modelValue",x),l("change",x)};let w=Y(n,"hintText"),D=i.ref(!1);const A=i.ref();return se({}),()=>{const b={...a.attrs,ref:A,class:h.value,readonly:s.value||u.value,modelValue:c.value,onChange:g},I={},M=[],S=i.h(f.ElRate,b,I);M.push(S);const p={default:()=>M};if(a.slots.default){const N=a.slots.default();p.label=()=>N}const E={...le(n,lr),hintText:w.value,hintVisible:D.value,prop:`${n.prop}_item`};return i.h(r,E,p)}}}}const{componentName:dl,create:hl,scope:gl}=W("rate-item"),or=hl(fl(dl,gl,ae)),sr={modelValue:{type:[Boolean,String,Number],required:!1}};function ml(e,t,r){return{props:{...ne,...oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=ce(i.computed(()=>n.disabled)),s=ue(i.computed(()=>n.readonly)),c=Y(n,"modelValue"),o=e,h=i.computed(()=>({[o]:!0})),g=x=>{l("update:modelValue",x),l("change",x)};let w=Y(n,"hintText"),D=Y(n,"hintVisible");const A=i.ref();return se({}),()=>{const b={...a.attrs,ref:A,class:h.value,readonly:s.value,disabled:u.value,modelValue:c.value,onChange:g},I={},M=[],S=i.h(f.ElSwitch,b,I);M.push(S);const p={default:()=>M};if(a.slots.default){const N=a.slots.default();p.label=()=>N}const E={...le(n,sr),hintText:w.value,hintVisible:D.value,prop:`${n.prop}_item`};return i.h(r,E,p)}}}}const{componentName:yl,create:pl,scope:bl}=W("switch-item"),ur=pl(ml(yl,bl,ae)),wl=Symbol.for("InnerPageScopeKey"),$l=Symbol.for("DialogItemStateKey");function Sl(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,n){i.provide(wl,!0);const a={};i.provide($l,a);const l=c=>{typeof a.beforeClose=="function"&&a.beforeClose(c)},u=i.ref(!0),s=c=>{u.value=c};return()=>{const o={...n.attrs,title:r.title,draggable:r.draggable,modelValue:u.value,"onUpdate:modelValue":s,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":l},h={};if(typeof n.slots.default=="function"){const g=n.slots.default();h.default=()=>g}return i.h(f.ElDialog,o,h)}}}}const{componentName:zl,create:El,scope:Gl}=W("dialog-item"),cr=El(Sl());var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r=1e3,n=6e4,a=36e5,l="millisecond",u="second",s="minute",c="hour",o="day",h="week",g="month",w="quarter",D="year",A="date",x="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,M={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("_")},S=function(V,j,y){var v=String(V);return!v||v.length>=j?V:""+Array(j+1-v.length).join(y)+V},p={s:S,z:function(V){var j=-V.utcOffset(),y=Math.abs(j),v=Math.floor(y/60),O=y%60;return(j<=0?"+":"-")+S(v,2,"0")+":"+S(O,2,"0")},m:function V(j,y){if(j.date()<y.date())return-V(y,j);var v=12*(y.year()-j.year())+(y.month()-j.month()),O=j.clone().add(v,g),T=y-O<0,F=j.clone().add(v+(T?-1:1),g);return+(-(v+(y-O)/(T?O-F:F-O))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:g,y:D,w:h,d:o,D:A,h:c,m:s,s:u,ms:l,Q:w}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},$="en",E={};E[$]=M;var R=function(V){return V instanceof k},N=function V(j,y,v){var O;if(!j)return $;if(typeof j=="string"){var T=j.toLowerCase();E[T]&&(O=T),y&&(E[T]=y,O=T);var F=j.split("-");if(!O&&F.length>1)return V(F[0])}else{var q=j.name;E[q]=j,O=q}return!v&&O&&($=O),O||!v&&$},C=function(V,j){if(R(V))return V.clone();var y=typeof j=="object"?j:{};return y.date=V,y.args=arguments,new k(y)},m=p;m.l=N,m.i=R,m.w=function(V,j){return C(V,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var k=function(){function V(y){this.$L=N(y.locale,null,!0),this.parse(y)}var j=V.prototype;return j.parse=function(y){this.$d=function(v){var O=v.date,T=v.utc;if(O===null)return new Date(NaN);if(m.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var F=O.match(b);if(F){var q=F[2]-1||0,B=(F[7]||"0").substring(0,3);return T?new Date(Date.UTC(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(O)}(y),this.$x=y.x||{},this.init()},j.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},j.$utils=function(){return m},j.isValid=function(){return this.$d.toString()!==x},j.isSame=function(y,v){var O=C(y);return this.startOf(v)<=O&&O<=this.endOf(v)},j.isAfter=function(y,v){return C(y)<this.startOf(v)},j.isBefore=function(y,v){return this.endOf(v)<C(y)},j.$g=function(y,v,O){return m.u(y)?this[v]:this.set(O,y)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(y,v){var O=this,T=!!m.u(v)||v,F=m.p(y),q=function(ie,ee){var de=m.w(O.$u?Date.UTC(O.$y,ee,ie):new Date(O.$y,ee,ie),O);return T?de:de.endOf(o)},B=function(ie,ee){return m.w(O.toDate()[ie].apply(O.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ee)),O)},P=this.$W,H=this.$M,z=this.$D,G="set"+(this.$u?"UTC":"");switch(F){case D:return T?q(1,0):q(31,11);case g:return T?q(1,H):q(0,H+1);case h:var ge=this.$locale().weekStart||0,fe=(P<ge?P+7:P)-ge;return q(T?z-fe:z+(6-fe),H);case o:case A:return B(G+"Hours",0);case c:return B(G+"Minutes",1);case s:return B(G+"Seconds",2);case u:return B(G+"Milliseconds",3);default:return this.clone()}},j.endOf=function(y){return this.startOf(y,!1)},j.$set=function(y,v){var O,T=m.p(y),F="set"+(this.$u?"UTC":""),q=(O={},O[o]=F+"Date",O[A]=F+"Date",O[g]=F+"Month",O[D]=F+"FullYear",O[c]=F+"Hours",O[s]=F+"Minutes",O[u]=F+"Seconds",O[l]=F+"Milliseconds",O)[T],B=T===o?this.$D+(v-this.$W):v;if(T===g||T===D){var P=this.clone().set(A,1);P.$d[q](B),P.init(),this.$d=P.set(A,Math.min(this.$D,P.daysInMonth())).$d}else q&&this.$d[q](B);return this.init(),this},j.set=function(y,v){return this.clone().$set(y,v)},j.get=function(y){return this[m.p(y)]()},j.add=function(y,v){var O,T=this;y=Number(y);var F=m.p(v),q=function(H){var z=C(T);return m.w(z.date(z.date()+Math.round(H*y)),T)};if(F===g)return this.set(g,this.$M+y);if(F===D)return this.set(D,this.$y+y);if(F===o)return q(1);if(F===h)return q(7);var B=(O={},O[s]=n,O[c]=a,O[u]=r,O)[F]||1,P=this.$d.getTime()+y*B;return m.w(P,this)},j.subtract=function(y,v){return this.add(-1*y,v)},j.format=function(y){var v=this,O=this.$locale();if(!this.isValid())return O.invalidDate||x;var T=y||"YYYY-MM-DDTHH:mm:ssZ",F=m.z(this),q=this.$H,B=this.$m,P=this.$M,H=O.weekdays,z=O.months,G=function(ee,de,ve,Oe){return ee&&(ee[de]||ee(v,T))||ve[de].slice(0,Oe)},ge=function(ee){return m.s(q%12||12,ee,"0")},fe=O.meridiem||function(ee,de,ve){var Oe=ee<12?"AM":"PM";return ve?Oe.toLowerCase():Oe},ie={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:m.s(P+1,2,"0"),MMM:G(O.monthsShort,P,z,3),MMMM:G(z,P),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:G(O.weekdaysMin,this.$W,H,2),ddd:G(O.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(q),HH:m.s(q,2,"0"),h:ge(1),hh:ge(2),a:fe(q,B,!0),A:fe(q,B,!1),m:String(B),mm:m.s(B,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:F};return T.replace(I,function(ee,de){return de||ie[ee]||F.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(y,v,O){var T,F=m.p(v),q=C(y),B=(q.utcOffset()-this.utcOffset())*n,P=this-q,H=m.m(this,q);return H=(T={},T[D]=H/12,T[g]=H,T[w]=H/3,T[h]=(P-B)/6048e5,T[o]=(P-B)/864e5,T[c]=P/a,T[s]=P/n,T[u]=P/r,T)[F]||P,O?H:m.a(H)},j.daysInMonth=function(){return this.endOf(g).$D},j.$locale=function(){return E[this.$L]},j.locale=function(y,v){if(!y)return this.$L;var O=this.clone(),T=N(y,v,!0);return T&&(O.$L=T),O},j.clone=function(){return m.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},V}(),_=k.prototype;return C.prototype=_,[["$ms",l],["$s",u],["$m",s],["$H",c],["$W",o],["$M",g],["$y",D],["$D",A]].forEach(function(V){_[V[1]]=function(j){return this.$g(j,V[0],V[1])}}),C.extend=function(V,j){return V.$i||(V(j,k,C),V.$i=!0),C},C.locale=N,C.isDayjs=R,C.unix=function(V){return C(1e3*V)},C.en=E[$],C.Ls=E,C.p={},C})})(fr);const Ee=fr.exports;var dr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},c=function(x){return(x=+x)+(x>68?1900:2e3)},o=function(x){return function(b){this[x]=+b}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var I=b.match(/([+-]|\d\d)/g),M=60*I[1]+(+I[2]||0);return M===0?0:I[0]==="+"?-M:M}(x)}],g=function(x){var b=s[x];return b&&(b.indexOf?b:b.s.concat(b.f))},w=function(x,b){var I,M=s.meridiem;if(M){for(var S=1;S<=24;S+=1)if(x.indexOf(M(S,0,b))>-1){I=S>12;break}}else I=x===(b?"pm":"PM");return I},D={A:[u,function(x){this.afternoon=w(x,!1)}],a:[u,function(x){this.afternoon=w(x,!0)}],S:[/\d/,function(x){this.milliseconds=100*+x}],SS:[a,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[l,o("seconds")],ss:[l,o("seconds")],m:[l,o("minutes")],mm:[l,o("minutes")],H:[l,o("hours")],h:[l,o("hours")],HH:[l,o("hours")],hh:[l,o("hours")],D:[l,o("day")],DD:[a,o("day")],Do:[u,function(x){var b=s.ordinal,I=x.match(/\d+/);if(this.day=I[0],b)for(var M=1;M<=31;M+=1)b(M).replace(/\[|\]/g,"")===x&&(this.day=M)}],M:[l,o("month")],MM:[a,o("month")],MMM:[u,function(x){var b=g("months"),I=(g("monthsShort")||b.map(function(M){return M.slice(0,3)})).indexOf(x)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[u,function(x){var b=g("months").indexOf(x)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,o("year")],YY:[a,function(x){this.year=c(x)}],YYYY:[/\d{4}/,o("year")],Z:h,ZZ:h};function A(x){var b,I;b=x,I=s&&s.formats;for(var M=(x=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,m,k){var _=k&&k.toUpperCase();return m||I[k]||r[k]||I[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(V,j,y){return j||y.slice(1)})})).match(n),S=M.length,p=0;p<S;p+=1){var $=M[p],E=D[$],R=E&&E[0],N=E&&E[1];M[p]=N?{regex:R,parser:N}:$.replace(/^\[|\]$/g,"")}return function(C){for(var m={},k=0,_=0;k<S;k+=1){var V=M[k];if(typeof V=="string")_+=V.length;else{var j=V.regex,y=V.parser,v=C.slice(_),O=j.exec(v)[0];y.call(m,O),C=C.replace(O,"")}}return function(T){var F=T.afternoon;if(F!==void 0){var q=T.hours;F?q<12&&(T.hours+=12):q===12&&(T.hours=0),delete T.afternoon}}(m),m}}return function(x,b,I){I.p.customParseFormat=!0,x&&x.parseTwoDigitYear&&(c=x.parseTwoDigitYear);var M=b.prototype,S=M.parse;M.parse=function(p){var $=p.date,E=p.utc,R=p.args;this.$u=E;var N=R[1];if(typeof N=="string"){var C=R[2]===!0,m=R[3]===!0,k=C||m,_=R[2];m&&(_=R[2]),s=this.$locale(),!C&&_&&(s=I.Ls[_]),this.$d=function(v,O,T){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*v);var F=A(O)(v),q=F.year,B=F.month,P=F.day,H=F.hours,z=F.minutes,G=F.seconds,ge=F.milliseconds,fe=F.zone,ie=new Date,ee=P||(q||B?1:ie.getDate()),de=q||ie.getFullYear(),ve=0;q&&!B||(ve=B>0?B-1:ie.getMonth());var Oe=H||0,Dt=z||0,Ft=G||0,kt=ge||0;return fe?new Date(Date.UTC(de,ve,ee,Oe,Dt,Ft,kt+60*fe.offset*1e3)):T?new Date(Date.UTC(de,ve,ee,Oe,Dt,Ft,kt)):new Date(de,ve,ee,Oe,Dt,Ft,kt)}catch{return new Date("")}}($,N,E),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),k&&$!=this.format(N)&&(this.$d=new Date("")),s={}}else if(N instanceof Array)for(var V=N.length,j=1;j<=V;j+=1){R[1]=N[j-1];var y=I.apply(this,R);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}j===V&&(this.$d=new Date(""))}else S.call(this,p)}}})})(dr);const vl=dr.exports;var hr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,a){var l=n.prototype,u=l.format;a.en.ordinal=function(s){var c=["th","st","nd","rd"],o=s%100;return"["+s+(c[(o-20)%10]||c[o]||c[0])+"]"},l.format=function(s){var c=this,o=this.$locale();if(!this.isValid())return u.bind(this)(s);var h=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(w){switch(w){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return o.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return o.ordinal(c.week(),"W");case"w":case"ww":return h.s(c.week(),w==="w"?1:2,"0");case"W":case"WW":return h.s(c.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return h.s(String(c.$H===0?24:c.$H),w==="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 w}});return u.bind(this)(g)}}})})(hr);const Ol=hr.exports;var gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,a){var l=n.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},s=function(g,w,D,A,x){var b=g.name?g:g.$locale(),I=u(b[w]),M=u(b[D]),S=I||M.map(function($){return $.slice(0,A)});if(!x)return S;var p=b.weekStart;return S.map(function($,E){return S[(E+(p||0))%7]})},c=function(){return a.Ls[a.locale()]},o=function(g,w){return g.formats[w]||function(D){return D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,x,b){return x||b.slice(1)})}(g.formats[w.toUpperCase()])},h=function(){var g=this;return{months:function(w){return w?w.format("MMMM"):s(g,"months")},monthsShort:function(w){return w?w.format("MMM"):s(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(g,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(g,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return o(g.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return h.bind(this)()},a.localeData=function(){var g=c();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(w){return o(g,w)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return s(c(),"months")},a.monthsShort=function(){return s(c(),"monthsShort","months",3)},a.weekdays=function(g){return s(c(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return s(c(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return s(c(),"weekdaysMin","weekdays",2,g)}}})})(gr);const xl=gr.exports;var mr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r="week",n="year";return function(a,l,u){var s=l.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var o=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=u(this).startOf(n).add(1,n).date(o),g=u(this).endOf(r);if(h.isBefore(g))return 1}var w=u(this).startOf(n).date(o).startOf(r).subtract(1,"millisecond"),D=this.diff(w,r,!0);return D<0?u(this).startOf("week").week():Math.ceil(D)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(mr);const Cl=mr.exports;var yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),u=this.year();return l===1&&a===11?u+1:a===0&&l>=52?u-1:u}}})})(yr);const Vl=yr.exports;var pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,a){n.prototype.dayOfYear=function(l){var u=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?u:this.add(l-u,"day")}}})})(pr);const Nl=pr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(br);const Tl=br.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(wr);const Al=wr.exports;Ee.extend(xl),Ee.extend(Ol),Ee.extend(vl),Ee.extend(Cl),Ee.extend(Vl),Ee.extend(Nl),Ee.extend(Tl),Ee.extend(Al);const Il=[dn,hn,gn,mn,bn,ae,vn,On,ct,Cn,In,jn,Dn,kn,Hn,Gn,Yn,Zn,Qn,nr,ir,or,ur,cr,ut,Mt],Rl=new Gr(Il,[Ur],"4.0.0");Object.defineProperty(d,"clone",{enumerable:!0,get:()=>L.clone}),Object.defineProperty(d,"extend",{enumerable:!0,get:()=>L.extend}),Object.defineProperty(d,"isArray",{enumerable:!0,get:()=>L.isArray}),Object.defineProperty(d,"isDate",{enumerable:!0,get:()=>L.isDate}),Object.defineProperty(d,"isESModule",{enumerable:!0,get:()=>L.isESModule}),Object.defineProperty(d,"isEqual",{enumerable:!0,get:()=>L.isEqual}),Object.defineProperty(d,"isFunction",{enumerable:!0,get:()=>L.isFunction}),Object.defineProperty(d,"isMap",{enumerable:!0,get:()=>L.isMap}),Object.defineProperty(d,"isObject",{enumerable:!0,get:()=>L.isObject}),Object.defineProperty(d,"isPlainObject",{enumerable:!0,get:()=>L.isPlainObject}),Object.defineProperty(d,"isPromise",{enumerable:!0,get:()=>L.isPromise}),Object.defineProperty(d,"isSet",{enumerable:!0,get:()=>L.isSet}),Object.defineProperty(d,"isString",{enumerable:!0,get:()=>L.isString}),Object.defineProperty(d,"isSymbol",{enumerable:!0,get:()=>L.isSymbol}),Object.defineProperty(d,"toBoolean",{enumerable:!0,get:()=>L.toBoolean}),Object.defineProperty(d,"toNumber",{enumerable:!0,get:()=>L.toNumber}),Object.defineProperty(d,"toTypeString",{enumerable:!0,get:()=>L.toTypeString}),Object.defineProperty(d,"FoxAffix",{enumerable:!0,get:()=>f.ElAffix}),Object.defineProperty(d,"FoxAlert",{enumerable:!0,get:()=>f.ElAlert}),Object.defineProperty(d,"FoxAside",{enumerable:!0,get:()=>f.ElAside}),Object.defineProperty(d,"FoxAutoResizer",{enumerable:!0,get:()=>f.ElAutoResizer}),Object.defineProperty(d,"FoxAutocomplete",{enumerable:!0,get:()=>f.ElAutocomplete}),Object.defineProperty(d,"FoxAvatar",{enumerable:!0,get:()=>f.ElAvatar}),Object.defineProperty(d,"FoxBacktop",{enumerable:!0,get:()=>f.ElBacktop}),Object.defineProperty(d,"FoxBadge",{enumerable:!0,get:()=>f.ElBadge}),Object.defineProperty(d,"FoxBreadcrumb",{enumerable:!0,get:()=>f.ElBreadcrumb}),Object.defineProperty(d,"FoxBreadcrumbItem",{enumerable:!0,get:()=>f.ElBreadcrumbItem}),Object.defineProperty(d,"FoxButton",{enumerable:!0,get:()=>f.ElButton}),Object.defineProperty(d,"FoxButtonGroup",{enumerable:!0,get:()=>f.ElButtonGroup}),Object.defineProperty(d,"FoxCalendar",{enumerable:!0,get:()=>f.ElCalendar}),Object.defineProperty(d,"FoxCard",{enumerable:!0,get:()=>f.ElCard}),Object.defineProperty(d,"FoxCarousel",{enumerable:!0,get:()=>f.ElCarousel}),Object.defineProperty(d,"FoxCarouselItem",{enumerable:!0,get:()=>f.ElCarouselItem}),Object.defineProperty(d,"FoxCascader",{enumerable:!0,get:()=>f.ElCascader}),Object.defineProperty(d,"FoxCascaderPanel",{enumerable:!0,get:()=>f.ElCascaderPanel}),Object.defineProperty(d,"FoxCheckTag",{enumerable:!0,get:()=>f.ElCheckTag}),Object.defineProperty(d,"FoxCheckbox",{enumerable:!0,get:()=>f.ElCheckbox}),Object.defineProperty(d,"FoxCheckboxButton",{enumerable:!0,get:()=>f.ElCheckboxButton}),Object.defineProperty(d,"FoxCheckboxGroup",{enumerable:!0,get:()=>f.ElCheckboxGroup}),Object.defineProperty(d,"FoxCol",{enumerable:!0,get:()=>f.ElCol}),Object.defineProperty(d,"FoxCollapse",{enumerable:!0,get:()=>f.ElCollapse}),Object.defineProperty(d,"FoxCollapseItem",{enumerable:!0,get:()=>f.ElCollapseItem}),Object.defineProperty(d,"FoxCollapseTransition",{enumerable:!0,get:()=>f.ElCollapseTransition}),Object.defineProperty(d,"FoxColorPicker",{enumerable:!0,get:()=>f.ElColorPicker}),Object.defineProperty(d,"FoxConfigProvider",{enumerable:!0,get:()=>f.ElConfigProvider}),Object.defineProperty(d,"FoxContainer",{enumerable:!0,get:()=>f.ElContainer}),Object.defineProperty(d,"FoxDatePicker",{enumerable:!0,get:()=>f.ElDatePicker}),Object.defineProperty(d,"FoxDescriptions",{enumerable:!0,get:()=>f.ElDescriptions}),Object.defineProperty(d,"FoxDescriptionsItem",{enumerable:!0,get:()=>f.ElDescriptionsItem}),Object.defineProperty(d,"FoxDialog",{enumerable:!0,get:()=>f.ElDialog}),Object.defineProperty(d,"FoxDivider",{enumerable:!0,get:()=>f.ElDivider}),Object.defineProperty(d,"FoxDrawer",{enumerable:!0,get:()=>f.ElDrawer}),Object.defineProperty(d,"FoxDropdown",{enumerable:!0,get:()=>f.ElDropdown}),Object.defineProperty(d,"FoxDropdownItem",{enumerable:!0,get:()=>f.ElDropdownItem}),Object.defineProperty(d,"FoxDropdownMenu",{enumerable:!0,get:()=>f.ElDropdownMenu}),Object.defineProperty(d,"FoxEmpty",{enumerable:!0,get:()=>f.ElEmpty}),Object.defineProperty(d,"FoxFooter",{enumerable:!0,get:()=>f.ElFooter}),Object.defineProperty(d,"FoxForm",{enumerable:!0,get:()=>f.ElForm}),Object.defineProperty(d,"FoxFormItem",{enumerable:!0,get:()=>f.ElFormItem}),Object.defineProperty(d,"FoxHeader",{enumerable:!0,get:()=>f.ElHeader}),Object.defineProperty(d,"FoxIcon",{enumerable:!0,get:()=>f.ElIcon}),Object.defineProperty(d,"FoxImage",{enumerable:!0,get:()=>f.ElImage}),Object.defineProperty(d,"FoxImageViewer",{enumerable:!0,get:()=>f.ElImageViewer}),Object.defineProperty(d,"FoxInput",{enumerable:!0,get:()=>f.ElInput}),Object.defineProperty(d,"FoxInputNumber",{enumerable:!0,get:()=>f.ElInputNumber}),Object.defineProperty(d,"FoxLink",{enumerable:!0,get:()=>f.ElLink}),Object.defineProperty(d,"FoxMain",{enumerable:!0,get:()=>f.ElMain}),Object.defineProperty(d,"FoxMenu",{enumerable:!0,get:()=>f.ElMenu}),Object.defineProperty(d,"FoxMenuItem",{enumerable:!0,get:()=>f.ElMenuItem}),Object.defineProperty(d,"FoxMenuItemGroup",{enumerable:!0,get:()=>f.ElMenuItemGroup}),Object.defineProperty(d,"FoxOption",{enumerable:!0,get:()=>f.ElOption}),Object.defineProperty(d,"FoxOptionGroup",{enumerable:!0,get:()=>f.ElOptionGroup}),Object.defineProperty(d,"FoxPageHeader",{enumerable:!0,get:()=>f.ElPageHeader}),Object.defineProperty(d,"FoxPagination",{enumerable:!0,get:()=>f.ElPagination}),Object.defineProperty(d,"FoxPopconfirm",{enumerable:!0,get:()=>f.ElPopconfirm}),Object.defineProperty(d,"FoxPopover",{enumerable:!0,get:()=>f.ElPopover}),Object.defineProperty(d,"FoxPopper",{enumerable:!0,get:()=>f.ElPopper}),Object.defineProperty(d,"FoxProgress",{enumerable:!0,get:()=>f.ElProgress}),Object.defineProperty(d,"FoxRadio",{enumerable:!0,get:()=>f.ElRadio}),Object.defineProperty(d,"FoxRadioButton",{enumerable:!0,get:()=>f.ElRadioButton}),Object.defineProperty(d,"FoxRadioGroup",{enumerable:!0,get:()=>f.ElRadioGroup}),Object.defineProperty(d,"FoxRate",{enumerable:!0,get:()=>f.ElRate}),Object.defineProperty(d,"FoxResult",{enumerable:!0,get:()=>f.ElResult}),Object.defineProperty(d,"FoxRow",{enumerable:!0,get:()=>f.ElRow}),Object.defineProperty(d,"FoxScrollbar",{enumerable:!0,get:()=>f.ElScrollbar}),Object.defineProperty(d,"FoxSelect",{enumerable:!0,get:()=>f.ElSelect}),Object.defineProperty(d,"FoxSelectV2",{enumerable:!0,get:()=>f.ElSelectV2}),Object.defineProperty(d,"FoxSkeleton",{enumerable:!0,get:()=>f.ElSkeleton}),Object.defineProperty(d,"FoxSkeletonItem",{enumerable:!0,get:()=>f.ElSkeletonItem}),Object.defineProperty(d,"FoxSlider",{enumerable:!0,get:()=>f.ElSlider}),Object.defineProperty(d,"FoxSpace",{enumerable:!0,get:()=>f.ElSpace}),Object.defineProperty(d,"FoxStep",{enumerable:!0,get:()=>f.ElStep}),Object.defineProperty(d,"FoxSteps",{enumerable:!0,get:()=>f.ElSteps}),Object.defineProperty(d,"FoxSubMenu",{enumerable:!0,get:()=>f.ElSubMenu}),Object.defineProperty(d,"FoxSwitch",{enumerable:!0,get:()=>f.ElSwitch}),Object.defineProperty(d,"FoxTabPane",{enumerable:!0,get:()=>f.ElTabPane}),Object.defineProperty(d,"FoxTable",{enumerable:!0,get:()=>f.ElTable}),Object.defineProperty(d,"FoxTableColumn",{enumerable:!0,get:()=>f.ElTableColumn}),Object.defineProperty(d,"FoxTableV2",{enumerable:!0,get:()=>f.ElTableV2}),Object.defineProperty(d,"FoxTabs",{enumerable:!0,get:()=>f.ElTabs}),Object.defineProperty(d,"FoxTag",{enumerable:!0,get:()=>f.ElTag}),Object.defineProperty(d,"FoxTimePicker",{enumerable:!0,get:()=>f.ElTimePicker}),Object.defineProperty(d,"FoxTimeSelect",{enumerable:!0,get:()=>f.ElTimeSelect}),Object.defineProperty(d,"FoxTimeline",{enumerable:!0,get:()=>f.ElTimeline}),Object.defineProperty(d,"FoxTimelineItem",{enumerable:!0,get:()=>f.ElTimelineItem}),Object.defineProperty(d,"FoxTooltip",{enumerable:!0,get:()=>f.ElTooltip}),Object.defineProperty(d,"FoxTransfer",{enumerable:!0,get:()=>f.ElTransfer}),Object.defineProperty(d,"FoxTree",{enumerable:!0,get:()=>f.ElTree}),Object.defineProperty(d,"FoxTreeSelect",{enumerable:!0,get:()=>f.ElTreeSelect}),Object.defineProperty(d,"FoxTreeV2",{enumerable:!0,get:()=>f.ElTreeV2}),Object.defineProperty(d,"FoxUpload",{enumerable:!0,get:()=>f.ElUpload}),d.AutocompleteItem=Yn,d.Broadcast=Et,d.BroadcastKey=X,d.CascaderItem=Gn,d.CheckboxItem=ir,d.Content=mn,d.DataItemsKey=Ae,d.DateItem=jn,d.DialogItem=cr,d.Domain=Ot,d.DomainKey=be,d.FooterBar=gn,d.Group=bn,d.HeaderBar=hn,d.HintText=ct,d.InputItem=Cn,d.Item=ae,d.Mapping=Mt,d.MoneyItem=Hn,d.Page=dn,d.Price=ut,d.PriorityPolicy=nt,d.RadioItem=nr,d.RateItem=or,d.RowItem=On,d.SelectItem=In,d.SlotItem=vn,d.SwitchItem=ur,d.TableItem=Qn,d.TableMappingColumn=Zn,d.TimeItem=Dn,d.TimeSelectItem=kn,d.UniqueID=$n,d.ValidateSchema=nn,d.ValidateSchemaKey=ye,d.clearNonNumber=vr,d.compareTo=$t,d.createBroadcast=Ye,d.createValidateSchema=Ze,d.debounce=kr,d.decimalLength=Ut,d.default=Rl,d.defineBroadcast=Nr,d.defineDataItem=an,d.defineDomain=Ct,d.defineItem=re,d.definePageState=ln,d.deleteGlobalValidator=Rr,d.disabledProperty=ce,d.divide=wt,d.excludeProps=le,d.floatData=Vr,d.getGlobalValidateCheckEvents=Qt,d.getGlobalValidateResetEvents=tn,d.getPageContentAreaHeight=et,d.getPageContentAreaWidth=tt,d.getPageFooterAreaHeight=Qe,d.getPageHeaderAreaHeight=Je,d.getRootDomain=He,d.includeProps=Cr,d.indexOf=Or,d.integerLength=Yt,d.isBrowser=Pe,d.isEmptyString=Z,d.isInnerPage=Br,d.isNumberString=Wt,d.isRegExp=Gt,d.isSubPage=Pr,d.lastIndexOf=xr,d.multiply=Ht,d.negate=Kt,d.numberFormat=St,d.property=Ie,d.raf=Er,d.readonlyProperty=ue,d.setGlobalValidateCheckEvents=jr,d.setGlobalValidateHandler=Ar,d.setGlobalValidateMessages=Dr,d.setGlobalValidateResetEvents=Mr,d.setGlobalValidator=Ir,d.throttle=vt,d.toPadding=he,d.toPx=Q,d.toPxDesc=J,d.toValue=Y,d.unNumberFormat=zt,d.updatePageState=Vt,d.useBroadcast=_e,d.useDomain=we,d.useExpose=se,d.usePageState=Xe,d.usePosition=Sn,d.useRect=st,d.valueLength=We,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(g,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,je,m,Fe,Ce){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Jun 14 2023 14:54:22 GMT+0800 (中国标准时间)
|
|
3
|
+
*//*!
|
|
4
|
+
* @fox-js/big-decimal v4.0.1-5 Mon Jan 30 2023 14:39:30 GMT+0800 (中国标准时间)
|
|
5
|
+
*/function ft(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=me(e),t=me(t),[e,t]=At(me(e),me(t)),a==1&&(n==1?e=Rt(e):t=Rt(t));let l=on(e,t);return a?a==2?"-"+me(l):e.length<l.length?me(l.substring(1)):"-"+me(Rt(l)):me(l)}function Rt(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return on(t,o)}function me(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function At(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function on(e,t){[e,t]=At(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ie=(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))(ie||{});function et(e,t=0,a=ie.HALF_EVEN){if(a===ie.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=et(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,sn(l[1],o,n,a)?(n?"-":"")+Dt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&sn(i,s,n,a)&&(s=Dt(s),s.length>t)?(n?"-":"")+Dt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function sn(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ie.DOWN||!a&&n===ie.FLOOR||a&&n===ie.CEILING)return!1;if(n===ie.UP||a&&n===ie.FLOOR||!a&&n===ie.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ie.HALF_DOWN:return!1;case ie.HALF_UP:return!0;case ie.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Dt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Bt(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=tt(e),t=tt(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=tt(e.replace(".","")),t=tt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let w=0;for(let x=t.length-1;x>=f&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(w+=parseInt(e[u[x]--])*parseInt(t[x]));w+=i,i=Math.floor(w/10),c=w%10+c,f--}return c=tt(da(c,o)),a==1&&(c="-"+c),c}function da(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function tt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function qt(e,t,a=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=me(t.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=me(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=me(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let c=e.length-f+l;e=me(e.substring(0,c)+"."+e.substring(c))}else l==f&&(e=me(e.replace(".","")))}let o=0,s=t.length,i="",u=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),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=f,i="0."+new Array(f).join("0")}for(a=a+2;o<=a;){let f=0;for(;parseInt(u)>=parseInt(t);)u=ft(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+me(et(i,a-2))}function Lt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ft(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function un(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),cn(e),cn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Lt(e,Bt(t,et(qt(e,t),0,ie.FLOOR)));return a+n}function cn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function fn(e,t){let a=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),a=!0),[e,t]=At(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?a?-1:1:a?1:-1;return 0}class Q{value;static RoundingModes=ie;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[a,n]=t.split(/[eE]/);a=me(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+me(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=Q.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=Q.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<a?(a=i,i=0):i-=a,s=t.substring(i,i+a)+(i<o-a&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,a){return Q.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ie.HALF_EVEN){if(t=Q.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return et(t,a,n)}round(t=0,a=ie.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new Q(et(this.value,t,a))}static floor(t){return t=Q.validate(t),t.indexOf(".")===-1?t:Q.round(t,0,ie.FLOOR)}floor(){return this.value.indexOf(".")===-1?new Q(this.value):new Q(this.value).round(0,ie.FLOOR)}static ceil(t){return t=Q.validate(t),t.indexOf(".")===-1?t:Q.round(t,0,ie.CEILING)}ceil(){return this.value.indexOf(".")===-1?new Q(this.value):new Q(this.value).round(0,ie.CEILING)}static add(t,a){return t=Q.validate(t),a=Q.validate(a),ft(t,a)}add(t){return new Q(ft(this.value,t.getValue()))}static subtract(t,a){return t=Q.validate(t),a=Q.validate(a),Lt(t,a)}subtract(t){return new Q(Lt(this.value,t.getValue()))}static multiply(t,a){return t=Q.validate(t),a=Q.validate(a),Bt(t,a)}multiply(t){return new Q(Bt(this.value,t.getValue()))}static divide(t,a,n){return t=Q.validate(t),a=Q.validate(a),qt(t,a,n)}divide(t,a){return new Q(qt(this.value,t.getValue(),a))}static modulus(t,a){return t=Q.validate(t),a=Q.validate(a),un(t,a)}modulus(t){return new Q(un(this.value,t.getValue()))}static compareTo(t,a){return t=Q.validate(t),a=Q.validate(a),fn(t,a)}compareTo(t){return fn(this.value,t.getValue())}static negate(t){return t=Q.validate(t),jt(t)}negate(){return new Q(jt(this.value))}}function dn(e,t){return Q.multiply(`${e}`,`${t}`)}function Ft(e,t,a=8){return Q.divide(`${e}`,`${t}`,a)}function Mt(e,t){return e=`${e}`,t=`${t}`,Q.compareTo(e,t)}function hn(e){return Q.negate(e)}function dt(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",f=o.indexOf(".");f!=-1&&(i=o.substring(0,f),u=o.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",w=i.split("").reverse();for(let x=0;x<w.length;x++)d+=w[x]+((x+1)%n==0&&x+1!=w.length?l:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function gn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const ha=Array.isArray,ga=e=>ht(e)==="[object Map]",ma=e=>ht(e)==="[object Set]",pa=e=>e instanceof Date,_t=e=>typeof e=="function",ya=e=>typeof e=="string",ba=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",wa=e=>Ae(e)&&_t(e.then)&&_t(e.catch),mn=Object.prototype.toString,ht=e=>mn.call(e),Pt=e=>ht(e)==="[object Object]",pn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Sa(e){return e.__esModule||pn&&e[Symbol.toStringTag]==="Module"}const $a=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Me(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=Me(l,f,u)}else u!==void 0&&(t[s]=u)}}return t}function Ht(e,t,a=!1){if(!a)Me(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Pt(s))continue;o=Ht(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Pt(s))continue;o=Ht(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const zt=$a?Promise.resolve():null;function va(e,...t){zt!==null?t&&t.length>0?zt.then(()=>{e(t)}):zt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ne(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function oe(e){return typeof e=="number"?e:Number(e)}const xa={"[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 gt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):xa[a]||"object"}function yn(e){return e&&typeof e=="object"&&"setInterval"in e}function bn(e){return!e||e.offsetParent===null}function wn(e){let t=!!e&&"length"in e&&e.length,a=gt(e);return a==="function"||yn(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Sn(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function Ca(e,t=[]){let a=t;return e!=null&&(wn(Object(e))?Sn(a,typeof e=="string"?[e]:e):a.push(e)),a}function De(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=gt(e),n=gt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],f=t[i];if(!De(u,f))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!De(o,s))return!1}return!0}return!1}const ze=typeof window<"u",Ea=ze&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function $n(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const se=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function vn(e){return se(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),se(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function xn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const a=t.indexOf(".");return a==-1?t.length:a}function Cn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function En(e,t,a){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(a,"")}function Ta(e,t=!0,a=!0){t?e=En(e,".",/\./g):e=e.replace(/\./g,""),a?e=En(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Na(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(De(e,a))return!0}):t.indexOf(e)}function ka(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(De(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Tn(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function pe(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const Va=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},ce=Symbol.for("BroadcastKey");class Kt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):$n(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[a]=="function"){const u=Reflect.apply(i[a],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,a){this.callbacks.set(t,a)}}function mt(e,t,a,n){const l=new Kt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Oa(e,t,a){const n=a;if(n[ce])return n[ce];const l=r.inject(ce,null),o=new Kt(l,a,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[ce]=o,r.provide(ce,o),r.onUnmounted(()=>{o.destroy(),n[ce]=void 0}),o}function rt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ce]??r.inject(ce,null):r.inject(ce,null)}const _e=e=>e.default??e;class Ia{error(t,a){const n=a,l=rt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=rt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=rt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=rt(n),s=a.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Nn=new Ia;function Ra(e){Nn=e}function Aa(e,t){_e(je).setValidator(e,t)}function Da(e){_e(je).deleteValidator(e)}let kn=["blur","clear"];function Ba(e){kn=e}function Vn(){return kn}let On=["focus","change"];function qa(e){On=e}function In(){return On}function La(e){_e(je).messages(e)}function at(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function pt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ve=Symbol("ValidateSchemaKey");class Rn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=pt(at(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=pt(n);const l=at(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=Nn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,a,n=!1){n?_e(je).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?_e(je).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return _e(je).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=at(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=pt(t):this.rules=pt([t]);const n=at(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=at(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),s={[`${n}`]:o},i=_e(je),u=new i(l),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let w="error";Array.isArray(d.errors)&&d.errors.length>0&&(w=d.errors[0].message??w,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(w)}return d}).catch(d=>{const w=d.message??`${d}`;return this.error(w),d})}}return Promise.resolve({pass:!0})}}function yt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new Rn(t,a,e)}const An=Symbol.for("EventEmitterKey");class ja{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function lt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function Dn(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function Fa(e,t){const a=lt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}const ve=Symbol("DomainKey"),Ke=Symbol("DataItemsKey");class bt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const Ma=new bt;function We(){return Ma}function Oe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[ve]??r.inject(ve,null):r.inject(ve,null)}const Wt=Symbol("OriginalDateKey");function Gt(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let s=r.inject(ve,null);s===null&&(s=We());const i=e||t.prop||t.name,u=new bt(i);u.parent=s;const f=p=>{o[Wt]||w(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,d=()=>o[Wt]??null,w=p=>{const S={};Me(!0,S,r.toRaw(p)),o[Wt]=S};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&w(t.modelValue),o[ve]=u,r.provide(ve,u);let x=null,b=null;if(l!==null){const p=r.inject(ce,null);x=mt(o,p,i,n),u.broadcast=x,o[ce]=x,r.provide(ce,x),o.broadcast=(y,T,...R)=>Reflect.apply(x.emit,x,[y,T,...R]);const S=r.inject(Ve,null);b=yt(o,S,{componentName:""}),u.validateSchema=b,o[Ve]=b,r.provide(Ve,b),o[Ke]=new Map,o.validate=(y=!0)=>{const T=[];let R=null;const A={deep:!1};if(y===!0)R={name:"*"};else if(Array.isArray(y)&&y.length>0){const V=y;R={name:D=>D?V.indexOf(D)!==-1:!1}}else if(y!=null&&typeof y=="object"){const V=y;if(A.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const D=V.include;R={name:v=>v?D.indexOf(v)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const D=V.exclude;R={name:v=>v?D.indexOf(v)===-1:!1}}else R={name:"*"}}if(R){const V=x?.emitToChildren(R,"validate",A);V&&Reflect.apply([].push,T,V)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(V=>{let D=[];return V.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(D=[...D,...v.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(y,T=!0)=>{if(T){const R=Reflect.ownKeys(y),A=[...R],V={name:D=>{const v=R.includes(D);if(v){const I=A.findIndex(B=>D===B);I!==-1&&A.splice(I,1)}return v}};x?.emitToChildren(V,"setNameValidateRules",y,!1),A.length>0&&A.forEach(D=>{let v=String(D);const B=Ln(u,v,{componentName:"",fieldName:v,pureDataValidate:!0},x,b);o[Ke].set(v,B);const L=y[v];L&&B.validateSchema.setRule(L)})}},o.clearValidate=(y=!0)=>{let T=null;if(y===!0)T={name:"*"};else if(Array.isArray(y)&&y.length>0){const R=y;T={name:A=>A?R.indexOf(A)!==-1:!1}}else if(y!=null&&typeof y=="object"){const R=y;if(Array.isArray(R.include)&&R.include.length>0){const A=R.include;T={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const A=R.exclude;T={name:V=>V?A.indexOf(V)===-1:!1}}else T={name:"*"}}T&&x?.emitToChildren(T,"clearValidate",!1)},o.resetFields=y=>{const T=c();if(!T)return;const R={};if(Me(!0,R,d()??{}),Array.isArray(y))y.forEach(A=>{T[A]=R[A]});else if(y&&Array.isArray(y.include))(y.include??[]).forEach(V=>{T[V]=R[V]});else if(y&&Array.isArray(y.exclude)){let A=y.exclude??[];Reflect.ownKeys(R).forEach(V=>{A.includes(V)||(T[V]=R[V])})}else Object.assign(T,R);o.clearValidate(y)},o.setModelValue=(y,T)=>{!T||T===i?f(y):x?.emitToChildren({name:T},"setModelValue",y)},o.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),o[ve]=void 0,o[Ke]&&(o[Ke].clear(),o[Ke]=void 0),x!==null&&(x.destroy(),o[ce]=void 0),b!==null&&(b.destroy(),o[Ve]=void 0)}),u}function Bn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject(ve,null);o===null&&(o=We());const s=e||t.prop||t.name,i=new bt(s);return i.parent=o,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,a)}):i.merge(t,a),l[ve]=i,r.provide(ve,i),r.onUnmounted(()=>{i.destroy(),l[ve]=void 0}),i}function qn(e,t,a){const l=Oe(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function de(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",s=r.inject(ce,null),i=mt(l,s,o,a);l[ce]=i,r.provide(ce,i),l.broadcast=(b,p,...S)=>Reflect.apply(i.emit,i,[b,p,...S]);const u=r.inject(Ve,null);e.fieldName=e.fieldName??o;const f=yt(l,u,e);l[Ve]=f,r.provide(Ve,f),qn(l,f,o),l.validate=(b=null)=>{const p=[];let S=!1,y=!1;if(Array.isArray(b)&&b.indexOf(o)!==-1)y=!0,S=!0;else if(b&&typeof b=="object"){const T=b;T.ignoreHidden===!0&&bn(l.$el)?y=!1:(Array.isArray(T.include)&&T.include.indexOf(o)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(o),y=!0),S=T.deep??!1}else typeof b=="boolean"&&(S=b),y=!0;if(y){const T=f?.validate();p.push(T)}if(S){let T=null;const R={deep:!1};if(b===!0)T={name:"*"};else if(Array.isArray(b)&&b.length>0){const A=b;T={name:V=>V?A.indexOf(V)!==-1:!1}}else if(b!=null&&typeof b=="object"){const A=b;if(R.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const V=A.include;T={name:D=>D?V.indexOf(D)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const V=A.exclude;T={name:D=>D?V.indexOf(D)===-1:!1}}else T={name:"*"}}if(T){const A=i.emitToChildren(T,"validate",R);Reflect.apply([].push,p,A)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(T=>{let R=[];return T.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(R=[...R,...A.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>f?.setRule(b),l.setNameValidateRules=(b,p=!1)=>{const S=b[o];if(S&&f?.setRule(S),p){const y={name:T=>Reflect.ownKeys(b).includes(T)};i.emitToChildren(y,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(t??"")!==-1)&&f?.clear();let p=null;if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const S=b;p={name:y=>y?S.indexOf(y)!==-1:!1}}else if(b!=null&&typeof b=="object"){const S=b;if(Array.isArray(S.include)&&S.include.length>0){const y=S.include;p={name:T=>T?y.indexOf(T)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const y=S.exclude;p={name:T=>T?y.indexOf(T)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new ja(l);l[An]=c;const d=lt((b="validate")=>{b==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Vn()).forEach(b=>{c.on(b,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:In()).forEach(b=>{c.on(b,p=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),l[ce]=void 0,f.destroy(),l[Ve]=void 0,c.destroy(),l[An]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(b,...p)=>{Reflect.apply(c.emit,c,[b,...p])},onEvent:(b,p)=>{Reflect.apply(c.on,c,[p])},offEvent:(b,p)=>{Reflect.apply(c.off,c,[p])}}}function Ln(e,t,a,n,l){const o={},s=t??"";a.fieldName=s,a.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=yt({},l,a);o.validate=(f=null)=>{const c=[];let d=!1,w=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)w=!0,d=!0;else if(f&&typeof f=="object"){const x=f;Array.isArray(x.include)&&x.include.indexOf(s)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(s),w=!0,d=x.deep??!1}else typeof f=="boolean"&&(d=f),w=!0;if(w){const x=i?.validate();c.push(x)}if(d){let x=null;const b={deep:!1};if(f===!0)x={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;x={name:S=>S?p.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const S=p.include;x={name:y=>y?S.indexOf(y)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const S=p.exclude;x={name:y=>y?S.indexOf(y)===-1:!1}}else x={name:"*"}}if(x){const p=u.emitToChildren(x,"validate",b);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(x=>{let b=[];return x.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})},o.setValidateRule=f=>i?.setRule(f),o.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=mt(null,n,s,o);return{broadcast:u,validateSchema:i}}const ae=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${le(e,t)}px`:"";function le(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let 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)),o=1;if(ze){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const Be="PageStateKey";function Ee(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=le(e.top)),e.left!==null&&e.left!==void 0&&(t.left=le(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=le(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=le(e.right))),t}function Yt(e,t,a={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=le(a.headerHeight??t.headerHeight),e.headerPadding=Ee(a.headerPadding??t.headerPadding),e.footerHeight=le(a.footerHeight??t.footerHeight),e.footerPadding=Ee(a.footerPadding??t.footerPadding),e.contentPadding=Ee(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=le(u,o):e.height=le(o)-le(s,o)-le(i,o),e.width=le(a.width??t.width??0,l)}}function jn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={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")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=le(l.top),n.safeAreaBottom=le(l.bottom),n.safeAreaLeft=le(l.left),n.safeAreaRight=le(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Yt(n,o,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(Be);d&&(n.height=vt(e,d),n.width=xt(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=vt(e,d),c.width=xt(e,d)}));const w=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,b,p=-1,S=-1,y=0,T=0])=>{Yt(c,b,t,w,p,S,y,T)}),e.set(Be,c),c}function wt(e){return e.get(Be)}function St(e,t){return t=t??e.get(Be),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function $t(e,t){return t=t??e.get(Be),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function vt(e,t){if(t=t??e.get(Be),t){const a=St(e,t),n=$t(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function xt(e,t){return t=t??e.get(Be),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function _a(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function Pa(e){return!!e.getForParent(Be)}var Te=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Te||{});function Ut(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function xe(e,t,a=1,n){const l=Oe();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Ut(u,n))return u}const s=e.value;return Ut(s,n)?s:null}):r.computed(()=>{const o=e.value;return Ut(o,n)?o:l?.get(t)})}function be(e){return xe(e,"readonly",0,function(a){return ne(a)})}function we(e){return xe(e,"disabled",0,function(a){return ne(a)})}function re(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,s=>{if(typeof a=="function"){const i=a(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const Fn=new Map,Ct=new Map;let Xt=null;function Ha(e){Xt=e}function Mn(e,t,a){if(a){let n=Ct.get(a);n||(n=new Map,Ct.set(a,n)),n.set(e,t)}else Fn.set(e,t)}function Ne(e,t,a){!a&&Xt&&(a=Xt(e)??void 0);let n=null;if(a){let l=Ct.get(a);l&&(n=l.get(t))}return n||(n=Fn.get(t)),n}function za(e,t){for(let a in e){const n=e[a];Mn(a,n,t)}}function Ka(e){Ct.delete(e)}function Wa(){return{top:0,left:0,bottom:0,right:0}}function Ga(e=0,t=0){if(ze){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-le(e,n)-le(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ya{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=We();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Dn(()=>{const i={...a},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=Me({},Wa(),t.safeAreaInset),s=Ga(n,l),i=Me({},s.pageLayout,t.pageLayout);a=a??We(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ha(t)}setAPI(t,a,n){Mn(t,a,n)}getAPI(t,a,n){return Ne(t,a,n)}batchSetAPI(t,a){za(t,a)}clearScopeAPI(t){Ka(t)}getRootDomain(){return We()}}const Ua=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Xa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Za=e=>{Ua.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),Xa.forEach(t=>{e.use(t)})};function ee(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const fe={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}},ye={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}},_n={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Pn={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,default:"flex"},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}},Hn=[];for(const e in Pn)Hn.push(e);function he(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const Ja=Symbol.for("InnerPageScopeKey"),Qa=(e,t)=>({inheritAttrs:!0,props:{...fe,..._n,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,n){const l=Gt(a.name,a);if(l){const f=jn(l,a);he({getPageContentHeight:()=>vt(l,f),getPageContentWidth:()=>xt(l,f),getPageHeaderHeight:()=>St(l,f),getPageFooterHeight:()=>$t(l,f)});const c=r.inject(Ja,!1);f&&c&&(f.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>a.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),w=r.toRaw(f),x=w?Reflect.ownKeys(w):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{x.includes(p)||(w[p]=[])}),u(w)},{deep:!0}),r.onMounted(()=>{if(a.rules){const f=r.toRaw(a.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:el,create:tl,scope:Su}=ee("page"),nl=tl(Qa(el));function rl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const ke=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},zn=ke(nl,[["render",rl]]),al=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,n){const l=Oe(),o=l?wt(l):null;o&&(o.headerMounted=!0);const s=r.computed(()=>({[e]:!0})),i=a.height!==null&&a.height!==void 0?le(a.height):null,u=r.computed(()=>{const v={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const I=Ee(a.padding??o.footerPadding);return Object.assign(v,I),i&&(o.headerHeight=i),v.height=o.headerHeight,v.safeAreaTop=o.safeAreaTop,v.safeAreaTop&&(v.top=v.safeAreaTop+(I.top??0),v.height=v.height+o.safeAreaTop),v.height,v.safeAreaTop,v}if(i&&(v.height=i),a.padding){const I=Ee(a.padding);Object.assign(v,I)}return v});r.onUnmounted(()=>{o&&(o.headerMounted=!1)});const f=r.computed(()=>{const v={};return u.value.height!==null&&u.value.height!==void 0&&(v.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(v.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(v.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(v.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(v.paddingBottom=`${u.value.bottom}px`),v}),c=r.computed(()=>{const v={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(v.top=`${u.value.safeAreaTop}px`),v}),d=r.computed(()=>{const v={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(v.top=`${u.value.safeAreaTop}px`),v}),w=r.computed(()=>a.leftShow?a.leftIcon||a.leftText||n.slots.left:!1),x=r.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),b=r.computed(()=>a.titleShow?a.title||a.titleIcon||n.slots.default:!1),p=r.computed(()=>a.rightShow?a.rightIcon||a.rightText||n.slots.right:!1),S=r.computed(()=>{let v={};return typeof a.leftIcon=="object"?Object.assign(v,a.leftIcon):v.name=a.leftIcon,v}),y=r.computed(()=>{let v={};return typeof a.titleIcon=="object"?Object.assign(v,a.titleIcon):v.name=a.titleIcon,v}),T=r.computed(()=>{let v={};return typeof a.rightIcon=="object"?Object.assign(v,a.rightIcon):v.name=a.rightIcon,v});function R(){n.emit("back")}function A(){n.emit("click-title")}function V(){n.emit("click-right")}function D(){n.emit("click-right-text")}return{classes:s,styles:f,mHeaderShow:x,leftStyles:c,rightStyles:d,mLeftShow:w,mTitleShow:b,mRightShow:p,mLeftIcon:S,mTitleIcon:y,mRightIcon:T,handleLeft:R,handleCenter:A,handleRight:V,handleRightText:D}}}),{componentName:ll,create:ol,scope:$u}=ee("header-bar"),il=ol(al(ll)),sl={key:1,class:"fox-header-bar__title"};function ul(e,t,a,n,l,o){const s=r.resolveComponent("fox-ext-icon");return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(r.openBlock(),r.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",sl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...i)=>e.handleTitle&&e.handleTitle(...i))},r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.titleIcon?(r.openBlock(),r.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.rightIcon?(r.openBlock(),r.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Kn=ke(il,[["render",ul]]);function cl(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(a,n){const l=Oe(),o=l?wt(l):null;o&&(o.footerMounted=!0);const s=r.computed(()=>{const c=e;let d=e;return a.align==="left"?d=`${d}__left`:a.align==="right"?d=`${d}__right`:d=`${d}__center`,{[c]:!0,[d]:!0}}),i=a.height!==null&&a.height!==void 0?le(a.height):null,u=r.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const d=Ee(a.padding??o.footerPadding);return Object.assign(c,d),i&&(o.footerHeight=i),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(d.bottom??0)),c}if(i&&(c.height=i),a.padding){const d=Ee(a.padding);Object.assign(c,d)}return c});r.onUnmounted(()=>{o&&(o.footerMounted=!1)});const f=r.computed(()=>{const c={};return u.value.height!==null&&u.value.height!==void 0&&(c.height=ae(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(c.paddingTop=ae(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(c.paddingLeft=ae(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(c.paddingRight=ae(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(c.paddingBottom=ae(u.value.bottom)),c});return{classes:s,styles:f}}}}const{componentName:fl,create:dl,scope:vu}=ee("footer-bar"),hl=dl(cl(fl));function gl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Wn=ke(hl,[["render",gl]]);function ml(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Oe(),l=r.computed(()=>({[e]:!0})),o=r.computed(()=>{const s={};if(n){const i=wt(n);if(i){if(a.padding){const d=Ee(a.padding);Object.assign(i.contentPadding,d)}const u=St(n,i),f=$t(n,i);let c="";if(i.contentHeight?c=`${i.contentHeight}`:c=`${i.height}px`,i.contentPadding,s.height=c,i.contentPadding.top!==null&&i.contentPadding.top!==void 0||u>0){const d=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${u+d}px`}if(i.contentPadding.bottom!==null&&i.contentPadding.bottom!==void 0||f>0){const d=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${f+d}px`}return i.contentPadding.left!==null&&i.contentPadding.left!==void 0&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right!==null&&i.contentPadding.right!==void 0&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(a.padding){const i=Ee(a.padding);i.left!==null&&i.left!==void 0&&(s.paddingLeft=`${i.left}px`),i.top!==null&&i.top!==void 0&&(s.paddingTop=`${i.top}px`),i.right!==null&&i.right!==void 0&&(s.paddingRight=`${i.right}px`),i.bottom!==null&&i.bottom!==void 0&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:pl,create:yl,scope:xu}=ee("content"),bl=yl(ml(pl));function wl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Gn=ke(bl,[["render",wl]]),Ge="GroupStateKey",Yn=Symbol.for("GroupScopeKey");function Et(){return r.inject(Yn,!1)}function Tt(e=!0){r.provide(Yn,e)}function Sl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(Ge,o),o}function Un(e,t,a=-1,n=-1,l=!1,o){const s=e.get(Ge);if(!s)return;const i=e.get("groupLayout")??{};a===-1&&(a=i.column??1),n===-1&&(n=i.gutter??0),o||(o=i.minItemWidth??-1),o=le(o);const u=()=>{const f=t===""||t===-1,c=le(t);let d=oe(a);const w=le(n);if(!f){let p=(c-(d-1)*w)/d;for(;o!==-1&&d>1&&p<o;)d--,p=(c-(d-1)*w)/d}let x=!1;const b=s.layout;b.value.width=t,b.value.column!==d&&(b.value.column=d,x=!0),b.value.gutter!==w&&(b.value.gutter=w,x=!0),x&&r.triggerRef(b)};if(l)u();else{const f=++s.passport;setTimeout(()=>{f===s.passport&&u()},50)}}function ot(e,t=!1){let a;return t?a=e.getForParent(Ge):a=e.get(Ge),a.layout}function Zt(e,t=!1){let a;return t?a=e.getForParent(Ge):a=e.get(Ge),a.order}function Se(e,t=1){return t==="stretch"?-1:(t=oe(t),t===-1?100:100*t/e)}function $l(e){return e===window}const it=e=>{const t=r.unref(e);if($l(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},qe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,vl=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,a=(t.props&&t.props.span&&t.props.span.default)??1;return typeof a=="function"?a():a}return e.props.span},xl=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const a=e.type,n=(a.props&&a.props.offset&&a.props.offset.default)??0;return typeof n=="function"?n():n}const t=oe(e.props.offset);return t<0?0:t},Cl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,a=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof a=="function"?a():a}return e.props.foxItemType??"Item"},El=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const a=e.type,n=(a.props&&a.props.foxSubItemCount&&a.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=oe(e.props.foxSubItemCount);return t<0?1:t};function Jt(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function Tl(e,t,a){return{props:{...fe,..._n,...Pn},emits:["update:collapse"],setup(n,l){const o=Gt(n.name,n,Hn),s=Sl(o,{type:n.type}),i=Et();Tt(!0);const u=r.computed(()=>i&&o?ot(o,!0).value:null),f=r.getCurrentInstance(),c=h=>{const k=f?.proxy;k&&typeof k.setNameValidateRules=="function"&&k.setNameValidateRules(h,!0)};r.watch(()=>n.rules,(h,k)=>{if(!h&&!k)return;const j=r.toRaw(k),M=r.toRaw(h),G=M?Reflect.ownKeys(M):[];(j?Reflect.ownKeys(j):[]).forEach(X=>{G.includes(X)||(M[X]=[])}),c(M)},{deep:!0});const d=e,w=r.computed(()=>{const h={};if(h.height=W.value,u.value){const k=ot(o,!0);if(k.value.type==="flex"){if(n.width){const G=ae(n.width);h.width=G}else{const G=Se(k.value.column,n.span);G>0&&(h.width=`${G}%`)}const j=Se(k.value.column,n.offset);j>0&&(h["margin-left"]=`${j}%`);const M=k.value.gutter/2;M>0&&(h["padding-left"]=`${M}px`,h["padding-right"]=`${M}px`)}else if(k.value.type==="flow"){if(n.width){const G=ae(n.width);h.width=G}else{const G=Se(k.value.column,n.span);G>0&&(h.width=`${G}%`)}const j=Se(k.value.column,n.offset);j>0&&(h["margin-left"]=`${j}%`);const M=k.value.gutter/2;if(M>0){const G=o?Zt(o,!0):null;if(G){let K=oe(n.offset)+oe(n.span);(K===-1||K>k.value.column)&&(K=k.value.column);const X=Math.ceil((G.index+1)/k.value.column),_=Math.ceil((G.index+K)/k.value.column);if(X===_){const q=(G.index+1)%k.value.column,Y=(G.index+K)%k.value.column,Z=q===1?0:M,J=Y===0?0:M;h["padding-left"]=`${Z}px`,h["padding-right"]=`${J}px`}else{const q=K%k.value.column,Y=0,Z=q===0?0:M;h["padding-left"]=`${Y}px`,h["padding-right"]=`${Z}px`}G.index+=K}else h["padding-left"]=`${M}px`,h["padding-right"]=`${M}px`}}}else if(n.width){const k=ae(n.width);h.width=k}return h}),x=r.computed(()=>n.type==="flex"?{[`${qe("",n.type)}`]:!0,[`${qe("justify",n.justify)}`]:!0,[`${qe("align",n.align)}`]:!0,[`${qe("flex",n.flexWrap)}`]:!0,[`${d}__gutter`]:!0}:n.type==="flow"?{[`${qe("",n.type)}`]:!0,[`${qe("justify",n.justify)}`]:!0,[`${qe("align",n.align)}`]:!0}:{[`${qe("",n.type)}`]:!0,[`${d}__gutter`]:!0}),b=r.toRef(n,"title"),p=r.toRef(n,"gutter"),S=r.toRef(n,"column"),y=r.computed(()=>i?!0:ne(n.isWrap)),T=[],R=h=>{T.push(h)},A=()=>{let h=T.length;T.splice(0,h)},V=r.ref(-1);Un(o,V.value,S.value,p.value,!0,n.minItemWidth),n.autoLayout&&r.watch([V,S,p],([h,k,j])=>{s.order.index=0,Un(o,h,k,j,!1,n.minItemWidth)});const D=r.computed(()=>E.value?n.expandText??"":n.collapseText??""),v=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),I=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!E.value,["is-collapse"]:E.value})),B=r.ref(),L=r.ref(),W=r.computed(()=>$.value||ae(n.height)||""),P=r.ref(!1),$=r.ref(""),E=r.ref(!1);let C=-1;const z=(h,k=!0)=>{const j=B.value;if(j&&P.value!==h){if(C=C===-1?Jt(j):C,E.value=!0,k)if(j.style["will-change"]="height",j.ontransitionend=function(){j.ontransitionend=null,this.style["will-change"]="auto",h||($.value="",E.value=!1)},h){let M=0;n.collapseHeight?M=n.collapseHeight:L.value&&L.value.classList.contains(`${e}__header`)&&(M=Jt(L.value)),$.value=`${C}px`,r.nextTick(()=>{$.value=`${M}px`})}else $.value=`${C}px`;else if(h){let M=0;n.collapseHeight?M=n.collapseHeight:L.value&&L.value.classList.contains(`${e}__header`)&&(M=Jt(L.value)),$.value=`${M}px`}else E.value=!1,$.value=`${C}px`;P.value=h,l.emit("update:collapse",h)}};r.watch(()=>n.collapse,h=>{z(h)});const F=()=>{U()},U=h=>{h=h??!P.value,z(h)};he({toggleCollapse:U});let N=null;r.onMounted(()=>{if(n.rules){const h=r.toRaw(n.rules);c(h)}if(ze&&(z(ne(n.collapse),!1),n.autoLayout&&Array.isArray(T)&&T.length>0)){const h=T[0];V.value=it(h).width,window.ResizeObserver&&(N=new window.ResizeObserver(()=>{const k=it(h).width;k>0&&k!==V.value&&(V.value=k)}),N.observe(h))}}),r.onUnmounted(()=>{N?.disconnect()});const O=(h,k,j,M)=>{const G={...x.value};return k===0&&(G[`${d}__first`]=!0),j>=M-1&&(G[`${d}__last`]=!0),r.h("div",{ref:R,key:`${k}`,class:G},h)},H=h=>{if(typeof h.type=="symbol"){if(Array.isArray(h.children)){const k=[...h.children];for(let j=k.length-1;j>=0;j--){const M=k[j],G=H(M);G===null?k.splice(j,1):G.length>0&&Reflect.apply([].splice,k,[j,1,...G])}return k}return null}return[]};return()=>{s.order.index=0;const h=[];let k=0;if(l.slots.header){const K={key:`${k++}`,ref:L,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},X=r.h("div",K,[l.slots.header()]);h.push(X)}else{const K=[];if(b.value){if(n.showMark){const _={class:{[`${d}__header-mark`]:!0}};n.markColor&&(_.style={background:n.markColor});const q=r.h("div",_);K.push(q)}const X=r.h("div",{class:{[`${d}__header-title`]:!0}},[b.value]);K.push(X)}if(l.slots.toolbar&&K.push(l.slots.toolbar()),n.showCollapse){const X=[];if(D.value){const Y={class:v.value},Z=r.h("span",Y,[D.value]);X.push(Z)}const _={class:I.value},q=a(n.collapseIcon,_);if(q&&X.push(q),X.length>0){const Y=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:F},X);K.push(Y)}}if(K.length>0){const X={key:`${k++}`,ref:L,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},_=r.h("div",X,K);h.push(_)}}A();const j=l.slots.default?l.slots.default():[];let M=[],G=0;if(n.type==="flex"){for(let K=0;K<j.length;K++){const X=H(j[K]);if(X===null)continue;X.length>0&&Reflect.apply([].splice,j,[K,1,...X]);const _=j[K];if(Cl(_)==="fragment"){let te=El(_);te>s.layout.value.column?te=s.layout.value.column:te<=0&&(te=1);const $e=G+te;if($e>s.layout.value.column){const It=O([...M],k++,K-1,j.length);h.push(It),G=te,M=[_]}else M.push(_),G=$e;continue}const Y=vl(_),Z=xl(_);if(Y==="stretch"){if(G<s.layout.value.column){M.push(_);const te=O([...M],k++,K,j.length);h.push(te)}else{const te=O([...M],k++,K-1,j.length);h.push(te);const $e=O([_],k++,K,j.length);h.push($e)}G=0,M=[];continue}let J=oe(Y);if(J===-1){if(M.length>0){const $e=O([...M],k++,K-1,j.length);h.push($e)}const te=O([_],k++,K,j.length);h.push(te),G=0,M=[];continue}J>s.layout.value.column?J=s.layout.value.column:J<=0&&(J=1);const ue=G+J+Z;if(ue>s.layout.value.column){const te=O([...M],k++,K-1,j.length);h.push(te),G=J+Z,M=[_]}else M.push(_),G=ue}if(M.length>0){const K=O([...M],k++,j.length,j.length);h.push(K)}}else if(n.type==="flow"){const K=O(j,k++,0,j.length);h.push(K)}else for(let K=0;K<j.length;K++){const X=j[K],_=O([X],k++,K,j.length);h.push(_)}if(y.value){const K=n.tag||"div";return r.h(K,{ref:B,class:{[`${d}`]:!0,"is-collapse":E.value},style:w.value},[h])}else return h}}}}const{componentName:Nl,create:kl,scope:Vl}=ee("group"),Xn=kl(Tl(Nl,Vl,(e,t)=>(e=e??Fe.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function Ol(e){return e===window}const Il=/matrix\((.+)\)/,Zn=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Ol(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const c=Il.exec(f);if(c){let w=c[1].split(/\s*,\s*/);w.length==6&&(i+=Number(w[4]),u+=Number(w[5]))}}l=l.parentNode}return a-=o,n-=s,a+=i,n+=u,{x:a,y:n}};class Rl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Al{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Rl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const Jn=new Al,Qn={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:Dl,create:Bl}=ee("price"),ql=Bl({props:{...Qn},setup(e){const t=r.computed(()=>({[Dl]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>nt(e.price)==0?"":dt(e.price,e.decimalLength,!0,oe(e.digits),e.separator)),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),Ll=["innerHTML"],jl=["innerHTML"];function Fl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ll)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,jl)):r.createCommentVNode("",!0)],2)}const Qt=ke(ql,[["render",Fl]]),{componentName:Nt,create:Ml}=ee("hint-text"),_l=Ml({components:{Price:Qt},props:{...Qn,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Nt]:!0})),w=r.ref(null),x=(I,B,L=10)=>{if(!ze||B===!1||!I)return;o.value=!0;const W=it(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!w.value)return;const P=Zn(e.reference),$=document.documentElement.clientWidth||document.body.clientWidth,E=w.value.offsetWidth,C=w.value.offsetHeight;P.y-C>=0?(c.value="top",s.value.y=P.y-C-10-4,i.value.y=C):(c.value="bottom",s.value.y=P.y+f.value+10,i.value.y=-10);const z=P.x+E-$;z<0?(s.value.x=P.x,i.value.x=20):(s.value.x=P.x-z,i.value.x=z+20),o.value=!1},L)},b=lt(()=>{x(e.message,e.visible)},10),p=r.computed(()=>e.visible&&S.value),S=r.ref(!0),y=lt(I=>{const B=I[0];B&&(S.value=B.isIntersecting)},10),T=new IntersectionObserver(y);r.watch([()=>e.message,()=>e.visible],([I,B])=>{x(I,B)}),r.onMounted(()=>{x(e.message,e.visible),Jn.watch(e.reference,b),T.observe(e.reference)}),r.onBeforeMount(()=>{Jn.unwatch(e.reference,b),T.unobserve(e.reference),T.disconnect()});const R=r.computed(()=>{const I={["min-width"]:ae(u.value)};return o.value?I.visibility="hidden":I.transform=`translate(${s.value.x}px, ${s.value.y}px)`,I}),A=r.computed(()=>({[`${Nt}__content`]:!0})),V=r.computed(()=>({})),D=r.computed(()=>({[`${Nt}__arrow`]:!0,[`${Nt}__arrow-${e.placement}`]:!0})),v=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:w,classes:d,styles:R,textClasses:A,textStyles:V,arrowClasses:D,arrowStyles:v}}}),Pl={key:1,class:"text"};function Hl(e,t,a,n,l,o){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const kt=ke(_l,[["render",Hl]]);class er{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const en={},zl=new er,Ye=new Map,tn=e=>{if(e){const t=document.getElementById(e);Ye.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ye.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ye.clear()}},Kl=e=>{const t=document.getElementById(e.id);if(t){const a=Ye.get(e.id);a?e={...en,...a,...e}:e={...en,...e};const n=r.createVNode(kt,e);return r.render(n,t),e.id}},Wl=e=>{e.unmount=tn;let t;if(e.id){if(t=e.id,Ye.has(t))return Kl(e)}else t=`hinttext_${zl.get()}`;e={...en,...e},e.id=t,Ye.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(kt,e);return r.render(n,a),document.body.appendChild(a),t},Gl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Vt={show(e,t,a={},n=!0){return n&&tn(),Gl(t),Wl({...a,message:t,reference:e})},hide(e){tn(e)},install(e){e.config.globalProperties.$hintText=Vt}},{componentName:tr,create:Yl}=ee("item"),Ul=Yl({inheritAttrs:!0,props:{...fe,...ye},emits:["appear","disappear"],setup(e,t){de({componentName:tr,validate:!1},e.prop??t.attrs.name);const a=Oe(),n=Et();Tt(!1);const l=r.computed(()=>n&&a?ot(a,!1).value:null),o=tr,s=r.computed(()=>{const h={[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder};return h[e.errorMarkClass]=!!B.value,h[e.warnMarkClass]=!!v.value,h[e.infoMarkClass]=!!V.value,h}),i=r.computed(()=>{const h={};if(l.value)if(l.value.type==="flex"){if(e.width)h.width=ae(e.width);else{const M=Se(l.value.column,e.span);M>0&&(h.width=`${M}%`)}const k=Se(l.value.column,e.offset);k>0&&(h["margin-left"]=`${k}%`);const j=l.value.gutter/2;j>0&&(h["padding-left"]=`${j}px`,h["padding-right"]=`${j}px`)}else if(l.value.type==="flow"){if(e.width)h.width=ae(e.width);else{const M=Se(l.value.column,e.span);M>0&&(h.width=`${M}%`)}const k=Se(l.value.column,e.offset);k>0&&(h["margin-left"]=`${k}%`);const j=l.value.gutter/2;if(j>0){const M=a?Zt(a,!1):null;if(M){let G=oe(e.offset)+oe(e.span);(G===-1||G>l.value.column)&&(G=l.value.column);const K=Math.ceil((M.index+1)/l.value.column),X=Math.ceil((M.index+G)/l.value.column);if(K===X){const _=(M.index+1)%l.value.column,q=(M.index+G)%l.value.column,Y=_===1?0:j,Z=q===0?0:j;h["padding-left"]=`${Y}px`,h["padding-right"]=`${Z}px`}else{const _=G%l.value.column,q=0,Y=_===0?0:j;h["padding-left"]=`${q}px`,h["padding-right"]=`${Y}px`}M.index+=G}else h["padding-left"]=`${j}px`,h["padding-right"]=`${j}px`}}else return e.width&&(h.width=ae(e.width)),h;else e.width&&(h.width=ae(e.width));return h}),u=r.ref(null),f=r.computed({get:()=>u.value??ne(e.isRequired),set:h=>{u.value=h}}),c=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),d=xe(r.toRef(e,"labelPosition"),"labelPosition",Te.Near),w=r.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),x=r.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${w.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${w.value}`]:!0})),p=xe(r.toRef(e,"labelWidth"),"labelWidth",Te.Near),S=r.computed(()=>p&&p.value?{width:ae(p.value)}:{}),y=r.computed(()=>({["label--string"]:!0,["label--required"]:f.value})),T=r.computed(()=>({content:!0,[e.contentClass]:!0})),R=r.computed(()=>({...e.contentStyle})),A=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});he({setRequired(h){f.value=h},setErrorTip(h){A.errorTip=h},setErrorIcon(h){A.errorIcon=h},setWarnTip(h){A.warnTip=h},setWarnIcon(h){A.warnIcon=h},setInfoTip(h){A.infoTip=h},setInfoIcon(h){A.infoIcon=h}});const V=r.computed(()=>e.infoTip||A.infoTip),D=r.computed(()=>e.infoIcon||A.infoIcon),v=r.computed(()=>e.warnTip||A.warnTip),I=r.computed(()=>e.warnIcon||A.warnIcon),B=r.computed(()=>e.errorTip||A.errorTip),L=r.computed(()=>e.errorIcon||A.errorIcon),W=r.computed(()=>B.value?"error":v.value?"warn":V.value?"info":""),P=r.computed(()=>W.value.length>0),$=r.computed(()=>W.value==="error"?B.value:W.value==="warn"?v.value:W.value==="info"?V.value:""),E=r.computed(()=>W.value==="error"?L.value:W.value==="warn"?I.value:W.value==="info"?D.value:null),C=r.computed(()=>{let h={[`${o}__tip`]:!0,[`${o}__tip--${W.value}`]:!0};return W.value==="error"&&e.errorClass?h[`${e.errorClass}`]=!0:W.value==="warn"&&e.warnClass?h[`${e.warnClass}`]=!0:W.value==="info"&&e.infoClass&&(h[`${e.infoClass}`]=!0),h}),z=r.computed(()=>{let h={};return d&&d.value==="top"||!c.value?h["padding-left"]="0px":p&&p.value&&(h["padding-left"]=ae(p.value)),h}),F=r.ref();let U="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([h,k,j,M])=>{F.value&&(h&&!se(k)?U?Vt.show(F.value,k,{...M,id:U,type:j},!0):U=Vt.show(F.value,k,{...M,type:j},!0):Vt.hide(U))});let N=null;const O=()=>{N||!F.value||(N=new IntersectionObserver(h=>{let k=!1;for(let j of h)if(j.intersectionRatio>0){k=!0,k&&t.emit("appear",j);break}k||t.emit("disappear")}),N.observe(F.value))},H=()=>{!N||!F.value||(N.unobserve(F.value),N=null)};return r.watch(()=>ne(e.appearListen),h=>{h?O():H()}),r.onMounted(()=>{ne(e.appearListen)&&O()}),r.onUnmounted(H),{classes:s,styles:i,mainClasses:x,hasLabel:c,labelClasses:b,labelStyles:S,labelStringClasses:y,contentClasses:T,contentStyles:R,contentRef:F,hasTip:P,mTip:$,mIcon:E,tipClasses:C,tipStyles:z}}}),Xl={key:0,class:"fox-item__tip--icon"},Zl={class:"fox-item__tip--text"};function Jl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append")],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",Xl,r.toDisplayString(e.mIcon),1)):r.createCommentVNode("",!0),r.createElementVNode("div",Zl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],6)}const ge=ke(Ul,[["render",Jl]]);function Ql(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Oe(),o=Et();Tt(!1);const s=r.computed(()=>o&&l?ot(l,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=r.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(a.width)c.width=ae(a.width);else{const x=Se(s.value.column,a.span);x>0&&(c.width=`${x}%`)}const d=Se(s.value.column,a.offset);d>0&&(c["margin-left"]=`${d}%`);const w=s.value.gutter/2;w>0&&(c["padding-left"]=`${w}px`,c["padding-right"]=`${w}px`)}else if(s.value.type==="flow"){if(a.width)c.width=ae(a.width);else{const x=Se(s.value.column,a.span);x>0&&(c.width=`${x}%`)}const d=Se(s.value.column,a.offset);d>0&&(c["margin-left"]=`${d}%`);const w=s.value.gutter/2;if(w>0){const x=l?Zt(l,!1):null;if(x){let b=oe(a.offset)+oe(a.span);(b===-1||b>s.value.column)&&(b=s.value.column);const p=Math.ceil((x.index+1)/s.value.column),S=Math.ceil((x.index+b)/s.value.column);if(p===S){const y=(x.index+1)%s.value.column,T=(x.index+b)%s.value.column,R=y===1?0:w,A=T===0?0:w;c["padding-left"]=`${R}px`,c["padding-right"]=`${A}px`}else{const y=b%s.value.column,T=0,R=y===0?0:w;c["padding-left"]=`${T}px`,c["padding-right"]=`${R}px`}x.index+=b}else c["padding-left"]=`${w}px`,c["padding-right"]=`${w}px`}}else return a.width&&(c.width=ae(a.width)),c;else a.width&&(c.width=ae(a.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:eo,create:to,scope:Eu}=ee("slot-item"),nr=to(Ql(eo));function no(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Oe(),i=Et();Tt(!1);const u=r.computed(()=>{const c={};if(i&&s){const d=ot(s,!1);if(d.value.type!=="flex")return a.width&&(c.width=ae(a.width)),c;if(a.width)c.width=ae(a.width);else{const b=Se(d.value.column,a.span);b>0&&(c.width=`${b}%`)}const w=Se(d.value.column,a.offset);w>0&&(c["margin-left"]=`${w}%`);const x=d.value.gutter/2;x>0&&(c["padding-left"]=`${x}px`,c["padding-right"]=`${x}px`)}else a.width&&(c.width=ae(a.width));return c}),f=r.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const b=n.slots.default();if(a.divide)for(let p=0;p<b.length;p++){if(p>0){const S=r.h("div",{class:{[`${l}__divide`]:!0}});c.push(S)}c.push(b[p])}else Reflect.apply([].push,c,b)}const d={class:f.value},w=r.h("div",d,c),x={class:o.value,style:u.value};return r.h("div",x,[w])}}}}const{componentName:ro,create:ao,scope:Tu}=ee("row-item"),rr=ao(no(ro)),ar={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 lo(e,t,a){return{props:{...fe,...ye,...ar},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=re(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0,[`${w}__disabled`]:o.value,[`${w}__readonly`]:s.value})),b=$=>{d.value=$,i("update:modelValue",$),i("input",$)},p=$=>{i("change",$)};let S=re(n,"hintText"),y=r.ref(!1);const T=$=>{let C=$.target.value;c.value=!0,se(S.value)||(y.value=!0),i("focus",C,$)},R=$=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let C=$.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),i("blur",C,$)},A=()=>{i("clear","")},V=r.ref(!1);let D=null;const v=()=>{n.showTooltip&&V.value===!1&&(D=setTimeout(()=>{V.value=!0},150))},I=()=>{D&&(clearTimeout(D),V.value=!1,D=null)},B=r.computed(()=>V.value||y.value),L=r.computed(()=>V.value?d.value:S.value),W=r.computed(()=>nt(n.unit)>0),P=r.ref();return he({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const E={...l.attrs,ref:P,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:p,onInput:b,onFocus:T,onBlur:R,onMouseover:v,onMouseleave:I},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:W.value&&(C.suffix=()=>[n.unit]);const z=[],F=r.h(m.ElInput,E,C);z.push(F);const U={default:()=>z};l.slots.default&&(U.label=l.slots.default);const O={...pe(n,ar),hintText:L.value,hintVisible:B.value,prop:`${n.prop}_item`};return r.h(a,O,U)}}}}const{componentName:oo,create:io,scope:so}=ee("input-item"),lr=io(lo(oo,so,ge));function Pe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ue(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function or(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let uo=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ne(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function co(){const e=r.getCurrentInstance();return new uo(e.proxy)}function ir(e,t,a){const n=Pe(e,t),l=Pe(e,a);if(n!==l)return!1;const o=Ue(e,t),s=Ue(e,a);return o===s}function sr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=or(e,s);if(Array.isArray(i)&&i.length>0){const u=sr(e,o,a,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=Pe(e,s)===o;else if(a==="item")u=ir(e,s,o);else{let f=Ue(e,s);f==null&&(f=Pe(e,s)),u=f===o}if(u){l.push(s);break}}}}),l}function fo(e){return{text:e,value:e}}const ur={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1}};function ho(e,t,a){return{props:{...fe,...ye,...ur},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),w=(h,k,j,M=!0)=>{const G=sr(n,h,k,j);if(G===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],M&&(i("update:modelValue",null),i("change",null));return}let K=!0;if(G.length!==d.value.length)K=!1;else for(let X=0;X<G.length;X++){const _=G[X],q=d.value[X];if(!ir(n,_,q)){K=!1;break}}if(!K){d.value=G;let X=[],_=[];G.forEach(Y=>{X.push(Ue(n,Y)),n.valueType==="text"?_.push(Pe(n,Y)):n.valueType==="item"?_.push(Y):_.push(Ue(n,Y))});let q;n.multiple?(c.value=X,q=r.toRaw(_)):(c.value=X[0]??"",q=r.toRaw(_[0]??"")),M&&(i("update:modelValue",q),i("change",q))}},x=r.ref(null),b=r.ref(null),p=r.computed(()=>b.value??x.value??[]),S=xe(r.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,h=>ne(h)),y=co(),T=async(h,k)=>{if(h){const j=await y.load("select",h,k);if(j.length>0)if(typeof j[0]=="string"){let K=j.map(X=>fo(X));x.value=K}else x.value=j;else x.value=null}};r.watch([()=>n.source,()=>n.params],([h,k])=>{T(h,k)},{immediate:!S.value});let R=!1;const A=()=>{R||(R=!0,T(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([h,k])=>{w(k,n.valueType,h,!1)});let V=null,D=r.ref(!1);typeof n.remoteMethod=="function"&&(V=async h=>{if(h==null){b.value=null;return}D.value=!0;try{const k=await n.remoteMethod(h);b.value=k}catch(k){b.value=null,console.error(k)}D.value=!1});let v=null;typeof n.filterMethod=="function"&&(v=async h=>{if(h==null){b.value=null;return}D.value=!0;try{const k=await n.filterMethod(h,x.value);b.value=k}catch(k){b.value=null,console.error(k)}D.value=!1});const I=r.ref(!1),B=e,L=r.computed(()=>({[B]:!0})),W=h=>{n.allowCreate?(i("update:modelValue",h),i("change",h),c.value=h):w(h,"value",p.value,!0)};let P=re(n,"hintText"),$=r.ref(!1);const E=h=>{let j=h.target.value;I.value=!0,se(P.value)||($.value=!0),i("focus",j,h)},C=h=>{setTimeout(()=>{$.value&&($.value=!1),I.value=!1},0);let j=h.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),F.value||i("blur",j,h)},z=()=>{i("clear","")},F=r.ref(!1),U=h=>{F.value=h,i("visible-change",h),h||i("selected")},N=h=>{i("remove-tag",h)},O=(h,k)=>{const j=[];return h.forEach((M,G)=>{const K=or(n,M);if(Array.isArray(K)&&K.length>0){const X=O(K,k),_=Pe(n,M),Y={key:`${_}_${G}`,label:_};j.push(r.h(m.ElOptionGroup,Y,{default:()=>X}))}else{const X=Ue(n,M),_=Pe(n,M),q=ne(M.disabled),Z={key:`${X}_${G}`,label:_,disabled:q,value:X};if(typeof k=="function")j.push(r.h(m.ElOption,Z,{default:()=>k(M)}));else if(n.optionType==="item"){const J={class:{"fox-select-item__option-left":!0}},ue=r.h("span",J,[X]),te={class:{"fox-select-item__option-right":!0}},$e=r.h("span",te,[_]),It=r.h("div",{class:{"fox-select-item__option":!0}},[ue,$e]);j.push(r.h(m.ElOption,Z,{default:()=>It}))}else n.optionType==="value"?j.push(r.h(m.ElOption,Z,{default:()=>[X]})):j.push(r.h(m.ElOption,Z))}}),j},H=r.ref();return he({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const k={...l.attrs,ref:H,class:L.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:o.value||s.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:z,onChange:W,onFocus:E,onBlur:C,onVisibleChange:U,onRemoveTag:N};typeof V=="function"&&(k["remote-method"]=V,k.loading=D.value),typeof v=="function"&&(k["filter-method"]=v,k.loading=D.value);const j={};l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.empty&&(j.empty=l.slots.empty),l.slots.options?j.default=l.slots.options:j.default=()=>O(p.value,l.slots.option);const M=[],G=r.h(m.ElSelect,k,j);M.push(G);const K={default:()=>M};l.slots.default&&(K.label=l.slots.default);const _={...pe(n,ur),hintText:P.value,hintVisible:$.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(_["appear-listen"]=!0,_.onAppear=A),r.h(a,_,K)}}}}const{componentName:go,create:mo,scope:po}=ee("select-item"),cr=mo(ho(go,po,ge)),fr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yo(e,t,a){return{props:{...fe,...ye,...fr,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:["1949-01-01","2999-01-01"]}},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=re(n,"modelValue"),w=e,x=r.computed(()=>({[`${w}__input`]:!0})),b=P=>{d.value=P,i("update:modelValue",P),i("change",P)};let p=re(n,"hintText"),S=r.ref(!1);const y=P=>{let E=P.target.value;c.value=!0,se(p.value)||(S.value=!0),i("focus",E,P)},T=P=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let E=P.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,P)},R=()=>{i("clear","")},A=P=>{i("calendar-change",P)},V=(P,$,E)=>{i("panel-change",P,$,E)},D=P=>{i("visible-change",P)},v=xe(r.computed(()=>n.longTermValue),"longTermValue",Te.Near),I=r.ref(ne(n.longTerm)),B=P=>{I.value=P,i("update:longTerm",P),P&&i("update:modelValue",v.value)},L=ne(n.isLongTerm);if(L){const P=()=>{I.value===!0?i("update:modelValue",v.value):De(v.value,d.value)&&(I.value=!0)};P(),r.watch([()=>n.longTerm],([$])=>{I.value!==$&&P()})}const W=r.ref();return he({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},handleOpen:()=>{W?.value.handleOpen()},handleClose:()=>{W?.value.handleClose()}}),()=>{const $={...l.attrs,ref:W,class:x.value,placeholder:f.placeholder.value,disabled:o.value||I.value,readonly:s.value,modelValue:d.value,["onUpdate:modelValue"]:b,onClear:R,onFocus:y,onBlur:T,onCalendarChange:A,onPanelChange:V,onVisibleChange:D},E={};l.slots["range-separator"]&&(E["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(E.default=l.slots.cell);const C=[],z=r.h(m.ElDatePicker,$,E);C.push(z);const F={default:()=>C};if(l.slots.default){const H=l.slots.default();F.label=()=>H}if(L){const H={label:n.longTermText,disabled:s.value||o.value,modelValue:I.value,["onUpdate:modelValue"]:B},h=r.h(m.ElCheckbox,H),k=r.h("div",{class:{[`${w}__append`]:!0}},[h]);F.append=()=>k}const N={...pe(n,fr),class:{[`${w}__wrapper`]:!0,["has-append"]:L},hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,N,F)}}}}const{componentName:bo,create:wo,scope:So}=ee("date-item"),dr=wo(yo(bo,So,ge)),hr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $o(e,t,a){return{props:{...fe,...ye,...hr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=re(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),b=D=>{d.value=D,i("update:modelValue",D),i("change",D)};let p=re(n,"hintText"),S=r.ref(!1);const y=D=>{let I=D.target.value;c.value=!0,se(p.value)||(S.value=!0),i("focus",I,D)},T=D=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let I=D.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),i("blur",I,D)},R=()=>{i("clear","")},A=D=>{i("visible-change",D)},V=r.ref();return he({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const v={...l.attrs,ref:V,class:x.value,placeholder:f.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,["onUpdate:modelValue"]:b,onClear:R,onFocus:y,onBlur:T,onVisibleChange:A},I={},B=[],L=r.h(m.ElTimePicker,v,I);B.push(L);const W={default:()=>B};if(l.slots.default){const C=l.slots.default();W.label=()=>C}const $={...pe(n,hr),hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,$,W)}}}}const{componentName:vo,create:xo,scope:Co}=ee("time-item"),gr=xo($o(vo,Co,ge)),mr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Eo(e,t,a){return{props:{...fe,...ye,...mr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=re(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),b=V=>{d.value=V,i("update:modelValue",V),i("change",V)};let p=re(n,"hintText"),S=r.ref(!1);const y=V=>{let v=V.target.value;c.value=!0,se(p.value)||(S.value=!0),i("focus",v,V)},T=V=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let v=V.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),i("blur",v,V)},R=()=>{i("clear","")},A=r.ref();return he({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const D={...l.attrs,ref:A,class:x.value,placeholder:f.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,["onUpdate:modelValue"]:b,onClear:R,onFocus:y,onBlur:T},v={},I=[],B=r.h(m.ElTimeSelect,D,v);I.push(B);const L={default:()=>I};if(l.slots.default){const E=l.slots.default();L.label=()=>E}const P={...pe(n,mr),hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,P,L)}}}}const{componentName:To,create:No,scope:ko}=ee("time-select-item"),pr=No(Eo(To,ko,ge));function yr(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function br(e,t,a=20){if(typeof t=="string"&&(t=oe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=dn(`${e}`,`${t}`);return yr(n)}else{let n=Ft(`${e}`,hn(`${t}`),20);return yr(n)}}function Vo(e,t=-1,a=!1,n=3,l=","){return dt(e,t,a,n,l)}function wr(e,t,a,n,l=!0){if(e=="")return"";if(e=gn(e),t=oe(t),t==1)return e;if(n)e=br(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(oe(a)+2,"0"):e=Ft(e,1,oe(a)));else{let o=-1*t;e=br(e,o)}return e}function Sr(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ne(t.minInclude),l=Mt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=ne(t.maxInclude),l=Mt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const $r={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 Oo(e,t,a){return{props:{...fe,...ye,...$r},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(!1),f=re(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,E,C])=>{if(se($)){c.value="";return}const z=wr($,E,C,!1);c.value!==z&&(c.value=z)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:w}=Ce.useFoxI18n(t),x=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!se(c.value)?$=Vo(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=w(["placeholder",$]),$}),b=e,p=r.computed(()=>({[b]:!0,[`${b}__disabled`]:o.value,[`${b}__placeholder`]:c.value.length>0})),S=xe(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:S.value??"right"});const y=r.ref(""),T=r.computed(()=>{let $=y.value;return se($)&&($=n.errorTip??""),$}),R=r.ref(""),A=r.ref(!1),V=($,E)=>{if($=`${$}`,se($)){c.value="",f.value="",E.forEach(C=>{i(C,"")}),ne(n.showTip)&&A.value&&(A.value=!1);return}if($.length>=2){let C=$;if(C.charAt(0)=="-"&&(C=C.substring(1)),C.length>=2&&C.charAt(0)=="0"&&C.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!vn($)){r.triggerRef(c);return}if(n.integerLength!=-1&&xn($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Cn($)>Number(n.decimalLength)){r.triggerRef(c);return}let C=Sr($,n);if(C.maxValid===!1){y.value=C.message,r.triggerRef(c);return}}else if(n.min!=null&&oe(n.min)>=0){r.triggerRef(c);return}R.value=$,ne(n.showTip)&&(A.value=$.length>0),c.value=$,f.value=wr($,n.rates,n.precision,!0),E.forEach(C=>{i(C,f.value)})},D=$=>{V($,["update:modelValue","input"])},v=$=>{V($,["update:modelValue","change"])},I=$=>{if(u.value=!0,ne(n.showTip)){let E=c.value;se(E)&&(E=n.hintText),se(E)||(R.value=E,A.value=!0)}y.value="",i("focus",f.value,$)},B=$=>{if(setTimeout(()=>{u.value=!1,ne(n.showTip)&&A.value===!0&&(A.value=!1)},0),!se(c.value)){let E=Sr(c.value,n);if(E.minValid===!1||E.maxValid){y.value=E.message;return}}i("update:modelValue",f.value,$),i("blur",f.value,$)},L=()=>{i("clear","")},W=r.computed(()=>nt(n.unit)>0),P=r.ref();return he({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const E={...l.attrs,ref:P,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onInput:D,onChange:v,onFocus:I,onBlur:B},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:W.value&&(C.suffix=()=>[n.unit]);const z=[],F=r.h(m.ElInput,E,C);z.push(F);const U={default:()=>z};if(l.slots.default){const h=l.slots.default();U.label=()=>h}const O={...pe(n,$r),errorTip:T.value,hintText:R.value,hintVisible:A.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,O,U)}}}}const{componentName:Io,create:Ro,scope:Ao}=ee("money-item"),vr=Ro(Oo(Io,Ao,ge)),xr={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 Do(e,t,a){return{props:{...fe,...ye,...xr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=re(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0,[`${w}__append`]:D.value})),b=r.computed(()=>({[`${w}__unit`]:!0})),p=I=>{d.value=I,i("update:modelValue",I),i("input",I)},S=I=>{i("change",I)};let y=re(n,"hintText"),T=r.ref(!1);const R=I=>{let L=I.target.value;c.value=!0,se(y.value)||(T.value=!0),i("focus",L,I)},A=I=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let L=I.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,I)},V=()=>{i("clear","")},D=r.computed(()=>nt(n.unit)>0),v=r.ref();return he({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()}}),()=>{const B={...l.attrs,ref:v,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:S,onInput:p,onFocus:R,onBlur:A},L={},W=[],P=r.h(m.ElInputNumber,B,L);W.push(P);const $={default:()=>W};if(l.slots.default){const F=l.slots.default();$.label=()=>F}const C={...pe(n,xr),hintText:y.value,hintVisible:T.value,prop:`${n.prop}_item`};if(l.slots.append)$.append=l.slots.append;else if(D.value){const F={class:b.value},U=r.h("div",F,[n.unit]);$.append=()=>U}return r.h(a,C,$)}}}}const{componentName:Bo,create:qo,scope:Lo}=ee("input-number-item"),Cr=qo(Do(Bo,Lo,ge));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function He(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function jo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Fo=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ne(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function Mo(){const e=r.getCurrentInstance();return new Fo(e.proxy)}function nn(e,t,a){const n=Xe(e,t),l=Xe(e,a);if(n!==l)return!1;const o=He(e,t),s=He(e,a);return o===s}function Er(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Er(e,i,a,n);l.push(u)}else{let u=!1;for(let f of o){if(a==="text")u=Xe(e,f)===i;else if(a==="item")u=nn(e,f,i);else{let c=He(e,f);c==null&&(c=Xe(e,f)),u=c===i}if(u){l.push(f),o=jo(e,f);break}}if(!u)break}}return l}function _o(e){return{text:e,value:e}}const Tr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function Po(e,t,a){return{props:{...fe,...ye,...Tr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),w=(O,H,h,k=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===O)return;c.value=O;const G=r.toRaw(O);if(k){const K=N?.value.getCheckedNodes();if(K)if(n.multiple){const X=[];K.forEach(_=>{const Y=(_.pathNodes??[]).map(Z=>Z.data);X.push(Y)}),i("update:pathNodes",X)}else{const _=(K[0]?.pathNodes??[]).map(q=>q.data);i("update:pathNodes",_)}i("update:modelValue",G),i("change",G)}}const j=Er(n,O,H,h);if(j===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,k&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let M=!0;if(j.length!==d.value.length)M=!1;else for(let G=0;G<j.length;G++){const K=j[G],X=d.value[G];if(Array.isArray(K)){if(!Array.isArray(X)||K.length!==X.length)M=!1;else for(let _=0;_<K.length;_++)if(!nn(n,K[_],X[_])){M=!1;break}}else nn(n,K,X)||(M=!1);if(!M)break}if(!M){d.value=j;let G=[],K=[];j.forEach(_=>{if(Array.isArray(_)){let q=[],Y=[];for(let Z of _)q.push(He(n,Z)),n.valueType==="text"?Y.push(Xe(n,Z)):n.valueType==="item"?Y.push(Z):Y.push(He(n,Z));G.push(q),K.push(Y)}else G.push(He(n,_)),n.valueType==="text"?K.push(Xe(n,_)):n.valueType==="item"?K.push(_):K.push(He(n,_))}),c.value=G;const X=r.toRaw(K);k&&(i("update:pathNodes",j),i("update:modelValue",X),i("change",X))}},x=r.ref([]),b=xe(r.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,O=>ne(O)),p=Mo(),S=async(O,H)=>{if(O){const h=await p.load("cascader",O,H);if(h.length>0)if(typeof h[0]=="string"){let M=h.map(G=>_o(G));x.value=M}else x.value=h}};r.watch([()=>n.source,()=>n.params],async([O,H])=>{S(O,H)},{immediate:!(b.value||n.lazy)});let y=!1;const T=()=>{y||(y=!0,S(n.source,n.params))};r.watch([()=>x.value,()=>n.modelValue],([O,H])=>{w(H,n.valueType,O,!1)}),n.lazy&&w(n.modelValue,"value",[],!1);let R=null,A=r.ref(!1);typeof n.remoteMethod=="function"&&(R=async O=>{if(O!=null){A.value=!0;try{const H=await n.remoteMethod(O);x.value=H}catch(H){console.error(H)}A.value=!1}});const V=r.ref(!1),D=e,v=r.computed(()=>({[D]:!0})),I=r.computed(()=>{let O={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(O.multiple=!0),n.props&&Object.assign(O,n.props),n.lazy&&(O.lazy=!0,O.lazyLoad=async(H,h)=>{const k=await p.load("cascader",n.source,H,!0);h(k)}),O}),B=O=>{n.allowCreate?(i("update:modelValue",O),i("change",O),c.value=O):w(O,"value",x.value,!0)};let L=re(n,"hintText"),W=r.ref(!1);const P=O=>{let h=O.target.value;V.value=!0,se(L.value)||(W.value=!0),i("focus",h,O)},$=O=>{setTimeout(()=>{W.value&&(W.value=!1),V.value=!1},0);let h=O.target.value;n.maxLength&&h.length>Number(n.maxLength)&&(h=h.slice(0,Number(n.maxLength))),C.value||i("blur",h,O)},E=()=>{i("clear","")},C=r.ref(!1),z=O=>{C.value=O,i("visible-change",O),O||i("selected")},F=O=>{i("remove-tag",O)},U=O=>{i("expand-change",O)},N=r.ref();return he({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},getCheckedNodes:()=>N?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:N,class:v.value,props:I.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:o.value||s.value,options:x.value,modelValue:c.value,onClear:E,onChange:B,onFocus:P,onBlur:$,onVisibleChange:z,onRemoveTag:F,expandChange:U};typeof R=="function"&&(H["remote-method"]=R,H.loading=A.value);const h={};l.slots.option&&(h.default=l.slots.option),l.slots.empty&&(h.empty=l.slots.empty);const k=[],j=r.h(m.ElCascader,H,h);k.push(j);const M={default:()=>k};l.slots.default&&(M.label=l.slots.default);const K={...pe(n,Tr),hintText:L.value,hintVisible:W.value,prop:`${n.prop??l.attrs.name}_item`};return b.value&&!n.lazy&&(K["appear-listen"]=!0,K.onAppear=T),r.h(a,K,M)}}}}const{componentName:Ho,create:zo,scope:Ko}=ee("cascader-item"),Nr=zo(Po(Ho,Ko,ge)),kr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Wo(e,t,a){return{props:{...fe,...ye,...kr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ce.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=re(n,"modelValue"),w=e,x=r.computed(()=>({[w]:!0})),b=D=>{d.value=D,i("update:modelValue",D),i("input",D)},p=D=>{i("change",D)};let S=re(n,"hintText"),y=r.ref(!1);const T=D=>{let I=D.target.value;c.value=!0,se(S.value)||(y.value=!0),i("focus",I,D)},R=D=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let I=D.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),i("blur",I,D)},A=()=>{i("clear","")},V=r.ref();return he({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},select:()=>{V?.value.select()}}),()=>{const v={...l.attrs,ref:V,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,onClear:A,onChange:p,onInput:b,onFocus:T,onBlur:R},I={};l.slots.prepend&&(I.prepend=l.slots.prepend),l.slots.append&&(I.append=l.slots.append),l.slots.prefix&&(I.prefix=l.slots.prefix),l.slots.suffix&&(I.suffix=l.slots.suffix),l.slots.option&&(I.default=l.slots.option);const B=[],L=r.h(m.ElAutocomplete,v,I);B.push(L);const W={default:()=>B};if(l.slots.default){const C=l.slots.default();W.label=()=>C}const $={...pe(n,kr),hintText:S.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(a,$,W)}}}}const{componentName:Go,create:Yo,scope:Uo}=ee("autocomplete-item"),Vr=Yo(Wo(Go,Uo,ge));function Xo(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let f=t[u],c=o[u];const d=f.find(w=>w[n]===c);if(!d)break;s.push(d[a])}else{let u=t;for(let f=0;u&&f<o.length;f++){let c=o[f],d=u.find(w=>w[n]===c);if(!d)break;s.push(d[a]),u=d[l]}}return s}let Zo=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ne(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Jo(){const e=r.getCurrentInstance();return new Zo(e.proxy)}const Or={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Qo(e,t){return{props:{...Or},setup(a,{attrs:n,slots:l}){const o=Jo(),s=r.ref([]);r.watch([()=>a.source,()=>a.params],async([f,c])=>{s.value=await o.load(a.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=Xo(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const f={...n};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:Nu,create:ei,scope:ku}=ee("mapping"),Ot=ei(Qo());function ti(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function ni(e,t){return{props:{...Or},setup(a,{attrs:n,slots:l}){return()=>{const o={default:s=>{const i=ti(s.row,s.column.property);return l.default?r.h(Ot,{...a,modelValue:i},{default:l.default}):r.h(Ot,{...a,modelValue:i})}};return r.h(m.ElTableColumn,{...n},o)}}}}const{componentName:Vu,create:ri,scope:Ou}=ee("table-mapping-column"),Ir=ri(ni()),ai=Symbol.for("TableStateKey");function Rr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function li(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(ai,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Rr(i.row,i.column.property),f=o?Rr(o,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},w=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":c}};return r.h("label",x,[w])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:Iu,create:oi,scope:Ru}=ee("table-radio-column"),Ar=oi(li()),ii={},si={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"},ui=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function ci(e,t){return r.openBlock(),r.createElementBlock("svg",si,ui)}const fi=ke(ii,[["render",ci]]),{componentName:Du,create:di,scope:Bu}=ee("table-setting"),hi={tableRef:{type:Object,required:!0},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:"不固定"}},gi=di({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:fi,Download:Fe.Download,RefreshLeft:Fe.RefreshLeft},props:{...hi},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(N=>N.label===""||N.type?!1:N.fixed===""||N.fixed===!0||N.fixed==="left")),s=r.computed(()=>l.value.filter(N=>N.label===""||N.type?!1:N.fixed==="right")),i=r.computed(()=>l.value.filter(N=>!(N.label===""||N.type||N.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>o.value.length>0),c=r.computed(()=>s.value.length>0),d=N=>N.length>1,w=N=>{const O=[];l.value=N.map((h,k)=>(!(h.label===""||h.type)&&h.visible!==!1&&O.push(h.prop),{...h,sortIndex:k})),i.value.length+o.value.length+s.value.length===O.length?T.value=!0:O.length>0&&(R.value=!0),D.value=O},x=N=>N?N.type?N.type:N.label?N.prop:"":"",b=(N,O)=>{if(N.length!==O.length)return!1;const H=N.map(h=>x(h));for(let h of O){const k=x(h);if(H.indexOf(k)===-1)return!1}return!0},p=N=>{if(!N){const O=e.tableRef.getColumnSetting(),H=O.srcColumnPropertyList;n=H.map((h,k)=>({...h,sortIndex:k})),N=O.columnPropertyList,N&&N.length>0&&b(H,N)||(N=H)}w(N)},S=()=>{e.tableRef.setColumnSetting(l.value)},y=r.computed(()=>({["max-width"]:`${e.popoverWidth-125}px`})),T=r.ref(!1),R=r.ref(!1),A=N=>{const O=[];l.value.forEach(h=>{N&&!(h.label===""||h.type)&&O.push(h.prop),h.visible=N}),T.value=!1,R.value=!1,i.value.length+o.value.length+s.value.length===O.length?T.value=!0:O.length>0&&(R.value=!0),D.value=O,S()},V=()=>{p(n),S()},D=r.ref([]),v=N=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const h=N.indexOf(H.prop)!==-1;H.visible=h}),T.value=!1,R.value=!1;const O=i.value.length+o.value.length+s.value.length;N.length===O?T.value=!0:N.length>0&&(R.value=!0),S()},I=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const B={currentRow:null,index:null,roleType:null},L=N=>N?N.dataset&&N.dataset.role==="row"?N:N.tagName.toLowerCase()!=="body"?(N=N.parentElement,L(N)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:T,isIndeterminate:R,handleCheckAllChange:A,handleReset:V,checkedValue:D,handleCheckChange:v,onShow:I,onDragStart:N=>{const O=N.currentTarget;O&&O.dataset&&(B.roleType=O.dataset.roleType,B.index=O.dataset.index)},onDragEnd:N=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null,B.roleType=null},onDragOver:N=>{const O=N.currentTarget;N.relatedTarget;const H=L(O);if(!H)return;const h=H.dataset&&H.dataset.roleType;B.roleType===h&&(N.preventDefault(),B.currentRow&&B.currentRow!==H&&B.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),B.currentRow=H)},onDragLeave:N=>{N.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},onDrop:N=>{debugger;const O=N.currentTarget,H=L(O);if(!H)return;const h=H.dataset&&H.dataset.roleType;if(B.roleType!==h)return;N.preventDefault();const k=Number(B.index),j=Number(H.dataset.index);if(k!==j){if(k<j){const M=l.value[k];l.value.splice(k,1),l.value.splice(j,0,M)}else{const M=l.value[k];l.value.splice(k,1),l.value.splice(j+1,0,M)}w(l.value),S()}},toLeftFixed:N=>{const O=l.value[N];O.fixed="left",S()},toRightFixed:N=>{const O=l.value[N];O.fixed="right",S()},toUnFixed:N=>{const O=l.value[N];O.fixed=void 0,S()},checkboxLabelStyle:y}}}),mi={class:"fox-table-setting"},pi={class:"fox-table-setting__header"},yi={class:"fox-table-setting__body"},bi={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},wi={key:0,class:"fox-table-setting__body-title"},Si=["data-index","draggable"],$i={class:"tools-item"},vi={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},xi={key:0,class:"fox-table-setting__body-title"},Ci=["data-index","draggable"],Ei={class:"tools-item"},Ti={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ni={key:0,class:"fox-table-setting__body-title"},ki=["data-index","draggable"],Vi={class:"tools-item"};function Oi(e,t,a,n,l,o){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),w=r.resolveComponent("Download"),x=r.resolveComponent("fox-checkbox"),b=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",mi,[r.createElementVNode("div",pi,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=S=>e.isCheckAll=S),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",yi,[r.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=S=>e.checkedValue=S),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",bi,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",wi,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[2]||(t[2]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[3]||(t[3]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[4]||(t[4]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[5]||(t[5]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",$i,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toUnFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toRightFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Si))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",vi,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",xi,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[7]||(t[7]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[8]||(t[8]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[9]||(t[9]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[10]||(t[10]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ei,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toLeftFixed(S.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toRightFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ci))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ti,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ni,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...y)=>e.onDragStart&&e.onDragStart(...y)),onDragend:t[12]||(t[12]=(...y)=>e.onDragEnd&&e.onDragEnd(...y)),onDrop:t[13]||(t[13]=(...y)=>e.onDrop&&e.onDrop(...y)),onDragover:t[14]||(t[14]=(...y)=>e.onDragOver&&e.onDragOver(...y)),onDragleave:t[15]||(t[15]=(...y)=>e.onDragLeave&&e.onDragLeave(...y))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(x,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Vi,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toUnFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:y=>e.toLeftFixed(S.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ki))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const rn=ke(gi,[["render",Oi]]);let Ii=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,s,i){if(Array.isArray(a)){let f=(n-1)*l,c=f+l;c>a.length&&(c=a.length);const d=a.slice(f,c);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,s,i]);const u=Ne(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ae(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,s,i]))}};function Ri(){const e=r.getCurrentInstance();return new Ii(e.proxy)}class Ai{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ne(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ne(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ne(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function Di(){const e=r.getCurrentInstance();return new Ai(e.proxy)}const Bi=Symbol.for("TableStateKey");function qi(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function an(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=qi(n,l);if(o!==s)return!1}return!0})}const Dr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{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"}},Br={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}},ln={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 Li(e,t,a){return{inheritAttrs:!1,props:{...fe,...ye,...Dr,...Br,...ln},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=Ce.useFoxI18n(t),{emitEvent:s}=de({componentName:e,validateHandler:{getValue(...q){return R.value}}},n.prop??l.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),w=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,q=>{w.value=q});const x=q=>{w.value=q,s("page-index-change",q)},b=r.ref(n.pageSize);r.watch(()=>n.pageSize,q=>{b.value=q});const p=q=>{b.value=q,s("page-size-change",q)},S=r.shallowRef({}),y=r.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),R=r.ref(),A=Ri();let V=!0;const D=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:ne(n.autoLoad),v=xe(r.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,q=>ne(q)),I=async(q,Y,Z,J)=>{try{const ue=await A.load("table",q,Y,Z,J,V,o.value);T.value=ue.totalSize,R.value=ue.page}catch(ue){console.error("[FoxUI] Load Table Data Fail",ue),T.value=0,R.value=[]}V=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([w,b],([q,Y],[Z,J])=>{Y!==J&&(w.value=1,q=1),I(n.data,q,Y,y.value)}),r.watch([()=>n.data,y],([q,Y],[Z,J])=>{D()&&(q!==Z&&(V=!0),!(!Array.isArray(q)&&De(q,Z)&&De(Y,J))&&I(q,w.value,b.value,Y))},{deep:!0});const B=(q={},Y=!1)=>new Promise(Z=>{S.value=r.toRaw(q??{}),r.triggerRef(S),Y||(w.value=n.pageIndex??1),r.nextTick(async()=>{await I(n.data,w.value,b.value,y.value),Z()})}),L=()=>{T.value=0,R.value=[]};let W=!1;const P=()=>{W||(W=!0,B())};D()&&!v.value&&B();const $=r.ref(null);r.provide(Bi,{currentRow:$});const E=(q,Y)=>{$.value=q,s("current-change",q,Y)},C=(q,Y,Z)=>{s("row-click",q,Y,Z),ne(n.rowClickSelectable)===!0&&_?.value.toggleRowSelection(q)},z=[],F=(q,Y)=>{if(s("expand-change",q,Y),ne(n.uniqueExpansion))if(Array.isArray(Y)&&Y.length==0){const Z=z.length;z.splice(0,Z)}else{z.forEach(J=>{J!==q&&_?.value.toggleRowExpansion(J,!1)});const Z=z.length;z.splice(0,Z,q)}},U=l.attrs.id??n.prop??l.attrs.name,N=Di(),O=r.ref([]);let H=[];const h=()=>({srcColumnPropertyList:H.map(Y=>({...Y})),columnPropertyList:O.value}),k=q=>{O.value=[...q],M()},j=async()=>{const q=await N.load(U);q&&(O.value=q)},M=()=>{N.save(U,O.value)},G=()=>{N.remove(U)};j();const K=q=>q?q.type?q.type:q.label?q.prop:"":"",X=r.computed(()=>{if(typeof l.slots.default=="function"){const q=l.slots.default(),Y=new Map;if(H=[],q.forEach(Z=>{const J=Z;if(!J.props)return;const ue=K(J.props);Y.set(ue,Z);const te={label:"",prop:""};Object.assign(te,J.props),H.push(te)}),O.value.length===H.length){const Z=[];for(let J of O.value){const ue=K(J),te=Y.get(ue);if(!te)return q;if(J.visible===!1)continue;const $e=r.cloneVNode(te);$e.props.fixed=J.fixed,Z.push($e)}return Z}return q}return[]}),_=r.ref();return he({clearSelection:()=>_?.value.clearSelection(),getSelectionRows:()=>_?.value.getSelectionRows(),toggleRowSelection:(q,Y)=>{_?.value.toggleRowSelection(q,Y)},toggleRowSelectionByProp:(q,Y)=>{if(!R.value)return;const Z=an(R.value,q);Z.length!==0&&Z.forEach(J=>{_?.value.toggleRowSelection(J,Y)})},toggleAllSelection:()=>{_?.value.toggleAllSelection()},toggleRowExpansion:(q,Y)=>{_?.value.toggleRowExpansion(q,Y)},toggleRowExpansionByProp:(q,Y)=>{if(!R.value)return;const Z=an(R.value,q);Z.length!==0&&Z.forEach(J=>{_?.value.toggleRowExpansion(J,Y)})},setCurrentRow:q=>{_?.value.setCurrentRow(q)},setCurrentRowByProp:q=>{if(!R.value)return;const Y=an(R.value,q);Y.length!==0&&_?.value.setCurrentRow(Y[0])},getCurrentRow:()=>$.value,clearSort:()=>{_?.value.clearSort()},clearFilter:q=>{_?.value.clearFilter(q)},doLayout:()=>{_?.value.doLayout()},sort:(q,Y)=>{_?.value.sort(q,Y)},scrollTo:(q,Y)=>{_?.value.scrollTo(q,Y)},setScrollTop:q=>{_?.value.setScrollTop(q)},setScrollLeft:q=>{_?.value.setScrollLeft(q)},loadData:B,clearData:L,getData(){return R.value},getTotalSize(){return T.value},getPageIndex(){return w.value},getPageSize(){return b.value},getColumnSetting:h,setColumnSetting:k,removeColumnSetting:G}),()=>{const Y={...l.attrs,onCurrentChange:E,onRowClick:C,onExpandChange:F,data:R.value,ref:_,class:u.value},Z={};l.slots.default&&(Z.default=()=>X.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const J=[],ue=r.h(m.ElTable,Y,Z);J.push(ue);let te=null;if(typeof l.slots.pagination=="function")te=l.slots.pagination();else if(n.showPagination){const ct={class:d.value,total:T.value,pageSize:b.value,["onUpdate:pageSize"]:p,pageSizes:n.pageSizes,currentPage:w.value,["onUpdate:currentPage"]:x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};te=r.h(m.ElPagination,ct)}if(n.showSetting){const ct=[];te&&ct.push(te);const pu=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(Fe.Setting)}),yu=Tn(n,ln),bu=r.h(rn,{...yu,tableRef:{getColumnSetting:h,setColumnSetting:k,removeColumnSetting:G}},{default:()=>pu});ct.push(bu);const wu=r.h("div",{class:c.value},ct);J.push(wu)}else te&&J.push(te);const $e={default:()=>J},ut={...pe(n,Dr,Br,ln),prop:`${n.prop}_item`};return ut.contentClass=`${i}__wrap`,ut.errorMarkClass="is-table-error",v.value&&D()&&(ut["appear-listen"]=!0,ut.onAppear=P),r.h(a,ut,$e)}}}}const{componentName:ji,create:Fi,scope:Mi}=ee("table-item"),qr=Fi(Li(ji,Mi,ge));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function st(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let _i=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ne(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Pi(){const e=r.getCurrentInstance();return new _i(e.proxy)}function Lr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ze(e,t),l=Ze(e,a);if(n!==l)return!1;const o=st(e,t),s=st(e,a);return o===s}function Hi(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(a==="text")s=Ze(e,o)===t;else if(a==="item")s=Lr(e,o,t);else{let i=st(e,o);i==null&&(i=Ze(e,o)),s=i===t}if(s){l=o;break}}return l}function zi(e){return{text:e,value:e}}function Ki(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const jr={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Wi(e,t,a){return{inheritAttrs:!0,props:{...fe,...ye,...jr},emits:["change","update:modelValue"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(null),f=r.ref(null),c=(v,I,B,L=!0)=>{const W=Hi(n,v,I,B);if(W===null){if(f.value===null)return;f.value=null,u.value=null,L&&(i("update:modelValue",null),i("change",null));return}if(!Lr(n,W,f.value)){u.value=v;const $=r.toRaw(W);f.value=$;let E=null;n.valueType==="text"?E=Ze(n,$):n.valueType==="item"?E=$:E=st(n,$),L&&(i("update:modelValue",E),i("change",E))}},d=r.ref([]),w=xe(r.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,v=>ne(v)),x=Pi(),b=async(v,I)=>{if(v){const B=await x.load("radio",v,I);if(B.length>0)if(typeof B[0]=="string"){let P=B.map($=>zi($));d.value=P}else d.value=B}};r.watch([()=>n.source,()=>n.params],async([v,I])=>{b(v,I)},{immediate:!w.value});let p=!1;const S=()=>{p||(p=!0,b(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([v,I])=>{c(I,n.valueType,v,!1)});const y=e,T=r.computed(()=>({[y]:!0,[`is-${n.direction}`]:!0})),R=v=>{c(v,"value",d.value,!0)};let A=re(n,"hintText"),V=re(n,"hintVisible");const D=(v,I)=>{const B=[];return v.forEach((L,W)=>{const P=st(n,L),$=Ze(n,L),E=Ki(n,L,W)??{};let C=E.disabled;o.value===!0&&(C=o.value);const z=`${P}_${W}`,F={...E,key:z,label:P,disabled:C,size:n.size,border:ne(n.border)};n.itemType==="button"?B.push(r.h(m.ElRadioButton,F,{default:()=>[$]})):typeof I=="function"?B.push(r.h(m.ElRadio,F,{default:()=>I(L)})):B.push(r.h(m.ElRadio,F,{default:()=>[$]}))}),B};return()=>{const I={...l.attrs,class:T.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:R},B=[],L={};l.slots.options?L.default=l.slots.options:L.default=()=>D(d.value,l.slots.text);const W=r.h(m.ElRadioGroup,I,L);B.push(W);const P={default:()=>B};l.slots.default&&(P.label=l.slots.default);const E={...pe(n,jr),hintText:A.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(E["appear-listen"]=!0,E.onAppear=S),r.h(a,E,P)}}}}const{componentName:Gi,create:Yi,scope:Ui}=ee("radio-item"),Fr=Yi(Wi(Gi,Ui,ge));function Je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Xi{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ne(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Zi(){const e=r.getCurrentInstance();return new Xi(e.proxy)}function Mr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Je(e,t),l=Je(e,a);if(n!==l)return!1;const o=Qe(e,t),s=Qe(e,a);return o===s}function Ji(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(a==="text")i=Je(e,s)===o;else if(a==="item")i=Mr(e,s,o);else{let u=Qe(e,s);u==null&&(u=Je(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function Qi(e){return{text:e,value:e}}function es(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const _r={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function ts(e,t,a){return{inheritAttrs:!1,props:{...fe,...ye,..._r},emits:["change","update:modelValue"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref([]),f=r.ref([]),c=(v,I,B,L=!0)=>{const W=Ji(n,v,I,B);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],L&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(W.length!==f.value.length)P=!1;else for(let $=0;$<W.length;$++){const E=W[$],C=f.value[$];if(!Mr(n,E,C)){P=!1;break}}if(!P){f.value=W;let $=[],E=[];W.forEach(z=>{$.push(Qe(n,z)),n.valueType==="text"?E.push(Je(n,z)):n.valueType==="item"?E.push(z):E.push(Qe(n,z))}),u.value=$;const C=r.toRaw(E);L&&(i("update:modelValue",C),i("change",C))}},d=r.ref([]),w=xe(r.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,v=>ne(v)),x=Zi(),b=async(v,I)=>{if(v){const B=await x.load("checkbox",v,I);if(B.length>0)if(typeof B[0]=="string"){let P=B.map($=>Qi($));d.value=P}else d.value=B}};r.watch([()=>n.source,()=>n.params],async([v,I])=>{b(v,I)},{immediate:!w.value});let p=!1;const S=()=>{p||(p=!0,b(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([v,I])=>{c(I,n.valueType,v,!1)});const y=e,T=r.computed(()=>({[y]:!0,[`is-${n.direction}`]:!0})),R=v=>{c(v,"value",d.value,!0)};let A=re(n,"hintText"),V=re(n,"hintVisible");const D=(v,I)=>{const B=[];return v.forEach((L,W)=>{const P=Qe(n,L),$=Je(n,L),E=es(n,L,W)??{};let C=E.disabled;o.value===!0&&(C=o.value);const z=`${P}_${W}`,F={...E,key:z,class:n.itemClass,label:P,disabled:C,size:n.size,border:ne(n.border)};n.itemType==="button"?B.push(r.h(m.ElCheckboxButton,F,{default:()=>[$]})):typeof I=="function"?B.push(r.h(m.ElCheckbox,F,{default:()=>I(L)})):B.push(r.h(m.ElCheckbox,F,{default:()=>[$]}))}),B};return()=>{const I={...l.attrs,class:T.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:oe(n.max),min:oe(n.min),onChange:R},B=[],L={};l.slots.options?L.default=l.slots.options:L.default=()=>D(d.value,l.slots.text);const W=r.h(m.ElCheckboxGroup,I,L);B.push(W);const P={default:()=>B};l.slots.default&&(P.label=l.slots.default);const E={...pe(n,_r),hintText:A.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(E["appear-listen"]=!0,E.onAppear=S),r.h(a,E,P)}}}}const{componentName:ns,create:rs,scope:as}=ee("checkbox-item"),Pr=rs(ts(ns,as,ge)),Hr={modelValue:{type:[Number,String],required:!1}};function ls(e,t,a){return{props:{...fe,...ye,...Hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=re(n,"modelValue",p=>oe(p)),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let w=re(n,"hintText"),x=r.ref(!1);const b=r.ref();return he({}),()=>{const S={...l.attrs,ref:b,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:d},y={},T=[],R=r.h(m.ElRate,S,y);T.push(R);const A={default:()=>T};if(l.slots.default){const I=l.slots.default();A.label=()=>I}const D={...pe(n,Hr),hintText:w.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(a,D,A)}}}}const{componentName:os,create:is,scope:ss}=ee("rate-item"),zr=is(ls(os,ss,ge)),Kr={modelValue:{type:[Boolean,String,Number],required:!1}};function us(e,t,a){return{props:{...fe,...ye,...Kr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=re(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let w=re(n,"hintText"),x=re(n,"hintVisible");const b=r.ref();return he({}),()=>{const S={...l.attrs,ref:b,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:d},y={},T=[],R=r.h(m.ElSwitch,S,y);T.push(R);const A={default:()=>T};if(l.slots.default){const I=l.slots.default();A.label=()=>I}const D={...pe(n,Kr),hintText:w.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(a,D,A)}}}}const{componentName:cs,create:fs,scope:ds}=ee("switch-item"),Wr=fs(us(cs,ds,ge)),Gr={modelValue:{type:[String,Number,Boolean],required:!1}};function hs(e,t,a){return{props:{...fe,...ye,...Gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=de({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),f=re(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),w=V=>{u("update:modelValue",V),u("change",V)};let x=re(n,"hintText"),b=r.ref(!1);const p=V=>{let v=V.target.value;i.value=!0,se(x.value)||(b.value=!0),u("focus",v,V)},S=V=>{setTimeout(()=>{b.value&&(b.value=!1),i.value=!1},0);let v=V.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),T.value||u("blur",v,V)},y=()=>{u("clear","")},T=r.ref(!1),R=V=>{T.value=V,u("visible-change",V),V||u("selected")},A=r.ref();return he({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const D={...l.attrs,ref:A,class:d.value,disabled:o.value||s.value,modelValue:f.value,["onUpdate:modelValue"]:w,onClear:y,onFocus:p,onBlur:S,onVisibleChange:R},v={};l.slots.option&&(v.default=l.slots.option);const I=[],B=r.h(m.ElTreeSelect,D,v);I.push(B);const L={default:()=>I};if(l.slots.default){const E=l.slots.default();L.label=()=>E}const P={...pe(n,Gr),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,P,L)}}}}const{componentName:gs,create:ms,scope:ps}=ee("tree-select-item"),Yr=ms(hs(gs,ps,ge)),ys=Symbol.for("InnerPageScopeKey"),bs=Symbol.for("PageWrapperKey");function ws(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,n){r.provide(ys,!0);const l={};r.provide(bs,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.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":o},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:qu,create:Ss,scope:Lu}=ee("dialog-item"),Ur=Ss(ws()),{componentName:ju,create:$s}=ee("ext-icon"),Xr=$s({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:a}){const n=s=>{t("click",s)},l=r.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const s=l.value;return r.h(s?"img":e.tag,{class:s?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:ae(e.size),width:ae(e.size),height:ae(e.size)},onClick:n,src:s?e.name:""},a.default?.())}}});function vs(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),s=r.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0})),i=r.computed(()=>a.color?{background:a.color}:null),u=r.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0})),f=r.computed(()=>a.color?{color:a.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:s.value,style:i.value};c=r.h("div",p)}const d={class:u.value,style:f.value},w=n.default?n.default():[],x=r.h("div",d,w),b={class:o.value};return r.h("div",b,[c,x])}}}}const{componentName:xs,create:Cs,scope:Fu}=ee("indicator"),Zr=Cs(vs(xs));function Es(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const Ts={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:" "}};function Ns(e,t){return{props:{...Ts},setup(a,n){const l=r.ref(!0),o=r.ref(null),s=r.computed(()=>{const f={[`${e}`]:!0,["is-truncated"]:a.truncated};return a.type&&(f[`${e}__${a.type}`]=!0),a.size&&(f[`${e}__${a.size}`]=!0),f}),i=f=>{if(f&&ne(a.showOverflowTooltip)){const c=f.clientWidth,d=Es(f);l.value=d<=c}};let u=null;return r.onMounted(()=>{if(!ne(a.showOverflowTooltip))return;const f=o.value;i(f),f&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(f)}),u.observe(f))}),r.onUnmounted(()=>{u?.disconnect()}),()=>{const f={},c={class:s.value,ref:o,...n.attrs};if(ne(a.numberFormat)&&typeof n.slots.default=="function"){const b=n.slots.default();if(Array.isArray(b)&&b.length===1&&b[0].type.toString()==="Symbol(Text)"){const S=oe(a.digits),y=oe(a.decimalLength),T=ne(a.autoPadding);let R=`${b[0].children}`,A=R.split("").reverse().join("");A=dt(A,y,T,S,a.separator),R=A.split("").reverse().join("");const V=r.h(a.tag,c,{default:()=>[R]});f.default=()=>V}}else{const b=r.h(a.tag,c,{default:n.slots.default});f.default=()=>b}const w={disabled:l.value};return f.content=n.slots.default,r.h(m.ElTooltip,w,f)}}}}const{componentName:ks,create:Vs,scope:Mu}=ee("text"),Jr=Vs(Ns(ks)),Os={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:Fe.ArrowUp}};function Is(e,t,a){return{props:{...Os},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=re(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,["is-expand"]:!s.value,["is-collapse"]:s.value})),c=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const p={class:u.value},S=r.h("span",p,[i.value]);d.push(S)}const w={class:f.value},x=a(n.icon,w);return x&&d.push(x),r.h("div",{class:o.value,onClick:c},d)}}}}const{componentName:Rs,create:As,scope:Ds}=ee("more-button"),Qr=As(Is(Rs,Ds,(e,t)=>(e=e??Fe.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Bs,create:qs,scope:Pu}=ee("tour"),Ls=qs({components:{Close:Fe.Close,ElPopover:m.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const a=Bs,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),s=r.computed(()=>{const{offset:b,maskWidth:p,maskHeight:S}=e,{width:y,height:T,left:R,top:A}=l.value,V=e.steps[n.active].offset??b,D=[R+y/2,A+T/2],v=Number(p||y),I=Number(S||T);return{width:`${v+ +V.left+V.right}px`,height:`${I+V.top+V.bottom}px`,top:`${D[1]-I/2-+V.top}px`,left:`${D[0]-v/2-+V.left}px`}}),i=b=>{b=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=b=>b.popoverWidth??e.width,f=b=>b.location??e.location,c=()=>{const b=document.querySelector(`${e.steps[n.active].target}`),p=it(b);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&d()},x=(b,p=0)=>{b&&c(),e.steps,n.active=p,n.showTour=b,n.showPopup=b};return r.onMounted(()=>{x(e.modelValue,e.current)}),r.watch(()=>e.modelValue,b=>{x(b)}),{...r.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:w}}}),js={key:0,class:"fox-tour__content"},Fs={key:0,class:"fox-tour__content-top"},Ms={class:"fox-tour__content-inner"},_s={class:"fox-tour__content-bottom"},Ps={class:"fox-tour__content-bottom-init"},Hs={class:"fox-tour__content-bottom-operate"},zs={key:1,class:"fox-tour__content fox-tour__content-tile"},Ks={class:"fox-tour__content-inner"};function Ws(e,t,a,n,l,o){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",js,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",Fs,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",Ms,r.toDisplayString(f.content),1),r.createElementVNode("div",_s,[r.createElementVNode("div",Ps,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",Hs,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",zs,[r.createElementVNode("div",Ks,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ea=ke(Ls,[["render",Ws]]);function Gs(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return Bn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hu,create:Ys,scope:zu}=ee("domain-provider"),ta=Ys(Gs());var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var na={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",w="quarter",x="year",b="date",p="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},R=function($,E,C){var z=String($);return!z||z.length>=E?$:""+Array(E+1-z.length).join(C)+$},A={s:R,z:function($){var E=-$.utcOffset(),C=Math.abs(E),z=Math.floor(C/60),F=C%60;return(E<=0?"+":"-")+R(z,2,"0")+":"+R(F,2,"0")},m:function $(E,C){if(E.date()<C.date())return-$(C,E);var z=12*(C.year()-E.year())+(C.month()-E.month()),F=E.clone().add(z,d),U=C-F<0,N=E.clone().add(z+(U?-1:1),d);return+(-(z+(C-F)/(U?F-N:N-F))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:x,w:c,d:f,D:b,h:u,m:i,s,ms:o,Q:w}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},V="en",D={};D[V]=T;var v=function($){return $ instanceof W},I=function $(E,C,z){var F;if(!E)return V;if(typeof E=="string"){var U=E.toLowerCase();D[U]&&(F=U),C&&(D[U]=C,F=U);var N=E.split("-");if(!F&&N.length>1)return $(N[0])}else{var O=E.name;D[O]=E,F=O}return!z&&F&&(V=F),F||!z&&V},B=function($,E){if(v($))return $.clone();var C=typeof E=="object"?E:{};return C.date=$,C.args=arguments,new W(C)},L=A;L.l=I,L.i=v,L.w=function($,E){return B($,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var W=function(){function $(C){this.$L=I(C.locale,null,!0),this.parse(C)}var E=$.prototype;return E.parse=function(C){this.$d=function(z){var F=z.date,U=z.utc;if(F===null)return new Date(NaN);if(L.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var N=F.match(S);if(N){var O=N[2]-1||0,H=(N[7]||"0").substring(0,3);return U?new Date(Date.UTC(N[1],O,N[3]||1,N[4]||0,N[5]||0,N[6]||0,H)):new Date(N[1],O,N[3]||1,N[4]||0,N[5]||0,N[6]||0,H)}}return new Date(F)}(C),this.$x=C.x||{},this.init()},E.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()},E.$utils=function(){return L},E.isValid=function(){return this.$d.toString()!==p},E.isSame=function(C,z){var F=B(C);return this.startOf(z)<=F&&F<=this.endOf(z)},E.isAfter=function(C,z){return B(C)<this.startOf(z)},E.isBefore=function(C,z){return this.endOf(z)<B(C)},E.$g=function(C,z,F){return L.u(C)?this[z]:this.set(F,C)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(C,z){var F=this,U=!!L.u(z)||z,N=L.p(C),O=function(X,_){var q=L.w(F.$u?Date.UTC(F.$y,_,X):new Date(F.$y,_,X),F);return U?q:q.endOf(f)},H=function(X,_){return L.w(F.toDate()[X].apply(F.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(_)),F)},h=this.$W,k=this.$M,j=this.$D,M="set"+(this.$u?"UTC":"");switch(N){case x:return U?O(1,0):O(31,11);case d:return U?O(1,k):O(0,k+1);case c:var G=this.$locale().weekStart||0,K=(h<G?h+7:h)-G;return O(U?j-K:j+(6-K),k);case f:case b:return H(M+"Hours",0);case u:return H(M+"Minutes",1);case i:return H(M+"Seconds",2);case s:return H(M+"Milliseconds",3);default:return this.clone()}},E.endOf=function(C){return this.startOf(C,!1)},E.$set=function(C,z){var F,U=L.p(C),N="set"+(this.$u?"UTC":""),O=(F={},F[f]=N+"Date",F[b]=N+"Date",F[d]=N+"Month",F[x]=N+"FullYear",F[u]=N+"Hours",F[i]=N+"Minutes",F[s]=N+"Seconds",F[o]=N+"Milliseconds",F)[U],H=U===f?this.$D+(z-this.$W):z;if(U===d||U===x){var h=this.clone().set(b,1);h.$d[O](H),h.init(),this.$d=h.set(b,Math.min(this.$D,h.daysInMonth())).$d}else O&&this.$d[O](H);return this.init(),this},E.set=function(C,z){return this.clone().$set(C,z)},E.get=function(C){return this[L.p(C)]()},E.add=function(C,z){var F,U=this;C=Number(C);var N=L.p(z),O=function(k){var j=B(U);return L.w(j.date(j.date()+Math.round(k*C)),U)};if(N===d)return this.set(d,this.$M+C);if(N===x)return this.set(x,this.$y+C);if(N===f)return O(1);if(N===c)return O(7);var H=(F={},F[i]=n,F[u]=l,F[s]=a,F)[N]||1,h=this.$d.getTime()+C*H;return L.w(h,this)},E.subtract=function(C,z){return this.add(-1*C,z)},E.format=function(C){var z=this,F=this.$locale();if(!this.isValid())return F.invalidDate||p;var U=C||"YYYY-MM-DDTHH:mm:ssZ",N=L.z(this),O=this.$H,H=this.$m,h=this.$M,k=F.weekdays,j=F.months,M=function(_,q,Y,Z){return _&&(_[q]||_(z,U))||Y[q].slice(0,Z)},G=function(_){return L.s(O%12||12,_,"0")},K=F.meridiem||function(_,q,Y){var Z=_<12?"AM":"PM";return Y?Z.toLowerCase():Z},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:h+1,MM:L.s(h+1,2,"0"),MMM:M(F.monthsShort,h,j,3),MMMM:M(j,h),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:M(F.weekdaysMin,this.$W,k,2),ddd:M(F.weekdaysShort,this.$W,k,3),dddd:k[this.$W],H:String(O),HH:L.s(O,2,"0"),h:G(1),hh:G(2),a:K(O,H,!0),A:K(O,H,!1),m:String(H),mm:L.s(H,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:N};return U.replace(y,function(_,q){return q||X[_]||N.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(C,z,F){var U,N=L.p(z),O=B(C),H=(O.utcOffset()-this.utcOffset())*n,h=this-O,k=L.m(this,O);return k=(U={},U[x]=k/12,U[d]=k,U[w]=k/3,U[c]=(h-H)/6048e5,U[f]=(h-H)/864e5,U[u]=h/l,U[i]=h/n,U[s]=h/a,U)[N]||h,F?k:L.a(k)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return D[this.$L]},E.locale=function(C,z){if(!C)return this.$L;var F=this.clone(),U=I(C,z,!0);return U&&(F.$L=U),F},E.clone=function(){return L.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},$}(),P=W.prototype;return B.prototype=P,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",x],["$D",b]].forEach(function($){P[$[1]]=function(E){return this.$g(E,$[0],$[1])}}),B.extend=function($,E){return $.$i||($(E,W,B),$.$i=!0),B},B.locale=I,B.isDayjs=v,B.unix=function($){return B(1e3*$)},B.en=D[V],B.Ls=D,B.p={},B})})(na);var Us=na.exports;const Le=Re(Us);var ra={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(S){this[p]=+S}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var y=S.match(/([+-]|\d\d)/g),T=60*y[1]+(+y[2]||0);return T===0?0:y[0]==="+"?-T:T}(p)}],d=function(p){var S=i[p];return S&&(S.indexOf?S:S.s.concat(S.f))},w=function(p,S){var y,T=i.meridiem;if(T){for(var R=1;R<=24;R+=1)if(p.indexOf(T(R,0,S))>-1){y=R>12;break}}else y=p===(S?"pm":"PM");return y},x={A:[s,function(p){this.afternoon=w(p,!1)}],a:[s,function(p){this.afternoon=w(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:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[l,f("day")],Do:[s,function(p){var S=i.ordinal,y=p.match(/\d+/);if(this.day=y[0],S)for(var T=1;T<=31;T+=1)S(T).replace(/\[|\]/g,"")===p&&(this.day=T)}],M:[o,f("month")],MM:[l,f("month")],MMM:[s,function(p){var S=d("months"),y=(d("monthsShort")||S.map(function(T){return T.slice(0,3)})).indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(p){var S=d("months").indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function b(p){var S,y;S=p,y=i&&i.formats;for(var T=(p=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,L,W){var P=W&&W.toUpperCase();return L||y[W]||a[W]||y[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,E,C){return E||C.slice(1)})})).match(n),R=T.length,A=0;A<R;A+=1){var V=T[A],D=x[V],v=D&&D[0],I=D&&D[1];T[A]=I?{regex:v,parser:I}:V.replace(/^\[|\]$/g,"")}return function(B){for(var L={},W=0,P=0;W<R;W+=1){var $=T[W];if(typeof $=="string")P+=$.length;else{var E=$.regex,C=$.parser,z=B.slice(P),F=E.exec(z)[0];C.call(L,F),B=B.replace(F,"")}}return function(U){var N=U.afternoon;if(N!==void 0){var O=U.hours;N?O<12&&(U.hours+=12):O===12&&(U.hours=0),delete U.afternoon}}(L),L}}return function(p,S,y){y.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var T=S.prototype,R=T.parse;T.parse=function(A){var V=A.date,D=A.utc,v=A.args;this.$u=D;var I=v[1];if(typeof I=="string"){var B=v[2]===!0,L=v[3]===!0,W=B||L,P=v[2];L&&(P=v[2]),i=this.$locale(),!B&&P&&(i=y.Ls[P]),this.$d=function(z,F,U){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*z);var N=b(F)(z),O=N.year,H=N.month,h=N.day,k=N.hours,j=N.minutes,M=N.seconds,G=N.milliseconds,K=N.zone,X=new Date,_=h||(O||H?1:X.getDate()),q=O||X.getFullYear(),Y=0;O&&!H||(Y=H>0?H-1:X.getMonth());var Z=k||0,J=j||0,ue=M||0,te=G||0;return K?new Date(Date.UTC(q,Y,_,Z,J,ue,te+60*K.offset*1e3)):U?new Date(Date.UTC(q,Y,_,Z,J,ue,te)):new Date(q,Y,_,Z,J,ue,te)}catch{return new Date("")}}(V,I,D),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),W&&V!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var $=I.length,E=1;E<=$;E+=1){v[1]=I[E-1];var C=y.apply(this,v);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}E===$&&(this.$d=new Date(""))}else R.call(this,A)}}})})(ra);var Xs=ra.exports;const Zs=Re(Xs);var aa={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){return function(a,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},o.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(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(w){switch(w){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),w==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),w==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return w}});return s.bind(this)(d)}}})})(aa);var Js=aa.exports;const Qs=Re(Js);var la={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){return function(a,n,l){var o=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,w,x,b,p){var S=d.name?d:d.$locale(),y=s(S[w]),T=s(S[x]),R=y||T.map(function(V){return V.slice(0,b)});if(!p)return R;var A=S.weekStart;return R.map(function(V,D){return R[(D+(A||0))%7]})},u=function(){return l.Ls[l.locale()]},f=function(d,w){return d.formats[w]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,p,S){return p||S.slice(1)})}(d.formats[w.toUpperCase()])},c=function(){var d=this;return{months:function(w){return w?w.format("MMMM"):i(d,"months")},monthsShort:function(w){return w?w.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):i(d,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return f(d.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(w){return f(d,w)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(d){return i(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(la);var eu=la.exports;const tu=Re(eu);var oa={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){var a="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(a);if(c.isBefore(d))return 1}var w=s(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),x=this.diff(w,a,!0);return x<0?s(this).startOf("week").week():Math.ceil(x)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(oa);var nu=oa.exports;const ru=Re(nu);var ia={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})(ia);var au=ia.exports;const lu=Re(au);var sa={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(sa);var ou=sa.exports;const iu=Re(ou);var ua={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(ua);var su=ua.exports;const uu=Re(su);var ca={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Ie,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(ca);var cu=ca.exports;const fu=Re(cu);Le.extend(tu),Le.extend(Qs),Le.extend(Zs),Le.extend(ru),Le.extend(lu),Le.extend(iu),Le.extend(uu),Le.extend(fu);const fa=10;function du(e,t){return e>t&&e>fa?"horizontal":t>e&&t>fa?"vertical":""}function hu(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",w=()=>c.value==="horizontal",x=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",a.value=0};return{move:S=>{const y=S.touches[0];s.value=y.clientX-e.value,i.value=y.clientY-t.value,l.value=y.clientX,o.value=y.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-a.value,c.value||(c.value=du(u.value,f.value))},start:S=>{x(),e.value=S.touches[0].clientX,t.value=S.touches[0].clientY,a.value=Date.now()},reset:x,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:w}}const gu=[zn,Kn,Wn,Gn,Xn,ge,nr,rr,kt,lr,cr,dr,gr,pr,vr,Cr,Nr,Vr,Ir,Ar,rn,qr,Fr,Pr,zr,Wr,Yr,Ur,Ot,Qt,Xr,Zr,Jr,Qr,ea,ta],mu=new Ya(gu,[Za],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=Vr,g.Broadcast=Kt,g.BroadcastKey=ce,g.CascaderItem=Nr,g.CheckboxItem=Pr,g.Content=Gn,g.DataItemsKey=Ke,g.DateItem=dr,g.DialogItem=Ur,g.Domain=bt,g.DomainKey=ve,g.DomainProvider=ta,g.ExtIcon=Xr,g.FooterBar=Wn,g.Group=Xn,g.HeaderBar=Kn,g.HintText=kt,g.Indicator=Zr,g.InputItem=lr,g.InputNumberItem=Cr,g.Item=ge,g.Mapping=Ot,g.MoneyItem=vr,g.MoreButton=Qr,g.Page=zn,g.Price=Qt,g.PriorityPolicy=Te,g.RadioItem=Fr,g.RateItem=zr,g.RowItem=rr,g.SelectItem=cr,g.SlotItem=nr,g.SwitchItem=Wr,g.TableItem=qr,g.TableMappingColumn=Ir,g.TableRadioColumn=Ar,g.TableSetting=rn,g.Text=Jr,g.TimeItem=gr,g.TimeSelectItem=pr,g.Tour=ea,g.TreeSelectItem=Yr,g.UniqueID=er,g.ValidateSchema=Rn,g.ValidateSchemaKey=Ve,g.clearNonNumber=Ta,g.clone=Ht,g.compareTo=Mt,g.createBroadcast=mt,g.createValidateSchema=yt,g.debounce=lt,g.debounceRef=Fa,g.decimalLength=Cn,g.default=mu,g.defineBroadcast=Oa,g.defineConfigDomain=Bn,g.defineDataItem=Ln,g.defineDomain=Gt,g.defineItem=de,g.definePageState=jn,g.deleteGlobalValidator=Da,g.disabledProperty=we,g.divide=Ft,g.excludeProps=pe,g.extend=Me,g.floatData=Va,g.getGlobalValidateCheckEvents=Vn,g.getGlobalValidateResetEvents=In,g.getPageContentAreaHeight=vt,g.getPageContentAreaWidth=xt,g.getPageFooterAreaHeight=$t,g.getPageHeaderAreaHeight=St,g.getRootDomain=We,g.hasSymbol=pn,g.includeProps=Tn,g.indexOf=Na,g.installRules=qn,g.integerLength=xn,g.isArray=ha,g.isArrayLike=wn,g.isBrowser=ze,g.isDate=pa,g.isESModule=Sa,g.isEmptyString=se,g.isEqual=De,g.isFunction=_t,g.isHidden=bn,g.isInnerPage=_a,g.isMap=ga,g.isNumberString=vn,g.isObject=Ae,g.isPlainObject=Pt,g.isPromise=wa,g.isRegExp=$n,g.isSet=ma,g.isString=ya,g.isSubPage=Pa,g.isSymbol=ba,g.isWindow=yn,g.lastIndexOf=ka,g.makeArray=Ca,g.merge=Sn,g.multiply=dn,g.negate=hn,g.nextTick=va,g.numberFormat=dt,g.objectToString=mn,g.property=xe,g.raf=Ea,g.readonlyProperty=be,g.setGlobalValidateCheckEvents=Ba,g.setGlobalValidateHandler=Ra,g.setGlobalValidateMessages=La,g.setGlobalValidateResetEvents=qa,g.setGlobalValidator=Aa,g.throttle=Dn,g.toBoolean=ne,g.toNumber=oe,g.toPadding=Ee,g.toPx=le,g.toPxDesc=ae,g.toTypeString=ht,g.toValue=re,g.typeOf=gt,g.unNumberFormat=gn,g.updatePageState=Yt,g.useBroadcast=rt,g.useDomain=Oe,g.useExpose=he,g.usePageState=wt,g.usePosition=Zn,g.useRect=it,g.useTouch=hu,g.valueLength=nt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|