@fox-js/foxui 4.0.1-86 → 4.0.1-87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Yi=Object.create,Er=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Qi=Object.getOwnPropertyNames,Gi=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty,We=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ji=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Qi(n),r=0,i=a.length,u;r<i;r++)u=a[r],!Zi.call(e,u)&&u!==o&&Er(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=Xi(n,u))||l.enumerable});return e},Ye=(e,n,o)=>(o=e!=null?Yi(Gi(e)):{},Ji(n||!e||!e.__esModule?Er(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),at=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),pe=require("@fox-js/i18n");var rn=window,es=typeof window<"u";function ts(){return typeof rn<"u"?rn.requestAnimationFrame||rn.webkitRequestAnimationFrame||function(e){rn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Dr(e){es?cancelAnimationFrame(e):clearTimeout(e)}var Xe=ts();function vn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Yl(Ne(e),Ne(n)),o==1&&(l==1?e=yl(e):n=yl(n));let a=Ir(e,n);return o?o==2?"-"+Ne(a):e.length<a.length?Ne(a.substring(1)):"-"+Ne(yl(a)):Ne(a)}function yl(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Ir(n,r)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Yl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Ir(e,n){[e,n]=Yl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var Ce=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function Wt(e,n=0,o=Ce.HALF_EVEN){if(o===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Wt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Wa(a[1],r,l,o)?(l?"-":"")+bl(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let u=a[1].substring(n);return u&&Wa(u,i,l,o)&&(i=bl(i),i.length>n)?(l?"-":"")+bl(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function Wa(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!o&&l===Ce.FLOOR||o&&l===Ce.CEILING)return!1;if(l===Ce.UP||o&&l===Ce.FLOOR||!o&&l===Ce.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function bl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function xl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=qt(e),n=qt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=qt(e.replace(".","")),n=qt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,p="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let v=0;for(let S=n.length-1;S>=d&&S>=0;S--)s[S]>-1&&s[S]<e.length&&(v+=parseInt(e[s[S]--])*parseInt(n[S]));v+=u,u=Math.floor(v/10),p=v%10+p,d--}return p=qt(ns(p,r)),o==1&&(p="-"+p),p}function ns(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function qt(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 $l(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ne(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let p=e.length-d+a;e=Ne(e.substring(0,p)+"."+e.substring(p))}else a==d&&(e=Ne(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=vn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Ne(Wt(u,o-2))}function El(e,n){return e=e.toString(),n=n.toString(),n=Dl(n),vn(e,n)}function Dl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ya(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Xa(e),Xa(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=El(e,xl(n,Wt($l(e,n),0,Ce.FLOOR)));return o+l}function Xa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Qa(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Yl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var en=class fe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ne(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<r-o&&u>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Wt(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Wt(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),vn(n,o)}add(n){return new fe(vn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),El(n,o)}subtract(n){return new fe(El(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),xl(n,o)}multiply(n){return new fe(xl(this.value,n.getValue()))}static divide(n,o,l){return n=fe.validate(n),o=fe.validate(o),$l(n,o,l)}divide(n,o){return new fe($l(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),Ya(n,o)}modulus(n){return new fe(Ya(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),Qa(n,o)}compareTo(n){return Qa(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Dl(n)}negate(){return new fe(Dl(this.value))}};function qr(e,n){return en.multiply(`${e}`,`${n}`)}function Xl(e,n,o=8){return en.divide(`${e}`,`${n}`,o)}var q2=en.RoundingModes;function Il(e,n){return e=`${e}`,n=`${n}`,en.compareTo(e,n)}function Pr(e){return en.negate(e)}function Vn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let p;if(l>0){let c="",v=u.split("").reverse();for(let S=0;S<v.length;S++)c+=v[S]+((S+1)%l==0&&S+1!=v.length?a:"");s.length==0?p=`${i}${c.split("").reverse().join("")}`:p=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?p=`${i}${u}`:p=`${i}${u}.${s}`;return p}function Mr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var Je=typeof window<"u",He=Xe;function Pe(e){return e==null}var xn=Array.isArray,ls=e=>$n(e)==="[object Map]",os=e=>$n(e)==="[object Set]",je=e=>e instanceof Date,gn=e=>typeof e=="function",zr=e=>typeof e=="string",as=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",bt=e=>Ve(e)&&gn(e.then)&&gn(e.catch),Lr=Object.prototype.toString,$n=e=>Lr.call(e),rs=e=>$n(e)==="[object Object]",Rr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function is(e){return e.__esModule||Rr&&e[Symbol.toStringTag]==="Module"}var ss=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function St(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=St(a,d,s)}else s!==void 0&&(n[i]=s)}}return n}var Sl=ss?Promise.resolve():null;function us(e,...n){Sl!==null?n&&n.length>0?Sl.then(()=>{e(n)}):Sl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var cs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function kt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):cs[n]||"object"}function Fr(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Ql(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Kr(e){let n=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ur(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ds(e,n=[]){let o=n;return e!=null&&(Kr(Object(e))?Ur(o,typeof e=="string"?[e]:e):o.push(e)),o}function xe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=kt(e);if(o!==kt(n))return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let r=0;r<l.length;r++){let i=l[r],u=e[i],s=n[i];if(!xe(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],r=n[l];if(!xe(a,r))return!1}return!0}return!1}function ql(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function En(e){return ce(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function _r(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Ga(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Pl(e,n=!0,o=!0){n?e=Ga(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ga(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function fs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(xe(e,o))return!0}):n.indexOf(e)}function ms(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(xe(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function et(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}var ps=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e};function Ml(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var ot=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},_e=(e,n,o)=>Math.min(Math.max(e,n),o);function yn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function hs(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var we=Symbol.for("BroadcastKey"),Gl=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.proxy=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:o};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||ql(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...o]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):ql(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const u=Reflect.apply(r,this.proxy,[...o]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[n]=="function"){const u=Reflect.apply(i[n],i,[...o]);u!=null&&a.push(u)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const a=e.resolve,r=e.uniqueId??"",i=(...u)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...u)};e.resolve=i}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...o]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function Dn(e,n,o,l){const a=new Gl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function vs(e,n,o){const l=o;if(l[we])return l[we];const a=new Gl((0,t.inject)(we,null),o,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return l[we]=a,(0,t.provide)(we,a),(0,t.onUnmounted)(()=>{a.destroy(),l[we]=void 0}),a}function Ot(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[we]??(0,t.inject)(we,null):(0,t.inject)(we,null)}var gs=class{error(e,n){const o=n,l=n||(0,t.hasInjectionContext)()?Ot(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof o.setErrorTip=="function"&&o.setErrorTip(e)}reset(e){const n=e,o=e||(0,t.hasInjectionContext)()?Ot(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,o=e||(0,t.hasInjectionContext)()?Ot(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=o,a=o||(0,t.hasInjectionContext)()?Ot(o):null,r=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=e.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!r&&i?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(e){return e.modelValue}},Ut=new gs;function ys(e){Ut=e}function bs(e){Ut?Object.assign(Ut,e):Ut=e}function Ss(e,n){at.Schema.setValidator(e,n)}function ks(e){at.Schema.deleteValidator(e)}var jr=["blur","clear"];function ws(e){jr=e}function Wr(){return jr}var Yr=["focus","change","setValue"];function Cs(e){Yr=e}function Xr(){return Yr}function Ns(e){at.Schema.messages(e)}function Pt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function sn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Le=Symbol("ValidateSchemaKey"),Qr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=sn(Pt(this.attrRules,this.rules)),o=[];for(let a in e){let r=e[a];if(this.hasValidator(a,!0)){if(r===!1)continue;let u={type:a};r!==null&&typeof r=="object"&&Object.assign(u,r),o.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};o.push(u)}}this.attrRules=sn(o);const l=Pt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Ut;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?at.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?at.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return at.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Pt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=sn(e):this.rules=sn([e]);const o=Pt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Pt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},r=new at.Schema(o),i=this.proxy??a;return r.validate(a,{context:i}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=i),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function In(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new Qr(n,o,e)}var bn=Symbol.for("EventEmitterKey"),Gr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(a=>a===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function Ee(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Sn(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function As(e,n){const o=Ee((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function Bs(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Zl(e,n,o,l=0,a=!0){let r=n,i=0;if(a){const s=e();if(i++,s||i>o)return}const u=()=>{const s=e();i++,!(s||i>o)&&(r+=l,setTimeout(u,r))};setTimeout(u,r)}var Te=Symbol("DomainKey"),ft=Symbol("DataItemsKey"),qn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ts=new qn;function ht(){return Ts}function tt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Te]??(0,t.inject)(Te,null):(0,t.inject)(Te,null)}var kl=Symbol("OriginalDateKey");function Jl(e,n,o=[],l){const a=(0,t.getCurrentInstance)();let r=a?.proxy,i=(0,t.inject)(Te,null);i===null&&(i=ht());const u=e||n.prop||n.name;let s=new qn(u);s.parent=i;const d=y=>{r[kl]||v(y),s?.set("modelValue",y)},p=()=>s?.getForSelf("modelValue")??null,c=()=>r[kl]??null,v=y=>{const k={};St(!0,k,(0,t.toRaw)(y)),r[kl]=k};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,y=>{s?.merge(y,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&v(n.modelValue);const S=(y,k)=>{s?.set(y,k)},w=y=>s?.getForSelf(y)??null;if(r[Te]=s,(0,t.provide)(Te,s),a!==null){const y=(0,t.inject)(we,null),k=Dn(r,y,u,l);s.broadcast=k,r[we]=k,(0,t.provide)(we,k),r.broadcast=(m,A,...C)=>Reflect.apply(k.emit,k,[m,A,...C]);const f=(0,t.inject)(Le,null),b=In(r,f,{componentName:""});s.validateSchema=b,r[Le]=b,(0,t.provide)(Le,b),r[ft]=new Map,r.validate=(m=!0)=>{const A=[];let C=null;const g={deep:!1};if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;C={name:N=>N?h.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(g,h),Array.isArray(h.include)&&h.include.length>0){const N=h.include;C={name:B=>B?N.indexOf(B)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const N=h.exclude;C={name:B=>B?N.indexOf(B)===-1:!1}}else C={name:"*"}}if(C){const h=k?.emitToChildren(C,"validate",g);h&&Reflect.apply([].push,A,h)}return A.length==1?A[0]:A.length>1?Promise.all(A).then(h=>{let N=[];return h.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(N=[...N,...B.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,A=!0,C=!1)=>{if(C===!0){Reflect.ownKeys(m).forEach(g=>{let h=String(g);const N={componentName:"",fieldName:h,pureDataValidate:!0};if(s){const B=Jr(s,h,N,k,b);r[ft].set(h,B);const T=m[h];T&&B.validateSchema.setRule(T)}});return}if(A){const g=Reflect.ownKeys(m);k?.emitToChildren({name:h=>g.includes(h),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let A=null;if(m===!0)A={name:"*"};else if(Array.isArray(m)&&m.length>0){const C=m;A={name:g=>g?C.indexOf(g)!==-1:!1}}else if(m!=null&&typeof m=="object"){const C=m;if(Array.isArray(C.include)&&C.include.length>0){const g=C.include;A={name:h=>h?g.indexOf(h)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const g=C.exclude;A={name:h=>h?g.indexOf(h)===-1:!1}}else A={name:"*"}}A&&k?.emitToChildren(A,"clearValidate",!1)},r.resetFields=m=>{const A=p();if(!A)return;const C={};if(St(!0,C,c()??{}),Array.isArray(m))m.forEach(g=>{A[g]=C[g]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(g=>{A[g]=C[g]});else if(m&&Array.isArray(m.exclude)){let g=m.exclude??[];Reflect.ownKeys(C).forEach(h=>{g.includes(h)||(A[h]=C[h])})}else Object.assign(A,C);r.clearValidate(m)},r.setModelValue=(m,A)=>{if(!A||A===u)d(m);else{const C={name:A,messagingPolicy:"Once"};k?.emitToChildren(C,"setModelValue",m)}},r.getModelValue=()=>p(),r.setDomainProperty=(m,A)=>{S(m,A)},r.getDomainProperty=m=>w(m),setTimeout(function(){k?.pull()},0)}return(0,t.onUnmounted)(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Le]=void 0,(0,t.provide)(Le,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[we]=void 0,(0,t.provide)(we,null)),s?.destroy(),r[Te]=void 0,(0,t.provide)(Te,null),r[ft]&&(r[ft].clear(),r[ft]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function Zr(e,n,o=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)(Te,null);a===null&&(a=ht());let r=new qn(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,i=>{r?.merge(i,o)},{immediate:!0}):r.merge(n,o),l[Te]=r,(0,t.provide)(Te,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[Te]=void 0,(0,t.provide)(Te,null),r=null,l=null}),r}function Be(e,n,o){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=Dn(l,(0,t.inject)(we,null),a,o);l[we]=r,(0,t.provide)(we,r),l.broadcast=(p,c,...v)=>r?Reflect.apply(r.emit,r,[p,c,...v]):null;const i=(0,t.inject)(Le,null);e.fieldName=e.fieldName??a;let u=In(l,i,e);l[Le]=u,(0,t.provide)(Le,u),l.validate=(p=null)=>{if(!u)return Promise.resolve({pass:!0});const c=[];let v=!1,S=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)S=!0,v=!0;else if(p&&typeof p=="object"){const w=p,y=w.ignoreDisabled??!0,k=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;y===!0&&e.disabled===!0||k===!0&&e.readonly===!0||f===!0&&Fr(l.$el)?S=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),S=!0),v=w.deep??!1}else typeof p=="boolean"&&(v=p),S=!0;if(S){const w=u?.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:b=>b?f.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:b=>b?f.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&r){const k=r.emitToChildren(w,"validate",y);Reflect.apply([].push,c,k)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=p=>u?.setRule(p),l.setNameValidateRules=(p,c=!1)=>{const v=p[a];v&&u?.setRule(v),c&&r&&r.emitToChildren({name:S=>Reflect.ownKeys(p).includes(S)},"setNameValidateRules",p,!1)},l.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&u?.clear();let c=null;if(p===!0)c={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;c={name:S=>S?v.indexOf(S)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Array.isArray(v.include)&&v.include.length>0){const S=v.include;c={name:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const S=v.exclude;c={name:w=>w?S.indexOf(w)===-1:!1}}else c={name:"*"}}c&&r&&r.emitToChildren(c,"clearValidate",!1)};let s=new Gr(l);l[bn]=s;const d=Ee((p="validate")=>{u&&(p==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Wr()).forEach(p=>{s&&s.on(p,c=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xr()).forEach(p=>{s&&s.on(p,c=>{d("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[we]=void 0,(0,t.provide)(we,null),r=null,u?.destroy(),l[Le]=void 0,(0,t.provide)(Le,null),u=null,s?.destroy(),l[bn]=void 0,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:u,emitEvent:(p,...c)=>{s&&Reflect.apply(s.emit,s,[p,...c])},onEvent:(p,c)=>{s&&Reflect.apply(s.on,s,[c])},offEvent:(p,c)=>{s&&Reflect.apply(s.off,s,[c])}}}function Jr(e,n,o,l,a){const r={},i=n??"",u={getValue(){const p=e.getForSelf("modelValue");return p?p[i]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,i):!1}};o.fieldName=i,o.validateHandler={getValue(p){return u.getValue()}};let s=In({},a,o);r.validate=(p=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let v=!1,S=!1;if(Array.isArray(p)&&p.indexOf(i)!==-1)S=!0,v=!0;else if(p&&typeof p=="object"){const w=p;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),S=!0,v=w.deep??!1}else typeof p=="boolean"&&(v=p),S=!0;if(S&&s){const w=s.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:b=>b?f.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:b=>b?f.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&d){const k=d.emitToChildren(w,"validate",y);Reflect.apply([].push,c,k)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>s?.setRule(p),r.setNameValidateRules=p=>{const c=p[i];c&&s?.setRule(c)};let d=Dn(null,l,i,r);return(0,t.onUnmounted)(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function xt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new Gr(e);return e[bn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[bn]=void 0,n=null,e=null}),{emitEvent:(o,...l)=>{n&&Reflect.apply(n.emit,n,[o,...l])},onEvent:(o,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(o,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e)}px`:"",Vs=me;function se(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function xs(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Qe="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function zl(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=se(o.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(o.headerPadding??n.headerPadding),e.footerHeight=se(o.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(o.footerPadding??n.footerPadding),e.contentPadding=Fe(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=se(s,r):e.height=se(r)-se(i,r)-se(u,r),e.width=se(o.width??n.width??0,a)}}function ei(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=se(a.top),l.safeAreaBottom=se(a.bottom),l.safeAreaLeft=se(a.left),l.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;zl(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const i=(0,t.reactive)(l),u=e.getForParent(Qe);u&&(l.height=kn(e,u),l.width=wn(e,u),(0,t.watch)([()=>kn(e,u),()=>wn(e,u)],([d,p])=>{i.height=d,i.width=p}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,p,c=-1,v=-1,S=0,w=0])=>{zl(i,p,n,s,c,v,S,w)}),e.set(Qe,i),i}function Pn(e){return e.get(Qe)}function Mn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function zn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function kn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Mn(e,n),l=zn(e,n),a=se(n.contentPadding.top??0),r=se(n.contentPadding.bottom??0);return n.height-o-l-a-r}return 0}function wn(e,n){if(n=n??e.get(Qe),n){const o=se(n.contentPadding.left??0),l=se(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function $s(e){return!!e.getForParent(Qe)}var eo=Symbol.for("InnerPageScopeKey");function ti(e){(0,t.provide)(eo,e)}function tn(e=!1){return(0,t.inject)(eo,e)}var to=Symbol.for("AbstractPageScopeKey");function ni(e){(0,t.provide)(to,e)}function nn(e=!1){return(0,t.inject)(to,e)}function li(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function oi(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ai(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Ge=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function un(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=Ge.Near,l){const a=tt();return a==null?e:o===Ge.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(un(s,l))return s}const i=e.value;return un(i,l)?i:null}):(0,t.computed)(()=>{const r=e.value;if(un(r,l))return r;const i=a.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(un(s,l))return s}return null})}function Ln(e){return Ae(e,"readonly",Ge.Near)}function Rn(e){return Ae(e,"disabled",Ge.Near)}function ri(e){return Ae(e,"browse",Ge.Near)}function Ie(e){const n=(0,t.ref)(null),o=Rn((0,t.computed)(()=>n.value??e.disabled)),l=(0,t.ref)(null);return{innerDisabled:n,disabled:o,innerReadonly:l,readonly:Ln((0,t.computed)(()=>l.value??e.readonly)),browse:ri((0,t.computed)(()=>e.browse))}}function De(e,n="modelValue",o=null,l){const a=(0,t.toRef)(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const i=(0,t.ref)(r);return(0,t.watch)(a,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}var ii=new Map,Cn=new Map,Ll=null;function Es(e){Ll=e}function si(e,n,o){if(o){let l=Cn.get(o);l||(l=new Map,Cn.set(o,l)),l.set(e,n)}else ii.set(e,n)}function nt(e,n,o){!o&&Ll&&(o=Ll(e)??void 0);let l=null;if(o){let a=Cn.get(o);a&&(l=a.get(n))}return l||(l=ii.get(n)),l}function Ds(e,n){for(let o in e){const l=e[o];si(o,l,n)}}function Is(e){Cn.delete(e)}function qs(){return{top:0,left:0,bottom:0,right:0}}function Ps(){return Je?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ms(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return yn(o)}var zs=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const a=Ms(l.name,n);e.component(a,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=Ee(()=>{const r={...l};this.updateLayout(r,o)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,o)}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,a=St({},qs(),e.safeAreaInset),r=Ps(),i=St({},r.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",a),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",i),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Es(e)}setAPI(e,n,o){si(e,n,o)}getAPI(e,n,o){return nt(e,n,o)}batchSetAPI(e,n){Ds(e,n)}clearScopeAPI(e){Is(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=yn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(a,r)=>{let i=l.name;r?.componentPrefix&&(i=`${r.componentPrefix}-${l.baseName}`,i=yn(i)),a.component(i,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Ls=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(zr(l)?o=document.querySelector(l):o=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};gn(n.wrapper)?r=n.wrapper(o,a):r=n.wrapper;const i=(0,t.createApp)(r,e),u=n.components;return u&&u.forEach(s=>{i.use(s)}),o.appendChild(a),{instance:i.mount(a),unmount:()=>{i.unmount(),o.removeChild(a)}}},ui=(e,n)=>e?(0,t.h)(e,n):"";function be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var he={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},ci={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},di={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},fi=[];for(const e in di)fi.push(e);var Rs={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Fs=(e,n)=>({inheritAttrs:!0,props:{...he,...ci,...Rs},setup(o,{slots:l}){const a=!!nn(!1),r=tn(!1),i=Jl(o.name,o);if(i){const c=ei(i,o);be({getPageContentHeight:()=>kn(i,c),getPageContentWidth:()=>wn(i,c),getPageHeaderHeight:()=>Mn(i,c),getPageFooterHeight:()=>zn(i,c)}),c&&r&&(c.contentHeight="100%")}const u=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),s=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),p=(c,v=!1)=>{const S=d?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(c,!0,v)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,v],[S,w])=>{if(c&&S){const y=(0,t.toRaw)(S),k=(0,t.toRaw)(c),f=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(b=>{f.includes(b)||(k[b]=[])}),p(k)}if(v&&w){const y=(0,t.toRaw)(w),k=(0,t.toRaw)(v),f=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(b=>{f.includes(b)||(k[b]=[])}),p(k,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&p((0,t.toRaw)(o.rules)),o.pureDataRules&&p((0,t.toRaw)(o.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:u.value,style:s.value},[l?.default?.()])}}),{componentName:Os,create:Ks,scope:Us}=J("page"),Hs=Ks(Fs(Os,Us)),no=Hs;function lo(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}var mi={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(mi,e)}function On(){return mi}var js=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=li(!1),u=tn(!1),s=i?null:tt(),d=s?Pn(s):null,p=On(),c=e,v=(0,t.computed)(()=>{const $={[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed};return u||($[`${c}--safe-area-inset-top`]=a.safeAreaInsetTop),$}),S=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),w=Pe(a.height)?null:se(a.height),y=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return $;if(s&&d){const P=Fe(a.padding??d.headerPadding);if(Object.assign($,P),Pe(w)||(d.headerHeight=w),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const M=se(P.top??0);$.top=$.safeAreaTop+M,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Pe(w)||($.height=w),a.padding){const P=Fe(a.padding);Object.assign($,P)}return $}),k=(0,t.ref)(null),f=()=>d&&k.value&&!Ql(k.value)?(l||(d.headerAllHeight=lo(k.value).height),d.headerMounted=!0,!0):!1,b=Ee(f,120);let m=null;(0,t.onMounted)(()=>{i||d&&(Zl(f,50,5,50,!0),window.ResizeObserver&&k.value&&(m=new window.ResizeObserver(b),m.observe(k.value)))}),(0,t.onUnmounted)(()=>{i||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const A=(0,t.computed)(()=>{const $={};return i||(y.value.height!==null&&y.value.height!==void 0&&($.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&($.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&($.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&($.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&($.paddingBottom=`${y.value.bottom}px`)),$}),C=(0,t.computed)(()=>{const $=y.value?.height;return Pe($)||$<0?!0:$>0});function g(){r.emit("back")}function h(){r.emit("click-title")}function N(){r.emit("click-right")}function B(){r.emit("click-right-text")}const T=()=>{if(!a.leftShow)return null;const $=[];if(r.slots.left)$.push(r.slots.left());else{if(r.slots.leftIcon){const P=(0,t.h)("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);$.push(P)}else{const P=a.leftIcon??p.headerbar.Left??o,M=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(P)]);$.push(M)}if(a.leftText){const P=(0,t.h)("view",{class:"left-text",onClick:g},[a.leftText]);$.push(P)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},V=()=>{if(!a.rightShow)return null;const $=[];if(r.slots.right)$.push(r.slots.right());else{if(a.rightText){const P=(0,t.h)("view",{class:"right-text",onClick:B},[a.rightText]);$.push(P)}if(r.slots.rightIcon){const P=(0,t.h)("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);$.push(P)}else if(a.rightIcon){const P=(0,t.h)("view",{class:"right-icon",onClick:N},[(0,t.h)(a.rightIcon)]);$.push(P)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},U=()=>{if(!a.titleShow)return null;const $=[],P=r.slots.default?r.slots.default():null;if(P)$.push(P);else{if(a.title){const M=(0,t.h)("view",{class:"title-text"},[a.title]);$.push(M)}if(r.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:h},[r.slots.titleIcon()]);$.push(M)}else if(a.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:h},[(0,t.h)(a.titleIcon)]);$.push(M)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},W=()=>{const $=[],P=r.slots.bottom?r.slots.bottom():null;return P&&$.push(P),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(i||!C.value)return null;const $=[];if(r.slots.all)$.push(r.slots.all());else{const P=[],M=T();M&&P.push(M);const q=U();q&&P.push(q);const O=V();if(O&&P.push(O),P.length>0){const I=(0,t.h)("view",{class:S.value},P);$.push(I)}const H=W();H&&$.push(H)}return $.length===0?null:(0,t.h)("view",{class:v.value,style:A.value,ref:k},$)}}}),{componentName:Ws,create:Ys,scope:Xs}=J("header-bar"),Qs=Ys(js(Ws,Xs,oe.Left,!1)),oo=Qs;function Gs(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=oi(!1),i=tn(!1),u=r?null:tt(),s=u?Pn(u):null,d=e,p=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return i||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),c=Pe(l.height)?null:se(l.height),v=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(u&&s){const A=Fe(l.padding??s.footerPadding);if(Object.assign(m,A),Pe(c)||(s.footerHeight=c),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const C=se(A.bottom??0);m.bottom=m.safeAreaBottom+C,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Pe(c)||(m.height=c),l.padding){const A=Fe(l.padding);Object.assign(m,A)}return m}),S=(0,t.computed)(()=>{const m=v.value?.height;return Pe(m)||m<0?!0:m>0}),w=(0,t.ref)(null),y=()=>s&&w.value&&!Ql(w.value)?(o||(s.footerAllHeight=lo(w.value).height),s.footerMounted=!0,!0):!1,k=Ee(y,120);let f=null;(0,t.onMounted)(()=>{r||s&&(Zl(y,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(k),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||s&&(s.footerMounted=!1,f&&(f.disconnect(),f=null))});const b=(0,t.computed)(()=>{const m={};return r||(v.value.height!==null&&v.value.height!==void 0&&(m.height=me(v.value.height)),v.value.top!==null&&v.value.top!==void 0&&(m.paddingTop=me(v.value.top)),v.value.left!==null&&v.value.left!==void 0&&(m.paddingLeft=me(v.value.left)),v.value.right!==null&&v.value.right!==void 0&&(m.paddingRight=me(v.value.right)),v.value.bottom!==null&&v.value.bottom!==void 0&&(m.paddingBottom=me(v.value.bottom))),m});return()=>{if(r||!S.value)return null;const m=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:w,class:p.value,style:b.value},m)}}}}var{componentName:Zs,create:Js,scope:eu}=J("footer-bar"),tu=Js(Gs(Zs,eu,!1)),ao=tu;function nu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=ai(!1),i=tn(!1),u=r?null:tt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?Pn(u):null,p=(0,t.computed)(()=>{const y={};if(r)return y;if(u&&d){if(o.padding){const h=Fe(o.padding);Object.assign(d.contentPadding,h)}const k=Mn(u,d),f=zn(u,d);let b="";d.contentHeight?b=`${d.contentHeight}`:b=`${d.height}px`,console.debug("[content]page height:",b),console.debug("[content]header height:",k),console.debug("[content]footer height:",f),console.debug("[content]padding:",d.contentPadding),y.height=b;let m=se((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||k>0)&&(m=m<0?0:m,y.paddingTop=`${k+m}px`);let A=se((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(A>=0||f>0)&&(A=A<0?0:A,y.paddingBottom=`${f+A}px`);const C=se((d&&d.contentPadding&&d.contentPadding.left)??-1);C>=0&&(y.paddingLeft=`${C}px`);const g=se((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(y.paddingRight=`${g}px`),y}if(o.padding){const k=Fe(o.padding);k.left&&(y.paddingLeft=`${k.left}px`),k.top&&(y.paddingTop=`${k.top}px`),k.right&&(y.paddingRight=`${k.right}px`),k.bottom&&(y.paddingBottom=`${k.bottom}px`)}return y}),c=(0,t.ref)(null),v=()=>{if(d&&c.value){const y=Fn(c.value);d.contentInnerHeight=y.height,d.contentInnerWidth=y.width}},S=Ee(v,120);let w=null;return(0,t.onMounted)(()=>{i||r||(requestAnimationFrame(v),window.ResizeObserver&&c.value&&(w=new window.ResizeObserver(S),w.observe(c.value)))}),(0,t.onUnmounted)(()=>{i||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(o.tag??"view",{...a,ref:c,class:s.value,style:p.value},l)}}}var{componentName:lu,create:ou,scope:au}=J("content"),ru=ou(nu(lu,au)),ro=ru,wt="GroupStateKey",pi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(pi,!1)}function Un(e=!0){(0,t.provide)(pi,e)}function iu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Pe(l)||(e[o]=l)})}function su(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};iu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(wt,l),l}function wl(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(wt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const p=se(r),c=se(i);u||(u=d.type??"grid");const v=()=>{const S=n===""||n===-1,w=se(n);let y=de(o);const k=se(l);if(!S){let m=(w-(y-1)*k)/y;for(;c!==-1&&m>c;)y++,m=(w-(y-1)*k)/y;for(;p!==-1&&y>1&&m<p;)y--,m=(w-(y-1)*k)/y}let f=!1;const b=s.layout;b.value.width=n,b.value.column!==y&&(b.value.column=y,f=!0),b.value.gutter!==k&&(b.value.gutter=k,f=!0),b.value.type!==u&&(b.value.type=u,f=!0),f&&(0,t.triggerRef)(b)};if(a)v();else{const S=++s.passport;setTimeout(()=>{S===s.passport&&v()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.order}function Za(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function jn(e,n,o=1,l=0,a){const r={};let i=0;a?i=se(a):i=Za(n.column,o),i>0&&(r.width=`${i}%`);const u=Za(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=se(n.gutter)/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function Wn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let a=de(o);if(a===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=de(l)%n.column;let i=(e.index+r)%n.column,u=i+a;return u>n.column?(i=0,u=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var hi=Symbol("RollingStateKey");function uu(e){(0,t.provide)(hi,e)}function cu(){return(0,t.inject)(hi,null)}function Rl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function du(e){let n=Rl(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Rl(o),document.body.removeChild(o)}return n}function fu(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const i=(l-(a-1)*r)/a;return i>0?`${i}px`:"1fr"}function vi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...vi(o.children)):n.push(o)}),n}function mu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yn(e){function n(){return vi(e?.()??[]).filter(mu)}return{getChildren:n}}var pu={...he,...ci,...di};function hu(e,n,o){return{props:pu,emits:["update:collapse","header-click"],setup(l,a){const r=Jl(l.prop??l.name,l,fi),i=su(r,{type:l.type}),u=Kn();Un(!0);const s=l.rollingDisplay?cu():null,d=(0,t.ref)(null),p=(0,t.computed)(()=>l.rollingDisplay?s&&!s.disabled:!1),c=(0,t.computed)(()=>u&&r?Hn(r,!0).value:null),v=(0,t.getCurrentInstance)(),S=(z,R=!1)=>{const D=v?.proxy;D&&typeof D.setNameValidateRules=="function"&&D.setNameValidateRules(z,!0,R)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([z,R],[D,x])=>{if(z&&D){const F=(0,t.toRaw)(D),j=(0,t.toRaw)(z),ee=j?Reflect.ownKeys(j):[];(F?Reflect.ownKeys(F):[]).forEach(le=>{ee.includes(le)||(j[le]=[])}),S(j)}if(R&&x){const F=(0,t.toRaw)(x),j=(0,t.toRaw)(R),ee=j?Reflect.ownKeys(j):[];(F?Reflect.ownKeys(F):[]).forEach(le=>{ee.includes(le)||(j[le]=[])}),S(j,!0)}},{deep:!0});const w=e,y=(0,t.computed)(()=>{const z={};if(z.height=P.value,l.width)l.width!=="auto"&&(z.width=me(l.width));else{const R=u?_n(r,!0):null;if(c.value&&R){if(c.value.type==="grid"){const D=Wn(R,c.value,l.span,l.offset);Object.assign(z,D)}else if(c.value.type==="flow"){const D=jn(R,c.value,l.span,l.offset,l.width);Object.assign(z,D)}}}return z}),k=(0,t.computed)(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${w}--${z}`]:!0,[`${w}--${z}-justify-${l.justify}`]:!0,[`${w}--${z}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${z}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(i.layout.value.type==="grid"){let z="";if(l.columnWidth)z=`repeat(auto-fill, ${l.columnWidth})`;else{const R=fu(N.value,i.layout.value.column,i.layout.value.gutter);z=`repeat(${i.layout.value.column}, ${R})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":z}}}),b=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),A=(0,t.computed)(()=>u||p.value?!0:Se(l.isWrap)),C=[],g=z=>{C.push(z)},h=()=>{let z=C.length;C.splice(0,z)},N=(0,t.ref)(-1),B=z=>{const R=Fn(z).width;R>0&&R!==N.value&&(N.value=R)};wl(r,N.value,m.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([N,m,b],([z,R,D])=>{i.order.index=0,wl(r,z,R,D,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),V=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),U=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),W=(0,t.ref)(),$=(0,t.ref)(),P=(0,t.computed)(()=>q.value||me(l.height)||""),M=(0,t.ref)(!1),q=(0,t.ref)(""),O=(0,t.ref)(!1);let H=-1;const I=(z,R=!0)=>{const D=W.value;if(D&&M.value!==z){if(H=H<=0?du(D):H,O.value=!0,R)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",z||(q.value="",O.value=!1)},z){let x=0;l.collapseHeight?x=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(x=$.value.offsetHeight),q.value=`${H}px`,(0,t.nextTick)(()=>{q.value=`${x}px`})}else q.value=`${H}px`;else if(z){let x=0;l.collapseHeight?x=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(x=$.value.offsetHeight),q.value=`${x}px`}else O.value=!1,q.value=`${H}px`;M.value=z,a.emit("update:collapse",z)}};(0,t.watch)(()=>l.collapse,z=>{I(z)});const G=z=>{a.emit("header-click",z)},te=()=>{_()},_=z=>{z=z??!M.value,I(z)};be({toggleCollapse:_,doLayout:()=>{C[0]&&(B(C[0]),wl(r,N.value,m.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Y=null,Z=!0;const E=z=>{if(l.rules&&S((0,t.toRaw)(l.rules)),l.pureDataRules&&S((0,t.toRaw)(l.pureDataRules),!0),!!Je&&(z&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(C)&&C.length>0)){const R=C[0];if(B(R),window.ResizeObserver){const D=Ee(()=>B(R),120);Y=new window.ResizeObserver(D),Y.observe(R)}}},L=()=>{Y?.disconnect(),Y=null},X=!p.value||s?.acquire();X&&(d.value=p.value?!0:null),(0,t.onMounted)(()=>{if(X&&(E(Z),Z=!1),p.value&&s){let z=null,R=s.initialHeight;s.observe(W.value,D=>{if(D!==d.value)if(D)d.value=!0,M.value||(q.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(E(Z),Z=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!M.value)if(Z)q.value=s.initialHeight;else{let x=Rl(W.value);x<=0?q.value=R:(q.value=`${x}px`,R=q.value)}Z||L()}})}}),(0,t.onUnmounted)(()=>{Y?.disconnect(),s&&s.unobserve(W.value)});const Q=(z="right")=>{const R=[];if(T.value){const F=(0,t.h)("span",{class:V.value},[T.value]);R.push(F)}const D={class:U.value},x=(0,t.h)(l.collapseIcon??o,D);return R.push(x),R.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:te},R):null},ne=(z,R,D,x)=>{const F={...k.value};if(R===0&&(F[`${w}__first`]=!0),D>=x-1&&(F[`${w}__last`]=!0),A.value===!1){const j=a.attrs.class;j&&(F[`${j}`]=!0)}return(0,t.h)("div",{ref:g,key:`${R}`,class:F,style:f.value},z)};return()=>{const z=l.prop??l.name;if(p.value&&d.value!==!0)return(0,t.h)(l.tag||"div",{ref:W,prop:z,class:{[`${w}`]:!0,"is-collapse":O.value},style:y.value},[]);i.order.index=0;const R=[];let D=0;if(a.slots.header){const ee=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:G},[a.slots.header()]);R.push(ee)}else{const ee=[],le=l.collapsePosition==="left";if(le&&l.showCollapse){const ie=Q("left");ie&&ee.push(ie)}if(l.title||a.slots.title){if(l.showMark){const ie={class:{[`${w}__header-mark`]:!0}};l.markColor&&(ie.style={background:l.markColor});const ue=(0,t.h)("div",ie);ee.push(ue)}if(a.slots.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);ee.push(ie)}else if(l.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);ee.push(ie)}}if(a.slots.toolbar&&ee.push(a.slots.toolbar()),!le&&l.showCollapse){const ie=Q("right");ie&&ee.push(ie)}if(ee.length>0){const ie=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:G},ee);R.push(ie)}}h();const{getChildren:x}=Yn(a.slots.default),F=x(),j=i.layout.value.type;if(j==="grid"){const ee=ne(F,D++,0,F.length);R.push(ee)}else if(j==="flow"){const ee=ne(F,D++,0,F.length);R.push(ee)}else for(let ee=0;ee<F.length;ee++){const le=F[ee],ie=ne([le],D++,ee,F.length);R.push(ie)}return A.value?(0,t.h)(l.tag||"div",{ref:W,prop:z,class:{[`${w}`]:!0,"is-collapse":O.value},style:y.value},[R]):R}}}}var{componentName:vu,create:gu,scope:yu}=J("group"),bu=gu(hu(vu,yu,oe.RectUp)),io=bu;function Su(e){return e===window}var ku=/matrix\((.+)\)/,so=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Su(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,u=0,s=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const p=ku.exec(d);if(p){let c=p[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}},wu=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},Cu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a||(a=new wu,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}},Ht=new Cu,gi={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Nu,create:Au}=J("price"),Bu=Au({props:{...gi},setup(e){const n=(0,t.computed)(()=>({[Nu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":Vn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),ae=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},Tu=["innerHTML"],Vu=["innerHTML"];function xu(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Tu)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vu)):(0,t.createCommentVNode)("",!0)],2)}var Xn=ae(Bu,[["render",xu]]),{componentName:Cl,create:$u}=J("hint-text"),Eu=$u({components:{Price:Xn},props:{...gi,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(V,U,W,$,P,M)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,H=V.split("-");let I=[];H[0]==="top"?I=["top","bottom","right","left"]:H[0]==="bottom"?I=["bottom","top","right","left"]:H[0]==="left"?I=["left","top","bottom","right"]:H[0]==="right"&&(I=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},te=[];for(let _=0;_<I.length;_++){const K=I[_];if(te[0]=K,H[1]&&(te[1]=H[1]),K==="top"){const Y=U.y-M-e.arrowSize-e.offset;if(Y>=0){G.top=Y;let Z=0;H[1]==="start"?Z=U.x:H[1]==="end"?Z=U.x+W-P:Z=U.x+W/2-P/2;const E=q-Z-P;E<0?(Z+=E,c.value=-E):c.value=0,G.left=Z<0?0:Z;break}}else if(K==="bottom"){const Y=U.y+$+e.arrowSize+e.offset;if(Y+M<=O){G.top=Y;let Z=0;H[1]==="start"?Z=U.x:H[1]==="end"?Z=U.x+W-P:Z=U.x+W/2-P/2;const E=q-Z-P;E<0?(Z+=E,c.value=-E):c.value=0,G.left=Z<0?0:Z;break}}else if(K==="left"){const Y=U.x-P-e.arrowSize-e.offset;if(Y>=0){G.left=Y;let Z=0;H[1]==="start"?Z=U.y:H[1]==="end"?Z=U.y+$-M:Z=U.y+$/2-M/2,G.top=Z<0?0:Z;break}}else if(K==="right"){const Y=U.x+W+e.arrowSize+e.offset;if(Y+P<=q){G.left=Y;let Z=0;H[1]==="start"?Z=U.y:H[1]==="end"?Z=U.y+$-M:Z=U.y+$/2-M/2,G.top=Z<0?0:Z;break}}}return{bestPlacement:te.join("-"),bestInsetRect:G}},p=(V,U,W=10)=>{if(!Je||U===!1||!V)return;l.value=so(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=s.value.offsetHeight,P=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:q}=d(e.placement,l.value,a.value,r.value,P,$);i.value=M,o.value=q,u.value=!0},c=(0,t.ref)(0),v=Ee(()=>{p(e.message,e.visible)},10),S=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,V=>{S.value=V});const w=(0,t.computed)(()=>S.value&&y.value),y=(0,t.ref)(!0),k=Ee(V=>{const U=V[0];U&&(y.value=U.isIntersecting)},10),f=new IntersectionObserver(k);(0,t.watch)([()=>e.message,()=>e.visible],([V,U])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ht.watch(e.reference,v),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ht.unwatch(e.reference,v),f.unobserve(e.reference),f.disconnect()});const b=(0,t.computed)(()=>{const V={[Cl]:!0};return i.value.startsWith("top")?V["is-top"]=!0:i.value.startsWith("right")?V["is-right"]=!0:i.value.startsWith("bottom")?V["is-bottom"]=!0:i.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),m=(0,t.computed)(()=>{const V={};return o.value.top!==null&&(V.top=`${o.value.top}px`),o.value.right!==null&&(V.right=`${o.value.right}px`),o.value.bottom!==null&&(V.bottom=`${o.value.bottom}px`),o.value.left!==null&&(V.left=`${o.value.left}px`),e.autoFit&&(V["min-width"]=`${a.value}px`),V["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),A=(0,t.computed)(()=>{const V=[`${Cl}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),C=(0,t.computed)(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),g=(0,t.computed)(()=>({[`${Cl}__arrow`]:!0})),h=(0,t.computed)(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,i.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="top-start"?(V.left=`${e.arrowOffset+c.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(V.right=`${e.arrowOffset-c.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(V.left=`${e.arrowOffset+c.value}px`,V.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(V.right=`${e.arrowOffset-c.value}px`,V.top=`-${e.arrowSize}px`):i.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),N=(0,t.computed)(()=>w.value&&e.closeOnClick),B=(0,t.computed)(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:w,tipRef:s,classes:b,styles:m,textClasses:A,textStyles:C,arrowClasses:g,arrowStyles:h,overlayShow:N,overlayStyle:B,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),Du=["innerHTML"];function Iu(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Du))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var yi=ae(Eu,[["render",Iu]]),Qn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Fl={},qu=new Qn,vt=new Map,Nn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}vt.clear()}},Pu=e=>{e.unmount=Nn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);return o?e={...Fl,...o,...e}:e={...Fl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(yi,e),n),e.id}},Mu=e=>{e.unmount=Nn;let n=e.id??`hinttext_${qu.get()}`;e={...Fl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(yi,e),o),document.body.appendChild(o),n},zu=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},$t={show(e,n,o={},l=!0){zu(n);const a=o.id;return a&&vt.has(a)?Pu({...o,message:n,reference:e}):(l&&Nn(),Mu({...o,message:n,reference:e}))},hide(e){Nn(e)},install(e){e.config.globalProperties.$hintText=$t}};function Lu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...he,...ge},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Be({componentName:e,validate:!1},i);const u=tt(),s=Kn();Un(!1);const d=(0,t.computed)(()=>s&&u?Hn(u,!1).value:null),p=e,c=(0,t.ref)(null),v=(0,t.computed)(()=>{const x={[p]:!0,[`${p}__gutter`]:d.value&&d.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:Se(a.hasBorder)};if(x[a.errorMarkClass]=!!M.value,x[a.warnMarkClass]=!!$.value,x[a.infoMarkClass]=!!U.value,typeof c.value=="function"){const F=c.value(i);x[F]=!0}else if(typeof c.value=="string"){const F=c.value;x[F]=!0}return x}),S=(0,t.ref)(null),w=(0,t.computed)(()=>{const x={};if(a.width)a.width!=="auto"&&(x.width=me(a.width));else{const F=s&&u?_n(u,!1):null;if(d.value&&F){if(d.value.type==="grid"){const j=Wn(F,d.value,a.span,a.offset);Object.assign(x,j)}else if(d.value.type==="flow"){const j=jn(F,d.value,a.span,a.offset,a.width);Object.assign(x,j)}}}if(typeof S.value=="function"){const F=S.value(i);F&&Object.assign(x,F)}else if(S.value&&typeof S.value=="object"){const F=S.value;Object.assign(x,F)}return x}),y=(0,t.ref)(null),k=(0,t.computed)({get:()=>y.value??Se(a.isRequired),set:x=>{y.value=x}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",b=Ae((0,t.toRef)(a,"labelPosition"),"labelPosition",Ge.Near),m=(0,t.computed)(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),A=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${m.value}`]:!0})),C=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),g=Ae((0,t.toRef)(a,"labelWidth"),"labelWidth",Ge.Near),h=(0,t.computed)(()=>g&&g.value?{width:me(g.value)}:{}),N=(0,t.computed)(()=>({"label--string":!0,"label--required":k.value})),B=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),T=(0,t.computed)(()=>({...a.contentStyle})),V=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(x){k.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x},setCustomClassName(x){c.value=x},setCustomStyle(x){S.value=x}});const U=(0,t.computed)(()=>a.infoTip||V.infoTip),W=(0,t.computed)(()=>a.infoIcon||V.infoIcon),$=(0,t.computed)(()=>a.warnTip||V.warnTip),P=(0,t.computed)(()=>a.warnIcon||V.warnIcon),M=(0,t.computed)(()=>a.errorTip||V.errorTip),q=(0,t.computed)(()=>a.errorIcon||V.errorIcon),O=(0,t.computed)(()=>M.value?"error":$.value?"warn":U.value?"info":""),H=()=>O.value.length>0,I=(0,t.computed)(()=>O.value==="error"?M.value:O.value==="warn"?$.value:O.value==="info"?U.value:""),G=(0,t.computed)(()=>O.value==="error"?q.value:O.value==="warn"?P.value:O.value==="info"?W.value:null),te=(0,t.computed)(()=>{const x={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&a.errorClass?x[`${a.errorClass}`]=!0:O.value==="warn"&&a.warnClass?x[`${a.warnClass}`]=!0:O.value==="info"&&a.infoClass&&(x[`${a.infoClass}`]=!0),x}),_=(0,t.computed)(()=>{const x={};return b&&b.value==="top"||!f()?x["padding-left"]="0px":g&&g.value&&(x["padding-left"]=me(g.value)),x}),K=(0,t.ref)();let Y="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([x,F,j,ee])=>{K.value&&(x&&!ce(F)?Y?o.show(K.value,F,{...ee,id:Y,type:j},!0):Y=o.show(K.value,F,{...ee,type:j},!0):o.hide(Y))});let Z=null;const E=()=>{Z||!K.value||(Z=new IntersectionObserver(x=>{let F=!1;for(let j of x)if(j.intersectionRatio>0){F=!0,F&&r.emit("appear",j);break}F||r.emit("disappear")}),Z.observe(K.value))},L=()=>{!Z||!K.value||(Z.unobserve(K.value),Z=null)};(0,t.watch)(()=>Se(a.appearListen),x=>{x?E():L()}),(0,t.onMounted)(()=>{Se(a.appearListen)&&E()}),(0,t.onUnmounted)(L);const X=()=>{if(!f())return null;const x=[],F=r.slots?.label?.()??a.label,j=(0,t.h)("div",{class:N.value},[F]);if(x.push(j),r.slots.fixedPreTip){const ee=r.slots.fixedPreTip();x.push(ee)}return(0,t.h)("div",{class:C.value,style:h.value},x)},Q=()=>{const x=[];if(r.slots.prepend){const F=r.slots.prepend();x.push(F)}if(r.slots.default){const F=r.slots.default();x.push(F)}if(r.slots.append){const F=r.slots.append();x.push(F)}if(r.slots.fixedTip){const F=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);x.push(F)}return(0,t.h)("div",{ref:K,class:B.value,style:T.value},x)},ne=()=>{const x=G.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[x()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(x)]):null},z=()=>{const x=I.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[x()]):(0,t.h)("div",{class:"fox-item__tip--text"},[x]):null},R=()=>{if(!H())return null;const x=[],F=ne();F&&x.push(F);const j=z();return j&&x.push(j),(0,t.h)("div",{class:te.value,style:_.value},x)},D=()=>r.slots?.hide?.()??null;return()=>{const x=[],F=[],j=X();j&&F.push(j);const ee=Q();ee&&F.push(ee);const le=(0,t.h)("div",{class:A.value},F);x.push(le);const ie=R();ie&&x.push(ie);const ue=D();return ue&&x.push(ue),(0,t.h)("div",{class:v.value,style:w.value,prop:a.prop},x)}}}}var{componentName:Ru,create:Fu,scope:Ou}=J("item"),Ku=Fu(Lu(Ru,Ou,$t,!1)),Et=Ku,bi={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Uu(e,n){return{props:bi,setup(o,l){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=tt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=me(o.width));else if(u&&i){const p=Hn(i,!1),c=_n(i,!1);if(p.value&&c){if(p.value.type==="grid"){const v=Wn(c,p.value,o.span,o.offset);Object.assign(d,v)}else if(p.value.type==="flow"){const v=jn(c,p.value,o.span,o.offset,o.width);Object.assign(d,v)}}}return o.gutter&&(d.gap=me(o.gutter)),d});return()=>{const d=[];if(l.slots.default){const p=l.slots.default();if(o.divide)for(let c=0;c<p.length;c++){if(c>0){const v=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});d.push(v)}d.push(p[c])}else Reflect.apply([].push,d,p)}return(0,t.h)("div",{class:r.value,style:s.value},d)}}}}var{componentName:Hu,create:_u,scope:ju}=J("row-item"),Wu=_u(Uu(Hu,ju)),Gn=Wu,Yu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Xu(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Qu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Gu(e,n,o,l=!1){return{props:{...Qu},emits:["click"],setup(a,r){const i=(0,t.ref)(null),u=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(m[`${e}--${a.type??"default"}`]=!0),a.size&&(m[`${e}--${a.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},A=a.textColor??a.color;return A&&(m.color=A),m}),d=(m,A)=>{let C=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const g=a.highlightFilter;m.indexOf(g)!==-1&&(A.innerHTML=m.replace(new RegExp(g,"g"),`<span>${g}</span>`),A.class["is-highlight"]=!0,C=(0,t.h)(a.tag,A))}else if(typeof a.highlightFilter=="function"){const g=a.highlightFilter(m);g&&(A.innerHTML=g,A.class["is-highlight"]=!0,C=(0,t.h)(a.tag,A))}return C},p=m=>{r.emit("click",m)};let c="";const v=()=>{const m=i.value;if(!m)return;const A=m.clientWidth;Xu(m,C=>{const g=m.innerHTML??"";ce(g)||C<A||(c?o?.show(m,g,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(m,g,{type:"text",showArrow:a.showArrow},!0)??"")})},S=()=>{c&&o?.hide(c)};let w=null;const y=m=>{w||(w=setTimeout(()=>{v(),w=null},a.showAfter??0))},k=m=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{S()},a.hideAfter??0)},f=()=>{const m=i.value;m&&(m.addEventListener("mouseover",y),m.addEventListener("mouseleave",k))},b=()=>{const m=i.value;m&&(m.removeEventListener("mouseover",y),m.removeEventListener("mouseleave",k))};return(0,t.onMounted)(()=>{!Se(a.showOverflowTooltip)||!o||f()}),(0,t.onBeforeUnmount)(()=>{!Se(a.showOverflowTooltip)||!o||b()}),()=>{const m={onClick:p,class:u.value,style:s.value,ref:i};let A=null;if(Se(a.numberFormat)&&typeof r.slots.default=="function"){const g=r.slots.default();if(Array.isArray(g)&&g.length===1){const h=g[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const N=de(a.digits),B=de(a.decimalLength),T=Se(a.autoPadding);let V=`${g[0].children}`,U=V.split("").reverse().join("");U=Vn(U,B,T,N,a.separator),V=U.split("").reverse().join(""),a.highlightFilter!==void 0&&(A=d(V,m)),A||(m.innerHTML=V,A=(0,t.h)(a.tag,m))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const g=r.slots.default();if(Array.isArray(g)&&g.length===1){const h=g[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const N=`${g[0].children}`;A=d(N,m),A||(m.innerHTML=N,A=(0,t.h)(a.tag,m))}}}A||(A=(0,t.h)(a.tag,m,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return A;const C=[];if(r.slots.mark){const g={[`${e}__mark-wrap`]:!0};a.type&&(g[`${e}__mark-wrap--${a.type}`]=!0);const h={},N=a.color;N&&(h.color=N);const B=(0,t.h)("view",{class:g,style:h},{default:r.slots.mark});C.push(B)}else{const g={[`${e}__mark`]:!0};a.type&&(g[`${e}__mark--${a.type??"default"}`]=!0);const h={},N=a.color;N&&(h["background-color"]=N);const B=(0,t.h)("view",{class:g,style:h});C.push(B)}if(a.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});C.push(g)}return C.push(A),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},C)}}}}var{componentName:Zu,create:Ju,scope:ec}=J("text"),tc=Ju(Gu(Zu,ec,$t,!1)),Ct=tc,nc={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function lc(e,n,o=!1){return{props:{...nc},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:i}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(0),c=(0,t.ref)(0),v=(0,t.ref)(l.placement),S=(0,t.ref)(!1),w=(0,t.ref)(!1),y=(0,t.ref)(null),k=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(I,G,te,_,K,Y,Z,E=!0)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,Q=I.split("-");let ne=[];E?Q[0]==="top"?ne=["top","bottom","right","left"]:Q[0]==="bottom"?ne=["bottom","top","right","left"]:Q[0]==="left"?ne=["left","top","bottom","right"]:Q[0]==="right"&&(ne=["right","top","bottom","left"]):ne=[I[0]];const z={top:null,right:null,bottom:null,left:null},R=[];for(let D=0;D<ne.length;D++){const x=ne[D];if(R[0]=x,Q[1]&&(R[1]=Q[1]),x==="top"){const F=te-Z-l.arrowSize/2-l.offset;if(F>=0){z.top=F;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+_-Y:j=G+_/2-Y/2;const ee=L-j-Y;ee<0?(j+=ee,m.value=-ee):m.value=0,z.left=j<0?0:j;break}}else if(x==="bottom"){const F=te+K+l.arrowSize/2+l.offset;if(F+Z<=X){z.top=F;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+_-Y:j=G+_/2-Y/2;const ee=L-j-Y;ee<0?(j+=ee,m.value=-ee):m.value=0,z.left=j<0?0:j;break}}else if(x==="left"){const F=G-Y-l.arrowSize/2-l.offset;if(F>=0){z.left=F;let j=0;Q[1]==="start"?j=te:Q[1]==="end"?j=te+K-Z:j=te+K/2-Z/2,z.top=j<0?0:j;break}}else if(x==="right"){const F=G+_+l.arrowSize/2+l.offset;if(F+Y<=L){z.left=F;let j=0;Q[1]==="start"?j=te:Q[1]==="end"?j=te+K-Z:j=te+K/2-Z/2,z.top=j<0?0:j;break}}}return{bestPlacement:R.join("-"),bestInsetRect:z}},b=()=>{const I=l.visible,G=l.autoFit;if(!Je||I===!1)return;if(l.reference){const Z=k(),E=so(Z);s.value=E.x,d.value=E.y,p.value=Z.offsetWidth,c.value=Z.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=y.value.offsetWidth,_=y.value.offsetHeight,{bestPlacement:K,bestInsetRect:Y}=f(l.placement,s.value,d.value,p.value,c.value,te,_,G);v.value=K,u.value=Y},m=(0,t.ref)(0),A=Ee(()=>{b()},10),C=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{C.value=I,I?(S.value=I,setTimeout(()=>{b(),w.value=!0},0)):w.value=!1});const g=(0,t.computed)(()=>C.value&&h.value),h=(0,t.ref)(!0),N=Ee(I=>{const G=I[0];G&&(h.value=G.isIntersecting)},10),B=new IntersectionObserver(N);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,G],[te,_])=>{!I&&!G||(setTimeout(()=>{b()},0),l.autoFit&&(te&&(Ht.unwatch(te,A),B.unobserve(te)),I&&(Ht.watch(I,A),B.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ht.unwatch(l.reference,A),B.unobserve(l.reference),B.disconnect())});const T=(0,t.computed)(()=>{const I={[e]:!0};return v.value.startsWith("top")?I["is-top"]=!0:v.value.startsWith("right")?I["is-right"]=!0:v.value.startsWith("bottom")?I["is-bottom"]=!0:v.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!w.value&&g.value&&(I["is-opacity"]=!0),w.value&&g.value&&(I["is-show"]=!0),g.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),V=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),U=()=>{C.value=!1,a("update:visible",!1)},W=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:U}):null,$=()=>{let I=null;return r.title?I=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},P=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,v.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-start"?(I.left=`${l.arrowOffset+m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-end"?(I.right=`${l.arrowOffset-m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):v.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(I.left=`${l.arrowOffset+m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(I.right=`${l.arrowOffset-m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):v.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):v.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),q=()=>(0,t.h)("div",{class:P.value,style:M.value}),O=()=>{C.value===!1&&(S.value=!1)},H=I=>{if(!y.value||C.value===!1)return;const{relatedTarget:G}=I;y.value.contains(G)||(C.value=!1,a("update:visible",!1))};return i({doLayout:b}),()=>{if(!S.value)return null;const I=[],G=W();G&&I.push(G);const te=[],_=$();if(_&&te.push(_),r.default){const E=r.default();te.push(E)}const K=q();K&&te.push(K);const Y={ref:y,class:T.value,style:V.value,onAnimationend:O};l.leaveHide&&(Y.onMouseleave=H);const Z=(0,t.h)("div",Y,{default:()=>te});return I.push(Z),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:oc,create:ac,scope:rc}=J("popover-dialog"),ic=ac(lc(oc,rc,!1)),Zn=ic,sc={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function uc(e,n,o){return{props:{...bi,...sc},emits:["click"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function p(C){return C.props||{}}function c(C){return!!p(C).disabled}function v(C){return C.children??[]}const S=(0,t.ref)(),w=(0,t.computed)(()=>S.value?.$el??null),y=(0,t.ref)(!1),k=C=>{y.value=C},f=()=>{y.value=!y.value};function b(C,g){return()=>{g||(y.value=!1,p(C)?.onClick?.())}}function m(C,g){const h=v(C),N=c(C),B=b(C,N),T=[`${s}__dropdown-item`];return N&&T.push("is-disabled"),(0,t.h)("span",{class:T,onClick:B},h)}const A=C=>{const g=l.maxDisplayCount??C.length;if(g>=C.length)return C;const h=[],N=g-1;for(let W=0;W<N;W++)h.push(C[W]);const B=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),T=(0,t.h)(Ct,{ref:W=>S.value=W,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>u.moreText.value,mark:()=>B});h.push(T);const V=[];for(let W=N;W<C.length;W++){const $=m(C[W],W);V.push($)}const U=(0,t.h)(Zn,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:y.value,reference:w.value,"custom-class":`${s}__popover`},{default:()=>V});return h.push(U),h};return()=>{const{getChildren:C}=Yn(r?.default),g=A(C());return(0,t.h)(Gn,{class:d.value},{default:()=>g})}}}}var{componentName:cc,create:dc,scope:fc}=J("buttons-item"),mc=dc(uc(cc,fc,Yu)),uo=mc,pc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function hc(e,n){return{props:pc,setup(o,l){const a=tt(),r=Kn();Un(!1);const i=(0,t.computed)(()=>r&&a?Hn(a,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=me(o.width));else{const c=r&&a?_n(a,!1):null;if(i.value&&c){if(i.value.type==="grid"){const v=Wn(c,i.value,o.span,o.offset);Object.assign(p,v)}else if(i.value.type==="flow"){const v=jn(c,i.value,o.span,o.offset,o.width);Object.assign(p,v)}}}return p});return()=>{const p={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:vc,create:gc,scope:yc}=J("slot-item"),bc=gc(hc(vc,yc)),co=bc;function qe(e,n={}){return(0,t.h)(Et,e,n)}function Sc(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let s=n;for(let d=0;s&&d<r.length;d++){let p=r[d],c=s.find(v=>v[l]===p);if(!c)break;i.push(c[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],p=r[s];const c=d.find(v=>v[l]===p);if(!c)break;i.push(c[o])}else{let s=n;for(let d=0;s&&d<r.length;d++){let p=r[d],c=s.find(v=>v[l]===p);if(!c)break;i.push(c[o]),s=c[a]}}return i}var kc=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function wc(){return new kc((0,t.getCurrentInstance)().proxy)}var Cc={tag:{type:[String,Object],required:!1,default:"span"},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],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}};function Nc(e,n,o=!1){return{props:Cc,setup(l,{attrs:a,slots:r}){const i=wc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,p])=>{u.value=await i.load(l.sourceType,d,p)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return l.emptyText;let d=Sc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...a};if(r.default)return r.default({text:s.value,value:l.modelValue});const p=l.tag??"span";return typeof p=="object"?(0,t.h)(p,d,{default:()=>s.value}):(0,t.h)(p,d,[s.value])}}}}var{componentName:Ac,create:Bc,scope:Tc}=J("mapping"),Vc=Bc(Nc(Ac,Tc,!1)),Jn=Vc;function Me(e,n,o,l){const a="fox-browse-item";let r=null;o?r=(0,t.h)(Jn,{class:[`${a}__mapping`],source:o,modelValue:e,separator:l},{default:u=>(0,t.h)(Ct,{class:[`${a}__text`]},{default:()=>u.text})}):r=(0,t.h)(Ct,{class:[`${a}__text`]},{default:()=>e});const i={label:n.default,default:()=>r};return(0,t.h)(Et,{class:[a]},i)}var Si={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},xc={...he,...ge,...Si};function $c(e,n,o,l,a){return{props:xc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:S}=(0,pe.useFoxI18n)(n),w=S(r,["placeholder"]),y=(0,t.ref)(!1),k=De(r,"modelValue",null,v),f=e,b=(0,t.computed)(()=>({[f]:!0,"is-disabled":s.value,"is-readonly":p.value})),m=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),A=(0,t.computed)(()=>{const H={};return m.value&&(H["text-align"]=m.value),H}),C=H=>{let I=H.target.value;r.type==="digit"&&(I=Pl(I,!0)),r.type==="number"&&(I=Pl(I,!1)),r.maxLength&&I.length>Number(r.maxLength)&&(I=I.slice(0,Number(r.maxLength))),k.value=I,v("update:modelValue",I,H),v("change",I,H)};let g=De(r,"hintText"),h=(0,t.ref)(!1);const N=H=>{let I=H.target.value;y.value=!0,ce(g.value)||(h.value=!0),v("focus",I,H)},B=H=>{setTimeout(()=>{h.value&&(h.value=!1),y.value=!1},0);let I=H.target.value;r.maxLength&&I.length>Number(r.maxLength)&&(I=I.slice(0,Number(r.maxLength))),v("blur",I,H)},T=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":s.value,"is-readonly":p.value})),V=(0,t.computed)(()=>{const H={};return i.slots.append&&!U.value&&!q.value&&(H.display="none"),H}),U=(0,t.computed)(()=>ke(r.unit)>0),W=(0,t.computed)(()=>!q.value),$=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!W.value})),P=H=>{k.value="",v("update:modelValue","",H),v("change","",H),v("clear","")},M=(0,t.computed)(()=>Se(r.clearable)&&!s.value&&!p.value),q=(0,t.computed)(()=>{let H=ke(k.value)>0;return Se(r.clearable)&&H&&y.value}),O=(0,t.computed)(()=>({action:!0,hidden:!q.value}));return be({setDisabled:H=>{u.value=H},setReadonly:H=>{d.value=H}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(k.value,i.slots);const H={class:b.value,style:A.value,type:r.type,maxlength:r.maxLength,placeholder:w.placeholder.value,disabled:s.value,readonly:p.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:C,onFocus:N,onBlur:B},I=[],G=(0,t.h)("input",H);I.push(G);const te=[];if(M.value){const Z=(0,t.h)(a,{class:["action-icon"]}),E=(0,t.h)("view",{class:O.value,onClick:P},{default:()=>[Z]});te.push(E)}if(U.value){const Z=(0,t.h)("view",{class:$.value},[r.unit]);te.push(Z)}const _=(0,t.h)("view",{class:T.value,style:V.value},{default:()=>te});I.push(_);const K={default:()=>I};K.label=i.slots.default,K.prepend=i.slots.prepend,K.append=i.slots.append,K.fixedPreTip=i.slots.fixedPreTip,K.fixedTip=i.slots.fixedTip;const Y={...et(r,Si),hintText:g.value,hintVisible:h.value};return r.prop&&(Y.prop=`${r.prop}_item`),o(Y,K)}}}}var{componentName:Ec,create:Dc,scope:Ic}=J("input-item"),qc=Dc($c(Ec,Ic,qe,Me,oe.CircleClose)),fo=qc;function Ja(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function er(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Ja(qr(`${e}`,`${n}`)):Ja(Xl(`${e}`,Pr(`${n}`),20))}function Pc(e,n=-1,o=!1,l=3,a=","){return Vn(e,de(n),o,l,a)}function tr(e,n,o,l,a=!0){if(e==="")return"";if(e=Mr(e),n=de(n),n==1)return e;if(l)e=er(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=Xl(e,1,de(o)));else{let r=-1*n;e=er(e,r)}return e}function nr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),a=Il(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),a=Il(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}var ki={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},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},Mc={...he,...ge,...ki};function zc(e,n,o,l,a){return{props:Mc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=(0,t.ref)(!1),w=De(r,"modelValue",null,v),y=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>r.rates,()=>r.precision],([K,Y,Z])=>{if(ce(K)){y.value="";return}const E=tr(K,Y,Z,!1);y.value!==E&&(y.value=E)},{immediate:!0});const k=(0,t.computed)(()=>{let K="";return S.value&&(K=y.value),K}),{t:f}=(0,pe.useFoxI18n)(n),b=(0,t.computed)(()=>{let K=r.placeholder??"";return!S.value&&!ce(y.value)?K=Pc(y.value,r.decimalLength,r.autoPadding,r.digits,r.separator):K=ce(K)?f(["placeholder"]):K,K}),m=e,A=(0,t.computed)(()=>({[m]:!0,[`${m}__placeholder`]:y.value.length>0,"is-disabled":s.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),g=(0,t.computed)(()=>{const K={};return C.value&&(K["text-align"]=C.value),K}),h=(0,t.ref)(""),N=(0,t.computed)(()=>{let K=h.value;return ce(K)&&(K=r.errorTip??""),K}),B=(0,t.ref)(""),T=(0,t.ref)(!1),V=K=>{let Y=K.target.value;if(ce(Y)){y.value="",w.value="",v("update:modelValue","",K),v("change","",K),Se(r.showTip)&&T.value&&(T.value=!1);return}if(Y.length>=2){let Z=Y;if(Z.charAt(0)=="-"&&(Z=Z.substring(1)),Z.length>=2&&Z.charAt(0)=="0"&&Z.charAt(1)!="."){(0,t.triggerRef)(y);return}}if(Y!="-"){if(!En(Y)){(0,t.triggerRef)(y);return}if(r.integerLength!=-1&&Hr(Y)>Number(r.integerLength)){(0,t.triggerRef)(y);return}if(r.decimalLength&&r.decimalLength!=-1&&_r(Y)>Number(r.decimalLength)){(0,t.triggerRef)(y);return}let Z=nr(Y,r);if(Z.maxValid===!1){h.value=Z.message,(0,t.triggerRef)(y);return}}else if(r.min!=null&&de(r.min)>=0){(0,t.triggerRef)(y);return}B.value=Y,Se(r.showTip)&&(T.value=Y.length>0),y.value=Y,w.value=tr(Y,r.rates,r.precision,!0),v("update:modelValue",w.value,K),v("change",w.value,K)},U=K=>{if(S.value=!0,Se(r.showTip)){let Y=y.value;ce(Y)&&(Y=r.hintText),ce(Y)||(B.value=Y,T.value=!0)}h.value="",v("focus",w.value,K)},W=K=>{if(setTimeout(()=>{S.value=!1,Se(r.showTip)&&T.value===!0&&(T.value=!1)},0),!ce(y.value)){let Y=nr(y.value,r);if(Y.minValid===!1||Y.maxValid===!1){h.value=Y.message;return}}v("update:modelValue",w.value,K),v("blur",w.value,K)},$=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":s.value,"is-readonly":p.value})),P=(0,t.computed)(()=>{const K={};return i.slots.append&&!M.value&&!G.value&&(K.display="none"),K}),M=(0,t.computed)(()=>ke(r.unit)>0),q=(0,t.computed)(()=>!G.value),O=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!q.value})),H=K=>{w.value="",v("update:modelValue","",K),v("change","",K),v("clear","")},I=(0,t.computed)(()=>Se(r.clearable)&&!s.value&&!p.value),G=(0,t.computed)(()=>{let K=ke(w.value)>0;return Se(r.clearable)&&K&&S.value}),te=(0,t.computed)(()=>({action:!0,hidden:!G.value}));be({setDisabled:K=>{u.value=K},setReadonly:K=>{d.value=K}});const _=()=>w.value?b.value:w.value;return()=>{if(c.value==="on"&&(p.value||s.value))return l(_(),i.slots);let K={class:A.value,style:g.value,type:"digit",maxlength:r.maxLength,placeholder:b.value,disabled:s.value,readonly:p.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:V,onFocus:U,onBlur:W},Y=[],Z=(0,t.h)("input",K);Y.push(Z);let E=[];if(I.value){const ne=(0,t.h)(a,{class:["action-icon"]}),z=(0,t.h)("view",{class:te.value,onClick:H},{default:()=>[ne]});E.push(z)}if(M.value){const ne=(0,t.h)("view",{class:O.value},[r.unit]);E.push(ne)}const L=(0,t.h)("view",{class:$.value,style:P.value},{default:()=>E});Y.push(L);const X={default:()=>Y};X.label=i.slots.default,X.prepend=i.slots.prepend,X.append=i.slots.append,X.fixedPreTip=i.slots.fixedPreTip,X.fixedTip=i.slots.fixedTip;const Q={...et(r,ki),errorTip:N.value,hintText:B.value,hintVisible:T.value,hintType:"number"};return r.prop&&(Q.prop=`${r.prop}_item`),o(Q,X)}}}}var{componentName:Lc,create:Rc,scope:Fc}=J("money-item"),Oc=Rc(zc(Lc,Fc,qe,Me,oe.CircleClose)),mo=Oc,Ol={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Kc,create:Uc,scope:Hc}=J("textarea"),_c=Uc({props:{...Ol},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,pe.useFoxI18n)(Hc);const l=o(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const v=Kc;return{[v]:!0,[`${v}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const i=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let v=a.value;v.style.height="auto";let S=v.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:y}=e.autosize;w!==void 0&&(S=Math.min(S,w)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),v.style.height=S+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});const s=(v,S)=>{e.maxLength&&v.length>Number(e.maxLength)&&(v=v.substring(0,Number(e.maxLength))),n("update:modelValue",v,S),n("change",v,S)};return{...l,textareaRef:a,classes:r,styles:i,change:v=>{const S=v.target;s(S.value,v)},focus:v=>{e.disabled||e.readonly||n("focus",v)},blur:v=>{if(e.disabled||e.readonly)return;let S=v.target.value;s(S,v),n("blur",{value:S,event:v})}}}}),jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Wc={key:0,class:"fox-textarea__limit"};function Yc(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,jc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wc,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var el=ae(_c,[["render",Yc]]);function Xc(e,n,o,l){return{props:{...he,...ge,...Ol},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const i=Rn((0,t.computed)(()=>a.disabled)),u=Ln((0,t.computed)(()=>a.readonly)),{emitEvent:s}=Be({componentName:e,get readonly(){return u.value},get disabled(){return i.value}},a.prop??r.attrs.name),d=De(a,"modelValue",null,s),p=y=>{d.value=y,s("update:modelValue",y,{}),s("change",y,{})};let c=De(a,"hintText"),v=(0,t.ref)(!1);const S=y=>{ce(c.value)||(v.value=!0),s("focus",d.value,y)},w=y=>{setTimeout(()=>{v.value&&(v.value=!1)},0),s("blur",d.value,y)};return()=>{const y={...ve(a,Ol),disabled:i.value,readonly:u.value,value:d.value,"onUpdate:modelValue":p,onFocus:S,onBlur:w},k=[],f=(0,t.h)(l,y);k.push(f);const b={default:()=>k};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const m={...ve(a,ge,he)};return a.prop&&(m.prop=`${a.prop}_item`),(0,t.h)(o,m,b)}}}}var{componentName:Qc,create:Gc,scope:Zc}=J("textarea-item"),Jc=Gc(Xc(Qc,Zc,Et,el)),po=Jc;function ed(e){return e===window}var $e=e=>{const n=(0,t.unref)(e);if(ed(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},lr=10;function wi(e,n){return e>n&&e>lr?"horizontal":n>e&&n>lr?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const u=i.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=wi(e.offsetX,e.offsetY))}),start:(i=>{if(l(),i.touches){const u=i.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function lt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(""),c=()=>p.value==="vertical",v=()=>p.value==="horizontal",S=()=>{i.value=0,u.value=0,s.value=0,d.value=0,p.value="",o.value=0};return{move:(k=>{if(k.touches){const f=k.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const f=k;i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,p.value||(p.value=wi(s.value,d.value))}),start:(k=>{if(S(),k.touches){const f=k.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=k;e.value=f.clientX,n.value=f.clientY}o.value=Date.now()}),reset:S,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:p,isVertical:c,isHorizontal:v}}var td=2e3,or=()=>td++,Ze={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},nd=(e,n)=>({components:n,props:{...Ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(a.zIndex=or());const r=(0,t.computed)(()=>{const y=e,k=[y,`${y}--${o.position}`];return o.round&&k.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&k.push(`${y}--${o.position}--safebottom`),typeof o.popClass=="string"?k.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(f=>{k.push(f)}),k}),i=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?a.zIndex=o.zIndex:a.zIndex=or(),o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},p=y=>{l("click-pop",y)},c=y=>{y.stopPropagation(),l("click-close-icon",y),l("update:visible",!1)},v=y=>{l("click-overlay",y),o.closeOnClickOverlay&&l("update:visible",!1)},S=y=>{l("opend",y)},w=y=>{l("closed",y)};return(0,t.watch)(()=>o.visible,y=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,y=>{a.closed=y}),{...(0,t.toRefs)(a),popStyle:i,transitionName:u,classes:r,onClick:p,onClickCloseIcon:c,onClickOverlay:v,onOpened:S,onClosed:w}}}),Ci={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},ho={...Ze,...Ci,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},Ni=36;function ld(){return Ni}function od(e){Ni=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ad(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ar(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var rd=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function id(){return new rd((0,t.getCurrentInstance)().proxy)}function rr(e,n,o){return!(Re(e,n)!==Re(e,o)||it(e,n)!==it(e,o))}function sd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=n[i];let s=o[i].findIndex(d=>{if(r==="text")return Re(e,d)===u;if(r==="value"){let p=it(e,d);return p==null&&(p=Re(e,d)),p===u}else if(r==="item")return rr(e,d,u)});if(s==-1)break;a.push(s)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return Re(e,c)===s;if(r==="value"){let v=it(e,c);return v==null&&(v=Re(e,c)),v===s}else if(r==="item")return rr(e,c,s)});if(d==-1)break;a.push(d);const p=Kl(e,i[d]);if(!Array.isArray(p))break;i=p}}return a}function ir(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=o[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],p=Re(e,d);if(a.texts.push(p),a.items.push(d),r==="text")a.values.push(p);else if(r==="value"){let c=it(e,d);c==null&&(c=p),a.values.push(c)}else a.values.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],p=Object.assign({},d);p.children=null;const c=Re(e,d);if(a.texts.push(c),a.items.push(p),r==="text")a.values.push(c);else if(r==="value"){let v=it(e,d);v==null&&(v=c),a.values.push(v)}else a.values.push(p);if(!Array.isArray(d.children))break;i=d.children}}return a}function sr(e){return{text:e,value:e}}var ud=15,cd=300,dd=200,{create:fd}=J("picker-column");function md(e){e.stopPropagation()}function pd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&md(e)}var hd={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Ci},vd=fd({props:hd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),a=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=h=>{const N=h+1;return N>=c.currIndex+8||N<=c.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),s=h=>{const N=h+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*N}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),p=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),v=h=>Re(e,h),S=h=>it(e,h),w=lt(),y=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},k=(h,N=!1,B=!1)=>{if(c.currIndex=h,N){const T=()=>{c.moving=!1,n("update:modelValue",h),n("change",h)};B?c.transitionEndTrigger=T:T()}},f=(h,N,B)=>{let T=h+c.startDistance;if(N==="end"){const V=-(e.source.length-1)*e.itemHeight;T<V&&(T=V),T>0&&(T=0);let U=Math.abs(Math.round(-T/e.itemHeight));const W=-U*e.itemHeight,$=`${(U+1)*c.rotation}deg`;k(U,!0,B?B>0:!1),b(W,N,B,$)}else{let V=(-T/e.itemHeight+1)*c.rotation;const U=(e.source.length+1)*c.rotation,W=0;if(V=Math.min(Math.max(V,W),U),e.threeDimensional&&(V<W||V>U))return;b(T,null,void 0,`${V}deg`)}},b=(h=0,N,B=dd,T)=>{N==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=T,c.scrollDistance=h},m=(h,N)=>(h=Math.abs(h/N)/.003*(h<0?-1:1),h),A=h=>{e.readonly||(c.startDistance=c.scrollDistance,w.start(h),c.transitionEndTrigger=null)},C=h=>{e.readonly||(c.moving=!0,w.move(h),w.isVertical()&&(c.moving=!0,pd(h,!0)),f(w.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const h=w.deltaY.value,N=w.duration.value;N<cd&&Math.abs(h)>ud?f(m(h,N),"end",de(e.swipeDuration)):f(h,"end",0)};return(0,t.watch)(()=>e.modelValue,h=>{const N=c.currIndex-h;N!==0&&(c.currIndex=h,c.startDistance=c.scrollDistance,f(N*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,h=>{if(c.currIndex>=h.length){const N=(h.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,f(N,"end",0)}}),(0,t.watch)(()=>e.visible,h=>{h===!1&&y()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:a,itemText:v,itemValue:S,...(0,t.toRefs)(c),roller:p,getItemText:Re,onTouchStart:A,onTouchMove:C,onTouchEnd:g,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:y}}}),gd={key:1,class:"fox-picker__item-tile"};function yd(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(i)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",gd,(0,t.toDisplayString)(e.itemText(i)),1))],64))),128))],6)],38)}var bd=ae(vd,[["render",yd]]),Mt=0,ur="fox-overflow-hidden",cr=()=>Je?document.body:{classList:[]},Sd=e=>[()=>{if(e())try{!Mt&&cr().classList.add(ur),Mt++}catch{}},()=>{if(e()&&Mt)try{Mt--,!Mt&&cr().classList.remove(ur)}catch{}}],kd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:wd,create:Cd}=J("overlay"),Nd=Cd({props:{...kd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Sd(()=>e.lockScroll),a=(0,t.computed)(()=>({[wd]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:a,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ad(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var st=ae(Nd,[["render",Ad]]),{componentName:Bd,create:Td}=J("popup"),Vd=Td(nd(Bd,{FoxOverLay:st,Close:oe.Close}));function xd(e,n,o,l,a,r){const i=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var ye=ae(Vd,[["render",xd]]),$d=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(ye,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Ed=$d,{create:Dd,componentName:dr,scope:Id}=J("picker"),qd=Dd({components:{Column:bd,Wrapper:Ed},props:ho,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,pe.useFoxI18n)(Id),a=o(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),i=(0,t.ref)(ld());(0,t.watch)(()=>e.visible,M=>{M&&i.value<=0&&setTimeout(()=>{r.value&&(i.value=$e(r.value).height,od(i.value))},50)});const u=(0,t.computed)(()=>({[dr]:!0})),s=(0,t.computed)(()=>{const M=[];return Array.isArray(e.popClass)?M.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&M.push(e.popClass),M.push(`${dr}__popup`),M.join(" ")}),d=id(),p=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const v=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const M=[];for(let q=0;q<c.value.length;q++){const O=c.value[q];if(Array.isArray(O)){const H=O.filter(e.sourceFilter);M.push(H)}}return M}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([M,q])=>{if(M){let O=await d.load("picker",M,q);if(O.length>0){let H=O[0];if(Array.isArray(H)){if(typeof H[0]=="string"){let I=O,G=[];I.forEach(te=>{let _=te.map(K=>sr(K));G.push(_)}),c.value=G}else c.value=O;p.value="multipleColumn"}else if(typeof H=="string"){let I=O,G=[],te=I.map(_=>sr(_));G.push(te),c.value=G,p.value="singleColumn"}else{const I=Kl(e,H);Array.isArray(I)?(p.value="cascade",c.value=[O]):(p.value="singleColumn",c.value=[O])}}else c.value=[]}},{immediate:!0});const S=(0,t.ref)([]),w=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),y=(0,t.ref)([]);let k=null;const f=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>v.value],([M,q])=>{let O=sd(e,M,q,p.value);if(!xe(O,f.value)){f.value=O,k||(k=O?[...O]:[]);let H=ir(e,O,q,p.value);H&&(S.value=H.texts,xe(w.value,H.values)||(w.value=H.values),xe(y.value,H.items)||(y.value=H.items),n("update:text",S.value))}});let b="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,M=>{m.value=M,M&&(b="active",f.value.length>0&&(k=[...f.value]))});const A=M=>{let q=ar(e,M);return Ve(q)?q.defaultIndex??0:0},C=M=>{if(e.readonly===!0)return!0;let q=ar(e,M);return Ve(q)?q.readonly??!1:!1},g=(M,q)=>{let O=f.value;O[M]=q;for(let I=0;I<M;I++)O[I]==null&&(O[I]=A(I));if(p.value==="cascade")for(let I=M+1;I<N.value.length;I++){let G=A(I);I<O.length?O[I]=G:O.push(G)}else for(let I=O.length;I<N.value.length;I++){let G=A(I);O.push(G)}f.value=O;let H=ir(e,O,v.value,p.value);H&&(S.value=H.texts,w.value=H.values,y.value=H.items)},h=M=>M<f.value.length?f.value[M]:A(M),N=(0,t.computed)(()=>{if(v.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return v.value;let M=[],q=0,O=v.value[0],H=0;for(;;){let I=O.map(_=>{let K=Object.assign({},_);return ad(e,K,null),K});M.push(I),q>=f.value.length?H=0:H=f.value[q],(H<0||H>=O.length)&&(H=0);let G=O[H];const te=Kl(e,G);if(!Array.isArray(te))break;O=te,q++}return M}),B=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*i.value),T=(M=!1)=>{if(e.readonly===!0){M&&n("update:visible",!1);return}let q=v.value.length-1;for(;q>=0&&!(f.value[q]===null||f.value[q]===void 0);q--);if(q>=0&&g(q,0),p.value==="singleColumn"){let O=w.value.length>0?w.value[0]:"",H=y.value.length>0?y.value[0]:null;n("update:modelValue",O),n("update:text",S.value),n("change",O,H),M&&(n("confirm",O),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",S.value),n("change",w.value,y.value),M&&(n("confirm",w.value),n("update:visible",!1))},V=(M,q)=>{b!=="close"&&(g(M,q),e.isAutoBackFill&&T(!m.value))},U=()=>{b==="active"&&(b="confirm",k=Array.isArray(f.value)?[...f.value]:[],T(!0))},W=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),f.value=[],k=null};return{...a,pickerLineRef:r,classes:u,popClasses:s,columns:N,dataType:p,show:m,itemHeight:i,top:B,isReadonly:C,getIndex:h,change:V,close:()=>{if(b==="active"){if(b="close",k===null||k.length===0)W();else{if(Array.isArray(k))for(let M=0;M<k.length;M++)g(M,k[M]);T(!1)}n("close"),n("update:visible",!1)}},confirm:U,clear:()=>{if(b==="active"){if(b="clear",e.readonly===!0){n("update:visible",!1);return}W(),k=null,n("clear",""),n("update:visible",!1)}}}}}),Pd={key:0,class:"fox-picker__bar"},Md={class:"fox-picker__title"},zd={class:"fox-picker__bar__action"},Ld={class:"fox-picker__column"};function Rd(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pd,[(0,t.createElementVNode)("view",Md,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",zd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",Ld,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":p=>e.change(d,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var ln=ae(qd,[["render",Rd]]),Fd={...he,...ge,...ho,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Od(e,n,o,l,a,r,i,u=!0){return{props:Fd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=De(s,"modelValue",null,y),A=(0,t.ref)([]),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const L={};return N.value&&(L["text-align"]=N.value),L}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=L=>{T.value=L},W=L=>{m.value=L,y("update:modelValue",L)},$=(L,X)=>{y("change",L,X)},P=L=>{let X=L.target.value;b.value=!0,y("focus",X,L)},M=L=>{setTimeout(()=>{b.value=!1},0);let X=L.target.value;s.maxLength&&X.length>Number(s.maxLength)&&(X=X.slice(0,Number(s.maxLength))),y("blur",X,L)},q=L=>{A.value=L,Array.isArray(L)&&L.length===0?y("update:text",L[0]):y("update:text",L)},O=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),H=(0,t.computed)(()=>ke(s.unit)>0),I=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),G=(0,t.computed)(()=>({hidden:!I.value})),te=L=>{m.value="",y("update:modelValue","",L),y("change","",L),y("clear","")},_=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),K=(0,t.computed)(()=>ke(m.value)>0&&b.value),Y=L=>{K.value?te(L):V()},Z=(0,t.computed)(()=>K.value&&_.value?a:r),E=(0,t.computed)(()=>({action:!0}));return be({setDisabled:L=>{p.value=L},setReadonly:L=>{v.value=L}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const L={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(L.disabled=!0);const X=[],Q=(0,t.h)("input",L);X.push(Q);const ne=[],z=(0,t.h)(Z.value,{class:["action-icon"]}),R=(0,t.h)("view",{class:E.value,onClick:Y},{default:()=>[z]});if(ne.push(R),H.value){const le=(0,t.h)("view",{class:G.value},[s.unit]);ne.push(le)}const D=(0,t.h)("view",{class:O.value},{default:()=>ne});X.push(D);const x={default:()=>X};x.label=d.slots.default,x.prepend=d.slots.prepend,x.append=d.slots.append,x.fixedPreTip=d.slots.fixedPreTip,x.fixedTip=d.slots.fixedTip;const F=ve(s,ho);F.disabled=!1,F.readonly=c.value||S.value,F.visible=T.value,F["onUpdate:visible"]=U,F.modelValue=m.value,F["onUpdate:modelValue"]=W,F.text=A.value,F["onUpdate:text"]=q,F.onChange=$;const j=(0,t.h)(i,F);x.hide=()=>[j];const ee=ve(s,ge,he);return s.prop&&(ee.prop=`${s.prop}_item`),o(ee,x)}}}}var{componentName:Kd,create:Ud,scope:Hd}=J("picker-item"),_d=Ud(Od(Kd,Hd,qe,Me,oe.CircleClose,oe.ArrowRight,ln,!1)),vo=_d,jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(ye,{...o},n):n?.default?.()??null}}),Wd=jd,fn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:d,...p}=l,c={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=fn(c.children,c,o)),c}),Ai=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ai(l.children,n)},Yd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Xd=(e,n)=>{const{topId:o,idKey:l,pidKey:a,sortKey:r}={...Yd,...n||{}};let i=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[a]:p}=s,c=u[p]=u[p]||[];!i.length&&p===o&&(i=c),c.push(s),s.children=u[d]||(u[d]=[])}),r&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,p)=>d[r]-p[r])}),u=null,i},go={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},fr=(e,n)=>n[e.textKey],zt=(e,n)=>n[e.valueKey],Qd=(e,n)=>n[e.visibleKey],mr=(e,n)=>n[e.disabledKey],Gd=(e,n)=>{const o=n[e.doitKey];return Se(o)},Zd=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},pr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Jd(e,n,o,l,a,r=!1){return{props:go,emits:["update:modelValue","change","click"],setup(i,{slots:u,emit:s}){const d=(0,t.computed)(()=>{const D={};return D[`${e}`]=!0,D}),p=(0,t.computed)(()=>{const D={};return D[`${e}__titles`]=!0,D[`${i.direction}`]=!0,i.align&&(D[`${i.align}`]=!0),i.scroll===!0&&(D.scrollable=!0),i.shape&&(D[`${i.shape}`]=!0),i.showScrollArrow?(Z.value===!0&&(D["has-left-scroll-arrow "]=!0),E.value===!0&&(D["has-right-scroll-arrow "]=!0)):i.showQuickNavigation&&(D["has-navigation"]=!0),D}),c=(0,t.computed)(()=>({})),v=(0,t.computed)(()=>{if(!i.gutter)return 0;const D=se(i.gutter);return D<=0?0:D}),S=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,D=>{S.value!==D&&(S.value=D,H(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=(0,t.computed)(()=>{const D={};return f.value||(D.display="none"),D}),k=(0,t.ref)(),f=(0,t.ref)(!1),b=()=>{m(!f.value)},m=D=>{const x=D;x?(f.value=x,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,k.value?k.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},A=(0,t.ref)(),C=(0,t.ref)([]),g=(D,x)=>{C.value[x]=D},h=D=>x=>{g(x,D)},N=(D,x)=>{const F=A.value,j=C.value;if(!F||!j||!j[D])return;const ee=j[D];let le=0;i.direction==="vertical"?le=ee.offsetTop-(F.offsetHeight-ee.offsetHeight)/2:le=ee.offsetLeft-(F.offsetWidth-ee.offsetWidth)/2,B(F,le,x?0:.3,i.direction)},B=(D,x,F,j)=>{let ee=0;const le=j==="horizontal"?D.scrollLeft:D.scrollTop,ie=F===0?1:Math.round(F*1e3/16);function ue(){j==="horizontal"?D.scrollLeft+=(x-le)/ie:D.scrollTop+=(x-le)/ie,++ee<ie&&He(ue)}ue()},T=(D,x)=>{const F=zt(i,D),j={};return j[`${e}__titles-item`]=!0,j.disabled=mr(i,D),j.active=F===S.value,i.shape&&(j[`${i.shape}`]=!0),i.ellipsis&&(j.ellipsis=!0),x&&(x.class&&(j[`${x.class}`]=!0),x.disabled===!0&&(j.disabled=x.disabled)),j},V=(D,x)=>{const F={};if(v.value>0){const j=Math.abs(v.value/2);i.direction==="vertical"?(F["margin-top"]=`${j}px`,F["margin-bottom"]=`${j}px`):(F["margin-left"]=`${j}px`,F["margin-right"]=`${j}px`)}return x&&x.style&&Object.assign(F,x.style),F},U=(D,x)=>`${zt(i,D)??x}`,W=(D,x)=>{const F=zt(i,D),j={};j[`${e}__popup-item`]=!0,j.disabled=mr(i,D),j.active=F===S.value,i.shape&&(j[`${i.shape}`]=!0);const ee=pr(i,D,x);return ee&&ee.disabled===!0&&(j.disabled=ee.disabled),j},$=(0,t.computed)(()=>(i.data??[]).filter(D=>Qd(i,D)!==!1)),P=(D,x)=>{const F=zt(i,D);if(s("click",D,x),S.value==F)return;const j=()=>{S.value=F,i.scroll&&N(x,!1),s("update:modelValue",F),s("change",D,x)};if(typeof i.beforeChange=="function"){const ee=i.beforeChange(D,x);bt(ee)?ee.then(le=>{le!==!1&&j()}).catch(()=>{j()}):ee!==!1&&j()}else j()},M=(D,x)=>function(){P(D,x)},q=(D,x)=>{P(D,x),m(!1)},O=(D,x)=>function(){q(D,x)},H=D=>{if(!Array.isArray(i.data)||!i.scroll)return;Y()&&ne();const x=i.data.findIndex(F=>zt(i,F)===S.value);x!==-1&&N(x,D)},I=()=>{Y()||z()};(0,t.watch)(()=>i.data,()=>{setTimeout(H,0)}),(0,t.onMounted)(()=>{H(!0)}),(0,t.onBeforeUnmount)(()=>{I()});const G=(D,x)=>{if(u.item)return u.item({item:D,index:x});const F=pr(i,D,x),j=[];if(u.text){const le=u.text({item:D,index:x});j.push(le)}else{const le=[];if(F?.doit===!0||Gd(i,D)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});le.push(Ue)}const ie=F?.num??Zd(i,D);if(ie){let Ue="";const ze=de(ie);ze>=100?Ue="99+":Ue=`${ze}`;const It=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);le.push(It)}const ue={class:`${e}__titles-item-text`};le.push(fr(i,D));const Ke=(0,t.h)("view",ue,le);j.push(Ke)}const ee=(0,t.h)("view",{class:`${e}__titles-item-line`});return j.push(ee),(0,t.h)("view",{ref:h(x),class:T(D,F),style:V(D,F),key:U(D,x),onClick:M(D,x)},j)},te=()=>{const D=u.default?u.default():[];if(D.length===0)for(let x=0;x<$.value.length;x++){const F=$.value[x],j=G(F,x);D.push(j)}return(0,t.h)("view",{ref:A,class:p.value,style:c.value},D)},_=()=>{let D=null;return u.navigation?D=u.navigation():D=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:b},[D])},K=()=>{const D=[];for(let x=0;x<$.value.length;x++){const F=$.value[x];let j=null;u.popupItem?j=u.popupItem({item:F,index:x}):j=fr(i,F);const ee=(0,t.h)("view",{class:W(F,x),key:U(F,x),onClick:O(F,x)},[j]);D.push(ee)}return(0,t.h)("view",{class:w.value,style:y.value},D)},Y=()=>i.showScrollArrow&&i.direction=="horizontal",Z=(0,t.ref)(!1),E=(0,t.ref)(!1),L=D=>{const x=A.value,F=C.value;if(!(!x||!F))if(D==="left"){const j=x.scrollLeft;let ee=j;for(let le=0;le<F.length;le++){const ie=F[le].offsetLeft;if(j-ie<0)break;ee=ie}B(x,ee,.3,"horizontal")}else{const j=x.scrollLeft;let ee=j,le=x.offsetWidth;for(let ie=F.length-1;ie>=0;ie--){const ue=F[ie].offsetLeft+F[ie].offsetWidth;if(ue-j<x.offsetWidth){ee+=le-ue;break}le=ue}B(x,ee,.3,"horizontal")}},X=Ee(()=>{const D=A.value;if(!D)return;let x=D.scrollLeft>0;x!==Z.value&&(Z.value=x);let F=D.scrollWidth-D.scrollLeft>D.offsetWidth;F!==E.value&&(E.value=F)},50),Q=D=>{X()},ne=()=>{const D=A.value;D&&(X(),D.addEventListener("scroll",Q))},z=()=>{const D=A.value;D&&D.removeEventListener("scroll",Q)},R=D=>{if(D==="left"&&Z.value!==!0||D==="right"&&E.value!==!0)return null;let x=null;return D==="left"?u.leftArrow?x=u.leftArrow():x=(0,t.h)(l):u.rightArrow?x=u.rightArrow():x=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,D],onClick:()=>{L(D)}},[x])};return()=>{const D=[],x=te();if(D.push(x),Y()){const F=R("left");F&&D.push(F);const j=R("right");j&&D.push(j)}else if(i.showQuickNavigation){const F=_();D.push(F);const j=K();D.push(j)}return(0,t.h)("view",{class:d.value},D)}}}}var{create:ef,componentName:tf,scope:nf}=J("tabs-bar"),lf=ef(Jd(tf,nf,oe.MoreH,oe.Left,oe.Right,!1)),on=lf,Bi=Symbol("TabsStatesKey"),yo={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},of=15,af=300,rf=200;function sf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function hr(e,n=0,o,l,a=rf){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var uf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,a){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=a??tl()}open(e){this.el=e;const n=nl(),o=(l,a,r)=>{const i={delta:l,direction:a,type:r};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}o(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<af&&Math.abs(l)>of?(l=sf(l,a,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function cf(e,n,o,l=1,a){return new uf(e,n,o,l,a)}function df(e,n,o=!1){return{props:yo,emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=(0,t.shallowRef)([]),u={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:h=>{const N={name:h};u.current.value===h&&(N.loaded=!0),i.value.push(N),(0,t.triggerRef)(i)},remove:h=>{const N=i.value.findIndex(B=>B.name===h);N!==-1&&i.value.splice(N,1)},isLoaded:h=>{if(!l.lazy)return!0;const N=i.value.findIndex(B=>B.name===h);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};(0,t.provide)(Bi,u);const s=h=>{const N=i.value.findIndex(B=>B.name===h);N!==-1&&(i.value[N].loaded=!0,(0,t.triggerRef)(i))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([h,N])=>{u.current.value!==h&&(u.current.value=h??"",s(h??"")),u.direction.value!==N&&(u.direction.value=N)});const d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),v=(0,t.computed)(()=>{const h={};if(l.width){const N=me(l.width);N&&(h.width=N)}if(l.height){const N=me(l.height);N&&(h.height=N)}return h});let S=!0;const w=(0,t.computed)(()=>{const h={};if(l.transition===!1)return h;const N=i.value.length;if(N<=0)return h;const B=i.value.findIndex(T=>T.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(h.height=`${N*u.tabHeight.value}px`,B!==-1&&(h.transform=`translate(0, -${B*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(h.width=`${N*u.tabWidth.value}px`,B!==-1&&(h.transform=`translate(-${B*u.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},k=h=>{const N=i.value.length,B=i.value.findIndex(T=>T.name===u.current.value);y.moved=0,h.direction==="vertical"?(y.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),y.max=u.tabHeight.value/4,y.start=-B*u.tabHeight.value,y.itemDistance=u.tabHeight.value):(y.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),y.max=u.tabWidth.value/4,y.start=-B*u.tabWidth.value,y.itemDistance=u.tabWidth.value)},f=h=>{const N=p.value;if(!N)return;let B=y.start+h.delta;if(B>y.max?B=y.max:B<y.min&&(B=y.min),h.type==="move")hr(N,B,"move",h.direction,300);else if(h.type==="end"){let T=Math.floor(Math.abs(B)*1/y.itemDistance);const V=Math.abs(B)%y.itemDistance;y.start>B?V>=y.itemDistance*y.triggerAutoMoveRatio&&(T+=1):V>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&(T+=1),B=-1*T*y.itemDistance,hr(N,B,"end",h.direction,300),y.moved=B;const U=i.value[T].name;u.current.value=U??"",s(U??""),a("update:modelValue",U)}},b=()=>{},m=()=>{if(!d.value)return;const h=Fn(d.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height},A=Sn(m,250);let C=null,g=null;return(0,t.onMounted)(()=>{l.transition!==!1&&d.value&&(m(),window.ResizeObserver&&(g=new window.ResizeObserver(A),g.observe(d.value)),l.draggle&&(C=cf(k,f,b),C.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{g&&(g.disconnect(),g=null),C&&C.close()}),be({doLayout(){m()}}),()=>{const h=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:c.value,style:v.value,ref:d},[h])}}}}var{create:ff,componentName:mf,scope:pf}=J("tabs-container"),hf=ff(df(mf,pf,!1)),an=hf,vf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function gf(e,n,o){return{props:vf,setup(l,{emit:a,slots:r}){const i=(0,t.inject)(Bi);(0,t.onMounted)(()=>{i.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{i.remove(l.paneKey)});const u=(0,t.computed)(()=>{const p=[e];return i.direction.value==="vertical"?p.push("is-vertical"):p.push("is-horizontal"),i.transition===!1?p.push("is-no-transition"):p.push("is-transition"),p}),s=(0,t.computed)(()=>{const p={};return i.transition===!1?(i.current.value!==l.paneKey&&(p.display="none"),p):(i.direction.value==="vertical"&&i.tabHeight.value>0?p.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(p.width=`${i.tabWidth.value}px`),p)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):i.isLoaded(l.paneKey));return()=>{let p=[];if(d.value)p=r?.default?.()??[];else if(r.empty)p=r.empty();else{const c={class:`${e}__empty-icon`},v=(0,t.h)(l.emptyIcon??o,c),S=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),w=(0,t.h)("view",{class:`${e}__empty`},[v,S]);p.push(w)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},p)}}}}var{create:yf,componentName:bf,scope:Sf}=J("tabs-pane"),kf=yf(gf(bf,Sf,oe.Loading)),ll=kf,vr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=fn(e,null,this.config)}updateChildren(e,n){n?n.children=fn(e,n,this.config):this.nodes=fn(e,null,this.config)}getNodeByValue(e){let n;return Ai(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(a=>a.value===e[a.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,a=Array.isArray(l)&&!!l.length;return o||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:wf,scope:Cf}=J("cascader-pane"),Nf=wf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:on,TabsContainer:an,TabsPane:ll},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(Cf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=(0,t.ref)(0),r=(0,t.ref)(),i=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new vr([],{})),d=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>i.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,A)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:A}))),v=new Map;let S;const w=async()=>{v.clear(),d.value=[],a.value=0,i.value=!1,S=null;let{options:m}=e;l.value.convertConfig&&(m=Xd(m,l.value.convertConfig)),s.value=new vr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],y(!p.value)},y=async(m=!0)=>{const A=u.value;if(A===void 0||!s.value.nodes.length)return;if(A.length===0){a.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let C=A;if(p.value&&Array.isArray(A)&&A.length){C=[];let g=s.value.nodes.find(h=>h.value===A[0]);g&&(C=[g.value],i.value=!0,await k(await A.slice(1).reduce(async(h,N)=>{const B=await h;await k(B);const T=B&&B?.children?.find(V=>V.value===N);return T&&C.push(N),Promise.resolve(T)},Promise.resolve(g))),i.value=!1)}C.length&&A===e.modelValue&&s.value.getPathNodesByValue(C).map((g,h)=>{a.value=h,b.handleNode(g,m)})},k=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,p.value)||s.value.hasChildren(m,p.value))return;m.loading=!0;const A=m.root?null:m;let C=v.get(m);C||(C=new Promise(h=>{l.value.lazyLoad?.(m,h)}),v.set(m,C));const g=await C;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,A):m.leaf=!0,m.loading=!1,v.delete(m)},f=m=>{const A=m.map(C=>C.value);u.value=A,n("change",A,m),n("pathChange",m),n("update:modelValue",A)},b={async handleNode(m,A){const{disabled:C,loading:g}=m;if(!(!A&&C||!d.value[a.value])){if(s.value.isLeaf(m,p.value)){if(m.leaf=!0,d.value[a.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!A){const h=d.value.map(N=>N.selectedNode);f(h),n("pathChange",h)}return}if(s.value.hasChildren(m,p.value)){const h=m.level+1;d.value[a.value].selectedNode=m,d.value=d.value.slice(0,h),d.value.push({nodes:m.children||[],selectedNode:null}),a.value=h,A||n("pathChange",d.value.map(N=>N.selectedNode));return}S=m,!g&&(await k(m),S===m&&(d.value[a.value].selectedNode=m,b.handleNode(m,A)))}},handleTabChange(m,A){S=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,A){return m.selectedNode&&m.selectedNode.value===A.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{xe(m,u.value)||(u.value=m,y(!p.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(u.value)&&u.value.length>0&&y(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:i,tabsCursor:a,tabsContainerRef:r,...b}}}),Af={class:"fox-cascader"},Bf={role:"menu",class:"fox-cascader__pane"},Tf=["aria-checked","aria-disabled","onClick"],Vf={class:"fox-cascader__item__title"};function xf(e,n,o,l,a,r){const i=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Af,[(0,t.createVNode)(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(c,v)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":v,key:v},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Bf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,S=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:S.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,S),disabled:S.disabled}]),"aria-checked":e.isSelected(c,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(S,!1)},[(0,t.createElementVNode)("view",Vf,(0,t.toDisplayString)(S.text),1),S.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Tf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var $f=ae(Nf,[["render",xf]]),{create:Ef}=J("cascader"),Df=Ef({components:{CascaderPane:$f,Wrapper:Wd},props:{...Ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,u)=>{o.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return(0,t.watch)(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),If=["innerHTML"];function qf(e,n,o,l,a,r){const i=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,If)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var ol=ae(Df,[["render",qf]]);function Nt(e,n){return n[e.textKey??"text"]??""}function At(e,n){return n[e.valueKey??"value"]}function Ti(e,n){return n[e.childrenKey??"children"]}function cn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Nt(e,a),i=At(e,a);o.texts.push(r),o.values.push(i??"")}return o}function Vi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(Nt(e,n[i])===r){const u=At(e,n[i])??"",s={[e.textKey]:r,[e.valueKey]:u};a.push(s);const d=Ti(e,n[i]);Array.isArray(d)&&Vi(e,d,o,l+1,a);return}}function xi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(At(e,n[i])===r){const u=Nt(e,n[i])??"",s={[e.textKey]:u,[e.valueKey]:r};a.push(s);const d=Ti(e,n[i]);Array.isArray(d)&&xi(e,d,o,l+1,a);return}}function Nl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Nt(e,n[l])!==Nt(e,o[l])||At(e,n[l])!==At(e,o[l]))return!1;return!0}var Pf=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const a=nt(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Ve(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,o))}};function Mf(){return new Pf((0,t.getCurrentInstance)().proxy)}var $i={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},zf={...he,...ge,...$i};function Lf(e,n,o,l,a,r,i,u=!1){return{props:zf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=Mf(),A=(0,t.ref)([]),C=(0,t.ref)([]),g=(0,t.computed)(()=>{if(Array.isArray(C.value)){if(s.showAllLevels===!1){const R=C.value.length-1;return C.value[R]}return C.value.join(s.separator)}else return C.value}),h=(0,t.ref)([]),N=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>A.value],async([R,D])=>{if(y("setValue",R),s.lazy===!0){N.value.length==0&&(C.value=Array.isArray(R)?R:[],h.value=Array.isArray(R)?R:[]);return}if(s.valueType==="item"){let x=R;if(!Nl(s,x,N.value)){N.value=x;let F=cn(s,x);C.value=F.texts,h.value=F.values}}else if(s.valueType==="text"){let x=R,F=[];if(Vi(s,D,x,0,F),!Nl(s,F,N.value)){N.value=F;let j=cn(s,F);C.value=j.texts,h.value=j.values}}else{let x=R,F=[];if(xi(s,D,x,0,F),!Nl(s,F,N.value)){N.value=F;let j=cn(s,F);C.value=j.texts,h.value=j.values}}}),s.lazy===!0&&(h.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([R,D])=>{s.lazy||R&&(A.value=await m.load(R,D))},{immediate:!0});const B="fox-input-item",T=(0,t.computed)(()=>({[B]:!0,"is-disabled":c.value,"is-readonly":S.value})),V=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),U=(0,t.computed)(()=>{const R={};return V.value&&(R["text-align"]=V.value),R}),W=(0,t.ref)(!1),$=()=>{c.value===!0||S.value===!0||(W.value=!0)},P=R=>{W.value=R},M=(R,D)=>{let x=D.map(j=>{if(j==null)return j;let ee={...j};return Reflect.deleteProperty(ee,"text"),ee[s.textKey]=j.text??"",Reflect.deleteProperty(ee,"value"),ee[s.valueKey]=j.value??"",ee});N.value=x;let F=cn(s,x);C.value=F.texts,h.value=F.values,s.valueType==="text"?(y("change",C.value,x),y("update:modelValue",C.value)):s.valueType==="item"?(y("change",x,x),y("update:modelValue",x)):(y("change",h.value,x),y("update:modelValue",h.value)),y("update:pathNodes",x)},q=R=>{y("pathChange",R.map(D=>{if(D==null)return D;let x={...D};return Reflect.deleteProperty(x,"text"),x[s.textKey]=D.text??"",Reflect.deleteProperty(x,"value"),x[s.valueKey]=D.value??"",x}))},O=R=>{b.value=!0,y("focus",h.value,R)},H=R=>{setTimeout(()=>{b.value=!1},0),y("blur",h.value,R)},I=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),G=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),_=(0,t.computed)(()=>({hidden:!te.value})),K=R=>{N.value=[],C.value=[],h.value=[],y("update:modelValue",[]),y("change",[],R),y("clear",[]),y("update:pathNodes",[])},Y=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),Z=(0,t.computed)(()=>{let R=h.value&&h.value.length>0;return s.clearable&&R&&b.value}),E=R=>{Z.value?K(R):$()},L=(0,t.computed)(()=>Z.value&&Y.value?a:r),X=(0,t.computed)(()=>({action:!0}));let Q=null;const ne=()=>typeof Q=="function"?Q:typeof s.lazyLoad=="function"?s.lazyLoad:(Q=async(R,D)=>{const x=[],F=[];let j=0;if(!R.root){let ee=R;for(;ee;){const le=Nt(s,ee),ie=At(s,ee);F.splice(0,0,le),x.splice(0,0,ie),ee=ee._parent}j=x.length}D(await m.load(s.source,{...R,level:j,pathLabels:F,pathValues:x},!0))},Q),z=(0,t.ref)();return be({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()},setDisabled:R=>{p.value=R},setReadonly:R=>{v.value=R}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(g.value,d.slots);const R={class:T.value,style:U.value,ref:z,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:$,onFocus:O,onBlur:H};u&&(R.disabled=!0);const D=[],x=(0,t.h)("input",R);D.push(x);const F=[],j=(0,t.h)(L.value,{class:["action-icon"]}),ee=(0,t.h)("view",{class:X.value,onClick:E},{default:()=>[j]});if(F.push(ee),G.value){const It=(0,t.h)("view",{class:_.value},[s.unit]);F.push(It)}const le=(0,t.h)("view",{class:I.value},{default:()=>F});D.push(le);const ie={default:()=>D};ie.label=d.slots.default,ie.prepend=d.slots.prepend,ie.append=d.slots.append,ie.fixedPreTip=d.slots.fixedPreTip,ie.fixedTip=d.slots.fixedTip;const ue={};ue.visible=W.value,ue["onUpdate:visible"]=P,ue.modelValue=h.value,ue.onChange=M,ue.onPathChange=q,ue.title=s.title,ue.valueKey=s.valueKey,ue.textKey=s.textKey,ue.childrenKey=s.childrenKey,ue.convertConfig=s.convertConfig,s.lazy?(ue.lazy=!0,ue.lazyLoad=ne()):ue.options=A.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(i,ue,Ke);ie.hide=()=>[Ue];const ze={...et(s,$i)};return s.prop&&(ze.prop=`${s.prop}_item`),o(ze,ie)}}}}var{componentName:Rf,create:Ff,scope:Of}=J("cascader-item"),Kf=Ff(Lf(Rf,Of,qe,Me,oe.CircleClose,oe.ArrowRight,ol,!1)),bo=Kf,Uf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",p="week",c="month",v="quarter",S="year",w="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var P=["th","st","nd","rd"],M=$%100;return"["+$+(P[(M-20)%10]||P[M]||P[0])+"]"}},m=function($,P,M){var q=String($);return!q||q.length>=P?$:""+Array(P+1-q.length).join(M)+$},A={s:m,z:function($){var P=-$.utcOffset(),M=Math.abs(P),q=Math.floor(M/60),O=M%60;return(P<=0?"+":"-")+m(q,2,"0")+":"+m(O,2,"0")},m:function $(P,M){if(P.date()<M.date())return-$(M,P);var q=12*(M.year()-P.year())+(M.month()-P.month()),O=P.clone().add(q,c),H=M-O<0,I=P.clone().add(q+(H?-1:1),c);return+(-(q+(M-O)/(H?O-I:I-O))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:S,w:p,d,D:w,h:s,m:u,s:i,ms:r,Q:v}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},C="en",g={};g[C]=b;var h="$isDayjsObject",N=function($){return $ instanceof U||!(!$||!$[h])},B=function $(P,M,q){var O;if(!P)return C;if(typeof P=="string"){var H=P.toLowerCase();g[H]&&(O=H),M&&(g[H]=M,O=H);var I=P.split("-");if(!O&&I.length>1)return $(I[0])}else{var G=P.name;g[G]=P,O=G}return!q&&O&&(C=O),O||!q&&C},T=function($,P){if(N($))return $.clone();var M=typeof P=="object"?P:{};return M.date=$,M.args=arguments,new U(M)},V=A;V.l=B,V.i=N,V.w=function($,P){return T($,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var U=(function(){function $(M){this.$L=B(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[h]=!0}var P=$.prototype;return P.parse=function(M){this.$d=(function(q){var O=q.date,H=q.utc;if(O===null)return new Date(NaN);if(V.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var I=O.match(k);if(I){var G=I[2]-1||0,te=(I[7]||"0").substring(0,3);return H?new Date(Date.UTC(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,te)):new Date(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,te)}}return new Date(O)})(M),this.init()},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},P.$utils=function(){return V},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(M,q){var O=T(M);return this.startOf(q)<=O&&O<=this.endOf(q)},P.isAfter=function(M,q){return T(M)<this.startOf(q)},P.isBefore=function(M,q){return this.endOf(q)<T(M)},P.$g=function(M,q,O){return V.u(M)?this[q]:this.set(O,M)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(M,q){var O=this,H=!!V.u(q)||q,I=V.p(M),G=function(X,Q){var ne=V.w(O.$u?Date.UTC(O.$y,Q,X):new Date(O.$y,Q,X),O);return H?ne:ne.endOf(d)},te=function(X,Q){return V.w(O.toDate()[X].apply(O.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),O)},_=this.$W,K=this.$M,Y=this.$D,Z="set"+(this.$u?"UTC":"");switch(I){case S:return H?G(1,0):G(31,11);case c:return H?G(1,K):G(0,K+1);case p:var E=this.$locale().weekStart||0,L=(_<E?_+7:_)-E;return G(H?Y-L:Y+(6-L),K);case d:case w:return te(Z+"Hours",0);case s:return te(Z+"Minutes",1);case u:return te(Z+"Seconds",2);case i:return te(Z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(M){return this.startOf(M,!1)},P.$set=function(M,q){var O,H=V.p(M),I="set"+(this.$u?"UTC":""),G=(O={},O[d]=I+"Date",O[w]=I+"Date",O[c]=I+"Month",O[S]=I+"FullYear",O[s]=I+"Hours",O[u]=I+"Minutes",O[i]=I+"Seconds",O[r]=I+"Milliseconds",O)[H],te=H===d?this.$D+(q-this.$W):q;if(H===c||H===S){var _=this.clone().set(w,1);_.$d[G](te),_.init(),this.$d=_.set(w,Math.min(this.$D,_.daysInMonth())).$d}else G&&this.$d[G](te);return this.init(),this},P.set=function(M,q){return this.clone().$set(M,q)},P.get=function(M){return this[V.p(M)]()},P.add=function(M,q){var O,H=this;M=Number(M);var I=V.p(q),G=function(K){var Y=T(H);return V.w(Y.date(Y.date()+Math.round(K*M)),H)};if(I===c)return this.set(c,this.$M+M);if(I===S)return this.set(S,this.$y+M);if(I===d)return G(1);if(I===p)return G(7);var te=(O={},O[u]=l,O[s]=a,O[i]=o,O)[I]||1,_=this.$d.getTime()+M*te;return V.w(_,this)},P.subtract=function(M,q){return this.add(-1*M,q)},P.format=function(M){var q=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var H=M||"YYYY-MM-DDTHH:mm:ssZ",I=V.z(this),G=this.$H,te=this.$m,_=this.$M,K=O.weekdays,Y=O.months,Z=O.meridiem,E=function(Q,ne,z,R){return Q&&(Q[ne]||Q(q,H))||z[ne].slice(0,R)},L=function(Q){return V.s(G%12||12,Q,"0")},X=Z||function(Q,ne,z){var R=Q<12?"AM":"PM";return z?R.toLowerCase():R};return H.replace(f,(function(Q,ne){return ne||(function(z){switch(z){case"YY":return String(q.$y).slice(-2);case"YYYY":return V.s(q.$y,4,"0");case"M":return _+1;case"MM":return V.s(_+1,2,"0");case"MMM":return E(O.monthsShort,_,Y,3);case"MMMM":return E(Y,_);case"D":return q.$D;case"DD":return V.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return E(O.weekdaysMin,q.$W,K,2);case"ddd":return E(O.weekdaysShort,q.$W,K,3);case"dddd":return K[q.$W];case"H":return String(G);case"HH":return V.s(G,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return X(G,te,!0);case"A":return X(G,te,!1);case"m":return String(te);case"mm":return V.s(te,2,"0");case"s":return String(q.$s);case"ss":return V.s(q.$s,2,"0");case"SSS":return V.s(q.$ms,3,"0");case"Z":return I}return null})(Q)||I.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(M,q,O){var H,I=this,G=V.p(q),te=T(M),_=(te.utcOffset()-this.utcOffset())*l,K=this-te,Y=function(){return V.m(I,te)};switch(G){case S:H=Y()/12;break;case c:H=Y();break;case v:H=Y()/3;break;case p:H=(K-_)/6048e5;break;case d:H=(K-_)/864e5;break;case s:H=K/a;break;case u:H=K/l;break;case i:H=K/o;break;default:H=K}return O?H:V.a(H)},P.daysInMonth=function(){return this.endOf(c).$D},P.$locale=function(){return g[this.$L]},P.locale=function(M,q){if(!M)return this.$L;var O=this.clone(),H=B(M,q,!0);return H&&(O.$L=H),O},P.clone=function(){return V.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},$})(),W=U.prototype;return T.prototype=W,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",S],["$D",w]].forEach((function($){W[$[1]]=function(P){return this.$g(P,$[0],$[1])}})),T.extend=function($,P){return $.$i||($(P,U,T),$.$i=!0),T},T.locale=B,T.isDayjs=N,T.unix=function($){return T(1e3*$)},T.en=g[C],T.Ls=g,T.p={},T}))})),Hf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,r=/\d\d/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(k){return(k=+k)+(k>68?1900:2e3)},p=function(k){return function(f){this[k]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var b=f.match(/([+-]|\d\d)/g),m=60*b[1]+(+b[2]||0);return m===0?0:b[0]==="+"?-m:m})(k)}],v=function(k){var f=s[k];return f&&(f.indexOf?f:f.s.concat(f.f))},S=function(k,f){var b,m=s.meridiem;if(m){for(var A=1;A<=24;A+=1)if(k.indexOf(m(A,0,f))>-1){b=A>12;break}}else b=k===(f?"pm":"PM");return b},w={A:[u,function(k){this.afternoon=S(k,!1)}],a:[u,function(k){this.afternoon=S(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[r,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[i,p("seconds")],ss:[i,p("seconds")],m:[i,p("minutes")],mm:[i,p("minutes")],H:[i,p("hours")],h:[i,p("hours")],HH:[i,p("hours")],hh:[i,p("hours")],D:[i,p("day")],DD:[r,p("day")],Do:[u,function(k){var f=s.ordinal;if(this.day=k.match(/\d+/)[0],f)for(var b=1;b<=31;b+=1)f(b).replace(/\[|\]/g,"")===k&&(this.day=b)}],w:[i,p("week")],ww:[r,p("week")],M:[i,p("month")],MM:[r,p("month")],MMM:[u,function(k){var f=v("months"),b=(v("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(k)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[u,function(k){var f=v("months").indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(k){this.year=d(k)}],YYYY:[/\d{4}/,p("year")],Z:c,ZZ:c};function y(k){for(var f=k,b=s&&s.formats,m=(k=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,V,U){var W=U&&U.toUpperCase();return V||b[U]||o[U]||b[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,P,M){return P||M.slice(1)}))}))).match(l),A=m.length,C=0;C<A;C+=1){var g=m[C],h=w[g],N=h&&h[0],B=h&&h[1];m[C]=B?{regex:N,parser:B}:g.replace(/^\[|\]$/g,"")}return function(T){for(var V={},U=0,W=0;U<A;U+=1){var $=m[U];if(typeof $=="string")W+=$.length;else{var P=$.regex,M=$.parser,q=T.slice(W),O=P.exec(q)[0];M.call(V,O),T=T.replace(O,"")}}return(function(H){var I=H.afternoon;if(I!==void 0){var G=H.hours;I?G<12&&(H.hours+=12):G===12&&(H.hours=0),delete H.afternoon}})(V),V}}return function(k,f,b){b.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var m=f.prototype,A=m.parse;m.parse=function(C){var g=C.date,h=C.utc,N=C.args;this.$u=h;var B=N[1];if(typeof B=="string"){var T=N[2]===!0,V=N[3]===!0,U=T||V,W=N[2];V&&(W=N[2]),s=this.$locale(),!T&&W&&(s=b.Ls[W]),this.$d=(function(q,O,H,I){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*q);var G=y(O)(q),te=G.year,_=G.month,K=G.day,Y=G.hours,Z=G.minutes,E=G.seconds,L=G.milliseconds,X=G.zone,Q=G.week,ne=new Date,z=K||(te||_?1:ne.getDate()),R=te||ne.getFullYear(),D=0;te&&!_||(D=_>0?_-1:ne.getMonth());var x,F=Y||0,j=Z||0,ee=E||0,le=L||0;return X?new Date(Date.UTC(R,D,z,F,j,ee,le+60*X.offset*1e3)):H?new Date(Date.UTC(R,D,z,F,j,ee,le)):(x=new Date(R,D,z,F,j,ee,le),Q&&(x=I(x).week(Q).toDate()),x)}catch{return new Date("")}})(g,B,h,b),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),U&&g!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var $=B.length,P=1;P<=$;P+=1){N[1]=B[P-1];var M=b.apply(this,N);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}P===$&&(this.$d=new Date(""))}else A.call(this,C)}}}))})),_f=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var a=l.prototype,r=a.format;a.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var d=this.$utils(),p=(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(c){switch(c){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="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 c}}));return r.bind(this)(p)}}}))})),jf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,a){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,v,S,w,y){var k=c.name?c:c.$locale(),f=i(k[v]),b=i(k[S]),m=f||b.map((function(C){return C.slice(0,w)}));if(!y)return m;var A=k.weekStart;return m.map((function(C,g){return m[(g+(A||0))%7]}))},s=function(){return a.Ls[a.locale()]},d=function(c,v){return c.formats[v]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,y,k){return y||k.slice(1)}))})(c.formats[v.toUpperCase()])},p=function(){var c=this;return{months:function(v){return v?v.format("MMMM"):u(c,"months")},monthsShort:function(v){return v?v.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(c,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(c.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},a.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.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(v){return d(c,v)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(c){return u(s(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),Wf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(a,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(o);if(p.isBefore(c))return 1}var v=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),S=this.diff(v,o,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Yf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}}))})),Xf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}}))})),Qf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),Gf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Oe=Ye(Uf(),1),Zf=Ye(Hf(),1),Jf=Ye(_f(),1),em=Ye(jf(),1),tm=Ye(Wf(),1),nm=Ye(Yf(),1),lm=Ye(Xf(),1),om=Ye(Qf(),1),am=Ye(Gf(),1);Oe.default.extend(em.default);Oe.default.extend(Jf.default);Oe.default.extend(Zf.default);Oe.default.extend(tm.default);Oe.default.extend(nm.default);Oe.default.extend(lm.default);Oe.default.extend(om.default);Oe.default.extend(am.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Oe.default)(e).format(n)},parser(e,n){return(0,Oe.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,a=typeof n=="string"?this.parser(n,o):n,r=l.getTime(),i=a.getTime();return r==i?0:r>i?1:-1},between(e,n,o,l){let a;l==="year"?a=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?a=new Date(new Date(n).setMonth(n.getMonth()+o)):a=new Date(new Date(n).setDate(n.getDate()+o));const r=e.getTime(),i=a.getTime(),u=n.getTime();return i>u?r>=u&&r<=i:r>=i&&r<=u},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},gr=new Date().getFullYear(),So={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},An=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ul=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},ko={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(gr-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(gr+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:rm,scope:im}=J("date-picker"),sm=rm({components:{Picker:ln},props:{...ko},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(im),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{a.value=m});function r(m,A){return new Date(m,A,0).getDate()}const i=(m,A)=>{const C=e[`${m}Date`],g=C.getFullYear();let h=1,N=1,B=0,T=0;m==="max"&&(h=12,N=r(A.getFullYear(),A.getMonth()+1),B=23,T=59);const V=T;return A.getFullYear()===g&&(h=C.getMonth()+1,A.getMonth()+1===h&&(N=C.getDate(),A.getDate()===N&&(B=C.getHours(),A.getHours()===B&&(T=C.getMinutes())))),{[`${m}Year`]:g,[`${m}Month`]:h,[`${m}Date`]:N,[`${m}Hour`]:B,[`${m}Minute`]:T,[`${m}Seconds`]:V}},u=(0,t.computed)(()=>{if(!v.value)return[];const{maxYear:m,maxDate:A,maxMonth:C,maxHour:g,maxMinute:h,maxSeconds:N}=i("max",v.value),{minYear:B,minDate:T,minMonth:V,minHour:U,minMinute:W,minSeconds:$}=i("min",v.value);let P=[{type:"year",range:[B,m]},{type:"month",range:[V,C]},{type:"day",range:[T,A]},{type:"hour",range:[U,g]},{type:"minute",range:[W,h]},{type:"seconds",range:[$,N]}];switch(e.type){case"date":P=P.slice(0,3);break;case"datetime":P=P.slice(0,5);break;case"time":P=P.slice(3,6);break;case"year-month":P=P.slice(0,2);break;case"month-day":P=P.slice(1,3);break;case"datehour":P=P.slice(0,4);break;case"hour-minute":P=P.slice(3,5);break}return P}),s=(m,A,C,g,h)=>{const N=[];for(;m<=A;){let B=!0;if(typeof e.itemFilter=="function"){const T={text:`${m}`,value:m,type:C,currentYearMonth:g};B=e.itemFilter(T)}if(B)if(typeof e.itemFormatter=="function"){const T={text:`${m}`,value:m,type:C,currentYearMonth:g};e.itemFormatter(T),N.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${m}${l[C]}`;if(C==="day"){if(g[0]===h[0]&&g[1]===h[1]&&m===h[2])T=l.today;else{const V=new Date(g[0],g[1],m).getDay();T=`${T} ${l.fullWeekdays[V]}`}N.push({text:T,value:m})}else N.push({text:m+l[C],value:m})}else N.push({text:`${m}`,value:m});C==="minute"?m+=e.minuteStep:m++}return N},d=(0,t.computed)(()=>{const m=new Date,A=[m.getFullYear(),m.getMonth(),m.getDate()],C=[];v.value&&(C[0]=v.value.getFullYear(),C[1]=v.value.getMonth());let g=[];return u.value.forEach(h=>{let N=s(h.range[0],h.range[1],h.type,C,A);N&&g.push(N)}),g}),p=(m,A)=>m==="year"?A.getFullYear():m==="month"?A.getMonth()+1:m==="day"?A.getDate():m==="hour"?A.getHours():m==="minute"?A.getMinutes():m==="seconds"?A.getSeconds():0,c=(0,t.ref)(),v=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let A;if(typeof m=="string"?m.length==0||m==="Invalid Date"?A=new Date:e.valueFormat?A=An(e,e.modelValue,e.valueFormat):A=An(e,m,So[e.type]):je(m)?A=m:A=new Date,!!A&&(!v.value||A.getTime()!==v.value.getTime())){v.value=A;let C=[];u.value.forEach(g=>{let h=p(g.type,A);C.push(h)}),c.value=C}},{immediate:!0});const S=m=>{if(!m||m.length===0){v.value=new Date;let A=[];u.value.forEach(C=>{let g=p(C.type,v.value);A.push(g)}),c.value=A;return}if(e.type==="date"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1));g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g)}else if(e.type==="datetime"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1)),h=m[3],N=m[4];g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g,h,N)}else if(e.type==="time"){const A=m[0],C=m[1],g=m[2],h=v.value??new Date;v.value=new Date(h.getFullYear(),h.getMonth(),h.getDate(),A,C,g)}else if(e.type==="year-month"){const A=m[0],C=m[1]-1;v.value=new Date(A,C)}else if(e.type==="month-day"){const A=(v.value??new Date).getFullYear(),C=m[0]-1,g=Math.min(m[1],r(A,C+1));g!==m[1]&&(m[1]=g),v.value=new Date(A,C,g)}else if(e.type==="datehour"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1)),h=m[3];g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g,h)}else if(e.type==="hour-minute"){const A=m[0],C=m[1],g=v.value??new Date;v.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),A,C)}c.value=m};return{columns:d,dateIndexs:c,show:a,onChange:m=>{S(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{S(m);const A=v.value??new Date;e.valueFormat?n("update:modelValue",Ul(e,A,e.valueFormat)):n("update:modelValue",A),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{a.value=m,n("update:visible",m)}}}});function um(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var al=ae(sm,[["render",um]]),cm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function dm(e){let n=e.format;return n||(n=So[e.type??"date"]),n}var fm={...he,...ge,...ko,...cm};function mm(e,n,o,l,a,r,i,u=!1){return{props:fm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),A=De(s,"modelValue",E=>E==null?null:typeof E=="string"?E.length==0?null:s.valueFormat?An(s,E,s.valueFormat)??E:An(s,E,So[s.type])??E:je(E)?E:null,y),C=(0,t.computed)(()=>{if(!A.value)return"";const E=dm(s);return Ul(s,A.value,E)}),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const E={};return N.value&&(E["text-align"]=N.value),E}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=()=>{T.value=!1};d.expose({showPicker:V,hidePicker:U});const W=E=>{T.value=E},$=E=>{if(A.value=E,s.valueFormat){let L=Ul(s,E,s.valueFormat);y("update:modelValue",L,{}),y("change",L,{})}else y("update:modelValue",E,{}),y("change",E,{})},P=E=>{let L=E.target.value;b.value=!0,y("focus",L,E)},M=E=>{setTimeout(()=>{b.value=!1},0);let L=E.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),y("blur",L,E)},q=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),O=(0,t.computed)(()=>ke(s.unit)>0),H=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),I=(0,t.computed)(()=>({hidden:!H.value})),G=E=>{A.value="",y("update:modelValue","",E),y("change","",E),y("clear",""),U()},te=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),_=(0,t.computed)(()=>{let E=ke(A.value)>0;return s.clearable&&E&&b.value}),K=E=>{_.value?G(E):V()},Y=(0,t.computed)(()=>_.value&&te.value?a:r),Z=(0,t.computed)(()=>({action:!0}));return be({setDisabled:E=>{p.value=E},setReadonly:E=>{v.value=E}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const E={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(E.disabled=!0);const L=[],X=(0,t.h)("input",E);L.push(X);const Q=[],ne=(0,t.h)(Y.value,{class:["action-icon"]}),z=(0,t.h)("view",{class:Z.value,onClick:K},{default:()=>[ne]});if(Q.push(z),O.value){const le=(0,t.h)("view",{class:I.value},[s.unit]);Q.push(le)}const R=(0,t.h)("view",{class:q.value},{default:()=>Q});L.push(R);const D={default:()=>L};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const x=ve(s,ko);x.valueFormat=null,x.disabled=!1,x.readonly=c.value||S.value,x.visible=T.value,x["onUpdate:visible"]=W,x.modelValue=A.value,x["onUpdate:modelValue"]=$,x.onClear=G;const F={};if(d.slots.top){const le=d.slots.top();F.top=()=>le}if(d.slots.bottom){const le=d.slots.bottom();F.default=()=>le}const j=(0,t.h)(i,x,F);D.hide=()=>[j];const ee={...ve(s,ge,he)};return s.prop&&(ee.prop=`${s.prop}_item`),o(ee,D)}}}}var{create:pm,componentName:hm,scope:vm}=J("date-item"),gm=pm(mm(hm,vm,qe,Me,oe.CircleClose,oe.Date,al,!1)),wo=gm,re={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay();const i=a.getDate();let u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((i+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{i=i==0?7:i;const u=1440*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:ym,scope:bm}=J("calendar-pane"),Sm=ym({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=(0,pe.useFoxI18n)(bm),r=l(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(a("weekdays")),u=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),s=(0,t.ref)(null),d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.ref)(null),v=(0,t.ref)(0),S=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>o.btn),y=(0,t.computed)(()=>o["top-info"]),k=(0,t.computed)(()=>o["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),b=E=>E.split("-"),m=E=>re.isEqual(f.currDate[0],E),A=E=>re.isEqual(f.currDate[1],E),C=E=>f.currDate?.length>0?f.currDate?.some(L=>re.isEqual(L,E)):!1,g=(E,L)=>L.curData[0]+"-"+L.curData[1]+"-"+re.getNumTwoBit(+E.day),h=(E,L)=>{const X=g(E,L),{type:Q}=e;return E.type=="curr"?re.isEqual(f.currDate,X)||(Q=="range"||Q=="week")&&(m(X)||A(X))||Q=="multiple"&&C(X)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(X,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,X)?`${f.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],X)&&re.compareDate(X,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},N=()=>{const{type:E}=e;if(E=="range"&&f.chooseData.length==2||E!="range"){let L=f.chooseData.slice(0);E=="week"&&(L={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",L),e.poppable&&n("update")}},B=(E,L,X=!1)=>{if(h(E,L)!=`${f.dayPrefix}--disabled`){const{type:Q}=e;let[ne,z]=L.curData,R=[...L.curData];if(R[2]=re.getNumTwoBit(Number(E.day)),R[3]=`${R[0]}-${R[1]}-${R[2]}`,R[4]=re.getWhatDay(+R[0],+R[1],+R[2]),Q=="multiple")if(f.currDate?.length>0){let D;f.currDate?.forEach((x,F)=>{x==R[3]&&(D=F)}),X?f.chooseData.push([...R]):D!==void 0?(f.currDate.splice(D,1),f.chooseData.splice(D,1)):(f.currDate.push(R[3]),f.chooseData.push([...R]))}else f.currDate=[R[3]],f.chooseData=[[...R]];else if(Q=="range"){let D=Object.values(f.currDate).length;D==2||D==0?f.currDate=[R[3]]:re.compareDate(f.currDate[0],R[3])?Array.isArray(f.currDate)&&f.currDate.push(R[3]):Array.isArray(f.currDate)&&f.currDate.unshift(R[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...R]]:re.compareDate(f.chooseData[0][3],R[3])?f.chooseData=[...f.chooseData,[...R]]:f.chooseData=[[...R],...f.chooseData]}else if(Q=="week"){let D=re.getWeekDate(ne,z,E.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(D[0],f.propStartDate)&&D.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,D[1])&&D.splice(1,1,f.propEndDate),f.currDate=D,f.chooseData=[re.formatResultDate(D[0]),re.formatResultDate(D[1])]}else f.currDate=R[3],f.chooseData=[...R];if(!X){let D=f.chooseData;Q=="week"&&(D={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",D),(e.isAutoBackFill||!e.poppable)&&N()}}},T=E=>{let[L,X,Q]=E;return{date:E,monthWeekNum:re.getMonthWeek(L,X,Q,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(L,X,Q,e.firstDayOfWeek)}},V=E=>{const L=E=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let X=parseInt(L.curData[0]),Q=parseInt(L.curData[1].toString().replace(/^0/,""));switch(E){case"prev":Q==1&&(X-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(X+=1),Q=Q==12?1:++Q;break}return[X+"",re.getNumTwoBit(Q),re.getMonthDays(String(X),String(Q))+""]},U=(E,L,X)=>{let{year:Q,month:ne}=X;return L=="prev"&&E>=7&&(E-=7),Array.from(Array(E),(z,R)=>({day:String(R+1),type:L,year:Q,month:ne}))},W=(E,L,X,Q)=>{E=E-e.firstDayOfWeek;let{year:ne,month:z}=X;return L=="prev"&&E>=7&&(E-=7),Array.from(Array(Q),(R,D)=>({day:String(D+1),type:L,year:ne,month:z})).slice(Q-E)},$=(E,L)=>{const X=re.getMonthPreDay(+E[0],+E[1]);let Q=Number(E[1])-1,ne=Number(E[0]);Q<=0&&(Q=12,ne+=1);const z=re.getMonthDays(String(E[0]),String(E[1])),R=re.getMonthDays(ne+"",Q+""),D={year:E[0],month:E[1]},x={curData:E,title:a("monthTitle",{year:D.year,month:D.month}),monthData:[...W(X,"prev",{month:String(Q),year:String(ne)},R),...U(z,"curr",D)],cssHeight:0,cssScrollHeight:0};x.cssHeight=39+64*(x.monthData.length>35?6:5);let F=0;f.monthsData.length>0&&(F=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),x.cssScrollHeight=F,L=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${E[0]}-${E[1]}-${E[2]}`))&&f.monthsData.push(x):!f.startData||!re.compareDate(`${E[0]}-${E[1]}-${E[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(x):f.unLoadPrev=!0},P=()=>{let E=e.startDate?e.startDate:re.getDay(0),L=e.endDate?e.endDate:re.getDay(365);f.propStartDate=E,f.propEndDate=L,f.startData=b(E),f.endData=b(L),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(f.startData[0]),month:Number(f.startData[1])},Q={year:Number(f.endData[0]),month:Number(f.endData[1])};let ne=Q.month-X.month;Q.year-X.year>0&&(ne=ne+12*(Q.year-X.year)),ne<=0&&(ne=1),$(f.startData,"next");let z=1;do $(V("next"),"next");while(z++<ne);if(f.monthsNum=ne,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(E&&re.compareDate(f.currDate[0],E)&&f.currDate.splice(0,1,E),L&&re.compareDate(L,f.currDate[1])&&f.currDate.splice(1,1,L),f.defaultData=[...b(f.currDate[0]),...b(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let R=[],D={};f.currDate.forEach(x=>{E&&!re.compareDate(x,E)&&L&&!re.compareDate(L,x)&&(Object.hasOwnProperty.call(D,x)||(R.push(x),D[x]=x))}),f.currDate=[...R],f.defaultData=[...b(R[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[R,D,x]=b(f.currDate[0]);f.currDate=re.getWeekDate(R,D,x,e.firstDayOfWeek),E&&re.compareDate(f.currDate[0],E)&&f.currDate.splice(0,1,E),L&&re.compareDate(L,f.currDate[1])&&f.currDate.splice(1,1,L),f.defaultData=[...b(f.currDate[0]),...b(f.currDate[1])]}}else f.currDate&&(E&&re.compareDate(f.currDate,E)?f.currDate=E:L&&!re.compareDate(f.currDate,L)&&(f.currDate=L),f.defaultData=[...b(f.currDate)])};be({scrollToDate:E=>{re.compareDate(E,f.propStartDate)?E=f.propStartDate:re.compareDate(E,f.propEndDate)||(E=f.propEndDate);let L=b(E);f.monthsData.forEach((X,Q)=>{if(X.title==a("monthTitle",{year:L[0],month:L[1]})&&s.value){let ne=f.monthsData[Q].cssScrollHeight-s.value.scrollTop;if(e.toDateAnimation){let z=0,R=setInterval(()=>{if(z++,s.value){let D=ne/10;s.value.scrollTop=s.value.scrollTop+D}z>=10&&(clearInterval(R),s.value&&(s.value.scrollTop=f.monthsData[Q].cssScrollHeight))},40)}else s.value.scrollTop=f.monthsData[Q].cssScrollHeight}})},initPosition:()=>{s?.value&&(s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let E=0,L=0;f.defaultData.length>0&&f.monthsData.forEach((ne,z)=>{ne.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(E=z),(e.type=="range"||e.type=="week")&&ne.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(L=z)}),H(f.monthsNum,E),f.currentIndex=E,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[L],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ne=>{let z=b(ne),R=f.currentIndex;f.monthsData.forEach((D,x)=>{D.title==a("monthTitle",{year:z[0],month:z[1]})&&(R=x)}),B({day:z[2],type:"curr"},f.monthsData[R],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let X=f.monthsData[f.monthsData.length-1],Q=X.cssHeight+X.cssScrollHeight;Xe(()=>{s?.value&&d?.value&&c?.value&&(v.value=s.value.clientHeight,d.value.style.height=`${Q}px`,s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Q/(f.monthsNum+1))}});const H=(E,L)=>{E>=3?L>0&&L<E?f.defaultRange=[L-1,L+3]:L==0?f.defaultRange=[L,L+4]:L==E&&(f.defaultRange=[L-2,L+2]):f.defaultRange=[0,E+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},I=(E,L)=>(e.type=="range"||e.type=="week")&&E.type=="curr"&&h(E,L)=="fox-calendar__day--active",G=(E,L)=>I(E,L)&&m(g(E,L)),te=(E,L)=>f.currDate.length>=2&&A(g(E,L))?I(E,L):!1,_=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},K=E=>{const L=`${E.year}-${E.month}-${Number(E.day)<10?"0"+E.day:E.day}`;return re.isEqual(L,re.date2Str(new Date))},Y=E=>{if(f.monthsData.length<=1)return;const L=E.target.scrollTop;let X=Math.floor(L/f.avgHeight);if(X==0)L>=f.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<f.monthsNum-1)L>=f.monthsData[X+1].cssScrollHeight&&(X+=1),L<f.monthsData[X].cssScrollHeight&&(X-=1);else{const Q=Math.round(L+v.value);Q<f.monthsData[X].cssScrollHeight+f.monthsData[X].cssHeight&&L>f.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=f.monthsNum&&Q>=f.monthsData[X+1].cssScrollHeight+f.monthsData[X+1].cssHeight&&(X+=1),X>=1&&L<f.monthsData[X-1].cssScrollHeight&&(X-=1)}f.currentIndex!==X&&(f.currentIndex=X,H(f.monthsNum,X)),f.yearMonthTitle=f.monthsData[X].title},Z=()=>{f.chooseData.splice(0),f.monthsData.splice(0),P()};return P(),(0,t.watch)(()=>e.defaultValue,E=>{E&&e.poppable&&Z()}),{weeks:u,compConthsData:S,showTopBtn:w,topInfo:y,bottomInfo:k,rangeTip:_,mothsViewScroll:Y,getClass:h,isStartTip:G,isEndTip:te,chooseDay:B,isCurrDay:K,confirm:N,months:s,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:d,weeksPanel:p,viewArea:c}}}),km={class:"fox-calendar__header"},wm={key:0,class:"fox-calendar__header-title"},Cm={key:1,class:"fox-calendar__header-slot"},Nm={key:2,class:"fox-calendar__header-subtitle"},Am={class:"fox-calendar__weekdays",ref:"weeksPanel"},Bm={class:"fox-calendar__panel",ref:"monthsPanel"},Tm={class:"fox-calendar__month-title"},Vm={class:"fox-calendar__days"},xm=["onClick"],$m={class:"fox-calendar__day-value"},Em={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Dm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Im={key:2,class:"fox-calendar__day-tips--curr"},qm={key:4,class:"fox-calendar__day-tip"},Pm={key:0,class:"fox-calendar__footer"};function Mm(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",km,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",wm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Nm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Am,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(i),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[(0,t.createElementVNode)("view",Bm,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",Tm,(0,t.toDisplayString)(i.title),1),(0,t.createElementVNode)("view",Vm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,i)]),onClick:p=>e.chooseDay(s,i)},[(0,t.createElementVNode)("view",$m,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Im,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",qm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,xm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var zm=ae(Sm,[["render",Mm]]),Lm=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(ye,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Rm=Lm,Fm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Bn={type:{type:[String],default:"one"},isAutoBackFill:{type:[Boolean],default:!1},toDateAnimation:{type:[Boolean],default:!0},poppable:{type:[Boolean],default:!0},showTitle:{type:[Boolean],default:!0},showSubTitle:{type:[Boolean],default:!0},visible:{type:[Boolean],default:!1},showToday:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:Om}=J("calendar"),Km=Om({components:{Wrapper:Rm,CalendarPane:zm},props:{...Bn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>o.btn),a=(0,t.computed)(()=>o["top-info"]),r=(0,t.computed)(()=>o.day),i=(0,t.computed)(()=>o["bottom-info"]),u=(0,t.ref)(null),s=y=>{u.value?.scrollToDate(y)},d=()=>{u.value?.initPosition()};(0,t.watch)(()=>e.visible,y=>{y&&(0,t.nextTick)(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:d});const p=()=>{n("update:visible",!1)},c=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{c()},update:p,close:c,select:y=>{n("select",y)},choose:y=>{c(),n("choose",y)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Um(e,n,o,l,a,r){const i=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var rl=ae(Km,[["render",Um]]),Ei={modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:[String],default:"-"},valueFormat:{type:[String],default:"YYYY-MM-DD"},format:{type:[String],default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:[String]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},Al=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&ke(e)>0?o=re.parser(e,n):o=new Date,o},ct=(e,n,o)=>(je(n)||(n=new Date),re.format(n,o)),dt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,re.date2Str(e),re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Hm={...he,...ge,...Bn,...Ei};function _m(e,n,o,l,a,{CloseIcon:r,MarkIcon:i},u=!1){return{props:Hm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{disabled:p,readonly:c,browse:v}=Ie(s),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),y=w(s,["placeholder"]),k=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),b=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},A=(E,L="one",X="YYYY-MM-DD")=>{if(Fm(E)){m();return}if(f.value&&Array.isArray(E)&&E.length==2){let Q,ne;typeof E[0]=="string"?(Q=Al(E[0],X),ne=Al(E[1],X)):(Q=E[0],ne=E[1]);let z=dt(Q),R=dt(ne);(b.startDate===null||b.startDate.getTime()!==Q.getTime()||b.endDate?.getTime()!==ne.getTime())&&(b.startDate=Q,b.startArray=z,b.endDate=ne,b.endArray=R)}else{let Q;typeof E=="string"?Q=Al(E,X):Q=E;let ne=dt(Q);(b.startDate===null||b.startDate.getTime()!==Q.getTime())&&(b.startDate=Q,b.startArray=ne)}};A(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,E=>{A(E,s.type,s.valueFormat),S("setValue",E)});const C=(0,t.computed)(()=>{if(b.startDate===null)return"";if(f.value){let E=ct(s,b.startDate,s.format),L=ct(s,b.endDate,s.format);return`${E} ${s.rangeSeparator} ${L}`}else{let E=ct(s,b.startDate,s.format);return s.showWeek&&(E=`${E} ${b.startArray[4]}`),E}}),g=(0,t.computed)(()=>b.startDate===null?null:f.value?[re.date2Str(b.startDate),re.date2Str(b.endDate??new Date)]:re.date2Str(b.startDate)),h="fox-input-item",N=(0,t.computed)(()=>({[h]:!0,"is-disabled":p.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const E={};return B.value&&(E["text-align"]=B.value),E}),V=(0,t.ref)(!1),U=()=>{c.value||p.value||(V.value=!0)},W=E=>{V.value=E},$=E=>{if(E){if(f.value&&Array.isArray(E)){let L=E[0],X=de(L[0]),Q=de(L[1]),ne=de(L[2]),z=new Date(X,Q-1,ne),R=E[1];X=de(R[0]),Q=de(R[1]),ne=de(R[2]);let D=new Date(X,Q-1,ne);b.startDate=z,b.startArray=dt(z),b.endDate=D,b.endArray=dt(D),s.valueFormat?S("update:modelValue",[ct(s,z,s.valueFormat),ct(s,D,s.valueFormat)],{}):S("update:modelValue",[z,D],{})}else{let L=E,X=de(L[0]),Q=de(L[1]),ne=de(L[2]),z=new Date(X,Q-1,ne);b.startDate=z,b.startArray=dt(z),s.valueFormat?S("update:modelValue",ct(s,z,s.valueFormat),{}):S("update:modelValue",z,{})}S("change",E,{})}},P=E=>{let L=E.target.value;k.value=!0,S("focus",L,E)},M=E=>{setTimeout(()=>{k.value=!1},0);let L=E.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),S("blur",L,E)},q=(0,t.computed)(()=>({[`${h}__append`]:!0,"is-disabled":p.value,"is-readonly":c.value})),O=(0,t.computed)(()=>ke(s.unit)>0),H=(0,t.computed)(()=>ke(s.unit)>0&&!k.value),I=(0,t.computed)(()=>({hidden:!H.value})),G=E=>{m(),S("update:modelValue",null,E),S("change","",E),S("clear","")},te=(0,t.computed)(()=>s.clearable&&!p.value&&!c.value),_=(0,t.computed)(()=>{let E=ke(C.value)>0;return s.clearable&&E&&k.value}),K=E=>{_.value?G(E):U()},Y=(0,t.computed)(()=>_.value&&te.value?r:i),Z=(0,t.computed)(()=>({action:!0}));return()=>{if(v.value==="on"&&(c.value||p.value))return a(C.value,d.slots);const E={class:N.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:U,onFocus:P,onBlur:M};u&&(E.disabled=!0);const L=[],X=(0,t.h)("input",E);L.push(X);const Q=[],ne=(0,t.h)(Y.value,{class:["action-icon"]}),z=(0,t.h)("view",{class:Z.value,onClick:K},{default:()=>[ne]});if(Q.push(z),O.value){const le=(0,t.h)("view",{class:I.value},[s.unit]);Q.push(le)}const R=(0,t.h)("view",{class:q.value},{default:()=>Q});L.push(R);const D={default:()=>L};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const x=ve(s,Bn);x.visible=V.value,x["onUpdate:visible"]=W,x["default-value"]=g.value,x.onChoose=$;const F={};if(d.slots.btn){const le=d.slots.btn();F.btn=()=>le}d.slots.day&&(F.day=d.slots.day),d.slots.topInfo&&(F.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(F.bottomInfo=d.slots.bottomInfo);const j=(0,t.h)(o,x,F);D.hide=()=>[j];const ee={...et(s,Bn,Ei)};return s.prop&&(ee.prop=`${s.prop}_item`),l(ee,D)}}}}var{componentName:jm,create:Wm,scope:Ym}=J("calendar-item"),Xm=Wm(_m(jm,Ym,rl,qe,Me,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Co=Xm,Qm={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Gm(e,{CheckNormal:n,Checked:o}){return{props:{...Qm},setup(l,{emit:a,slots:r}){const i=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>i.label.value===l.label),d=(0,t.computed)(()=>i.position),p=()=>{const y=[];if(s.value){if(r.checkedIcon)return r.checkedIcon();{const k=se(l.iconSize),f=l.checkedIcon??u.radio.Checked??o;return y.push("fox-radio__icon"),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=se(l.iconSize),f=l.icon??u.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:y})}}},c=()=>{const y=[`${e}__label`];return l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},v=()=>{const y=[`${e}__button`];return s.value&&y.push(`${e}__button--active`),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},S=()=>{s.value||l.disabled||l.readonly||i.updateValue(l.label)},w=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:S},[l.shape=="button"?v():w?[c(),p()]:[p(),c()]])}}}var{componentName:Zm,create:Jm}=J("radio"),e0=Jm(Gm(Zm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),il=e0,{componentName:yr,create:t0}=J("radio-group"),n0=t0({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=xt(),l=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${yr} ${yr}--${e.direction}`,style:a},n.default?.())}}}),sl=n0;function br(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(mn(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(Kt(e,r)===o)return a}return-1}function mn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function l0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function o0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var a0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function r0(){return new a0((0,t.getCurrentInstance)().proxy)}function i0(e){return{text:e,value:e}}var Di={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},s0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},u0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},c0={...he,...ge,...Di,...s0,...u0};function d0(e,n,o,l,a,r){return{props:c0,emits:["change","update:modelValue","setValue"],setup(i,u){const{innerDisabled:s,disabled:d,innerReadonly:p,readonly:c,browse:v}=Ie(i),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value}},i.prop??u.attrs.name),w=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),y=r0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([g,h])=>{if(g){const N=await y.load("radio",g,h);N.length>0?typeof N[0]=="string"?k.value=N.map(B=>i0(B)):k.value=N:k.value=[]}},{immediate:!0});let b=(0,t.ref)(-1);(0,t.watch)([()=>i.modelValue,()=>f.value],async([g,h])=>{b.value=br(i,h,g,i.valueType),S("setValue",g)},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;if(b.value===-1)return null;const g=f.value[b.value];return Kt(i,g)}),A=g=>{let h=null,N=null;if(f.value.length>0){let B=br(i,f.value,g,"value");b.value=B,B>=0&&(N=f.value[B],i.valueType==="text"?h=mn(i,N):i.valueType==="item"?h=N:h=Kt(i,N))}else h=g;S("update:modelValue",h),S("change",h,N)},C=()=>{let g=null,h=null;if(f.value.length>0&&b.value!==-1){let N=f.value[b.value];i.valueType==="text"?g=mn(i,N):i.valueType==="item"?g=N:g=Kt(i,N)}S("update:modelValue",g),S("change",g,h)};if(be({clear(){b.value!==-1&&(b.value=-1,C())},setDisabled:g=>{s.value=g},setReadonly:g=>{p.value=g}}),i.source){const g=()=>{const h=[],N=ve(i,Di);return f.value.forEach((B,T)=>{const V=Kt(i,B),U=l0(i,B);let W={...N,label:V,disabled:U};const $=o0(i,B,T);W={...W,...$},d.value&&(W.disabled=!0),c.value&&(W.readonly=!0);const P={};if(u.slots.icon&&(P.icon=u.slots.icon),u.slots.checkedIcon&&(P.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const q=u.slots.text(B);P.default=()=>[q]}else{const q=mn(i,B);P.default=()=>q}let M=(0,t.h)(r,W,P);h.push(M)}),h};return()=>{if(v.value==="on"&&(c.value||d.value))return l(m.value,u.slots,f.value);const h=g(),N=(0,t.h)(a,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>h}),B={default:()=>N};B.label=u.slots.default,B.prepend=u.slots.prepend,B.append=u.slots.append,B.fixedPreTip=u.slots.fixedPreTip,B.fixedTip=u.slots.fixedTip;const T={...ve(i,ge,he)};return i.prop&&(T.prop=`${i.prop}_item`),o(T,B)}}else return()=>{const g=u.slots.options?.()??[];return(0,t.h)(a,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m,"update:modelValue":A},{default:()=>g})}}}}var{componentName:f0,create:m0,scope:p0}=J("radio-item"),h0=m0(d0(f0,p0,qe,Me,sl,il)),No=h0,v0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:i}=xt(),u=On(),s=(0,t.inject)("parent",null),d=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,m=>{d.partialSelect=m});const p=(0,t.computed)(()=>!!s),c=(0,t.computed)(()=>p.value?s.value.value.includes(a.label):!!a.modelValue),v=(0,t.computed)(()=>p.value?s.position:a.textPosition);let S="";const w=(m,A)=>{S="click",i("update:modelValue",m),i("change",m,A)};(0,t.watch)(()=>a.modelValue,m=>{S=="click"?S="":i("change",m)});const y=()=>{const m=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const A=se(a.iconSize),C=a.indeterminateIcon??u.checkbox.Indeterminate??l;return m.push("fox-checkbox__icon--indeterminate"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else if(c.value){if(r.checkedIcon)return r.checkedIcon();{const A=se(a.iconSize),C=a.checkedIcon??u.checkbox.Checked??o;return m.push("fox-checkbox__icon"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else{if(r.icon)return r.icon();{const A=se(a.iconSize),C=a.icon??u.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}},k=()=>{const m=[`${e}__label`];return a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},f=()=>{const m=[`${e}__button`];return c.value&&m.push(`${e}__button--active`),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},b=m=>{if(!(a.disabled||a.readonly)){if(c.value&&d.partialSelect){d.partialSelect=!1,w(c.value,r.default?.()[0].children);return}if(w(!c.value,r.default?.()[0].children),p.value){const A=s.value.value,C=s.max.value,{label:g}=a,h=A.indexOf(g);h>-1?A.splice(h,1):h<=-1&&(A.length<C||!C)&&A.push(g),s.updateValue(A)}}};return(0,t.onMounted)(()=>{p.value&&s.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{p.value&&s.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${a.shape} ${v.value==="left"?`${e}--reverse`:""}`,onClick:b},[a.shape=="button"?f():[y(),k()]])}}),{componentName:g0,create:y0}=J("checkbox"),b0=y0(v0(g0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),ul=b0,{create:S0,componentName:Sr}=J("checkbox-group"),k0=S0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=xt(),l=(0,t.reactive)({children:[]}),a=d=>{d.proxy&&l.children.push(d.proxy)},r=d=>{d.proxy&&(l.children=l.children.filter(p=>p!==d.proxy))},i=d=>{o("update:modelValue",d),o("change",d)},u=d=>{const p=[];d&&l.children.forEach(c=>{c?.disabled||p.push(c?.label)}),o("update:modelValue",p)},s=()=>{o("update:modelValue",l.children.filter(d=>d?.disabled?!1:!e.modelValue.includes(d.label)).map(d=>d.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:i,link:a,unlink:r}),(0,t.watch)(()=>e.modelValue,d=>{o("change",d)}),be({toggleAll:u,toggleReverse:s}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Sr} ${Sr}--${e.direction}`,style:d},n.default?.())}}}),cl=k0;function kr(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Hl(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(pn(e,r)===o)return a}return-1}function Hl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function pn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function w0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function C0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var N0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function A0(){return new N0((0,t.getCurrentInstance)().proxy)}function B0(e){return{text:e,value:e}}var T0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ii={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},V0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]},separator:{type:[String],required:!1,default:", "}},x0={...he,...ge,...T0,...Ii,...V0};function $0(e,n,o,l,a,r){return{props:x0,emits:["change","update:modelValue","setValue"],setup(i,u){const{innerDisabled:s,disabled:d,innerReadonly:p,readonly:c,browse:v}=Ie(i),S=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),{emitEvent:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value}},i.prop??u.attrs.name),y=A0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([g,h])=>{if(g){const N=await y.load("checkbox",g,h);N.length>0?typeof N[0]=="string"?k.value=N.map(B=>B0(B)):k.value=N:k.value=[]}},{immediate:!0});const b=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>f.value],async([g,h])=>{const N=[];Array.isArray(g)&&g.forEach(B=>{let T=kr(i,h,B,i.valueType);T!==-1&&N.push(T)}),!xe(N,b.value)&&(b.value=N,w("setValue",N))},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;let g=[];return b.value.forEach(h=>{let N=f.value[h];g.push(pn(i,N))}),g}),A=g=>{let h=[],N=[];if(f.value.length>0){const B=[];Array.isArray(g)&&g.forEach(T=>{let V=kr(i,f.value,T,"value");V!==-1&&B.push(V);const U=f.value[V];N.push(U),i.valueType==="text"?h.push(Hl(i,U)):i.valueType==="item"?h.push(U):h.push(pn(i,U))}),b.value=B}else h=g;w("update:modelValue",h),w("change",h,N)},C=(0,t.ref)();if(be({toggleAll:g=>{C.value.toggleAll(g)},toggleReverse:()=>{C.value.toggleReverse()},setDisabled:g=>{s.value=g},setReadonly:g=>{p.value=g}}),i.source){const g=()=>{const h=[],N=ve(i,Ii);return f.value.forEach((B,T)=>{const V=pn(i,B),U=w0(i,B);let W={...N,label:V,disabled:U};const $=C0(i,B,T);W={...W,...$},d.value&&(W.disabled=!0),c.value&&(W.readonly=!0);const P={};if(u.slots.icon&&(P.icon=u.slots.icon),u.slots.checkedIcon&&(P.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(P.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const q=u.slots.text(B);P.default=()=>[q]}else{const q=Hl(i,B);P.default=()=>q}let M=(0,t.h)(r,W,P);h.push(M)}),h};return()=>{if(v.value==="on"&&(c.value||d.value))return l(m.value,u.slots,f.value,i.separator);const h=g(),N=(0,t.h)(a,{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>h}),B={default:()=>N};B.label=u.slots.default,B.prepend=u.slots.prepend,B.append=u.slots.append,B.fixedPreTip=u.slots.fixedPreTip,B.fixedTip=u.slots.fixedTip;const T={...ve(i,ge,he)};return i.prop&&(T.prop=`${i.prop}_item`),o(T,B)}}else return()=>{const g=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,textAlign:S.value,modelValue:m,"onUpdate:modelValue":A},{default:()=>g})}}}}var{componentName:E0,create:D0,scope:I0}=J("checkbox-item"),q0=D0($0(E0,I0,qe,Me,cl,ul)),Ao=q0,Bo={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:P0,create:M0}=J("switch"),z0=M0({components:{Loading1:oe.Loading1},props:{...Bo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=P0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let r="";const i=u=>{if(e.disabled||e.loading)return;r="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{r=="click"?r="":n("change",u)}),{classes:l,style:a,isActive:o,onClick:i}}}),L0={class:"fox-switch-button"};function R0(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",L0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(i,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var dl=ae(z0,[["render",R0]]),F0={...he,...ge,...Bo};function O0(e,n,o,l,a){return{props:F0,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=De(r,"modelValue",null,v),y=k=>{w.value=k,v("update:modelValue",k,{}),v("change",k,{})};return be({setDisabled:k=>{u.value=k},setReadonly:k=>{d.value=k}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const k={...ve(r,Bo),disabled:s.value||p.value,value:w.value,"onUpdate:modelValue":y},f=[],b=(0,t.h)(a,k);f.push(b);const m={default:()=>f};m.label=i.slots.default,m.fixedPreTip=i.slots.fixedPreTip,m.fixedTip=i.slots.fixedTip;const A={...ve(r,ge,he)};return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,o(A,m)}}}}var{componentName:K0,create:U0,scope:H0}=J("switch-item"),_0=U0(O0(K0,H0,qe,Me,dl)),To=_0,j0={...he,...ge,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function W0(e,n,o,l){return{props:j0,emits:["click","focus","blur","change"],setup(a,r){const i=Rn((0,t.computed)(()=>a.disabled)),u=Ln((0,t.computed)(()=>a.readonly)),{emitEvent:s}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),p=d(a,["placeholder"]),c=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,U=>{c.value=U,s("change",U)});const v=(0,t.computed)(()=>({[`${e}`]:!0})),S=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ce(c.value),"is-disabled":i.value,"is-readonly":u.value})),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),y=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),k=(0,t.computed)(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),f=(0,t.computed)(()=>ce(c.value)?p.placeholder.value:c.value),b=(0,t.computed)(()=>!ce(a.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),A=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),C=()=>{s("focus",c.value)},g=()=>{s("blur",c.value)},h=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":u.value})),N=(0,t.computed)(()=>ke(a.unit)>0),B=U=>{i.value==!0||u.value==!0||s("click")},T=(0,t.computed)(()=>a.icon??o),V=(0,t.computed)(()=>({action:!0}));return()=>{const U=[];if(typeof r.slots.content=="function"){const I=r.slots.content();U.push(I)}else{const I=[];if(k.value){const te={tabIndex:0,class:S.value,style:y.value,onFocus:C,onBlur:g};let _=null;r.slots.main?_=(0,t.h)("view",te,[r.slots.main(f.value)]):_=(0,t.h)("view",te,[f.value]),I.push(_)}if(b.value){const te={tabIndex:0,class:m.value,style:A.value,onFocus:C,onBlur:g};let _=null;r.slots.sub?_=(0,t.h)("view",te,[r.slots.sub(a.desc)]):_=(0,t.h)("view",te,[a.desc]),I.push(_)}const G=(0,t.h)("view",{class:v.value,onClick:B},I);U.push(G)}const W=[],$=se(a.iconSize);let P=r.slots.icon;if(!P){const I={width:$,height:$,class:["action-icon"]};P=(0,t.h)(T.value,I)}const M=(0,t.h)("view",{class:V.value,onClick:B},{default:()=>[P]});if(W.push(M),N.value){const I=(0,t.h)("view",{},[a.unit]);W.push(I)}const q=(0,t.h)("view",{class:h.value},{default:()=>W});U.push(q);const O={default:()=>U};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const H={...ve(a,ge,he)};return a.prop&&(H.prop=`${a.prop}_item`),l(H,O)}}}}var{componentName:Y0,create:X0,scope:Q0}=J("link-item"),G0=X0(W0(Y0,Q0,oe.ArrowRight,qe)),Vo=G0,xo={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:Z0,componentName:J0}=J("rate"),ep=Z0({props:{...xo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),a=(0,t.computed)(()=>({[J0]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,w)=>{if(e.disabled||e.readonly)return;let y=0;w===1&&e.modelValue===w||(y=w,e.allowHalf&&S==2&&(y-=.5)),r(y)},u=(S,w,y)=>{let k=0;for(let f=w.value.length-1;f>=0;f--){const b=w.value[f];if(S>b.offsetLeft){y?k=f+(S>b.offsetLeft+b.clientWidth/2?1:.5):k=f+1;break}}return k},s=lt(),d={onTouchStart(S){!e.touchable||e.readonly||s.start(S)},onTouchMove(S){e.touchable&&(s.move(S),s.isHorizontal()&&l.value&&(S.preventDefault(),r(u(s.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:a,...d,onClick:i,toPxString:me,renderIcon:(S,w)=>(0,t.h)(S,w),rateRefs:l,refRandomId:p,slots:o,customIcon:c}}}),tp=["id"],np={class:"fox-rate-item__icon--full"},lp={key:0,class:"fox-rate-item__icon--half"},op={key:1,class:"fox-rate-item__icon--half"};function ap(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:(0,t.normalizeStyle)(i<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",np,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:u=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?((0,t.openBlock)(),(0,t.createElementBlock)("view",lp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?((0,t.openBlock)(),(0,t.createElementBlock)("view",op,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:u=>e.onClick(2,i)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,tp))),128))],34)}var fl=ae(ep,[["render",ap]]),rp={...he,...ge,...xo};function ip(e,n,o,l,a){return{props:rp,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=De(r,"modelValue",null,v),y=k=>{w.value=k,v("update:modelValue",k,{}),v("change",k,{})};return be({setDisabled:k=>{u.value=k},setReadonly:k=>{d.value=k}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const k={...ve(r,xo),disabled:s.value,readonly:p.value,value:w.value,"onUpdate:modelValue":y},f=[],b=(0,t.h)(a,k);f.push(b);const m={default:()=>f};if(i.slots.default){const C=i.slots.default();m.label=()=>C}const A=ve(r,ge,he);return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,o(A,m)}}}}var{componentName:sp,create:up,scope:cp}=J("rate-item"),dp=up(ip(sp,cp,qe,Me,fl)),$o=dp,fp=/scroll|auto|overlay/i,qi=window;function mp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function _l(e,n=qi){let o=e;for(;o&&o!==n&&mp(o);){const{overflowY:l}=window.getComputedStyle(o);if(fp.test(l))return o;o=o.parentNode}return n}function Pi(e,n=qi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=_l(e.value,n))}),o}var Mi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,pp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function hp(e,n,o){return{props:{...pp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Pi(s),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),v=b=>b?b.offsetTop+v(b.offsetParent):0,S=()=>{let b=0,m=0,A="down";if(d.value==window){const C=Mi();s.value&&(b=v(s.value)+s.value.offsetHeight-C-window.innerHeight),m=C}else{const{scrollHeight:C,clientHeight:g,scrollTop:h}=d.value;b=C-g-h,m=h}return p.beforeScrollTop>m?A="up":A="down",p.beforeScrollTop=m,a("scroll-change",m),b<=l.threshold&&A=="down"},w=()=>{Xe(()=>{if(!S()||!l.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",w,l.useCapture)},k=()=>{d.value&&d.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{y(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{k()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,y())}),(0,t.onDeactivated)(()=>{f.value=!0,k()}),(0,t.watch)(()=>l.modelValue,b=>{b||(p.isInfiniting=!1)}),()=>{const b=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(p.isInfiniting){let C=r?.loading?.()??null;if(!C){let h=r?.loadingIcon?.()??null;h||(h=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const N=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);C=[h,N]}const g=(0,t.h)("view",{class:"fox-infinite__bottom-box"},C);m.push(g)}else if(!l.hasMore){let C=r?.finished?.()??null;C||(C=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),m.push(C))}const A=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:c.value,ref:s},[b,A])}}}}var{componentName:vp,create:gp,scope:yp}=J("infinite-loading"),bp=gp(hp(vp,yp,oe.Loading)),ml=bp,{componentName:Sp,create:kp}=J("button"),wp=kp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:a,shape:r,disabled:i,loading:u,color:s,plain:d,block:p}=(0,t.toRefs)(e);return{handleClick:v=>{!u.value&&!i.value&&n("click",v)},classes:(0,t.computed)(()=>{const v=Sp;return{[v]:!0,[`${v}--${l.value}`]:l.value,[`${v}--${a.value}`]:a.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:d.value,[`${v}--block`]:p.value,[`${v}--disabled`]:i.value,[`${v}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const v={};return s?.value&&(d.value?(v.color=s.value,v.background="#fff",s.value?.includes("gradient")||(v.borderColor=s.value)):(v.color="#fff",v.background=s.value)),v})}}}),Cp={class:"fox-button__wrap"};function Np(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Cp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var ut=ae(wp,[["render",Np]]),Ap={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Bp=(e,n,o)=>({props:{...Ap},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=xt(),{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["placeholder"]),s=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:l.background})),p=(0,t.computed)(()=>({background:l.inputBackground})),c=B=>{let T=B.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),r("update:modelValue",T,B),r("change",T,B)},v=(0,t.ref)({}),S=B=>{let T=B.target.value;s.active=!0,v.value=l.focusStyle,r("focus",T,B)},w=B=>{setTimeout(()=>{s.active=!1},0);let T=B.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),v.value={},r("blur",T,B)},y=B=>{r("update:modelValue","",B),r("change","",B),r("clear","")},k=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return k.value||(B.display="none"),B}),b=B=>{l.autoblur&&h.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),r("search",l.modelValue)},m=B=>{r("keyup-input",B)},A=B=>{r("click-input",B)},C=B=>{r("click-left-icon",l.modelValue,B)},g=(0,t.computed)(()=>({textAlign:l.inputAlign})),h=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&h.value.focus()});const N=()=>{const B=[];if(a.leftin){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:C},[a.leftin()]);B.push(W)}const T=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:h,style:g.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:c,onFocus:S,onBlur:w,onkeyup:m}),V=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:b},[T]);B.push(V);const U=[];if(l.clearable){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},[(0,t.h)(a?.clear?.()??l.clearIcon??o)]);U.push(W)}if(a.rightin){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);U.push(W)}if(U.length>0){const W=(0,t.h)("view",{class:`${e}__input-inner-right`},U);B.push(W)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...p.value,...v.value}},B)};return()=>{const B=[];if(l.label){const V=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(V)}if(a.leftout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);B.push(V)}const T=N();if(B.push(T),a.rightout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);B.push(V)}return(0,t.h)("view",{class:`${e}`,style:d.value},B)}}}),{componentName:Tp,create:Vp,scope:xp}=J("searchbar"),$p=Vp(Bp(Tp,xp,oe.CircleClose)),pl=$p,Tn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ep(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(hn(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(zi(e,r)===o)return a}return-1}function hn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function zi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ip(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var qp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o,l,a,r,i){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof i=="function"&&(s=s.filter(i));let d=(o-1)*l,p=d+l;p>s.length&&(p=s.length);const c=s.slice(d,p);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,a,r]);const u=nt(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(u,null,[n,o,l,a]))}};function Pp(){return new qp((0,t.getCurrentInstance)().proxy)}function Mp(e,n,o,l,a,r,i,u,s,d,p){return{props:Tn,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:v}){const{emitEvent:S}=xt(),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),y=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),k=Pp(),f=(0,t.ref)([]),b=(0,t.ref)(0),m=(0,t.ref)(""),A=(0,t.shallowRef)(null),C=(0,t.computed)(()=>{const z={};return c.params&&Object.assign(z,c.params),ce(m.value)||(z[`${c.searchKey}`]=m.value),A.value&&Object.assign(z,A.value),z});let g=!0;const h=async(z,R,D)=>{try{if(B.value===!1)return;let x=null;ce(m.value)||(x=j=>{const ee=hn(c,j);if(typeof ee=="string"&&ee.includes(m.value))return!0;const le=wr(c,j);return!!(typeof le=="string"&&le.includes(m.value))});const F=await k.load("actionsheet",z,R,D,C.value,g,x??void 0);g=!1,Array.isArray(F)?(f.value=F,b.value=1,B.value=!1):!Array.isArray(F.page)||F.page.length===0?(console.warn("[FoxUI] can not load more data"),B.value=!1):(Reflect.apply([].push,f.value,F.page),b.value=Math.ceil(f.value.length/c.pageSize),(F.totalSize&&f.value.length>=F.totalSize||D<F.page.length)&&(B.value=!1)),N.value=!1}catch(x){console.error("[FoxUI] ActionSheet load more data fail",x),B.value=!0,b.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},N=(0,t.ref)(!1),B=(0,t.ref)(!0),T=async()=>{if(!c.source){N.value=!1;return}await h(c.source,b.value+1,c.pageSize)};let V=null;(0,t.watch)(m,(z,R)=>{V&&(clearTimeout(V),V=null),ce(z)&&!ce(R)&&(V=setTimeout(()=>{W()},c.searchDelayTriggerClear))});const U=()=>{B.value=!0,b.value=0,f.value=[],c.source&&T()},W=()=>{U()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([z,R,D])=>{c.source&&U()},{immediate:!0});const $=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),P=(0,t.ref)([]);let M=null;const q=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,z=>{q.value!==z&&(q.value=z),z?M=[...P.value]:M=null});const O=(z,R)=>{const D=[];return Array.isArray(z)||(z=[z]),z.forEach(x=>{let F=Ep(c,R,x,c.valueType);F!==-1&&D.push(F)}),xe(D,P.value)?!1:(P.value=D,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([z,R],[D,x])=>{O(z,R)&&I(H())},{deep:!0});const H=()=>{const z=[],R=[],D=[];for(let ee of P.value){const le=f.value[ee];R.push(le);const ie=hn(c,le);if(D.push(ie),c.valueType==="item")z.push(le);else if(c.valueType==="text")z.push(ie);else{const ue=zi(c,le);z.push(ue)}}let x=null,F=null,j=null;return c.multiple?(x=z,F=D,j=R):(x=z[0]??null,F=D[0]??null,j=R[0]??null),{value:x,text:F,item:j}},I=z=>{S("update:modelValue",z.value),S("update:text",z.text),S("change",z.value,z.item,z.text)},G=()=>{M&&(P.value=M)},te=z=>{const R=P.value.indexOf(z);c.multiple?R===-1?P.value.push(z):P.value.splice(R,1):R===-1?P.value=[z]:P.value=[],($.value||!c.poppable&&!c.showFooter)&&Y()},_=z=>{q.value=z,S("update:visible",z)},K=()=>{const z=()=>{G(),_(!1)},R=c.beforeMethod??c.beforeClose;if(typeof R=="function"){const D=R("close");bt(D)?D.then(x=>{x!==!1&&z()}).catch(()=>{z()}):D!==!1&&z()}else z()},Y=()=>{const z=H(),R=()=>{I(z),_(!1)},D=c.beforeMethod??c.beforeClose;if(typeof D=="function"){const x=D("confirm",z.value,z.item,z.text);bt(x)?x.then(F=>{F!==!1&&R()}).catch(()=>{R()}):x!==!1&&R()}else R()},Z=()=>{let z=y.title.value??"";return v.title&&(z=v.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[z]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:K})])},E=()=>{let z=null;return v.search?z=v.search():z=(0,t.h)(r,{onSearch:U,placeholder:y.seachPlaceholder.value,disabled:c.disabled,modelValue:m.value,"onUpdate:modelValue":R=>{m.value=R}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[z])},L=(z,R,D,x,F)=>{if(v.optionLabel)return v.optionLabel({text:z,checked:R,disabled:D,subText:x,item:F});const j=[],ee=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[z]);if(j.push(ee),x){const le=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[x]);j.push(le)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},j)},X=(z,R,D,x)=>v.optionIcon?v.optionIcon({checked:z,disabled:R,iconSize:D,item:x}):z?v.checkedIcon?v.checkedIcon({disabled:R,item:x}):(0,t.h)(c.checkedIcon??u,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]}):v.icon?v.icon({disabled:R,item:x}):(0,t.h)(c.icon??i,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]}),Q=()=>{const z=[];for(let R=0;R<f.value.length;R++){const D=f.value[R],x=hn(c,D),F=wr(c,D),j=["fox-actionsheet__list-item"],ee={};let le=Dp(c,D),ie=c.iconSize?se(c.iconSize):null;const ue=Ip(c,D,R);ue&&(le=le||ue.disabled,ue.class&&j.push(ue.class),ue.style&&Object.assign(ee,ue.style)),le=!!(c.disabled||le);const Ke=P.value.includes(R);le&&j.push("is-disabled"),Ke&&j.push("is-checked");const Ue={class:j,style:ee,key:`${R}`,onClick:()=>{le||te(R)}};let ze=[];if(v.option)ze.push(v.option({item:D,checked:Ke,disabled:le}));else{const ji=L(x,Ke,le,F,D);ze.push(ji);const Wi=X(Ke,le,ie,D);ze.push(Wi),c.textPosition==="right"&&ze.reverse()}const It=(0,t.h)("view",Ue,ze);z.push(It)}return z},ne=()=>{let z=[];if(v.buttons)z=v.buttons();else{const R=(0,t.h)(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Y,disabled:c.disabled},{default:()=>y.confirmText.value});z.push(R)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[z])};return be({search:async(z=null,R=!0)=>{A.value=z&&(0,t.toRaw)(z),(0,t.triggerRef)(A),R&&(B.value=!0,b.value=0,f.value=[]),(0,t.nextTick)(()=>{T()})},clear:()=>{B.value=!0,b.value=0,f.value=[]},confirm:()=>{Y()},cancel:()=>{K()}}),()=>{const z=[];if(c.showHeader){const le=Z();z.push(le)}if(c.showSearchbar){const le=E();z.push(le)}let R=null;if(v.content)R=v.content();else{const le=Q();R=(0,t.h)(l,{hasMore:B.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":ie=>{N.value=ie},onLoadMore:T},{default:()=>le})}const D={};c.optionsHeight&&(D.height=c.optionsHeight);const x={"fox-actionsheet__list":!0};c.poppable||(x["fox-actionsheet__list--inner"]=!0);const F=(0,t.h)("view",{class:x,style:D},[R]);if(z.push(F),c.showFooter&&!$.value){const le=ne();z.push(le)}const j=(0,t.h)("view",{class:"fox-actionsheet"},z);if(!c.poppable)return j;const ee=["fox-actionsheet__popup"];return c.popClass&&ee.push(c.popClass),(0,t.h)(o,{popClass:ee.join(" "),visible:q.value,closeable:!1,"onUpdate:visible":_,position:c.position,round:"round",onClickOverlay:K,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>j})}}}}var{componentName:zp,create:Lp,scope:Rp}=J("actionsheet-pane"),Fp=Lp(Mp(zp,Rp,ye,ml,ut,pl,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),hl=Fp,Li={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}},Op={...he,...ge,...Li,...Tn};function Kp(e,n,o,l,a,r,i,u){return{props:Op,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=De(s,"modelValue",null,y),A=(0,t.ref)(""),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const X={};return N.value&&(X["text-align"]=N.value),X}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=X=>{T.value=X},W=X=>{m.value=X,y("update:modelValue",X)},$=(X,Q)=>{y("change",X,Q)},P=X=>{let Q=X.target.value;b.value=!0,y("focus",Q,X)},M=X=>{setTimeout(()=>{b.value=!1},0);let Q=X.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),y("blur",Q,X)},q=X=>{A.value=X,y("update:text",X)},O=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),H=(0,t.computed)(()=>ke(s.unit)>0),I=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),G=(0,t.computed)(()=>({hidden:!I.value})),te=X=>{m.value="",y("update:modelValue","",X),y("change","",X),y("clear","")},_=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),K=(0,t.computed)(()=>ke(m.value)>0&&b.value),Y=X=>{K.value?te(X):V()},Z=(0,t.computed)(()=>K.value&&_.value?a:r),E=(0,t.computed)(()=>({action:!0})),L=(0,t.ref)(null);return be({search:X=>{L.value&&L.value.search(X)},clear:()=>{L.value&&L.value.clear},confirm:X=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:X=>{p.value=X},setReadonly:X=>{v.value=X}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const X={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(X.disabled=!0);const Q=[],ne=(0,t.h)("input",X);Q.push(ne);const z=[],R=(0,t.h)(Z.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:E.value,onClick:Y},{default:()=>[R]});if(z.push(D),H.value){const ie=(0,t.h)("view",{class:G.value},[s.unit]);z.push(ie)}const x=(0,t.h)("view",{class:O.value},{default:()=>z});Q.push(x);const F={default:()=>Q};F.label=d.slots.default,F.prepend=d.slots.prepend,F.append=d.slots.append,F.fixedPreTip=d.slots.fixedPreTip,F.fixedTip=d.slots.fixedTip;const j=ve(s,Tn);j.ref=L,j.class=s.actionSheetClass,j.disabled=c.value||S.value,j.visible=T.value,j["onUpdate:visible"]=U,j.modelValue=m.value,j["onUpdate:modelValue"]=W,j.text=A.value,j["onUpdate:text"]=q,j.onChange=$,j.poppable=!0,j["text-position"]=s.textPosition;const ee=(0,t.h)(i,j,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});F.hide=()=>[ee];const le={...et(s,Li,Tn)};return s.prop&&(le.prop=`${s.prop}_item`),o(le,F)}}}}var{componentName:Up,create:Hp,scope:_p}=J("actionsheet-item"),jp=Hp(Kp(Up,_p,qe,Me,oe.CircleClose,oe.ArrowRight,hl)),Eo=jp,Do={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:[Boolean],default:!1},readonly:{type:[Boolean],default:!1}},{componentName:Wp,create:Yp}=J("input-number"),Xp=Yp({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Do},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const S=Wp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),l=S=>Number(S).toFixed(Number(e.decimalPlaces)),a=S=>{const w=S.target;n("update:modelValue",w.valueAsNumber,S)},r=(S,w)=>{let y=l(S);n("update:modelValue",y,w),n("change",y,w)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,u=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,s=S=>{n("reduce",S),u()?r(Number(e.modelValue)-Number(e.step),S):n("overlimit",S,"reduce")},d=S=>{n("add",S),i()?r(Number(e.modelValue)+Number(e.step),S):n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},c=S=>{if(e.disabled||e.readonly)return;let w=S.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,S),n("blur",S)},v=S=>{let w=Number(S);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=v(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:o,change:a,blur:c,focus:p,add:d,addAllow:i,reduce:s,reduceAllow:u,toPxString:me}}}),Qp=["min","max","disabled","readonly","value"];function Gp(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Minus"),u=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(i,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,Qp),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var vl=ae(Xp,[["render",Gp]]),Zp={...he,...ge,...Do};function Jp(e,n,o,l,a){return{props:Zp,emits:["change","update:modelValue","setValue","add","reduce"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!p.value}},r.prop??i.attrs.name),S=(0,t.computed)(()=>{const b=[`${e}`];return r.textAlign==="left"?b.push("is-left"):r.textAlign==="center"?b.push("is-center"):r.textAlign==="right"&&b.push("is-right"),b.join(" ")}),w=De(r,"modelValue",null,v),y=b=>{w.value=b,v("update:modelValue",b,{}),v("change",b,{})},k=b=>{v("add",b)},f=b=>{v("reduce",b)};return be({setDisabled:b=>{u.value=b},setReadonly:b=>{d.value=b}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const b={"left-icon":i.slots["left-icon"],"right-icon":i.slots["right-icon"]},m=ve(r,Do),A=(0,t.h)(a,{...i.attrs,...m,disabled:s.value,readonly:p.value,value:w.value,"onUpdate:modelValue":y,onAdd:k,onReduce:f},b),C=[];C.push(A);const g={default:()=>C};g.label=i.slots.default,g.fixedPreTip=i.slots.fixedPreTip,g.fixedTip=i.slots.fixedTip;const h={...ve(r,ge,he)};return r.prop&&(h.prop=`${r.prop}_item`),h["content-class"]=S.value,o(h,g)}}}}var{componentName:eh,create:th,scope:nh}=J("input-number-item"),lh=th(Jp(eh,nh,qe,Me,vl)),Io=lh,oh={...go,...yo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ah(e,n,o,l){return{props:oh,emits:["update:modelValue","change"],setup(a,{emit:r,slots:i}){const u=e,s=(0,t.computed)(()=>{const y=[`${u}`];return a.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),d=(0,t.computed)(()=>{const y={};if(a.width){const k=me(a.width);k&&(y.width=k)}if(a.height){const k=me(a.height);k&&(y.height=k)}return y}),p=(0,t.computed)(()=>[`${u}__bar`]),c=(0,t.computed)(()=>[`${u}__container`]),v=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,y=>{v.value!==y&&(v.value=y)});const S=y=>{r("change",y)},w=y=>{v.value!==y&&(v.value=y,r("update:modelValue",y))};return()=>{const{getChildren:y}=Yn(i.default),k=y(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let N=0;N<k.length;N++){const B=k[N].props??{},T={text:B.label??"",value:B["pane-key"]??B.paneKey??""};f.push(T)}const b={};for(let N in i)N!=="default"&&(b[N]=i[N]);const m=ve(a,go);Object.assign(m,{data:f,class:p.value,modelValue:v.value,direction:a.direction,onChange:S,"onUpdate:modelValue":w});const A=(0,t.h)(o,m,b),C={default:()=>k},g=ve(a,yo);Object.assign(g,{class:c.value,modelValue:v.value,onChange:S,"onUpdate:modelValue":w});const h=(0,t.h)(l,g,C);return(0,t.h)("view",{class:s.value,style:d.value},[A,h])}}}}var{create:rh,componentName:ih,scope:sh}=J("tabs-frame"),uh=rh(ah(ih,sh,on,an)),qo=uh,ch={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function dh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Cr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Nr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function fh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ar(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Br(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Tl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var mh=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function ph(){return new mh((0,t.getCurrentInstance)().proxy)}function hh(e,n,o,l){return{props:{...ch},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:i}){const u=e,s=ph(),d=(0,t.ref)([]),p=(0,t.computed)(()=>d.value.filter(_=>fh(a,_)!==!1)),c=(0,t.ref)(-1),v=()=>{const _=a.modelValue,K=p.value.findIndex(Y=>Cr(a,Y)===_);c.value!==K&&(c.value=K,a.scroll&&G(K,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{v()});const S=_=>c.value===_,w=_=>{if(_<0&&_>=p.value.length)return!1;const K=p.value[_],Y=(Tl(a,K,_)??{}).status??Bl(a,K);return S(_)||Y},y=(0,t.computed)(()=>{const _={[u]:!0};return a.mode?_[`is-${a.mode}`]=!0:a.direction&&(_[`is-${a.direction}`]=!0),a.scroll&&(_["is-scroll"]=!0),_}),k=(0,t.computed)(()=>({})),f=(_,K,Y,Z,E)=>{const L={[`${u}__step`]:!0};return E&&(L[`${E}`]=!0),L[`${b.value}`]=!0,Z&&(L["is-doit"]=!0),_===c.value?L["is-active"]=!0:K==="done"?L["is-done"]=!0:K==="error"?L["is-error"]=!0:K==="half"?L["is-half"]=!0:Y?L["is-disabled"]=!0:L["is-normal"]=!0,L},b=(0,t.computed)(()=>{let _=a.align;if(!_){if(a.mode==="simple")return"start";a.direction==="vertical"?_="start":_="center"}return _}),m=(_,K={})=>{const Y={...K};if(b.value==="start"&&_===p.value.length-1)Y.flex="0 0 auto";else if(a.step){const Z=typeof a.step=="number"||En(a.step)?me(a.step):a.step;a.direction==="vertical"?Y.height=Z:Y.width=Z}else Y.flex="1 1 100%";return Y},A=(_,K)=>{let Y={};if(K<p.value.length-1){const Z=K+1;w(K)&&w(Z)?a.direction==="vertical"?Y.height="100%":Y.width="100%":Y.opacity="0"}return Y},C=_=>p.value.length-1===_,g=(_,K)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const Y=c.value,Z=K;c.value=K,a.scroll&&G(K,!1);const E=Cr(a,_);i("update:modelValue",E),i("change",E,{fromIndex:Y,currentIndex:Z,item:_,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},h=(0,t.ref)(!0),N=async(_,K)=>{try{const Y=await s.load("stesbar",_,K);Array.isArray(Y)&&(d.value=Y),h.value=!1}catch(Y){console.error("[FoxUI] Load StepsBar Data Fail",Y),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([_,K])=>{_&&N(_,K)},{immediate:!0});const B=(_,K,Y,Z,E,L)=>{const X=[];let Q=null;if(!L)if(r.icon)Q=r.icon({item:_,index:K,status:Z});else if(Z==="done"){const ne={};a.iconSize&&(ne.width=a.iconSize,ne.height=a.iconSize),Q=(0,t.h)(a.icon??o,ne)}else Q=(0,t.h)("span",{},[Y??`${K+1}`]);return Q&&X.push(Q),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:_,index:K}),!E&&g(_,K)}},X)},T=(_,K,Y)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:A(_,K)})]),V=()=>{let _=null;if(r.markIcon)_=r.markIcon();else{const K={};a.iconSize&&(K.width=a.markIconSize,K.height=a.markIconSize),_=(0,t.h)(a.markIcon??l,K)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[_])},U=(_,K,Y,Z,E,L)=>{const X=[];if(!C(K)){const ne=T(_,K,Z);X.push(ne)}const Q=B(_,K,Y,Z,E,L);return X.push(Q),(0,t.h)("view",{class:"fox-steps-bar__head"},X)},W=(_,K,Y,Z)=>{let E=null;return r.main?E=r.main({item:_,index:K,status:Y}):E=dh(a,_),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{i("click",{item:_,index:K}),!Z&&g(_,K)}},[E])},$=(_,K,Y)=>{let Z=null;return r.sub?(Z=r.sub({item:_,index:K,status:Y}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Z])):null},P=(_,K)=>{const Y=Tl(a,_,K)??{},Z=Y.status??Bl(a,_);let E=Nr(a,_);Y.disabled===!0&&(E=!0),a.disabled===!0&&(E=!0);let L=Ar(a,_);Y.doit===!0&&(L=!0);const X=Y.label??Br(a,_),Q=[],ne=B(_,K,X,Z,E,L);ne&&Q.push(ne);const z=W(_,K,Z,E);if(z&&Q.push(z),!C(K)){const F=T(_,K,Z);F&&Q.push(F)}const R=(0,t.h)("view",{class:"fox-steps-bar__head"},Q),D=Y.class,x=Y.style??{};return(0,t.h)("view",{ref:I(K),class:f(K,Z,E,L,D),style:m(K,x)},[R])},M=(_,K)=>{const Y=Tl(a,_,K)??{},Z=Y.status??Bl(a,_);let E=Nr(a,_);Y.disabled===!0&&(E=!0),a.disabled===!0&&(E=!0);let L=Ar(a,_);Y.doit===!0&&(L=!0);const X=Y.label??Br(a,_),Q=[],ne=a.layout;for(let D of ne)if(D==="head"){const x=U(_,K,X,Z,E,L);Q.push(x)}else if(D==="main"){const x=W(_,K,Z,E);Q.push(x)}else if(D==="sub"){const x=$(_,K,Z);Q.push(x)}else if(D==="mark"){const x=V();Q.push(x)}const z=Y.class,R=Y.style??{};return(0,t.h)("view",{ref:I(K),class:f(K,Z,E,L,z),style:m(K,R)},Q)},q=(0,t.ref)(),O=(0,t.ref)([]),H=(_,K)=>{O.value[K]=_},I=_=>K=>{H(K,_)},G=(_,K)=>{const Y=q.value,Z=O.value;if(!Y||!Z||!Z[_])return;const E=Z[_];let L=0;a.direction==="vertical"?L=E.offsetTop-(Y.offsetHeight-E.offsetHeight)/2:L=E.offsetLeft-(Y.offsetWidth-E.offsetWidth)/2,te(Y,L,K?0:.3,a.direction)},te=(_,K,Y,Z)=>{let E=0;const L=Z==="horizontal"?_.scrollLeft:_.scrollTop,X=Y===0?1:Math.round(Y*1e3/16);function Q(){Z==="horizontal"?_.scrollLeft+=(K-L)/X:_.scrollTop+=(K-L)/X,++E<X&&He(Q)}Q()};return()=>{let _=[];if(a.mode==="simple")for(let Y=0;Y<p.value.length;Y++){const Z=p.value[Y],E=P(Z,Y);_.push(E)}else for(let Y=0;Y<p.value.length;Y++){const Z=p.value[Y],E=M(Z,Y);_.push(E)}const K={ref:q,class:y.value,style:k.value};return _.length===0&&typeof r.default=="function"&&(_=r.default()),(0,t.h)("view",K,_)}}}}var{componentName:vh,create:gh,scope:yh}=J("steps-bar"),bh=gh(hh(vh,yh,oe.Checklist,oe.ArrowRight)),Po=bh;function Sh(e){e.stopPropagation()}var kh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=tl()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=nl(),o=(l,a,r,i)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Sh(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function wh(e,n){return new kh(e,n)}var Ch={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Nh=(e,n,o,l=!1)=>({props:{...Ch},emits:["click"],setup(a,{slots:r,emit:i}){let u=-1,s=-1;const d=(0,t.reactive)({top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:0,height:0}),p=(0,t.computed)(()=>{const C=[`${e}`];return a.customClass&&C.push(a.customClass),C}),c=C=>typeof C=="string"&&!En(C)?C:`${C}px`,v=(0,t.computed)(()=>{const C={};return ce(d.top)||(C.top=c(d.top)),ce(d.right)||(C.right=c(d.right)),ce(d.bottom)||(C.bottom=c(d.bottom)),ce(d.left)||(C.left=c(d.left)),ce(a.width)||(C.width=c(a.width)),ce(a.height)||(C.height=c(a.height)),ce(a.color)||(C.color=a.color),ce(a.background)||(C.background=a.background),ce(a.borderRadius)||(C["border-radius"]=a.borderRadius),ce(a.zIndex)||(C["z-index"]=a.zIndex),C}),S=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{i("click")},y=(0,t.ref)(null),k=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},A=wh(C=>{if(!y.value)return;const g=y.value;k(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,f.x=d.left,f.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},C=>{if(!y.value)return;const g=y.value;k();let h=f.x+C.x;h<0&&(h=0),h>u-d.width&&(h=u-d.width);let N=f.y+C.y;N<0&&(N=0),N>s-d.height&&(N=s-d.height),d.left=h,d.top=N,g.style.left=`${h}px`,g.style.top=`${N}px`});return(0,t.onMounted)(()=>{if(a.draggable&&y.value){const C=[y.value];A.open(C)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&y.value&&A.close()}),()=>{let C=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)C=g;else{const h=(0,t.h)(o,{class:S.value});C.push(h)}return(0,t.h)("view",{ref:h=>{y.value=h},class:p.value,style:v.value,onClick:w},C)}}}),{componentName:Ah,create:Bh,scope:Th}=J("floating-button"),Vh=Bh(Nh(Ah,Th,oe.Uploader,!1)),Mo=Vh,xh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function $h(e,n,o){return{props:{...xh},emits:["click","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),d=De(l,"modelValue"),p=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),v=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{a("update:modelValue",!d.value)};return()=>{const w=[];if(p.value){const f=(0,t.h)("span",{class:c.value},[p.value]);w.push(f)}const y={class:v.value},k=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(k){const f=(0,t.h)("view",y,[k]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:s.value,onClick:S},w)}}}}var{componentName:Eh,create:Dh,scope:Ih}=J("more-button"),qh=Dh($h(Eh,Ih,oe.RectUp)),zo=qh,Ph={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Mh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zh(e,n,o){return{props:{...Ph},emits:["update:visible"],setup(l,{attrs:a,slots:r,emit:i}){const{toLocaleRefs:u}=(0,pe.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,p=(0,t.ref)(l.visible),c=C=>{p.value=C,i("update:visible",C)};(0,t.watch)(()=>l.visible,C=>{p.value!==C&&(p.value=C)});const v=C=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(C)}catch(g){console.error(g)}},S=()=>{v("confirm")},w=()=>{v("cancel")},y=()=>{l.closeOnClickOverlay!==!1&&v("close")},k=(C,g)=>Mh(C)?(g.src=C,(0,t.h)("img",g)):typeof C=="string"?(Array.isArray(g.class)?g.class.push(C):g.class&&typeof g.class=="object"?g[`${C}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${C}`:g.class=C,(0,t.h)(l.tag,g)):(0,t.h)(C,g),f=()=>{const C=[];if(l.icon){const g={class:[`${d}__header-icon`]},h=k(l.icon,g);C.push(h)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);C.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:y},h=k(l.closeIcon,g);C.push(h)}return(0,t.h)("view",{class:[`${d}__header`]},C)},b=(C,g)=>{const h=[];if(g){const N=(0,t.h)("view",{class:`${d}__group-title`},[g]);h.push(N)}if(C){const N=[];Array.isArray(C)||(C=[C]);for(let B of C){const T=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:B});N.push(T)}if(N.length>0){const B=(0,t.h)("view",{class:`${d}__group-rows`},N);h.push(B)}}return h.length===0?null:(0,t.h)("view",{class:`${d}__group`},h)},m=()=>{const C=[];if(typeof l.message=="string")C.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const h=b(g);C.push(h)}else{const h=b(g.content,g.title);C.push(h)}else if(typeof l.message=="function"){const g=l.message();C.push(g)}else{const g=l.message;C.push(g)}return(0,t.h)("view",{class:`${d}__body`},C)},A=()=>{const C=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const h=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);C.push(h)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:S};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const h=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);C.push(h)}return C.length===0?null:(0,t.h)("view",{class:`${d}__footer`},C)};return()=>{const C=[],g=f();g&&C.push(g);const h=m();h&&C.push(h);const N=A();N&&C.push(N);const B=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},C),T=[`${d}__popup`];l.popClass&&T.push(l.popClass);const V={};return l.width&&(V.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(V.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:T.join(" "),style:V,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:y,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:Lh,create:Rh,scope:Fh}=J("messagebox"),Oh=Rh(zh(Lh,Fh,ye)),Kh=Oh,Uh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Hh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",_h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",jh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Wh=new Qn,Yh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Xh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),a=`messagebox-${Wh.get()}`;l.id=a,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${a}`);i&&i.parentNode?.removeChild(i)};const r=(0,t.createVNode)(Kh,e);n.appendChild(l),(0,t.render)(r,l)},rt={show:(e,n,o,l)=>{const a={...Yh};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),o&&typeof o=="object"?Object.assign(a,o):(typeof o=="string"&&(a.title=o),l&&typeof l=="object"?Object.assign(a,l):typeof l=="string"&&(a.type=l)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=_h:r==="warning"?a.icon=jh:r==="error"?a.icon=Uh:a.icon=Hh),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=oe.Close),new Promise((i,u)=>{const s=a.callback;a.callback=d=>{if(typeof s=="function")try{s(d)}catch(p){console.error(p)}i({action:d})},Xh(a)})},alert:(e,n,o)=>rt.show("alert",e,n,o),confirm:(e,n,o)=>rt.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=rt.alert,e.config.globalProperties.$confirm=rt.confirm}},Qh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let a=!0,r=!0;for(let i in n)i==="bubbles"?a=!!n[i]:i==="cancelable"?r=!!n[i]:l[i]=n[i];l.initEvent(e,a,r),(o??document).dispatchEvent(l)},Gh=new Qn,Zh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Jh=e=>`${e}-${Gh.get()}`,ev=Symbol.for("InnerPageScopeKey"),tv=Symbol.for("PageWrapperKey"),nv="FoxLeave",lv="FoxLeaveEnd",ov={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function av(e,n,o,l){return{props:{...Ze,...ov},emits:["update:visible"],setup(a,{attrs:r,slots:i,emit:u}){(0,t.provide)(ev,!0);const s={};(0,t.provide)(tv,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),p=()=>{d("close")},c=e,v=g=>{S.value=g,u("update:visible",g)},S=(0,t.ref)(!1),w=(g,h)=>Zh(g)?(h.src=g,(0,t.h)("img",h)):typeof g=="string"?(Array.isArray(h.class)?h.class.push(g):h.class&&typeof h.class=="object"?h[`${g}`]=!0:typeof h.class=="string"?h.class=`${h.class}, ${g}`:h.class=g,(0,t.h)(a.tag,h)):(0,t.h)(g,h),y=()=>{if(!a.showHeader)return null;const g=[];if(i.header){const h=i.header();g.push(h)}else if(a.title){const h=(0,t.h)("view",{class:`${c}__header-title`},[a.title]);g.push(h)}return g.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},g)},k=()=>{if(!a.showClose)return null;const g={class:[`${c}__close-icon`],onClick:p};return w(a.closeIcon??l,g)};let f=null;const b=g=>{Qh(lv,{},f)},m=Jh(e),A=()=>{v(!0)},C=()=>{if(!f)return;const g=f.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const h=f.querySelector(".fox-popup");h&&(h.classList.add(`fox-popup-slide-${a.position}-leave-active`),h.classList.add(`fox-popup-slide-${a.position}-leave-to`),h.addEventListener("animationend",b,{once:!0}),h.addEventListener("transitionend",b,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(nv,C,{once:!0}),A()}),()=>{const g=[],h=y();h&&g.push(h);const N=k();N&&g.push(N);const B=i.default?i.default():[];Reflect.apply([].push,g,B);const T={[`${c}`]:!0};a.mode&&(T[`${c}--${a.mode}`]=!0);const V=(0,t.h)("view",{class:T},g),U=[`${c}__popup`,m];a.popClass&&U.push(a.popClass),a.position&&U.push(`${c}__popup--${a.position}`);const W={};a.width&&(W.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(W.height=typeof a.height=="number"?`${a.height}px`:a.height);const $=(0,t.h)(o,{...ve(a,Ze),popClass:U.join(" "),style:W,visible:S.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":v},{default:()=>V});return(0,t.h)("div",{class:[`${c}__root`,m]},[$])}}}}var{componentName:rv,create:iv,scope:sv}=J("popup-wrapper"),uv=iv(av(rv,sv,ye,oe.Close)),Lo=uv,cv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function dv(e,n,o,l){return{props:{...cv},emits:["update:visible"],setup(a,{emit:r,slots:i}){const u=s=>{r("update:visible",s)};return()=>{const s=[`${e}__popup`];a.popClass&&s.push(a.popClass);const d=(0,t.h)(o,{popClass:s,style:a.popStyle??{},position:"top",zIndex:a.zIndex,closeOnClickOverlay:a.closeOnClickOverlay,teleportDisable:!0,visible:a.visible,"onUpdate:visible":u},i);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:fv,create:mv,scope:pv}=J("dropdown"),hv=mv(dv(fv,pv,ye,!1)),Ro=hv;function vv(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:l}){return Zr(o.name,()=>o.config),Pe(o.innerPageScope)||ti(o.innerPageScope),Pe(o.abstractPageScope)||ni(o.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:gv,create:yv,scope:bv}=J("domain-provider"),Sv=yv(vv(gv,bv)),Fo=Sv,kv={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function wv(e,n){return{inheritAttrs:!1,props:kv,emits:["change"],setup(o,{slots:l,emit:a}){if(Je&&window.IntersectionObserver){const r=new WeakMap;let i=new Map;const u=(v,S)=>{if(p===null){i.set(v,{visible:null,callback:S});return}r.has(v)&&p.unobserve(v),r.set(v,{visible:null,callback:S}),p.observe(v)},s=v=>{if(p===null){i.delete(v);return}r.has(v)&&(r.delete(v),p.unobserve(v))};let d=o.initialVisibleObserverSize;uu({acquire:()=>{if(o.loadPolicy==="always")return!0;const v=d>0;return d--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let p=null;const c=(v,S,w)=>{p=new IntersectionObserver(y=>{if(a("change",y),o.loadPolicy!=="always")for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const b=r.get(k.target);if(b)try{if(o.loadPolicy==="lazy"&&!f&&b.visible!==null)return;b.visible=f,b.callback(f)}catch(m){console.error(m)}}},{root:v,rootMargin:S,threshold:w}),i.forEach((y,k)=>{r.set(k,y),p?.observe(k)}),i.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([v,S])=>{if(S||!v||p)return;let w=null;typeof v=="string"?w=document.querySelector(v):w=v,w&&c(w,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Cv,create:Nv,scope:Av}=J("rolling-provider"),Bv=Nv(wv(Cv,Av)),Oo=Bv,{componentName:Tv,create:Vv}=J("cell"),xv=Vv({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const r=Tv;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:o,baseStyle:l}}}),$v={key:0,class:"fox-cell__icon"},Ev={key:1,class:"fox-cell__title"},Dv={class:"title"},Iv={class:"fox-cell__title-desc"};function qv(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",$v,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ev,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Dv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Iv,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ko=ae(xv,[["render",qv]]),Pv={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Mv(e,n){return{props:{...Pv},setup(o,{attrs:l,slots:a}){const r=(0,t.computed)(()=>{const i={};return o.color&&(i.color=o.color),o.size&&(i.fontSize=me(o.size)),i});return()=>{const i={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",i,a)}}}}var{componentName:zv,create:Lv,scope:Rv}=J("icon"),Fv=Lv(Mv(zv,Rv)),Uo=Fv,{componentName:Ov,create:Kv}=J("cell-group"),Uv=Kv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Ov]:!0}))}}}),Hv={key:1,class:"fox-cell-group__title"},_v={key:3,class:"fox-cell-group__desc"},jv={class:"fox-cell-group__wrap"};function Wv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hv,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",_v,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jv,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ho=ae(Uv,[["render",Wv]]),{componentName:Yv,create:Xv}=J("image"),Qv=Xv({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const S=Yv;return{[S]:!0,[`${S}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),i=(0,t.ref)(null),u=()=>{a.value=new IntersectionObserver(S=>{S.forEach(w=>{w.isIntersecting&&(r.value=!0,a.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),i.value&&a.value.observe(i.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.disconnect()});const s=(0,t.computed)(()=>{let S={};return e.width&&(S.width=me(e.width)),e.height&&(S.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=me(e.radius)),S}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,S=>{o.isError=!1,o.loading=!0});const p=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},v=S=>{n("click",S)};return{...(0,t.toRefs)(o),imageClick:v,classes:l,styles:d,stylebox:s,error:c,load:p,show:r,imgRef:i}}}),Gv=["src","date-src","alt"],Zv={key:0,class:"fox-img-loading"},Jv={key:1,class:"fox-img-error"};function eg(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Image"),u=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,Gv),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Zv,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Jv,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var _o=ae(Qv,[["render",eg]]),{create:tg}=J("layout"),ng=tg({}),jo=ng,{componentName:lg,create:og}=J("col"),ag=og({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=lg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function rg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Wo=ae(ag,[["render",rg]]),{componentName:ig,create:sg}=J("row"),ug=sg({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=ig;(0,t.provide)("gutter",e.gutter);const o=(l,a)=>l?a?`fox-row-${l}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Yi=Object.create,Er=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Qi=Object.getOwnPropertyNames,Gi=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty,We=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ji=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Qi(n),r=0,i=a.length,u;r<i;r++)u=a[r],!Zi.call(e,u)&&u!==o&&Er(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=Xi(n,u))||l.enumerable});return e},Ye=(e,n,o)=>(o=e!=null?Yi(Gi(e)):{},Ji(n||!e||!e.__esModule?Er(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),at=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),pe=require("@fox-js/i18n");var rn=window,es=typeof window<"u";function ts(){return typeof rn<"u"?rn.requestAnimationFrame||rn.webkitRequestAnimationFrame||function(e){rn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Dr(e){es?cancelAnimationFrame(e):clearTimeout(e)}var Xe=ts();function vn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Yl(Ne(e),Ne(n)),o==1&&(l==1?e=yl(e):n=yl(n));let a=Ir(e,n);return o?o==2?"-"+Ne(a):e.length<a.length?Ne(a.substring(1)):"-"+Ne(yl(a)):Ne(a)}function yl(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Ir(n,r)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Yl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Ir(e,n){[e,n]=Yl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var Ce=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function Wt(e,n=0,o=Ce.HALF_EVEN){if(o===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Wt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Wa(a[1],r,l,o)?(l?"-":"")+bl(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let u=a[1].substring(n);return u&&Wa(u,i,l,o)&&(i=bl(i),i.length>n)?(l?"-":"")+bl(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function Wa(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!o&&l===Ce.FLOOR||o&&l===Ce.CEILING)return!1;if(l===Ce.UP||o&&l===Ce.FLOOR||!o&&l===Ce.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function bl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function xl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=qt(e),n=qt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=qt(e.replace(".","")),n=qt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,p="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let v=0;for(let S=n.length-1;S>=d&&S>=0;S--)s[S]>-1&&s[S]<e.length&&(v+=parseInt(e[s[S]--])*parseInt(n[S]));v+=u,u=Math.floor(v/10),p=v%10+p,d--}return p=qt(ns(p,r)),o==1&&(p="-"+p),p}function ns(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function qt(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 $l(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ne(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let p=e.length-d+a;e=Ne(e.substring(0,p)+"."+e.substring(p))}else a==d&&(e=Ne(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=vn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Ne(Wt(u,o-2))}function El(e,n){return e=e.toString(),n=n.toString(),n=Dl(n),vn(e,n)}function Dl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ya(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Xa(e),Xa(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=El(e,xl(n,Wt($l(e,n),0,Ce.FLOOR)));return o+l}function Xa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Qa(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Yl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var en=class fe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ne(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<r-o&&u>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Wt(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Wt(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),vn(n,o)}add(n){return new fe(vn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),El(n,o)}subtract(n){return new fe(El(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),xl(n,o)}multiply(n){return new fe(xl(this.value,n.getValue()))}static divide(n,o,l){return n=fe.validate(n),o=fe.validate(o),$l(n,o,l)}divide(n,o){return new fe($l(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),Ya(n,o)}modulus(n){return new fe(Ya(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),Qa(n,o)}compareTo(n){return Qa(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Dl(n)}negate(){return new fe(Dl(this.value))}};function qr(e,n){return en.multiply(`${e}`,`${n}`)}function Xl(e,n,o=8){return en.divide(`${e}`,`${n}`,o)}var q2=en.RoundingModes;function Il(e,n){return e=`${e}`,n=`${n}`,en.compareTo(e,n)}function Pr(e){return en.negate(e)}function Vn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let p;if(l>0){let c="",v=u.split("").reverse();for(let S=0;S<v.length;S++)c+=v[S]+((S+1)%l==0&&S+1!=v.length?a:"");s.length==0?p=`${i}${c.split("").reverse().join("")}`:p=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?p=`${i}${u}`:p=`${i}${u}.${s}`;return p}function Mr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var Je=typeof window<"u",He=Xe;function Pe(e){return e==null}var xn=Array.isArray,ls=e=>$n(e)==="[object Map]",os=e=>$n(e)==="[object Set]",je=e=>e instanceof Date,gn=e=>typeof e=="function",zr=e=>typeof e=="string",as=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",bt=e=>Ve(e)&&gn(e.then)&&gn(e.catch),Lr=Object.prototype.toString,$n=e=>Lr.call(e),rs=e=>$n(e)==="[object Object]",Rr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function is(e){return e.__esModule||Rr&&e[Symbol.toStringTag]==="Module"}var ss=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function St(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=St(a,d,s)}else s!==void 0&&(n[i]=s)}}return n}var Sl=ss?Promise.resolve():null;function us(e,...n){Sl!==null?n&&n.length>0?Sl.then(()=>{e(n)}):Sl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var cs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function kt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):cs[n]||"object"}function Fr(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Ql(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Kr(e){let n=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ur(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ds(e,n=[]){let o=n;return e!=null&&(Kr(Object(e))?Ur(o,typeof e=="string"?[e]:e):o.push(e)),o}function xe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=kt(e);if(o!==kt(n))return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let r=0;r<l.length;r++){let i=l[r],u=e[i],s=n[i];if(!xe(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],r=n[l];if(!xe(a,r))return!1}return!0}return!1}function ql(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function En(e){return ce(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function _r(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Ga(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Pl(e,n=!0,o=!0){n?e=Ga(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ga(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function fs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(xe(e,o))return!0}):n.indexOf(e)}function ms(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(xe(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function et(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}var ps=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e};function Ml(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var ot=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},_e=(e,n,o)=>Math.min(Math.max(e,n),o);function yn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function hs(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var we=Symbol.for("BroadcastKey"),Gl=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.proxy=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:o};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||ql(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...o]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):ql(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const u=Reflect.apply(r,this.proxy,[...o]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[n]=="function"){const u=Reflect.apply(i[n],i,[...o]);u!=null&&a.push(u)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const a=e.resolve,r=e.uniqueId??"",i=(...u)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...u)};e.resolve=i}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...o]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function Dn(e,n,o,l){const a=new Gl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function vs(e,n,o){const l=o;if(l[we])return l[we];const a=new Gl((0,t.inject)(we,null),o,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return l[we]=a,(0,t.provide)(we,a),(0,t.onUnmounted)(()=>{a.destroy(),l[we]=void 0}),a}function Ot(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[we]??(0,t.inject)(we,null):(0,t.inject)(we,null)}var gs=class{error(e,n){const o=n,l=n||(0,t.hasInjectionContext)()?Ot(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof o.setErrorTip=="function"&&o.setErrorTip(e)}reset(e){const n=e,o=e||(0,t.hasInjectionContext)()?Ot(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,o=e||(0,t.hasInjectionContext)()?Ot(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=o,a=o||(0,t.hasInjectionContext)()?Ot(o):null,r=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=e.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!r&&i?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(e){return e.modelValue}},Ut=new gs;function ys(e){Ut=e}function bs(e){Ut?Object.assign(Ut,e):Ut=e}function Ss(e,n){at.Schema.setValidator(e,n)}function ks(e){at.Schema.deleteValidator(e)}var jr=["blur","clear"];function ws(e){jr=e}function Wr(){return jr}var Yr=["focus","change","setValue"];function Cs(e){Yr=e}function Xr(){return Yr}function Ns(e){at.Schema.messages(e)}function Pt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function sn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Le=Symbol("ValidateSchemaKey"),Qr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=sn(Pt(this.attrRules,this.rules)),o=[];for(let a in e){let r=e[a];if(this.hasValidator(a,!0)){if(r===!1)continue;let u={type:a};r!==null&&typeof r=="object"&&Object.assign(u,r),o.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};o.push(u)}}this.attrRules=sn(o);const l=Pt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Ut;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?at.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?at.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return at.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Pt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=sn(e):this.rules=sn([e]);const o=Pt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Pt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},r=new at.Schema(o),i=this.proxy??a;return r.validate(a,{context:i}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=i),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function In(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new Qr(n,o,e)}var bn=Symbol.for("EventEmitterKey"),Gr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(a=>a===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function Ee(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Sn(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function As(e,n){const o=Ee((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function Bs(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Zl(e,n,o,l=0,a=!0){let r=n,i=0;if(a){const s=e();if(i++,s||i>o)return}const u=()=>{const s=e();i++,!(s||i>o)&&(r+=l,setTimeout(u,r))};setTimeout(u,r)}var Te=Symbol("DomainKey"),ft=Symbol("DataItemsKey"),qn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ts=new qn;function ht(){return Ts}function tt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Te]??(0,t.inject)(Te,null):(0,t.inject)(Te,null)}var kl=Symbol("OriginalDateKey");function Jl(e,n,o=[],l){const a=(0,t.getCurrentInstance)();let r=a?.proxy,i=(0,t.inject)(Te,null);i===null&&(i=ht());const u=e||n.prop||n.name;let s=new qn(u);s.parent=i;const d=y=>{r[kl]||v(y),s?.set("modelValue",y)},p=()=>s?.getForSelf("modelValue")??null,c=()=>r[kl]??null,v=y=>{const k={};St(!0,k,(0,t.toRaw)(y)),r[kl]=k};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,y=>{s?.merge(y,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&v(n.modelValue);const S=(y,k)=>{s?.set(y,k)},w=y=>s?.getForSelf(y)??null;if(r[Te]=s,(0,t.provide)(Te,s),a!==null){const y=(0,t.inject)(we,null),k=Dn(r,y,u,l);s.broadcast=k,r[we]=k,(0,t.provide)(we,k),r.broadcast=(m,A,...C)=>Reflect.apply(k.emit,k,[m,A,...C]);const f=(0,t.inject)(Le,null),b=In(r,f,{componentName:""});s.validateSchema=b,r[Le]=b,(0,t.provide)(Le,b),r[ft]=new Map,r.validate=(m=!0)=>{const A=[];let C=null;const g={deep:!1};if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;C={name:N=>N?h.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(g,h),Array.isArray(h.include)&&h.include.length>0){const N=h.include;C={name:B=>B?N.indexOf(B)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const N=h.exclude;C={name:B=>B?N.indexOf(B)===-1:!1}}else C={name:"*"}}if(C){const h=k?.emitToChildren(C,"validate",g);h&&Reflect.apply([].push,A,h)}return A.length==1?A[0]:A.length>1?Promise.all(A).then(h=>{let N=[];return h.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(N=[...N,...B.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,A=!0,C=!1)=>{if(C===!0){Reflect.ownKeys(m).forEach(g=>{let h=String(g);const N={componentName:"",fieldName:h,pureDataValidate:!0};if(s){const B=Jr(s,h,N,k,b);r[ft].set(h,B);const T=m[h];T&&B.validateSchema.setRule(T)}});return}if(A){const g=Reflect.ownKeys(m);k?.emitToChildren({name:h=>g.includes(h),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let A=null;if(m===!0)A={name:"*"};else if(Array.isArray(m)&&m.length>0){const C=m;A={name:g=>g?C.indexOf(g)!==-1:!1}}else if(m!=null&&typeof m=="object"){const C=m;if(Array.isArray(C.include)&&C.include.length>0){const g=C.include;A={name:h=>h?g.indexOf(h)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const g=C.exclude;A={name:h=>h?g.indexOf(h)===-1:!1}}else A={name:"*"}}A&&k?.emitToChildren(A,"clearValidate",!1)},r.resetFields=m=>{const A=p();if(!A)return;const C={};if(St(!0,C,c()??{}),Array.isArray(m))m.forEach(g=>{A[g]=C[g]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(g=>{A[g]=C[g]});else if(m&&Array.isArray(m.exclude)){let g=m.exclude??[];Reflect.ownKeys(C).forEach(h=>{g.includes(h)||(A[h]=C[h])})}else Object.assign(A,C);r.clearValidate(m)},r.setModelValue=(m,A)=>{if(!A||A===u)d(m);else{const C={name:A,messagingPolicy:"Once"};k?.emitToChildren(C,"setModelValue",m)}},r.getModelValue=()=>p(),r.setDomainProperty=(m,A)=>{S(m,A)},r.getDomainProperty=m=>w(m),setTimeout(function(){k?.pull()},0)}return(0,t.onUnmounted)(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Le]=void 0,(0,t.provide)(Le,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[we]=void 0,(0,t.provide)(we,null)),s?.destroy(),r[Te]=void 0,(0,t.provide)(Te,null),r[ft]&&(r[ft].clear(),r[ft]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function Zr(e,n,o=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)(Te,null);a===null&&(a=ht());let r=new qn(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,i=>{r?.merge(i,o)},{immediate:!0}):r.merge(n,o),l[Te]=r,(0,t.provide)(Te,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[Te]=void 0,(0,t.provide)(Te,null),r=null,l=null}),r}function Be(e,n,o){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=Dn(l,(0,t.inject)(we,null),a,o);l[we]=r,(0,t.provide)(we,r),l.broadcast=(p,c,...v)=>r?Reflect.apply(r.emit,r,[p,c,...v]):null;const i=(0,t.inject)(Le,null);e.fieldName=e.fieldName??a;let u=In(l,i,e);l[Le]=u,(0,t.provide)(Le,u),l.validate=(p=null)=>{if(!u)return Promise.resolve({pass:!0});const c=[];let v=!1,S=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)S=!0,v=!0;else if(p&&typeof p=="object"){const w=p,y=w.ignoreDisabled??!0,k=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;y===!0&&e.disabled===!0||k===!0&&e.readonly===!0||f===!0&&Fr(l.$el)?S=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),S=!0),v=w.deep??!1}else typeof p=="boolean"&&(v=p),S=!0;if(S){const w=u?.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:b=>b?f.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:b=>b?f.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&r){const k=r.emitToChildren(w,"validate",y);Reflect.apply([].push,c,k)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=p=>u?.setRule(p),l.setNameValidateRules=(p,c=!1)=>{const v=p[a];v&&u?.setRule(v),c&&r&&r.emitToChildren({name:S=>Reflect.ownKeys(p).includes(S)},"setNameValidateRules",p,!1)},l.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&u?.clear();let c=null;if(p===!0)c={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;c={name:S=>S?v.indexOf(S)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Array.isArray(v.include)&&v.include.length>0){const S=v.include;c={name:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const S=v.exclude;c={name:w=>w?S.indexOf(w)===-1:!1}}else c={name:"*"}}c&&r&&r.emitToChildren(c,"clearValidate",!1)};let s=new Gr(l);l[bn]=s;const d=Ee((p="validate")=>{u&&(p==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Wr()).forEach(p=>{s&&s.on(p,c=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xr()).forEach(p=>{s&&s.on(p,c=>{d("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[we]=void 0,(0,t.provide)(we,null),r=null,u?.destroy(),l[Le]=void 0,(0,t.provide)(Le,null),u=null,s?.destroy(),l[bn]=void 0,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:u,emitEvent:(p,...c)=>{s&&Reflect.apply(s.emit,s,[p,...c])},onEvent:(p,c)=>{s&&Reflect.apply(s.on,s,[c])},offEvent:(p,c)=>{s&&Reflect.apply(s.off,s,[c])}}}function Jr(e,n,o,l,a){const r={},i=n??"",u={getValue(){const p=e.getForSelf("modelValue");return p?p[i]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,i):!1}};o.fieldName=i,o.validateHandler={getValue(p){return u.getValue()}};let s=In({},a,o);r.validate=(p=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let v=!1,S=!1;if(Array.isArray(p)&&p.indexOf(i)!==-1)S=!0,v=!0;else if(p&&typeof p=="object"){const w=p;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),S=!0,v=w.deep??!1}else typeof p=="boolean"&&(v=p),S=!0;if(S&&s){const w=s.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:b=>b?f.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:b=>b?f.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&d){const k=d.emitToChildren(w,"validate",y);Reflect.apply([].push,c,k)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>s?.setRule(p),r.setNameValidateRules=p=>{const c=p[i];c&&s?.setRule(c)};let d=Dn(null,l,i,r);return(0,t.onUnmounted)(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function xt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new Gr(e);return e[bn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[bn]=void 0,n=null,e=null}),{emitEvent:(o,...l)=>{n&&Reflect.apply(n.emit,n,[o,...l])},onEvent:(o,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(o,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e)}px`:"",Vs=me;function se(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function xs(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Qe="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function zl(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=se(o.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(o.headerPadding??n.headerPadding),e.footerHeight=se(o.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(o.footerPadding??n.footerPadding),e.contentPadding=Fe(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=se(s,r):e.height=se(r)-se(i,r)-se(u,r),e.width=se(o.width??n.width??0,a)}}function ei(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=se(a.top),l.safeAreaBottom=se(a.bottom),l.safeAreaLeft=se(a.left),l.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;zl(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const i=(0,t.reactive)(l),u=e.getForParent(Qe);u&&(l.height=kn(e,u),l.width=wn(e,u),(0,t.watch)([()=>kn(e,u),()=>wn(e,u)],([d,p])=>{i.height=d,i.width=p}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,p,c=-1,v=-1,S=0,w=0])=>{zl(i,p,n,s,c,v,S,w)}),e.set(Qe,i),i}function Pn(e){return e.get(Qe)}function Mn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function zn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function kn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Mn(e,n),l=zn(e,n),a=se(n.contentPadding.top??0),r=se(n.contentPadding.bottom??0);return n.height-o-l-a-r}return 0}function wn(e,n){if(n=n??e.get(Qe),n){const o=se(n.contentPadding.left??0),l=se(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function $s(e){return!!e.getForParent(Qe)}var eo=Symbol.for("InnerPageScopeKey");function ti(e){(0,t.provide)(eo,e)}function tn(e=!1){return(0,t.inject)(eo,e)}var to=Symbol.for("AbstractPageScopeKey");function ni(e){(0,t.provide)(to,e)}function nn(e=!1){return(0,t.inject)(to,e)}function li(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function oi(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ai(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Ge=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function un(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=Ge.Near,l){const a=tt();return a==null?e:o===Ge.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(un(s,l))return s}const i=e.value;return un(i,l)?i:null}):(0,t.computed)(()=>{const r=e.value;if(un(r,l))return r;const i=a.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(un(s,l))return s}return null})}function Ln(e){return Ae(e,"readonly",Ge.Near)}function Rn(e){return Ae(e,"disabled",Ge.Near)}function ri(e){return Ae(e,"browse",Ge.Near)}function Ie(e){const n=(0,t.ref)(null),o=Rn((0,t.computed)(()=>n.value??e.disabled)),l=(0,t.ref)(null);return{innerDisabled:n,disabled:o,innerReadonly:l,readonly:Ln((0,t.computed)(()=>l.value??e.readonly)),browse:ri((0,t.computed)(()=>e.browse))}}function De(e,n="modelValue",o=null,l){const a=(0,t.toRef)(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const i=(0,t.ref)(r);return(0,t.watch)(a,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}var ii=new Map,Cn=new Map,Ll=null;function Es(e){Ll=e}function si(e,n,o){if(o){let l=Cn.get(o);l||(l=new Map,Cn.set(o,l)),l.set(e,n)}else ii.set(e,n)}function nt(e,n,o){!o&&Ll&&(o=Ll(e)??void 0);let l=null;if(o){let a=Cn.get(o);a&&(l=a.get(n))}return l||(l=ii.get(n)),l}function Ds(e,n){for(let o in e){const l=e[o];si(o,l,n)}}function Is(e){Cn.delete(e)}function qs(){return{top:0,left:0,bottom:0,right:0}}function Ps(){return Je?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ms(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return yn(o)}var zs=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const a=Ms(l.name,n);e.component(a,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=Ee(()=>{const r={...l};this.updateLayout(r,o)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,o)}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,a=St({},qs(),e.safeAreaInset),r=Ps(),i=St({},r.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",a),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",i),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Es(e)}setAPI(e,n,o){si(e,n,o)}getAPI(e,n,o){return nt(e,n,o)}batchSetAPI(e,n){Ds(e,n)}clearScopeAPI(e){Is(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=yn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(a,r)=>{let i=l.name;r?.componentPrefix&&(i=`${r.componentPrefix}-${l.baseName}`,i=yn(i)),a.component(i,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Ls=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(zr(l)?o=document.querySelector(l):o=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};gn(n.wrapper)?r=n.wrapper(o,a):r=n.wrapper;const i=(0,t.createApp)(r,e),u=n.components;return u&&u.forEach(s=>{i.use(s)}),o.appendChild(a),{instance:i.mount(a),unmount:()=>{i.unmount(),o.removeChild(a)}}},ui=(e,n)=>e?(0,t.h)(e,n):"";function be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var he={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},ci={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},di={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},fi=[];for(const e in di)fi.push(e);var Rs={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Fs=(e,n)=>({inheritAttrs:!0,props:{...he,...ci,...Rs},setup(o,{slots:l}){const a=!!nn(!1),r=tn(!1),i=Jl(o.name,o);if(i){const c=ei(i,o);be({getPageContentHeight:()=>kn(i,c),getPageContentWidth:()=>wn(i,c),getPageHeaderHeight:()=>Mn(i,c),getPageFooterHeight:()=>zn(i,c)}),c&&r&&(c.contentHeight="100%")}const u=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),s=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),p=(c,v=!1)=>{const S=d?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(c,!0,v)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,v],[S,w])=>{if(c&&S){const y=(0,t.toRaw)(S),k=(0,t.toRaw)(c),f=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(b=>{f.includes(b)||(k[b]=[])}),p(k)}if(v&&w){const y=(0,t.toRaw)(w),k=(0,t.toRaw)(v),f=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(b=>{f.includes(b)||(k[b]=[])}),p(k,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&p((0,t.toRaw)(o.rules)),o.pureDataRules&&p((0,t.toRaw)(o.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:u.value,style:s.value},[l?.default?.()])}}),{componentName:Os,create:Ks,scope:Us}=J("page"),Hs=Ks(Fs(Os,Us)),no=Hs;function lo(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}var mi={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(mi,e)}function On(){return mi}var js=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=li(!1),u=tn(!1),s=i?null:tt(),d=s?Pn(s):null,p=On(),c=e,v=(0,t.computed)(()=>{const $={[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed};return u||($[`${c}--safe-area-inset-top`]=a.safeAreaInsetTop),$}),S=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),w=Pe(a.height)?null:se(a.height),y=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return $;if(s&&d){const P=Fe(a.padding??d.headerPadding);if(Object.assign($,P),Pe(w)||(d.headerHeight=w),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const M=se(P.top??0);$.top=$.safeAreaTop+M,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Pe(w)||($.height=w),a.padding){const P=Fe(a.padding);Object.assign($,P)}return $}),k=(0,t.ref)(null),f=()=>d&&k.value&&!Ql(k.value)?(l||(d.headerAllHeight=lo(k.value).height),d.headerMounted=!0,!0):!1,b=Ee(f,120);let m=null;(0,t.onMounted)(()=>{i||d&&(Zl(f,50,5,50,!0),window.ResizeObserver&&k.value&&(m=new window.ResizeObserver(b),m.observe(k.value)))}),(0,t.onUnmounted)(()=>{i||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const A=(0,t.computed)(()=>{const $={};return i||(y.value.height!==null&&y.value.height!==void 0&&($.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&($.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&($.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&($.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&($.paddingBottom=`${y.value.bottom}px`)),$}),C=(0,t.computed)(()=>{const $=y.value?.height;return Pe($)||$<0?!0:$>0});function g(){r.emit("back")}function h(){r.emit("click-title")}function N(){r.emit("click-right")}function B(){r.emit("click-right-text")}const T=()=>{if(!a.leftShow)return null;const $=[];if(r.slots.left)$.push(r.slots.left());else{if(r.slots.leftIcon){const P=(0,t.h)("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);$.push(P)}else{const P=a.leftIcon??p.headerbar.Left??o,M=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(P)]);$.push(M)}if(a.leftText){const P=(0,t.h)("view",{class:"left-text",onClick:g},[a.leftText]);$.push(P)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},V=()=>{if(!a.rightShow)return null;const $=[];if(r.slots.right)$.push(r.slots.right());else{if(a.rightText){const P=(0,t.h)("view",{class:"right-text",onClick:B},[a.rightText]);$.push(P)}if(r.slots.rightIcon){const P=(0,t.h)("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);$.push(P)}else if(a.rightIcon){const P=(0,t.h)("view",{class:"right-icon",onClick:N},[(0,t.h)(a.rightIcon)]);$.push(P)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},U=()=>{if(!a.titleShow)return null;const $=[],P=r.slots.default?r.slots.default():null;if(P)$.push(P);else{if(a.title){const M=(0,t.h)("view",{class:"title-text"},[a.title]);$.push(M)}if(r.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:h},[r.slots.titleIcon()]);$.push(M)}else if(a.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:h},[(0,t.h)(a.titleIcon)]);$.push(M)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},W=()=>{const $=[],P=r.slots.bottom?r.slots.bottom():null;return P&&$.push(P),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(i||!C.value)return null;const $=[];if(r.slots.all)$.push(r.slots.all());else{const P=[],M=T();M&&P.push(M);const q=U();q&&P.push(q);const O=V();if(O&&P.push(O),P.length>0){const I=(0,t.h)("view",{class:S.value},P);$.push(I)}const H=W();H&&$.push(H)}return $.length===0?null:(0,t.h)("view",{class:v.value,style:A.value,ref:k},$)}}}),{componentName:Ws,create:Ys,scope:Xs}=J("header-bar"),Qs=Ys(js(Ws,Xs,oe.Left,!1)),oo=Qs;function Gs(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=oi(!1),i=tn(!1),u=r?null:tt(),s=u?Pn(u):null,d=e,p=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return i||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),c=Pe(l.height)?null:se(l.height),v=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(u&&s){const A=Fe(l.padding??s.footerPadding);if(Object.assign(m,A),Pe(c)||(s.footerHeight=c),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const C=se(A.bottom??0);m.bottom=m.safeAreaBottom+C,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Pe(c)||(m.height=c),l.padding){const A=Fe(l.padding);Object.assign(m,A)}return m}),S=(0,t.computed)(()=>{const m=v.value?.height;return Pe(m)||m<0?!0:m>0}),w=(0,t.ref)(null),y=()=>s&&w.value&&!Ql(w.value)?(o||(s.footerAllHeight=lo(w.value).height),s.footerMounted=!0,!0):!1,k=Ee(y,120);let f=null;(0,t.onMounted)(()=>{r||s&&(Zl(y,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(k),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||s&&(s.footerMounted=!1,f&&(f.disconnect(),f=null))});const b=(0,t.computed)(()=>{const m={};return r||(v.value.height!==null&&v.value.height!==void 0&&(m.height=me(v.value.height)),v.value.top!==null&&v.value.top!==void 0&&(m.paddingTop=me(v.value.top)),v.value.left!==null&&v.value.left!==void 0&&(m.paddingLeft=me(v.value.left)),v.value.right!==null&&v.value.right!==void 0&&(m.paddingRight=me(v.value.right)),v.value.bottom!==null&&v.value.bottom!==void 0&&(m.paddingBottom=me(v.value.bottom))),m});return()=>{if(r||!S.value)return null;const m=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:w,class:p.value,style:b.value},m)}}}}var{componentName:Zs,create:Js,scope:eu}=J("footer-bar"),tu=Js(Gs(Zs,eu,!1)),ao=tu;function nu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=ai(!1),i=tn(!1),u=r?null:tt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?Pn(u):null,p=(0,t.computed)(()=>{const y={};if(r)return y;if(u&&d){if(o.padding){const h=Fe(o.padding);Object.assign(d.contentPadding,h)}const k=Mn(u,d),f=zn(u,d);let b="";d.contentHeight?b=`${d.contentHeight}`:b=`${d.height}px`,console.debug("[content]page height:",b),console.debug("[content]header height:",k),console.debug("[content]footer height:",f),console.debug("[content]padding:",d.contentPadding),y.height=b;let m=se((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||k>0)&&(m=m<0?0:m,y.paddingTop=`${k+m}px`);let A=se((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(A>=0||f>0)&&(A=A<0?0:A,y.paddingBottom=`${f+A}px`);const C=se((d&&d.contentPadding&&d.contentPadding.left)??-1);C>=0&&(y.paddingLeft=`${C}px`);const g=se((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(y.paddingRight=`${g}px`),y}if(o.padding){const k=Fe(o.padding);k.left&&(y.paddingLeft=`${k.left}px`),k.top&&(y.paddingTop=`${k.top}px`),k.right&&(y.paddingRight=`${k.right}px`),k.bottom&&(y.paddingBottom=`${k.bottom}px`)}return y}),c=(0,t.ref)(null),v=()=>{if(d&&c.value){const y=Fn(c.value);d.contentInnerHeight=y.height,d.contentInnerWidth=y.width}},S=Ee(v,120);let w=null;return(0,t.onMounted)(()=>{i||r||(requestAnimationFrame(v),window.ResizeObserver&&c.value&&(w=new window.ResizeObserver(S),w.observe(c.value)))}),(0,t.onUnmounted)(()=>{i||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(o.tag??"view",{...a,ref:c,class:s.value,style:p.value},l)}}}var{componentName:lu,create:ou,scope:au}=J("content"),ru=ou(nu(lu,au)),ro=ru,wt="GroupStateKey",pi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(pi,!1)}function Un(e=!0){(0,t.provide)(pi,e)}function iu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Pe(l)||(e[o]=l)})}function su(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};iu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(wt,l),l}function wl(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(wt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const p=se(r),c=se(i);u||(u=d.type??"grid");const v=()=>{const S=n===""||n===-1,w=se(n);let y=de(o);const k=se(l);if(!S){let m=(w-(y-1)*k)/y;for(;c!==-1&&m>c;)y++,m=(w-(y-1)*k)/y;for(;p!==-1&&y>1&&m<p;)y--,m=(w-(y-1)*k)/y}let f=!1;const b=s.layout;b.value.width=n,b.value.column!==y&&(b.value.column=y,f=!0),b.value.gutter!==k&&(b.value.gutter=k,f=!0),b.value.type!==u&&(b.value.type=u,f=!0),f&&(0,t.triggerRef)(b)};if(a)v();else{const S=++s.passport;setTimeout(()=>{S===s.passport&&v()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.order}function Za(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function jn(e,n,o=1,l=0,a){const r={};let i=0;a?i=se(a):i=Za(n.column,o),i>0&&(r.width=`${i}%`);const u=Za(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=se(n.gutter)/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function Wn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let a=de(o);if(a===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=de(l)%n.column;let i=(e.index+r)%n.column,u=i+a;return u>n.column?(i=0,u=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var hi=Symbol("RollingStateKey");function uu(e){(0,t.provide)(hi,e)}function cu(){return(0,t.inject)(hi,null)}function Rl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function du(e){let n=Rl(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Rl(o),document.body.removeChild(o)}return n}function fu(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const i=(l-(a-1)*r)/a;return i>0?`${i}px`:"1fr"}function vi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...vi(o.children)):n.push(o)}),n}function mu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yn(e){function n(){return vi(e?.()??[]).filter(mu)}return{getChildren:n}}var pu={...he,...ci,...di};function hu(e,n,o){return{props:pu,emits:["update:collapse","header-click"],setup(l,a){const r=Jl(l.prop??l.name,l,fi),i=su(r,{type:l.type}),u=Kn();Un(!0);const s=l.rollingDisplay?cu():null,d=(0,t.ref)(null),p=(0,t.computed)(()=>l.rollingDisplay?s&&!s.disabled:!1),c=(0,t.computed)(()=>u&&r?Hn(r,!0).value:null),v=(0,t.getCurrentInstance)(),S=(z,R=!1)=>{const D=v?.proxy;D&&typeof D.setNameValidateRules=="function"&&D.setNameValidateRules(z,!0,R)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([z,R],[D,x])=>{if(z&&D){const F=(0,t.toRaw)(D),j=(0,t.toRaw)(z),ee=j?Reflect.ownKeys(j):[];(F?Reflect.ownKeys(F):[]).forEach(le=>{ee.includes(le)||(j[le]=[])}),S(j)}if(R&&x){const F=(0,t.toRaw)(x),j=(0,t.toRaw)(R),ee=j?Reflect.ownKeys(j):[];(F?Reflect.ownKeys(F):[]).forEach(le=>{ee.includes(le)||(j[le]=[])}),S(j,!0)}},{deep:!0});const w=e,y=(0,t.computed)(()=>{const z={};if(z.height=P.value,l.width)l.width!=="auto"&&(z.width=me(l.width));else{const R=u?_n(r,!0):null;if(c.value&&R){if(c.value.type==="grid"){const D=Wn(R,c.value,l.span,l.offset);Object.assign(z,D)}else if(c.value.type==="flow"){const D=jn(R,c.value,l.span,l.offset,l.width);Object.assign(z,D)}}}return z}),k=(0,t.computed)(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${w}--${z}`]:!0,[`${w}--${z}-justify-${l.justify}`]:!0,[`${w}--${z}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${z}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(i.layout.value.type==="grid"){let z="";if(l.columnWidth)z=`repeat(auto-fill, ${l.columnWidth})`;else{const R=fu(N.value,i.layout.value.column,i.layout.value.gutter);z=`repeat(${i.layout.value.column}, ${R})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":z}}}),b=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),A=(0,t.computed)(()=>u||p.value?!0:Se(l.isWrap)),C=[],g=z=>{C.push(z)},h=()=>{let z=C.length;C.splice(0,z)},N=(0,t.ref)(-1),B=z=>{const R=Fn(z).width;R>0&&R!==N.value&&(N.value=R)};wl(r,N.value,m.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([N,m,b],([z,R,D])=>{i.order.index=0,wl(r,z,R,D,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),V=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),U=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),W=(0,t.ref)(),$=(0,t.ref)(),P=(0,t.computed)(()=>q.value||me(l.height)||""),M=(0,t.ref)(!1),q=(0,t.ref)(""),O=(0,t.ref)(!1);let H=-1;const I=(z,R=!0)=>{const D=W.value;if(D&&M.value!==z){if(H=H<=0?du(D):H,O.value=!0,R)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",z||(q.value="",O.value=!1)},z){let x=0;l.collapseHeight?x=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(x=$.value.offsetHeight),q.value=`${H}px`,(0,t.nextTick)(()=>{q.value=`${x}px`})}else q.value=`${H}px`;else if(z){let x=0;l.collapseHeight?x=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(x=$.value.offsetHeight),q.value=`${x}px`}else O.value=!1,q.value=`${H}px`;M.value=z,a.emit("update:collapse",z)}};(0,t.watch)(()=>l.collapse,z=>{I(z)});const G=z=>{a.emit("header-click",z)},te=()=>{_()},_=z=>{z=z??!M.value,I(z)};be({toggleCollapse:_,doLayout:()=>{C[0]&&(B(C[0]),wl(r,N.value,m.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Y=null,Z=!0;const E=z=>{if(l.rules&&S((0,t.toRaw)(l.rules)),l.pureDataRules&&S((0,t.toRaw)(l.pureDataRules),!0),!!Je&&(z&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(C)&&C.length>0)){const R=C[0];if(B(R),window.ResizeObserver){const D=Ee(()=>B(R),120);Y=new window.ResizeObserver(D),Y.observe(R)}}},L=()=>{Y?.disconnect(),Y=null},X=!p.value||s?.acquire();X&&(d.value=p.value?!0:null),(0,t.onMounted)(()=>{if(X&&(E(Z),Z=!1),p.value&&s){let z=null,R=s.initialHeight;s.observe(W.value,D=>{if(D!==d.value)if(D)d.value=!0,M.value||(q.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(E(Z),Z=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!M.value)if(Z)q.value=s.initialHeight;else{let x=Rl(W.value);x<=0?q.value=R:(q.value=`${x}px`,R=q.value)}Z||L()}})}}),(0,t.onUnmounted)(()=>{Y?.disconnect(),s&&s.unobserve(W.value)});const Q=(z="right")=>{const R=[];if(T.value){const F=(0,t.h)("span",{class:V.value},[T.value]);R.push(F)}const D={class:U.value},x=(0,t.h)(l.collapseIcon??o,D);return R.push(x),R.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:te},R):null},ne=(z,R,D,x)=>{const F={...k.value};if(R===0&&(F[`${w}__first`]=!0),D>=x-1&&(F[`${w}__last`]=!0),A.value===!1){const j=a.attrs.class;j&&(F[`${j}`]=!0)}return(0,t.h)("div",{ref:g,key:`${R}`,class:F,style:f.value},z)};return()=>{const z=l.prop??l.name;if(p.value&&d.value!==!0)return(0,t.h)(l.tag||"div",{ref:W,prop:z,class:{[`${w}`]:!0,"is-collapse":O.value},style:y.value},[]);i.order.index=0;const R=[];let D=0;if(a.slots.header){const ee=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:G},[a.slots.header()]);R.push(ee)}else{const ee=[],le=l.collapsePosition==="left";if(le&&l.showCollapse){const ie=Q("left");ie&&ee.push(ie)}if(l.title||a.slots.title){if(l.showMark){const ie={class:{[`${w}__header-mark`]:!0}};l.markColor&&(ie.style={background:l.markColor});const ue=(0,t.h)("div",ie);ee.push(ue)}if(a.slots.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);ee.push(ie)}else if(l.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);ee.push(ie)}}if(a.slots.toolbar&&ee.push(a.slots.toolbar()),!le&&l.showCollapse){const ie=Q("right");ie&&ee.push(ie)}if(ee.length>0){const ie=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:G},ee);R.push(ie)}}h();const{getChildren:x}=Yn(a.slots.default),F=x(),j=i.layout.value.type;if(j==="grid"){const ee=ne(F,D++,0,F.length);R.push(ee)}else if(j==="flow"){const ee=ne(F,D++,0,F.length);R.push(ee)}else for(let ee=0;ee<F.length;ee++){const le=F[ee],ie=ne([le],D++,ee,F.length);R.push(ie)}return A.value?(0,t.h)(l.tag||"div",{ref:W,prop:z,class:{[`${w}`]:!0,"is-collapse":O.value},style:y.value},[R]):R}}}}var{componentName:vu,create:gu,scope:yu}=J("group"),bu=gu(hu(vu,yu,oe.RectUp)),io=bu;function Su(e){return e===window}var ku=/matrix\((.+)\)/,so=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Su(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,u=0,s=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const p=ku.exec(d);if(p){let c=p[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}},wu=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},Cu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a||(a=new wu,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}},Ht=new Cu,gi={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Nu,create:Au}=J("price"),Bu=Au({props:{...gi},setup(e){const n=(0,t.computed)(()=>({[Nu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":Vn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),ae=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},Tu=["innerHTML"],Vu=["innerHTML"];function xu(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Tu)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vu)):(0,t.createCommentVNode)("",!0)],2)}var Xn=ae(Bu,[["render",xu]]),{componentName:Cl,create:$u}=J("hint-text"),Eu=$u({components:{Price:Xn},props:{...gi,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(V,U,W,$,P,M)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,H=V.split("-");let I=[];H[0]==="top"?I=["top","bottom","right","left"]:H[0]==="bottom"?I=["bottom","top","right","left"]:H[0]==="left"?I=["left","top","bottom","right"]:H[0]==="right"&&(I=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},te=[];for(let _=0;_<I.length;_++){const K=I[_];if(te[0]=K,H[1]&&(te[1]=H[1]),K==="top"){const Y=U.y-M-e.arrowSize-e.offset;if(Y>=0){G.top=Y;let Z=0;H[1]==="start"?Z=U.x:H[1]==="end"?Z=U.x+W-P:Z=U.x+W/2-P/2;const E=q-Z-P;E<0?(Z+=E,c.value=-E):c.value=0,G.left=Z<0?0:Z;break}}else if(K==="bottom"){const Y=U.y+$+e.arrowSize+e.offset;if(Y+M<=O){G.top=Y;let Z=0;H[1]==="start"?Z=U.x:H[1]==="end"?Z=U.x+W-P:Z=U.x+W/2-P/2;const E=q-Z-P;E<0?(Z+=E,c.value=-E):c.value=0,G.left=Z<0?0:Z;break}}else if(K==="left"){const Y=U.x-P-e.arrowSize-e.offset;if(Y>=0){G.left=Y;let Z=0;H[1]==="start"?Z=U.y:H[1]==="end"?Z=U.y+$-M:Z=U.y+$/2-M/2,G.top=Z<0?0:Z;break}}else if(K==="right"){const Y=U.x+W+e.arrowSize+e.offset;if(Y+P<=q){G.left=Y;let Z=0;H[1]==="start"?Z=U.y:H[1]==="end"?Z=U.y+$-M:Z=U.y+$/2-M/2,G.top=Z<0?0:Z;break}}}return{bestPlacement:te.join("-"),bestInsetRect:G}},p=(V,U,W=10)=>{if(!Je||U===!1||!V)return;l.value=so(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=s.value.offsetHeight,P=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:q}=d(e.placement,l.value,a.value,r.value,P,$);i.value=M,o.value=q,u.value=!0},c=(0,t.ref)(0),v=Ee(()=>{p(e.message,e.visible)},10),S=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,V=>{S.value=V});const w=(0,t.computed)(()=>S.value&&y.value),y=(0,t.ref)(!0),k=Ee(V=>{const U=V[0];U&&(y.value=U.isIntersecting)},10),f=new IntersectionObserver(k);(0,t.watch)([()=>e.message,()=>e.visible],([V,U])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ht.watch(e.reference,v),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ht.unwatch(e.reference,v),f.unobserve(e.reference),f.disconnect()});const b=(0,t.computed)(()=>{const V={[Cl]:!0};return i.value.startsWith("top")?V["is-top"]=!0:i.value.startsWith("right")?V["is-right"]=!0:i.value.startsWith("bottom")?V["is-bottom"]=!0:i.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),m=(0,t.computed)(()=>{const V={};return o.value.top!==null&&(V.top=`${o.value.top}px`),o.value.right!==null&&(V.right=`${o.value.right}px`),o.value.bottom!==null&&(V.bottom=`${o.value.bottom}px`),o.value.left!==null&&(V.left=`${o.value.left}px`),e.autoFit&&(V["min-width"]=`${a.value}px`),V["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),A=(0,t.computed)(()=>{const V=[`${Cl}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),C=(0,t.computed)(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),g=(0,t.computed)(()=>({[`${Cl}__arrow`]:!0})),h=(0,t.computed)(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,i.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="top-start"?(V.left=`${e.arrowOffset+c.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(V.right=`${e.arrowOffset-c.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(V.left=`${e.arrowOffset+c.value}px`,V.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(V.right=`${e.arrowOffset-c.value}px`,V.top=`-${e.arrowSize}px`):i.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),N=(0,t.computed)(()=>w.value&&e.closeOnClick),B=(0,t.computed)(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:w,tipRef:s,classes:b,styles:m,textClasses:A,textStyles:C,arrowClasses:g,arrowStyles:h,overlayShow:N,overlayStyle:B,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),Du=["innerHTML"];function Iu(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Du))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var yi=ae(Eu,[["render",Iu]]),Qn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Fl={},qu=new Qn,vt=new Map,Nn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Pu=e=>{e.unmount=Nn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);o?e={...Fl,...o,...e}:e={...Fl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(yi,e),n)}return e.id},Mu=e=>{e.unmount=Nn;let n=e.id??`hinttext_${qu.get()}`;e={...Fl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(yi,e),o),document.body.appendChild(o),n},zu=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),$t={show(e,n,o={},l=!0){if(!zu(n))return;const a=o.id;return a&&vt.has(a)?Pu({...o,message:n,reference:e}):(l&&Nn(),Mu({...o,message:n,reference:e}))},hide(e){Nn(e)},install(e){e.config.globalProperties.$hintText=$t}};function Lu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...he,...ge},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Be({componentName:e,validate:!1},i);const u=tt(),s=Kn();Un(!1);const d=(0,t.computed)(()=>s&&u?Hn(u,!1).value:null),p=e,c=(0,t.ref)(null),v=(0,t.computed)(()=>{const x={[p]:!0,[`${p}__gutter`]:d.value&&d.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:Se(a.hasBorder)};if(x[a.errorMarkClass]=!!M.value,x[a.warnMarkClass]=!!$.value,x[a.infoMarkClass]=!!U.value,typeof c.value=="function"){const F=c.value(i);x[F]=!0}else if(typeof c.value=="string"){const F=c.value;x[F]=!0}return x}),S=(0,t.ref)(null),w=(0,t.computed)(()=>{const x={};if(a.width)a.width!=="auto"&&(x.width=me(a.width));else{const F=s&&u?_n(u,!1):null;if(d.value&&F){if(d.value.type==="grid"){const j=Wn(F,d.value,a.span,a.offset);Object.assign(x,j)}else if(d.value.type==="flow"){const j=jn(F,d.value,a.span,a.offset,a.width);Object.assign(x,j)}}}if(typeof S.value=="function"){const F=S.value(i);F&&Object.assign(x,F)}else if(S.value&&typeof S.value=="object"){const F=S.value;Object.assign(x,F)}return x}),y=(0,t.ref)(null),k=(0,t.computed)({get:()=>y.value??Se(a.isRequired),set:x=>{y.value=x}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",b=Ae((0,t.toRef)(a,"labelPosition"),"labelPosition",Ge.Near),m=(0,t.computed)(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),A=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${m.value}`]:!0})),C=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),g=Ae((0,t.toRef)(a,"labelWidth"),"labelWidth",Ge.Near),h=(0,t.computed)(()=>g&&g.value?{width:me(g.value)}:{}),N=(0,t.computed)(()=>({"label--string":!0,"label--required":k.value})),B=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),T=(0,t.computed)(()=>({...a.contentStyle})),V=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(x){k.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x},setCustomClassName(x){c.value=x},setCustomStyle(x){S.value=x}});const U=(0,t.computed)(()=>a.infoTip||V.infoTip),W=(0,t.computed)(()=>a.infoIcon||V.infoIcon),$=(0,t.computed)(()=>a.warnTip||V.warnTip),P=(0,t.computed)(()=>a.warnIcon||V.warnIcon),M=(0,t.computed)(()=>a.errorTip||V.errorTip),q=(0,t.computed)(()=>a.errorIcon||V.errorIcon),O=(0,t.computed)(()=>M.value?"error":$.value?"warn":U.value?"info":""),H=()=>O.value.length>0,I=(0,t.computed)(()=>O.value==="error"?M.value:O.value==="warn"?$.value:O.value==="info"?U.value:""),G=(0,t.computed)(()=>O.value==="error"?q.value:O.value==="warn"?P.value:O.value==="info"?W.value:null),te=(0,t.computed)(()=>{const x={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&a.errorClass?x[`${a.errorClass}`]=!0:O.value==="warn"&&a.warnClass?x[`${a.warnClass}`]=!0:O.value==="info"&&a.infoClass&&(x[`${a.infoClass}`]=!0),x}),_=(0,t.computed)(()=>{const x={};return b&&b.value==="top"||!f()?x["padding-left"]="0px":g&&g.value&&(x["padding-left"]=me(g.value)),x}),K=(0,t.ref)();let Y="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([x,F,j,ee])=>{K.value&&(x&&!ce(F)?Y?o.show(K.value,F,{...ee,id:Y,type:j},!0):Y=o.show(K.value,F,{...ee,type:j},!0):o.hide(Y))});let Z=null;const E=()=>{Z||!K.value||(Z=new IntersectionObserver(x=>{let F=!1;for(let j of x)if(j.intersectionRatio>0){F=!0,F&&r.emit("appear",j);break}F||r.emit("disappear")}),Z.observe(K.value))},L=()=>{!Z||!K.value||(Z.unobserve(K.value),Z=null)};(0,t.watch)(()=>Se(a.appearListen),x=>{x?E():L()}),(0,t.onMounted)(()=>{Se(a.appearListen)&&E()}),(0,t.onUnmounted)(L);const X=()=>{if(!f())return null;const x=[],F=r.slots?.label?.()??a.label,j=(0,t.h)("div",{class:N.value},[F]);if(x.push(j),r.slots.fixedPreTip){const ee=r.slots.fixedPreTip();x.push(ee)}return(0,t.h)("div",{class:C.value,style:h.value},x)},Q=()=>{const x=[];if(r.slots.prepend){const F=r.slots.prepend();x.push(F)}if(r.slots.default){const F=r.slots.default();x.push(F)}if(r.slots.append){const F=r.slots.append();x.push(F)}if(r.slots.fixedTip){const F=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);x.push(F)}return(0,t.h)("div",{ref:K,class:B.value,style:T.value},x)},ne=()=>{const x=G.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[x()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(x)]):null},z=()=>{const x=I.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[x()]):(0,t.h)("div",{class:"fox-item__tip--text"},[x]):null},R=()=>{if(!H())return null;const x=[],F=ne();F&&x.push(F);const j=z();return j&&x.push(j),(0,t.h)("div",{class:te.value,style:_.value},x)},D=()=>r.slots?.hide?.()??null;return()=>{const x=[],F=[],j=X();j&&F.push(j);const ee=Q();ee&&F.push(ee);const le=(0,t.h)("div",{class:A.value},F);x.push(le);const ie=R();ie&&x.push(ie);const ue=D();return ue&&x.push(ue),(0,t.h)("div",{class:v.value,style:w.value,prop:a.prop},x)}}}}var{componentName:Ru,create:Fu,scope:Ou}=J("item"),Ku=Fu(Lu(Ru,Ou,$t,!1)),Et=Ku,bi={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Uu(e,n){return{props:bi,setup(o,l){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=tt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=me(o.width));else if(u&&i){const p=Hn(i,!1),c=_n(i,!1);if(p.value&&c){if(p.value.type==="grid"){const v=Wn(c,p.value,o.span,o.offset);Object.assign(d,v)}else if(p.value.type==="flow"){const v=jn(c,p.value,o.span,o.offset,o.width);Object.assign(d,v)}}}return o.gutter&&(d.gap=me(o.gutter)),d});return()=>{const d=[];if(l.slots.default){const p=l.slots.default();if(o.divide)for(let c=0;c<p.length;c++){if(c>0){const v=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});d.push(v)}d.push(p[c])}else Reflect.apply([].push,d,p)}return(0,t.h)("div",{class:r.value,style:s.value},d)}}}}var{componentName:Hu,create:_u,scope:ju}=J("row-item"),Wu=_u(Uu(Hu,ju)),Gn=Wu,Yu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Xu(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Qu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Gu(e,n,o,l=!1){return{props:{...Qu},emits:["click"],setup(a,r){const i=(0,t.ref)(null),u=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(m[`${e}--${a.type??"default"}`]=!0),a.size&&(m[`${e}--${a.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},A=a.textColor??a.color;return A&&(m.color=A),m}),d=(m,A)=>{let C=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const g=a.highlightFilter;m.indexOf(g)!==-1&&(A.innerHTML=m.replace(new RegExp(g,"g"),`<span>${g}</span>`),A.class["is-highlight"]=!0,C=(0,t.h)(a.tag,A))}else if(typeof a.highlightFilter=="function"){const g=a.highlightFilter(m);g&&(A.innerHTML=g,A.class["is-highlight"]=!0,C=(0,t.h)(a.tag,A))}return C},p=m=>{r.emit("click",m)};let c="";const v=()=>{const m=i.value;if(!m)return;const A=m.clientWidth;Xu(m,C=>{const g=m.innerHTML??"";ce(g)||C<A||(c?o?.show(m,g,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(m,g,{type:"text",showArrow:a.showArrow},!0)??"")})},S=()=>{c&&o?.hide(c)};let w=null;const y=m=>{w||(w=setTimeout(()=>{v(),w=null},a.showAfter??0))},k=m=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{S()},a.hideAfter??0)},f=()=>{const m=i.value;m&&(m.addEventListener("mouseover",y),m.addEventListener("mouseleave",k))},b=()=>{const m=i.value;m&&(m.removeEventListener("mouseover",y),m.removeEventListener("mouseleave",k))};return(0,t.onMounted)(()=>{!Se(a.showOverflowTooltip)||!o||f()}),(0,t.onBeforeUnmount)(()=>{!Se(a.showOverflowTooltip)||!o||b()}),()=>{const m={onClick:p,class:u.value,style:s.value,ref:i};let A=null;if(Se(a.numberFormat)&&typeof r.slots.default=="function"){const g=r.slots.default();if(Array.isArray(g)&&g.length===1){const h=g[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const N=de(a.digits),B=de(a.decimalLength),T=Se(a.autoPadding);let V=`${g[0].children}`,U=V.split("").reverse().join("");U=Vn(U,B,T,N,a.separator),V=U.split("").reverse().join(""),a.highlightFilter!==void 0&&(A=d(V,m)),A||(m.innerHTML=V,A=(0,t.h)(a.tag,m))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const g=r.slots.default();if(Array.isArray(g)&&g.length===1){const h=g[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const N=`${g[0].children}`;A=d(N,m),A||(m.innerHTML=N,A=(0,t.h)(a.tag,m))}}}A||(A=(0,t.h)(a.tag,m,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return A;const C=[];if(r.slots.mark){const g={[`${e}__mark-wrap`]:!0};a.type&&(g[`${e}__mark-wrap--${a.type}`]=!0);const h={},N=a.color;N&&(h.color=N);const B=(0,t.h)("view",{class:g,style:h},{default:r.slots.mark});C.push(B)}else{const g={[`${e}__mark`]:!0};a.type&&(g[`${e}__mark--${a.type??"default"}`]=!0);const h={},N=a.color;N&&(h["background-color"]=N);const B=(0,t.h)("view",{class:g,style:h});C.push(B)}if(a.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});C.push(g)}return C.push(A),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},C)}}}}var{componentName:Zu,create:Ju,scope:ec}=J("text"),tc=Ju(Gu(Zu,ec,$t,!1)),Ct=tc,nc={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function lc(e,n,o=!1){return{props:{...nc},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:i}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(0),c=(0,t.ref)(0),v=(0,t.ref)(l.placement),S=(0,t.ref)(!1),w=(0,t.ref)(!1),y=(0,t.ref)(null),k=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(I,G,te,_,K,Y,Z,E=!0)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,Q=I.split("-");let ne=[];E?Q[0]==="top"?ne=["top","bottom","right","left"]:Q[0]==="bottom"?ne=["bottom","top","right","left"]:Q[0]==="left"?ne=["left","top","bottom","right"]:Q[0]==="right"&&(ne=["right","top","bottom","left"]):ne=[I[0]];const z={top:null,right:null,bottom:null,left:null},R=[];for(let D=0;D<ne.length;D++){const x=ne[D];if(R[0]=x,Q[1]&&(R[1]=Q[1]),x==="top"){const F=te-Z-l.arrowSize/2-l.offset;if(F>=0){z.top=F;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+_-Y:j=G+_/2-Y/2;const ee=L-j-Y;ee<0?(j+=ee,m.value=-ee):m.value=0,z.left=j<0?0:j;break}}else if(x==="bottom"){const F=te+K+l.arrowSize/2+l.offset;if(F+Z<=X){z.top=F;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+_-Y:j=G+_/2-Y/2;const ee=L-j-Y;ee<0?(j+=ee,m.value=-ee):m.value=0,z.left=j<0?0:j;break}}else if(x==="left"){const F=G-Y-l.arrowSize/2-l.offset;if(F>=0){z.left=F;let j=0;Q[1]==="start"?j=te:Q[1]==="end"?j=te+K-Z:j=te+K/2-Z/2,z.top=j<0?0:j;break}}else if(x==="right"){const F=G+_+l.arrowSize/2+l.offset;if(F+Y<=L){z.left=F;let j=0;Q[1]==="start"?j=te:Q[1]==="end"?j=te+K-Z:j=te+K/2-Z/2,z.top=j<0?0:j;break}}}return{bestPlacement:R.join("-"),bestInsetRect:z}},b=()=>{const I=l.visible,G=l.autoFit;if(!Je||I===!1)return;if(l.reference){const Z=k(),E=so(Z);s.value=E.x,d.value=E.y,p.value=Z.offsetWidth,c.value=Z.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=y.value.offsetWidth,_=y.value.offsetHeight,{bestPlacement:K,bestInsetRect:Y}=f(l.placement,s.value,d.value,p.value,c.value,te,_,G);v.value=K,u.value=Y},m=(0,t.ref)(0),A=Ee(()=>{b()},10),C=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{C.value=I,I?(S.value=I,setTimeout(()=>{b(),w.value=!0},0)):w.value=!1});const g=(0,t.computed)(()=>C.value&&h.value),h=(0,t.ref)(!0),N=Ee(I=>{const G=I[0];G&&(h.value=G.isIntersecting)},10),B=new IntersectionObserver(N);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,G],[te,_])=>{!I&&!G||(setTimeout(()=>{b()},0),l.autoFit&&(te&&(Ht.unwatch(te,A),B.unobserve(te)),I&&(Ht.watch(I,A),B.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ht.unwatch(l.reference,A),B.unobserve(l.reference),B.disconnect())});const T=(0,t.computed)(()=>{const I={[e]:!0};return v.value.startsWith("top")?I["is-top"]=!0:v.value.startsWith("right")?I["is-right"]=!0:v.value.startsWith("bottom")?I["is-bottom"]=!0:v.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!w.value&&g.value&&(I["is-opacity"]=!0),w.value&&g.value&&(I["is-show"]=!0),g.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),V=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),U=()=>{C.value=!1,a("update:visible",!1)},W=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:U}):null,$=()=>{let I=null;return r.title?I=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},P=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,v.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-start"?(I.left=`${l.arrowOffset+m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-end"?(I.right=`${l.arrowOffset-m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):v.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(I.left=`${l.arrowOffset+m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(I.right=`${l.arrowOffset-m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):v.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):v.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),q=()=>(0,t.h)("div",{class:P.value,style:M.value}),O=()=>{C.value===!1&&(S.value=!1)},H=I=>{if(!y.value||C.value===!1)return;const{relatedTarget:G}=I;y.value.contains(G)||(C.value=!1,a("update:visible",!1))};return i({doLayout:b}),()=>{if(!S.value)return null;const I=[],G=W();G&&I.push(G);const te=[],_=$();if(_&&te.push(_),r.default){const E=r.default();te.push(E)}const K=q();K&&te.push(K);const Y={ref:y,class:T.value,style:V.value,onAnimationend:O};l.leaveHide&&(Y.onMouseleave=H);const Z=(0,t.h)("div",Y,{default:()=>te});return I.push(Z),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:oc,create:ac,scope:rc}=J("popover-dialog"),ic=ac(lc(oc,rc,!1)),Zn=ic,sc={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function uc(e,n,o){return{props:{...bi,...sc},emits:["click"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function p(C){return C.props||{}}function c(C){return!!p(C).disabled}function v(C){return C.children??[]}const S=(0,t.ref)(),w=(0,t.computed)(()=>S.value?.$el??null),y=(0,t.ref)(!1),k=C=>{y.value=C},f=()=>{y.value=!y.value};function b(C,g){return()=>{g||(y.value=!1,p(C)?.onClick?.())}}function m(C,g){const h=v(C),N=c(C),B=b(C,N),T=[`${s}__dropdown-item`];return N&&T.push("is-disabled"),(0,t.h)("span",{class:T,onClick:B},h)}const A=C=>{const g=l.maxDisplayCount??C.length;if(g>=C.length)return C;const h=[],N=g-1;for(let W=0;W<N;W++)h.push(C[W]);const B=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),T=(0,t.h)(Ct,{ref:W=>S.value=W,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>u.moreText.value,mark:()=>B});h.push(T);const V=[];for(let W=N;W<C.length;W++){const $=m(C[W],W);V.push($)}const U=(0,t.h)(Zn,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:y.value,reference:w.value,"custom-class":`${s}__popover`},{default:()=>V});return h.push(U),h};return()=>{const{getChildren:C}=Yn(r?.default),g=A(C());return(0,t.h)(Gn,{class:d.value},{default:()=>g})}}}}var{componentName:cc,create:dc,scope:fc}=J("buttons-item"),mc=dc(uc(cc,fc,Yu)),uo=mc,pc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function hc(e,n){return{props:pc,setup(o,l){const a=tt(),r=Kn();Un(!1);const i=(0,t.computed)(()=>r&&a?Hn(a,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=me(o.width));else{const c=r&&a?_n(a,!1):null;if(i.value&&c){if(i.value.type==="grid"){const v=Wn(c,i.value,o.span,o.offset);Object.assign(p,v)}else if(i.value.type==="flow"){const v=jn(c,i.value,o.span,o.offset,o.width);Object.assign(p,v)}}}return p});return()=>{const p={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:vc,create:gc,scope:yc}=J("slot-item"),bc=gc(hc(vc,yc)),co=bc;function qe(e,n={}){return(0,t.h)(Et,e,n)}function Sc(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let s=n;for(let d=0;s&&d<r.length;d++){let p=r[d],c=s.find(v=>v[l]===p);if(!c)break;i.push(c[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],p=r[s];const c=d.find(v=>v[l]===p);if(!c)break;i.push(c[o])}else{let s=n;for(let d=0;s&&d<r.length;d++){let p=r[d],c=s.find(v=>v[l]===p);if(!c)break;i.push(c[o]),s=c[a]}}return i}var kc=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function wc(){return new kc((0,t.getCurrentInstance)().proxy)}var Cc={tag:{type:[String,Object],required:!1,default:"span"},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],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}};function Nc(e,n,o=!1){return{props:Cc,setup(l,{attrs:a,slots:r}){const i=wc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,p])=>{u.value=await i.load(l.sourceType,d,p)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return l.emptyText;let d=Sc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...a};if(r.default)return r.default({text:s.value,value:l.modelValue});const p=l.tag??"span";return typeof p=="object"?(0,t.h)(p,d,{default:()=>s.value}):(0,t.h)(p,d,[s.value])}}}}var{componentName:Ac,create:Bc,scope:Tc}=J("mapping"),Vc=Bc(Nc(Ac,Tc,!1)),Jn=Vc;function Me(e,n,o,l){const a="fox-browse-item";let r=null;o?r=(0,t.h)(Jn,{class:[`${a}__mapping`],source:o,modelValue:e,separator:l},{default:u=>(0,t.h)(Ct,{class:[`${a}__text`]},{default:()=>u.text})}):r=(0,t.h)(Ct,{class:[`${a}__text`]},{default:()=>e});const i={label:n.default,default:()=>r};return(0,t.h)(Et,{class:[a]},i)}var Si={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},xc={...he,...ge,...Si};function $c(e,n,o,l,a){return{props:xc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:S}=(0,pe.useFoxI18n)(n),w=S(r,["placeholder"]),y=(0,t.ref)(!1),k=De(r,"modelValue",null,v),f=e,b=(0,t.computed)(()=>({[f]:!0,"is-disabled":s.value,"is-readonly":p.value})),m=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),A=(0,t.computed)(()=>{const H={};return m.value&&(H["text-align"]=m.value),H}),C=H=>{let I=H.target.value;r.type==="digit"&&(I=Pl(I,!0)),r.type==="number"&&(I=Pl(I,!1)),r.maxLength&&I.length>Number(r.maxLength)&&(I=I.slice(0,Number(r.maxLength))),k.value=I,v("update:modelValue",I,H),v("change",I,H)};let g=De(r,"hintText"),h=(0,t.ref)(!1);const N=H=>{let I=H.target.value;y.value=!0,ce(g.value)||(h.value=!0),v("focus",I,H)},B=H=>{setTimeout(()=>{h.value&&(h.value=!1),y.value=!1},0);let I=H.target.value;r.maxLength&&I.length>Number(r.maxLength)&&(I=I.slice(0,Number(r.maxLength))),v("blur",I,H)},T=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":s.value,"is-readonly":p.value})),V=(0,t.computed)(()=>{const H={};return i.slots.append&&!U.value&&!q.value&&(H.display="none"),H}),U=(0,t.computed)(()=>ke(r.unit)>0),W=(0,t.computed)(()=>!q.value),$=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!W.value})),P=H=>{k.value="",v("update:modelValue","",H),v("change","",H),v("clear","")},M=(0,t.computed)(()=>Se(r.clearable)&&!s.value&&!p.value),q=(0,t.computed)(()=>{let H=ke(k.value)>0;return Se(r.clearable)&&H&&y.value}),O=(0,t.computed)(()=>({action:!0,hidden:!q.value}));return be({setDisabled:H=>{u.value=H},setReadonly:H=>{d.value=H}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(k.value,i.slots);const H={class:b.value,style:A.value,type:r.type,maxlength:r.maxLength,placeholder:w.placeholder.value,disabled:s.value,readonly:p.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:C,onFocus:N,onBlur:B},I=[],G=(0,t.h)("input",H);I.push(G);const te=[];if(M.value){const Z=(0,t.h)(a,{class:["action-icon"]}),E=(0,t.h)("view",{class:O.value,onClick:P},{default:()=>[Z]});te.push(E)}if(U.value){const Z=(0,t.h)("view",{class:$.value},[r.unit]);te.push(Z)}const _=(0,t.h)("view",{class:T.value,style:V.value},{default:()=>te});I.push(_);const K={default:()=>I};K.label=i.slots.default,K.prepend=i.slots.prepend,K.append=i.slots.append,K.fixedPreTip=i.slots.fixedPreTip,K.fixedTip=i.slots.fixedTip;const Y={...et(r,Si),hintText:g.value,hintVisible:h.value};return r.prop&&(Y.prop=`${r.prop}_item`),o(Y,K)}}}}var{componentName:Ec,create:Dc,scope:Ic}=J("input-item"),qc=Dc($c(Ec,Ic,qe,Me,oe.CircleClose)),fo=qc;function Ja(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function er(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Ja(qr(`${e}`,`${n}`)):Ja(Xl(`${e}`,Pr(`${n}`),20))}function Pc(e,n=-1,o=!1,l=3,a=","){return Vn(e,de(n),o,l,a)}function tr(e,n,o,l,a=!0){if(e==="")return"";if(e=Mr(e),n=de(n),n==1)return e;if(l)e=er(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=Xl(e,1,de(o)));else{let r=-1*n;e=er(e,r)}return e}function nr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),a=Il(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),a=Il(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}var ki={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},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},Mc={...he,...ge,...ki};function zc(e,n,o,l,a){return{props:Mc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=(0,t.ref)(!1),w=De(r,"modelValue",null,v),y=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>r.rates,()=>r.precision],([K,Y,Z])=>{if(ce(K)){y.value="";return}const E=tr(K,Y,Z,!1);y.value!==E&&(y.value=E)},{immediate:!0});const k=(0,t.computed)(()=>{let K="";return S.value&&(K=y.value),K}),{t:f}=(0,pe.useFoxI18n)(n),b=(0,t.computed)(()=>{let K=r.placeholder??"";return!S.value&&!ce(y.value)?K=Pc(y.value,r.decimalLength,r.autoPadding,r.digits,r.separator):K=ce(K)?f(["placeholder"]):K,K}),m=e,A=(0,t.computed)(()=>({[m]:!0,[`${m}__placeholder`]:y.value.length>0,"is-disabled":s.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),g=(0,t.computed)(()=>{const K={};return C.value&&(K["text-align"]=C.value),K}),h=(0,t.ref)(""),N=(0,t.computed)(()=>{let K=h.value;return ce(K)&&(K=r.errorTip??""),K}),B=(0,t.ref)(""),T=(0,t.ref)(!1),V=K=>{let Y=K.target.value;if(ce(Y)){y.value="",w.value="",v("update:modelValue","",K),v("change","",K),Se(r.showTip)&&T.value&&(T.value=!1);return}if(Y.length>=2){let Z=Y;if(Z.charAt(0)=="-"&&(Z=Z.substring(1)),Z.length>=2&&Z.charAt(0)=="0"&&Z.charAt(1)!="."){(0,t.triggerRef)(y);return}}if(Y!="-"){if(!En(Y)){(0,t.triggerRef)(y);return}if(r.integerLength!=-1&&Hr(Y)>Number(r.integerLength)){(0,t.triggerRef)(y);return}if(r.decimalLength&&r.decimalLength!=-1&&_r(Y)>Number(r.decimalLength)){(0,t.triggerRef)(y);return}let Z=nr(Y,r);if(Z.maxValid===!1){h.value=Z.message,(0,t.triggerRef)(y);return}}else if(r.min!=null&&de(r.min)>=0){(0,t.triggerRef)(y);return}B.value=Y,Se(r.showTip)&&(T.value=Y.length>0),y.value=Y,w.value=tr(Y,r.rates,r.precision,!0),v("update:modelValue",w.value,K),v("change",w.value,K)},U=K=>{if(S.value=!0,Se(r.showTip)){let Y=y.value;ce(Y)&&(Y=r.hintText),ce(Y)||(B.value=Y,T.value=!0)}h.value="",v("focus",w.value,K)},W=K=>{if(setTimeout(()=>{S.value=!1,Se(r.showTip)&&T.value===!0&&(T.value=!1)},0),!ce(y.value)){let Y=nr(y.value,r);if(Y.minValid===!1||Y.maxValid===!1){h.value=Y.message;return}}v("update:modelValue",w.value,K),v("blur",w.value,K)},$=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":s.value,"is-readonly":p.value})),P=(0,t.computed)(()=>{const K={};return i.slots.append&&!M.value&&!G.value&&(K.display="none"),K}),M=(0,t.computed)(()=>ke(r.unit)>0),q=(0,t.computed)(()=>!G.value),O=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!q.value})),H=K=>{w.value="",v("update:modelValue","",K),v("change","",K),v("clear","")},I=(0,t.computed)(()=>Se(r.clearable)&&!s.value&&!p.value),G=(0,t.computed)(()=>{let K=ke(w.value)>0;return Se(r.clearable)&&K&&S.value}),te=(0,t.computed)(()=>({action:!0,hidden:!G.value}));be({setDisabled:K=>{u.value=K},setReadonly:K=>{d.value=K}});const _=()=>w.value?b.value:w.value;return()=>{if(c.value==="on"&&(p.value||s.value))return l(_(),i.slots);let K={class:A.value,style:g.value,type:"digit",maxlength:r.maxLength,placeholder:b.value,disabled:s.value,readonly:p.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:V,onFocus:U,onBlur:W},Y=[],Z=(0,t.h)("input",K);Y.push(Z);let E=[];if(I.value){const ne=(0,t.h)(a,{class:["action-icon"]}),z=(0,t.h)("view",{class:te.value,onClick:H},{default:()=>[ne]});E.push(z)}if(M.value){const ne=(0,t.h)("view",{class:O.value},[r.unit]);E.push(ne)}const L=(0,t.h)("view",{class:$.value,style:P.value},{default:()=>E});Y.push(L);const X={default:()=>Y};X.label=i.slots.default,X.prepend=i.slots.prepend,X.append=i.slots.append,X.fixedPreTip=i.slots.fixedPreTip,X.fixedTip=i.slots.fixedTip;const Q={...et(r,ki),errorTip:N.value,hintText:B.value,hintVisible:T.value,hintType:"number"};return r.prop&&(Q.prop=`${r.prop}_item`),o(Q,X)}}}}var{componentName:Lc,create:Rc,scope:Fc}=J("money-item"),Oc=Rc(zc(Lc,Fc,qe,Me,oe.CircleClose)),mo=Oc,Ol={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Kc,create:Uc,scope:Hc}=J("textarea"),_c=Uc({props:{...Ol},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,pe.useFoxI18n)(Hc);const l=o(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const v=Kc;return{[v]:!0,[`${v}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const i=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let v=a.value;v.style.height="auto";let S=v.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:y}=e.autosize;w!==void 0&&(S=Math.min(S,w)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),v.style.height=S+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});const s=(v,S)=>{e.maxLength&&v.length>Number(e.maxLength)&&(v=v.substring(0,Number(e.maxLength))),n("update:modelValue",v,S),n("change",v,S)};return{...l,textareaRef:a,classes:r,styles:i,change:v=>{const S=v.target;s(S.value,v)},focus:v=>{e.disabled||e.readonly||n("focus",v)},blur:v=>{if(e.disabled||e.readonly)return;let S=v.target.value;s(S,v),n("blur",{value:S,event:v})}}}}),jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Wc={key:0,class:"fox-textarea__limit"};function Yc(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,jc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wc,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var el=ae(_c,[["render",Yc]]);function Xc(e,n,o,l){return{props:{...he,...ge,...Ol},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const i=Rn((0,t.computed)(()=>a.disabled)),u=Ln((0,t.computed)(()=>a.readonly)),{emitEvent:s}=Be({componentName:e,get readonly(){return u.value},get disabled(){return i.value}},a.prop??r.attrs.name),d=De(a,"modelValue",null,s),p=y=>{d.value=y,s("update:modelValue",y,{}),s("change",y,{})};let c=De(a,"hintText"),v=(0,t.ref)(!1);const S=y=>{ce(c.value)||(v.value=!0),s("focus",d.value,y)},w=y=>{setTimeout(()=>{v.value&&(v.value=!1)},0),s("blur",d.value,y)};return()=>{const y={...ve(a,Ol),disabled:i.value,readonly:u.value,value:d.value,"onUpdate:modelValue":p,onFocus:S,onBlur:w},k=[],f=(0,t.h)(l,y);k.push(f);const b={default:()=>k};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const m={...ve(a,ge,he)};return a.prop&&(m.prop=`${a.prop}_item`),(0,t.h)(o,m,b)}}}}var{componentName:Qc,create:Gc,scope:Zc}=J("textarea-item"),Jc=Gc(Xc(Qc,Zc,Et,el)),po=Jc;function ed(e){return e===window}var $e=e=>{const n=(0,t.unref)(e);if(ed(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},lr=10;function wi(e,n){return e>n&&e>lr?"horizontal":n>e&&n>lr?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const u=i.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=wi(e.offsetX,e.offsetY))}),start:(i=>{if(l(),i.touches){const u=i.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function lt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(""),c=()=>p.value==="vertical",v=()=>p.value==="horizontal",S=()=>{i.value=0,u.value=0,s.value=0,d.value=0,p.value="",o.value=0};return{move:(k=>{if(k.touches){const f=k.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const f=k;i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,p.value||(p.value=wi(s.value,d.value))}),start:(k=>{if(S(),k.touches){const f=k.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=k;e.value=f.clientX,n.value=f.clientY}o.value=Date.now()}),reset:S,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:p,isVertical:c,isHorizontal:v}}var td=2e3,or=()=>td++,Ze={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},nd=(e,n)=>({components:n,props:{...Ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(a.zIndex=or());const r=(0,t.computed)(()=>{const y=e,k=[y,`${y}--${o.position}`];return o.round&&k.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&k.push(`${y}--${o.position}--safebottom`),typeof o.popClass=="string"?k.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(f=>{k.push(f)}),k}),i=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?a.zIndex=o.zIndex:a.zIndex=or(),o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},p=y=>{l("click-pop",y)},c=y=>{y.stopPropagation(),l("click-close-icon",y),l("update:visible",!1)},v=y=>{l("click-overlay",y),o.closeOnClickOverlay&&l("update:visible",!1)},S=y=>{l("opend",y)},w=y=>{l("closed",y)};return(0,t.watch)(()=>o.visible,y=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,y=>{a.closed=y}),{...(0,t.toRefs)(a),popStyle:i,transitionName:u,classes:r,onClick:p,onClickCloseIcon:c,onClickOverlay:v,onOpened:S,onClosed:w}}}),Ci={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},ho={...Ze,...Ci,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},Ni=36;function ld(){return Ni}function od(e){Ni=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ad(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ar(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var rd=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function id(){return new rd((0,t.getCurrentInstance)().proxy)}function rr(e,n,o){return!(Re(e,n)!==Re(e,o)||it(e,n)!==it(e,o))}function sd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=n[i];let s=o[i].findIndex(d=>{if(r==="text")return Re(e,d)===u;if(r==="value"){let p=it(e,d);return p==null&&(p=Re(e,d)),p===u}else if(r==="item")return rr(e,d,u)});if(s==-1)break;a.push(s)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return Re(e,c)===s;if(r==="value"){let v=it(e,c);return v==null&&(v=Re(e,c)),v===s}else if(r==="item")return rr(e,c,s)});if(d==-1)break;a.push(d);const p=Kl(e,i[d]);if(!Array.isArray(p))break;i=p}}return a}function ir(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=o[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],p=Re(e,d);if(a.texts.push(p),a.items.push(d),r==="text")a.values.push(p);else if(r==="value"){let c=it(e,d);c==null&&(c=p),a.values.push(c)}else a.values.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],p=Object.assign({},d);p.children=null;const c=Re(e,d);if(a.texts.push(c),a.items.push(p),r==="text")a.values.push(c);else if(r==="value"){let v=it(e,d);v==null&&(v=c),a.values.push(v)}else a.values.push(p);if(!Array.isArray(d.children))break;i=d.children}}return a}function sr(e){return{text:e,value:e}}var ud=15,cd=300,dd=200,{create:fd}=J("picker-column");function md(e){e.stopPropagation()}function pd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&md(e)}var hd={source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Ci},vd=fd({props:hd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),a=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=h=>{const N=h+1;return N>=c.currIndex+8||N<=c.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),s=h=>{const N=h+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*N}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),p=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),v=h=>Re(e,h),S=h=>it(e,h),w=lt(),y=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},k=(h,N=!1,B=!1)=>{if(c.currIndex=h,N){const T=()=>{c.moving=!1,n("update:modelValue",h),n("change",h)};B?c.transitionEndTrigger=T:T()}},f=(h,N,B)=>{let T=h+c.startDistance;if(N==="end"){const V=-(e.source.length-1)*e.itemHeight;T<V&&(T=V),T>0&&(T=0);let U=Math.abs(Math.round(-T/e.itemHeight));const W=-U*e.itemHeight,$=`${(U+1)*c.rotation}deg`;k(U,!0,B?B>0:!1),b(W,N,B,$)}else{let V=(-T/e.itemHeight+1)*c.rotation;const U=(e.source.length+1)*c.rotation,W=0;if(V=Math.min(Math.max(V,W),U),e.threeDimensional&&(V<W||V>U))return;b(T,null,void 0,`${V}deg`)}},b=(h=0,N,B=dd,T)=>{N==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=T,c.scrollDistance=h},m=(h,N)=>(h=Math.abs(h/N)/.003*(h<0?-1:1),h),A=h=>{e.readonly||(c.startDistance=c.scrollDistance,w.start(h),c.transitionEndTrigger=null)},C=h=>{e.readonly||(c.moving=!0,w.move(h),w.isVertical()&&(c.moving=!0,pd(h,!0)),f(w.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const h=w.deltaY.value,N=w.duration.value;N<cd&&Math.abs(h)>ud?f(m(h,N),"end",de(e.swipeDuration)):f(h,"end",0)};return(0,t.watch)(()=>e.modelValue,h=>{const N=c.currIndex-h;N!==0&&(c.currIndex=h,c.startDistance=c.scrollDistance,f(N*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,h=>{if(c.currIndex>=h.length){const N=(h.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,f(N,"end",0)}}),(0,t.watch)(()=>e.visible,h=>{h===!1&&y()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:a,itemText:v,itemValue:S,...(0,t.toRefs)(c),roller:p,getItemText:Re,onTouchStart:A,onTouchMove:C,onTouchEnd:g,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:y}}}),gd={key:1,class:"fox-picker__item-tile"};function yd(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(i)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",gd,(0,t.toDisplayString)(e.itemText(i)),1))],64))),128))],6)],38)}var bd=ae(vd,[["render",yd]]),Mt=0,ur="fox-overflow-hidden",cr=()=>Je?document.body:{classList:[]},Sd=e=>[()=>{if(e())try{!Mt&&cr().classList.add(ur),Mt++}catch{}},()=>{if(e()&&Mt)try{Mt--,!Mt&&cr().classList.remove(ur)}catch{}}],kd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:wd,create:Cd}=J("overlay"),Nd=Cd({props:{...kd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Sd(()=>e.lockScroll),a=(0,t.computed)(()=>({[wd]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:a,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ad(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var st=ae(Nd,[["render",Ad]]),{componentName:Bd,create:Td}=J("popup"),Vd=Td(nd(Bd,{FoxOverLay:st,Close:oe.Close}));function xd(e,n,o,l,a,r){const i=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var ye=ae(Vd,[["render",xd]]),$d=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(ye,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Ed=$d,{create:Dd,componentName:dr,scope:Id}=J("picker"),qd=Dd({components:{Column:bd,Wrapper:Ed},props:ho,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,pe.useFoxI18n)(Id),a=o(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),i=(0,t.ref)(ld());(0,t.watch)(()=>e.visible,M=>{M&&i.value<=0&&setTimeout(()=>{r.value&&(i.value=$e(r.value).height,od(i.value))},50)});const u=(0,t.computed)(()=>({[dr]:!0})),s=(0,t.computed)(()=>{const M=[];return Array.isArray(e.popClass)?M.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&M.push(e.popClass),M.push(`${dr}__popup`),M.join(" ")}),d=id(),p=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const v=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const M=[];for(let q=0;q<c.value.length;q++){const O=c.value[q];if(Array.isArray(O)){const H=O.filter(e.sourceFilter);M.push(H)}}return M}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([M,q])=>{if(M){let O=await d.load("picker",M,q);if(O.length>0){let H=O[0];if(Array.isArray(H)){if(typeof H[0]=="string"){let I=O,G=[];I.forEach(te=>{let _=te.map(K=>sr(K));G.push(_)}),c.value=G}else c.value=O;p.value="multipleColumn"}else if(typeof H=="string"){let I=O,G=[],te=I.map(_=>sr(_));G.push(te),c.value=G,p.value="singleColumn"}else{const I=Kl(e,H);Array.isArray(I)?(p.value="cascade",c.value=[O]):(p.value="singleColumn",c.value=[O])}}else c.value=[]}},{immediate:!0});const S=(0,t.ref)([]),w=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),y=(0,t.ref)([]);let k=null;const f=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>v.value],([M,q])=>{let O=sd(e,M,q,p.value);if(!xe(O,f.value)){f.value=O,k||(k=O?[...O]:[]);let H=ir(e,O,q,p.value);H&&(S.value=H.texts,xe(w.value,H.values)||(w.value=H.values),xe(y.value,H.items)||(y.value=H.items),n("update:text",S.value))}});let b="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,M=>{m.value=M,M&&(b="active",f.value.length>0&&(k=[...f.value]))});const A=M=>{let q=ar(e,M);return Ve(q)?q.defaultIndex??0:0},C=M=>{if(e.readonly===!0)return!0;let q=ar(e,M);return Ve(q)?q.readonly??!1:!1},g=(M,q)=>{let O=f.value;O[M]=q;for(let I=0;I<M;I++)O[I]==null&&(O[I]=A(I));if(p.value==="cascade")for(let I=M+1;I<N.value.length;I++){let G=A(I);I<O.length?O[I]=G:O.push(G)}else for(let I=O.length;I<N.value.length;I++){let G=A(I);O.push(G)}f.value=O;let H=ir(e,O,v.value,p.value);H&&(S.value=H.texts,w.value=H.values,y.value=H.items)},h=M=>M<f.value.length?f.value[M]:A(M),N=(0,t.computed)(()=>{if(v.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return v.value;let M=[],q=0,O=v.value[0],H=0;for(;;){let I=O.map(_=>{let K=Object.assign({},_);return ad(e,K,null),K});M.push(I),q>=f.value.length?H=0:H=f.value[q],(H<0||H>=O.length)&&(H=0);let G=O[H];const te=Kl(e,G);if(!Array.isArray(te))break;O=te,q++}return M}),B=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*i.value),T=(M=!1)=>{if(e.readonly===!0){M&&n("update:visible",!1);return}let q=v.value.length-1;for(;q>=0&&!(f.value[q]===null||f.value[q]===void 0);q--);if(q>=0&&g(q,0),p.value==="singleColumn"){let O=w.value.length>0?w.value[0]:"",H=y.value.length>0?y.value[0]:null;n("update:modelValue",O),n("update:text",S.value),n("change",O,H),M&&(n("confirm",O),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",S.value),n("change",w.value,y.value),M&&(n("confirm",w.value),n("update:visible",!1))},V=(M,q)=>{b!=="close"&&(g(M,q),e.isAutoBackFill&&T(!m.value))},U=()=>{b==="active"&&(b="confirm",k=Array.isArray(f.value)?[...f.value]:[],T(!0))},W=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),f.value=[],k=null};return{...a,pickerLineRef:r,classes:u,popClasses:s,columns:N,dataType:p,show:m,itemHeight:i,top:B,isReadonly:C,getIndex:h,change:V,close:()=>{if(b==="active"){if(b="close",k===null||k.length===0)W();else{if(Array.isArray(k))for(let M=0;M<k.length;M++)g(M,k[M]);T(!1)}n("close"),n("update:visible",!1)}},confirm:U,clear:()=>{if(b==="active"){if(b="clear",e.readonly===!0){n("update:visible",!1);return}W(),k=null,n("clear",""),n("update:visible",!1)}}}}}),Pd={key:0,class:"fox-picker__bar"},Md={class:"fox-picker__title"},zd={class:"fox-picker__bar__action"},Ld={class:"fox-picker__column"};function Rd(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pd,[(0,t.createElementVNode)("view",Md,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",zd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",Ld,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":p=>e.change(d,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var ln=ae(qd,[["render",Rd]]),Fd={...he,...ge,...ho,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Od(e,n,o,l,a,r,i,u=!0){return{props:Fd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=De(s,"modelValue",null,y),A=(0,t.ref)([]),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const L={};return N.value&&(L["text-align"]=N.value),L}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=L=>{T.value=L},W=L=>{m.value=L,y("update:modelValue",L)},$=(L,X)=>{y("change",L,X)},P=L=>{let X=L.target.value;b.value=!0,y("focus",X,L)},M=L=>{setTimeout(()=>{b.value=!1},0);let X=L.target.value;s.maxLength&&X.length>Number(s.maxLength)&&(X=X.slice(0,Number(s.maxLength))),y("blur",X,L)},q=L=>{A.value=L,Array.isArray(L)&&L.length===0?y("update:text",L[0]):y("update:text",L)},O=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),H=(0,t.computed)(()=>ke(s.unit)>0),I=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),G=(0,t.computed)(()=>({hidden:!I.value})),te=L=>{m.value="",y("update:modelValue","",L),y("change","",L),y("clear","")},_=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),K=(0,t.computed)(()=>ke(m.value)>0&&b.value),Y=L=>{K.value?te(L):V()},Z=(0,t.computed)(()=>K.value&&_.value?a:r),E=(0,t.computed)(()=>({action:!0}));return be({setDisabled:L=>{p.value=L},setReadonly:L=>{v.value=L}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const L={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(L.disabled=!0);const X=[],Q=(0,t.h)("input",L);X.push(Q);const ne=[],z=(0,t.h)(Z.value,{class:["action-icon"]}),R=(0,t.h)("view",{class:E.value,onClick:Y},{default:()=>[z]});if(ne.push(R),H.value){const le=(0,t.h)("view",{class:G.value},[s.unit]);ne.push(le)}const D=(0,t.h)("view",{class:O.value},{default:()=>ne});X.push(D);const x={default:()=>X};x.label=d.slots.default,x.prepend=d.slots.prepend,x.append=d.slots.append,x.fixedPreTip=d.slots.fixedPreTip,x.fixedTip=d.slots.fixedTip;const F=ve(s,ho);F.disabled=!1,F.readonly=c.value||S.value,F.visible=T.value,F["onUpdate:visible"]=U,F.modelValue=m.value,F["onUpdate:modelValue"]=W,F.text=A.value,F["onUpdate:text"]=q,F.onChange=$;const j=(0,t.h)(i,F);x.hide=()=>[j];const ee=ve(s,ge,he);return s.prop&&(ee.prop=`${s.prop}_item`),o(ee,x)}}}}var{componentName:Kd,create:Ud,scope:Hd}=J("picker-item"),_d=Ud(Od(Kd,Hd,qe,Me,oe.CircleClose,oe.ArrowRight,ln,!1)),vo=_d,jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(ye,{...o},n):n?.default?.()??null}}),Wd=jd,fn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:d,...p}=l,c={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=fn(c.children,c,o)),c}),Ai=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ai(l.children,n)},Yd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Xd=(e,n)=>{const{topId:o,idKey:l,pidKey:a,sortKey:r}={...Yd,...n||{}};let i=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[a]:p}=s,c=u[p]=u[p]||[];!i.length&&p===o&&(i=c),c.push(s),s.children=u[d]||(u[d]=[])}),r&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,p)=>d[r]-p[r])}),u=null,i},go={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},fr=(e,n)=>n[e.textKey],zt=(e,n)=>n[e.valueKey],Qd=(e,n)=>n[e.visibleKey],mr=(e,n)=>n[e.disabledKey],Gd=(e,n)=>{const o=n[e.doitKey];return Se(o)},Zd=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},pr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Jd(e,n,o,l,a,r=!1){return{props:go,emits:["update:modelValue","change","click"],setup(i,{slots:u,emit:s}){const d=(0,t.computed)(()=>{const D={};return D[`${e}`]=!0,D}),p=(0,t.computed)(()=>{const D={};return D[`${e}__titles`]=!0,D[`${i.direction}`]=!0,i.align&&(D[`${i.align}`]=!0),i.scroll===!0&&(D.scrollable=!0),i.shape&&(D[`${i.shape}`]=!0),i.showScrollArrow?(Z.value===!0&&(D["has-left-scroll-arrow "]=!0),E.value===!0&&(D["has-right-scroll-arrow "]=!0)):i.showQuickNavigation&&(D["has-navigation"]=!0),D}),c=(0,t.computed)(()=>({})),v=(0,t.computed)(()=>{if(!i.gutter)return 0;const D=se(i.gutter);return D<=0?0:D}),S=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,D=>{S.value!==D&&(S.value=D,H(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=(0,t.computed)(()=>{const D={};return f.value||(D.display="none"),D}),k=(0,t.ref)(),f=(0,t.ref)(!1),b=()=>{m(!f.value)},m=D=>{const x=D;x?(f.value=x,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,k.value?k.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},A=(0,t.ref)(),C=(0,t.ref)([]),g=(D,x)=>{C.value[x]=D},h=D=>x=>{g(x,D)},N=(D,x)=>{const F=A.value,j=C.value;if(!F||!j||!j[D])return;const ee=j[D];let le=0;i.direction==="vertical"?le=ee.offsetTop-(F.offsetHeight-ee.offsetHeight)/2:le=ee.offsetLeft-(F.offsetWidth-ee.offsetWidth)/2,B(F,le,x?0:.3,i.direction)},B=(D,x,F,j)=>{let ee=0;const le=j==="horizontal"?D.scrollLeft:D.scrollTop,ie=F===0?1:Math.round(F*1e3/16);function ue(){j==="horizontal"?D.scrollLeft+=(x-le)/ie:D.scrollTop+=(x-le)/ie,++ee<ie&&He(ue)}ue()},T=(D,x)=>{const F=zt(i,D),j={};return j[`${e}__titles-item`]=!0,j.disabled=mr(i,D),j.active=F===S.value,i.shape&&(j[`${i.shape}`]=!0),i.ellipsis&&(j.ellipsis=!0),x&&(x.class&&(j[`${x.class}`]=!0),x.disabled===!0&&(j.disabled=x.disabled)),j},V=(D,x)=>{const F={};if(v.value>0){const j=Math.abs(v.value/2);i.direction==="vertical"?(F["margin-top"]=`${j}px`,F["margin-bottom"]=`${j}px`):(F["margin-left"]=`${j}px`,F["margin-right"]=`${j}px`)}return x&&x.style&&Object.assign(F,x.style),F},U=(D,x)=>`${zt(i,D)??x}`,W=(D,x)=>{const F=zt(i,D),j={};j[`${e}__popup-item`]=!0,j.disabled=mr(i,D),j.active=F===S.value,i.shape&&(j[`${i.shape}`]=!0);const ee=pr(i,D,x);return ee&&ee.disabled===!0&&(j.disabled=ee.disabled),j},$=(0,t.computed)(()=>(i.data??[]).filter(D=>Qd(i,D)!==!1)),P=(D,x)=>{const F=zt(i,D);if(s("click",D,x),S.value==F)return;const j=()=>{S.value=F,i.scroll&&N(x,!1),s("update:modelValue",F),s("change",D,x)};if(typeof i.beforeChange=="function"){const ee=i.beforeChange(D,x);bt(ee)?ee.then(le=>{le!==!1&&j()}).catch(()=>{j()}):ee!==!1&&j()}else j()},M=(D,x)=>function(){P(D,x)},q=(D,x)=>{P(D,x),m(!1)},O=(D,x)=>function(){q(D,x)},H=D=>{if(!Array.isArray(i.data)||!i.scroll)return;Y()&&ne();const x=i.data.findIndex(F=>zt(i,F)===S.value);x!==-1&&N(x,D)},I=()=>{Y()||z()};(0,t.watch)(()=>i.data,()=>{setTimeout(H,0)}),(0,t.onMounted)(()=>{H(!0)}),(0,t.onBeforeUnmount)(()=>{I()});const G=(D,x)=>{if(u.item)return u.item({item:D,index:x});const F=pr(i,D,x),j=[];if(u.text){const le=u.text({item:D,index:x});j.push(le)}else{const le=[];if(F?.doit===!0||Gd(i,D)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});le.push(Ue)}const ie=F?.num??Zd(i,D);if(ie){let Ue="";const ze=de(ie);ze>=100?Ue="99+":Ue=`${ze}`;const It=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);le.push(It)}const ue={class:`${e}__titles-item-text`};le.push(fr(i,D));const Ke=(0,t.h)("view",ue,le);j.push(Ke)}const ee=(0,t.h)("view",{class:`${e}__titles-item-line`});return j.push(ee),(0,t.h)("view",{ref:h(x),class:T(D,F),style:V(D,F),key:U(D,x),onClick:M(D,x)},j)},te=()=>{const D=u.default?u.default():[];if(D.length===0)for(let x=0;x<$.value.length;x++){const F=$.value[x],j=G(F,x);D.push(j)}return(0,t.h)("view",{ref:A,class:p.value,style:c.value},D)},_=()=>{let D=null;return u.navigation?D=u.navigation():D=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:b},[D])},K=()=>{const D=[];for(let x=0;x<$.value.length;x++){const F=$.value[x];let j=null;u.popupItem?j=u.popupItem({item:F,index:x}):j=fr(i,F);const ee=(0,t.h)("view",{class:W(F,x),key:U(F,x),onClick:O(F,x)},[j]);D.push(ee)}return(0,t.h)("view",{class:w.value,style:y.value},D)},Y=()=>i.showScrollArrow&&i.direction=="horizontal",Z=(0,t.ref)(!1),E=(0,t.ref)(!1),L=D=>{const x=A.value,F=C.value;if(!(!x||!F))if(D==="left"){const j=x.scrollLeft;let ee=j;for(let le=0;le<F.length;le++){const ie=F[le].offsetLeft;if(j-ie<0)break;ee=ie}B(x,ee,.3,"horizontal")}else{const j=x.scrollLeft;let ee=j,le=x.offsetWidth;for(let ie=F.length-1;ie>=0;ie--){const ue=F[ie].offsetLeft+F[ie].offsetWidth;if(ue-j<x.offsetWidth){ee+=le-ue;break}le=ue}B(x,ee,.3,"horizontal")}},X=Ee(()=>{const D=A.value;if(!D)return;let x=D.scrollLeft>0;x!==Z.value&&(Z.value=x);let F=D.scrollWidth-D.scrollLeft>D.offsetWidth;F!==E.value&&(E.value=F)},50),Q=D=>{X()},ne=()=>{const D=A.value;D&&(X(),D.addEventListener("scroll",Q))},z=()=>{const D=A.value;D&&D.removeEventListener("scroll",Q)},R=D=>{if(D==="left"&&Z.value!==!0||D==="right"&&E.value!==!0)return null;let x=null;return D==="left"?u.leftArrow?x=u.leftArrow():x=(0,t.h)(l):u.rightArrow?x=u.rightArrow():x=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,D],onClick:()=>{L(D)}},[x])};return()=>{const D=[],x=te();if(D.push(x),Y()){const F=R("left");F&&D.push(F);const j=R("right");j&&D.push(j)}else if(i.showQuickNavigation){const F=_();D.push(F);const j=K();D.push(j)}return(0,t.h)("view",{class:d.value},D)}}}}var{create:ef,componentName:tf,scope:nf}=J("tabs-bar"),lf=ef(Jd(tf,nf,oe.MoreH,oe.Left,oe.Right,!1)),on=lf,Bi=Symbol("TabsStatesKey"),yo={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},of=15,af=300,rf=200;function sf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function hr(e,n=0,o,l,a=rf){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var uf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,a){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=a??tl()}open(e){this.el=e;const n=nl(),o=(l,a,r)=>{const i={delta:l,direction:a,type:r};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}o(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<af&&Math.abs(l)>of?(l=sf(l,a,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function cf(e,n,o,l=1,a){return new uf(e,n,o,l,a)}function df(e,n,o=!1){return{props:yo,emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=(0,t.shallowRef)([]),u={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:h=>{const N={name:h};u.current.value===h&&(N.loaded=!0),i.value.push(N),(0,t.triggerRef)(i)},remove:h=>{const N=i.value.findIndex(B=>B.name===h);N!==-1&&i.value.splice(N,1)},isLoaded:h=>{if(!l.lazy)return!0;const N=i.value.findIndex(B=>B.name===h);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};(0,t.provide)(Bi,u);const s=h=>{const N=i.value.findIndex(B=>B.name===h);N!==-1&&(i.value[N].loaded=!0,(0,t.triggerRef)(i))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([h,N])=>{u.current.value!==h&&(u.current.value=h??"",s(h??"")),u.direction.value!==N&&(u.direction.value=N)});const d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),v=(0,t.computed)(()=>{const h={};if(l.width){const N=me(l.width);N&&(h.width=N)}if(l.height){const N=me(l.height);N&&(h.height=N)}return h});let S=!0;const w=(0,t.computed)(()=>{const h={};if(l.transition===!1)return h;const N=i.value.length;if(N<=0)return h;const B=i.value.findIndex(T=>T.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(h.height=`${N*u.tabHeight.value}px`,B!==-1&&(h.transform=`translate(0, -${B*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(h.width=`${N*u.tabWidth.value}px`,B!==-1&&(h.transform=`translate(-${B*u.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},k=h=>{const N=i.value.length,B=i.value.findIndex(T=>T.name===u.current.value);y.moved=0,h.direction==="vertical"?(y.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),y.max=u.tabHeight.value/4,y.start=-B*u.tabHeight.value,y.itemDistance=u.tabHeight.value):(y.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),y.max=u.tabWidth.value/4,y.start=-B*u.tabWidth.value,y.itemDistance=u.tabWidth.value)},f=h=>{const N=p.value;if(!N)return;let B=y.start+h.delta;if(B>y.max?B=y.max:B<y.min&&(B=y.min),h.type==="move")hr(N,B,"move",h.direction,300);else if(h.type==="end"){let T=Math.floor(Math.abs(B)*1/y.itemDistance);const V=Math.abs(B)%y.itemDistance;y.start>B?V>=y.itemDistance*y.triggerAutoMoveRatio&&(T+=1):V>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&(T+=1),B=-1*T*y.itemDistance,hr(N,B,"end",h.direction,300),y.moved=B;const U=i.value[T].name;u.current.value=U??"",s(U??""),a("update:modelValue",U)}},b=()=>{},m=()=>{if(!d.value)return;const h=Fn(d.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height},A=Sn(m,250);let C=null,g=null;return(0,t.onMounted)(()=>{l.transition!==!1&&d.value&&(m(),window.ResizeObserver&&(g=new window.ResizeObserver(A),g.observe(d.value)),l.draggle&&(C=cf(k,f,b),C.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{g&&(g.disconnect(),g=null),C&&C.close()}),be({doLayout(){m()}}),()=>{const h=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:c.value,style:v.value,ref:d},[h])}}}}var{create:ff,componentName:mf,scope:pf}=J("tabs-container"),hf=ff(df(mf,pf,!1)),an=hf,vf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function gf(e,n,o){return{props:vf,setup(l,{emit:a,slots:r}){const i=(0,t.inject)(Bi);(0,t.onMounted)(()=>{i.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{i.remove(l.paneKey)});const u=(0,t.computed)(()=>{const p=[e];return i.direction.value==="vertical"?p.push("is-vertical"):p.push("is-horizontal"),i.transition===!1?p.push("is-no-transition"):p.push("is-transition"),p}),s=(0,t.computed)(()=>{const p={};return i.transition===!1?(i.current.value!==l.paneKey&&(p.display="none"),p):(i.direction.value==="vertical"&&i.tabHeight.value>0?p.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(p.width=`${i.tabWidth.value}px`),p)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):i.isLoaded(l.paneKey));return()=>{let p=[];if(d.value)p=r?.default?.()??[];else if(r.empty)p=r.empty();else{const c={class:`${e}__empty-icon`},v=(0,t.h)(l.emptyIcon??o,c),S=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),w=(0,t.h)("view",{class:`${e}__empty`},[v,S]);p.push(w)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},p)}}}}var{create:yf,componentName:bf,scope:Sf}=J("tabs-pane"),kf=yf(gf(bf,Sf,oe.Loading)),ll=kf,vr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=fn(e,null,this.config)}updateChildren(e,n){n?n.children=fn(e,n,this.config):this.nodes=fn(e,null,this.config)}getNodeByValue(e){let n;return Ai(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(a=>a.value===e[a.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,a=Array.isArray(l)&&!!l.length;return o||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:wf,scope:Cf}=J("cascader-pane"),Nf=wf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:on,TabsContainer:an,TabsPane:ll},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(Cf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=(0,t.ref)(0),r=(0,t.ref)(),i=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new vr([],{})),d=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>i.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,A)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:A}))),v=new Map;let S;const w=async()=>{v.clear(),d.value=[],a.value=0,i.value=!1,S=null;let{options:m}=e;l.value.convertConfig&&(m=Xd(m,l.value.convertConfig)),s.value=new vr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],y(!p.value)},y=async(m=!0)=>{const A=u.value;if(A===void 0||!s.value.nodes.length)return;if(A.length===0){a.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let C=A;if(p.value&&Array.isArray(A)&&A.length){C=[];let g=s.value.nodes.find(h=>h.value===A[0]);g&&(C=[g.value],i.value=!0,await k(await A.slice(1).reduce(async(h,N)=>{const B=await h;await k(B);const T=B&&B?.children?.find(V=>V.value===N);return T&&C.push(N),Promise.resolve(T)},Promise.resolve(g))),i.value=!1)}C.length&&A===e.modelValue&&s.value.getPathNodesByValue(C).map((g,h)=>{a.value=h,b.handleNode(g,m)})},k=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,p.value)||s.value.hasChildren(m,p.value))return;m.loading=!0;const A=m.root?null:m;let C=v.get(m);C||(C=new Promise(h=>{l.value.lazyLoad?.(m,h)}),v.set(m,C));const g=await C;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,A):m.leaf=!0,m.loading=!1,v.delete(m)},f=m=>{const A=m.map(C=>C.value);u.value=A,n("change",A,m),n("pathChange",m),n("update:modelValue",A)},b={async handleNode(m,A){const{disabled:C,loading:g}=m;if(!(!A&&C||!d.value[a.value])){if(s.value.isLeaf(m,p.value)){if(m.leaf=!0,d.value[a.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!A){const h=d.value.map(N=>N.selectedNode);f(h),n("pathChange",h)}return}if(s.value.hasChildren(m,p.value)){const h=m.level+1;d.value[a.value].selectedNode=m,d.value=d.value.slice(0,h),d.value.push({nodes:m.children||[],selectedNode:null}),a.value=h,A||n("pathChange",d.value.map(N=>N.selectedNode));return}S=m,!g&&(await k(m),S===m&&(d.value[a.value].selectedNode=m,b.handleNode(m,A)))}},handleTabChange(m,A){S=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,A){return m.selectedNode&&m.selectedNode.value===A.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{xe(m,u.value)||(u.value=m,y(!p.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(u.value)&&u.value.length>0&&y(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:i,tabsCursor:a,tabsContainerRef:r,...b}}}),Af={class:"fox-cascader"},Bf={role:"menu",class:"fox-cascader__pane"},Tf=["aria-checked","aria-disabled","onClick"],Vf={class:"fox-cascader__item__title"};function xf(e,n,o,l,a,r){const i=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Af,[(0,t.createVNode)(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(c,v)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":v,key:v},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Bf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,S=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:S.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,S),disabled:S.disabled}]),"aria-checked":e.isSelected(c,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(S,!1)},[(0,t.createElementVNode)("view",Vf,(0,t.toDisplayString)(S.text),1),S.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Tf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var $f=ae(Nf,[["render",xf]]),{create:Ef}=J("cascader"),Df=Ef({components:{CascaderPane:$f,Wrapper:Wd},props:{...Ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(i){n("update:visible",i)}}),a=(i,u)=>{o.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return(0,t.watch)(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),If=["innerHTML"];function qf(e,n,o,l,a,r){const i=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,If)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var ol=ae(Df,[["render",qf]]);function Nt(e,n){return n[e.textKey??"text"]??""}function At(e,n){return n[e.valueKey??"value"]}function Ti(e,n){return n[e.childrenKey??"children"]}function cn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Nt(e,a),i=At(e,a);o.texts.push(r),o.values.push(i??"")}return o}function Vi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(Nt(e,n[i])===r){const u=At(e,n[i])??"",s={[e.textKey]:r,[e.valueKey]:u};a.push(s);const d=Ti(e,n[i]);Array.isArray(d)&&Vi(e,d,o,l+1,a);return}}function xi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(At(e,n[i])===r){const u=Nt(e,n[i])??"",s={[e.textKey]:u,[e.valueKey]:r};a.push(s);const d=Ti(e,n[i]);Array.isArray(d)&&xi(e,d,o,l+1,a);return}}function Nl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Nt(e,n[l])!==Nt(e,o[l])||At(e,n[l])!==At(e,o[l]))return!1;return!0}var Pf=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const a=nt(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Ve(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,o))}};function Mf(){return new Pf((0,t.getCurrentInstance)().proxy)}var $i={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},zf={...he,...ge,...$i};function Lf(e,n,o,l,a,r,i,u=!1){return{props:zf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=Mf(),A=(0,t.ref)([]),C=(0,t.ref)([]),g=(0,t.computed)(()=>{if(Array.isArray(C.value)){if(s.showAllLevels===!1){const R=C.value.length-1;return C.value[R]}return C.value.join(s.separator)}else return C.value}),h=(0,t.ref)([]),N=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>A.value],async([R,D])=>{if(y("setValue",R),s.lazy===!0){N.value.length==0&&(C.value=Array.isArray(R)?R:[],h.value=Array.isArray(R)?R:[]);return}if(s.valueType==="item"){let x=R;if(!Nl(s,x,N.value)){N.value=x;let F=cn(s,x);C.value=F.texts,h.value=F.values}}else if(s.valueType==="text"){let x=R,F=[];if(Vi(s,D,x,0,F),!Nl(s,F,N.value)){N.value=F;let j=cn(s,F);C.value=j.texts,h.value=j.values}}else{let x=R,F=[];if(xi(s,D,x,0,F),!Nl(s,F,N.value)){N.value=F;let j=cn(s,F);C.value=j.texts,h.value=j.values}}}),s.lazy===!0&&(h.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([R,D])=>{s.lazy||R&&(A.value=await m.load(R,D))},{immediate:!0});const B="fox-input-item",T=(0,t.computed)(()=>({[B]:!0,"is-disabled":c.value,"is-readonly":S.value})),V=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),U=(0,t.computed)(()=>{const R={};return V.value&&(R["text-align"]=V.value),R}),W=(0,t.ref)(!1),$=()=>{c.value===!0||S.value===!0||(W.value=!0)},P=R=>{W.value=R},M=(R,D)=>{let x=D.map(j=>{if(j==null)return j;let ee={...j};return Reflect.deleteProperty(ee,"text"),ee[s.textKey]=j.text??"",Reflect.deleteProperty(ee,"value"),ee[s.valueKey]=j.value??"",ee});N.value=x;let F=cn(s,x);C.value=F.texts,h.value=F.values,s.valueType==="text"?(y("change",C.value,x),y("update:modelValue",C.value)):s.valueType==="item"?(y("change",x,x),y("update:modelValue",x)):(y("change",h.value,x),y("update:modelValue",h.value)),y("update:pathNodes",x)},q=R=>{y("pathChange",R.map(D=>{if(D==null)return D;let x={...D};return Reflect.deleteProperty(x,"text"),x[s.textKey]=D.text??"",Reflect.deleteProperty(x,"value"),x[s.valueKey]=D.value??"",x}))},O=R=>{b.value=!0,y("focus",h.value,R)},H=R=>{setTimeout(()=>{b.value=!1},0),y("blur",h.value,R)},I=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),G=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),_=(0,t.computed)(()=>({hidden:!te.value})),K=R=>{N.value=[],C.value=[],h.value=[],y("update:modelValue",[]),y("change",[],R),y("clear",[]),y("update:pathNodes",[])},Y=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),Z=(0,t.computed)(()=>{let R=h.value&&h.value.length>0;return s.clearable&&R&&b.value}),E=R=>{Z.value?K(R):$()},L=(0,t.computed)(()=>Z.value&&Y.value?a:r),X=(0,t.computed)(()=>({action:!0}));let Q=null;const ne=()=>typeof Q=="function"?Q:typeof s.lazyLoad=="function"?s.lazyLoad:(Q=async(R,D)=>{const x=[],F=[];let j=0;if(!R.root){let ee=R;for(;ee;){const le=Nt(s,ee),ie=At(s,ee);F.splice(0,0,le),x.splice(0,0,ie),ee=ee._parent}j=x.length}D(await m.load(s.source,{...R,level:j,pathLabels:F,pathValues:x},!0))},Q),z=(0,t.ref)();return be({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()},setDisabled:R=>{p.value=R},setReadonly:R=>{v.value=R}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(g.value,d.slots);const R={class:T.value,style:U.value,ref:z,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:$,onFocus:O,onBlur:H};u&&(R.disabled=!0);const D=[],x=(0,t.h)("input",R);D.push(x);const F=[],j=(0,t.h)(L.value,{class:["action-icon"]}),ee=(0,t.h)("view",{class:X.value,onClick:E},{default:()=>[j]});if(F.push(ee),G.value){const It=(0,t.h)("view",{class:_.value},[s.unit]);F.push(It)}const le=(0,t.h)("view",{class:I.value},{default:()=>F});D.push(le);const ie={default:()=>D};ie.label=d.slots.default,ie.prepend=d.slots.prepend,ie.append=d.slots.append,ie.fixedPreTip=d.slots.fixedPreTip,ie.fixedTip=d.slots.fixedTip;const ue={};ue.visible=W.value,ue["onUpdate:visible"]=P,ue.modelValue=h.value,ue.onChange=M,ue.onPathChange=q,ue.title=s.title,ue.valueKey=s.valueKey,ue.textKey=s.textKey,ue.childrenKey=s.childrenKey,ue.convertConfig=s.convertConfig,s.lazy?(ue.lazy=!0,ue.lazyLoad=ne()):ue.options=A.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(i,ue,Ke);ie.hide=()=>[Ue];const ze={...et(s,$i)};return s.prop&&(ze.prop=`${s.prop}_item`),o(ze,ie)}}}}var{componentName:Rf,create:Ff,scope:Of}=J("cascader-item"),Kf=Ff(Lf(Rf,Of,qe,Me,oe.CircleClose,oe.ArrowRight,ol,!1)),bo=Kf,Uf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",p="week",c="month",v="quarter",S="year",w="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var P=["th","st","nd","rd"],M=$%100;return"["+$+(P[(M-20)%10]||P[M]||P[0])+"]"}},m=function($,P,M){var q=String($);return!q||q.length>=P?$:""+Array(P+1-q.length).join(M)+$},A={s:m,z:function($){var P=-$.utcOffset(),M=Math.abs(P),q=Math.floor(M/60),O=M%60;return(P<=0?"+":"-")+m(q,2,"0")+":"+m(O,2,"0")},m:function $(P,M){if(P.date()<M.date())return-$(M,P);var q=12*(M.year()-P.year())+(M.month()-P.month()),O=P.clone().add(q,c),H=M-O<0,I=P.clone().add(q+(H?-1:1),c);return+(-(q+(M-O)/(H?O-I:I-O))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:S,w:p,d,D:w,h:s,m:u,s:i,ms:r,Q:v}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},C="en",g={};g[C]=b;var h="$isDayjsObject",N=function($){return $ instanceof U||!(!$||!$[h])},B=function $(P,M,q){var O;if(!P)return C;if(typeof P=="string"){var H=P.toLowerCase();g[H]&&(O=H),M&&(g[H]=M,O=H);var I=P.split("-");if(!O&&I.length>1)return $(I[0])}else{var G=P.name;g[G]=P,O=G}return!q&&O&&(C=O),O||!q&&C},T=function($,P){if(N($))return $.clone();var M=typeof P=="object"?P:{};return M.date=$,M.args=arguments,new U(M)},V=A;V.l=B,V.i=N,V.w=function($,P){return T($,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var U=(function(){function $(M){this.$L=B(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[h]=!0}var P=$.prototype;return P.parse=function(M){this.$d=(function(q){var O=q.date,H=q.utc;if(O===null)return new Date(NaN);if(V.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var I=O.match(k);if(I){var G=I[2]-1||0,te=(I[7]||"0").substring(0,3);return H?new Date(Date.UTC(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,te)):new Date(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,te)}}return new Date(O)})(M),this.init()},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},P.$utils=function(){return V},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(M,q){var O=T(M);return this.startOf(q)<=O&&O<=this.endOf(q)},P.isAfter=function(M,q){return T(M)<this.startOf(q)},P.isBefore=function(M,q){return this.endOf(q)<T(M)},P.$g=function(M,q,O){return V.u(M)?this[q]:this.set(O,M)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(M,q){var O=this,H=!!V.u(q)||q,I=V.p(M),G=function(X,Q){var ne=V.w(O.$u?Date.UTC(O.$y,Q,X):new Date(O.$y,Q,X),O);return H?ne:ne.endOf(d)},te=function(X,Q){return V.w(O.toDate()[X].apply(O.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),O)},_=this.$W,K=this.$M,Y=this.$D,Z="set"+(this.$u?"UTC":"");switch(I){case S:return H?G(1,0):G(31,11);case c:return H?G(1,K):G(0,K+1);case p:var E=this.$locale().weekStart||0,L=(_<E?_+7:_)-E;return G(H?Y-L:Y+(6-L),K);case d:case w:return te(Z+"Hours",0);case s:return te(Z+"Minutes",1);case u:return te(Z+"Seconds",2);case i:return te(Z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(M){return this.startOf(M,!1)},P.$set=function(M,q){var O,H=V.p(M),I="set"+(this.$u?"UTC":""),G=(O={},O[d]=I+"Date",O[w]=I+"Date",O[c]=I+"Month",O[S]=I+"FullYear",O[s]=I+"Hours",O[u]=I+"Minutes",O[i]=I+"Seconds",O[r]=I+"Milliseconds",O)[H],te=H===d?this.$D+(q-this.$W):q;if(H===c||H===S){var _=this.clone().set(w,1);_.$d[G](te),_.init(),this.$d=_.set(w,Math.min(this.$D,_.daysInMonth())).$d}else G&&this.$d[G](te);return this.init(),this},P.set=function(M,q){return this.clone().$set(M,q)},P.get=function(M){return this[V.p(M)]()},P.add=function(M,q){var O,H=this;M=Number(M);var I=V.p(q),G=function(K){var Y=T(H);return V.w(Y.date(Y.date()+Math.round(K*M)),H)};if(I===c)return this.set(c,this.$M+M);if(I===S)return this.set(S,this.$y+M);if(I===d)return G(1);if(I===p)return G(7);var te=(O={},O[u]=l,O[s]=a,O[i]=o,O)[I]||1,_=this.$d.getTime()+M*te;return V.w(_,this)},P.subtract=function(M,q){return this.add(-1*M,q)},P.format=function(M){var q=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var H=M||"YYYY-MM-DDTHH:mm:ssZ",I=V.z(this),G=this.$H,te=this.$m,_=this.$M,K=O.weekdays,Y=O.months,Z=O.meridiem,E=function(Q,ne,z,R){return Q&&(Q[ne]||Q(q,H))||z[ne].slice(0,R)},L=function(Q){return V.s(G%12||12,Q,"0")},X=Z||function(Q,ne,z){var R=Q<12?"AM":"PM";return z?R.toLowerCase():R};return H.replace(f,(function(Q,ne){return ne||(function(z){switch(z){case"YY":return String(q.$y).slice(-2);case"YYYY":return V.s(q.$y,4,"0");case"M":return _+1;case"MM":return V.s(_+1,2,"0");case"MMM":return E(O.monthsShort,_,Y,3);case"MMMM":return E(Y,_);case"D":return q.$D;case"DD":return V.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return E(O.weekdaysMin,q.$W,K,2);case"ddd":return E(O.weekdaysShort,q.$W,K,3);case"dddd":return K[q.$W];case"H":return String(G);case"HH":return V.s(G,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return X(G,te,!0);case"A":return X(G,te,!1);case"m":return String(te);case"mm":return V.s(te,2,"0");case"s":return String(q.$s);case"ss":return V.s(q.$s,2,"0");case"SSS":return V.s(q.$ms,3,"0");case"Z":return I}return null})(Q)||I.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(M,q,O){var H,I=this,G=V.p(q),te=T(M),_=(te.utcOffset()-this.utcOffset())*l,K=this-te,Y=function(){return V.m(I,te)};switch(G){case S:H=Y()/12;break;case c:H=Y();break;case v:H=Y()/3;break;case p:H=(K-_)/6048e5;break;case d:H=(K-_)/864e5;break;case s:H=K/a;break;case u:H=K/l;break;case i:H=K/o;break;default:H=K}return O?H:V.a(H)},P.daysInMonth=function(){return this.endOf(c).$D},P.$locale=function(){return g[this.$L]},P.locale=function(M,q){if(!M)return this.$L;var O=this.clone(),H=B(M,q,!0);return H&&(O.$L=H),O},P.clone=function(){return V.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},$})(),W=U.prototype;return T.prototype=W,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",S],["$D",w]].forEach((function($){W[$[1]]=function(P){return this.$g(P,$[0],$[1])}})),T.extend=function($,P){return $.$i||($(P,U,T),$.$i=!0),T},T.locale=B,T.isDayjs=N,T.unix=function($){return T(1e3*$)},T.en=g[C],T.Ls=g,T.p={},T}))})),Hf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,r=/\d\d/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(k){return(k=+k)+(k>68?1900:2e3)},p=function(k){return function(f){this[k]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var b=f.match(/([+-]|\d\d)/g),m=60*b[1]+(+b[2]||0);return m===0?0:b[0]==="+"?-m:m})(k)}],v=function(k){var f=s[k];return f&&(f.indexOf?f:f.s.concat(f.f))},S=function(k,f){var b,m=s.meridiem;if(m){for(var A=1;A<=24;A+=1)if(k.indexOf(m(A,0,f))>-1){b=A>12;break}}else b=k===(f?"pm":"PM");return b},w={A:[u,function(k){this.afternoon=S(k,!1)}],a:[u,function(k){this.afternoon=S(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[r,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[i,p("seconds")],ss:[i,p("seconds")],m:[i,p("minutes")],mm:[i,p("minutes")],H:[i,p("hours")],h:[i,p("hours")],HH:[i,p("hours")],hh:[i,p("hours")],D:[i,p("day")],DD:[r,p("day")],Do:[u,function(k){var f=s.ordinal;if(this.day=k.match(/\d+/)[0],f)for(var b=1;b<=31;b+=1)f(b).replace(/\[|\]/g,"")===k&&(this.day=b)}],w:[i,p("week")],ww:[r,p("week")],M:[i,p("month")],MM:[r,p("month")],MMM:[u,function(k){var f=v("months"),b=(v("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(k)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[u,function(k){var f=v("months").indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(k){this.year=d(k)}],YYYY:[/\d{4}/,p("year")],Z:c,ZZ:c};function y(k){for(var f=k,b=s&&s.formats,m=(k=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,V,U){var W=U&&U.toUpperCase();return V||b[U]||o[U]||b[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,P,M){return P||M.slice(1)}))}))).match(l),A=m.length,C=0;C<A;C+=1){var g=m[C],h=w[g],N=h&&h[0],B=h&&h[1];m[C]=B?{regex:N,parser:B}:g.replace(/^\[|\]$/g,"")}return function(T){for(var V={},U=0,W=0;U<A;U+=1){var $=m[U];if(typeof $=="string")W+=$.length;else{var P=$.regex,M=$.parser,q=T.slice(W),O=P.exec(q)[0];M.call(V,O),T=T.replace(O,"")}}return(function(H){var I=H.afternoon;if(I!==void 0){var G=H.hours;I?G<12&&(H.hours+=12):G===12&&(H.hours=0),delete H.afternoon}})(V),V}}return function(k,f,b){b.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var m=f.prototype,A=m.parse;m.parse=function(C){var g=C.date,h=C.utc,N=C.args;this.$u=h;var B=N[1];if(typeof B=="string"){var T=N[2]===!0,V=N[3]===!0,U=T||V,W=N[2];V&&(W=N[2]),s=this.$locale(),!T&&W&&(s=b.Ls[W]),this.$d=(function(q,O,H,I){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*q);var G=y(O)(q),te=G.year,_=G.month,K=G.day,Y=G.hours,Z=G.minutes,E=G.seconds,L=G.milliseconds,X=G.zone,Q=G.week,ne=new Date,z=K||(te||_?1:ne.getDate()),R=te||ne.getFullYear(),D=0;te&&!_||(D=_>0?_-1:ne.getMonth());var x,F=Y||0,j=Z||0,ee=E||0,le=L||0;return X?new Date(Date.UTC(R,D,z,F,j,ee,le+60*X.offset*1e3)):H?new Date(Date.UTC(R,D,z,F,j,ee,le)):(x=new Date(R,D,z,F,j,ee,le),Q&&(x=I(x).week(Q).toDate()),x)}catch{return new Date("")}})(g,B,h,b),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),U&&g!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var $=B.length,P=1;P<=$;P+=1){N[1]=B[P-1];var M=b.apply(this,N);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}P===$&&(this.$d=new Date(""))}else A.call(this,C)}}}))})),_f=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var a=l.prototype,r=a.format;a.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var d=this.$utils(),p=(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(c){switch(c){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="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 c}}));return r.bind(this)(p)}}}))})),jf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,a){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,v,S,w,y){var k=c.name?c:c.$locale(),f=i(k[v]),b=i(k[S]),m=f||b.map((function(C){return C.slice(0,w)}));if(!y)return m;var A=k.weekStart;return m.map((function(C,g){return m[(g+(A||0))%7]}))},s=function(){return a.Ls[a.locale()]},d=function(c,v){return c.formats[v]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,y,k){return y||k.slice(1)}))})(c.formats[v.toUpperCase()])},p=function(){var c=this;return{months:function(v){return v?v.format("MMMM"):u(c,"months")},monthsShort:function(v){return v?v.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(c,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(c.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},a.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.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(v){return d(c,v)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(c){return u(s(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),Wf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(a,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(o);if(p.isBefore(c))return 1}var v=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),S=this.diff(v,o,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Yf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}}))})),Xf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}}))})),Qf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),Gf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Oe=Ye(Uf(),1),Zf=Ye(Hf(),1),Jf=Ye(_f(),1),em=Ye(jf(),1),tm=Ye(Wf(),1),nm=Ye(Yf(),1),lm=Ye(Xf(),1),om=Ye(Qf(),1),am=Ye(Gf(),1);Oe.default.extend(em.default);Oe.default.extend(Jf.default);Oe.default.extend(Zf.default);Oe.default.extend(tm.default);Oe.default.extend(nm.default);Oe.default.extend(lm.default);Oe.default.extend(om.default);Oe.default.extend(am.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Oe.default)(e).format(n)},parser(e,n){return(0,Oe.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,a=typeof n=="string"?this.parser(n,o):n,r=l.getTime(),i=a.getTime();return r==i?0:r>i?1:-1},between(e,n,o,l){let a;l==="year"?a=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?a=new Date(new Date(n).setMonth(n.getMonth()+o)):a=new Date(new Date(n).setDate(n.getDate()+o));const r=e.getTime(),i=a.getTime(),u=n.getTime();return i>u?r>=u&&r<=i:r>=i&&r<=u},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},gr=new Date().getFullYear(),So={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},An=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ul=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},ko={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(gr-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(gr+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:rm,scope:im}=J("date-picker"),sm=rm({components:{Picker:ln},props:{...ko},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(im),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{a.value=m});function r(m,A){return new Date(m,A,0).getDate()}const i=(m,A)=>{const C=e[`${m}Date`],g=C.getFullYear();let h=1,N=1,B=0,T=0;m==="max"&&(h=12,N=r(A.getFullYear(),A.getMonth()+1),B=23,T=59);const V=T;return A.getFullYear()===g&&(h=C.getMonth()+1,A.getMonth()+1===h&&(N=C.getDate(),A.getDate()===N&&(B=C.getHours(),A.getHours()===B&&(T=C.getMinutes())))),{[`${m}Year`]:g,[`${m}Month`]:h,[`${m}Date`]:N,[`${m}Hour`]:B,[`${m}Minute`]:T,[`${m}Seconds`]:V}},u=(0,t.computed)(()=>{if(!v.value)return[];const{maxYear:m,maxDate:A,maxMonth:C,maxHour:g,maxMinute:h,maxSeconds:N}=i("max",v.value),{minYear:B,minDate:T,minMonth:V,minHour:U,minMinute:W,minSeconds:$}=i("min",v.value);let P=[{type:"year",range:[B,m]},{type:"month",range:[V,C]},{type:"day",range:[T,A]},{type:"hour",range:[U,g]},{type:"minute",range:[W,h]},{type:"seconds",range:[$,N]}];switch(e.type){case"date":P=P.slice(0,3);break;case"datetime":P=P.slice(0,5);break;case"time":P=P.slice(3,6);break;case"year-month":P=P.slice(0,2);break;case"month-day":P=P.slice(1,3);break;case"datehour":P=P.slice(0,4);break;case"hour-minute":P=P.slice(3,5);break}return P}),s=(m,A,C,g,h)=>{const N=[];for(;m<=A;){let B=!0;if(typeof e.itemFilter=="function"){const T={text:`${m}`,value:m,type:C,currentYearMonth:g};B=e.itemFilter(T)}if(B)if(typeof e.itemFormatter=="function"){const T={text:`${m}`,value:m,type:C,currentYearMonth:g};e.itemFormatter(T),N.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${m}${l[C]}`;if(C==="day"){if(g[0]===h[0]&&g[1]===h[1]&&m===h[2])T=l.today;else{const V=new Date(g[0],g[1],m).getDay();T=`${T} ${l.fullWeekdays[V]}`}N.push({text:T,value:m})}else N.push({text:m+l[C],value:m})}else N.push({text:`${m}`,value:m});C==="minute"?m+=e.minuteStep:m++}return N},d=(0,t.computed)(()=>{const m=new Date,A=[m.getFullYear(),m.getMonth(),m.getDate()],C=[];v.value&&(C[0]=v.value.getFullYear(),C[1]=v.value.getMonth());let g=[];return u.value.forEach(h=>{let N=s(h.range[0],h.range[1],h.type,C,A);N&&g.push(N)}),g}),p=(m,A)=>m==="year"?A.getFullYear():m==="month"?A.getMonth()+1:m==="day"?A.getDate():m==="hour"?A.getHours():m==="minute"?A.getMinutes():m==="seconds"?A.getSeconds():0,c=(0,t.ref)(),v=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let A;if(typeof m=="string"?m.length==0||m==="Invalid Date"?A=new Date:e.valueFormat?A=An(e,e.modelValue,e.valueFormat):A=An(e,m,So[e.type]):je(m)?A=m:A=new Date,!!A&&(!v.value||A.getTime()!==v.value.getTime())){v.value=A;let C=[];u.value.forEach(g=>{let h=p(g.type,A);C.push(h)}),c.value=C}},{immediate:!0});const S=m=>{if(!m||m.length===0){v.value=new Date;let A=[];u.value.forEach(C=>{let g=p(C.type,v.value);A.push(g)}),c.value=A;return}if(e.type==="date"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1));g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g)}else if(e.type==="datetime"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1)),h=m[3],N=m[4];g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g,h,N)}else if(e.type==="time"){const A=m[0],C=m[1],g=m[2],h=v.value??new Date;v.value=new Date(h.getFullYear(),h.getMonth(),h.getDate(),A,C,g)}else if(e.type==="year-month"){const A=m[0],C=m[1]-1;v.value=new Date(A,C)}else if(e.type==="month-day"){const A=(v.value??new Date).getFullYear(),C=m[0]-1,g=Math.min(m[1],r(A,C+1));g!==m[1]&&(m[1]=g),v.value=new Date(A,C,g)}else if(e.type==="datehour"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1)),h=m[3];g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g,h)}else if(e.type==="hour-minute"){const A=m[0],C=m[1],g=v.value??new Date;v.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),A,C)}c.value=m};return{columns:d,dateIndexs:c,show:a,onChange:m=>{S(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{S(m);const A=v.value??new Date;e.valueFormat?n("update:modelValue",Ul(e,A,e.valueFormat)):n("update:modelValue",A),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{a.value=m,n("update:visible",m)}}}});function um(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var al=ae(sm,[["render",um]]),cm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function dm(e){let n=e.format;return n||(n=So[e.type??"date"]),n}var fm={...he,...ge,...ko,...cm};function mm(e,n,o,l,a,r,i,u=!1){return{props:fm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),A=De(s,"modelValue",E=>E==null?null:typeof E=="string"?E.length==0?null:s.valueFormat?An(s,E,s.valueFormat)??E:An(s,E,So[s.type])??E:je(E)?E:null,y),C=(0,t.computed)(()=>{if(!A.value)return"";const E=dm(s);return Ul(s,A.value,E)}),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const E={};return N.value&&(E["text-align"]=N.value),E}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=()=>{T.value=!1};d.expose({showPicker:V,hidePicker:U});const W=E=>{T.value=E},$=E=>{if(A.value=E,s.valueFormat){let L=Ul(s,E,s.valueFormat);y("update:modelValue",L,{}),y("change",L,{})}else y("update:modelValue",E,{}),y("change",E,{})},P=E=>{let L=E.target.value;b.value=!0,y("focus",L,E)},M=E=>{setTimeout(()=>{b.value=!1},0);let L=E.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),y("blur",L,E)},q=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),O=(0,t.computed)(()=>ke(s.unit)>0),H=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),I=(0,t.computed)(()=>({hidden:!H.value})),G=E=>{A.value="",y("update:modelValue","",E),y("change","",E),y("clear",""),U()},te=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),_=(0,t.computed)(()=>{let E=ke(A.value)>0;return s.clearable&&E&&b.value}),K=E=>{_.value?G(E):V()},Y=(0,t.computed)(()=>_.value&&te.value?a:r),Z=(0,t.computed)(()=>({action:!0}));return be({setDisabled:E=>{p.value=E},setReadonly:E=>{v.value=E}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const E={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(E.disabled=!0);const L=[],X=(0,t.h)("input",E);L.push(X);const Q=[],ne=(0,t.h)(Y.value,{class:["action-icon"]}),z=(0,t.h)("view",{class:Z.value,onClick:K},{default:()=>[ne]});if(Q.push(z),O.value){const le=(0,t.h)("view",{class:I.value},[s.unit]);Q.push(le)}const R=(0,t.h)("view",{class:q.value},{default:()=>Q});L.push(R);const D={default:()=>L};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const x=ve(s,ko);x.valueFormat=null,x.disabled=!1,x.readonly=c.value||S.value,x.visible=T.value,x["onUpdate:visible"]=W,x.modelValue=A.value,x["onUpdate:modelValue"]=$,x.onClear=G;const F={};if(d.slots.top){const le=d.slots.top();F.top=()=>le}if(d.slots.bottom){const le=d.slots.bottom();F.default=()=>le}const j=(0,t.h)(i,x,F);D.hide=()=>[j];const ee={...ve(s,ge,he)};return s.prop&&(ee.prop=`${s.prop}_item`),o(ee,D)}}}}var{create:pm,componentName:hm,scope:vm}=J("date-item"),gm=pm(mm(hm,vm,qe,Me,oe.CircleClose,oe.Date,al,!1)),wo=gm,re={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay();const i=a.getDate();let u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((i+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{i=i==0?7:i;const u=1440*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:ym,scope:bm}=J("calendar-pane"),Sm=ym({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=(0,pe.useFoxI18n)(bm),r=l(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(a("weekdays")),u=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),s=(0,t.ref)(null),d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.ref)(null),v=(0,t.ref)(0),S=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>o.btn),y=(0,t.computed)(()=>o["top-info"]),k=(0,t.computed)(()=>o["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),b=E=>E.split("-"),m=E=>re.isEqual(f.currDate[0],E),A=E=>re.isEqual(f.currDate[1],E),C=E=>f.currDate?.length>0?f.currDate?.some(L=>re.isEqual(L,E)):!1,g=(E,L)=>L.curData[0]+"-"+L.curData[1]+"-"+re.getNumTwoBit(+E.day),h=(E,L)=>{const X=g(E,L),{type:Q}=e;return E.type=="curr"?re.isEqual(f.currDate,X)||(Q=="range"||Q=="week")&&(m(X)||A(X))||Q=="multiple"&&C(X)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(X,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,X)?`${f.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],X)&&re.compareDate(X,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},N=()=>{const{type:E}=e;if(E=="range"&&f.chooseData.length==2||E!="range"){let L=f.chooseData.slice(0);E=="week"&&(L={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",L),e.poppable&&n("update")}},B=(E,L,X=!1)=>{if(h(E,L)!=`${f.dayPrefix}--disabled`){const{type:Q}=e;let[ne,z]=L.curData,R=[...L.curData];if(R[2]=re.getNumTwoBit(Number(E.day)),R[3]=`${R[0]}-${R[1]}-${R[2]}`,R[4]=re.getWhatDay(+R[0],+R[1],+R[2]),Q=="multiple")if(f.currDate?.length>0){let D;f.currDate?.forEach((x,F)=>{x==R[3]&&(D=F)}),X?f.chooseData.push([...R]):D!==void 0?(f.currDate.splice(D,1),f.chooseData.splice(D,1)):(f.currDate.push(R[3]),f.chooseData.push([...R]))}else f.currDate=[R[3]],f.chooseData=[[...R]];else if(Q=="range"){let D=Object.values(f.currDate).length;D==2||D==0?f.currDate=[R[3]]:re.compareDate(f.currDate[0],R[3])?Array.isArray(f.currDate)&&f.currDate.push(R[3]):Array.isArray(f.currDate)&&f.currDate.unshift(R[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...R]]:re.compareDate(f.chooseData[0][3],R[3])?f.chooseData=[...f.chooseData,[...R]]:f.chooseData=[[...R],...f.chooseData]}else if(Q=="week"){let D=re.getWeekDate(ne,z,E.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(D[0],f.propStartDate)&&D.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,D[1])&&D.splice(1,1,f.propEndDate),f.currDate=D,f.chooseData=[re.formatResultDate(D[0]),re.formatResultDate(D[1])]}else f.currDate=R[3],f.chooseData=[...R];if(!X){let D=f.chooseData;Q=="week"&&(D={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",D),(e.isAutoBackFill||!e.poppable)&&N()}}},T=E=>{let[L,X,Q]=E;return{date:E,monthWeekNum:re.getMonthWeek(L,X,Q,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(L,X,Q,e.firstDayOfWeek)}},V=E=>{const L=E=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let X=parseInt(L.curData[0]),Q=parseInt(L.curData[1].toString().replace(/^0/,""));switch(E){case"prev":Q==1&&(X-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(X+=1),Q=Q==12?1:++Q;break}return[X+"",re.getNumTwoBit(Q),re.getMonthDays(String(X),String(Q))+""]},U=(E,L,X)=>{let{year:Q,month:ne}=X;return L=="prev"&&E>=7&&(E-=7),Array.from(Array(E),(z,R)=>({day:String(R+1),type:L,year:Q,month:ne}))},W=(E,L,X,Q)=>{E=E-e.firstDayOfWeek;let{year:ne,month:z}=X;return L=="prev"&&E>=7&&(E-=7),Array.from(Array(Q),(R,D)=>({day:String(D+1),type:L,year:ne,month:z})).slice(Q-E)},$=(E,L)=>{const X=re.getMonthPreDay(+E[0],+E[1]);let Q=Number(E[1])-1,ne=Number(E[0]);Q<=0&&(Q=12,ne+=1);const z=re.getMonthDays(String(E[0]),String(E[1])),R=re.getMonthDays(ne+"",Q+""),D={year:E[0],month:E[1]},x={curData:E,title:a("monthTitle",{year:D.year,month:D.month}),monthData:[...W(X,"prev",{month:String(Q),year:String(ne)},R),...U(z,"curr",D)],cssHeight:0,cssScrollHeight:0};x.cssHeight=39+64*(x.monthData.length>35?6:5);let F=0;f.monthsData.length>0&&(F=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),x.cssScrollHeight=F,L=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${E[0]}-${E[1]}-${E[2]}`))&&f.monthsData.push(x):!f.startData||!re.compareDate(`${E[0]}-${E[1]}-${E[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(x):f.unLoadPrev=!0},P=()=>{let E=e.startDate?e.startDate:re.getDay(0),L=e.endDate?e.endDate:re.getDay(365);f.propStartDate=E,f.propEndDate=L,f.startData=b(E),f.endData=b(L),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(f.startData[0]),month:Number(f.startData[1])},Q={year:Number(f.endData[0]),month:Number(f.endData[1])};let ne=Q.month-X.month;Q.year-X.year>0&&(ne=ne+12*(Q.year-X.year)),ne<=0&&(ne=1),$(f.startData,"next");let z=1;do $(V("next"),"next");while(z++<ne);if(f.monthsNum=ne,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(E&&re.compareDate(f.currDate[0],E)&&f.currDate.splice(0,1,E),L&&re.compareDate(L,f.currDate[1])&&f.currDate.splice(1,1,L),f.defaultData=[...b(f.currDate[0]),...b(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let R=[],D={};f.currDate.forEach(x=>{E&&!re.compareDate(x,E)&&L&&!re.compareDate(L,x)&&(Object.hasOwnProperty.call(D,x)||(R.push(x),D[x]=x))}),f.currDate=[...R],f.defaultData=[...b(R[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[R,D,x]=b(f.currDate[0]);f.currDate=re.getWeekDate(R,D,x,e.firstDayOfWeek),E&&re.compareDate(f.currDate[0],E)&&f.currDate.splice(0,1,E),L&&re.compareDate(L,f.currDate[1])&&f.currDate.splice(1,1,L),f.defaultData=[...b(f.currDate[0]),...b(f.currDate[1])]}}else f.currDate&&(E&&re.compareDate(f.currDate,E)?f.currDate=E:L&&!re.compareDate(f.currDate,L)&&(f.currDate=L),f.defaultData=[...b(f.currDate)])};be({scrollToDate:E=>{re.compareDate(E,f.propStartDate)?E=f.propStartDate:re.compareDate(E,f.propEndDate)||(E=f.propEndDate);let L=b(E);f.monthsData.forEach((X,Q)=>{if(X.title==a("monthTitle",{year:L[0],month:L[1]})&&s.value){let ne=f.monthsData[Q].cssScrollHeight-s.value.scrollTop;if(e.toDateAnimation){let z=0,R=setInterval(()=>{if(z++,s.value){let D=ne/10;s.value.scrollTop=s.value.scrollTop+D}z>=10&&(clearInterval(R),s.value&&(s.value.scrollTop=f.monthsData[Q].cssScrollHeight))},40)}else s.value.scrollTop=f.monthsData[Q].cssScrollHeight}})},initPosition:()=>{s?.value&&(s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let E=0,L=0;f.defaultData.length>0&&f.monthsData.forEach((ne,z)=>{ne.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(E=z),(e.type=="range"||e.type=="week")&&ne.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(L=z)}),H(f.monthsNum,E),f.currentIndex=E,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[L],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ne=>{let z=b(ne),R=f.currentIndex;f.monthsData.forEach((D,x)=>{D.title==a("monthTitle",{year:z[0],month:z[1]})&&(R=x)}),B({day:z[2],type:"curr"},f.monthsData[R],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let X=f.monthsData[f.monthsData.length-1],Q=X.cssHeight+X.cssScrollHeight;Xe(()=>{s?.value&&d?.value&&c?.value&&(v.value=s.value.clientHeight,d.value.style.height=`${Q}px`,s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Q/(f.monthsNum+1))}});const H=(E,L)=>{E>=3?L>0&&L<E?f.defaultRange=[L-1,L+3]:L==0?f.defaultRange=[L,L+4]:L==E&&(f.defaultRange=[L-2,L+2]):f.defaultRange=[0,E+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},I=(E,L)=>(e.type=="range"||e.type=="week")&&E.type=="curr"&&h(E,L)=="fox-calendar__day--active",G=(E,L)=>I(E,L)&&m(g(E,L)),te=(E,L)=>f.currDate.length>=2&&A(g(E,L))?I(E,L):!1,_=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},K=E=>{const L=`${E.year}-${E.month}-${Number(E.day)<10?"0"+E.day:E.day}`;return re.isEqual(L,re.date2Str(new Date))},Y=E=>{if(f.monthsData.length<=1)return;const L=E.target.scrollTop;let X=Math.floor(L/f.avgHeight);if(X==0)L>=f.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<f.monthsNum-1)L>=f.monthsData[X+1].cssScrollHeight&&(X+=1),L<f.monthsData[X].cssScrollHeight&&(X-=1);else{const Q=Math.round(L+v.value);Q<f.monthsData[X].cssScrollHeight+f.monthsData[X].cssHeight&&L>f.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=f.monthsNum&&Q>=f.monthsData[X+1].cssScrollHeight+f.monthsData[X+1].cssHeight&&(X+=1),X>=1&&L<f.monthsData[X-1].cssScrollHeight&&(X-=1)}f.currentIndex!==X&&(f.currentIndex=X,H(f.monthsNum,X)),f.yearMonthTitle=f.monthsData[X].title},Z=()=>{f.chooseData.splice(0),f.monthsData.splice(0),P()};return P(),(0,t.watch)(()=>e.defaultValue,E=>{E&&e.poppable&&Z()}),{weeks:u,compConthsData:S,showTopBtn:w,topInfo:y,bottomInfo:k,rangeTip:_,mothsViewScroll:Y,getClass:h,isStartTip:G,isEndTip:te,chooseDay:B,isCurrDay:K,confirm:N,months:s,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:d,weeksPanel:p,viewArea:c}}}),km={class:"fox-calendar__header"},wm={key:0,class:"fox-calendar__header-title"},Cm={key:1,class:"fox-calendar__header-slot"},Nm={key:2,class:"fox-calendar__header-subtitle"},Am={class:"fox-calendar__weekdays",ref:"weeksPanel"},Bm={class:"fox-calendar__panel",ref:"monthsPanel"},Tm={class:"fox-calendar__month-title"},Vm={class:"fox-calendar__days"},xm=["onClick"],$m={class:"fox-calendar__day-value"},Em={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Dm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Im={key:2,class:"fox-calendar__day-tips--curr"},qm={key:4,class:"fox-calendar__day-tip"},Pm={key:0,class:"fox-calendar__footer"};function Mm(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",km,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",wm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Nm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Am,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(i),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[(0,t.createElementVNode)("view",Bm,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",Tm,(0,t.toDisplayString)(i.title),1),(0,t.createElementVNode)("view",Vm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,i)]),onClick:p=>e.chooseDay(s,i)},[(0,t.createElementVNode)("view",$m,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Im,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",qm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,xm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var zm=ae(Sm,[["render",Mm]]),Lm=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(ye,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Rm=Lm,Fm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Bn={type:{type:[String],default:"one"},isAutoBackFill:{type:[Boolean],default:!1},toDateAnimation:{type:[Boolean],default:!0},poppable:{type:[Boolean],default:!0},showTitle:{type:[Boolean],default:!0},showSubTitle:{type:[Boolean],default:!0},visible:{type:[Boolean],default:!1},showToday:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:Om}=J("calendar"),Km=Om({components:{Wrapper:Rm,CalendarPane:zm},props:{...Bn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>o.btn),a=(0,t.computed)(()=>o["top-info"]),r=(0,t.computed)(()=>o.day),i=(0,t.computed)(()=>o["bottom-info"]),u=(0,t.ref)(null),s=y=>{u.value?.scrollToDate(y)},d=()=>{u.value?.initPosition()};(0,t.watch)(()=>e.visible,y=>{y&&(0,t.nextTick)(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:d});const p=()=>{n("update:visible",!1)},c=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{c()},update:p,close:c,select:y=>{n("select",y)},choose:y=>{c(),n("choose",y)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Um(e,n,o,l,a,r){const i=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var rl=ae(Km,[["render",Um]]),Ei={modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:[String],default:"-"},valueFormat:{type:[String],default:"YYYY-MM-DD"},format:{type:[String],default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:[String]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},Al=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&ke(e)>0?o=re.parser(e,n):o=new Date,o},ct=(e,n,o)=>(je(n)||(n=new Date),re.format(n,o)),dt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,re.date2Str(e),re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Hm={...he,...ge,...Bn,...Ei};function _m(e,n,o,l,a,{CloseIcon:r,MarkIcon:i},u=!1){return{props:Hm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{disabled:p,readonly:c,browse:v}=Ie(s),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),y=w(s,["placeholder"]),k=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),b=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},A=(E,L="one",X="YYYY-MM-DD")=>{if(Fm(E)){m();return}if(f.value&&Array.isArray(E)&&E.length==2){let Q,ne;typeof E[0]=="string"?(Q=Al(E[0],X),ne=Al(E[1],X)):(Q=E[0],ne=E[1]);let z=dt(Q),R=dt(ne);(b.startDate===null||b.startDate.getTime()!==Q.getTime()||b.endDate?.getTime()!==ne.getTime())&&(b.startDate=Q,b.startArray=z,b.endDate=ne,b.endArray=R)}else{let Q;typeof E=="string"?Q=Al(E,X):Q=E;let ne=dt(Q);(b.startDate===null||b.startDate.getTime()!==Q.getTime())&&(b.startDate=Q,b.startArray=ne)}};A(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,E=>{A(E,s.type,s.valueFormat),S("setValue",E)});const C=(0,t.computed)(()=>{if(b.startDate===null)return"";if(f.value){let E=ct(s,b.startDate,s.format),L=ct(s,b.endDate,s.format);return`${E} ${s.rangeSeparator} ${L}`}else{let E=ct(s,b.startDate,s.format);return s.showWeek&&(E=`${E} ${b.startArray[4]}`),E}}),g=(0,t.computed)(()=>b.startDate===null?null:f.value?[re.date2Str(b.startDate),re.date2Str(b.endDate??new Date)]:re.date2Str(b.startDate)),h="fox-input-item",N=(0,t.computed)(()=>({[h]:!0,"is-disabled":p.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const E={};return B.value&&(E["text-align"]=B.value),E}),V=(0,t.ref)(!1),U=()=>{c.value||p.value||(V.value=!0)},W=E=>{V.value=E},$=E=>{if(E){if(f.value&&Array.isArray(E)){let L=E[0],X=de(L[0]),Q=de(L[1]),ne=de(L[2]),z=new Date(X,Q-1,ne),R=E[1];X=de(R[0]),Q=de(R[1]),ne=de(R[2]);let D=new Date(X,Q-1,ne);b.startDate=z,b.startArray=dt(z),b.endDate=D,b.endArray=dt(D),s.valueFormat?S("update:modelValue",[ct(s,z,s.valueFormat),ct(s,D,s.valueFormat)],{}):S("update:modelValue",[z,D],{})}else{let L=E,X=de(L[0]),Q=de(L[1]),ne=de(L[2]),z=new Date(X,Q-1,ne);b.startDate=z,b.startArray=dt(z),s.valueFormat?S("update:modelValue",ct(s,z,s.valueFormat),{}):S("update:modelValue",z,{})}S("change",E,{})}},P=E=>{let L=E.target.value;k.value=!0,S("focus",L,E)},M=E=>{setTimeout(()=>{k.value=!1},0);let L=E.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),S("blur",L,E)},q=(0,t.computed)(()=>({[`${h}__append`]:!0,"is-disabled":p.value,"is-readonly":c.value})),O=(0,t.computed)(()=>ke(s.unit)>0),H=(0,t.computed)(()=>ke(s.unit)>0&&!k.value),I=(0,t.computed)(()=>({hidden:!H.value})),G=E=>{m(),S("update:modelValue",null,E),S("change","",E),S("clear","")},te=(0,t.computed)(()=>s.clearable&&!p.value&&!c.value),_=(0,t.computed)(()=>{let E=ke(C.value)>0;return s.clearable&&E&&k.value}),K=E=>{_.value?G(E):U()},Y=(0,t.computed)(()=>_.value&&te.value?r:i),Z=(0,t.computed)(()=>({action:!0}));return()=>{if(v.value==="on"&&(c.value||p.value))return a(C.value,d.slots);const E={class:N.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:U,onFocus:P,onBlur:M};u&&(E.disabled=!0);const L=[],X=(0,t.h)("input",E);L.push(X);const Q=[],ne=(0,t.h)(Y.value,{class:["action-icon"]}),z=(0,t.h)("view",{class:Z.value,onClick:K},{default:()=>[ne]});if(Q.push(z),O.value){const le=(0,t.h)("view",{class:I.value},[s.unit]);Q.push(le)}const R=(0,t.h)("view",{class:q.value},{default:()=>Q});L.push(R);const D={default:()=>L};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const x=ve(s,Bn);x.visible=V.value,x["onUpdate:visible"]=W,x["default-value"]=g.value,x.onChoose=$;const F={};if(d.slots.btn){const le=d.slots.btn();F.btn=()=>le}d.slots.day&&(F.day=d.slots.day),d.slots.topInfo&&(F.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(F.bottomInfo=d.slots.bottomInfo);const j=(0,t.h)(o,x,F);D.hide=()=>[j];const ee={...et(s,Bn,Ei)};return s.prop&&(ee.prop=`${s.prop}_item`),l(ee,D)}}}}var{componentName:jm,create:Wm,scope:Ym}=J("calendar-item"),Xm=Wm(_m(jm,Ym,rl,qe,Me,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Co=Xm,Qm={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Gm(e,{CheckNormal:n,Checked:o}){return{props:{...Qm},setup(l,{emit:a,slots:r}){const i=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>i.label.value===l.label),d=(0,t.computed)(()=>i.position),p=()=>{const y=[];if(s.value){if(r.checkedIcon)return r.checkedIcon();{const k=se(l.iconSize),f=l.checkedIcon??u.radio.Checked??o;return y.push("fox-radio__icon"),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=se(l.iconSize),f=l.icon??u.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:y})}}},c=()=>{const y=[`${e}__label`];return l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},v=()=>{const y=[`${e}__button`];return s.value&&y.push(`${e}__button--active`),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},S=()=>{s.value||l.disabled||l.readonly||i.updateValue(l.label)},w=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:S},[l.shape=="button"?v():w?[c(),p()]:[p(),c()]])}}}var{componentName:Zm,create:Jm}=J("radio"),e0=Jm(Gm(Zm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),il=e0,{componentName:yr,create:t0}=J("radio-group"),n0=t0({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=xt(),l=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${yr} ${yr}--${e.direction}`,style:a},n.default?.())}}}),sl=n0;function br(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(mn(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(Kt(e,r)===o)return a}return-1}function mn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function l0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function o0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var a0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function r0(){return new a0((0,t.getCurrentInstance)().proxy)}function i0(e){return{text:e,value:e}}var Di={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},s0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},u0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},c0={...he,...ge,...Di,...s0,...u0};function d0(e,n,o,l,a,r){return{props:c0,emits:["change","update:modelValue","setValue"],setup(i,u){const{innerDisabled:s,disabled:d,innerReadonly:p,readonly:c,browse:v}=Ie(i),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value}},i.prop??u.attrs.name),w=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),y=r0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([g,h])=>{if(g){const N=await y.load("radio",g,h);N.length>0?typeof N[0]=="string"?k.value=N.map(B=>i0(B)):k.value=N:k.value=[]}},{immediate:!0});let b=(0,t.ref)(-1);(0,t.watch)([()=>i.modelValue,()=>f.value],async([g,h])=>{b.value=br(i,h,g,i.valueType),S("setValue",g)},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;if(b.value===-1)return null;const g=f.value[b.value];return Kt(i,g)}),A=g=>{let h=null,N=null;if(f.value.length>0){let B=br(i,f.value,g,"value");b.value=B,B>=0&&(N=f.value[B],i.valueType==="text"?h=mn(i,N):i.valueType==="item"?h=N:h=Kt(i,N))}else h=g;S("update:modelValue",h),S("change",h,N)},C=()=>{let g=null,h=null;if(f.value.length>0&&b.value!==-1){let N=f.value[b.value];i.valueType==="text"?g=mn(i,N):i.valueType==="item"?g=N:g=Kt(i,N)}S("update:modelValue",g),S("change",g,h)};if(be({clear(){b.value!==-1&&(b.value=-1,C())},setDisabled:g=>{s.value=g},setReadonly:g=>{p.value=g}}),i.source){const g=()=>{const h=[],N=ve(i,Di);return f.value.forEach((B,T)=>{const V=Kt(i,B),U=l0(i,B);let W={...N,label:V,disabled:U};const $=o0(i,B,T);W={...W,...$},d.value&&(W.disabled=!0),c.value&&(W.readonly=!0);const P={};if(u.slots.icon&&(P.icon=u.slots.icon),u.slots.checkedIcon&&(P.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const q=u.slots.text(B);P.default=()=>[q]}else{const q=mn(i,B);P.default=()=>q}let M=(0,t.h)(r,W,P);h.push(M)}),h};return()=>{if(v.value==="on"&&(c.value||d.value))return l(m.value,u.slots,f.value);const h=g(),N=(0,t.h)(a,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>h}),B={default:()=>N};B.label=u.slots.default,B.prepend=u.slots.prepend,B.append=u.slots.append,B.fixedPreTip=u.slots.fixedPreTip,B.fixedTip=u.slots.fixedTip;const T={...ve(i,ge,he)};return i.prop&&(T.prop=`${i.prop}_item`),o(T,B)}}else return()=>{const g=u.slots.options?.()??[];return(0,t.h)(a,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m,"update:modelValue":A},{default:()=>g})}}}}var{componentName:f0,create:m0,scope:p0}=J("radio-item"),h0=m0(d0(f0,p0,qe,Me,sl,il)),No=h0,v0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:i}=xt(),u=On(),s=(0,t.inject)("parent",null),d=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,m=>{d.partialSelect=m});const p=(0,t.computed)(()=>!!s),c=(0,t.computed)(()=>p.value?s.value.value.includes(a.label):!!a.modelValue),v=(0,t.computed)(()=>p.value?s.position:a.textPosition);let S="";const w=(m,A)=>{S="click",i("update:modelValue",m),i("change",m,A)};(0,t.watch)(()=>a.modelValue,m=>{S=="click"?S="":i("change",m)});const y=()=>{const m=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const A=se(a.iconSize),C=a.indeterminateIcon??u.checkbox.Indeterminate??l;return m.push("fox-checkbox__icon--indeterminate"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else if(c.value){if(r.checkedIcon)return r.checkedIcon();{const A=se(a.iconSize),C=a.checkedIcon??u.checkbox.Checked??o;return m.push("fox-checkbox__icon"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else{if(r.icon)return r.icon();{const A=se(a.iconSize),C=a.icon??u.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}},k=()=>{const m=[`${e}__label`];return a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},f=()=>{const m=[`${e}__button`];return c.value&&m.push(`${e}__button--active`),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},b=m=>{if(!(a.disabled||a.readonly)){if(c.value&&d.partialSelect){d.partialSelect=!1,w(c.value,r.default?.()[0].children);return}if(w(!c.value,r.default?.()[0].children),p.value){const A=s.value.value,C=s.max.value,{label:g}=a,h=A.indexOf(g);h>-1?A.splice(h,1):h<=-1&&(A.length<C||!C)&&A.push(g),s.updateValue(A)}}};return(0,t.onMounted)(()=>{p.value&&s.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{p.value&&s.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${a.shape} ${v.value==="left"?`${e}--reverse`:""}`,onClick:b},[a.shape=="button"?f():[y(),k()]])}}),{componentName:g0,create:y0}=J("checkbox"),b0=y0(v0(g0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),ul=b0,{create:S0,componentName:Sr}=J("checkbox-group"),k0=S0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=xt(),l=(0,t.reactive)({children:[]}),a=d=>{d.proxy&&l.children.push(d.proxy)},r=d=>{d.proxy&&(l.children=l.children.filter(p=>p!==d.proxy))},i=d=>{o("update:modelValue",d),o("change",d)},u=d=>{const p=[];d&&l.children.forEach(c=>{c?.disabled||p.push(c?.label)}),o("update:modelValue",p)},s=()=>{o("update:modelValue",l.children.filter(d=>d?.disabled?!1:!e.modelValue.includes(d.label)).map(d=>d.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:i,link:a,unlink:r}),(0,t.watch)(()=>e.modelValue,d=>{o("change",d)}),be({toggleAll:u,toggleReverse:s}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Sr} ${Sr}--${e.direction}`,style:d},n.default?.())}}}),cl=k0;function kr(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Hl(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(pn(e,r)===o)return a}return-1}function Hl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function pn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function w0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function C0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var N0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function A0(){return new N0((0,t.getCurrentInstance)().proxy)}function B0(e){return{text:e,value:e}}var T0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ii={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},V0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]},separator:{type:[String],required:!1,default:", "}},x0={...he,...ge,...T0,...Ii,...V0};function $0(e,n,o,l,a,r){return{props:x0,emits:["change","update:modelValue","setValue"],setup(i,u){const{innerDisabled:s,disabled:d,innerReadonly:p,readonly:c,browse:v}=Ie(i),S=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),{emitEvent:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value}},i.prop??u.attrs.name),y=A0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([g,h])=>{if(g){const N=await y.load("checkbox",g,h);N.length>0?typeof N[0]=="string"?k.value=N.map(B=>B0(B)):k.value=N:k.value=[]}},{immediate:!0});const b=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>f.value],async([g,h])=>{const N=[];Array.isArray(g)&&g.forEach(B=>{let T=kr(i,h,B,i.valueType);T!==-1&&N.push(T)}),!xe(N,b.value)&&(b.value=N,w("setValue",N))},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;let g=[];return b.value.forEach(h=>{let N=f.value[h];g.push(pn(i,N))}),g}),A=g=>{let h=[],N=[];if(f.value.length>0){const B=[];Array.isArray(g)&&g.forEach(T=>{let V=kr(i,f.value,T,"value");V!==-1&&B.push(V);const U=f.value[V];N.push(U),i.valueType==="text"?h.push(Hl(i,U)):i.valueType==="item"?h.push(U):h.push(pn(i,U))}),b.value=B}else h=g;w("update:modelValue",h),w("change",h,N)},C=(0,t.ref)();if(be({toggleAll:g=>{C.value.toggleAll(g)},toggleReverse:()=>{C.value.toggleReverse()},setDisabled:g=>{s.value=g},setReadonly:g=>{p.value=g}}),i.source){const g=()=>{const h=[],N=ve(i,Ii);return f.value.forEach((B,T)=>{const V=pn(i,B),U=w0(i,B);let W={...N,label:V,disabled:U};const $=C0(i,B,T);W={...W,...$},d.value&&(W.disabled=!0),c.value&&(W.readonly=!0);const P={};if(u.slots.icon&&(P.icon=u.slots.icon),u.slots.checkedIcon&&(P.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(P.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const q=u.slots.text(B);P.default=()=>[q]}else{const q=Hl(i,B);P.default=()=>q}let M=(0,t.h)(r,W,P);h.push(M)}),h};return()=>{if(v.value==="on"&&(c.value||d.value))return l(m.value,u.slots,f.value,i.separator);const h=g(),N=(0,t.h)(a,{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>h}),B={default:()=>N};B.label=u.slots.default,B.prepend=u.slots.prepend,B.append=u.slots.append,B.fixedPreTip=u.slots.fixedPreTip,B.fixedTip=u.slots.fixedTip;const T={...ve(i,ge,he)};return i.prop&&(T.prop=`${i.prop}_item`),o(T,B)}}else return()=>{const g=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,textAlign:S.value,modelValue:m,"onUpdate:modelValue":A},{default:()=>g})}}}}var{componentName:E0,create:D0,scope:I0}=J("checkbox-item"),q0=D0($0(E0,I0,qe,Me,cl,ul)),Ao=q0,Bo={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:P0,create:M0}=J("switch"),z0=M0({components:{Loading1:oe.Loading1},props:{...Bo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=P0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let r="";const i=u=>{if(e.disabled||e.loading)return;r="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{r=="click"?r="":n("change",u)}),{classes:l,style:a,isActive:o,onClick:i}}}),L0={class:"fox-switch-button"};function R0(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",L0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(i,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var dl=ae(z0,[["render",R0]]),F0={...he,...ge,...Bo};function O0(e,n,o,l,a){return{props:F0,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=De(r,"modelValue",null,v),y=k=>{w.value=k,v("update:modelValue",k,{}),v("change",k,{})};return be({setDisabled:k=>{u.value=k},setReadonly:k=>{d.value=k}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const k={...ve(r,Bo),disabled:s.value||p.value,value:w.value,"onUpdate:modelValue":y},f=[],b=(0,t.h)(a,k);f.push(b);const m={default:()=>f};m.label=i.slots.default,m.fixedPreTip=i.slots.fixedPreTip,m.fixedTip=i.slots.fixedTip;const A={...ve(r,ge,he)};return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,o(A,m)}}}}var{componentName:K0,create:U0,scope:H0}=J("switch-item"),_0=U0(O0(K0,H0,qe,Me,dl)),To=_0,j0={...he,...ge,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function W0(e,n,o,l){return{props:j0,emits:["click","focus","blur","change"],setup(a,r){const i=Rn((0,t.computed)(()=>a.disabled)),u=Ln((0,t.computed)(()=>a.readonly)),{emitEvent:s}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),p=d(a,["placeholder"]),c=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,U=>{c.value=U,s("change",U)});const v=(0,t.computed)(()=>({[`${e}`]:!0})),S=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ce(c.value),"is-disabled":i.value,"is-readonly":u.value})),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),y=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),k=(0,t.computed)(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),f=(0,t.computed)(()=>ce(c.value)?p.placeholder.value:c.value),b=(0,t.computed)(()=>!ce(a.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),A=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),C=()=>{s("focus",c.value)},g=()=>{s("blur",c.value)},h=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":u.value})),N=(0,t.computed)(()=>ke(a.unit)>0),B=U=>{i.value==!0||u.value==!0||s("click")},T=(0,t.computed)(()=>a.icon??o),V=(0,t.computed)(()=>({action:!0}));return()=>{const U=[];if(typeof r.slots.content=="function"){const I=r.slots.content();U.push(I)}else{const I=[];if(k.value){const te={tabIndex:0,class:S.value,style:y.value,onFocus:C,onBlur:g};let _=null;r.slots.main?_=(0,t.h)("view",te,[r.slots.main(f.value)]):_=(0,t.h)("view",te,[f.value]),I.push(_)}if(b.value){const te={tabIndex:0,class:m.value,style:A.value,onFocus:C,onBlur:g};let _=null;r.slots.sub?_=(0,t.h)("view",te,[r.slots.sub(a.desc)]):_=(0,t.h)("view",te,[a.desc]),I.push(_)}const G=(0,t.h)("view",{class:v.value,onClick:B},I);U.push(G)}const W=[],$=se(a.iconSize);let P=r.slots.icon;if(!P){const I={width:$,height:$,class:["action-icon"]};P=(0,t.h)(T.value,I)}const M=(0,t.h)("view",{class:V.value,onClick:B},{default:()=>[P]});if(W.push(M),N.value){const I=(0,t.h)("view",{},[a.unit]);W.push(I)}const q=(0,t.h)("view",{class:h.value},{default:()=>W});U.push(q);const O={default:()=>U};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const H={...ve(a,ge,he)};return a.prop&&(H.prop=`${a.prop}_item`),l(H,O)}}}}var{componentName:Y0,create:X0,scope:Q0}=J("link-item"),G0=X0(W0(Y0,Q0,oe.ArrowRight,qe)),Vo=G0,xo={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:Z0,componentName:J0}=J("rate"),ep=Z0({props:{...xo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),a=(0,t.computed)(()=>({[J0]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,w)=>{if(e.disabled||e.readonly)return;let y=0;w===1&&e.modelValue===w||(y=w,e.allowHalf&&S==2&&(y-=.5)),r(y)},u=(S,w,y)=>{let k=0;for(let f=w.value.length-1;f>=0;f--){const b=w.value[f];if(S>b.offsetLeft){y?k=f+(S>b.offsetLeft+b.clientWidth/2?1:.5):k=f+1;break}}return k},s=lt(),d={onTouchStart(S){!e.touchable||e.readonly||s.start(S)},onTouchMove(S){e.touchable&&(s.move(S),s.isHorizontal()&&l.value&&(S.preventDefault(),r(u(s.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:a,...d,onClick:i,toPxString:me,renderIcon:(S,w)=>(0,t.h)(S,w),rateRefs:l,refRandomId:p,slots:o,customIcon:c}}}),tp=["id"],np={class:"fox-rate-item__icon--full"},lp={key:0,class:"fox-rate-item__icon--half"},op={key:1,class:"fox-rate-item__icon--half"};function ap(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:(0,t.normalizeStyle)(i<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",np,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:u=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?((0,t.openBlock)(),(0,t.createElementBlock)("view",lp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?((0,t.openBlock)(),(0,t.createElementBlock)("view",op,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:u=>e.onClick(2,i)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,tp))),128))],34)}var fl=ae(ep,[["render",ap]]),rp={...he,...ge,...xo};function ip(e,n,o,l,a){return{props:rp,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=De(r,"modelValue",null,v),y=k=>{w.value=k,v("update:modelValue",k,{}),v("change",k,{})};return be({setDisabled:k=>{u.value=k},setReadonly:k=>{d.value=k}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const k={...ve(r,xo),disabled:s.value,readonly:p.value,value:w.value,"onUpdate:modelValue":y},f=[],b=(0,t.h)(a,k);f.push(b);const m={default:()=>f};if(i.slots.default){const C=i.slots.default();m.label=()=>C}const A=ve(r,ge,he);return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,o(A,m)}}}}var{componentName:sp,create:up,scope:cp}=J("rate-item"),dp=up(ip(sp,cp,qe,Me,fl)),$o=dp,fp=/scroll|auto|overlay/i,qi=window;function mp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function _l(e,n=qi){let o=e;for(;o&&o!==n&&mp(o);){const{overflowY:l}=window.getComputedStyle(o);if(fp.test(l))return o;o=o.parentNode}return n}function Pi(e,n=qi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=_l(e.value,n))}),o}var Mi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,pp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function hp(e,n,o){return{props:{...pp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Pi(s),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),v=b=>b?b.offsetTop+v(b.offsetParent):0,S=()=>{let b=0,m=0,A="down";if(d.value==window){const C=Mi();s.value&&(b=v(s.value)+s.value.offsetHeight-C-window.innerHeight),m=C}else{const{scrollHeight:C,clientHeight:g,scrollTop:h}=d.value;b=C-g-h,m=h}return p.beforeScrollTop>m?A="up":A="down",p.beforeScrollTop=m,a("scroll-change",m),b<=l.threshold&&A=="down"},w=()=>{Xe(()=>{if(!S()||!l.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",w,l.useCapture)},k=()=>{d.value&&d.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{y(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{k()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,y())}),(0,t.onDeactivated)(()=>{f.value=!0,k()}),(0,t.watch)(()=>l.modelValue,b=>{b||(p.isInfiniting=!1)}),()=>{const b=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(p.isInfiniting){let C=r?.loading?.()??null;if(!C){let h=r?.loadingIcon?.()??null;h||(h=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const N=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);C=[h,N]}const g=(0,t.h)("view",{class:"fox-infinite__bottom-box"},C);m.push(g)}else if(!l.hasMore){let C=r?.finished?.()??null;C||(C=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),m.push(C))}const A=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:c.value,ref:s},[b,A])}}}}var{componentName:vp,create:gp,scope:yp}=J("infinite-loading"),bp=gp(hp(vp,yp,oe.Loading)),ml=bp,{componentName:Sp,create:kp}=J("button"),wp=kp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:a,shape:r,disabled:i,loading:u,color:s,plain:d,block:p}=(0,t.toRefs)(e);return{handleClick:v=>{!u.value&&!i.value&&n("click",v)},classes:(0,t.computed)(()=>{const v=Sp;return{[v]:!0,[`${v}--${l.value}`]:l.value,[`${v}--${a.value}`]:a.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:d.value,[`${v}--block`]:p.value,[`${v}--disabled`]:i.value,[`${v}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const v={};return s?.value&&(d.value?(v.color=s.value,v.background="#fff",s.value?.includes("gradient")||(v.borderColor=s.value)):(v.color="#fff",v.background=s.value)),v})}}}),Cp={class:"fox-button__wrap"};function Np(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Cp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var ut=ae(wp,[["render",Np]]),Ap={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Bp=(e,n,o)=>({props:{...Ap},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=xt(),{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["placeholder"]),s=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:l.background})),p=(0,t.computed)(()=>({background:l.inputBackground})),c=B=>{let T=B.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),r("update:modelValue",T,B),r("change",T,B)},v=(0,t.ref)({}),S=B=>{let T=B.target.value;s.active=!0,v.value=l.focusStyle,r("focus",T,B)},w=B=>{setTimeout(()=>{s.active=!1},0);let T=B.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),v.value={},r("blur",T,B)},y=B=>{r("update:modelValue","",B),r("change","",B),r("clear","")},k=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return k.value||(B.display="none"),B}),b=B=>{l.autoblur&&h.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),r("search",l.modelValue)},m=B=>{r("keyup-input",B)},A=B=>{r("click-input",B)},C=B=>{r("click-left-icon",l.modelValue,B)},g=(0,t.computed)(()=>({textAlign:l.inputAlign})),h=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&h.value.focus()});const N=()=>{const B=[];if(a.leftin){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:C},[a.leftin()]);B.push(W)}const T=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:h,style:g.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:c,onFocus:S,onBlur:w,onkeyup:m}),V=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:b},[T]);B.push(V);const U=[];if(l.clearable){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},[(0,t.h)(a?.clear?.()??l.clearIcon??o)]);U.push(W)}if(a.rightin){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);U.push(W)}if(U.length>0){const W=(0,t.h)("view",{class:`${e}__input-inner-right`},U);B.push(W)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...p.value,...v.value}},B)};return()=>{const B=[];if(l.label){const V=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(V)}if(a.leftout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);B.push(V)}const T=N();if(B.push(T),a.rightout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);B.push(V)}return(0,t.h)("view",{class:`${e}`,style:d.value},B)}}}),{componentName:Tp,create:Vp,scope:xp}=J("searchbar"),$p=Vp(Bp(Tp,xp,oe.CircleClose)),pl=$p,Tn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ep(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(hn(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(zi(e,r)===o)return a}return-1}function hn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function zi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ip(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var qp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o,l,a,r,i){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof i=="function"&&(s=s.filter(i));let d=(o-1)*l,p=d+l;p>s.length&&(p=s.length);const c=s.slice(d,p);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,a,r]);const u=nt(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(u,null,[n,o,l,a]))}};function Pp(){return new qp((0,t.getCurrentInstance)().proxy)}function Mp(e,n,o,l,a,r,i,u,s,d,p){return{props:Tn,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:v}){const{emitEvent:S}=xt(),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),y=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),k=Pp(),f=(0,t.ref)([]),b=(0,t.ref)(0),m=(0,t.ref)(""),A=(0,t.shallowRef)(null),C=(0,t.computed)(()=>{const z={};return c.params&&Object.assign(z,c.params),ce(m.value)||(z[`${c.searchKey}`]=m.value),A.value&&Object.assign(z,A.value),z});let g=!0;const h=async(z,R,D)=>{try{if(B.value===!1)return;let x=null;ce(m.value)||(x=j=>{const ee=hn(c,j);if(typeof ee=="string"&&ee.includes(m.value))return!0;const le=wr(c,j);return!!(typeof le=="string"&&le.includes(m.value))});const F=await k.load("actionsheet",z,R,D,C.value,g,x??void 0);g=!1,Array.isArray(F)?(f.value=F,b.value=1,B.value=!1):!Array.isArray(F.page)||F.page.length===0?(console.warn("[FoxUI] can not load more data"),B.value=!1):(Reflect.apply([].push,f.value,F.page),b.value=Math.ceil(f.value.length/c.pageSize),(F.totalSize&&f.value.length>=F.totalSize||D<F.page.length)&&(B.value=!1)),N.value=!1}catch(x){console.error("[FoxUI] ActionSheet load more data fail",x),B.value=!0,b.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},N=(0,t.ref)(!1),B=(0,t.ref)(!0),T=async()=>{if(!c.source){N.value=!1;return}await h(c.source,b.value+1,c.pageSize)};let V=null;(0,t.watch)(m,(z,R)=>{V&&(clearTimeout(V),V=null),ce(z)&&!ce(R)&&(V=setTimeout(()=>{W()},c.searchDelayTriggerClear))});const U=()=>{B.value=!0,b.value=0,f.value=[],c.source&&T()},W=()=>{U()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([z,R,D])=>{c.source&&U()},{immediate:!0});const $=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),P=(0,t.ref)([]);let M=null;const q=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,z=>{q.value!==z&&(q.value=z),z?M=[...P.value]:M=null});const O=(z,R)=>{const D=[];return Array.isArray(z)||(z=[z]),z.forEach(x=>{let F=Ep(c,R,x,c.valueType);F!==-1&&D.push(F)}),xe(D,P.value)?!1:(P.value=D,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([z,R],[D,x])=>{O(z,R)&&I(H())},{deep:!0});const H=()=>{const z=[],R=[],D=[];for(let ee of P.value){const le=f.value[ee];R.push(le);const ie=hn(c,le);if(D.push(ie),c.valueType==="item")z.push(le);else if(c.valueType==="text")z.push(ie);else{const ue=zi(c,le);z.push(ue)}}let x=null,F=null,j=null;return c.multiple?(x=z,F=D,j=R):(x=z[0]??null,F=D[0]??null,j=R[0]??null),{value:x,text:F,item:j}},I=z=>{S("update:modelValue",z.value),S("update:text",z.text),S("change",z.value,z.item,z.text)},G=()=>{M&&(P.value=M)},te=z=>{const R=P.value.indexOf(z);c.multiple?R===-1?P.value.push(z):P.value.splice(R,1):R===-1?P.value=[z]:P.value=[],($.value||!c.poppable&&!c.showFooter)&&Y()},_=z=>{q.value=z,S("update:visible",z)},K=()=>{const z=()=>{G(),_(!1)},R=c.beforeMethod??c.beforeClose;if(typeof R=="function"){const D=R("close");bt(D)?D.then(x=>{x!==!1&&z()}).catch(()=>{z()}):D!==!1&&z()}else z()},Y=()=>{const z=H(),R=()=>{I(z),_(!1)},D=c.beforeMethod??c.beforeClose;if(typeof D=="function"){const x=D("confirm",z.value,z.item,z.text);bt(x)?x.then(F=>{F!==!1&&R()}).catch(()=>{R()}):x!==!1&&R()}else R()},Z=()=>{let z=y.title.value??"";return v.title&&(z=v.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[z]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:K})])},E=()=>{let z=null;return v.search?z=v.search():z=(0,t.h)(r,{onSearch:U,placeholder:y.seachPlaceholder.value,disabled:c.disabled,modelValue:m.value,"onUpdate:modelValue":R=>{m.value=R}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[z])},L=(z,R,D,x,F)=>{if(v.optionLabel)return v.optionLabel({text:z,checked:R,disabled:D,subText:x,item:F});const j=[],ee=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[z]);if(j.push(ee),x){const le=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[x]);j.push(le)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},j)},X=(z,R,D,x)=>v.optionIcon?v.optionIcon({checked:z,disabled:R,iconSize:D,item:x}):z?v.checkedIcon?v.checkedIcon({disabled:R,item:x}):(0,t.h)(c.checkedIcon??u,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]}):v.icon?v.icon({disabled:R,item:x}):(0,t.h)(c.icon??i,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]}),Q=()=>{const z=[];for(let R=0;R<f.value.length;R++){const D=f.value[R],x=hn(c,D),F=wr(c,D),j=["fox-actionsheet__list-item"],ee={};let le=Dp(c,D),ie=c.iconSize?se(c.iconSize):null;const ue=Ip(c,D,R);ue&&(le=le||ue.disabled,ue.class&&j.push(ue.class),ue.style&&Object.assign(ee,ue.style)),le=!!(c.disabled||le);const Ke=P.value.includes(R);le&&j.push("is-disabled"),Ke&&j.push("is-checked");const Ue={class:j,style:ee,key:`${R}`,onClick:()=>{le||te(R)}};let ze=[];if(v.option)ze.push(v.option({item:D,checked:Ke,disabled:le}));else{const ji=L(x,Ke,le,F,D);ze.push(ji);const Wi=X(Ke,le,ie,D);ze.push(Wi),c.textPosition==="right"&&ze.reverse()}const It=(0,t.h)("view",Ue,ze);z.push(It)}return z},ne=()=>{let z=[];if(v.buttons)z=v.buttons();else{const R=(0,t.h)(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Y,disabled:c.disabled},{default:()=>y.confirmText.value});z.push(R)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[z])};return be({search:async(z=null,R=!0)=>{A.value=z&&(0,t.toRaw)(z),(0,t.triggerRef)(A),R&&(B.value=!0,b.value=0,f.value=[]),(0,t.nextTick)(()=>{T()})},clear:()=>{B.value=!0,b.value=0,f.value=[]},confirm:()=>{Y()},cancel:()=>{K()}}),()=>{const z=[];if(c.showHeader){const le=Z();z.push(le)}if(c.showSearchbar){const le=E();z.push(le)}let R=null;if(v.content)R=v.content();else{const le=Q();R=(0,t.h)(l,{hasMore:B.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":ie=>{N.value=ie},onLoadMore:T},{default:()=>le})}const D={};c.optionsHeight&&(D.height=c.optionsHeight);const x={"fox-actionsheet__list":!0};c.poppable||(x["fox-actionsheet__list--inner"]=!0);const F=(0,t.h)("view",{class:x,style:D},[R]);if(z.push(F),c.showFooter&&!$.value){const le=ne();z.push(le)}const j=(0,t.h)("view",{class:"fox-actionsheet"},z);if(!c.poppable)return j;const ee=["fox-actionsheet__popup"];return c.popClass&&ee.push(c.popClass),(0,t.h)(o,{popClass:ee.join(" "),visible:q.value,closeable:!1,"onUpdate:visible":_,position:c.position,round:"round",onClickOverlay:K,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>j})}}}}var{componentName:zp,create:Lp,scope:Rp}=J("actionsheet-pane"),Fp=Lp(Mp(zp,Rp,ye,ml,ut,pl,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),hl=Fp,Li={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}},Op={...he,...ge,...Li,...Tn};function Kp(e,n,o,l,a,r,i,u){return{props:Op,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=De(s,"modelValue",null,y),A=(0,t.ref)(""),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const X={};return N.value&&(X["text-align"]=N.value),X}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=X=>{T.value=X},W=X=>{m.value=X,y("update:modelValue",X)},$=(X,Q)=>{y("change",X,Q)},P=X=>{let Q=X.target.value;b.value=!0,y("focus",Q,X)},M=X=>{setTimeout(()=>{b.value=!1},0);let Q=X.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),y("blur",Q,X)},q=X=>{A.value=X,y("update:text",X)},O=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),H=(0,t.computed)(()=>ke(s.unit)>0),I=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),G=(0,t.computed)(()=>({hidden:!I.value})),te=X=>{m.value="",y("update:modelValue","",X),y("change","",X),y("clear","")},_=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),K=(0,t.computed)(()=>ke(m.value)>0&&b.value),Y=X=>{K.value?te(X):V()},Z=(0,t.computed)(()=>K.value&&_.value?a:r),E=(0,t.computed)(()=>({action:!0})),L=(0,t.ref)(null);return be({search:X=>{L.value&&L.value.search(X)},clear:()=>{L.value&&L.value.clear},confirm:X=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:X=>{p.value=X},setReadonly:X=>{v.value=X}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const X={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(X.disabled=!0);const Q=[],ne=(0,t.h)("input",X);Q.push(ne);const z=[],R=(0,t.h)(Z.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:E.value,onClick:Y},{default:()=>[R]});if(z.push(D),H.value){const ie=(0,t.h)("view",{class:G.value},[s.unit]);z.push(ie)}const x=(0,t.h)("view",{class:O.value},{default:()=>z});Q.push(x);const F={default:()=>Q};F.label=d.slots.default,F.prepend=d.slots.prepend,F.append=d.slots.append,F.fixedPreTip=d.slots.fixedPreTip,F.fixedTip=d.slots.fixedTip;const j=ve(s,Tn);j.ref=L,j.class=s.actionSheetClass,j.disabled=c.value||S.value,j.visible=T.value,j["onUpdate:visible"]=U,j.modelValue=m.value,j["onUpdate:modelValue"]=W,j.text=A.value,j["onUpdate:text"]=q,j.onChange=$,j.poppable=!0,j["text-position"]=s.textPosition;const ee=(0,t.h)(i,j,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});F.hide=()=>[ee];const le={...et(s,Li,Tn)};return s.prop&&(le.prop=`${s.prop}_item`),o(le,F)}}}}var{componentName:Up,create:Hp,scope:_p}=J("actionsheet-item"),jp=Hp(Kp(Up,_p,qe,Me,oe.CircleClose,oe.ArrowRight,hl)),Eo=jp,Do={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:[Boolean],default:!1},readonly:{type:[Boolean],default:!1}},{componentName:Wp,create:Yp}=J("input-number"),Xp=Yp({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Do},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const S=Wp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),l=S=>Number(S).toFixed(Number(e.decimalPlaces)),a=S=>{const w=S.target;n("update:modelValue",w.valueAsNumber,S)},r=(S,w)=>{let y=l(S);n("update:modelValue",y,w),n("change",y,w)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,u=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,s=S=>{n("reduce",S),u()?r(Number(e.modelValue)-Number(e.step),S):n("overlimit",S,"reduce")},d=S=>{n("add",S),i()?r(Number(e.modelValue)+Number(e.step),S):n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},c=S=>{if(e.disabled||e.readonly)return;let w=S.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,S),n("blur",S)},v=S=>{let w=Number(S);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=v(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:o,change:a,blur:c,focus:p,add:d,addAllow:i,reduce:s,reduceAllow:u,toPxString:me}}}),Qp=["min","max","disabled","readonly","value"];function Gp(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Minus"),u=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(i,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,Qp),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var vl=ae(Xp,[["render",Gp]]),Zp={...he,...ge,...Do};function Jp(e,n,o,l,a){return{props:Zp,emits:["change","update:modelValue","setValue","add","reduce"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!p.value}},r.prop??i.attrs.name),S=(0,t.computed)(()=>{const b=[`${e}`];return r.textAlign==="left"?b.push("is-left"):r.textAlign==="center"?b.push("is-center"):r.textAlign==="right"&&b.push("is-right"),b.join(" ")}),w=De(r,"modelValue",null,v),y=b=>{w.value=b,v("update:modelValue",b,{}),v("change",b,{})},k=b=>{v("add",b)},f=b=>{v("reduce",b)};return be({setDisabled:b=>{u.value=b},setReadonly:b=>{d.value=b}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const b={"left-icon":i.slots["left-icon"],"right-icon":i.slots["right-icon"]},m=ve(r,Do),A=(0,t.h)(a,{...i.attrs,...m,disabled:s.value,readonly:p.value,value:w.value,"onUpdate:modelValue":y,onAdd:k,onReduce:f},b),C=[];C.push(A);const g={default:()=>C};g.label=i.slots.default,g.fixedPreTip=i.slots.fixedPreTip,g.fixedTip=i.slots.fixedTip;const h={...ve(r,ge,he)};return r.prop&&(h.prop=`${r.prop}_item`),h["content-class"]=S.value,o(h,g)}}}}var{componentName:eh,create:th,scope:nh}=J("input-number-item"),lh=th(Jp(eh,nh,qe,Me,vl)),Io=lh,oh={...go,...yo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ah(e,n,o,l){return{props:oh,emits:["update:modelValue","change"],setup(a,{emit:r,slots:i}){const u=e,s=(0,t.computed)(()=>{const y=[`${u}`];return a.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),d=(0,t.computed)(()=>{const y={};if(a.width){const k=me(a.width);k&&(y.width=k)}if(a.height){const k=me(a.height);k&&(y.height=k)}return y}),p=(0,t.computed)(()=>[`${u}__bar`]),c=(0,t.computed)(()=>[`${u}__container`]),v=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,y=>{v.value!==y&&(v.value=y)});const S=y=>{r("change",y)},w=y=>{v.value!==y&&(v.value=y,r("update:modelValue",y))};return()=>{const{getChildren:y}=Yn(i.default),k=y(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let N=0;N<k.length;N++){const B=k[N].props??{},T={text:B.label??"",value:B["pane-key"]??B.paneKey??""};f.push(T)}const b={};for(let N in i)N!=="default"&&(b[N]=i[N]);const m=ve(a,go);Object.assign(m,{data:f,class:p.value,modelValue:v.value,direction:a.direction,onChange:S,"onUpdate:modelValue":w});const A=(0,t.h)(o,m,b),C={default:()=>k},g=ve(a,yo);Object.assign(g,{class:c.value,modelValue:v.value,onChange:S,"onUpdate:modelValue":w});const h=(0,t.h)(l,g,C);return(0,t.h)("view",{class:s.value,style:d.value},[A,h])}}}}var{create:rh,componentName:ih,scope:sh}=J("tabs-frame"),uh=rh(ah(ih,sh,on,an)),qo=uh,ch={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function dh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Cr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Nr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function fh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ar(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Br(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Tl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var mh=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function ph(){return new mh((0,t.getCurrentInstance)().proxy)}function hh(e,n,o,l){return{props:{...ch},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:i}){const u=e,s=ph(),d=(0,t.ref)([]),p=(0,t.computed)(()=>d.value.filter(_=>fh(a,_)!==!1)),c=(0,t.ref)(-1),v=()=>{const _=a.modelValue,K=p.value.findIndex(Y=>Cr(a,Y)===_);c.value!==K&&(c.value=K,a.scroll&&G(K,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{v()});const S=_=>c.value===_,w=_=>{if(_<0&&_>=p.value.length)return!1;const K=p.value[_],Y=(Tl(a,K,_)??{}).status??Bl(a,K);return S(_)||Y},y=(0,t.computed)(()=>{const _={[u]:!0};return a.mode?_[`is-${a.mode}`]=!0:a.direction&&(_[`is-${a.direction}`]=!0),a.scroll&&(_["is-scroll"]=!0),_}),k=(0,t.computed)(()=>({})),f=(_,K,Y,Z,E)=>{const L={[`${u}__step`]:!0};return E&&(L[`${E}`]=!0),L[`${b.value}`]=!0,Z&&(L["is-doit"]=!0),_===c.value?L["is-active"]=!0:K==="done"?L["is-done"]=!0:K==="error"?L["is-error"]=!0:K==="half"?L["is-half"]=!0:Y?L["is-disabled"]=!0:L["is-normal"]=!0,L},b=(0,t.computed)(()=>{let _=a.align;if(!_){if(a.mode==="simple")return"start";a.direction==="vertical"?_="start":_="center"}return _}),m=(_,K={})=>{const Y={...K};if(b.value==="start"&&_===p.value.length-1)Y.flex="0 0 auto";else if(a.step){const Z=typeof a.step=="number"||En(a.step)?me(a.step):a.step;a.direction==="vertical"?Y.height=Z:Y.width=Z}else Y.flex="1 1 100%";return Y},A=(_,K)=>{let Y={};if(K<p.value.length-1){const Z=K+1;w(K)&&w(Z)?a.direction==="vertical"?Y.height="100%":Y.width="100%":Y.opacity="0"}return Y},C=_=>p.value.length-1===_,g=(_,K)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const Y=c.value,Z=K;c.value=K,a.scroll&&G(K,!1);const E=Cr(a,_);i("update:modelValue",E),i("change",E,{fromIndex:Y,currentIndex:Z,item:_,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},h=(0,t.ref)(!0),N=async(_,K)=>{try{const Y=await s.load("stesbar",_,K);Array.isArray(Y)&&(d.value=Y),h.value=!1}catch(Y){console.error("[FoxUI] Load StepsBar Data Fail",Y),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([_,K])=>{_&&N(_,K)},{immediate:!0});const B=(_,K,Y,Z,E,L)=>{const X=[];let Q=null;if(!L)if(r.icon)Q=r.icon({item:_,index:K,status:Z});else if(Z==="done"){const ne={};a.iconSize&&(ne.width=a.iconSize,ne.height=a.iconSize),Q=(0,t.h)(a.icon??o,ne)}else Q=(0,t.h)("span",{},[Y??`${K+1}`]);return Q&&X.push(Q),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:_,index:K}),!E&&g(_,K)}},X)},T=(_,K,Y)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:A(_,K)})]),V=()=>{let _=null;if(r.markIcon)_=r.markIcon();else{const K={};a.iconSize&&(K.width=a.markIconSize,K.height=a.markIconSize),_=(0,t.h)(a.markIcon??l,K)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[_])},U=(_,K,Y,Z,E,L)=>{const X=[];if(!C(K)){const ne=T(_,K,Z);X.push(ne)}const Q=B(_,K,Y,Z,E,L);return X.push(Q),(0,t.h)("view",{class:"fox-steps-bar__head"},X)},W=(_,K,Y,Z)=>{let E=null;return r.main?E=r.main({item:_,index:K,status:Y}):E=dh(a,_),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{i("click",{item:_,index:K}),!Z&&g(_,K)}},[E])},$=(_,K,Y)=>{let Z=null;return r.sub?(Z=r.sub({item:_,index:K,status:Y}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Z])):null},P=(_,K)=>{const Y=Tl(a,_,K)??{},Z=Y.status??Bl(a,_);let E=Nr(a,_);Y.disabled===!0&&(E=!0),a.disabled===!0&&(E=!0);let L=Ar(a,_);Y.doit===!0&&(L=!0);const X=Y.label??Br(a,_),Q=[],ne=B(_,K,X,Z,E,L);ne&&Q.push(ne);const z=W(_,K,Z,E);if(z&&Q.push(z),!C(K)){const F=T(_,K,Z);F&&Q.push(F)}const R=(0,t.h)("view",{class:"fox-steps-bar__head"},Q),D=Y.class,x=Y.style??{};return(0,t.h)("view",{ref:I(K),class:f(K,Z,E,L,D),style:m(K,x)},[R])},M=(_,K)=>{const Y=Tl(a,_,K)??{},Z=Y.status??Bl(a,_);let E=Nr(a,_);Y.disabled===!0&&(E=!0),a.disabled===!0&&(E=!0);let L=Ar(a,_);Y.doit===!0&&(L=!0);const X=Y.label??Br(a,_),Q=[],ne=a.layout;for(let D of ne)if(D==="head"){const x=U(_,K,X,Z,E,L);Q.push(x)}else if(D==="main"){const x=W(_,K,Z,E);Q.push(x)}else if(D==="sub"){const x=$(_,K,Z);Q.push(x)}else if(D==="mark"){const x=V();Q.push(x)}const z=Y.class,R=Y.style??{};return(0,t.h)("view",{ref:I(K),class:f(K,Z,E,L,z),style:m(K,R)},Q)},q=(0,t.ref)(),O=(0,t.ref)([]),H=(_,K)=>{O.value[K]=_},I=_=>K=>{H(K,_)},G=(_,K)=>{const Y=q.value,Z=O.value;if(!Y||!Z||!Z[_])return;const E=Z[_];let L=0;a.direction==="vertical"?L=E.offsetTop-(Y.offsetHeight-E.offsetHeight)/2:L=E.offsetLeft-(Y.offsetWidth-E.offsetWidth)/2,te(Y,L,K?0:.3,a.direction)},te=(_,K,Y,Z)=>{let E=0;const L=Z==="horizontal"?_.scrollLeft:_.scrollTop,X=Y===0?1:Math.round(Y*1e3/16);function Q(){Z==="horizontal"?_.scrollLeft+=(K-L)/X:_.scrollTop+=(K-L)/X,++E<X&&He(Q)}Q()};return()=>{let _=[];if(a.mode==="simple")for(let Y=0;Y<p.value.length;Y++){const Z=p.value[Y],E=P(Z,Y);_.push(E)}else for(let Y=0;Y<p.value.length;Y++){const Z=p.value[Y],E=M(Z,Y);_.push(E)}const K={ref:q,class:y.value,style:k.value};return _.length===0&&typeof r.default=="function"&&(_=r.default()),(0,t.h)("view",K,_)}}}}var{componentName:vh,create:gh,scope:yh}=J("steps-bar"),bh=gh(hh(vh,yh,oe.Checklist,oe.ArrowRight)),Po=bh;function Sh(e){e.stopPropagation()}var kh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=tl()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=nl(),o=(l,a,r,i)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Sh(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function wh(e,n){return new kh(e,n)}var Ch={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},Nh=(e,n,o,l=!1)=>({props:{...Ch},emits:["click"],setup(a,{slots:r,emit:i}){let u=-1,s=-1;const d=(0,t.reactive)({top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:0,height:0}),p=(0,t.computed)(()=>{const C=[`${e}`];return a.customClass&&C.push(a.customClass),C}),c=C=>typeof C=="string"&&!En(C)?C:`${C}px`,v=(0,t.computed)(()=>{const C={};return ce(d.top)||(C.top=c(d.top)),ce(d.right)||(C.right=c(d.right)),ce(d.bottom)||(C.bottom=c(d.bottom)),ce(d.left)||(C.left=c(d.left)),ce(a.width)||(C.width=c(a.width)),ce(a.height)||(C.height=c(a.height)),ce(a.color)||(C.color=a.color),ce(a.background)||(C.background=a.background),ce(a.borderRadius)||(C["border-radius"]=a.borderRadius),ce(a.zIndex)||(C["z-index"]=a.zIndex),C}),S=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{i("click")},y=(0,t.ref)(null),k=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},A=wh(C=>{if(!y.value)return;const g=y.value;k(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,f.x=d.left,f.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},C=>{if(!y.value)return;const g=y.value;k();let h=f.x+C.x;h<0&&(h=0),h>u-d.width&&(h=u-d.width);let N=f.y+C.y;N<0&&(N=0),N>s-d.height&&(N=s-d.height),d.left=h,d.top=N,g.style.left=`${h}px`,g.style.top=`${N}px`});return(0,t.onMounted)(()=>{if(a.draggable&&y.value){const C=[y.value];A.open(C)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&y.value&&A.close()}),()=>{let C=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)C=g;else{const h=(0,t.h)(o,{class:S.value});C.push(h)}return(0,t.h)("view",{ref:h=>{y.value=h},class:p.value,style:v.value,onClick:w},C)}}}),{componentName:Ah,create:Bh,scope:Th}=J("floating-button"),Vh=Bh(Nh(Ah,Th,oe.Uploader,!1)),Mo=Vh,xh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function $h(e,n,o){return{props:{...xh},emits:["click","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),d=De(l,"modelValue"),p=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),v=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{a("update:modelValue",!d.value)};return()=>{const w=[];if(p.value){const f=(0,t.h)("span",{class:c.value},[p.value]);w.push(f)}const y={class:v.value},k=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(k){const f=(0,t.h)("view",y,[k]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:s.value,onClick:S},w)}}}}var{componentName:Eh,create:Dh,scope:Ih}=J("more-button"),qh=Dh($h(Eh,Ih,oe.RectUp)),zo=qh,Ph={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Mh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zh(e,n,o){return{props:{...Ph},emits:["update:visible"],setup(l,{attrs:a,slots:r,emit:i}){const{toLocaleRefs:u}=(0,pe.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,p=(0,t.ref)(l.visible),c=C=>{p.value=C,i("update:visible",C)};(0,t.watch)(()=>l.visible,C=>{p.value!==C&&(p.value=C)});const v=C=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(C)}catch(g){console.error(g)}},S=()=>{v("confirm")},w=()=>{v("cancel")},y=()=>{l.closeOnClickOverlay!==!1&&v("close")},k=(C,g)=>Mh(C)?(g.src=C,(0,t.h)("img",g)):typeof C=="string"?(Array.isArray(g.class)?g.class.push(C):g.class&&typeof g.class=="object"?g[`${C}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${C}`:g.class=C,(0,t.h)(l.tag,g)):(0,t.h)(C,g),f=()=>{const C=[];if(l.icon){const g={class:[`${d}__header-icon`]},h=k(l.icon,g);C.push(h)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);C.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:y},h=k(l.closeIcon,g);C.push(h)}return(0,t.h)("view",{class:[`${d}__header`]},C)},b=(C,g)=>{const h=[];if(g){const N=(0,t.h)("view",{class:`${d}__group-title`},[g]);h.push(N)}if(C){const N=[];Array.isArray(C)||(C=[C]);for(let B of C){const T=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:B});N.push(T)}if(N.length>0){const B=(0,t.h)("view",{class:`${d}__group-rows`},N);h.push(B)}}return h.length===0?null:(0,t.h)("view",{class:`${d}__group`},h)},m=()=>{const C=[];if(typeof l.message=="string")C.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const h=b(g);C.push(h)}else{const h=b(g.content,g.title);C.push(h)}else if(typeof l.message=="function"){const g=l.message();C.push(g)}else{const g=l.message;C.push(g)}return(0,t.h)("view",{class:`${d}__body`},C)},A=()=>{const C=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const h=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);C.push(h)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:S};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const h=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);C.push(h)}return C.length===0?null:(0,t.h)("view",{class:`${d}__footer`},C)};return()=>{const C=[],g=f();g&&C.push(g);const h=m();h&&C.push(h);const N=A();N&&C.push(N);const B=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},C),T=[`${d}__popup`];l.popClass&&T.push(l.popClass);const V={};return l.width&&(V.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(V.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:T.join(" "),style:V,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:y,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:Lh,create:Rh,scope:Fh}=J("messagebox"),Oh=Rh(zh(Lh,Fh,ye)),Kh=Oh,Uh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Hh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",_h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",jh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Wh=new Qn,Yh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Xh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),a=`messagebox-${Wh.get()}`;l.id=a,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${a}`);i&&i.parentNode?.removeChild(i)};const r=(0,t.createVNode)(Kh,e);n.appendChild(l),(0,t.render)(r,l)},rt={show:(e,n,o,l)=>{const a={...Yh};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),o&&typeof o=="object"?Object.assign(a,o):(typeof o=="string"&&(a.title=o),l&&typeof l=="object"?Object.assign(a,l):typeof l=="string"&&(a.type=l)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=_h:r==="warning"?a.icon=jh:r==="error"?a.icon=Uh:a.icon=Hh),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=oe.Close),new Promise((i,u)=>{const s=a.callback;a.callback=d=>{if(typeof s=="function")try{s(d)}catch(p){console.error(p)}i({action:d})},Xh(a)})},alert:(e,n,o)=>rt.show("alert",e,n,o),confirm:(e,n,o)=>rt.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=rt.alert,e.config.globalProperties.$confirm=rt.confirm}},Qh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let a=!0,r=!0;for(let i in n)i==="bubbles"?a=!!n[i]:i==="cancelable"?r=!!n[i]:l[i]=n[i];l.initEvent(e,a,r),(o??document).dispatchEvent(l)},Gh=new Qn,Zh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Jh=e=>`${e}-${Gh.get()}`,ev=Symbol.for("InnerPageScopeKey"),tv=Symbol.for("PageWrapperKey"),nv="FoxLeave",lv="FoxLeaveEnd",ov={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function av(e,n,o,l){return{props:{...Ze,...ov},emits:["update:visible"],setup(a,{attrs:r,slots:i,emit:u}){(0,t.provide)(ev,!0);const s={};(0,t.provide)(tv,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),p=()=>{d("close")},c=e,v=g=>{S.value=g,u("update:visible",g)},S=(0,t.ref)(!1),w=(g,h)=>Zh(g)?(h.src=g,(0,t.h)("img",h)):typeof g=="string"?(Array.isArray(h.class)?h.class.push(g):h.class&&typeof h.class=="object"?h[`${g}`]=!0:typeof h.class=="string"?h.class=`${h.class}, ${g}`:h.class=g,(0,t.h)(a.tag,h)):(0,t.h)(g,h),y=()=>{if(!a.showHeader)return null;const g=[];if(i.header){const h=i.header();g.push(h)}else if(a.title){const h=(0,t.h)("view",{class:`${c}__header-title`},[a.title]);g.push(h)}return g.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},g)},k=()=>{if(!a.showClose)return null;const g={class:[`${c}__close-icon`],onClick:p};return w(a.closeIcon??l,g)};let f=null;const b=g=>{Qh(lv,{},f)},m=Jh(e),A=()=>{v(!0)},C=()=>{if(!f)return;const g=f.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const h=f.querySelector(".fox-popup");h&&(h.classList.add(`fox-popup-slide-${a.position}-leave-active`),h.classList.add(`fox-popup-slide-${a.position}-leave-to`),h.addEventListener("animationend",b,{once:!0}),h.addEventListener("transitionend",b,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(nv,C,{once:!0}),A()}),()=>{const g=[],h=y();h&&g.push(h);const N=k();N&&g.push(N);const B=i.default?i.default():[];Reflect.apply([].push,g,B);const T={[`${c}`]:!0};a.mode&&(T[`${c}--${a.mode}`]=!0);const V=(0,t.h)("view",{class:T},g),U=[`${c}__popup`,m];a.popClass&&U.push(a.popClass),a.position&&U.push(`${c}__popup--${a.position}`);const W={};a.width&&(W.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(W.height=typeof a.height=="number"?`${a.height}px`:a.height);const $=(0,t.h)(o,{...ve(a,Ze),popClass:U.join(" "),style:W,visible:S.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":v},{default:()=>V});return(0,t.h)("div",{class:[`${c}__root`,m]},[$])}}}}var{componentName:rv,create:iv,scope:sv}=J("popup-wrapper"),uv=iv(av(rv,sv,ye,oe.Close)),Lo=uv,cv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function dv(e,n,o,l){return{props:{...cv},emits:["update:visible"],setup(a,{emit:r,slots:i}){const u=s=>{r("update:visible",s)};return()=>{const s=[`${e}__popup`];a.popClass&&s.push(a.popClass);const d=(0,t.h)(o,{popClass:s,style:a.popStyle??{},position:"top",zIndex:a.zIndex,closeOnClickOverlay:a.closeOnClickOverlay,teleportDisable:!0,visible:a.visible,"onUpdate:visible":u},i);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:fv,create:mv,scope:pv}=J("dropdown"),hv=mv(dv(fv,pv,ye,!1)),Ro=hv;function vv(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:l}){return Zr(o.name,()=>o.config),Pe(o.innerPageScope)||ti(o.innerPageScope),Pe(o.abstractPageScope)||ni(o.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:gv,create:yv,scope:bv}=J("domain-provider"),Sv=yv(vv(gv,bv)),Fo=Sv,kv={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function wv(e,n){return{inheritAttrs:!1,props:kv,emits:["change"],setup(o,{slots:l,emit:a}){if(Je&&window.IntersectionObserver){const r=new WeakMap;let i=new Map;const u=(v,S)=>{if(p===null){i.set(v,{visible:null,callback:S});return}r.has(v)&&p.unobserve(v),r.set(v,{visible:null,callback:S}),p.observe(v)},s=v=>{if(p===null){i.delete(v);return}r.has(v)&&(r.delete(v),p.unobserve(v))};let d=o.initialVisibleObserverSize;uu({acquire:()=>{if(o.loadPolicy==="always")return!0;const v=d>0;return d--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let p=null;const c=(v,S,w)=>{p=new IntersectionObserver(y=>{if(a("change",y),o.loadPolicy!=="always")for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const b=r.get(k.target);if(b)try{if(o.loadPolicy==="lazy"&&!f&&b.visible!==null)return;b.visible=f,b.callback(f)}catch(m){console.error(m)}}},{root:v,rootMargin:S,threshold:w}),i.forEach((y,k)=>{r.set(k,y),p?.observe(k)}),i.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([v,S])=>{if(S||!v||p)return;let w=null;typeof v=="string"?w=document.querySelector(v):w=v,w&&c(w,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Cv,create:Nv,scope:Av}=J("rolling-provider"),Bv=Nv(wv(Cv,Av)),Oo=Bv,{componentName:Tv,create:Vv}=J("cell"),xv=Vv({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const r=Tv;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:o,baseStyle:l}}}),$v={key:0,class:"fox-cell__icon"},Ev={key:1,class:"fox-cell__title"},Dv={class:"title"},Iv={class:"fox-cell__title-desc"};function qv(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",$v,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ev,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Dv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Iv,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ko=ae(xv,[["render",qv]]),Pv={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Mv(e,n){return{props:{...Pv},setup(o,{attrs:l,slots:a}){const r=(0,t.computed)(()=>{const i={};return o.color&&(i.color=o.color),o.size&&(i.fontSize=me(o.size)),i});return()=>{const i={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",i,a)}}}}var{componentName:zv,create:Lv,scope:Rv}=J("icon"),Fv=Lv(Mv(zv,Rv)),Uo=Fv,{componentName:Ov,create:Kv}=J("cell-group"),Uv=Kv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Ov]:!0}))}}}),Hv={key:1,class:"fox-cell-group__title"},_v={key:3,class:"fox-cell-group__desc"},jv={class:"fox-cell-group__wrap"};function Wv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hv,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",_v,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jv,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ho=ae(Uv,[["render",Wv]]),{componentName:Yv,create:Xv}=J("image"),Qv=Xv({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const S=Yv;return{[S]:!0,[`${S}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),i=(0,t.ref)(null),u=()=>{a.value=new IntersectionObserver(S=>{S.forEach(w=>{w.isIntersecting&&(r.value=!0,a.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),i.value&&a.value.observe(i.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.disconnect()});const s=(0,t.computed)(()=>{let S={};return e.width&&(S.width=me(e.width)),e.height&&(S.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=me(e.radius)),S}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,S=>{o.isError=!1,o.loading=!0});const p=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},v=S=>{n("click",S)};return{...(0,t.toRefs)(o),imageClick:v,classes:l,styles:d,stylebox:s,error:c,load:p,show:r,imgRef:i}}}),Gv=["src","date-src","alt"],Zv={key:0,class:"fox-img-loading"},Jv={key:1,class:"fox-img-error"};function eg(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Image"),u=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,Gv),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Zv,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Jv,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var _o=ae(Qv,[["render",eg]]),{create:tg}=J("layout"),ng=tg({}),jo=ng,{componentName:lg,create:og}=J("col"),ag=og({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=lg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function rg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Wo=ae(ag,[["render",rg]]),{componentName:ig,create:sg}=J("row"),ug=sg({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=ig;(0,t.provide)("gutter",e.gutter);const o=(l,a)=>l?a?`fox-row-${l}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
2
  ${o("",e.type)}
3
3
  ${o("justify",e.justify)}
4
4
  ${o("align",e.align)}