@creatorsn/vfluent3 0.2.13 → 0.2.14
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/vfluent3.js +1 -1
- package/dist/vfluent3.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/vfluent3.umd.cjs
CHANGED
|
@@ -24,4 +24,4 @@ This will fail in production.`);a=nn,a._s.has(r)||(o?ri(r,e,s,a):pr(r,s,a),proce
|
|
|
24
24
|
* Subject to the terms at https://greensock.com/standard-license or for
|
|
25
25
|
* Club GreenSock members, the agreement issued with that membership.
|
|
26
26
|
* @author: Jack Doyle, jack@greensock.com
|
|
27
|
-
*/var Ro,Ze,Xt,Li,Bt,gn,Fo,ph=function(){return typeof window<"u"},ht={},It=180/Math.PI,pn=Math.PI/180,jt=Math.atan2,Oo=1e8,Ao=/([A-Z])/g,Gn=/[-+=\.]*\d+[\.e-]*\d*[a-z%]*/g,bh=/(?:left|right|width|margin|padding|x)/i,wh=/[\s,\(]\S/,mt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wo=function(e,t){return t.set(t.t,t.p,~~((t.s+t.c*e)*1e3)/1e3+t.u,t)},yh=function(e,t){return t.set(t.t,t.p,e===1?t.e:~~((t.s+t.c*e)*1e3)/1e3+t.u,t)},kh=function(e,t){return t.set(t.t,t.p,e?~~((t.s+t.c*e)*1e3)/1e3+t.u:t.b,t)},vh=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Ho=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Go=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},_h=function(e,t,r){return e.style[t]=r},Ch=function(e,t,r){return e.style.setProperty(t,r)},Sh=function(e,t,r){return e._gsap[t]=r},xh=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Vh=function(e,t,r,s,o){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(o,l)},Eh=function(e,t,r,s,o){var l=e._gsap;l[t]=r,l.renderTransform(o,l)},We="transform",gt=We+"Origin",Uo,Pi=function(e,t){var r=Ze.createElementNS?Ze.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ze.createElement(e);return r.style?r:Ze.createElement(e)},Jt=function n(e,t,r){var s=getComputedStyle(e);return s[t]||s.getPropertyValue(t.replace(Ao,"-$1").toLowerCase())||s.getPropertyValue(t)||!r&&n(e,Kt(t)||t,1)||""},Yo="O,Moz,ms,Ms,Webkit".split(","),Kt=function(e,t){var r=t||Bt,s=r.style,o=5;if(e in s)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(Yo[o]+e in s););return o<0?null:(o===3?"ms":o>=0?Yo[o]:"")+e},Mi=function(){ph()&&(Ro=window,Ze=Ro.document,Xt=Ze.documentElement,Bt=Pi("div")||{style:{}},gn=Pi("div"),We=Kt(We),gt=Kt(gt),Bt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Uo=!!Kt("perspective"),Li=1)},Th=function n(e){var t=Pi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,o=this.style.cssText,l;if(Xt.appendChild(t),t.appendChild(this),this.style.display="block",e)try{l=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(l=this._gsapBBox());return s?r.insertBefore(this,s):r.appendChild(this),Xt.removeChild(t),this.style.cssText=o,l},qo=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Xo=function(e){var t;try{t=e.getBBox()}catch{t=Th.call(e,!0)}return t&&!t.width&&!t.x&&!t.y?{x:+qo(e,["x","cx","x1"])||0,y:+qo(e,["y","cy","y1"])||0,width:0,height:0}:t},jo=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Xo(e))},zi=function(e,t){if(t){var r=e.style;t in ht&&(t=We),r.removeProperty?((t.substr(0,2)==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(t.replace(Ao,"-$1").toLowerCase())):r.removeAttribute(t)}},pt=function(e,t,r,s,o,l){var a=new Ee(e._pt,t,r,0,1,l?Go:Ho);return e._pt=a,a.b=s,a.e=o,e._props.push(r),a},Jo={deg:1,rad:1,turn:1},Dt=function(e,t,r,s){var o=parseFloat(r)||0,l=(r+"").trim().substr((o+"").length)||"px",a=Bt.style,d=bh.test(t),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(d?"Width":"Height"),f=100,m=s==="px",h,g,_,p;return s===l||!o||Jo[s]||Jo[l]?o:(p=e.getCTM&&jo(e),s==="%"&&(ht[t]||~t.indexOf("adius"))?se(o/(p?e.getBBox()[d?"width":"height"]:e[u])*f):(a[d?"width":"height"]=f+(m?l:s),g=~t.indexOf("adius")||s==="em"&&e.appendChild&&!c?e:e.parentNode,p&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===Ze||!g.appendChild)&&(g=Ze.body),_=g._gsap,_&&s==="%"&&_.width&&d&&_.time===Ae.time?se(o/_.width*f):(g===e&&(a.position="static"),g.appendChild(Bt),h=Bt[u],g.removeChild(Bt),a.position="absolute",d&&s==="%"&&(_=Gt(g),_.time=Ae.time,_.width=g[u]),se(m?h*o/f:f/h*o))))},bn=function(e,t,r,s){var o;return Li||Mi(),t in mt&&t!=="transform"&&(t=mt[t],~t.indexOf(",")&&(t=t.split(",")[0])),ht[t]&&t!=="transform"?(o=Yn(e,s),o=t!=="transformOrigin"?o[t]:qn(Jt(e,gt))+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||s||~(o+"").indexOf("calc("))&&(o=Un[t]&&Un[t](e,t,r)||Jt(e,t)||fo(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").indexOf(" ")?Dt(e,t,o,r)+r:o},Bh=function(e,t,r,s){var o=new Ee(this._pt,e.style,t,0,1,Mo),l=0,a=0,d,c,u,f,m,h,g,_,p,C,y,w,v;if(o.b=r,o.e=s,r+="",s+="",s==="auto"&&(e.style[t]=s,s=Jt(e,t)||s,e.style[t]=r),d=[r,s],To(d),r=d[0],s=d[1],h=r.indexOf("rgba("),g=s.indexOf("rgba("),!!h!=!!g&&(h?r=r.substr(h)+" "+r.substr(0,h-1):s=s.substr(g)+" "+s.substr(0,g-1)),u=r.match(Gn)||[],v=s.match(Gn)||[],v.length){for(;c=Gn.exec(s);)g=c[0],p=s.substring(l,c.index),m?m=(m+1)%5:(p.substr(-5)==="rgba("||p.substr(-5)==="hsla(")&&(m=1),g!==(h=u[a++]||"")&&(f=parseFloat(h)||0,y=h.substr((f+"").length),w=g.charAt(1)==="="?+(g.charAt(0)+"1"):0,w&&(g=g.substr(2)),_=parseFloat(g),C=g.substr((_+"").length),l=Gn.lastIndex-C.length,C||(C=C||ze.units[t]||y,l===s.length&&(s+=C,o.e+=C)),y!==C&&(f=Dt(e,t,h,C)||0),o._pt={_next:o._pt,p:p||a===1?p:",",s:f,c:w?w*_:_-f,m:m&&m<4?Math.round:0});o.c=l<s.length?s.substring(l,s.length):""}else o.r=t==="display"&&s==="none"?Go:Ho;return eo.test(s)&&(o.e=0),this._pt=o,o},Ko={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ih=function(e){var t=e.split(" "),r=t[0],s=t[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(e=r,r=s,s=e),t[0]=Ko[r]||r,t[1]=Ko[s]||s,t.join(" ")},Dh=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,s=r.style,o=t.u,l,a,d;if(o==="all"||o===!0)s.cssText="",a=1;else for(o=o.split(","),d=o.length;--d>-1;)l=o[d],ht[l]&&(a=1,l=l==="transformOrigin"?gt:We),zi(r,l);a&&(zi(r,We),a=r._gsap,a&&(a.svg&&r.removeAttribute("transform"),Yn(r,1)))}},Un={clearProps:function(e,t,r,s,o){if(o.data!=="isFromStart"){var l=e._pt=new Ee(e._pt,t,r,0,0,Dh);return l.u=s,l.pr=-10,l.tween=o,e._props.push(r),1}}},wn=[1,0,0,1,0,0],Qo={},Zo=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},es=function(e){var t=Jt(e,We);return Zo(t)?wn:t.substr(7).match(Zr).map(se)},ts=function(e,t){var r=e._gsap,s=e.style,o=es(e),l,a,d,c;return r.svg&&e.getAttribute("transform")?(d=e.transform.baseVal.consolidate().matrix,o=[d.a,d.b,d.c,d.d,d.e,d.f],o.join(",")==="1,0,0,1,0,0"?wn:o):(o===wn&&!e.offsetParent&&e!==Xt&&!r.svg&&(d=s.display,s.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(c=1,a=e.nextSibling,Xt.appendChild(e)),o=es(e),d?s.display=d:zi(e,"display"),c&&(a?l.insertBefore(e,a):l?l.appendChild(e):Xt.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Ri=function(e,t,r,s,o,l){var a=e._gsap,d=o||ts(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,f=a.xOffset||0,m=a.yOffset||0,h=d[0],g=d[1],_=d[2],p=d[3],C=d[4],y=d[5],w=t.split(" "),v=parseFloat(w[0])||0,b=parseFloat(w[1])||0,k,x,I,D;r?d!==wn&&(x=h*p-g*_)&&(I=v*(p/x)+b*(-_/x)+(_*y-p*C)/x,D=v*(-g/x)+b*(h/x)-(h*y-g*C)/x,v=I,b=D):(k=Xo(e),v=k.x+(~w[0].indexOf("%")?v/100*k.width:v),b=k.y+(~(w[1]||w[0]).indexOf("%")?b/100*k.height:b)),s||s!==!1&&a.smooth?(C=v-c,y=b-u,a.xOffset=f+(C*h+y*_)-C,a.yOffset=m+(C*g+y*p)-y):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=b,a.smooth=!!s,a.origin=t,a.originIsAbsolute=!!r,e.style[gt]="0px 0px",l&&(pt(l,a,"xOrigin",c,v),pt(l,a,"yOrigin",u,b),pt(l,a,"xOffset",f,a.xOffset),pt(l,a,"yOffset",m,a.yOffset))},Yn=function(e,t){var r=e._gsap||new Do(e);if("x"in r&&!t&&!r.uncache)return r;var s=e.style,o=r.scaleX<0,l=r.xOrigin||0,a=r.yOrigin||0,d="px",c="deg",u=Jt(e,gt)||"0",f,m,h,g,_,p,C,y,w,v,b,k,x,I,D,S,V,M,L,E,z,B,T,F,ee,oe,Q,ve,ke,de;return f=m=h=p=C=y=w=v=b=0,g=_=1,r.svg=!!(e.getCTM&&jo(e)),k=ts(e,r.svg),r.svg&&Ri(e,u,r.originIsAbsolute,r.smooth!==!1,k),k!==wn&&(S=k[0],V=k[1],M=k[2],L=k[3],f=E=k[4],m=z=k[5],k.length===6?(g=Math.sqrt(S*S+V*V),_=Math.sqrt(L*L+M*M),p=S||V?jt(V,S)*It:0,w=M||L?jt(M,L)*It+p:0,r.svg&&(f-=l-(l*S+a*M),m-=a-(l*V+a*L))):(de=k[6],ve=k[7],ee=k[8],oe=k[9],Q=k[10],ke=k[11],f=k[12],m=k[13],h=k[14],x=jt(de,Q),C=x*It,x&&(I=Math.cos(-x),D=Math.sin(-x),B=E*I+ee*D,T=z*I+oe*D,F=de*I+Q*D,ee=E*-D+ee*I,oe=z*-D+oe*I,Q=de*-D+Q*I,ke=ve*-D+ke*I,E=B,z=T,de=F),x=jt(-M,Q),y=x*It,x&&(I=Math.cos(-x),D=Math.sin(-x),B=S*I-ee*D,T=V*I-oe*D,F=M*I-Q*D,ke=L*D+ke*I,S=B,V=T,M=F),x=jt(V,S),p=x*It,x&&(I=Math.cos(x),D=Math.sin(x),B=S*I+V*D,T=E*I+z*D,V=V*I-S*D,z=z*I-E*D,S=B,E=T),C&&Math.abs(C)+Math.abs(p)>359.9&&(C=p=0,y=180-y),g=se(Math.sqrt(S*S+V*V+M*M)),_=se(Math.sqrt(z*z+de*de)),x=jt(E,z),w=Math.abs(x)>2e-4?x*It:0,b=ke?1/(ke<0?-ke:ke):0),r.svg&&(k=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Zo(Jt(e,We)),k&&e.setAttribute("transform",k))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(g*=-1,w+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,w+=w<=0?180:-180)),r.x=((r.xPercent=f&&Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)?0:f)+d,r.y=((r.yPercent=m&&Math.round(e.offsetHeight/2)===Math.round(-m)?-50:0)?0:m)+d,r.z=h+d,r.scaleX=se(g),r.scaleY=se(_),r.rotation=se(p)+c,r.rotationX=se(C)+c,r.rotationY=se(y)+c,r.skewX=w+c,r.skewY=v+c,r.transformPerspective=b+d,(r.zOrigin=parseFloat(u.split(" ")[2])||0)&&(s[gt]=qn(u)),r.xOffset=r.yOffset=0,r.force3D=ze.force3D,r.renderTransform=r.svg?Nh:Uo?ns:$h,r.uncache=0,r},qn=function(e){return(e=e.split(" "))[0]+" "+e[1]},Fi=function(e,t,r){var s=ot(t);return se(parseFloat(t)+parseFloat(Dt(e,"x",r+"px",s)))+s},$h=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ns(e,t)},$t="0deg",yn="0px",Nt=") ",ns=function(e,t){var r=t||this,s=r.xPercent,o=r.yPercent,l=r.x,a=r.y,d=r.z,c=r.rotation,u=r.rotationY,f=r.rotationX,m=r.skewX,h=r.skewY,g=r.scaleX,_=r.scaleY,p=r.transformPerspective,C=r.force3D,y=r.target,w=r.zOrigin,v="",b=C==="auto"&&e&&e!==1||C===!0;if(w&&(f!==$t||u!==$t)){var k=parseFloat(u)*pn,x=Math.sin(k),I=Math.cos(k),D;k=parseFloat(f)*pn,D=Math.cos(k),l=Fi(y,l,x*D*-w),a=Fi(y,a,-Math.sin(k)*-w),d=Fi(y,d,I*D*-w+w)}p!==yn&&(v+="perspective("+p+Nt),(s||o)&&(v+="translate("+s+"%, "+o+"%) "),(b||l!==yn||a!==yn||d!==yn)&&(v+=d!==yn||b?"translate3d("+l+", "+a+", "+d+") ":"translate("+l+", "+a+Nt),c!==$t&&(v+="rotate("+c+Nt),u!==$t&&(v+="rotateY("+u+Nt),f!==$t&&(v+="rotateX("+f+Nt),(m!==$t||h!==$t)&&(v+="skew("+m+", "+h+Nt),(g!==1||_!==1)&&(v+="scale("+g+", "+_+Nt),y.style[We]=v||"translate(0, 0)"},Nh=function(e,t){var r=t||this,s=r.xPercent,o=r.yPercent,l=r.x,a=r.y,d=r.rotation,c=r.skewX,u=r.skewY,f=r.scaleX,m=r.scaleY,h=r.target,g=r.xOrigin,_=r.yOrigin,p=r.xOffset,C=r.yOffset,y=r.forceCSS,w=parseFloat(l),v=parseFloat(a),b,k,x,I,D;d=parseFloat(d),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,d+=u),d||c?(d*=pn,c*=pn,b=Math.cos(d)*f,k=Math.sin(d)*f,x=Math.sin(d-c)*-m,I=Math.cos(d-c)*m,c&&(u*=pn,D=Math.tan(c-u),D=Math.sqrt(1+D*D),x*=D,I*=D,u&&(D=Math.tan(u),D=Math.sqrt(1+D*D),b*=D,k*=D)),b=se(b),k=se(k),x=se(x),I=se(I)):(b=f,I=m,k=x=0),(w&&!~(l+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(w=Dt(h,"x",l,"px"),v=Dt(h,"y",a,"px")),(g||_||p||C)&&(w=se(w+g-(g*b+_*x)+p),v=se(v+_-(g*k+_*I)+C)),(s||o)&&(D=h.getBBox(),w=se(w+s/100*D.width),v=se(v+o/100*D.height)),D="matrix("+b+","+k+","+x+","+I+","+w+","+v+")",h.setAttribute("transform",D),y&&(h.style[We]=D)},Lh=function(e,t,r,s,o,l){var a=360,d=Ce(o),c=parseFloat(o)*(d&&~o.indexOf("rad")?It:1),u=l?c*l:c-s,f=s+u+"deg",m,h;return d&&(m=o.split("_")[1],m==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),m==="cw"&&u<0?u=(u+a*Oo)%a-~~(u/a)*a:m==="ccw"&&u>0&&(u=(u-a*Oo)%a-~~(u/a)*a)),e._pt=h=new Ee(e._pt,t,r,s,u,yh),h.e=f,h.u="deg",e._props.push(r),h},Ph=function(e,t,r){var s=gn.style,o=r._gsap,l="perspective,force3D,transformOrigin,svgOrigin",a,d,c,u,f,m,h,g;s.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",s[We]=t,Ze.body.appendChild(gn),a=Yn(gn,1);for(d in ht)c=o[d],u=a[d],c!==u&&l.indexOf(d)<0&&(h=ot(c),g=ot(u),f=h!==g?Dt(r,d,c,g):parseFloat(c),m=parseFloat(u),e._pt=new Ee(e._pt,o,d,f,m-f,Wo),e._pt.u=g||0,e._props.push(d));Ze.body.removeChild(gn)};Oe("padding,margin,Width,Radius",function(n,e){var t="Top",r="Right",s="Bottom",o="Left",l=(e<3?[t,r,s,o]:[t+o,t+r,s+r,s+o]).map(function(a){return e<2?n+a:"border"+a+n});Un[e>1?"border"+n:n]=function(a,d,c,u,f){var m,h;if(arguments.length<4)return m=l.map(function(g){return bn(a,g,c)}),h=m.join(" "),h.split(m[0]).length===5?m[0]:h;m=(u+"").split(" "),h={},l.forEach(function(g,_){return h[g]=m[_]=m[_]||m[(_-1)/2|0]}),a.init(d,h,f)}});var is={name:"css",register:Mi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,s,o){var l=this._props,a=e.style,d,c,u,f,m,h,g,_,p,C,y,w,v,b,k;Li||Mi();for(g in t)if(g!=="autoRound"&&(c=t[g],!(Ie[g]&&$o(g,t,r,s,e,o))))if(m=typeof c,h=Un[g],m==="function"&&(c=c.call(r,s,e,o),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=On(c)),h)h(this,e,g,c,r)&&(k=1);else if(g.substr(0,2)==="--")this.add(a,"setProperty",getComputedStyle(e).getPropertyValue(g)+"",c+"",s,o,0,0,g);else{if(d=bn(e,g),f=parseFloat(d),C=m==="string"&&c.charAt(1)==="="?+(c.charAt(0)+"1"):0,C&&(c=c.substr(2)),u=parseFloat(c),g in mt&&(g==="autoAlpha"&&(f===1&&bn(e,"visibility")==="hidden"&&u&&(f=0),pt(this,a,"visibility",f?"inherit":"hidden",u?"inherit":"hidden",!u)),g!=="scale"&&g!=="transform"&&(g=mt[g],~g.indexOf(",")&&(g=g.split(",")[0]))),y=g in ht,y){if(w||(v=e._gsap,v.renderTransform||Yn(e),b=t.smoothOrigin!==!1&&v.smooth,w=this._pt=new Ee(this._pt,a,We,0,1,v.renderTransform,v,0,-1),w.dep=1),g==="scale")this._pt=new Ee(this._pt,v,"scaleY",v.scaleY,C?C*u:u-v.scaleY),l.push("scaleY",g),g+="X";else if(g==="transformOrigin"){c=Ih(c),v.svg?Ri(e,c,0,b,0,this):(p=parseFloat(c.split(" ")[2]),p!==v.zOrigin&&pt(this,v,"zOrigin",v.zOrigin,p),pt(this,a,g,qn(d),qn(c)));continue}else if(g==="svgOrigin"){Ri(e,c,1,b,0,this);continue}else if(g in Qo){Lh(this,v,g,f,c,C);continue}else if(g==="smoothOrigin"){pt(this,v,"smooth",v.smooth,c);continue}else if(g==="force3D"){v[g]=c;continue}else if(g==="transform"){Ph(this,c,e);continue}}else g in a||(g=Kt(g)||g);if(y||(u||u===0)&&(f||f===0)&&!wh.test(c)&&g in a)_=(d+"").substr((f+"").length),p=(c+"").substr((u+"").length)||(g in ze.units?ze.units[g]:_),_!==p&&(f=Dt(e,g,d,p)),this._pt=new Ee(this._pt,y?v:a,g,f,C?C*u:u-f,p==="px"&&t.autoRound!==!1&&!y?vh:Wo),this._pt.u=p||0,_!==p&&(this._pt.b=d,this._pt.r=kh);else if(g in a)Bh.call(this,e,g,d,c);else if(g in e)this.add(e,g,e[g],c,s,o);else{oo(g,c);continue}l.push(g)}k&&zo(this)},get:bn,aliases:mt,getSetter:function(e,t,r){return t=mt[t]||t,t in ht&&t!==gt&&(e._gsap.x||bn(e,"x"))?r&&Fo===r?t==="scale"?xh:Sh:(Fo=r||{})&&(t==="scale"?Vh:Eh):e.style&&!fi(e.style[t])?_h:~t.indexOf("-")?Ch:Di(e,t)}};Qe.utils.checkPrefix=Kt,function(n,e,t,r){var s=Oe(n+","+e+","+t,function(o){ht[o]=1});Oe(e,function(o){ze.units[o]="deg",Qo[o]=1}),mt[s[13]]=n+","+e,Oe(r,function(o){var l=o.split(":");mt[l[1]]=s[l[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Oe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){ze.units[n]="px"}),Qe.registerPlugin(is);var Ve=Qe.registerPlugin(is)||Qe;Ve.core.Tween;const Mh={props:{top:{default:0},height:{default:60},background:{default:""},theme:{type:String,default:"global"}},data(){return{thisTop:0,thisHeight:60,styles:{slider:{background:""}}}},watch:{top(){this.moveInit()},height(){this.moveInit()},background(){this.stylesInit()}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.moveInit(),this.stylesInit()},methods:{moveInit(){let n=this.top-this.thisTop;n>0?this.heightExpandToBottom(n):this.heightExpandToTop(n)},stylesInit(){this.styles.slider.background=this.background},heightExpandToBottom(n){let e=Math.abs(n)+this.height;Ve.to(this.$data,{thisHeight:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToBottom})},heightFormatToBottom(){Ve.to(this.$data,{thisTop:this.top,thisHeight:this.height,duration:.2,ease:"power3.out"})},heightExpandToTop(n){let e=Math.abs(n)+this.height;Ve.to(this.$data,{thisTop:this.top,thisHeight:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToTop})},heightFormatToTop(){Ve.to(this.$data,{thisHeight:this.height,duration:.2,ease:"power3.out"})}}},zh={class:"fv-listview-slider"};function Rh(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",zh,[i.createElementVNode("span",{class:"s",style:i.normalizeStyle({"margin-top":`${s.thisTop}px`,height:`${s.thisHeight}px`})},[i.createElementVNode("p",{style:i.normalizeStyle({background:s.styles.slider.background})},null,4)],4)])}const Fh={name:"FvListView",components:{verticalSlider:Z(Mh,[["render",Rh]])},emits:["update:modelValue","item-click","chooseItem","choosen-items","selection-change","item-drag-over","item-drag-leave","item-drop","update:sliderTarget","update:sliderIndex"],props:{...Ef,modelValue:{default:()=>[]},choosen:{default:()=>[]},multiple:{default:!1},rowHeight:{default:""},headerForeground:{default:""},choosenBackground:{default:""},itemPadding:{default:""},itemBorderRadius:{default:3},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},showSlider:{default:!1},sliderTarget:{default:()=>{}},sliderIndex:{default:-1}},computed:{$theme(){return W(this.$props).theme.value}},data(){return{FR:{init:!1,el:()=>this.$el,revealHandlerList:[]},thisValue:[],focus:!1,showSelectedBorder:!1,thisSliderTarget:null,thisSliderIndex:this.sliderIndex,currentTop:0,currentHeight:0,timer:{debounce:null}}},watch:{modelValue(n){this.valueInit(),this.setChoosen()},choosen(n){this.setChoosen()},sliderTarget(n){this.thisSliderTarget=n},thisSliderTarget(n){this.$emit("update:sliderTarget",n)},sliderIndex(n){this.thisSliderIndex=n,this.setSliderTarget(n)},thisSliderIndex(n){this.$emit("update:sliderIndex",n)}},computed:{borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(160, 160, 160, 0.2)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(160, 160, 160, 0.2)"},currentChoosen(){let n=[];for(let e=0;e<this.thisValue.length;e++)this.thisValue[e].choosen&&this.thisValue[e].show&&n.push(this.thisValue[e]);return n},currentChoosenAll(){for(let n=0;n<this.thisValue.length;n++)if(this.thisValue[n].choosen!=!0&&this.thisValue[n].show)return!1;return!0},currentChoosenNum(){let n=0;for(let e=0;e<this.thisValue.length;e++)this.thisValue[e].choosen&&this.thisValue[e].show&&n++;return n},_rowHeight(){return isNaN(this.rowHeight)?this.rowHeight:this.rowHeight+"px"},$theme(){return this.theme=="system"?this.$fvGlobal.state.theme:this.theme}},mounted(){this.valueInit(),this.setChoosen(),this.outSideClickInit(),this.keyDownEventInit(),this.sliderRefreshInit(),window.addEventListener("click",()=>{this.showSelectedBorder=!1}),setTimeout(()=>{this.setSliderTarget()},300)},methods:{valueInit(){let n={name:"",show:!0,choosen:!1,selected:!1,disabled:!1},e=[];for(let t of this.modelValue){let r=JSON.parse(JSON.stringify(n));e.push(Object.assign(r,t))}this.thisValue=e},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.focus=!1)})},keyDownEventInit(){window.addEventListener("keydown",n=>{!this.focus||(n.keyCode===40?this.move(n,1):n.keyCode===38&&this.move(n,-1),n.keyCode===13&&this.enter(n))})},valueTrigger(n){return typeof n=="function"?n():n},handlerClick(n,e){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{if(this.onChoosen(n,e),this.valueTrigger(e.disabled)||this.valueTrigger(e.type)==="header"||this.valueTrigger(e.type)=="divider")return;let t=this.thisValue.indexOf(e);this.$emit("item-click",{item:e,index:t,event:n})},200)},onChoosen(n,e){if(this.valueTrigger(e.disabled)||this.valueTrigger(e.type)==="header"||this.valueTrigger(e.type)=="divider")return 0;if(this.multiple)this.currentChoosen.find(s=>s.key===e.key)!=null?(e.choosen=!1,this.thisValue[this.thisValue.indexOf(e)]=e):(e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e);else{for(let r of this.currentChoosen)r.choosen=!1,this.thisValue[this.thisValue.indexOf(r)]=r;e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e}this.selectionFormat(e),this.scrollFormat(n.target);let t=this.thisValue.indexOf(e);this.$emit("chooseItem",{item:e,index:t,event:n}),this.setSliderTarget(t),this.$emit("choosen-items",this.currentChoosen)},setChoosen(){for(let n of this.choosen){if(this.valueTrigger(n.disabled)||this.valueTrigger(n.type)==="header"||this.valueTrigger(n.type)=="divider")continue;let e=this.thisValue.find(t=>t.key===n.key);if(e){if(!this.multiple)for(let r of this.currentChoosen)r.choosen=!1,this.thisValue[this.thisValue.indexOf(r)]=r;e.choosen=!0;let t=this.thisValue.indexOf(e);this.thisValue[t]=e,this.setSliderTarget(t)}this.selectionFormat(e)}},move(n,e){n.preventDefault(),this.showSelectedBorder=!0;let t=this.thisValue.find(s=>s.selected===!0);if(!t){if(t=this.thisValue.find(o=>!(this.valueTrigger(o.disabled)||this.valueTrigger(o.type)==="header"||this.valueTrigger(o.type)=="divider")),!t)return;let s=this.thisValue.indexOf(t);this.selectionFormat(t),this.scrollFormat(this.$refs[`list_item_${s}`][0]);return}let r=this.thisValue.indexOf(t);if(e==1){for(let s=r+1;s<this.thisValue.length;s++)if(!this.valueTrigger(this.thisValue[s].disabled)&&!(this.valueTrigger(this.thisValue[s].type)==="header"||this.valueTrigger(this.thisValue[s].type)=="divider")){t=this.thisValue[s],r=s;break}}else if(e==-1){for(let s=r-1;s>=0;s--)if(!this.valueTrigger(this.thisValue[s].disabled)&&!(this.valueTrigger(this.thisValue[s].type)==="header"||this.valueTrigger(this.thisValue[s].type)=="divider")){t=this.thisValue[s],r=s;break}}this.selectionFormat(t),this.scrollFormat(this.$refs[`list_item_${r}`][0])},enter(n){let e=this.thisValue.find(r=>r.selected===!0);if(!e)return;if(this.multiple)this.currentChoosen.find(s=>s.key===e.key)!=null?(e.choosen=!1,this.thisValue[this.thisValue.indexOf(e)]=e):(e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e);else{for(let r of this.currentChoosen)r.choosen=!1,this.thisValue[this.thisValue.indexOf(r)]=r;e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e}let t=this.thisValue.indexOf(e);this.$emit("chooseItem",{item:e,index:t,event:n}),this.setSliderTarget(t),this.$emit("choosen-items",this.currentChoosen)},scrollFormat(n){let e=n.getBoundingClientRect(),t=this.$refs.container.getBoundingClientRect();if(e.top<t.top){let r=t.top-e.top;this.$refs.container.scrollTop-=r}if(e.bottom>t.bottom){let r=t.bottom-e.bottom;this.$refs.container.scrollTop-=r}},selectionFormat(n){this.thisValue.forEach((e,t)=>{e.key===n.key&&e.name===n.name?(e.selected=!0,this.thisValue[t]=e,this.$emit("selection-change",e)):(e.selected=!1,this.thisValue[t]=e)})},setSliderTarget(n=null){if(!n){for(let e=0;e<this.thisValue.length;e++)if(this.thisValue[e].choosen){n=e;break}}this.$refs[`list_item_${n}`]&&(this.thisSliderTarget=this.$refs[`list_item_${n}`][0],this.thisSliderIndex=n)},sliderRefreshInit(){this.timer.slider=setInterval(()=>{if(this.thisSliderTarget){let n=this.thisSliderTarget,e=this.$el.getBoundingClientRect().top,t=n.getBoundingClientRect().top;this.currentTop=t-e}else this.currentTop=0;if(this.thisSliderTarget){let n=this.thisSliderTarget;this.currentHeight=n.clientHeight}else this.currentHeight=0},30)},dragOver(n,e){n.preventDefault(),n.stopPropagation(),!this.valueTrigger(e.disabled)&&this.$emit("item-drag-over",{drop:e,root:this.thisValue})},dragLeave(n,e){n.preventDefault(),n.stopPropagation(),this.$emit("item-drag-leave",{drop:e,root:this.thisValue})},dropItem(n,e){n.preventDefault(),n.stopPropagation(),!this.valueTrigger(e.disabled)&&this.$emit("item-drop",{drop:e,root:this.thisValue})},inspectItemAPI(n){let e=this.thisValue.find(s=>this.valueTrigger(s.name)===this.valueTrigger(n.name)&&this.valueTrigger(s.type)===this.valueTrigger(n.type)&&s.key===n.key),t=this.thisValue.indexOf(e);if(t<0)return 0;let r=this.$refs.container.querySelectorAll(".list-view-item");this.onChoosen({target:r[t]},n)}}},Oh={class:"list-view-header"},Ah={class:"list-view-container",ref:"container"},Wh=["onClick","onTouchend","onDragover","onDragleave","onDrop"],Hh={class:"list-view-footer"};function Gh(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("vertical-slider");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ListView",[o.$theme]]),onClick:e[0]||(e[0]=d=>s.focus=!0)},[i.createElementVNode("div",Oh,[i.renderSlot(n.$slots,"header")]),i.createElementVNode("div",Ah,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisValue,(d,c)=>i.withDirectives((i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([{choose:o.valueTrigger(d.choosen),header:o.valueTrigger(d.type)=="header",hr:o.valueTrigger(d.type)=="divider",normal:o.valueTrigger(d.type)=="default"||o.valueTrigger(d.type)==null,disabled:o.valueTrigger(d.disabled),selected:d.selected&&s.showSelectedBorder},"list-view-item"]),key:c,style:i.normalizeStyle({height:o._rowHeight,background:o.valueTrigger(d.choosen)?t.choosenBackground:"",borderRadius:t.itemBorderRadius+"px"}),ref_for:!0,ref:`list_item_${c}`,onClick:u=>o.handlerClick(u,d),onTouchend:u=>o.handlerClick(u,d),onDragover:u=>o.dragOver(n.event,d),onDragleave:u=>o.dragLeave(n.event,d),onDrop:u=>o.dropItem(n.event,d)},[(o.valueTrigger(d.type)=="default"||o.valueTrigger(d.type)==null)&&!o.valueTrigger(d.disabled)?(i.openBlock(),i.createBlock(l,{key:0,revealContainer:s.FR,parent:()=>n.$refs[`list_item_${c}`][0],class:"fv-listview-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,borderGradientSize:35,borderWidth:1,borderRadius:t.itemBorderRadius},null,8,["revealContainer","parent","backgroundColor","borderColor","borderRadius"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"item-content",style:i.normalizeStyle({padding:t.itemPadding})},[i.renderSlot(n.$slots,"listItem",{item:d,index:c,valueTrigger:o.valueTrigger},()=>[i.createElementVNode("p",{style:i.normalizeStyle({color:o.valueTrigger(d.type)=="header"?t.headerForeground:""})},i.toDisplayString(o.valueTrigger(d.name)),5)])],4)],46,Wh)),[[i.vShow,o.valueTrigger(d.show)!==!1]])),128))],512),i.createElementVNode("div",Hh,[i.renderSlot(n.$slots,"footer")]),t.showSlider?(i.openBlock(),i.createBlock(a,{key:0,top:s.currentTop,height:s.currentHeight,background:t.headerForeground},null,8,["top","height","background"])):i.createCommentVNode("",!0)],2)}const rs=j(Z(Fh,[["render",Gh]])),z1="",R1="",F1="",Uh={...q},Yh={name:"FvMenuFlyoutChildrenContainer",emits:["choose-item"],props:{modelValue:{default:()=>[]},options:{default:()=>[]},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},titleForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},theme:{type:String,default:"global"}},data(){return{thisValue:this.modelValue,pivotValue:null}},watch:{modelValue(n){this.thisValue=n},pivotItems(n){n.length>0&&(this.pivotValue=n[n.length-1])}},computed:{pivotItems(){let n=[];for(let e of this.thisValue)n.push({key:e.key,name:e.text,ori:e,width:this.pivotTextWidth(e.text)});return(n.length==0||n[n.length-1].ori.children)&&n.push({key:"$fv-menu-flyout-pivot-placeholder",name:this.pivotPlaceholder,ori:{},width:this.pivotTextWidth(this.pivotPlaceholder)}),n},pivotTextWidth(){return n=>n.length<5?60:n.length>20?200:10*n.length},computedOptions(){if(!this.pivotValue)return this.options;let n=this.pivotItems.findIndex(e=>e.key==this.pivotValue.key);return n>0?this.pivotItems[n-1].ori.children?this.pivotItems[n-1].ori.children:[]:this.options},isChoosen(){return n=>this.pivotValue?n.key===this.pivotValue.key&&n.text===this.pivotValue.name:!1},$theme(){return W(this.$props).theme.value}},mounted(){},methods:{valueTrigger(n){return typeof n=="function"?n():n},Choose(n,e){if(this.valueTrigger(e.disabled)||this.valueTrigger(e.type)=="header"||this.valueTrigger(e.type)=="divider")return 0;let t=n.target;for(;t.getAttribute("class").indexOf("fv-menu-flyout-item")<0;)t=t.parentNode;this.$refs.co_items.scrollTop=t.offsetTop,this.$emit("choose-item",{item:e,index:this.thisValue.findIndex(r=>r.key==this.pivotValue.key&&r.text==this.pivotValue.name)})}}},qh={class:"menu-flyout-list-container"},Xh=["onClick","title"],jh={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function Jh(n,e,t,r,s,o){const l=i.resolveComponent("fv-pivot");return i.openBlock(),i.createBlock(i.Transition,{name:"fv-menu-flyout"},{default:i.withCtx(()=>[i.createElementVNode("div",qh,[i.createVNode(l,{modelValue:s.pivotValue,"onUpdate:modelValue":e[0]||(e[0]=a=>s.pivotValue=a),theme:o.$theme,items:o.pivotItems,fontSize:12,sliderBackground:t.choosenSliderBackground,style:{width:"100%",height:"50px","overflow-x":"auto"}},null,8,["modelValue","theme","items","sliderBackground"]),i.createVNode(i.TransitionGroup,{name:"fv-menu-flyout-item",tag:"div",class:"menu-flyout-item-container",style:i.normalizeStyle({background:t.background,"overflow-y":"auto","overflow-x":"visible"}),ref:"co_items"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.computedOptions,(a,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-menu-flyout-item",{hr:o.valueTrigger(a.type)=="divider",normal:(o.valueTrigger(a.type)=="default"||o.valueTrigger(a.type)==null)&&!o.valueTrigger(a.disabled),disabled:o.valueTrigger(a.disabled),choose:o.isChoosen(a),title:o.valueTrigger(a.type)=="header"}]),style:i.normalizeStyle({background:o.isChoosen(a)?t.choosenBackground:"",color:o.valueTrigger(a.type)==="header"?t.titleForeground:""}),onClick:c=>o.Choose(c,a),key:`options: ${a.key?a.key:d}`,title:o.valueTrigger(a.text)},[i.renderSlot(n.$slots,"default",{item:a,choosenSliderBackground:t.choosenSliderBackground},()=>[i.createElementVNode("i",{class:"before-choosen",style:i.normalizeStyle({background:t.choosenSliderBackground})},null,4),i.createTextVNode(" "+i.toDisplayString(o.valueTrigger(a.type)!=="divider"?o.valueTrigger(a.text):"")+" ",1),i.withDirectives(i.createElementVNode("i",jh,null,512),[[i.vShow,a.children]])])],14,Xh))),128))]),_:3},8,["style"])])]),_:3})}const Kh={name:"FvMenuFlyout",emits:["update:modelValue","choose-item"],components:{menuFlyoutChildrenContainer:Z(Yh,[["render",Jh]])},props:{...Uh,modelValue:{default:()=>[]},options:{default:()=>[]},borderWidth:{default:2},placeholder:{default:"menuFlyout"},borderRadius:{default:"3"},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},inputForeground:{default:""},inputBackground:{default:""},titleForeground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},disabled:{default:!1}},data(){return{thisValue:this.modelValue,status:!1}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)}},computed:{isDisabled(){return this.options.length==0||this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},computedValue(){let n=[];for(let e of this.thisValue)n.push(e.text);return n.join(" / ")},$theme(){return W(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.status=!1)}),window.addEventListener("touchend",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.status=!1)})},valueTrigger(n){return typeof n=="function"?n():n},Choose(n){let{item:e,index:t}=n;t==-1?this.thisValue.push(e):(this.thisValue.splice(t+1),this.thisValue[t]=e),e.children||(this.status=!1),this.$emit("choose-item",this.thisValue)}}},Qh=["placeholder","value"],Zh={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function em(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("menu-flyout-children-container");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-MenuFlyout",[o.$theme,{disabled:o.isDisabled}]]),style:i.normalizeStyle({background:t.background,padding:t.borderWidth,"border-radius":`${t.borderRadius}px`,"z-index":s.status?3:"",overflow:"visible"})},[i.createElementVNode("div",{class:"menu-flyout-container",onClick:e[0]||(e[0]=d=>s.status=o.isDisabled?!1:!s.status),style:i.normalizeStyle({background:t.inputBackground,"border-radius":`${t.borderRadius}px`})},[i.createVNode(l,{parent:()=>n.$el,class:"fv-menu-flyout-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:80,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("input",{class:"input",placeholder:t.placeholder,readonly:"",value:o.computedValue,style:i.normalizeStyle({color:t.inputForeground,"border-radius":`${t.borderRadius}px`})},null,12,Qh),i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon right-icon",[`ms-Icon--${t.dropDownIcon}`]]),style:i.normalizeStyle({color:t.dropDownIconForeground})},null,6)],4),i.withDirectives(i.createVNode(a,{modelValue:s.thisValue,options:t.options,background:t.background,choosenBackground:t.choosenBackground,titleForeground:t.titleForeground,theme:o.$theme,onChooseItem:o.Choose},{item:i.withCtx(d=>[i.renderSlot(n.$slots,"default",{item:d.item,choosenSliderBackground:d.choosenSliderBackground},()=>[i.createElementVNode("i",{class:"before-choosen",style:i.normalizeStyle({background:d.choosenSliderBackground})},null,4),i.createTextVNode(" "+i.toDisplayString(o.valueTrigger(d.item.type)!=="divider"?o.valueTrigger(d.item.text):"")+" ",1),i.withDirectives(i.createElementVNode("i",Zh,null,512),[[i.vShow,d.item.children]])])]),_:3},8,["modelValue","options","background","choosenBackground","titleForeground","theme","onChooseItem"]),[[i.vShow,s.status]])],6)}const os=j(Z(Kh,[["render",em]])),W1="",H1="",G1="",tm={...q},nm={name:"FvMessageBar",emits:["close"],props:{...tm,status:{default:"default"},showControl:{default:!1},showClose:{default:!0},mode:{default:"relative"},destroy:{default:()=>{}},autoClose:{default:3e3}},data(){return{iconList:{default:{icon:"Info2",iconColor:"normal"},warning:{icon:"Info2",iconColor:"warning"},correct:{icon:"CheckMark",iconColor:"correct"},blocked:{icon:"Remove ",iconColor:"error"},error:{icon:"ErrorBadge12",iconColor:"error"}},timer:null}},watch:{autoClose(){this.autoDestroyInit()}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.autoDestroyInit(),this.enter()},methods:{enter(){this.$el.style.top="-100%",Ve.to(this.$el,{top:0,duration:.3})},autoDestroyInit(){this.mode!=="relative"&&this.autoClose>0&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.destroySelf()},this.autoClose))},destroySelf(){this.mode=="relative"?this.$emit("close"):Ve.to(this.$el,{opacity:0,duration:.3,onComplete:()=>{this.$emit("close"),this.destroy()}})}}},im={class:"msg-bar-block"},rm={class:"msg-content-block"},om={class:"control-block"};function sm(n,e,t,r,s,o){const l=i.resolveComponent("fv-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-MessageBar",[o.$theme,s.iconList[t.status].iconColor,{relative:t.mode=="relative"}]])},[i.createElementVNode("span",im,[i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${s.iconList[t.status].icon}`,s.iconList[t.status].iconColor]])},null,2),i.createElementVNode("span",rm,[i.renderSlot(n.$slots,"msg",{theme:o.$theme},()=>[i.createTextVNode(" Message Bar. ")])]),i.withDirectives(i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel close-block",onClick:e[0]||(e[0]=(...a)=>o.destroySelf&&o.destroySelf(...a))},null,512),[[i.vShow,t.showClose]])]),i.withDirectives(i.createElementVNode("span",om,[i.renderSlot(n.$slots,"control",{theme:o.$theme,cancel:o.destroySelf},()=>[i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode("Yes")]),_:1})])],512),[[i.vShow,t.showControl]])],2)}const ss=Z(nm,[["render",sm]]);function ls(n,e,t){let r=o=>{const l=i.h(ss,{status:e.status,showControl:e.showControl,showClose:e.autoClose,mode:"fixed",autoClose:e.autoClose,destroy:()=>{i.render(null,o),e.once||o.remove()},theme:e.theme},{msg:n,control:e.control});return l.appContext=t,l},s=document.createElement("div");if(e.once){const o="__fv-global-message-bar__";s=document.getElementById(o),s||(s=document.createElement("div"),s.id=o,document.body.appendChild(s))}else document.body.appendChild(s);i.render(r(s),s)}function as(n,e){var r;if(n.fvSwiftWarning)return 0;let t={color:"rgba(200, 50, 59, 1)",replaceTitle:"SwiftWarning"};t=Object.assign(t,e),t.oriContent=n.innerHTML,t.oriClass=n.getAttribute("class"),t.oriStyle=n.getAttribute("style"),t.oriClass==null&&(t.oriClass=""),t.oriStyle==null&&(t.oriStyle=""),n.fvSwiftWarning=!0,n.innerHTML=(r=t.replaceTitle)!=null?r:"SwiftWarning",n.setAttribute("class",t.oriClass+" fv-swift-warning"),n.setAttribute("style",t.oriStyle+` color: ${t.color};`),setTimeout(()=>{var s,o,l;n.innerHTML=(s=t.oriContent)!=null?s:"",n.setAttribute("class",(o=t.oriClass)!=null?o:""),n.setAttribute("style",(l=t.oriStyle)!=null?l:""),n.fvSwiftWarning=!1},3e3)}const ds={install(n){n.config.globalProperties.$barWarning=(e,t)=>{ls(e,{...t,status:"warning"},n._context)},n.config.globalProperties.$swiftWarning=as}},cs=Ji(ss,[ds]),U1="",Y1="",q1="",lm={...q},am={name:"FvNavigationPanel",emits:["back","setting-click","expand-change","expand-click","update:expand"],setup(){const n=Wt();return n.initRevealInstances(),{uR:n}},props:{...lm,title:{default:"NavigationPanel"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:50},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},background:{default:""}},data(){return{FR:null,thisExpand:this.expand,thisExpandBackup:this.expand,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{expand(n){this.thisExpand=n},thisExpand(n){this.$emit("update:expand",n),this.$emit("expand-change",n)},screenWidth(n){this.expandDisplay<this.screenWidth?this.isFlyout?this.thisExpand=!1:this.thisExpand=this.thisExpandBackup:this.thisExpand=!1}},computed:{panelWidth(){return this.isFlyout?`${this.compactWidth}px`:this.thisExpand?this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`:`${this.compactWidth}px`},navWidth(){let n=this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`;return this.thisExpand?n:`${this.compactWidth}px`},isFlyout(){return this.expandMode=="flyout"||this.flyoutDisplay>this.screenWidth},isMobile(){return this.mobileDisplay>this.screenWidth},borderLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},$theme(){return W(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.outSideClickInit()},methods:{FRInit(){this.FR=this.uR.revealDirectJs.apply(this.$el,{selector:`.fv-${this.$theme}-NavigationPanel .panel-container .fv-nav-default-item`,borderGradientSize:60,borderLightColor:this.borderLightColor,backgroundLightColor:this.backgroundLightColor})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.isFlyout||this.isMobile)&&(this.thisExpand=!1)})},expandClick(){this.thisExpandBackup=!this.thisExpand,this.thisExpand=!this.thisExpand,this.$emit("expand-click",this.thisExpand)}},beforeUnmount(){clearInterval(this.timer.widthTimer),this.uR.revealDirectJs.destroy(this.FR)}},dm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),cm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),um=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),fm={class:"name title"},hm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),mm={class:"search"},gm={class:"template"},pm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),bm={class:"name"};function wm(n,e,t,r,s,o){const l=i.resolveComponent("fv-animated-icon"),a=i.resolveComponent("fv-search-box");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-NavigationPanel",[o.$theme,{compact:!s.thisExpand},{flyout:o.isFlyout},{mobile:o.isMobile}]]),style:i.normalizeStyle({position:this.screenWidth<=this.fullSizeDisplay&&s.thisExpand?"static":"",width:o.panelWidth})},[i.createElementVNode("div",{class:"panel-container-mobile",style:i.normalizeStyle({background:s.thisExpand?"":t.background})},[i.withDirectives(i.createVNode(l,{modelValue:"backScale",class:"fv-nav-default-item",hideContent:!0,style:i.normalizeStyle({width:`${t.compactWidth}px`}),onClick:e[0]||(e[0]=d=>n.$emit("back",d))},{default:i.withCtx(()=>[dm]),_:1},8,["style"]),[[i.vShow,t.showBack]]),i.withDirectives(i.createVNode(l,{modelValue:"scaleXDown",class:"fv-nav-default-item",hideContent:!0,style:i.normalizeStyle({width:`${t.compactWidth}px`}),onClick:o.expandClick},{default:i.withCtx(()=>[cm]),_:1},8,["style","onClick"]),[[i.vShow,t.showNav]])],4),i.createElementVNode("div",{class:"panel-container",style:i.normalizeStyle({width:o.navWidth,background:t.background})},[i.withDirectives(i.createVNode(l,{modelValue:"backScale",class:"fv-nav-default-item control",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e[1]||(e[1]=d=>n.$emit("back",d))},{content:i.withCtx(()=>[i.createElementVNode("p",fm,i.toDisplayString(t.title),1)]),default:i.withCtx(()=>[um]),_:1},8,["hideContent"]),[[i.vShow,t.showBack]]),i.withDirectives(i.createVNode(l,{modelValue:"scaleXDown",class:"fv-nav-default-item control",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o.expandClick},{content:i.withCtx(()=>[i.withDirectives(i.createElementVNode("p",{class:"name title"},i.toDisplayString(t.title),513),[[i.vShow,!t.showBack]])]),default:i.withCtx(()=>[hm]),_:1},8,["hideContent","onClick"]),[[i.vShow,t.showNav]]),i.withDirectives(i.createElementVNode("span",mm,[i.renderSlot(n.$slots,"searchBlock",{},()=>[i.createVNode(a,{icon:"Search",placeholder:"Search",class:"nav-search",theme:n.theme,revealBorder:!0,borderWidth:"2",borderRadius:"6",isBoxShadow:!0,style:{width:"95%"}},null,8,["theme"])])],512),[[i.vShow,t.showSearch&&s.thisExpand]]),i.createElementVNode("div",gm,[i.renderSlot(n.$slots,"panel")]),i.withDirectives(i.createVNode(l,{modelValue:"bounceRotate",ref:"setting",class:"fv-nav-default-item",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e[2]||(e[2]=d=>n.$emit("setting-click",{event:d}))},{content:i.withCtx(()=>[i.createElementVNode("p",bm,i.toDisplayString(t.settingTitle),1)]),default:i.withCtx(()=>[pm]),_:1},8,["hideContent"]),[[i.vShow,t.showSetting]])],4)],6)}const us=j(Z(am,[["render",wm]])),j1="",J1="",K1="",ym={name:"FvNavigationView",props:{...{...q},emits:["update:modelValue","expand-change","setting-click","item-click","back","expand-click","update:expand"],modelValue:{default:()=>({})},options:{default:()=>[]},title:{default:"NavigationView"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:46},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},searchPlaceholder:{default:"Search"},foreground:{default:""},background:{default:""}},data(){return{thisValue:{},thisExpand:this.expand,currentTarget:{},currentTop:0,currentHeight:0,timer:{slider:{}}}},watch:{modelValue(n,e){this.valueInit()},thisValue(n,e){n.name===e.name&&n.key===e.key||(this.$nextTick(()=>{this.onChooseSearch(n)}),this.$emit("update:modelValue",n))},expand(n){this.thisExpand=n},thisExpand(n){this.$emit("update:expand",n)}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.valueInit()},methods:{valueInit(){if(this.modelValue.type==="setting")return this.thisValue=this.modelValue,0;let n=this.options.find(e=>e.name===this.modelValue.name&&e.key===this.modelValue.key);n!==void 0?this.thisValue=n:this.thisValue=this.options.find(e=>e.type!=="header"&&e.type!=="divider")},itemClick(n){this.thisValue=n.item},settingClick(n){this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},this.$emit("setting-click",n)},expandChange(n){this.$emit("expand-change",n)},onChooseSearch(n){if(n.type==="setting")return this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},0;let e=this.options.find(r=>r.name===n.name&&r.key===n.key),t=this.options.indexOf(e);if(t<0)return 0;this.currentTarget=this.$refs.listView.$refs[`list_item_${t}`][0],this.thisValue=e}},beforeUnmount(){clearInterval(this.timer)}},km=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),vm={class:"name"};function _m(n,e,t,r,s,o){const l=i.resolveComponent("fv-search-box"),a=i.resolveComponent("fv-animated-icon"),d=i.resolveComponent("fv-list-view"),c=i.resolveComponent("fv-NavigationPanel");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-NavigationView",[o.$theme,{compact:!s.thisExpand}]])},[i.createVNode(c,{title:t.title,expand:s.thisExpand,"onUpdate:expand":e[3]||(e[3]=u=>s.thisExpand=u),expandMode:t.expandMode,expandWidth:t.expandWidth,expandDisplay:t.expandDisplay,compactWidth:t.compactWidth,flyoutDisplay:t.flyoutDisplay,fullSizeDisplay:t.fullSizeDisplay,mobileDisplay:t.mobileDisplay,showBack:t.showBack,showNav:t.showNav,showSearch:t.showSearch,settingTitle:t.settingTitle,showSetting:!1,background:t.background,theme:n.theme,ref:"panel",onBack:e[4]||(e[4]=u=>n.$emit("back",u)),onExpandClick:e[5]||(e[5]=u=>n.$emit("expand-click",u)),onExpandChange:o.expandChange,onSettingClick:o.settingClick},{searchBlock:i.withCtx(()=>[i.createVNode(l,{options:t.options,icon:"Search",placeholder:t.searchPlaceholder,theme:n.theme,class:"nav-search",revealBorder:!0,borderRadius:"3",isBoxShadow:!0,style:{width:"95%"},onChooseResult:o.onChooseSearch},null,8,["options","placeholder","theme","onChooseResult"])]),panel:i.withCtx(()=>[i.createVNode(d,{modelValue:t.options,class:"navigation-list",ref:"listView",theme:n.theme,headerForeground:t.foreground,choosenBackground:"transparent",sliderTarget:s.currentTarget,"onUpdate:sliderTarget":e[1]||(e[1]=u=>s.currentTarget=u),showSlider:!0,onChooseItem:o.itemClick,onItemClick:e[2]||(e[2]=u=>n.$emit("item-click",u.item))},{listItem:i.withCtx(u=>[i.renderSlot(n.$slots,"listItem",{item:u.item,index:u.index,valueTrigger:u.valueTrigger},()=>[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon",[`ms-Icon--${u.valueTrigger(u.item.icon)}`]])},null,2),[[i.vShow,u.valueTrigger(u.item.icon)!==void 0]]),i.createElementVNode("p",{class:"name",style:i.normalizeStyle({color:u.valueTrigger(u.item.type)=="header"?t.foreground:""})},i.toDisplayString(u.valueTrigger(u.item.name)),5)])]),footer:i.withCtx(()=>[i.withDirectives(i.createVNode(a,{ref:"setting",modelValue:"bounceRotate",class:"fv-nav-default-item",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e[0]||(e[0]=u=>o.settingClick({event:u}))},{content:i.withCtx(()=>[i.createElementVNode("p",vm,i.toDisplayString(t.settingTitle),1)]),default:i.withCtx(()=>[km]),_:1},8,["hideContent"]),[[i.vShow,t.showSetting]])]),_:3},8,["modelValue","theme","headerForeground","sliderTarget","onChooseItem"])]),_:3},8,["title","expand","expandMode","expandWidth","expandDisplay","compactWidth","flyoutDisplay","fullSizeDisplay","mobileDisplay","showBack","showNav","showSearch","settingTitle","background","theme","onExpandChange","onSettingClick"])],2)}const fs=j(Z(ym,[["render",_m]])),ek="",tk="",nk="",Cm={name:"FvPagination",props:{...{...q},emits:["update:modelValue","next-click","prev-click","page-click"],modelValue:{default:1},foreground:{default:"rgba(0, 90, 158, 1)"},background:{default:"transparent"},total:{default:10},maxVisual:{default:7},small:{default:!1},shadow:{default:!1},disabled:{default:!1}},data(){return{thisValue:this.modelValue,itemList:[]}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n),this.pageItem()},total(n){n<=0?this.itemList=[]:this.pageItem()}},computed:{isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.total<=0?this.itemList=[]:this.pageItem()},methods:{pageItem(){let n=[],e=(this.thisValue-2)*2+3<=this.maxVisual,t=(this.total-this.thisValue-1)*2+3<=this.maxVisual;this.total<=this.maxVisual&&(e=t=!0);let r=this.thisValue==1||this.thisValue==this.total?this.maxVisual-2:this.maxVisual-3;for(let o=0;o<this.total;o++)n.push({num:o+1,index:o,show:!1});n[0].show=!0,n[n.length-1].show=!0;let s=n.find(o=>o.num===this.thisValue).index;n[s].show=!0;for(let o=1;s+o<n.length||s-o>0;o++)s-o>0&&r>0&&(n[s-o].show=!0,r--),s+o<n.length-1&&r>0&&(n[s+o].show=!0,r--);e||n.splice(1,0,{num:-1,index:-1,show:!0}),t||n.splice(this.total-1,0,{num:-2,index:-2,show:!0}),this.itemList=n},next(){this.thisValue++,this.$emit("next-click",this.thisValue)},prev(){this.thisValue--,this.$emit("prev-click",this.thisValue)},handleClick(n){n.index>=0?this.thisValue=n.num:n.index==-1?this.thisValue=this.thisValue-this.maxVisual+2>=1?this.thisValue-this.maxVisual+2:1:n.index==-2&&(this.thisValue=this.thisValue+this.maxVisual-2<=this.total?this.thisValue+this.maxVisual-2:this.total),this.$emit("page-click",this.thisValue)}}},Sm={class:"fv-pagination-container"},xm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronLeft"},null,-1),Vm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1);function Em(n,e,t,r,s,o){const l=i.resolveComponent("fv-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Pagination",[o.$theme]])},[i.createElementVNode("div",Sm,[i.createVNode(l,{disabled:s.thisValue==1||o.isDisabled,class:i.normalizeClass([{small:t.small},"page-btn"]),theme:n.theme,background:t.background,"is-box-shadow":t.shadow,borderRadius:"3",onClick:o.prev},{default:i.withCtx(()=>[xm]),_:1},8,["disabled","class","theme","background","is-box-shadow","onClick"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.itemList,(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.show?(i.openBlock(),i.createBlock(l,{key:d,class:i.normalizeClass([{small:t.small},"page-btn"]),theme:n.theme,disabled:o.isDisabled,background:t.background,foreground:s.thisValue==a.num?t.foreground:"","is-box-shadow":t.shadow,borderRadius:"3",fontWeight:"bold",onClick:c=>o.handleClick(a)},{default:i.withCtx(()=>[i.createElementVNode("p",{class:i.normalizeClass([{"ms-Icon ms-Icon--More":a.num<0}])},i.toDisplayString(a.num>=0?a.num:""),3)]),_:2},1032,["class","theme","disabled","background","foreground","is-box-shadow","onClick"])):i.createCommentVNode("",!0)],64))),256)),i.createVNode(l,{disabled:s.thisValue==t.total||o.isDisabled,class:i.normalizeClass([{small:t.small,shadow:t.shadow},"page-btn"]),theme:n.theme,background:t.background,borderRadius:"3",onClick:o.next},{default:i.withCtx(()=>[Vm]),_:1},8,["disabled","class","theme","background","onClick"])])],2)}const hs=j(Z(Cm,[["render",Em]])),ok="",sk="",lk="",Tm={...q},Bm={name:"FvPanel",emits:["update:modelValue"],props:{...Tm,modelValue:{default:!0},title:{default:"Sample Panel"},titleSize:{default:20},titleWeight:{default:600},titleColor:{default:""},width:{default:"340"},height:{default:"100%"},background:{default:""},controlPadding:{default:"15px"},contentPadding:{default:"0px"},isNearSide:{default:!1},isBottomSide:{default:!1},isTopSide:{default:!1},isCentralSide:{default:!1},isLightDismiss:{default:!1},showTitleBar:{default:!0},isFooter:{default:!1},isAcrylic:{default:!1},teleport:{default:!1}},data(){return{thisValue:this.modelValue,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)}},computed:{finalWidth(){return isNaN(this.width)?this.width:this.width>this.screenWidth?`${this.screenWidth}px`:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:this.height>this.screenHeight?`${this.screenHeight}px`:`${this.height}px`},sideName(){return this.isCentralSide?"central":this.isNearSide?"near":this.isTopSide?"top":this.isBottomSide?"bottom":"default"},transitionInName(){return this.sideName==="central"?this.thisValue?"fv-panel-scale-up-to-up":"fv-panel-scale-down-to-down":this.sideName==="near"?this.thisValue?"move-left-to-right":"move-right-to-left":this.sideName==="top"?this.thisValue?"move-top-to-bottom":"move-bottom-to-top":this.sideName==="bottom"?this.thisValue?"move-bottom-to-top":"move-top-to-bottom":this.thisValue?"move-right-to-left":"move-left-to-right"},$theme(){return W(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.teleport&&this.globalAppendInit()},methods:{globalAppendInit(){this.$nextTick(()=>{const n=document.querySelector("body");n.append?n.append(this.$el):n.appendChild(this.$el)})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)}},beforeUnmount(){clearInterval(this.timer.widthTimer);try{document.querySelector("body").removeChild(this.$el)}catch(n){console.warn("Remove Failed",n)}}};function Im(n,e,t,r,s,o){const l=i.resolveComponent("fv-button");return i.openBlock(),i.createBlock(i.Transition,{name:"fv-panel-show"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["fv-Panel",[o.$theme]])},[i.createElementVNode("div",{class:"fv-panel-back-board",onClick:e[0]||(e[0]=a=>t.isLightDismiss?s.thisValue=!1:0)}),i.createVNode(i.Transition,{name:o.transitionInName},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["fv-panel-container",[`${o.sideName}-side`,{"acrylic-style":t.isAcrylic}]]),style:i.normalizeStyle({width:o.finalWidth,height:o.finalHeight,background:t.background})},[i.withDirectives(i.createElementVNode("div",{class:"fv-panel-control-block",style:i.normalizeStyle({padding:t.controlPadding})},[i.renderSlot(n.$slots,"header",{},()=>[i.createElementVNode("p",{class:"panel-title",style:i.normalizeStyle({"font-size":`${t.titleSize}px`,"font-weight":t.titleWeight,color:t.titleColor})},i.toDisplayString(t.title),5),i.createElementVNode("i",{class:"control-btn ms-Icon ms-Icon--Cancel",onClick:e[1]||(e[1]=a=>s.thisValue=!s.thisValue)})])],4),[[i.vShow,t.showTitleBar]]),i.createElementVNode("div",{class:"fv-panel-main-container",style:i.normalizeStyle({padding:t.contentPadding})},[i.renderSlot(n.$slots,"container",{},()=>[i.createTextVNode(" Content Here ")])],4),i.withDirectives(i.createElementVNode("div",{class:"fv-panel-footer",style:i.normalizeStyle({padding:t.controlPadding})},[i.renderSlot(n.$slots,"footer",{},()=>[i.createVNode(l,{theme:"dark",background:"rgba(0, 90, 158, 1)"},{default:i.withCtx(()=>[i.createTextVNode("OK")]),_:1}),i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode("Cancel")]),_:1})])],4),[[i.vShow,t.isFooter]])],6),[[i.vShow,s.thisValue]])]),_:3},8,["name"])],2),[[i.vShow,s.thisValue]])]),_:3})}const ms=j(Z(Bm,[["render",Im]])),dk="",ck="",uk="",Dm={name:"FvPersona",props:{...{...q},src:{default:""},name:{default:""},size:{default:40},status:{default:""},icon:{default:""},iconColor:{default:""},background:{default:""},showInfo:{default:!1}},data(){return{statusList:{online:{icon:"FullCircleMask",color:"rgba(107, 183, 0, 1)"},offline:{icon:"LocationFill",color:"rgba(50, 49, 48, 1)"},away:{icon:"SkypeCircleClock",color:"rgba(255, 170, 68, 1)"},busy:{icon:"LocationFill",color:"rgba(196, 49, 72, 1)"},ok:{icon:"SkypeCircleCheck",color:"rgba(107, 183, 0, 1)"},dnd:{icon:"SkypeCircleMinus",color:"rgba(197, 15, 31, 1)"},blocked:{icon:"Blocked",color:"rgba(196, 49, 32, 1)"}},colorList:["#d29200","#ffb900","#ffb900","#d83b01","#ea4300","#ff8c00","#a4262c","#d13438","#5c005c","#b4009e","#e3008c","#32145a","#5c2d91","#b4a0ff","#002050","#00188f","#0078d4","#00bcf2","#004b50","#008272","#00B294","#004b1c","#107c10","#bad80a"]}},computed:{nameCard(){return this.name[0]},nameCardBackground(){let n=0;return this.name!==""&&(n=this.name[0].charCodeAt()%this.colorList.length),this.colorList[n]},currentIcon(){return this.icon!==""?this.icon:this.status===""?"":this.statusList[this.status].icon},currentIconColor(){return this.iconColor!=""?this.iconColor:this.status===""?this.statusList.online.color:this.statusList[this.status].color},iconFontSize(){return this.size/4.8+6},titleFontSize(){return this.size/16+12.5},secondaryFontSize(){return this.size/48+11.5},showStatus(){return this.status!==""||this.icon!==""},$theme(){return W(this.$props).theme.value}}},$m={class:"persona-content-block"};function Nm(n,e,t,r,s,o){const l=i.resolveComponent("fv-img");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Persona",[o.$theme]])},[i.createElementVNode("div",{class:"persona-avatar",style:i.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[i.createElementVNode("div",{class:"persona-bg",style:i.normalizeStyle({background:t.background?t.background:o.nameCardBackground,"font-size":`${t.size/2.3}px`})},i.toDisplayString(o.nameCard),5),t.src!==""?(i.openBlock(),i.createBlock(l,{key:0,src:t.src,style:{width:"100%",height:"100%","border-radius":"50%"}},null,8,["src"])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon status-icon",[`ms-Icon--${o.currentIcon}`]]),style:i.normalizeStyle({"font-size":`${o.iconFontSize}px`,color:o.currentIconColor})},null,6),[[i.vShow,o.showStatus]])],4),i.withDirectives(i.createElementVNode("div",$m,[i.createElementVNode("span",{class:"persona-title",style:i.normalizeStyle({"font-size":`${o.titleFontSize}px`})},[i.renderSlot(n.$slots,"name",{},()=>[i.createElementVNode("p",null,i.toDisplayString(t.name),1)])],4),i.createElementVNode("span",{class:"persona-secondary",style:i.normalizeStyle({"font-size":`${o.secondaryFontSize}px`})},[i.renderSlot(n.$slots,"secondary")],4)],512),[[i.vShow,t.showInfo]])],2)}const gs=j(Z(Dm,[["render",Nm]])),mk="",gk="",pk="",Lm={...q},Pm={emits:["update:modelValue"],props:{els:{default:()=>null},sliderBoxshadow:{default:!1},background:{default:""},theme:{type:String,default:"global"}},data(){return{domLeft:0,domWidth:60,styles:{slider:{background:""}}}},watch:{left(n){this.moveInit()},width(n){this.moveInit()}},computed:{left(){let{els:n,index:e}=this.els(),t=0;for(let r=0;r<e;r++){let s=n[r];if(!s.el||!s.show)t+=0;else{let o=s.el.clientWidth;t+=o}}return t},width(){let{els:n,index:e}=this.els(),t=n[e];return t.el?t.el.clientWidth:60},$theme(){return W(this.$props).theme.value}},mounted(){this.moveInit()},methods:{moveInit(){let n=this.left-this.domLeft;n>0?this.widthExpandToRight(n):this.widthExpandToLeft(n)},widthExpandToRight(n){let e=Math.abs(n)+this.width;Ve.to(this.$data,{domWidth:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToRight})},widthFormatToRight(){Ve.to(this.$data,{domLeft:this.left,domWidth:this.width,duration:.2,ease:"power3.out"})},widthExpandToLeft(n){let e=Math.abs(n)+this.width;Ve.to(this.$data,{domLeft:this.left,domWidth:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToLeft})},widthFormatToLeft(){Ve.to(this.$data,{domWidth:this.width,duration:.2,ease:"power3.out"})}}},Mm={class:"slider"};function zm(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",Mm,[i.createElementVNode("span",{class:i.normalizeClass(["fv-pivot-s",[{"is-boxshadow":t.sliderBoxshadow}]]),style:i.normalizeStyle({"margin-left":`${s.domLeft}px`,width:`${s.domWidth}px`})},[i.createElementVNode("p",{style:i.normalizeStyle({background:t.background})},null,4)],6)])}const Rm={name:"FvPivot",components:{slider:Z(Pm,[["render",zm]])},emits:["update:modelValue","change"],props:{...Lm,modelValue:{default:()=>null},items:{default:()=>[{name:"Pivot",width:80}]},tab:{default:!1},fontSize:{default:""},foreground:{default:""},sliderBackground:{default:""},sliderBoxshadow:{default:!1},background:{default:""}},data(){return{thisItems:[],thisValue:null,styles:{slider:{background:""},container:{color:""}}}},watch:{modelValue(n){this.findCurrentValue()},items(n){this.itemsInit()},thisValue(n){this.$emit("update:modelValue",n),this.$emit("change",n)},foreground(n){this.stylesInit()},sliderBackground(n){this.stylesInit()}},computed:{itemWidth(){return n=>n.width?isNaN(n.width)?this.valueTrigger(n.width):`${n.width}px`:0},currentEls(){return()=>{let n=-1;this.thisValue?this.thisValue.key?n=this.thisItems.findIndex(t=>t.key===this.thisValue.key):n=this.thisItems.findIndex(t=>this.valueTrigger(t.name)===this.valueTrigger(this.thisValue.name)):n=0,n<0&&(n=0);let e=[];for(let t=0;t<this.thisItems.length;t++)e.push({el:this.$refs[`item_${t}`]?this.$refs[`item_${t}`][0]:null,show:this.valueTrigger(this.thisItems[t].show)});return{index:n,els:e}}},$theme(){return W(this.$props).theme.value}},updated(){(!this.thisValue||!this.valueTrigger(this.thisValue.show))&&(this.thisValue=this.thisItems.find(n=>this.valueTrigger(n.show)&&!this.valueTrigger(n.disabled)))},mounted(){this.stylesInit(),this.itemsInit()},methods:{itemsInit(){let n={name:"Pivot",width:60,show:!0,disabled:!1},e=[];for(let t of this.items){let r=JSON.parse(JSON.stringify(n));Object.assign(r,t),e.push(r)}this.thisItems=e,this.findCurrentValue()},findCurrentValue(){if(!this.modelValue){let n=this.thisItems.find(e=>this.valueTrigger(e.show)&&!this.valueTrigger(e.disabled));n?this.thisValue=n:(this.thisValue={},console.warn("No visible item in ItemList."));return}if(this.modelValue.key){let n=this.thisItems.find(e=>e.key===this.modelValue.key);n&&(this.thisValue=n);return}else if(this.valueTrigger(this.modelValue.name)){let n=this.thisItems.find(e=>this.valueTrigger(e.name)===this.valueTrigger(this.modelValue.name));n&&(this.thisValue=n)}},stylesInit(){this.styles.slider.background=this.sliderBackground,this.styles.container.color=this.foreground},itemClick(n){if(n.disabled)return 0;this.thisValue=n},eqal(n){return this.thisValue?this.thisValue.key?this.thisValue.key===n.key:this.valueTrigger(this.thisValue.name)?this.valueTrigger(this.thisValue.name)===this.valueTrigger(n.name):!1:!1},valueTrigger(n){return typeof n=="function"?n():n}}},Fm={class:"pivot-container"},Om=["onClick"];function Am(n,e,t,r,s,o){const l=i.resolveComponent("slider");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Pivot",[o.$theme,t.tab?"tab":""]]),style:i.normalizeStyle({background:t.background})},[i.createElementVNode("div",Fm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisItems,(a,d)=>i.withDirectives((i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["pivot-item",{choose:o.eqal(a),disabled:o.valueTrigger(a.disabled)}]),key:d,ref_for:!0,ref:`item_${d}`,style:i.normalizeStyle({width:o.itemWidth(a)}),onClick:c=>o.itemClick(a)},[i.renderSlot(n.$slots,"container",{item:a,index:d},()=>[i.createElementVNode("p",{style:i.normalizeStyle({fontSize:`${t.fontSize}px`,color:s.styles.container.color})},i.toDisplayString(o.valueTrigger(a.name)),5)])],14,Om)),[[i.vShow,o.valueTrigger(a.show)]])),128))]),s.thisItems.length>0?(i.openBlock(),i.createBlock(l,{key:0,els:o.currentEls,sliderBoxshadow:t.sliderBoxshadow,background:s.styles.slider.background},null,8,["els","sliderBoxshadow","background"])):i.createCommentVNode("",!0)],6)}const ps=j(Z(Rm,[["render",Am]])),yk="",kk="",vk="",Wm={...q},Hm={name:"FvProgressBar",emits:["update:modelValue","progress-change","progress-finished"],props:{...Wm,modelValue:{default:0},foreground:{default:""},background:{default:""},loading:{default:!1},disabled:{default:!1}},data(){return{percent:this.modelValue}},watch:{modelValue(n){this.percent=n},percent(n){this.$emit("update:modelValue",n),this.$emit("progress-change",n),n>=100&&this.$emit("progress-finished",n)}},computed:{$theme(){return W(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}}};function Gm(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ProgressBar",[o.$theme,t.loading.toString()!="true"?"normal":"",o.isDisabled?"disabled":""]]),style:i.normalizeStyle({background:t.background})},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,l=>i.withDirectives(i.createElementVNode("p",{class:"unit",style:i.normalizeStyle({background:t.foreground}),key:l},null,4),[[i.vShow,t.loading.toString()=="true"]])),64)),i.withDirectives(i.createElementVNode("i",{style:i.normalizeStyle({width:(s.percent<=100?s.percent:100)+"%",background:t.foreground})},null,4),[[i.vShow,t.loading.toString()!="true"]])],6)}const bs=j(Z(Hm,[["render",Gm]])),Ck="",Sk="",xk="",Um={...q},Ym={props:{size:{default:"xs"},color:{default:""}},data(){return{styles:{p:{background:""}}}},watch:{color(n){this.stylesInit()}},computed:{$theme(){return useTheme(this.$props).theme.value}},mounted(){this.stylesInit()},methods:{stylesInit(){this.styles.p.background=this.color}}};function qm(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-progressRing-legacy",t.size])},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,l=>i.createElementVNode("p",{style:i.normalizeStyle(s.styles.p),key:l},null,4)),64))],2)}const Xm={name:"FvProgressRing",emits:["update:modelValue"],components:{legacy:Z(Ym,[["render",qm]])},props:{...Um,modelValue:{default:0},size:{default:"xs"},r:{default:40},loading:{default:!1},color:{default:"rgba(0, 90, 158, 1)"},background:{default:"rgba(204, 204, 204, 1)"},borderWidth:{default:8},legacy:{default:!1}},data(){return{thisValue:this.modelValue,valueCache:this.modelValue,Loading:{ratio:5,rotate:-90}}},watch:{modelValue(n){this.thisValue=n},async thisValue(n){this.$emit("update:modelValue",n),await this.syncValue()}},computed:{l(){return(2*Math.PI*(this.r-this.borderWidth)).toFixed(2)},$theme(){return W(this.$props).theme.value}},mounted(){this.loadingInit()},methods:{loadingInit(){Ve.to(this.$data.Loading,{ratio:70,duration:.8,repeat:-1,yoyo:!0,ease:"linear"}),Ve.to(this.$data.Loading,{rotate:270,duration:.8,repeat:-1,ease:"linear"})},async syncValue(){await new Promise(n=>{Ve.to(this.$data,{valueCache:this.thisValue,duration:.8,ease:"power3.out",onComplete:()=>{n(0)}})})}}},jm=["width","height"],Jm=["r","cy","cx","stroke-width","stroke"],Km=["r","cy","cx","stroke-width","stroke","stroke-dashoffset","stroke-dasharray"];function Qm(n,e,t,r,s,o){const l=i.resolveComponent("legacy");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ProgressRing",[o.$theme]]),style:i.normalizeStyle({width:`${t.r*2}px`,height:`${t.r*2}px`})},[i.withDirectives((i.openBlock(),i.createElementBlock("svg",{width:`${t.r*2}px`,height:`${t.r*2}px`,class:"svg"},[i.createElementVNode("circle",{r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.background,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Jm),i.createElementVNode("circle",{class:"progress-rotate",r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.color,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none","stroke-dashoffset":`${t.loading?o.l-s.Loading.ratio/100*o.l:o.l-s.valueCache/100*o.l}px`,"stroke-dasharray":`${o.l}px`,style:i.normalizeStyle({transform:`rotate(${t.loading?s.Loading.rotate:-90}deg)`})},null,12,Km)],8,jm)),[[i.vShow,!t.legacy]]),i.withDirectives(i.createVNode(l,{size:t.size,color:t.color},null,8,["size","color"]),[[i.vShow,t.legacy]])],6)}const ws=j(Z(Xm,[["render",Qm]])),Tk="",Bk="",Ik="",Zm=["src"],eg=Object.assign({name:"FvRadio",emits:["update:modelValue","click","actived"],computed:{$theme(){return W(this.$props).theme.value},isActived(){return this.model==this.label},isGroup(){let n=this.$parent;for(;n;)if(n.$options.name!="FvRadioGroup")n=n.$parent;else return this.setGroup(n),!0;return!1},isDisabled(){return this.isGroup?this._group.disabled||this.disabled:this.disabled},model:{get(){return this.isGroup?this._group.value:this.modelValue},set(n){this.isGroup?this._group.$emit("update:modelValue",n):this.$emit("update:modelValue",n)}}},mounted(){},methods:{click(){this.isDisabled||(this.isGroup?(this._group.$emit("update:modelValue",this.label),this._group.change(this.label)):this.$emit("update:modelValue",this.label),this.isActived&&this.$emit("actived"),this.$emit("click"))},setGroup(n){this._group=n}}},{props:{...q,modelValue:{type:[String,Number,Boolean],default:""},label:{type:[String,Number],required:!0},color:{type:String,default:""},foreground:{type:String,default:"rgba(0, 90, 158, 0.8)"},icon:{type:String,default:null},iconBlockBorderRadius:{type:Number,default:6},iconBlockBorderWidth:{type:Number,default:2},image:{type:String,default:null},activeImage:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(n){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Radio",[e.$theme,{"with-icon":n.icon||n.image},{actived:e.isActived},{disabled:e.isDisabled}]]),onClick:t[0]||(t[0]=(...r)=>e.click&&e.click(...r)),style:i.normalizeStyle({"border-color":e.isActived?n.foreground:"","border-radius":`${n.iconBlockBorderRadius}px`,"border-width":`${n.iconBlockBorderWidth}px`})},[i.createElementVNode("input",{type:"radio",ref:"button",class:i.normalizeClass(["fv-radio-button",[{actived:e.isActived},{disabled:e.isDisabled}]]),style:i.normalizeStyle({background:e.isActived?n.foreground:""})},null,6),i.createElementVNode("label",{class:"fv-radio-label",style:i.normalizeStyle({color:n.color})},[n.image?(i.openBlock(),i.createElementBlock("img",{key:0,src:e.isActived&&n.activeImage?n.activeImage:n.image},null,8,Zm)):n.icon?(i.openBlock(),i.createElementBlock("i",{key:1,class:i.normalizeClass(["with-icon ms-Icon","ms-Icon--"+n.icon])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")])],4)],6))}}),ys=j(eg),$k="",Nk="",Lk="",tg={...q},ng={name:"FvRadioGroup",emits:["change"],props:{...tg,modelValue:{required:!0},disabled:{type:Boolean,default:!1},label:{type:String,default:""},inline:{type:Boolean,default:!1}},data(){return{}},computed:{$theme(){return W(this.$props).theme.value}},methods:{change(n){this.$emit("change",n)}}},ig={key:0};function rg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-RadioGroup",[o.$theme,{inline:t.inline}]])},[t.label?(i.openBlock(),i.createElementBlock("label",ig,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.renderSlot(n.$slots,"default")],2)}const ks=j(Z(ng,[["render",rg]])),Mk="",zk="",Rk="",og={...q},sg={name:"FvRatingControl",emits:["update:modelValue","change"],props:{...og,modelValue:{default:0},maxRate:{default:5},halfRate:{default:!1},defaultIcon:{type:String,default:"FavoriteStar"},selectedIcon:{type:String,default:"FavoriteStarFill"},borderColor:{type:String,default:""},selectedColor:{type:String,default:""},isClear:{default:!1},readonly:{default:!1}},data(){return{thisValue:this.modelValue,hover:[]}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n),this.$emit("change",n)},maxRate(n){this.hover=new Array(n).fill({status:!1,ratio:100})}},mounted(){this.thisValue=this.modelValue,this.hover=new Array(this.maxRate).fill({status:!1,ratio:100})},computed:{itemShow(){return n=>this.hoverIndex<0?n-this.thisValue<0:n<=this.hoverIndex},itemRatio(){return n=>this.hoverIndex<0?n+1<=parseInt(this.thisValue)?100:(this.thisValue-parseInt(this.thisValue))*100:this.hoverIndex===n?this.hover[n].ratio:100},hoverIndex(){return this.hover.findIndex(n=>n.status)},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},$theme(){return W(this.$props).theme.value}},methods:{handlerHover(n,e){if(this.isReadOnly)return;let t=n.target.offsetWidth,{left:r}=n.target.getBoundingClientRect(),{clientX:s}=n.targetTouches?n.targetTouches[0]:n,l=(s-r)/t*100>50||!this.halfRate?100:50;this.$emit("hover",{index:e,ratio:l}),this.$set(this.hover,e,{status:!0,ratio:l})},handlerLeave(n){this.isReadOnly||(this.hover[n]={status:!1,ratio:100},this.$emit("leave",n))},handlerClick(n,e){if(this.isReadOnly)return;if(!this.halfRate){if(this.isClear&&this.thisValue==e+1){this.thisValue=0,this.clearHover();return}this.thisValue=e+1;return}let t=n.target.offsetWidth,{left:r}=n.target.getBoundingClientRect(),{clientX:s}=n.targetTouches?n.targetTouches[0]:n,o=(s-r)/t*100;if(this.isClear&&this.thisValue==e+1-(o>50?0:.5)){this.thisValue=0,this.clearHover();return}this.thisValue=e+1-(o>50?0:.5)},clearHover(){for(let n=0;n<this.maxRate;n++)this.hover[n]={status:!1,ratio:100}}}},lg={class:"fv-rating-container"},ag=["onMousemove","onTouchmove","onMouseleave","onTouchend","onClick"];function dg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-RatingControl",[o.$theme]])},[i.createElementVNode("div",lg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.maxRate,(l,a)=>(i.openBlock(),i.createElementBlock("div",{key:a,class:"fv-rating-unit",onMousemove:d=>o.handlerHover(d,a),onTouchmove:d=>o.handlerHover(d,a),onMouseleave:d=>o.handlerLeave(a),onTouchend:d=>o.handlerLeave(a),onClick:d=>o.handlerClick(d,a)},[i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon background",[`ms-Icon--${t.defaultIcon}`]]),style:i.normalizeStyle({color:t.borderColor})},null,6),i.withDirectives(i.createElementVNode("div",{class:"fv-rating-mask",style:i.normalizeStyle({width:`${o.itemRatio(a)}%`})},[i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon foreground",[`ms-Icon--${t.selectedIcon}`]]),style:i.normalizeStyle({color:t.selectedColor})},null,6)],4),[[i.vShow,o.itemShow(a)]])],40,ag))),128))])],2)}const vs=j(Z(sg,[["render",dg]])),Ok="",Ak="",Wk="",cg={...q},ug={name:"FvRevealContainer",emits:["click"],props:{...cg,revealContainer:{default:!1},parent:{default:null},borderWidth:{default:1},borderRadius:{default:6},backgroundColor:{default:"rgba(121, 119, 117, 0.6)"},backgroundGradientList:{default:()=>[]},backgroundGradientSize:{default:120},borderColor:{default:"rgba(121, 119, 117, 0.6)"},borderGradientList:{default:()=>[]},borderGradientSize:{default:60},debounceDistance:{default:300},disabled:{default:!1}},setup(){return{revealCache:Wt()}},data(){return{id:this.GuidWithoutDash(),offset:{left:0,top:0,right:0,bottom:0},disEl:{x:0,y:0},inside:!1,wave:0,clickDown:!1,timer:{wave:null}}},watch:{inside(n){n||this.leaveEvent(null)}},computed:{$theme(){return W(this.$props).theme.value},borderMatrix(){const{left:n,top:e,right:t,bottom:r}=this.offset;let s=t-n,o=r-e;return`matrix(${[1,0,0,1,(this.disEl.x-s/2).toFixed(3),(this.disEl.y-o/2).toFixed(3)].join(" ")})`},computedBorderRadius(){let n=this.offset.right-this.offset.left,e=this.offset.bottom-this.offset.top,t=n>e?e:n;return t==0?this.borderRadius:this.borderRadius>t/2?t/2:this.borderRadius},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.disEl.y=window.innerHeight,this.disEl.x=window.innerWidth,this.mouseMoveInit(),this.mouseClickInit()},methods:{mouseMoveInit(){if(this.revealContainer===!1){if(this.revealCache.setRevealHandler({id:this.id,moveHandler:this.moveEvent,leaveHandler:this.leaveEvent}),window.$FvRevealContainer)return;window.$FvRevealContainer=!0,window.removeEventListener("mousemove",this.globalMoveEventListener),window.addEventListener("mousemove",this.globalMoveEventListener),window.removeEventListener("touchmove",this.globalMoveEventListener),window.addEventListener("touchmove",this.globalMoveEventListener),window.removeEventListener("mouseleave",this.globalLeaveEventListener),window.addEventListener("mouseleave",this.globalLeaveEventListener)}else{if(this.revealContainer.revealHandlerList.push({id:this.id,moveHandler:this.moveEvent,downHandler:this.downEvent,upHandler:this.upEvent,leaveHandler:this.leaveEvent}),this.revealContainer.init)return;this.revealContainer.init=!0,this.revealContainer.el().removeEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("mouseleave",this.globalLeaveEventListener),this.revealContainer.el().addEventListener("mouseleave",this.globalLeaveEventListener)}},mouseClickInit(){this.parent?(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().addEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().addEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent),this.parent().addEventListener("mouseup",this.upEvent),this.parent().removeEventListener("touchend",this.leaveEvent),this.parent().addEventListener("touchend",this.leaveEvent)):(this.$el.removeEventListener("mousedown",this.downEvent),this.$el.addEventListener("mousedown",this.downEvent),this.$el.removeEventListener("touchstart",this.downEvent),this.$el.addEventListener("touchstart",this.downEvent),this.$el.removeEventListener("mouseup",this.upEvent),this.$el.addEventListener("mouseup",this.upEvent),this.$el.removeEventListener("touchend",this.leaveEvent),this.$el.addEventListener("touchend",this.leaveEvent))},globalMoveEventListener(n){if(this.revealContainer===!1)for(let e of this.revealCache.revealHandlerList)e.moveHandler&&e.moveHandler(n);else for(let e of this.revealContainer.revealHandlerList)e.moveHandler&&e.moveHandler(n)},globalLeaveEventListener(n){if(this.revealContainer===!1)for(let e of this.revealCache.revealHandlerList)e.leaveHandler&&e.leaveHandler(n);else for(let e of this.revealContainer.revealHandlerList)e.leaveHandler&&e.leaveHandler(n)},moveEvent(n){if(this.isDisabled||!this.inVisual())return;n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]);const{left:e,top:t}=this.getOffset(this.$el);let r=n.pageX-e-window.scrollX,s=n.pageY-t-window.scrollY,o=this.distanceOfElement(this.$el,n.clientX,n.clientY);o.left>this.debounceDistance||o.top>this.debounceDistance||o.right>this.debounceDistance||o.bottom>this.debounceDistance||(this.disEl.x=r,this.disEl.y=s,this.inside=this.moveInsideElement(this.$el,n.clientX,n.clientY))},downEvent(n){if(this.isDisabled||!this.clickInsideElement(n))return;n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]);const{left:e,top:t}=this.getOffset(this.$el);let r=n.pageX-e-window.scrollX,s=n.pageY-t-window.scrollY;this.disEl.x=r,this.disEl.y=s,this.wave=120,this.inside=!0,this.clickDown=!0,clearInterval(this.timer.wave),this.timer.wave=setInterval(()=>{try{let o=this.wave,l=o/60+1;o+=l,o>=1e3?clearInterval(this.timer.wave):this.wave=o}catch{}},50)},upEvent(n){this.wave=0,this.clickDown=!1,clearInterval(this.timer.wave)},leaveEvent(n){this.wave=0,this.disEl.x=window.innerWidth,this.disEl.y=window.innerHeight,this.inside=!1,clearInterval(this.timer.wave)},getOffset(n){const{left:e,top:t,right:r,bottom:s}=n.getBoundingClientRect();return this.offset.left=e,this.offset.top=t,this.offset.right=r,this.offset.bottom=s,{left:e,top:t,right:r,bottom:s}},moveInsideElement(n,e,t){const{left:r,top:s,right:o,bottom:l}=n.getBoundingClientRect();return e>=r&&e<=o&&t>=s&&t<=l},distanceOfElement(n,e,t){const{left:r,top:s,right:o,bottom:l}=n.getBoundingClientRect();return{left:r-e,right:e-o,top:s-t,bottom:t-l}},clickInsideElement(n){let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}if(this.parent&&e==this.parent()){t=!0;break}e=e.parentNode}return t},inVisual(){const{left:n,top:e,right:t,bottom:r}=this.$el.getBoundingClientRect(),s=t-n,o=r-e,l=window.innerWidth,a=window.innerHeight;let d=!1,c=!1;return r>=0&&r<=a+o&&(c=!0),t>=0&&t<=l+s&&(d=!0),d&&c},GuidWithoutDash(){function n(){return((1+Math.random())*65536|0).toString(16).substring(1)}return n()+n()+n()+n()+n()+n()+n()+n()},valueTrigger(n){return typeof n=="function"?n():n}},beforeUnmount(){if(this.revealContainer===!1)this.revealCache.removeRevealHandler(this.id);else{let n=this.revealContainer.revealHandlerList.findIndex(e=>e.id==this.id);n>-1&&this.revealContainer.revealHandlerList.splice(n,1)}this.parent&&this.parent()&&(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent))}},fg={width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hg=["r","id","gradientTransform"],mg=["stop-color"],gg={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},pg=["offset","stop-color"],bg=["r","id","gradientTransform"],wg=["stop-color"],yg={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},kg=["offset","stop-color"],vg=["r","id","gradientTransform"],_g=i.createElementVNode("stop",{offset:"0","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Cg=["stop-color"],Sg=i.createElementVNode("stop",{offset:"0.66","stop-color":"rgba(255, 255, 255, 0)"},null,-1),xg=i.createElementVNode("stop",{offset:"1","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Vg=["x","y","rx","ry"],Eg=["x","y","rx","ry"];function Tg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-RevealContainer",[o.$theme]]),style:i.normalizeStyle({"border-radius":`${o.computedBorderRadius}px`}),onClick:e[0]||(e[0]=l=>{l.preventDefault(),o.isDisabled||n.$emit("click",l)})},[i.withDirectives((i.openBlock(),i.createElementBlock("svg",fg,[i.createTextVNode(" > "),i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.backgroundGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`backgroundG_${s.id}`,gradientTransform:o.borderMatrix},[t.backgroundGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",{key:0,offset:"0","stop-color":t.backgroundColor},null,8,mg)):i.createCommentVNode("",!0),t.backgroundGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",gg)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.backgroundGradientList,(l,a)=>(i.openBlock(),i.createElementBlock("stop",{offset:1/t.backgroundGradientList.length*a,"stop-color":l,key:`bg:${a}`},null,8,pg))),128))],8,hg),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.borderGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`borderG_${s.id}`,gradientTransform:o.borderMatrix},[t.borderGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",{key:0,offset:"0","stop-color":t.borderColor},null,8,wg)):i.createCommentVNode("",!0),t.borderGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",yg)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.borderGradientList,(l,a)=>(i.openBlock(),i.createElementBlock("stop",{offset:1/t.borderGradientList.length*a,"stop-color":l,key:`border:${a}`},null,8,kg))),128))],8,bg),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:s.wave,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`clickG_${s.id}`,gradientTransform:o.borderMatrix},[_g,i.createElementVNode("stop",{offset:"0.33","stop-color":t.backgroundColor},null,8,Cg),Sg,xg],8,vg)]),i.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:o.computedBorderRadius,ry:o.computedBorderRadius,style:i.normalizeStyle([{"box-sizing":"border-box"},{width:`${s.offset.right-s.offset.left-t.borderWidth}px`,height:`${s.offset.bottom-s.offset.top-t.borderWidth}px`,stroke:`url(#borderG_${s.id})`,fill:s.inside?`url(#backgroundG_${s.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Vg),i.withDirectives(i.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:o.computedBorderRadius,ry:o.computedBorderRadius,style:i.normalizeStyle([{stroke:"transparent","box-sizing":"border-box"},{width:`${s.offset.right-s.offset.left-t.borderWidth}px`,height:`${s.offset.bottom-s.offset.top-t.borderWidth}px`,fill:s.inside?`url(#clickG_${s.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Eg),[[i.vShow,s.clickDown]])],512)),[[i.vShow,s.offset.right-s.offset.left>0]])],6)}const _s=j(Z(ug,[["render",Tg]])),Gk="",Uk="",Yk="",Bg={...q},Ig={name:"FvScrollStory",emits:["show-changed"],props:{...Bg,name:{default:""},overCollapse:{default:!1},infinite:{default:!1},trueRender:{default:!1}},data(){return{show:!1,bounding:1/0,event:()=>{this.refreshBounding()},timer:{}}},watch:{show(n){this.$emit("show-changed",n)}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.timerInit()},methods:{timerInit(){clearInterval(this.timer),this.timer=setInterval(()=>{this.refreshBounding()},30)},refreshBounding(){this.bounding=this.$el.getBoundingClientRect(),this.bounding.top<window.innerHeight&&(this.show=!0),this.bounding.top>window.innerHeight&&this.infinite&&(this.show=!1),this.bounding.bottom<100&&this.overCollapse&&(this.show=!1)}},beforeUnmount(){clearInterval(this.timer)}},Dg={key:0},$g=i.createElementVNode("p",null,"Scroll Story",-1);function Ng(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ScrollStory",[o.$theme]])},[i.createVNode(i.Transition,{name:t.name},{default:i.withCtx(()=>[!t.trueRender||s.show?i.withDirectives((i.openBlock(),i.createElementBlock("div",Dg,[i.renderSlot(n.$slots,"default",{},()=>[$g])],512)),[[i.vShow,s.show]]):i.createCommentVNode("",!0)]),_:3},8,["name"])],2)}const Cs=j(Z(Ig,[["render",Ng]])),Xk="",jk="",Jk="",Lg={...q},Pg={name:"FvSearchBox",emits:["update:modelValue","debounce-input","choose-result","lazyload","clear-click","left-icon-click","icon-click","keydown","keyup","change","paste"],props:{...Lg,modelValue:{default:""},options:{default:()=>[]},placeholder:{default:""},type:{default:"text"},readonly:{default:!1},maxlength:{default:""},customFilter:{default:!1},resultPlaceholder:{default:!1},focusShow:{default:!1},leftIcon:{default:""},icon:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},foreground:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},status:{default:""},debounceDelay:{default:300},disabled:{default:!1}},data(){return{thisValue:this.modelValue,isFocus:!1,filterOptions:this.options,show:{searchResult:!1},timer:{debounce:null}}},watch:{modelValue(n){this.thisValue=n},thisValue(n){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",n),this.refreshFilter()},isFocus(n){n&&this.focusShow&&(this.show.searchResult=!0)}},computed:{thisBorderColor(){return this.isUnderline?this.isFocus?{borderBottomColor:this.focusBorderColor}:{borderBottomColor:this.borderColor}:this.isFocus?{borderColor:this.focusBorderColor}:{borderColor:this.borderColor}},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show.searchResult=!1)})},refreshFilter(){let n=[];if(this.customFilter!==!1)n=this.customFilter(this.options);else for(let e of this.options)e.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&n.push(e);this.filterOptions=n},chooseResult(n){this.thisValue=n.item.name,this.$emit("choose-result",n.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let n=this.resultPlaceholder;n.splice(n.length-1,1),this.$emit("update:resultPlaceholder",n)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show.searchResult=!1)})},refreshFilter(){let n=[];if(this.customFilter!==!1)n=this.customFilter(this.options);else for(let e of this.options)e.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&n.push(e);this.filterOptions=n},chooseResult(n){this.thisValue=n.item.name,this.$emit("choose-result",n.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let n=this.resultPlaceholder;n.splice(n.length-1,1),this.$emit("update:resultPlaceholder",n)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}}},Mg={class:"search-box-placeholder"},zg={class:"search-box-container"},Rg=["type","placeholder","readonly","disabled","maxlength"],Fg={class:"search-result-container",ref:"filterResult"};function Og(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("fv-list-view");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SearchBox",[o.$theme,t.status,s.isFocus?"focus":"",o.isDisabled?"disabled":"",o.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:i.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onKeydown:e[11]||(e[11]=d=>s.show.searchResult=!0),onKeyup:e[12]||(e[12]=i.withKeys((...d)=>o.onBackspace&&o.onBackspace(...d),["delete"])),onClick:e[13]||(e[13]=d=>s.isFocus=!0)},[i.createVNode(l,{parent:()=>n.$el,class:"fv-search-box-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("div",{class:"search-box-wrapper-container",style:i.normalizeStyle([o.thisBorderColor,{background:t.background,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`}])},[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),onClick:e[0]||(e[0]=d=>n.$emit("left-icon-click",d))},null,2),[[i.vShow,t.leftIcon!=""]]),i.createVNode(i.Transition,{name:"move-left-to-right"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",Mg,[i.renderSlot(n.$slots,"resultPlaceholder",{resultPlaceholder:t.resultPlaceholder})],512),[[i.vShow,t.resultPlaceholder.length>0]])]),_:3}),i.createElementVNode("div",zg,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=d=>s.thisValue=d),type:t.type,placeholder:t.placeholder,class:"input",readonly:o.isReadOnly,disabled:o.isDisabled,maxlength:t.maxlength,ref:"input",style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:e[2]||(e[2]=d=>n.$emit("keydown",d)),onKeyup:e[3]||(e[3]=d=>n.$emit("keyup",d)),onChange:e[4]||(e[4]=d=>n.$emit("change",d)),onPaste:e[5]||(e[5]=d=>n.$emit("paste",d)),onFocus:e[6]||(e[6]=d=>s.isFocus=!0),onBlur:e[7]||(e[7]=d=>s.isFocus=!1)},null,44,Rg),[[i.vModelDynamic,s.thisValue]])]),i.withDirectives(i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel icon-block",onClick:e[8]||(e[8]=(...d)=>o.clearValue&&o.clearValue(...d))},null,512),[[i.vShow,s.thisValue.length>0||t.resultPlaceholder.length>0]]),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),onClick:e[9]||(e[9]=d=>n.$emit("icon-click",d))},null,2),[[i.vShow,t.icon!=""]])],4),i.createVNode(i.Transition,{name:"zoom-in-top"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",Fg,[i.renderSlot(n.$slots,"searchResult",{data:s.filterOptions,chooseResult:o.chooseResult},()=>[i.createVNode(a,{modelValue:s.filterOptions,"onUpdate:modelValue":e[10]||(e[10]=d=>s.filterOptions=d),theme:n.theme,style:{width:"100%",height:"auto"},onChooseItem:o.chooseResult},null,8,["modelValue","theme","onChooseItem"])])],512),[[i.vShow,s.show.searchResult]])]),_:3})],38)}const Ss=j(Z(Pg,[["render",Og]])),Qk="",Zk="",ev="",Ag={name:"FvShimmer",props:{...{...q}},data(){return{gradientSize:80,x:0,y:0,timer:{}}},computed:{$theme(){return W(this.$props).theme.value},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.1)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(121, 119, 117, 0.1)"}},mounted(){this.moveInit(),this.timer=setInterval(()=>{this.childrenInit()},30)},methods:{moveInit(){this.gradientSize=this.$el.clientWidth/1.6,this.x=-this.gradientSize,this.y=this.$el.clientHeight/2,Ve.to(this.$data,{x:this.$el.clientWidth+this.gradientSize+100,duration:2,delay:0,repeat:-1,ease:"power3.in"})},childrenInit(){try{this.$refs.shimmer.querySelectorAll("*").forEach(e=>{e.getAttribute("style").indexOf("background-image")<0&&e.setAttribute("style",`${e.getAttribute("style")} background-image: inherit;`)})}catch{}}},beforeUnmount(){clearInterval(this.timer)}},Wg=i.createElementVNode("div",{class:"sample",style:{"background-image":"inherit"}},null,-1);function Hg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Shimmer",[o.$theme]])},[i.createElementVNode("div",{class:"shimmer-container",ref:"shimmer",style:i.normalizeStyle({"background-image":`radial-gradient(circle ${s.gradientSize}px at ${s.x}px ${s.y}px, ${o.backgroundLightColor}, rgba(255,255,255,0))`})},[i.renderSlot(n.$slots,"default",{},()=>[Wg])],4)],2)}const xs=j(Z(Ag,[["render",Hg]])),iv="",rv="",ov="",Gg={name:"FvSlider",props:{...{...q},disabled:{type:Boolean,default:!1},modelValue:{type:Number,default:0},unit:{type:Number,default:1},maxinum:{type:Number,default:100},mininum:{type:Number,default:0},icon:{type:String,default:"RadioBullet"},vertical:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1},scale:{type:[Boolean,Number],default:!1},color:{type:String}},data(){return{progress:0,isActive:!1,rejust:!1,buttonHeight:0,style:{bar:{}}}},computed:{$theme(){return W(this.$props).theme.value},buttonStyle(){let n=this.color;return this.vertical?{top:this.progress+"%",transform:`translateX(-${this.buttonHeight/2-1}px) translateY(-${this.buttonHeight/2}px) rotate(90deg)`,color:n}:{left:this.progress+"%",transform:`translateX(-${this.buttonHeight/2}px) translateY(-${this.buttonHeight/2-3}px)`,color:n}},progressStyle(){let n=this.color;return this.vertical?{height:this.progress+"%",backgroundColor:n}:{width:this.progress+"%",backgroundColor:n}}},watch:{modelValue(n){this.isActive||this.setProgress(n,this.mininum,this.maxinum)},progress(n){this.$emit("change",this.getValue(n,this.mininum,this.maxinum)),this.isActive&&this.setValue(n,this.mininum,this.maxinum)}},mounted(){this.resize(),this.widthObserverInit()},methods:{widthObserverInit(){new ResizeObserver(()=>{this.buttonHeight=this.$refs.button?this.$refs.button.clientHeight:0}).observe(this.$refs.button)},click(n){if(this.isActive||this.disabled)return!1;let e=this.$refs.bar.getBoundingClientRect(),t=this.$refs.button.getBoundingClientRect(),r=this.vertical?n.clientY-e.top:n.clientX-e.left,s=this.vertical?t.top-e.top:t.left-e.left;return this.move(r,s),!0},scaleUnit(){return!this.scale||this.scale==!0?this.unit:this.scale},scaleStyle(n,e){let t=Math.round(this.scaleUnit()/(this.maxinum-this.mininum)*100);return this.vertical?{left:e?"7px":"-7px",top:n*t+"%",height:"1px",width:"5px"}:{top:e?"7px":"-7px",left:n*t+"%",height:"5px",width:"1px"}},resize(){this.setProgress(this.modelValue,this.mininum,this.maxinum)},moveable(n){if(event.preventDefault&&(this.$refs.button.ondragenter=event.preventDefault(),this.$refs.button.ondragover=event.preventDefault()),this.isActive||this.disabled)return;this.$emit("click"),this.isActive=!0;let e=this.vertical?n.clientY:n.clientX,t=s=>{s.type==="touchmove"&&(s=s.targetTouches[0]);let o=this.vertical?s.clientY:s.clientX;this.move(o,e),e=o},r=()=>{this.isActive=!1,this.rejustProgress(),window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",r),window.removeEventListener("mouseleave",r),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",r)};window.addEventListener("mousemove",t),window.addEventListener("mouseleave",r),window.addEventListener("mouseup",r),window.addEventListener("touchmove",t),window.addEventListener("touchend",r)},setProgress(n,e,t){this.progress=(n-e)/(t-e)*100,this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress)},setValue(n,e,t){this.$emit("update:modelValue",this.getValue(n,e,t))},getValue(n,e,t){return Math.round(n*(t-e)/100)+e},rejustProgress(){if(this.rejust)return;this.rejust=!0,this.isActive=!0;let n=this.getValue(this.progress,this.mininum,this.maxinum);n<this.maxinum?n=Math.round((n-this.mininum)/this.unit)*this.unit+this.mininum:n=this.maxinum,this.setProgress(n,this.mininum,this.maxinum),setTimeout(()=>{this.rejust=!1,this.isActive=!1},300)},move(n,e){let t=this.vertical?this.$refs.bar.clientHeight:this.$refs.bar.clientWidth,r=this.progress+(n-e)*100/t;r=Math.max(r,0),r=Math.min(r,100),this.progress=r}}},Ug=i.createElementVNode("div",{class:"fv-slider__bar-bg"},null,-1);function Yg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Slider",[o.$theme,{active:s.isActive},{vertical:t.vertical}]]),ref:"slider"},[i.createElementVNode("div",{class:i.normalizeClass(["fv-slider__bar",[{vertical:t.vertical},{disabled:t.disabled}]]),onMousedown:e[1]||(e[1]=l=>o.click(l)&&o.moveable(l)),onTouchstart:e[2]||(e[2]=l=>o.click(l.targetTouches[0])&&o.moveable(l.targetTouches[0])),style:i.normalizeStyle(s.style.bar),ref:"bar"},[t.scale?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((t.maxinum-t.mininum)/o.scaleUnit()-1,l=>(i.openBlock(),i.createElementBlock("div",{class:"fv-slider__scale-up",key:"scale:"+l,style:i.normalizeStyle(o.scaleStyle(l,!0))},null,4))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((t.maxinum-t.mininum)/o.scaleUnit()-1,l=>(i.openBlock(),i.createElementBlock("div",{class:"fv-slider__scale-down",key:"scale-d:"+l,style:i.normalizeStyle(o.scaleStyle(l,!1))},null,4))),128))],64)):i.createCommentVNode("",!0),Ug,i.createElementVNode("div",{class:i.normalizeClass(["fv-slider__progress",[{anime:s.rejust}]]),ref:"progress",style:i.normalizeStyle(o.progressStyle)},null,6),i.createElementVNode("div",{class:i.normalizeClass(["fv-slider__button ms-Icon",[`ms-Icon--${t.icon}`,{disabled:t.disabled},{anime:s.rejust}]]),style:i.normalizeStyle(o.buttonStyle),ref:"button",onMousedown:e[0]||(e[0]=(...l)=>o.moveable&&o.moveable(...l))},null,38)],38),t.showLabel?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["fv-slider__label",{vertical:t.vertical}])},[i.renderSlot(n.$slots,"default",{value:o.getValue(s.progress,t.mininum,t.maxinum)})],2)):i.createCommentVNode("",!0)],2)}const Vs=j(Z(Gg,[["render",Yg]])),av="",dv="",cv="",qg={...q};function Es(n){return n!==null&&typeof n=="object"&&"constructor"in n&&n.constructor===Object}function Oi(n={},e={}){Object.keys(e).forEach(t=>{typeof n[t]>"u"?n[t]=e[t]:Es(e[t])&&Es(n[t])&&Object.keys(e[t]).length>0&&Oi(n[t],e[t])})}const Ts={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ne(){const n=typeof document<"u"?document:{};return Oi(n,Ts),n}const Xg={document:Ts,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)}};function ye(){const n=typeof window<"u"?window:{};return Oi(n,Xg),n}function jg(n){const e=n.__proto__;Object.defineProperty(n,"__proto__",{get(){return e},set(t){e.__proto__=t}})}class bt extends Array{constructor(e){typeof e=="number"?super(e):(super(...e||[]),jg(this))}}function kn(n=[]){const e=[];return n.forEach(t=>{Array.isArray(t)?e.push(...kn(t)):e.push(t)}),e}function Bs(n,e){return Array.prototype.filter.call(n,e)}function Jg(n){const e=[];for(let t=0;t<n.length;t+=1)e.indexOf(n[t])===-1&&e.push(n[t]);return e}function Kg(n,e){if(typeof n!="string")return[n];const t=[],r=e.querySelectorAll(n);for(let s=0;s<r.length;s+=1)t.push(r[s]);return t}function U(n,e){const t=ye(),r=Ne();let s=[];if(!e&&n instanceof bt)return n;if(!n)return new bt(s);if(typeof n=="string"){const o=n.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){let l="div";o.indexOf("<li")===0&&(l="ul"),o.indexOf("<tr")===0&&(l="tbody"),(o.indexOf("<td")===0||o.indexOf("<th")===0)&&(l="tr"),o.indexOf("<tbody")===0&&(l="table"),o.indexOf("<option")===0&&(l="select");const a=r.createElement(l);a.innerHTML=o;for(let d=0;d<a.childNodes.length;d+=1)s.push(a.childNodes[d])}else s=Kg(n.trim(),e||r)}else if(n.nodeType||n===t||n===r)s.push(n);else if(Array.isArray(n)){if(n instanceof bt)return n;s=n}return new bt(Jg(s))}U.fn=bt.prototype;function Qg(...n){const e=kn(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this}function Zg(...n){const e=kn(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this}function ep(...n){const e=kn(n.map(t=>t.split(" ")));this.forEach(t=>{e.forEach(r=>{t.classList.toggle(r)})})}function tp(...n){const e=kn(n.map(t=>t.split(" ")));return Bs(this,t=>e.filter(r=>t.classList.contains(r)).length>0).length>0}function np(n,e){if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):void 0;for(let t=0;t<this.length;t+=1)if(arguments.length===2)this[t].setAttribute(n,e);else for(const r in n)this[t][r]=n[r],this[t].setAttribute(r,n[r]);return this}function ip(n){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(n);return this}function rp(n){for(let e=0;e<this.length;e+=1)this[e].style.transform=n;return this}function op(n){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof n!="string"?`${n}ms`:n;return this}function sp(...n){let[e,t,r,s]=n;typeof n[1]=="function"&&([e,r,s]=n,t=void 0),s||(s=!1);function o(c){const u=c.target;if(!u)return;const f=c.target.dom7EventData||[];if(f.indexOf(c)<0&&f.unshift(c),U(u).is(t))r.apply(u,f);else{const m=U(u).parents();for(let h=0;h<m.length;h+=1)U(m[h]).is(t)&&r.apply(m[h],f)}}function l(c){const u=c&&c.target?c.target.dom7EventData||[]:[];u.indexOf(c)<0&&u.unshift(c),r.apply(this,u)}const a=e.split(" ");let d;for(let c=0;c<this.length;c+=1){const u=this[c];if(t)for(d=0;d<a.length;d+=1){const f=a[d];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[f]||(u.dom7LiveListeners[f]=[]),u.dom7LiveListeners[f].push({listener:r,proxyListener:o}),u.addEventListener(f,o,s)}else for(d=0;d<a.length;d+=1){const f=a[d];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:r,proxyListener:l}),u.addEventListener(f,l,s)}}return this}function lp(...n){let[e,t,r,s]=n;typeof n[1]=="function"&&([e,r,s]=n,t=void 0),s||(s=!1);const o=e.split(" ");for(let l=0;l<o.length;l+=1){const a=o[l];for(let d=0;d<this.length;d+=1){const c=this[d];let u;if(!t&&c.dom7Listeners?u=c.dom7Listeners[a]:t&&c.dom7LiveListeners&&(u=c.dom7LiveListeners[a]),u&&u.length)for(let f=u.length-1;f>=0;f-=1){const m=u[f];r&&m.listener===r||r&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===r?(c.removeEventListener(a,m.proxyListener,s),u.splice(f,1)):r||(c.removeEventListener(a,m.proxyListener,s),u.splice(f,1))}}}return this}function ap(...n){const e=ye(),t=n[0].split(" "),r=n[1];for(let s=0;s<t.length;s+=1){const o=t[s];for(let l=0;l<this.length;l+=1){const a=this[l];if(e.CustomEvent){const d=new e.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0});a.dom7EventData=n.filter((c,u)=>u>0),a.dispatchEvent(d),a.dom7EventData=[],delete a.dom7EventData}}}return this}function dp(n){const e=this;function t(r){r.target===this&&(n.call(this,r),e.off("transitionend",t))}return n&&e.on("transitionend",t),this}function cp(n){if(this.length>0){if(n){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function up(n){if(this.length>0){if(n){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function fp(){if(this.length>0){const n=ye(),e=Ne(),t=this[0],r=t.getBoundingClientRect(),s=e.body,o=t.clientTop||s.clientTop||0,l=t.clientLeft||s.clientLeft||0,a=t===n?n.scrollY:t.scrollTop,d=t===n?n.scrollX:t.scrollLeft;return{top:r.top+a-o,left:r.left+d-l}}return null}function hp(){const n=ye();return this[0]?n.getComputedStyle(this[0],null):{}}function mp(n,e){const t=ye();let r;if(arguments.length===1)if(typeof n=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(r=0;r<this.length;r+=1)for(const s in n)this[r].style[s]=n[s];return this}if(arguments.length===2&&typeof n=="string"){for(r=0;r<this.length;r+=1)this[r].style[n]=e;return this}return this}function gp(n){return n?(this.forEach((e,t)=>{n.apply(e,[e,t])}),this):this}function pp(n){const e=Bs(this,n);return U(e)}function bp(n){if(typeof n>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=n;return this}function wp(n){if(typeof n>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=n;return this}function yp(n){const e=ye(),t=Ne(),r=this[0];let s,o;if(!r||typeof n>"u")return!1;if(typeof n=="string"){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(s=U(n),o=0;o<s.length;o+=1)if(s[o]===r)return!0;return!1}if(n===t)return r===t;if(n===e)return r===e;if(n.nodeType||n instanceof bt){for(s=n.nodeType?[n]:n,o=0;o<s.length;o+=1)if(s[o]===r)return!0;return!1}return!1}function kp(){let n=this[0],e;if(n){for(e=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(e+=1);return e}}function vp(n){if(typeof n>"u")return this;const e=this.length;if(n>e-1)return U([]);if(n<0){const t=e+n;return t<0?U([]):U([this[t]])}return U([this[n]])}function _p(...n){let e;const t=Ne();for(let r=0;r<n.length;r+=1){e=n[r];for(let s=0;s<this.length;s+=1)if(typeof e=="string"){const o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[s].appendChild(o.firstChild)}else if(e instanceof bt)for(let o=0;o<e.length;o+=1)this[s].appendChild(e[o]);else this[s].appendChild(e)}return this}function Cp(n){const e=Ne();let t,r;for(t=0;t<this.length;t+=1)if(typeof n=="string"){const s=e.createElement("div");for(s.innerHTML=n,r=s.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(s.childNodes[r],this[t].childNodes[0])}else if(n instanceof bt)for(r=0;r<n.length;r+=1)this[t].insertBefore(n[r],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this}function Sp(n){return this.length>0?n?this[0].nextElementSibling&&U(this[0].nextElementSibling).is(n)?U([this[0].nextElementSibling]):U([]):this[0].nextElementSibling?U([this[0].nextElementSibling]):U([]):U([])}function xp(n){const e=[];let t=this[0];if(!t)return U([]);for(;t.nextElementSibling;){const r=t.nextElementSibling;n?U(r).is(n)&&e.push(r):e.push(r),t=r}return U(e)}function Vp(n){if(this.length>0){const e=this[0];return n?e.previousElementSibling&&U(e.previousElementSibling).is(n)?U([e.previousElementSibling]):U([]):e.previousElementSibling?U([e.previousElementSibling]):U([])}return U([])}function Ep(n){const e=[];let t=this[0];if(!t)return U([]);for(;t.previousElementSibling;){const r=t.previousElementSibling;n?U(r).is(n)&&e.push(r):e.push(r),t=r}return U(e)}function Tp(n){const e=[];for(let t=0;t<this.length;t+=1)this[t].parentNode!==null&&(n?U(this[t].parentNode).is(n)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return U(e)}function Bp(n){const e=[];for(let t=0;t<this.length;t+=1){let r=this[t].parentNode;for(;r;)n?U(r).is(n)&&e.push(r):e.push(r),r=r.parentNode}return U(e)}function Ip(n){let e=this;return typeof n>"u"?U([]):(e.is(n)||(e=e.parents(n).eq(0)),e)}function Dp(n){const e=[];for(let t=0;t<this.length;t+=1){const r=this[t].querySelectorAll(n);for(let s=0;s<r.length;s+=1)e.push(r[s])}return U(e)}function $p(n){const e=[];for(let t=0;t<this.length;t+=1){const r=this[t].children;for(let s=0;s<r.length;s+=1)(!n||U(r[s]).is(n))&&e.push(r[s])}return U(e)}function Np(){for(let n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}const Is={addClass:Qg,removeClass:Zg,hasClass:tp,toggleClass:ep,attr:np,removeAttr:ip,transform:rp,transition:op,on:sp,off:lp,trigger:ap,transitionEnd:dp,outerWidth:cp,outerHeight:up,styles:hp,offset:fp,css:mp,each:gp,html:bp,text:wp,is:yp,index:kp,eq:vp,append:_p,prepend:Cp,next:Sp,nextAll:xp,prev:Vp,prevAll:Ep,parent:Tp,parents:Bp,closest:Ip,find:Dp,children:$p,filter:pp,remove:Np};Object.keys(Is).forEach(n=>{Object.defineProperty(U.fn,n,{value:Is[n],writable:!0})});function Lp(n){const e=n;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Ai(n,e){return e===void 0&&(e=0),setTimeout(n,e)}function vn(){return Date.now()}function Pp(n){const e=ye();let t;return e.getComputedStyle&&(t=e.getComputedStyle(n,null)),!t&&n.currentStyle&&(t=n.currentStyle),t||(t=n.style),t}function Mp(n,e){e===void 0&&(e="x");const t=ye();let r,s,o;const l=Pp(n);return t.WebKitCSSMatrix?(s=l.transform||l.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new t.WebKitCSSMatrix(s==="none"?"":s)):(o=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?s=o.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),e==="y"&&(t.WebKitCSSMatrix?s=o.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function Xn(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function zp(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)}function Le(){const n=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const r=t<0||arguments.length<=t?void 0:arguments[t];if(r!=null&&!zp(r)){const s=Object.keys(Object(r)).filter(o=>e.indexOf(o)<0);for(let o=0,l=s.length;o<l;o+=1){const a=s[o],d=Object.getOwnPropertyDescriptor(r,a);d!==void 0&&d.enumerable&&(Xn(n[a])&&Xn(r[a])?r[a].__swiper__?n[a]=r[a]:Le(n[a],r[a]):!Xn(n[a])&&Xn(r[a])?(n[a]={},r[a].__swiper__?n[a]=r[a]:Le(n[a],r[a])):n[a]=r[a])}}}return n}function jn(n,e,t){n.style.setProperty(e,t)}function Ds(n){let{swiper:e,targetPosition:t,side:r}=n;const s=ye(),o=-e.translate;let l=null,a;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=t>o?"next":"prev",u=(m,h)=>c==="next"&&m>=h||c==="prev"&&m<=h,f=()=>{a=new Date().getTime(),l===null&&(l=a);const m=Math.max(Math.min((a-l)/d,1),0),h=.5-Math.cos(m*Math.PI)/2;let g=o+h*(t-o);if(u(g,t)&&(g=t),e.wrapperEl.scrollTo({[r]:g}),u(g,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:g})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(f)};f()}let Wi;function Rp(){const n=ye(),e=Ne();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch),passiveListener:function(){let r=!1;try{const s=Object.defineProperty({},"passive",{get(){r=!0}});n.addEventListener("testPassiveListener",null,s)}catch{}return r}(),gestures:function(){return"ongesturestart"in n}()}}function $s(){return Wi||(Wi=Rp()),Wi}let Hi;function Fp(n){let{userAgent:e}=n===void 0?{}:n;const t=$s(),r=ye(),s=r.navigator.platform,o=e||r.navigator.userAgent,l={ios:!1,android:!1},a=r.screen.width,d=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const f=o.match(/(iPod)(.*OS\s([\d_]+))?/),m=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let g=s==="MacIntel";const _=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&g&&t.touch&&_.indexOf(`${a}x${d}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),g=!1),c&&!h&&(l.os="android",l.android=!0),(u||m||f)&&(l.os="ios",l.ios=!0),l}function Op(n){return n===void 0&&(n={}),Hi||(Hi=Fp(n)),Hi}let Gi;function Ap(){const n=ye();function e(){const t=n.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent)}}function Wp(){return Gi||(Gi=Ap()),Gi}function Hp(n){let{swiper:e,on:t,emit:r}=n;const s=ye();let o=null,l=null;const a=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(f=>{l=s.requestAnimationFrame(()=>{const{width:m,height:h}=e;let g=m,_=h;f.forEach(p=>{let{contentBoxSize:C,contentRect:y,target:w}=p;w&&w!==e.el||(g=y?y.width:(C[0]||C).inlineSize,_=y?y.height:(C[0]||C).blockSize)}),(g!==m||_!==h)&&a()})}),o.observe(e.el))},c=()=>{l&&s.cancelAnimationFrame(l),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){d();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",u)})}function Gp(n){let{swiper:e,extendParams:t,on:r,emit:s}=n;const o=[],l=ye(),a=function(u,f){f===void 0&&(f={});const m=l.MutationObserver||l.WebkitMutationObserver,h=new m(g=>{if(g.length===1){s("observerUpdate",g[0]);return}const _=function(){s("observerUpdate",g[0])};l.requestAnimationFrame?l.requestAnimationFrame(_):l.setTimeout(_,0)});h.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),o.push(h)},d=()=>{if(!!e.params.observer){if(e.params.observeParents){const u=e.$el.parents();for(let f=0;f<u.length;f+=1)a(u[f])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}},c=()=>{o.forEach(u=>{u.disconnect()}),o.splice(0,o.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",d),r("destroy",c)}const Up={on(n,e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const s=t?"unshift":"push";return n.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][s](e)}),r},once(n,e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function s(){r.off(n,s),s.__emitterProxy&&delete s.__emitterProxy;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];e.apply(r,l)}return s.__emitterProxy=e,r.on(n,s,t)},onAny(n,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof n!="function")return t;const r=e?"unshift":"push";return t.eventsAnyListeners.indexOf(n)<0&&t.eventsAnyListeners[r](n),t},offAny(n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(n);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(n,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||n.split(" ").forEach(r=>{typeof e>"u"?t.eventsListeners[r]=[]:t.eventsListeners[r]&&t.eventsListeners[r].forEach((s,o)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&t.eventsListeners[r].splice(o,1)})}),t},emit(){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let e,t,r;for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),r=n):(e=o[0].events,t=o[0].data,r=o[0].context||n),t.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(d=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(c=>{c.apply(r,[d,...t])}),n.eventsListeners&&n.eventsListeners[d]&&n.eventsListeners[d].forEach(c=>{c.apply(r,t)})}),n}};function Yp(){const n=this;let e,t;const r=n.$el;typeof n.params.width<"u"&&n.params.width!==null?e=n.params.width:e=r[0].clientWidth,typeof n.params.height<"u"&&n.params.height!==null?t=n.params.height:t=r[0].clientHeight,!(e===0&&n.isHorizontal()||t===0&&n.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function qp(){const n=this;function e(S){return n.isHorizontal()?S:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[S]}function t(S,V){return parseFloat(S.getPropertyValue(e(V))||0)}const r=n.params,{$wrapperEl:s,size:o,rtlTranslate:l,wrongRTL:a}=n,d=n.virtual&&r.virtual.enabled,c=d?n.virtual.slides.length:n.slides.length,u=s.children(`.${n.params.slideClass}`),f=d?n.virtual.slides.length:u.length;let m=[];const h=[],g=[];let _=r.slidesOffsetBefore;typeof _=="function"&&(_=r.slidesOffsetBefore.call(n));let p=r.slidesOffsetAfter;typeof p=="function"&&(p=r.slidesOffsetAfter.call(n));const C=n.snapGrid.length,y=n.slidesGrid.length;let w=r.spaceBetween,v=-_,b=0,k=0;if(typeof o>"u")return;typeof w=="string"&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*o),n.virtualSize=-w,l?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(jn(n.wrapperEl,"--swiper-centered-offset-before",""),jn(n.wrapperEl,"--swiper-centered-offset-after",""));const x=r.grid&&r.grid.rows>1&&n.grid;x&&n.grid.initSlides(f);let I;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(S=>typeof r.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S<f;S+=1){I=0;const V=u.eq(S);if(x&&n.grid.updateSlide(S,V,f,e),V.css("display")!=="none"){if(r.slidesPerView==="auto"){D&&(u[S].style[e("width")]="");const M=getComputedStyle(V[0]),L=V[0].style.transform,E=V[0].style.webkitTransform;if(L&&(V[0].style.transform="none"),E&&(V[0].style.webkitTransform="none"),r.roundLengths)I=n.isHorizontal()?V.outerWidth(!0):V.outerHeight(!0);else{const z=t(M,"width"),B=t(M,"padding-left"),T=t(M,"padding-right"),F=t(M,"margin-left"),ee=t(M,"margin-right"),oe=M.getPropertyValue("box-sizing");if(oe&&oe==="border-box")I=z+F+ee;else{const{clientWidth:Q,offsetWidth:ve}=V[0];I=z+B+T+F+ee+(ve-Q)}}L&&(V[0].style.transform=L),E&&(V[0].style.webkitTransform=E),r.roundLengths&&(I=Math.floor(I))}else I=(o-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(I=Math.floor(I)),u[S]&&(u[S].style[e("width")]=`${I}px`);u[S]&&(u[S].swiperSlideSize=I),g.push(I),r.centeredSlides?(v=v+I/2+b/2+w,b===0&&S!==0&&(v=v-o/2-w),S===0&&(v=v-o/2-w),Math.abs(v)<1/1e3&&(v=0),r.roundLengths&&(v=Math.floor(v)),k%r.slidesPerGroup===0&&m.push(v),h.push(v)):(r.roundLengths&&(v=Math.floor(v)),(k-Math.min(n.params.slidesPerGroupSkip,k))%n.params.slidesPerGroup===0&&m.push(v),h.push(v),v=v+I+w),n.virtualSize+=I+w,b=I,k+=1}}if(n.virtualSize=Math.max(n.virtualSize,o)+p,l&&a&&(r.effect==="slide"||r.effect==="coverflow")&&s.css({width:`${n.virtualSize+r.spaceBetween}px`}),r.setWrapperSize&&s.css({[e("width")]:`${n.virtualSize+r.spaceBetween}px`}),x&&n.grid.updateWrapperSize(I,m,e),!r.centeredSlides){const S=[];for(let V=0;V<m.length;V+=1){let M=m[V];r.roundLengths&&(M=Math.floor(M)),m[V]<=n.virtualSize-o&&S.push(M)}m=S,Math.floor(n.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(n.virtualSize-o)}if(m.length===0&&(m=[0]),r.spaceBetween!==0){const S=n.isHorizontal()&&l?"marginLeft":e("marginRight");u.filter((V,M)=>r.cssMode?M!==u.length-1:!0).css({[S]:`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let S=0;g.forEach(M=>{S+=M+(r.spaceBetween?r.spaceBetween:0)}),S-=r.spaceBetween;const V=S-o;m=m.map(M=>M<0?-_:M>V?V+p:M)}if(r.centerInsufficientSlides){let S=0;if(g.forEach(V=>{S+=V+(r.spaceBetween?r.spaceBetween:0)}),S-=r.spaceBetween,S<o){const V=(o-S)/2;m.forEach((M,L)=>{m[L]=M-V}),h.forEach((M,L)=>{h[L]=M+V})}}if(Object.assign(n,{slides:u,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){jn(n.wrapperEl,"--swiper-centered-offset-before",`${-m[0]}px`),jn(n.wrapperEl,"--swiper-centered-offset-after",`${n.size/2-g[g.length-1]/2}px`);const S=-n.snapGrid[0],V=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(M=>M+S),n.slidesGrid=n.slidesGrid.map(M=>M+V)}if(f!==c&&n.emit("slidesLengthChange"),m.length!==C&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),h.length!==y&&n.emit("slidesGridLengthChange"),r.watchSlidesProgress&&n.updateSlidesOffset(),!d&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const S=`${r.containerModifierClass}backface-hidden`,V=n.$el.hasClass(S);f<=r.maxBackfaceHiddenSlides?V||n.$el.addClass(S):V&&n.$el.removeClass(S)}}function Xp(n){const e=this,t=[],r=e.virtual&&e.params.virtual.enabled;let s=0,o;typeof n=="number"?e.setTransition(n):n===!0&&e.setTransition(e.params.speed);const l=a=>r?e.slides.filter(d=>parseInt(d.getAttribute("data-swiper-slide-index"),10)===a)[0]:e.slides.eq(a)[0];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||U([])).each(a=>{t.push(a)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const a=e.activeIndex+o;if(a>e.slides.length&&!r)break;t.push(l(a))}else t.push(l(e.activeIndex));for(o=0;o<t.length;o+=1)if(typeof t[o]<"u"){const a=t[o].offsetHeight;s=a>s?a:s}(s||s===0)&&e.$wrapperEl.css("height",`${s}px`)}function jp(){const n=this,e=n.slides;for(let t=0;t<e.length;t+=1)e[t].swiperSlideOffset=n.isHorizontal()?e[t].offsetLeft:e[t].offsetTop}function Jp(n){n===void 0&&(n=this&&this.translate||0);const e=this,t=e.params,{slides:r,rtlTranslate:s,snapGrid:o}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let l=-n;s&&(l=n),r.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let a=0;a<r.length;a+=1){const d=r[a];let c=d.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(l+(t.centeredSlides?e.minTranslate():0)-c)/(d.swiperSlideSize+t.spaceBetween),f=(l-o[0]+(t.centeredSlides?e.minTranslate():0)-c)/(d.swiperSlideSize+t.spaceBetween),m=-(l-c),h=m+e.slidesSizesGrid[a];(m>=0&&m<e.size-1||h>1&&h<=e.size||m<=0&&h>=e.size)&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(a),r.eq(a).addClass(t.slideVisibleClass)),d.progress=s?-u:u,d.originalProgress=s?-f:f}e.visibleSlides=U(e.visibleSlides)}function Kp(n){const e=this;if(typeof n>"u"){const c=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*c||0}const t=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:l}=e;const a=o,d=l;r===0?(s=0,o=!0,l=!0):(s=(n-e.minTranslate())/r,o=s<=0,l=s>=1),Object.assign(e,{progress:s,isBeginning:o,isEnd:l}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(n),o&&!a&&e.emit("reachBeginning toEdge"),l&&!d&&e.emit("reachEnd toEdge"),(a&&!o||d&&!l)&&e.emit("fromEdge"),e.emit("progress",s)}function Qp(){const n=this,{slides:e,params:t,$wrapperEl:r,activeIndex:s,realIndex:o}=n,l=n.virtual&&t.virtual.enabled;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`);let a;l?a=n.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${s}"]`):a=e.eq(s),a.addClass(t.slideActiveClass),t.loop&&(a.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(t.slideDuplicateActiveClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(t.slideDuplicateActiveClass));let d=a.nextAll(`.${t.slideClass}`).eq(0).addClass(t.slideNextClass);t.loop&&d.length===0&&(d=e.eq(0),d.addClass(t.slideNextClass));let c=a.prevAll(`.${t.slideClass}`).eq(0).addClass(t.slidePrevClass);t.loop&&c.length===0&&(c=e.eq(-1),c.addClass(t.slidePrevClass)),t.loop&&(d.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),c.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()}function Zp(n){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:s,params:o,activeIndex:l,realIndex:a,snapIndex:d}=e;let c=n,u;if(typeof c>"u"){for(let m=0;m<r.length;m+=1)typeof r[m+1]<"u"?t>=r[m]&&t<r[m+1]-(r[m+1]-r[m])/2?c=m:t>=r[m]&&t<r[m+1]&&(c=m+1):t>=r[m]&&(c=m);o.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0)}if(s.indexOf(t)>=0)u=s.indexOf(t);else{const m=Math.min(o.slidesPerGroupSkip,c);u=m+Math.floor((c-m)/o.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),c===l){u!==d&&(e.snapIndex=u,e.emit("snapIndexChange"));return}const f=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:u,realIndex:f,previousIndex:l,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==f&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function e0(n){const e=this,t=e.params,r=U(n).closest(`.${t.slideClass}`)[0];let s=!1,o;if(r){for(let l=0;l<e.slides.length;l+=1)if(e.slides[l]===r){s=!0,o=l;break}}if(r&&s)e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(U(r).attr("data-swiper-slide-index"),10):e.clickedIndex=o;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}t.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}const t0={updateSize:Yp,updateSlides:qp,updateAutoHeight:Xp,updateSlidesOffset:jp,updateSlidesProgress:Jp,updateProgress:Kp,updateSlidesClasses:Qp,updateActiveIndex:Zp,updateClickedSlide:e0};function n0(n){n===void 0&&(n=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:r,translate:s,$wrapperEl:o}=e;if(t.virtualTranslate)return r?-s:s;if(t.cssMode)return s;let l=Mp(o[0],n);return r&&(l=-l),l||0}function i0(n,e){const t=this,{rtlTranslate:r,params:s,$wrapperEl:o,wrapperEl:l,progress:a}=t;let d=0,c=0;const u=0;t.isHorizontal()?d=r?-n:n:c=n,s.roundLengths&&(d=Math.floor(d),c=Math.floor(c)),s.cssMode?l[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-d:-c:s.virtualTranslate||o.transform(`translate3d(${d}px, ${c}px, ${u}px)`),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?d:c;let f;const m=t.maxTranslate()-t.minTranslate();m===0?f=0:f=(n-t.minTranslate())/m,f!==a&&t.updateProgress(n),t.emit("setTranslate",t.translate,e)}function r0(){return-this.snapGrid[0]}function o0(){return-this.snapGrid[this.snapGrid.length-1]}function s0(n,e,t,r,s){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=!0);const o=this,{params:l,wrapperEl:a}=o;if(o.animating&&l.preventInteractionOnTransition)return!1;const d=o.minTranslate(),c=o.maxTranslate();let u;if(r&&n>d?u=d:r&&n<c?u=c:u=n,o.updateProgress(u),l.cssMode){const f=o.isHorizontal();if(e===0)a[f?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Ds({swiper:o,targetPosition:-u,side:f?"left":"top"}),!0;a.scrollTo({[f?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(u),t&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),t&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(m){!o||o.destroyed||m.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,t&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}const l0={getTranslate:n0,setTranslate:i0,minTranslate:r0,maxTranslate:o0,translateTo:s0};function a0(n,e){const t=this;t.params.cssMode||t.$wrapperEl.transition(n),t.emit("setTransition",n,e)}function Ns(n){let{swiper:e,runCallbacks:t,direction:r,step:s}=n;const{activeIndex:o,previousIndex:l}=e;let a=r;if(a||(o>l?a="next":o<l?a="prev":a="reset"),e.emit(`transition${s}`),t&&o!==l){if(a==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),a==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function d0(n,e){n===void 0&&(n=!0);const t=this,{params:r}=t;r.cssMode||(r.autoHeight&&t.updateAutoHeight(),Ns({swiper:t,runCallbacks:n,direction:e,step:"Start"}))}function c0(n,e){n===void 0&&(n=!0);const t=this,{params:r}=t;t.animating=!1,!r.cssMode&&(t.setTransition(0),Ns({swiper:t,runCallbacks:n,direction:e,step:"End"}))}const u0={setTransition:a0,transitionStart:d0,transitionEnd:c0};function f0(n,e,t,r,s){if(n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof n!="number"&&typeof n!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof n}] given.`);if(typeof n=="string"){const w=parseInt(n,10);if(!isFinite(w))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=w}const o=this;let l=n;l<0&&(l=0);const{params:a,snapGrid:d,slidesGrid:c,previousIndex:u,activeIndex:f,rtlTranslate:m,wrapperEl:h,enabled:g}=o;if(o.animating&&a.preventInteractionOnTransition||!g&&!r&&!s)return!1;const _=Math.min(o.params.slidesPerGroupSkip,l);let p=_+Math.floor((l-_)/o.params.slidesPerGroup);p>=d.length&&(p=d.length-1),(f||a.initialSlide||0)===(u||0)&&t&&o.emit("beforeSlideChangeStart");const C=-d[p];if(o.updateProgress(C),a.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const v=-Math.floor(C*100),b=Math.floor(c[w]*100),k=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?v>=b&&v<k-(k-b)/2?l=w:v>=b&&v<k&&(l=w+1):v>=b&&(l=w)}if(o.initialized&&l!==f&&(!o.allowSlideNext&&C<o.translate&&C<o.minTranslate()||!o.allowSlidePrev&&C>o.translate&&C>o.maxTranslate()&&(f||0)!==l))return!1;let y;if(l>f?y="next":l<f?y="prev":y="reset",m&&-C===o.translate||!m&&C===o.translate)return o.updateActiveIndex(l),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(C),y!=="reset"&&(o.transitionStart(t,y),o.transitionEnd(t,y)),!1;if(a.cssMode){const w=o.isHorizontal(),v=m?C:-C;if(e===0){const b=o.virtual&&o.params.virtual.enabled;b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),h[w?"scrollLeft":"scrollTop"]=v,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1})}else{if(!o.support.smoothScroll)return Ds({swiper:o,targetPosition:v,side:w?"left":"top"}),!0;h.scrollTo({[w?"left":"top"]:v,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(C),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,r),o.transitionStart(t,y),e===0?o.transitionEnd(t,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(v){!o||o.destroyed||v.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(t,y))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0}function h0(n,e,t,r){if(n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof n=="string"){const l=parseInt(n,10);if(!isFinite(l))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=l}const s=this;let o=n;return s.params.loop&&(o+=s.loopedSlides),s.slideTo(o,e,t,r)}function m0(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);const r=this,{animating:s,enabled:o,params:l}=r;if(!o)return r;let a=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const d=r.activeIndex<l.slidesPerGroupSkip?1:a;if(l.loop){if(s&&l.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return l.rewind&&r.isEnd?r.slideTo(0,n,e,t):r.slideTo(r.activeIndex+d,n,e,t)}function g0(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);const r=this,{params:s,animating:o,snapGrid:l,slidesGrid:a,rtlTranslate:d,enabled:c}=r;if(!c)return r;if(s.loop){if(o&&s.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}const u=d?r.translate:-r.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(u),h=l.map(p=>f(p));let g=l[h.indexOf(m)-1];if(typeof g>"u"&&s.cssMode){let p;l.forEach((C,y)=>{m>=C&&(p=y)}),typeof p<"u"&&(g=l[p>0?p-1:p])}let _=0;if(typeof g<"u"&&(_=a.indexOf(g),_<0&&(_=r.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic("previous",!0)+1,_=Math.max(_,0))),s.rewind&&r.isBeginning){const p=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(p,n,e,t)}return r.slideTo(_,n,e,t)}function p0(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);const r=this;return r.slideTo(r.activeIndex,n,e,t)}function b0(n,e,t,r){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0),r===void 0&&(r=.5);const s=this;let o=s.activeIndex;const l=Math.min(s.params.slidesPerGroupSkip,o),a=l+Math.floor((o-l)/s.params.slidesPerGroup),d=s.rtlTranslate?s.translate:-s.translate;if(d>=s.snapGrid[a]){const c=s.snapGrid[a],u=s.snapGrid[a+1];d-c>(u-c)*r&&(o+=s.params.slidesPerGroup)}else{const c=s.snapGrid[a-1],u=s.snapGrid[a];d-c<=(u-c)*r&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,n,e,t)}function w0(){const n=this,{params:e,$wrapperEl:t}=n,r=e.slidesPerView==="auto"?n.slidesPerViewDynamic():e.slidesPerView;let s=n.clickedIndex,o;if(e.loop){if(n.animating)return;o=parseInt(U(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?s<n.loopedSlides-r/2||s>n.slides.length-n.loopedSlides+r/2?(n.loopFix(),s=t.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Ai(()=>{n.slideTo(s)})):n.slideTo(s):s>n.slides.length-r?(n.loopFix(),s=t.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Ai(()=>{n.slideTo(s)})):n.slideTo(s)}else n.slideTo(s)}const y0={slideTo:f0,slideToLoop:h0,slideNext:m0,slidePrev:g0,slideReset:p0,slideToClosest:b0,slideToClickedSlide:w0};function k0(){const n=this,e=Ne(),{params:t,$wrapperEl:r}=n,s=r.children().length>0?U(r.children()[0].parentNode):r;s.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let o=s.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const d=t.slidesPerGroup-o.length%t.slidesPerGroup;if(d!==t.slidesPerGroup){for(let c=0;c<d;c+=1){const u=U(e.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);s.append(u)}o=s.children(`.${t.slideClass}`)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=o.length),n.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>o.length&&n.params.loopedSlidesLimit&&(n.loopedSlides=o.length);const l=[],a=[];o.each((d,c)=>{U(d).attr("data-swiper-slide-index",c)});for(let d=0;d<n.loopedSlides;d+=1){const c=d-Math.floor(d/o.length)*o.length;a.push(o.eq(c)[0]),l.unshift(o.eq(o.length-c-1)[0])}for(let d=0;d<a.length;d+=1)s.append(U(a[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let d=l.length-1;d>=0;d-=1)s.prepend(U(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass))}function v0(){const n=this;n.emit("beforeLoopFix");const{activeIndex:e,slides:t,loopedSlides:r,allowSlidePrev:s,allowSlideNext:o,snapGrid:l,rtlTranslate:a}=n;let d;n.allowSlidePrev=!0,n.allowSlideNext=!0;const u=-l[e]-n.getTranslate();e<r?(d=t.length-r*3+e,d+=r,n.slideTo(d,0,!1,!0)&&u!==0&&n.setTranslate((a?-n.translate:n.translate)-u)):e>=t.length-r&&(d=-t.length+e+r,d+=r,n.slideTo(d,0,!1,!0)&&u!==0&&n.setTranslate((a?-n.translate:n.translate)-u)),n.allowSlidePrev=s,n.allowSlideNext=o,n.emit("loopFix")}function _0(){const n=this,{$wrapperEl:e,params:t,slides:r}=n;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),r.removeAttr("data-swiper-slide-index")}const C0={loopCreate:k0,loopFix:v0,loopDestroy:_0};function S0(n){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;t.style.cursor="move",t.style.cursor=n?"grabbing":"grab"}function x0(){const n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n[n.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const V0={setGrabCursor:S0,unsetGrabCursor:x0};function E0(n,e){e===void 0&&(e=this);function t(r){if(!r||r===Ne()||r===ye())return null;r.assignedSlot&&(r=r.assignedSlot);const s=r.closest(n);return!s&&!r.getRootNode?null:s||t(r.getRootNode().host)}return t(e)}function T0(n){const e=this,t=Ne(),r=ye(),s=e.touchEventsData,{params:o,touches:l,enabled:a}=e;if(!a||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let d=n;d.originalEvent&&(d=d.originalEvent);let c=U(d.target);if(o.touchEventsTarget==="wrapper"&&!c.closest(e.wrapperEl).length||(s.isTouchEvent=d.type==="touchstart",!s.isTouchEvent&&"which"in d&&d.which===3)||!s.isTouchEvent&&"button"in d&&d.button>0||s.isTouched&&s.isMoved)return;!!o.noSwipingClass&&o.noSwipingClass!==""&&d.target&&d.target.shadowRoot&&n.path&&n.path[0]&&(c=U(n.path[0]));const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,m=!!(d.target&&d.target.shadowRoot);if(o.noSwiping&&(m?E0(f,c[0]):c.closest(f)[0])){e.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;l.currentX=d.type==="touchstart"?d.targetTouches[0].pageX:d.pageX,l.currentY=d.type==="touchstart"?d.targetTouches[0].pageY:d.pageY;const h=l.currentX,g=l.currentY,_=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(_&&(h<=p||h>=r.innerWidth-p))if(_==="prevent")n.preventDefault();else return;if(Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=h,l.startY=g,s.touchStartTime=vn(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1),d.type!=="touchstart"){let C=!0;c.is(s.focusableElements)&&(C=!1,c[0].nodeName==="SELECT"&&(s.isTouched=!1)),t.activeElement&&U(t.activeElement).is(s.focusableElements)&&t.activeElement!==c[0]&&t.activeElement.blur();const y=C&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!c[0].isContentEditable&&d.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",d)}function B0(n){const e=Ne(),t=this,r=t.touchEventsData,{params:s,touches:o,rtlTranslate:l,enabled:a}=t;if(!a)return;let d=n;if(d.originalEvent&&(d=d.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",d);return}if(r.isTouchEvent&&d.type!=="touchmove")return;const c=d.type==="touchmove"&&d.targetTouches&&(d.targetTouches[0]||d.changedTouches[0]),u=d.type==="touchmove"?c.pageX:d.pageX,f=d.type==="touchmove"?c.pageY:d.pageY;if(d.preventedByNestedSwiper){o.startX=u,o.startY=f;return}if(!t.allowTouchMove){U(d.target).is(r.focusableElements)||(t.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:u,startY:f,currentX:u,currentY:f}),r.touchStartTime=vn());return}if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop){if(t.isVertical()){if(f<o.startY&&t.translate<=t.maxTranslate()||f>o.startY&&t.translate>=t.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u<o.startX&&t.translate<=t.maxTranslate()||u>o.startX&&t.translate>=t.minTranslate())return}if(r.isTouchEvent&&e.activeElement&&d.target===e.activeElement&&U(d.target).is(r.focusableElements)){r.isMoved=!0,t.allowClick=!1;return}if(r.allowTouchCallbacks&&t.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;o.currentX=u,o.currentY=f;const m=o.currentX-o.startX,h=o.currentY-o.startY;if(t.params.threshold&&Math.sqrt(m**2+h**2)<t.params.threshold)return;if(typeof r.isScrolling>"u"){let C;t.isHorizontal()&&o.currentY===o.startY||t.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:m*m+h*h>=25&&(C=Math.atan2(Math.abs(h),Math.abs(m))*180/Math.PI,r.isScrolling=t.isHorizontal()?C>s.touchAngle:90-C>s.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",d),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!r.startMoving)return;t.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation(),r.isMoved||(s.loop&&!s.cssMode&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,s.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",d)),t.emit("sliderMove",d),r.isMoved=!0;let g=t.isHorizontal()?m:h;o.diff=g,g*=s.touchRatio,l&&(g=-g),t.swipeDirection=g>0?"prev":"next",r.currentTranslate=g+r.startTranslate;let _=!0,p=s.resistanceRatio;if(s.touchReleaseOnEdges&&(p=0),g>0&&r.currentTranslate>t.minTranslate()?(_=!1,s.resistance&&(r.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+r.startTranslate+g)**p)):g<0&&r.currentTranslate<t.maxTranslate()&&(_=!1,s.resistance&&(r.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-r.startTranslate-g)**p)),_&&(d.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(g)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=t.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&t.freeMode||s.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&s.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}function I0(n){const e=this,t=e.touchEventsData,{params:r,touches:s,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a)return;let d=n;if(d.originalEvent&&(d=d.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",d),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}r.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=vn(),u=c-t.touchStartTime;if(e.allowClick){const y=d.path||d.composedPath&&d.composedPath();e.updateClickedSlide(y&&y[0]||d.target),e.emit("tap click",d),u<300&&c-t.lastClickTime<300&&e.emit("doubleTap doubleClick",d)}if(t.lastClickTime=vn(),Ai(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||s.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let f;if(r.followFinger?f=o?e.translate:-e.translate:f=-t.currentTranslate,r.cssMode)return;if(e.params.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}let m=0,h=e.slidesSizesGrid[0];for(let y=0;y<l.length;y+=y<r.slidesPerGroupSkip?1:r.slidesPerGroup){const w=y<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof l[y+w]<"u"?f>=l[y]&&f<l[y+w]&&(m=y,h=l[y+w]-l[y]):f>=l[y]&&(m=y,h=l[l.length-1]-l[l.length-2])}let g=null,_=null;r.rewind&&(e.isBeginning?_=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const p=(f-l[m])/h,C=m<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(p>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?g:m+C):e.slideTo(m)),e.swipeDirection==="prev"&&(p>1-r.longSwipesRatio?e.slideTo(m+C):_!==null&&p<0&&Math.abs(p)>r.longSwipesRatio?e.slideTo(_):e.slideTo(m))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(d.target===e.navigation.nextEl||d.target===e.navigation.prevEl)?d.target===e.navigation.nextEl?e.slideTo(m+C):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(g!==null?g:m+C),e.swipeDirection==="prev"&&e.slideTo(_!==null?_:m))}}function Ls(){const n=this,{params:e,el:t}=n;if(t&&t.offsetWidth===0)return;e.breakpoints&&n.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:o}=n;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=s,n.allowSlideNext=r,n.params.watchOverflow&&o!==n.snapGrid&&n.checkOverflow()}function D0(n){const e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}function $0(){const n=this,{wrapperEl:e,rtlTranslate:t,enabled:r}=n;if(!r)return;n.previousTranslate=n.translate,n.isHorizontal()?n.translate=-e.scrollLeft:n.translate=-e.scrollTop,n.translate===0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();let s;const o=n.maxTranslate()-n.minTranslate();o===0?s=0:s=(n.translate-n.minTranslate())/o,s!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}let Ps=!1;function N0(){}const Ms=(n,e)=>{const t=Ne(),{params:r,touchEvents:s,el:o,wrapperEl:l,device:a,support:d}=n,c=!!r.nested,u=e==="on"?"addEventListener":"removeEventListener",f=e;if(!d.touch)o[u](s.start,n.onTouchStart,!1),t[u](s.move,n.onTouchMove,c),t[u](s.end,n.onTouchEnd,!1);else{const m=s.start==="touchstart"&&d.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;o[u](s.start,n.onTouchStart,m),o[u](s.move,n.onTouchMove,d.passiveListener?{passive:!1,capture:c}:c),o[u](s.end,n.onTouchEnd,m),s.cancel&&o[u](s.cancel,n.onTouchEnd,m)}(r.preventClicks||r.preventClicksPropagation)&&o[u]("click",n.onClick,!0),r.cssMode&&l[u]("scroll",n.onScroll),r.updateOnWindowResize?n[f](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ls,!0):n[f]("observerUpdate",Ls,!0)};function L0(){const n=this,e=Ne(),{params:t,support:r}=n;n.onTouchStart=T0.bind(n),n.onTouchMove=B0.bind(n),n.onTouchEnd=I0.bind(n),t.cssMode&&(n.onScroll=$0.bind(n)),n.onClick=D0.bind(n),r.touch&&!Ps&&(e.addEventListener("touchstart",N0),Ps=!0),Ms(n,"on")}function P0(){Ms(this,"off")}const M0={attachEvents:L0,detachEvents:P0},zs=(n,e)=>n.grid&&e.grid&&e.grid.rows>1;function z0(){const n=this,{activeIndex:e,initialized:t,loopedSlides:r=0,params:s,$el:o}=n,l=s.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=n.getBreakpoint(l,n.params.breakpointsBase,n.el);if(!a||n.currentBreakpoint===a)return;const c=(a in l?l[a]:void 0)||n.originalParams,u=zs(n,s),f=zs(n,c),m=s.enabled;u&&!f?(o.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`),n.emitContainerClasses()):!u&&f&&(o.addClass(`${s.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&s.grid.fill==="column")&&o.addClass(`${s.containerModifierClass}grid-column`),n.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(p=>{const C=s[p]&&s[p].enabled,y=c[p]&&c[p].enabled;C&&!y&&n[p].disable(),!C&&y&&n[p].enable()});const h=c.direction&&c.direction!==s.direction,g=s.loop&&(c.slidesPerView!==s.slidesPerView||h);h&&t&&n.changeDirection(),Le(n.params,c);const _=n.params.enabled;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),m&&!_?n.disable():!m&&_&&n.enable(),n.currentBreakpoint=a,n.emit("_beforeBreakpoint",c),g&&t&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(e-r+n.loopedSlides,0,!1)),n.emit("breakpoint",c)}function R0(n,e,t){if(e===void 0&&(e="window"),!n||e==="container"&&!t)return;let r=!1;const s=ye(),o=e==="window"?s.innerHeight:t.clientHeight,l=Object.keys(n).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const d=parseFloat(a.substr(1));return{value:o*d,point:a}}return{value:a,point:a}});l.sort((a,d)=>parseInt(a.value,10)-parseInt(d.value,10));for(let a=0;a<l.length;a+=1){const{point:d,value:c}=l[a];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(r=d):c<=t.clientWidth&&(r=d)}return r||"max"}const F0={setBreakpoint:z0,getBreakpoint:R0};function O0(n,e){const t=[];return n.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(s=>{r[s]&&t.push(e+s)}):typeof r=="string"&&t.push(e+r)}),t}function A0(){const n=this,{classNames:e,params:t,rtl:r,$el:s,device:o,support:l}=n,a=O0(["initialized",t.direction,{"pointer-events":!l.touch},{"free-mode":n.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:r},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.addClass([...e].join(" ")),n.emitContainerClasses()}function W0(){const n=this,{$el:e,classNames:t}=n;e.removeClass(t.join(" ")),n.emitContainerClasses()}const H0={addClasses:A0,removeClasses:W0};function G0(n,e,t,r,s,o){const l=ye();let a;function d(){o&&o()}!U(n).parent("picture")[0]&&(!n.complete||!s)&&e?(a=new l.Image,a.onload=d,a.onerror=d,r&&(a.sizes=r),t&&(a.srcset=t),e&&(a.src=e)):d()}function U0(){const n=this;n.imagesToLoad=n.$el.find("img");function e(){typeof n>"u"||n===null||!n||n.destroyed||(n.imagesLoaded!==void 0&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}for(let t=0;t<n.imagesToLoad.length;t+=1){const r=n.imagesToLoad[t];n.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}const Y0={loadImage:G0,preloadImages:U0};function q0(){const n=this,{isLocked:e,params:t}=n,{slidesOffsetBefore:r}=t;if(r){const s=n.slides.length-1,o=n.slidesGrid[s]+n.slidesSizesGrid[s]+r*2;n.isLocked=n.size>o}else n.isLocked=n.snapGrid.length===1;t.allowSlideNext===!0&&(n.allowSlideNext=!n.isLocked),t.allowSlidePrev===!0&&(n.allowSlidePrev=!n.isLocked),e&&e!==n.isLocked&&(n.isEnd=!1),e!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock")}const X0={checkOverflow:q0},Rs={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function j0(n,e){return function(r){r===void 0&&(r={});const s=Object.keys(r)[0],o=r[s];if(typeof o!="object"||o===null){Le(e,r);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&n[s]===!0&&(n[s]={auto:!0}),!(s in n&&"enabled"in o)){Le(e,r);return}n[s]===!0&&(n[s]={enabled:!0}),typeof n[s]=="object"&&!("enabled"in n[s])&&(n[s].enabled=!0),n[s]||(n[s]={enabled:!1}),Le(e,r)}}const Ui={eventsEmitter:Up,update:t0,translate:l0,transition:u0,slide:y0,loop:C0,grabCursor:V0,events:M0,breakpoints:F0,checkOverflow:X0,classes:H0,images:Y0},Yi={};class He{constructor(){let e,t;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];if(s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?t=s[0]:[e,t]=s,t||(t={}),t=Le({},t),e&&!t.el&&(t.el=e),t.el&&U(t.el).length>1){const c=[];return U(t.el).each(u=>{const f=Le({},t,{el:u});c.push(new He(f))}),c}const l=this;l.__swiper__=!0,l.support=$s(),l.device=Op({userAgent:t.userAgent}),l.browser=Wp(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const a={};l.modules.forEach(c=>{c({swiper:l,extendParams:j0(t,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const d=Le({},Rs,a);return l.params=Le({},d,Yi,t),l.originalParams=Le({},l.params),l.passedParams=Le({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach(c=>{l.on(c,l.params.on[c])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=U,Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:U(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){const u=["touchstart","touchmove","touchend","touchcancel"],f=["pointerdown","pointermove","pointerup"];return l.touchEventsTouch={start:u[0],move:u[1],end:u[2],cancel:u[3]},l.touchEventsDesktop={start:f[0],move:f[1],end:f[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:vn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;!e.enabled||(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const r=this;e=Math.min(Math.max(e,0),1);const s=r.minTranslate(),l=(r.maxTranslate()-s)*e+s;r.translateTo(l,typeof t>"u"?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(r=>{const s=e.getSlideClasses(r);t.push({slideEl:r,classNames:s}),e.emit("_slideClass",r,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const r=this,{params:s,slides:o,slidesGrid:l,slidesSizesGrid:a,size:d,activeIndex:c}=r;let u=1;if(s.centeredSlides){let f=o[c].swiperSlideSize,m;for(let h=c+1;h<o.length;h+=1)o[h]&&!m&&(f+=o[h].swiperSlideSize,u+=1,f>d&&(m=!0));for(let h=c-1;h>=0;h-=1)o[h]&&!m&&(f+=o[h].swiperSlideSize,u+=1,f>d&&(m=!0))}else if(e==="current")for(let f=c+1;f<o.length;f+=1)(t?l[f]+a[f]-l[c]<d:l[f]-l[c]<d)&&(u+=1);else for(let f=c-1;f>=0;f-=1)l[c]-l[f]<d&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const l=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(l,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let o;e.params.freeMode&&e.params.freeMode.enabled?(s(),e.params.autoHeight&&e.updateAutoHeight()):((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?o=e.slideTo(e.slides.length-1,0,!1,!0):o=e.slideTo(e.activeIndex,0,!1,!0),o||s()),r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const r=this,s=r.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(r.$el.removeClass(`${r.params.containerModifierClass}${s}`).addClass(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.each(o=>{e==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const r=U(e||t.params.el);if(e=r[0],!e)return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const a=U(e.shadowRoot.querySelector(s()));return a.children=d=>r.children(d),a}return r.children?r.children(s()):U(r).children(s())})();if(l.length===0&&t.params.createElements){const d=Ne().createElement("div");l=U(d),d.className=t.params.wrapperClass,r.append(d),r.children(`.${t.params.slideClass}`).each(c=>{l.append(c)})}return Object.assign(t,{$el:r,el:e,$wrapperEl:l,wrapperEl:l[0],mounted:!0,rtl:e.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl"),wrongRTL:l.css("display")==="-webkit-box"}),!0}init(e){const t=this;return t.initialized||t.mount(e)===!1||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const r=this,{params:s,$el:o,$wrapperEl:l,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),s.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),l.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(d=>{r.off(d)}),e!==!1&&(r.$el[0].swiper=null,Lp(r)),r.destroyed=!0),null}static extendDefaults(e){Le(Yi,e)}static get extendedDefaults(){return Yi}static get defaults(){return Rs}static installModule(e){He.prototype.__modules__||(He.prototype.__modules__=[]);const t=He.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>He.installModule(t)),He):(He.installModule(e),He)}}Object.keys(Ui).forEach(n=>{Object.keys(Ui[n]).forEach(e=>{He.prototype[e]=Ui[n][e]})}),He.use([Hp,Gp]);const uv="",J0={name:"FvSwipeControl",emits:["status-change"],props:{...qg,value:{default:()=>({})},minOpWidth:{default:60},maxOpWidth:{default:300},leftOptions:{default:()=>[]},options:{default:()=>[{icon:"Delete",func:()=>{},type:"delete"}]},itemPadding:{default:"0 10px"},disabledLeft:{default:!0},disabledRight:{default:!1},disabledLeftFull:{default:!0},disabledRightFull:{default:!1},disabled:{default:!1}},data(){return{status:"normal",triggerType:"auto",swiper:null,swiperProgress:0,slidesProgress:[],thisLeftOptions:this.leftOptions,thisOptions:this.options}},watch:{value(){this.triggerType="auto",this.swiper.slideTo(1,300,!1),this.status="normal"},status(n){this.$emit("status-change",n)},isDisabled(n){n?this.swiper.disabled():this.swiper.enable()}},computed:{computedProgress(){return n=>this.slidesProgress[n]},computedWidth(){return n=>this.swiper?this.swiper.width*n:0},opWidth(){let n=this.computedWidth(.3);return n<this.minOpWidth?n=this.minOpWidth:n>this.maxOpWidth&&(n=this.maxOpWidth),n},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.init(),this.isDisabled?this.swiper.disable():this.swiper.enable()},methods:{init(){this.swiper=new He(this.$refs.container,{initialSlide:1,slidesPerView:1,longSwipesRatio:2,shortSwipes:!1,watchSlidesProgress:!0,on:{touchStart:n=>{this.triggerType="manual"},touchMove:(n,e)=>{this.refreshProgress(n)},touchEnd:(n,e)=>{this.refreshProgress(n)},transitionStart:n=>{if(this.triggerType==="auto")return;let e=this.slidesProgress[1];this.status!="normal"&&e>=-.5&&e<.5?(this.status="normal",this.swiper.slideTo(1,300,!1)):e<-.1&&e>=-.5?this.disabledLeft?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(.7)),this.status="left"):e<-.5?this.disabledLeftFull?this.swiper.slideTo(1,300,!1):(this.swiper.slidePrev(),this.status="leftFull"):e>.1&&e<=.5?this.disabledRight?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(1.3)),this.status="right"):e>.5&&(this.disabledRightFull?this.swiper.slideTo(1,300,!1):(this.swiper.slideNext(),this.status="rightFull"))},transitionEnd:(n,e)=>{this.triggerType="auto",this.refreshProgress(n),this.status=="rightFull"?this.callFunc(this.thisOptions[this.thisOptions.length-1]):this.status=="leftFull"&&this.callFunc(this.thisLeftOptions[this.thisLeftOptions.length-1])}}})},refreshProgress(n){this.swiperProgress=n.progress;let e=[];for(let t=0;t<n.slides.length;t++)e.push(n.slides[t].progress);this.slidesProgress=e},callFunc(n){this.valueTrigger(n.disabled)||n.func&&n.func(this.value)},valueTrigger(n){return typeof n=="function"?n():n}}},K0={class:"fv-swiper-container swiper-container",ref:"container"},Q0={class:"swiper-wrapper",ref:"wrapper"},Z0={class:"fv-SwipeControl-left swiper-slide"},eb=["onClick"],tb={class:"fv-SwipeControl-right swiper-slide"},nb=["onClick"];function ib(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SwipeControl",[o.$theme]])},[i.createElementVNode("div",K0,[i.createElementVNode("div",Q0,[i.createElementVNode("div",Z0,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.leftOptions,(l,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SwipeControl-btn",[o.valueTrigger(l.type)]]),key:a,style:i.normalizeStyle({width:a===t.leftOptions.length-1?"":`${o.opWidth/t.leftOptions.length}px`}),onClick:d=>o.callFunc(l)},[i.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:i.normalizeStyle({width:`${o.opWidth/t.leftOptions.length}px`})},[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon",[`ms-Icon--${o.valueTrigger(l.icon)}`]])},null,2),[[i.vShow,o.valueTrigger(l.icon)]]),i.withDirectives(i.createElementVNode("p",{style:{"margin-left":"5px"}},i.toDisplayString(o.valueTrigger(l.text)),513),[[i.vShow,o.valueTrigger(l.text)]])],4)],14,eb))),128))]),i.createElementVNode("div",{class:"fv-SwipeControl-main swiper-slide",style:i.normalizeStyle({padding:t.itemPadding})},[i.renderSlot(n.$slots,"default",{},()=>[i.createTextVNode(" Swipe Control ")])],4),i.createElementVNode("div",tb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisOptions,(l,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SwipeControl-btn",[o.valueTrigger(l.type)]]),key:a,style:i.normalizeStyle({width:a===s.thisOptions.length-1?"":`${o.opWidth/s.thisOptions.length}px`}),onClick:d=>o.callFunc(l)},[i.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:i.normalizeStyle({width:`${o.opWidth/s.thisOptions.length}px`})},[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon",[`ms-Icon--${o.valueTrigger(l.icon)}`]])},null,2),[[i.vShow,o.valueTrigger(l.icon)]]),i.withDirectives(i.createElementVNode("p",{style:{"margin-left":"5px"}},i.toDisplayString(o.valueTrigger(l.text)),513),[[i.vShow,o.valueTrigger(l.text)]])],4)],14,nb))),128))])],512)],512)],2)}const Fs=j(Z(J0,[["render",ib]])),hv="",mv="",gv="",rb={...q};var qi=[],Xi=function(n){return typeof n>"u"},ji=/\s*(\.\d+|\d+(?:\.\d+)?)(%)?\s*/,Jn=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,ob=/\s*(\.\d+|\d+(?:\.\d+)?)\s*/,sb=new RegExp("^(rgb|hsl|hsv)a?\\("+ji.source+","+ji.source+","+ji.source+"(?:,"+ob.source+")?\\)$","i");function re(n){if(Array.isArray(n)){if(typeof n[0]=="string"&&typeof re[n[0]]=="function")return new re[n[0]](n.slice(1,n.length));if(n.length===4)return new re.RGB(n[0]/255,n[1]/255,n[2]/255,n[3]/255)}else if(typeof n=="string"){var e=n.toLowerCase();re.namedColors[e]&&(n="#"+re.namedColors[e]),e==="transparent"&&(n="rgba(0,0,0,0)");var t=n.match(sb);if(t){var r=t[1].toUpperCase(),s=Xi(t[8])?t[8]:parseFloat(t[8]),o=r[0]==="H",l=t[3]?100:o?360:255,a=t[5]||o?100:255,d=t[7]||o?100:255;if(Xi(re[r]))throw new Error("color."+r+" is not installed.");return new re[r](parseFloat(t[2])/l,parseFloat(t[4])/a,parseFloat(t[6])/d,s)}n.length<6&&(n=n.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,"$1$1$2$2$3$3"));var c=n.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/i);if(c)return new re.RGB(parseInt(c[1],16)/255,parseInt(c[2],16)/255,parseInt(c[3],16)/255);if(re.CMYK){var u=n.match(new RegExp("^cmyk\\("+Jn.source+","+Jn.source+","+Jn.source+","+Jn.source+"\\)$","i"));if(u)return new re.CMYK(parseFloat(u[1])/100,parseFloat(u[2])/100,parseFloat(u[3])/100,parseFloat(u[4])/100)}}else if(typeof n=="object"&&n.isColor)return n;return!1}re.namedColors={},re.installColorSpace=function(n,e,t){re[n]=function(a){var d=Array.isArray(a)?a:arguments;e.forEach(function(c,u){var f=d[u];if(c==="alpha")this._alpha=isNaN(f)||f>1?1:f<0?0:f;else{if(isNaN(f))throw new Error("["+n+"]: Invalid color: ("+e.join(",")+")");c==="hue"?this._hue=f<0?f-Math.floor(f):f%1:this["_"+c]=f<0?0:f>1?1:f}},this)},re[n].propertyNames=e;var r=re[n].prototype;["valueOf","hex","hexa","css","cssa"].forEach(function(a){r[a]=r[a]||(n==="RGB"?r.hex:function(){return this.rgb()[a]()})}),r.isColor=!0,r.equals=function(a,d){Xi(d)&&(d=1e-10),a=a[n.toLowerCase()]();for(var c=0;c<e.length;c=c+1)if(Math.abs(this["_"+e[c]]-a["_"+e[c]])>d)return!1;return!0},r.toJSON=function(){return[n].concat(e.map(function(a){return this["_"+a]},this))};for(var s in t)if(t.hasOwnProperty(s)){var o=s.match(/^from(.*)$/);o?re[o[1].toUpperCase()].prototype[n.toLowerCase()]=t[s]:r[s]=t[s]}r[n.toLowerCase()]=function(){return this},r.toString=function(){return"["+n+" "+e.map(function(a){return this["_"+a]},this).join(", ")+"]"},e.forEach(function(a){var d=a==="black"?"k":a.charAt(0);r[a]=r[d]=function(c,u){return typeof c>"u"?this["_"+a]:u?new this.constructor(e.map(function(f){return this["_"+f]+(a===f?c:0)},this)):new this.constructor(e.map(function(f){return a===f?c:this["_"+f]},this))}});function l(a,d){var c={};c[d.toLowerCase()]=function(){return this.rgb()[d.toLowerCase()]()},re[d].propertyNames.forEach(function(f){var m=f==="black"?"k":f.charAt(0);c[f]=c[m]=function(h,g){return this[d.toLowerCase()]()[f](h,g)}});for(var u in c)c.hasOwnProperty(u)&&re[a].prototype[u]===void 0&&(re[a].prototype[u]=c[u])}return qi.forEach(function(a){l(n,a),l(a,n)}),qi.push(n),re},re.pluginList=[],re.use=function(n){return re.pluginList.indexOf(n)===-1&&(this.pluginList.push(n),n(re)),re},re.installMethod=function(n,e){return qi.forEach(function(t){re[t].prototype[n]=e}),this},re.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var n=(Math.round(255*this._red)*65536+Math.round(255*this._green)*256+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-n.length)+n},hexa:function(){var n=Math.round(this._alpha*255).toString(16);return"#"+"00".substr(0,2-n.length)+n+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}});var lb=re,Os=function(e){e.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var t=function(l){return l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92},r=t(this._red),s=t(this._green),o=t(this._blue);return new e.XYZ(r*.4124564+s*.3575761+o*.1804375,r*.2126729+s*.7151522+o*.072175,r*.0193339+s*.119192+o*.9503041,this._alpha)},rgb:function(){var t=this._x,r=this._y,s=this._z,o=function(l){return l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l};return new e.RGB(o(t*3.2404542+r*-1.5371385+s*-.4985314),o(t*-.969266+r*1.8760108+s*.041556),o(t*.0556434+r*-.2040259+s*1.0572252),this._alpha)},lab:function(){var t=function(l){return l>.008856?Math.pow(l,.3333333333333333):7.787037*l+.13793103448275862},r=t(this._x/95.047),s=t(this._y/100),o=t(this._z/108.883);return new e.LAB(116*s-16,500*(r-s),200*(s-o),this._alpha)}})},ab=function(e){e.use(Os),e.installColorSpace("LAB",["l","a","b","alpha"],{fromRgb:function(){return this.xyz().lab()},rgb:function(){return this.xyz().rgb()},xyz:function(){var t=function(l){var a=Math.pow(l,3);return a>.008856?a:(l-.13793103448275862)/7.87},r=(this._l+16)/116,s=this._a/500+r,o=r-this._b/200;return new e.XYZ(t(s)*95.047,t(r)*100,t(o)*108.883,this._alpha)}})},As=function(e){e.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var t=this._hue,r=this._saturation,s=this._value,o=Math.min(5,Math.floor(t*6)),l=t*6-o,a=s*(1-r),d=s*(1-l*r),c=s*(1-(1-l)*r),u,f,m;switch(o){case 0:u=s,f=c,m=a;break;case 1:u=d,f=s,m=a;break;case 2:u=a,f=s,m=c;break;case 3:u=a,f=d,m=s;break;case 4:u=c,f=a,m=s;break;case 5:u=s,f=a,m=d;break}return new e.RGB(u,f,m,this._alpha)},hsl:function(){var t=(2-this._saturation)*this._value,r=this._saturation*this._value,s=t<=1?t:2-t,o;return s<1e-9?o=0:o=r/s,new e.HSL(this._hue,o,t/2,this._alpha)},fromRgb:function(){var t=this._red,r=this._green,s=this._blue,o=Math.max(t,r,s),l=Math.min(t,r,s),a=o-l,d,c=o===0?0:a/o,u=o;if(a===0)d=0;else switch(o){case t:d=(r-s)/a/6+(r<s?1:0);break;case r:d=(s-t)/a/6+1/3;break;case s:d=(t-r)/a/6+2/3;break}return new e.HSV(d,c,u,this._alpha)}})},Qt=function(e){e.use(As),e.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var t=this._lightness*2,r=this._saturation*(t<=1?t:2-t),s;return t+r<1e-9?s=0:s=2*r/(t+r),new e.HSV(this._hue,s,(t+r)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})},db=function(e){e.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new e.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var t=this._red,r=this._green,s=this._blue,o=1-t,l=1-r,a=1-s,d=1;return t||r||s?(d=Math.min(o,Math.min(l,a)),o=(o-d)/(1-d),l=(l-d)/(1-d),a=(a-d)/(1-d)):d=1,new e.CMYK(o,l,a,d,this._alpha)}})},cb=function(e){e.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}},ub=function(e){e.installMethod("clearer",function(t){return this.alpha(isNaN(t)?-.1:-t,!0)})},Ws=function(e){function t(r){return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}e.installMethod("luminance",function(){var r=this.rgb();return .2126*t(r._red)+.7152*t(r._green)+.0722*t(r._blue)})},fb=function(e){e.use(Ws),e.installMethod("contrast",function(t){var r=this.luminance(),s=t.luminance();return r>s?(r+.05)/(s+.05):(s+.05)/(r+.05)})},hb=function(e){e.use(Qt),e.installMethod("darken",function(t){return this.lightness(isNaN(t)?-.1:-t,!0)})},mb=function(e){e.use(Qt),e.installMethod("desaturate",function(t){return this.saturation(isNaN(t)?-.1:-t,!0)})},gb=function(e){function t(){var r=this.rgb(),s=r._red*.3+r._green*.59+r._blue*.11;return new e.RGB(s,s,s,r._alpha)}e.installMethod("greyscale",t).installMethod("grayscale",t)},Hs=function(e){e.installMethod("isDark",function(){var t=this.rgb(),r=(t._red*255*299+t._green*255*587+t._blue*255*114)/1e3;return r<128})},pb=function(e){e.use(Hs),e.installMethod("isLight",function(){return!this.isDark()})},bb=function(e){e.use(Qt),e.installMethod("lighten",function(t){return this.lightness(isNaN(t)?.1:t,!0)})},wb=function(e){e.installMethod("mix",function(t,r){t=e(t).rgb(),r=1-(isNaN(r)?.5:r);var s=r*2-1,o=this._alpha-t._alpha,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,a=1-l,d=this.rgb();return new e.RGB(d._red*l+t._red*a,d._green*l+t._green*a,d._blue*l+t._blue*a,d._alpha*r+t._alpha*(1-r))})},yb=function(e){e.installMethod("negate",function(){var t=this.rgb();return new e.RGB(1-t._red,1-t._green,1-t._blue,this._alpha)})},kb=function(e){e.installMethod("opaquer",function(t){return this.alpha(isNaN(t)?.1:t,!0)})},vb=function(e){e.use(Qt),e.installMethod("rotate",function(t){return this.hue((t||0)/360,!0)})},_b=function(e){e.use(Qt),e.installMethod("saturate",function(t){return this.saturation(isNaN(t)?.1:t,!0)})},Cb=function(e){e.installMethod("toAlpha",function(t){var r=this.rgb(),s=t(t).rgb(),o=1e-10,l=new t.RGB(0,0,0,r._alpha),a=["_red","_green","_blue"];return a.forEach(function(d){r[d]<o?l[d]=r[d]:r[d]>s[d]?l[d]=(r[d]-s[d])/(1-s[d]):r[d]>s[d]?l[d]=(s[d]-r[d])/s[d]:l[d]=0}),l._red>l._green?l._red>l._blue?r._alpha=l._red:r._alpha=l._blue:l._green>l._blue?r._alpha=l._green:r._alpha=l._blue,r._alpha<o||(a.forEach(function(d){r[d]=(r[d]-s[d])/r._alpha+s[d]}),r._alpha*=l._alpha),r})},Sb=lb.use(Os).use(ab).use(As).use(Qt).use(db).use(cb).use(ub).use(fb).use(hb).use(mb).use(gb).use(Hs).use(pb).use(bb).use(Ws).use(wb).use(yb).use(kb).use(vb).use(_b).use(Cb);const xb={name:"FvTag",emits:["update:modelValue","add-item","del-item","tag-click"],props:{...rb,modelValue:{default:()=>[]},newTagPlaceholder:{default:"New Tag"},size:{default:""},newTagBackground:{default:null},isNewTag:{default:!1},isDel:{default:!1}},data(){return{thisValue:this.modelValue,inputValue:"",edit:!1}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)},edit(){this.inputValue!==""&&this.addTag()}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$refs.add){t=!0;break}e=e.parentNode}t||(this.edit=!1)}),window.addEventListener("touchend",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$refs.add){t=!0;break}e=e.parentNode}t||(this.edit=!1)})},editable(){this.edit=!0,setTimeout(()=>{this.$refs.edit.focus()},10)},addTag(){this.thisValue.push({text:this.inputValue}),this.inputValue="",this.$emit("add-item",{text:this.inputValue})},delTag(n){let e=this.thisValue.indexOf(n);this.thisValue.splice(e,1),this.$emit("del-item",n)},getColor(n){return n=Sb(n),this.$theme=="dark"?{background:n.alpha(1).cssa(),borderColor:n.alpha(1).cssa(),color:"whitesmoke"}:{background:n.alpha(.1).cssa(),borderColor:n.alpha(.1).cssa(),color:n.alpha(1).cssa()}}}},Vb=["onClick"],Eb={class:"fv-tag-content"},Tb=["onClick"],Bb={class:"ms-Icon ms-Icon--Add fv-tag-icon"};function Ib(n,e,t,r,s,o){const l=i.resolveComponent("fv-text-box");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Tag",[o.$theme]])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisValue,(a,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(["fv-tag-item",[a.type?a.type:"",t.size,{disabled:a.disabled}]]),style:i.normalizeStyle({background:a.background?o.getColor(a.background).background:"",borderColor:a.background?o.getColor(a.background).borderColor:"",color:a.background?o.getColor(a.background).color:""}),onClick:c=>n.$emit("tag-click",a)},[i.createElementVNode("span",Eb,[i.renderSlot(n.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(a.text),1)])]),i.withDirectives(i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel fv-tag-icon",onClick:c=>o.delTag(a)},null,8,Tb),[[i.vShow,t.isDel&&!a.disabled]])],14,Vb))),128)),i.withDirectives(i.createElementVNode("div",{ref:"add",class:i.normalizeClass(["fv-tag-item controller",[t.size]]),style:i.normalizeStyle({background:t.newTagBackground?o.getColor(t.newTagBackground).background:"",borderColor:t.newTagBackground?o.getColor(t.newTagBackground).borderColor:"",color:t.newTagBackground?o.getColor(t.newTagBackground).color:""}),onClick:e[1]||(e[1]=(...a)=>o.editable&&o.editable(...a))},[i.withDirectives(i.createElementVNode("i",Bb,null,512),[[i.vShow,!s.edit]]),i.withDirectives(i.createElementVNode("span",{class:"fv-tag-content"},i.toDisplayString(t.newTagPlaceholder),513),[[i.vShow,!s.edit]]),i.withDirectives(i.createVNode(l,{modelValue:s.inputValue,"onUpdate:modelValue":e[0]||(e[0]=a=>s.inputValue=a),ref:"edit",placeholder:t.newTagPlaceholder,style:{width:"auto"},onKeydown:i.withKeys(o.addTag,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),[[i.vShow,s.edit]])],6),[[i.vShow,t.isNewTag]])],2)}const Gs=j(Z(xb,[["render",Ib]])),bv="",wv="",yv="",Db={...q},$b={emits:["update:modelValue","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{type:Array,default:()=>[]},inputmode:{default:"text"},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},readonly:{default:!1},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},theme:{type:String,default:"global"}},data(){return{thisValue:[],currentPos:0,thisPattern:new RegExp(this.pattern)}},watch:{modelValue(n){this.syncValue(n)},mask(n){this.thisValueInit()},flag(n){this.thisValueInit()},pattern(n){this.thisPattern=new RegExp(n)}},computed:{$theme(){return W(this.$props).theme.value},maxLength(){let n=0;for(let e=0;e<this.mask.length;e++)this.mask[e]==this.flag&&n++;return n},renderText(){this.mask;let n=0,e="";for(let t=0;t<this.mask.length;t++)if(this.mask[t]==this.flag){if(n>=this.thisValue.length)break;this.thisValue[n].content!==""?e+=this.thisValue[n].content:e+=this.mask[t],n++}else e+=this.mask[t];return e},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisValueInit(),this.syncValue(this.modelValue),this.thisPattern=new RegExp(this.pattern),this.$refs.input.addEventListener("paste",n=>{let e=n.clipboardData.getData("text/plain"),t=0;for(let r=0;r<e.length;r++)e[r].match(this.thisPattern)&&t<this.thisValue.length&&(this.thisValue[t].content=e[r],t++,this.currentPos=this.thisValue[t].index+1)})},methods:{thisValueInit(){this.thisValue=[];for(let n=0;n<this.mask.length;n++)this.mask[n]==this.flag&&this.thisValue.push({index:n,content:""});this.flag.length!=1&&console.warn("TextBox's flag should only contain 1 char."),this.$refs.input.value=this.renderText},syncValue(n){for(let e=0;e<this.thisValue.length;e++)e<n.length?this.thisValue[e]={index:this.thisValue[e].index,content:n[e]}:this.thisValue[e]={index:this.thisValue[e].index,content:""};this.$refs.input.value=this.renderText},keyDown(n){this.$emit("keydown",n);let e=n.keyCode,t=-1,r=this.$refs.input.selectionStart,s=this.$refs.input.selectionEnd,o=this.clearRange(r,s);for(let l=r-1;l>=0;l--)this.mask[l]==this.flag&&t++;if(this.isInputCode(e)&&!n.crtlKey){if(!this.thisPattern.test(n.key))return 0;t<this.thisValue.length-1&&(this.thisValue[t+1]={index:this.thisValue[t+1].index,content:n.key},this.currentPos=this.thisValue[t+1].index+1)}else if(e==8){if(o)return 0;t>-1&&(this.thisValue[t]={index:this.thisValue[t].index,content:""},this.currentPos=this.thisValue[t].index)}},isInputCode(n){let e=[[48,57],[65,90],[96,107],[109,111],[186,222]];for(let t of e)if(n>=t[0]&&n<=t[1])return!0;return!1},clearRange(n,e){if(e-n==0)return 0;let t=0;for(let r=this.thisValue.length-1;r>=0;r--)this.thisValue[r].index+1>n&&this.thisValue[r].index+1<=e&&(this.thisValue[r]={index:this.thisValue[r].index,content:""},t=r);return this.currentPos=this.thisValue[t].index,!0},input(n){n.target.value=this.renderText,this.$refs.input.setSelectionRange(this.currentPos,this.currentPos);let e=[];for(let t=0;t<this.thisValue.length;t++)e.push(this.thisValue[t].content);this.$emit("update:modelValue",e)},focusInspect(){this.$refs.input.focus()}}},Nb={class:"text-box-container internal"},Lb=["inputmode","type","readonly","disabled"];function Pb(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",Nb,[i.createElementVNode("input",{inputmode:t.inputmode,type:t.type,class:"fv-text-box-input",readonly:o.isReadOnly,disabled:o.isDisabled,ref:"input",style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onInput:e[0]||(e[0]=(...l)=>o.input&&o.input(...l)),onKeydown:e[1]||(e[1]=(...l)=>o.keyDown&&o.keyDown(...l)),onKeyup:e[2]||(e[2]=l=>n.$emit("keyup",l)),onChange:e[3]||(e[3]=l=>n.$emit("change",l)),onPaste:e[4]||(e[4]=l=>n.$emit("paste",l)),onFocus:e[5]||(e[5]=l=>n.$emit("focus",!0)),onBlur:e[6]||(e[6]=l=>n.$emit("blur",!1))},null,44,Lb)])}const Mb={components:{maskInput:Z($b,[["render",Pb]])},emits:["update:modelValue","update:focus","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},focus:{default:!1},maxlength:{default:""},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},theme:{type:String,default:"global"}},data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",thisMaskValue:(typeof this.modelValue).toString()=="object"?this.modelValue:[],thisPattern:new RegExp(this.partten),thisInputRules:new RegExp(this.inputRules)}},watch:{modelValue(n){(typeof n).toString()=="string"?this.thisValue=n:this.thisMaskValue=n},mode(n){n=="default"?this.thisValue="":this.thisMaskValue=[]},thisValue(n,e){!n||this.thisInputRules.test(n)?this.$emit("update:modelValue",n):n=e},thisMaskValue(n){this.$emit("update:modelValue",n)},pattern(n){this.thisPattern=new RegExp(n)},inputRules(n){this.thisInputRules=new RegExp(n)}},computed:{$theme(){return W(this.$props).theme.value},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisPattern=new RegExp(this.pattern),this.thisInputRules=new RegExp(this.inputRules)},methods:{keyDown(n){this.$emit("keydown",n),n.key&&(n.key.length>1||this.thisPattern.test(n.key)||n.preventDefault())},focusInspect(){this.mode=="mask"?this.$refs.mask_input.focusInspect():this.$refs.input.focus()}}},zb={class:"text-box-container"},Rb=["inputmode","type","placeholder","readonly","disabled","maxlength"];function Fb(n,e,t,r,s,o){const l=i.resolveComponent("mask-input");return i.openBlock(),i.createElementBlock("div",zb,[t.mode=="default"?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":e[0]||(e[0]=a=>s.thisValue=a),inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,class:"fv-text-box-input",readonly:o.isReadOnly,disabled:o.isDisabled,maxlength:t.maxlength,ref:"input",style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:e[1]||(e[1]=(...a)=>o.keyDown&&o.keyDown(...a)),onKeyup:e[2]||(e[2]=a=>n.$emit("keyup",a)),onChange:e[3]||(e[3]=a=>n.$emit("change",a)),onPaste:e[4]||(e[4]=a=>n.$emit("paste",a)),onFocus:e[5]||(e[5]=a=>n.$emit("update:focus",!0)),onBlur:e[6]||(e[6]=a=>n.$emit("update:focus",!1))},null,44,Rb)),[[i.vModelDynamic,s.thisValue]]):i.createCommentVNode("",!0),t.mode=="mask"?(i.openBlock(),i.createBlock(l,{key:1,ref:"mask_input",modelValue:s.thisMaskValue,"onUpdate:modelValue":e[7]||(e[7]=a=>s.thisMaskValue=a),inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,mask:t.mask,flag:t.flag,pattern:t.pattern,readonly:o.isReadOnly,disabled:o.isDisabled,fontSize:t.fontSize,fontWeight:t.fontWeight,textAlign:t.textAlign,onKeydown:e[8]||(e[8]=a=>n.$emit("keydown",a)),onKeyup:e[9]||(e[9]=a=>n.$emit("keyup",a)),onChange:e[10]||(e[10]=a=>n.$emit("change",a)),onPaste:e[11]||(e[11]=a=>n.$emit("paste",a)),onFocus:e[12]||(e[12]=a=>n.$emit("update:focus",!0)),onBlur:e[13]||(e[13]=a=>n.$emit("update:focus",!1))},null,8,["modelValue","inputmode","type","placeholder","mask","flag","pattern","readonly","disabled","fontSize","fontWeight","textAlign"])):i.createCommentVNode("",!0)])}const Ob={name:"FvTextBox",components:{core:Z(Mb,[["render",Fb]])},emits:["update:modelValue","debounce-input","keydown","keyup","change","paste","left-icon-click","icon-click","click"],props:{...Db,modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},maxlength:{default:""},prefix:{default:""},suffix:{default:""},leftIcon:{default:""},icon:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},borderRadius:{default:3},textAlign:{default:"left"},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""},debounceDelay:{default:300},disabled:{default:!1}},data(){return{thisValue:this.modelValue,isFocus:!1,timer:{debounce:null}}},watch:{modelValue(n){this.thisValue=n},thisValue(n){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",n)}},computed:{$theme(){return W(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(){this.$refs.core.focusInspect()}}},Ab={class:"fix-block"},Wb={class:"fix-block"};function Hb(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("core");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TextBox",[o.$theme,t.status,s.isFocus?"focus":"",o.isDisabled?"disabled":"",o.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:i.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onClick:e[8]||(e[8]=d=>s.isFocus=!0)},[i.createVNode(l,{parent:()=>n.$el,class:"fv-text-box-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("div",{class:"fv-text-box-wrapper-container",style:i.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:s.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[i.withDirectives(i.createElementVNode("div",Ab,[i.createElementVNode("p",null,i.toDisplayString(t.prefix),1)],512),[[i.vShow,t.prefix!=""]]),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),onClick:e[0]||(e[0]=d=>n.$emit("left-icon-click",d))},null,2),[[i.vShow,t.leftIcon!=""]]),i.createVNode(a,{modelValue:s.thisValue,"onUpdate:modelValue":e[1]||(e[1]=d=>s.thisValue=d),ref:"core",mode:t.mode,inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,mask:t.mask,flag:t.flag,pattern:t.pattern,inputRules:t.inputRules,readonly:t.readonly,maxlength:t.maxlength,disabled:t.disabled,fontSize:t.fontSize,fontWeight:t.fontWeight,foreground:t.foreground,textAlign:t.textAlign,focus:s.isFocus,"onUpdate:focus":e[2]||(e[2]=d=>s.isFocus=d),onKeydown:e[3]||(e[3]=d=>n.$emit("keydown",d)),onKeyup:e[4]||(e[4]=d=>n.$emit("keyup",d)),onChange:e[5]||(e[5]=d=>n.$emit("change",d)),onPaste:e[6]||(e[6]=d=>n.$emit("paste",d))},null,8,["modelValue","mode","inputmode","type","placeholder","mask","flag","pattern","inputRules","readonly","maxlength","disabled","fontSize","fontWeight","foreground","textAlign","focus"]),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),onClick:e[7]||(e[7]=d=>n.$emit("icon-click",d))},null,2),[[i.vShow,t.icon!=""]]),i.withDirectives(i.createElementVNode("div",Wb,[i.createElementVNode("p",null,i.toDisplayString(t.suffix),1)],512),[[i.vShow,t.suffix!=""]])],4)],6)}const Us=j(Z(Ob,[["render",Hb]])),Cv="",Sv="",xv="",Gb={...q},Ub={name:"FvTextField",emits:["update:modelValue","focus","blur","keydown","keyup","change","paste"],props:{...Gb,modelValue:{default:""},readonly:{default:!1},placeholder:{default:""},maxlength:{default:""},disabled:{default:!1},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.8},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""}},data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",isFocus:!1}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)}},computed:{$theme(){return W(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(n,e){this.isFocus=n,n?this.$emit("focus",e):this.$emit("blur",e)}}},Yb=["placeholder","readonly","disabled","maxlength"];function qb(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TextField",[o.$theme,t.status,{focus:s.isFocus},{disabled:o.isDisabled},{underline:o.isUnderline},{shadow:t.isBoxShadow}]]),style:i.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}])},[i.createVNode(l,{parent:()=>n.$el,class:"fv-text-field-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("div",{class:"text-field-wrapper-container",style:i.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:s.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":e[0]||(e[0]=a=>s.thisValue=a),placeholder:t.placeholder,class:"fv-text-field-input",readonly:o.isReadOnly,disabled:o.isDisabled,maxlength:t.maxlength,style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:e[1]||(e[1]=a=>n.$emit("keydown",a)),onKeyup:e[2]||(e[2]=a=>n.$emit("keyup",a)),onChange:e[3]||(e[3]=a=>n.$emit("change",a)),onPaste:e[4]||(e[4]=a=>n.$emit("paste",a)),onFocus:e[5]||(e[5]=a=>o.focus(!0,a)),onBlur:e[6]||(e[6]=a=>o.focus(!1,a))},null,44,Yb),[[i.vModelText,s.thisValue]])],4)],6)}const Ys=j(Z(Ub,[["render",qb]])),Ev="",Tv="",Bv="",Xb={...q},jb={name:"FvTimePicker",emits:["update:modelValue","change","focus"],directives:{hover:{bind(n,{value:e}){e!==void 0&&typeof e=="function"&&(n.enterFunction=()=>{e(!0,n)},n.leaveFunction=()=>{e(!1,n)},n.addEventListener("mouseover",n.enterFunction),n.addEventListener("mouseleave",n.leaveFunction))},unbind(n){n.enterFunction!==void 0&&typeof n.enterFunction=="function"&&(n.removeEventListener("mouseover",n.hoverFunction),n.removeEventListener("mouseleave",n.leaveFunction))}}},props:{...Xb,timeType:{type:Number,default:12},modelValue:{type:Date,default:()=>new Date},period:{type:Array,default:()=>["A.M.","P.M."]},inputBackground:{default:""},innerBorderColor:{type:String,default:"rgba(200, 200, 200, 0.3)"},selectedBackground:{default:""},optionBackground:{default:""},disabled:{type:Boolean,default:!1},hoverColor:{type:String,default:void 0}},data(){return{show:!1,data:[[],[]],window:{event:{click:n=>{let e=n.target,t=!1;for(;e;){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show=!1)}}},config:{optionCount:9,buffer:1},selected:{date:this.modelValue},options:{}}},watch:{show(n){n?(this.selected.date=this.modelValue,this.init()):this.config.clickLock=!1}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.init(),this.loadEvent()},beforeUnmount(){this.removeEvent()},methods:{focus(){this.disabled||(this.show=!0)},accept(){this.$emit("update:modelValue",new Date(this.selected.date)),this.$emit("change",new Date(this.selected.date)),this.show=!1},cancel(){this.show=!1},init(){this.data=[[],[]],this.timeType=="12"&&this.data.push([]),this.size=[this.timeType==12?12:24,60,2];for(let n=0;n<this.data.length;++n){let e=this.data[n];this.setOptions(e,this.size[n],n)}},nPrev(n,e,t=1,r=1){n=Math.round(n);let s=t*e;return(n+s-r-t)%e+r},nNext(n,e,t=1,r=1){n=Math.round(n);let s=r*e;return(n+s+t-r)%e+r},loadEvent(){for(let n in this.window.event){let e=this.window.event[n];window.addEventListener(n,e)}},setOptions(n,e,t){let r=this.config.optionCount+this.config.buffer*2,s,o=this.selected.date;switch(t){case 0:s=this.nPrev(o.getHours(),e,Math.floor(r/2),0);break;case 1:s=this.nPrev(o.getMinutes(),e,Math.floor(r/2),0,0);break;case 2:s=this.nPrev(Math.floor(o.getHours()/11.9),e,Math.floor(r/2),0);break}for(let l=0;l<r;++l)t==2&&l!=5&&l-s!=5&&l-s!=4?n.push(s-3):n.push(s),s=this.nNext(s,e,1,t==0?1:0);this.$nextTick(()=>{this.loadSlide(e,t)})},loadSlide(n,e){let t=`col${e}`,r=this.$refs[t][0].scrollTop=40*this.config.buffer;this.options[t]={},this.options[t].scroll&&this.$refs[t][0].removeEventListener("scroll",this.options[t].scroll),this.options[t].scroll=()=>{if(e==2){if(this.$refs[t][0].scrollTop>r){if(this.selected.date.getHours()>11){this.$refs[t][0].scrollTop=r;return}}else if(this.selected.date.getHours()<=11){this.$refs[t][0].scrollTop=r;return}}this.slideCol(r,t,()=>{this.data[e].shift();let s,o;switch(e){case 0:o=this.timeType==12?this.selected.date.getHours()>=12?12:0:1,s=this.nNext(this.selected.date.getHours(),n,0),this.selected.date.setHours(this.nNext(s,n,1,o));break;case 1:s=this.nNext(this.selected.date.getMinutes(),n,0,0),this.selected.date.setMinutes(this.nNext(s,n,1,0));break;case 2:s=Math.floor(this.selected.date.getHours()/11.9),s==0&&this.selected.date.setHours(this.selected.date.getHours()+12);break}let l=this.nNext(s,n,(this.config.optionCount-1)/2+this.config.buffer+1,0);e==2&&(l=-1),this.data[e].push(l)},()=>{this.data[e].pop();let s,o;switch(e){case 0:o=this.timeType==12?this.selected.date.getHours()>=12?12:0:1,s=this.nNext(this.selected.date.getHours(),n,0),this.selected.date.setHours(this.nPrev(s,n,1,o));break;case 1:s=this.nNext(this.selected.date.getMinutes(),n,0,0),this.selected.date.setMinutes(this.nPrev(s,n,1,0));break;case 2:s=Math.floor(this.selected.date.getHours()/12),s==1&&this.selected.date.setHours(this.selected.date.getHours()-12);break}let l=this.nPrev(s,n,(this.config.optionCount-1)/2+this.config.buffer+1,0);e==2&&(l=-1),this.data[e].unshift(l)})},this.$refs[t][0].addEventListener("scroll",this.options[t].scroll)},removeEvent(){for(let n in this.window.event){let e=this.window.event[n];window.removeEventListener(n,e)}for(let n in this.options)this.$refs[n][0].removeEventListener("scroll",this.options[n].scroll)},slideCol(n,e,t,r){Math.abs(this.$refs[e][0].scrollTop-n)>=20&&(this.$refs[e][0].scrollTop>n?t():r(),this.$nextTick(()=>{this.$refs[e][0].scrollTop=n}))},async clickItem(n,e){if(this.config.clickLock)return;this.config.clickLock=!0,this.$refs[n][0].scrollTop=this.config.buffer*40;let t=this.$refs[n][0].scrollTop;this.$refs[n][0].scrollTop+=e-5;let r=Math.abs(e-5);if(r>0){let s=setInterval(()=>{if(this.$refs[n][0].scrollTop==t&&(--r,!r)){clearInterval(s),this.config.clickLock=!1;return}this.config.scrollLock=!0,this.$refs[n][0].scrollTop+=(e-5)*3},20)}else this.config.clickLock=!1},numberFixTwo(n){return n<10?"0"+n:n},showTime(n,e){return n==0?this.nNext(e,this.timeType==12?12:24,0,this.timeType==12?1:0):n==1?this.numberFixTwo(this.nNext(e,60,0,0)):e>=0?this.period[e]:""},hover(n,e){this.hoverColor!==void 0&&(n?(e.hoverStatus===!1||e.hoverStatus===void 0)&&(e.style.backgroundColor&&(e.backgroundColor=e.style.backgroundColor),e.style.backgroundColor=this.hoverColor):e.backgroundColor!==void 0?e.style.backgroundColor=e.backgroundColor:e.style.backgroundColor=null,e.hoverStatus=n)},hoverUpAndDown(n,e){let t=e.querySelector(".fv-TimePicker__options-body-col-down"),r=e.querySelector(".fv-TimePicker__options-body-col-up");n?((t.hoverStatus===!1||t.hoverStatus===void 0)&&(t.style.backgroundColor&&(t.backgroundColor=t.style.backgroundColor),t.style.backgroundColor=this.hoverColor),(r.hoverStatus===!1||r.hoverStatus===void 0)&&(r.style.backgroundColor&&(r.backgroundColor=r.style.backgroundColor),r.style.backgroundColor=this.hoverColor)):(t.backgroundColor!==void 0?t.style.backgroundColor=t.backgroundColor:t.style.backgroundColor=null,r.backgroundColor!==void 0?r.style.backgroundColor=r.backgroundColor:r.style.backgroundColor=null),t.hoverStatus=n,r.hoverStatus=n}}},Jb={class:"fv-TimePicker__input-item"},Kb={class:"fv-TimePicker__options-body"},Qb=["onClick"],Zb=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],ew=["onClick"],tw=["onClick"],nw=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],iw={class:"fv-TimePicker__options-bar"},rw=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--Accept"},null,-1)],ow=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];function sw(n,e,t,r,s,o){const l=i.resolveDirective("hover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TimePicker",[o.$theme,{disabled:t.disabled}]])},[i.createElementVNode("div",{class:"fv-TimePicker__input",style:i.normalizeStyle({background:t.inputBackground}),onClick:e[0]||(e[0]=a=>o.focus())},[i.createElementVNode("button",Jb,i.toDisplayString(o.showTime(0,t.modelValue.getHours())),1),i.createElementVNode("button",{class:"fv-TimePicker__input-item",style:i.normalizeStyle({borderColor:t.innerBorderColor})},i.toDisplayString(o.showTime(1,t.modelValue.getMinutes())),5),t.timeType==12?(i.openBlock(),i.createElementBlock("button",{key:0,style:i.normalizeStyle({borderColor:t.innerBorderColor}),class:"fv-TimePicker__input-item"},i.toDisplayString(o.showTime(2,Math.floor(t.modelValue.getHours()/11.9))),5)):i.createCommentVNode("",!0)],4),i.createVNode(i.Transition,{name:"fv-TimePicker__options"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:"fv-TimePicker__options",style:i.normalizeStyle({background:t.optionBackground})},[i.createElementVNode("div",Kb,[i.createElementVNode("div",{class:"fv-TimePicker__options-body-mask",style:i.normalizeStyle({background:t.selectedBackground})},null,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.data,(a,d)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:`options-col${d}`,class:"fv-TimePicker__options-body-col"},[i.createElementVNode("div",{class:"fv-TimePicker__options-body-col-up",onClick:c=>o.clickItem(`col${d}`,4)},Zb,8,Qb),i.createElementVNode("div",{class:"fv-TimePicker__options-body-items",ref_for:!0,ref:`col${d}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,(c,u)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"fv-TimePicker__options-body-item",key:`options-col-item${d}-${c}-${u}`,onClick:f=>o.clickItem(`col${d}`,u)},[i.createTextVNode(i.toDisplayString(o.showTime(d,c)),1)],8,ew)),[[l,o.hover]])),128))],512),i.createElementVNode("div",{class:"fv-TimePicker__options-body-col-down",onClick:c=>o.clickItem(`col${d}`,6)},nw,8,tw)])),[[l,o.hoverUpAndDown]])),128))]),i.createElementVNode("div",iw,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:"fv-TimePicker__options-bar-accept",onClick:e[1]||(e[1]=(...a)=>o.accept&&o.accept(...a))},rw)),[[l,o.hover]]),i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:"fv-TimePicker__options-bar-cancel",onClick:e[2]||(e[2]=(...a)=>o.cancel&&o.cancel(...a))},ow)),[[l,o.hover]])])],4),[[i.vShow,s.show]])]),_:1})],2)}const qs=j(Z(jb,[["render",sw]])),Pv="",Mv="",zv="",lw={...q},aw={emits:["mousedown","mouseup","touchstart","touchend","mousemove","touchmove"],props:{value:{default:!1},left:{default:5},ringBackground:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:this.value,moveable:!1}},watch:{value(n){this.thisValue=n}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",n=>{this.moveable&&this.$emit("mousemove",n)}),window.addEventListener("mouseup",n=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",n=>{this.moveable&&this.$emit("touchmove",n)}),window.addEventListener("touchend",n=>{this.moveable&&this.stop()})},forward(n){n.preventDefault(),this.moveable=!0,n.type==="mousedown"?this.$emit("mousedown",n):this.$emit("touchstart",n)},stop(n){this.moveable=!1,n&&(n.type==="mouseup"?this.$emit("mouseup",n):this.$emit("touchend",n))}}};function dw(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:"fv-toggle-ring",style:i.normalizeStyle({left:s.moveable?`${t.left}px`:"",background:t.value?"":t.ringBackground}),onMousedown:e[0]||(e[0]=(...l)=>o.forward&&o.forward(...l)),onMouseup:e[1]||(e[1]=(...l)=>o.stop&&o.stop(...l)),onTouchstart:e[2]||(e[2]=(...l)=>o.forward&&o.forward(...l)),onTouchend:e[3]||(e[3]=(...l)=>o.stop&&o.stop(...l))},null,36)}const cw={name:"FvToggleSwitch",components:{toggleRing:Z(aw,[["render",dw]])},props:{...lw,modelValue:{default:!1},on:{default:"On"},off:{default:"Off"},onForeground:{default:""},offForeground:{default:""},width:{default:40},height:{default:20},borderColor:{default:""},ringBackground:{default:""},switchOnBackground:{default:""},insideContent:{default:!1},disabled:{default:!1}},data(){return{thisValue:this.modelValue,disX:0,mouseMove:!1,currentLeft:0,toggleLeft:""}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)},currentLeft(){this.toggleLeft=this.computedLeft}},computed:{$theme(){return W(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},computedLeft(){return!this.$refs.border||this.currentLeft<5?5:this.currentLeft>this.$refs.border.clientWidth-17?this.$refs.border.clientWidth-17:this.currentLeft},finalWidth(){return isNaN(this.width)?this.width:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:`${this.height}px`}},methods:{toggleDown(n){this.isDisabled||(n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]),this.disX=n.clientX-this.$refs.toggle.$el.offsetLeft)},toggleMove(n){this.isDisabled||(n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]),this.mouseMove=!0,this.currentLeft=n.clientX-this.disX)},toggleUp(n){n.stopPropagation(),!this.isDisabled&&(this.mouseMove?this.$refs.toggle.$el.offsetLeft+this.$refs.toggle.$el.clientWidth/2>this.$refs.border.clientWidth/2?this.thisValue=!0:this.thisValue=!1:this.thisValue=!this.thisValue,this.mouseMove=!1,this.$emit("toggle",this.thisValue),this.currentLeft=this.$refs.toggle.$el.offsetLeft,this.disX=0)},toggle(n){this.isDisabled||(this.thisValue=!this.thisValue,this.$emit("toggle",this.thisValue))}}};function uw(n,e,t,r,s,o){const l=i.resolveComponent("toggle-ring");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ToggleSwitch",[o.$theme,o.isDisabled?"disabled":""]]),onMouseup:e[0]||(e[0]=(...a)=>o.toggle&&o.toggle(...a))},[i.createElementVNode("div",{class:i.normalizeClass(["fv-toggle-border",{"toggle-on":s.thisValue}]),ref:"border",style:i.normalizeStyle([{width:o.finalWidth,height:o.finalHeight,background:s.thisValue?t.switchOnBackground:"",borderColor:s.thisValue?"":t.borderColor}])},[i.createVNode(l,{value:s.thisValue,left:s.toggleLeft,ringBackground:t.ringBackground,theme:o.$theme,ref:"toggle",onMousedown:o.toggleDown,onTouchstart:o.toggleDown,onMousemove:o.toggleMove,onTouchmove:o.toggleMove,onMouseup:o.toggleUp,onTouchend:o.toggleUp},null,8,["value","left","ringBackground","theme","onMousedown","onTouchstart","onMousemove","onTouchmove","onMouseup","onTouchend"]),i.withDirectives(i.createElementVNode("p",{class:"fv-toggle-inside-content",style:i.normalizeStyle({left:s.thisValue?"10px":"",right:s.thisValue?"":"10px",color:s.thisValue?"white":t.offForeground})},i.toDisplayString(s.thisValue?t.on:t.off),5),[[i.vShow,t.insideContent]])],6),i.withDirectives(i.createElementVNode("p",{class:"fv-toggle-content",style:i.normalizeStyle({color:s.thisValue?t.onForeground:t.offForeground})},i.toDisplayString(s.thisValue?t.on:t.off),5),[[i.vShow,!t.insideContent]])],34)}const Xs=j(Z(cw,[["render",uw]])),Ov="",Av="",Wv="",fw={...q},hw={name:"TreeViewItem",emits:["require-render","selected-change","set-drag-item","drop-item","handle-click","item-drag-over","item-drag-leave","item-drop"],props:{modelValue:{type:Object,default:()=>({})},parent:{type:Object,default:()=>({})},kIndex:{default:0},deep:{default:0},space:{default:20},expandClickMode:{default:"icon"},backgroundColorHover:{default:""},backgroundColorActive:{default:""},foreground:{default:"rgba(0, 90, 158, 1)"},dropBackgroundColor:{default:"rgba(0, 90, 158, 0.1)"},draggable:{default:!1},checkable:{default:!1},expandedIcon:{default:"ChevronDownSmall"},unexpandedIcon:{default:"ChevronRightSmall"},itemHeight:{default:30},showLoading:{default:!1},expandedIconPosition:{default:"left"},dragItem:{default:()=>({item:null,parent:null})},theme:{type:String,default:"global"}},data(){return{isRender:!1,cssMode:"normal",dropMode:"none",dragMode:!1,timer:{drop:null,delayExpand:null,requireRender:null}}},watch:{},computed:{backgroundColor(){return this.cssMode==="hover"?this.backgroundColorHover:this.cssMode==="active"?this.backgroundColorActive:""}},mounted(){this.requireRenderInit()},methods:{requireRenderInit(){clearInterval(this.timer.requireRender),this.timer.requireRender=setInterval(()=>{if(this.isRender){clearInterval(this.timer.requireRender);return}(!this.parent||this.parent.expanded)&&(this.$emit("require-render",async()=>{for(this.isRender=!0;!this.$el.style;)await new Promise(n=>{setTimeout(()=>{n(1)},30)})}),clearInterval(this.timer.requireRender))},100)},expandClick(n="icon",e){if(this.valueTrigger(this.modelValue.disabled))return;let t=e.target,r=!1;for(;t&&t.tagName&&t.tagName.toLowerCase()!="body";){if(t===this.$refs.expander||t===this.$refs.check.$el){r=!0;break}t=t.parentNode}if(r||(this.$emit("selected-change",this.modelValue),this.modelValue.selected=!0,this.$emit("handle-click",this.modelValue)),t=e.target,n==="icon"&&this.expandClickMode==="icon")e.stopPropagation(),t===this.$refs.expander&&(this.modelValue.expanded=!this.modelValue.expanded);else if(n==="normal"&&this.expandClickMode==="normal"){for(r=!1;t&&t.tagName&&t.tagName.toLowerCase()!="body";){if(t===this.$refs.check.$el){r=!0;break}t=t.parentNode}r||(this.modelValue.expanded=!this.modelValue.expanded)}},switchCSSMode(n){this.valueTrigger(this.modelValue.disabled)||(this.cssMode=n)},handleDrag(n){n.stopPropagation(),this.modelValue.expanded=!1,console.log("expanded"),this.$emit("set-drag-item",{item:this.modelValue,parent:this.parent}),this.dragMode=!0},isURL(n){return!!(n.startsWith("http")||n.startsWith(".")||n.startsWith("/"))},changeChildren(n){if(this.modelValue.children){let e=this.modelValue.children;for(let t=0;t<e.length;t++){let r=e[t];r.selected=n,r.children&&(e=e.concat(r.children))}}},valueTrigger(n){return typeof n=="function"?n():n},dragOver(n){if(n.preventDefault(),n.stopPropagation(),this.valueTrigger(this.modelValue.disabled)||this.dragItem.item===this.modelValue)return;this.$emit("item-drag-over",{drop:this.modelValue,dropParent:this.parent});const{clientY:e}=n,{top:t,height:r}=this.$refs.item.getBoundingClientRect();e-t<r/2?(this.dropMode="before",clearTimeout(this.timer.delayExpand)):this.valueTrigger(this.modelValue.dropInside)===!1?(this.dropMode="before",clearTimeout(this.timer.delayExpand)):(this.dropMode="enter",this.timer.delayExpand=setTimeout(()=>{this.modelValue.expanded=!0},500)),clearTimeout(this.timer.drop)},dragLeave(n){n.preventDefault(),n.stopPropagation(),this.$emit("item-drag-leave",{drop:this.modelValue,dropParent:this.parent}),clearTimeout(this.timer.drop),this.timer.drop=setTimeout(()=>{this.dropMode="leave"},100)},dropItem(n){if(n.preventDefault(),n.stopPropagation(),this.valueTrigger(this.modelValue.disabled)){this.dropMode="leave";return}this.$emit("item-drop",{drop:this.modelValue,dropParent:this.parent}),this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,dropParent:this.parent,drag:this.dragItem.item,dragParent:this.dragItem.parent,mode:this.dropMode}),this.dropMode="leave"}},beforeUnmount(){clearInterval(this.timer.requireRender)}},mw=["draggable"],gw={key:0,class:"fv-tree-view-item-expander",style:{"margin-right":"10px"}},pw={class:"fv-tree-view-item-content"},bw=["src"],ww={key:1,class:"fv-tree-view-item-expander"},yw={key:0,class:"fv-tree-view-item-children"};function kw(n,e,t,r,s,o){const l=i.resolveComponent("fv-check-box"),a=i.resolveComponent("fv-progress-ring"),d=i.resolveComponent("tree-view-item",!0);return s.isRender?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"fv-tree-view-item",draggable:t.draggable,onDragstart:e[21]||(e[21]=(...c)=>o.handleDrag&&o.handleDrag(...c)),onDragend:e[22]||(e[22]=c=>s.dragMode=!1)},[i.createElementVNode("div",{class:i.normalizeClass(["fv-tree-view-item-container",[{selected:t.modelValue.selected,disabled:o.valueTrigger(t.modelValue.disabled)}]]),ref:"item",style:i.normalizeStyle({height:`${t.itemHeight}px`,"background-color":s.dropMode==="enter"?t.dropBackgroundColor:o.backgroundColor,"border-top":s.dropMode==="before"?`${t.itemHeight}px solid transparent`:""}),onDragover:e[3]||(e[3]=(...c)=>o.dragOver&&o.dragOver(...c)),onDragleave:e[4]||(e[4]=(...c)=>o.dragLeave&&o.dragLeave(...c)),onDrop:e[5]||(e[5]=(...c)=>o.dropItem&&o.dropItem(...c)),onClick:e[6]||(e[6]=c=>o.expandClick("normal",c)),onMouseenter:e[7]||(e[7]=c=>o.switchCSSMode("hover")),onMouseleave:e[8]||(e[8]=c=>o.switchCSSMode("normal")),onMousedown:e[9]||(e[9]=c=>o.switchCSSMode("active")),onMouseup:e[10]||(e[10]=c=>o.switchCSSMode("hover")),onTouchstart:e[11]||(e[11]=c=>o.switchCSSMode("active")),onTouchend:e[12]||(e[12]=c=>o.switchCSSMode("normal"))},[i.withDirectives(i.createElementVNode("i",{class:"fv-tree-view-item-choosen-bar",style:i.normalizeStyle({background:t.foreground})},null,4),[[i.vShow,t.modelValue.selected&&!t.checkable]]),i.withDirectives(i.createVNode(l,{modelValue:t.modelValue.selected,"onUpdate:modelValue":e[0]||(e[0]=c=>t.modelValue.selected=c),theme:t.theme,background:t.foreground,ref:"check",style:{"margin-right":"10px"},onClick:o.changeChildren},null,8,["modelValue","theme","background","onClick"]),[[i.vShow,t.checkable]]),i.createElementVNode("div",{class:"fv-tree-view-item-container-main",style:i.normalizeStyle({"padding-left":`${t.deep*t.space}px`})},[t.expandedIconPosition==="left"?(i.openBlock(),i.createElementBlock("div",gw,[!o.valueTrigger(t.modelValue.loading)||!t.showLoading?i.withDirectives((i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(["ms-Icon fv-tree-view-item-expander-icon",[`ms-Icon--${t.modelValue.expanded?t.expandedIcon:t.unexpandedIcon}`]]),ref:"expander",onClick:e[1]||(e[1]=c=>o.expandClick("icon",c))},null,2)),[[i.vShow,t.modelValue.children]]):(i.openBlock(),i.createBlock(a,{key:1,loading:!0,r:10,borderWidth:"2",color:t.foreground,background:"transparent"},null,8,["color"]))])):i.createCommentVNode("",!0),i.createElementVNode("div",pw,[i.renderSlot(n.$slots,"default",{item:t.modelValue,deep:t.deep},()=>[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon fv-tree-view-item-std-icon",`ms-Icon--${o.valueTrigger(t.modelValue.icon)}`])},null,2),[[i.vShow,t.modelValue.icon&&!o.isURL(o.valueTrigger(t.modelValue.icon))]]),t.modelValue.icon&&o.isURL(o.valueTrigger(t.modelValue.icon))?(i.openBlock(),i.createElementBlock("img",{key:0,class:"fv-tree-view-item-std-icon",src:o.valueTrigger(t.modelValue.icon)},null,8,bw)):i.createCommentVNode("",!0),i.createElementVNode("p",{class:"fv-tree-view-item-text",style:i.normalizeStyle({"margin-left":t.modelValue.icon?"10px":""})},i.toDisplayString(o.valueTrigger(t.modelValue.label)),5)])]),t.expandedIconPosition==="right"?(i.openBlock(),i.createElementBlock("div",ww,[!o.valueTrigger(t.modelValue.loading)||!t.showLoading?i.withDirectives((i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(["ms-Icon fv-tree-view-item-expander-icon",[`ms-Icon--${t.modelValue.expanded?t.expandedIcon:t.unexpandedIcon}`]]),ref:"expander",onClick:e[2]||(e[2]=c=>o.expandClick("icon",c))},null,2)),[[i.vShow,t.modelValue.children]]):(i.openBlock(),i.createBlock(a,{key:1,loading:!0,r:10,borderWidth:"2",color:t.foreground,background:"transparent"},null,8,["color"]))])):i.createCommentVNode("",!0)],4)],38),i.createVNode(i.Transition,{name:"fv-tree-view-children-list"},{default:i.withCtx(()=>[t.modelValue.children?i.withDirectives((i.openBlock(),i.createElementBlock("div",yw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.modelValue.children,(c,u)=>(i.openBlock(),i.createBlock(d,{key:`parent: ${t.kIndex}, self: ${u}`,modelValue:c,parent:t.modelValue,kIndex:u,deep:t.deep+1,space:t.space,expandClickMode:t.expandClickMode,draggable:t.draggable,checkable:t.checkable,foreground:t.foreground,expandedIcon:t.expandedIcon,unexpandedIcon:t.unexpandedIcon,backgroundColorHover:t.backgroundColorHover,backgroundColorActive:t.backgroundColorActive,itemHeight:t.itemHeight,expandedIconPosition:t.expandedIconPosition,showLoading:t.showLoading,dragItem:t.dragItem,theme:t.theme,onRequireRender:e[13]||(e[13]=f=>n.$emit("require-render",f)),onSelectedChange:e[14]||(e[14]=f=>n.$emit("selected-change",f)),onSetDragItem:e[15]||(e[15]=f=>n.$emit("set-drag-item",f)),onDropItem:e[16]||(e[16]=f=>n.$emit("drop-item",f)),onHandleClick:e[17]||(e[17]=f=>n.$emit("handle-click",f)),onItemDragOver:e[18]||(e[18]=f=>n.$emit("item-drag-over",f)),onItemDragLeave:e[19]||(e[19]=f=>n.$emit("item-drag-leave",f)),onItemDrop:e[20]||(e[20]=f=>n.$emit("item-drop",f))},{default:i.withCtx(f=>[i.renderSlot(n.$slots,"default",{item:f.item,deep:f.deep})]),_:2},1032,["modelValue","parent","kIndex","deep","space","expandClickMode","draggable","checkable","foreground","expandedIcon","unexpandedIcon","backgroundColorHover","backgroundColorActive","itemHeight","expandedIconPosition","showLoading","dragItem","theme"]))),128))],512)),[[i.vShow,t.modelValue.expanded]]):i.createCommentVNode("",!0)]),_:3})],40,mw)),[[i.vShow,o.valueTrigger(t.modelValue.show)!==!1]]):i.createCommentVNode("",!0)}const vw={name:"FvTreeView",components:{TreeViewItem:Z(hw,[["render",kw]])},emits:["click","drop-item","item-drag-over","item-drag-leave","item-drop"],props:{...fw,modelValue:{type:Array,default:()=>[]},space:{default:20},draggable:{default:!1},checkable:{default:!1},expandedIcon:{default:"ChevronDownSmall"},unexpandedIcon:{default:"ChevronRightSmall"},foreground:{default:"rgba(0, 90, 158, 1)"},backgroundColorHover:{default:""},backgroundColorActive:{default:""},expandClickMode:{default:"normal"},expandedIconPosition:{default:"left"},itemHeight:{default:30},showLoading:{default:!1}},data(){return{thisValue:this.modelValue,dragItem:{item:null,parent:null},queueFunction:[],lock:{isQueueRunning:!0}}},watch:{modelValue(){this.thisValue=this.value},async"queueFunction.length"(){if(this.queueFunction.length!==0&&!!this.lock.isQueueRunning){for(this.lock.isQueueRunning=!1;this.queueFunction.length>0;){let n=this.queueFunction.shift();try{await n()}catch(e){console.log(e)}}this.lock.isQueueRunning=!0}}},computed:{$theme(){return W(this.$props).theme.value}},methods:{clearSelected(n){let e=this.thisValue;for(let t=0;t<e.length;t++){let r=e[t];r!==n&&(r.selected=!1),r.children&&(e=e.concat(r.children))}},pushRender(n){this.queueFunction.push(n)}}};function _w(n,e,t,r,s,o){const l=i.resolveComponent("tree-view-item");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TreeView",[o.$theme]])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisValue,(a,d)=>(i.openBlock(),i.createBlock(l,{key:`parent: root, self: ${d}`,modelValue:a,parent:null,kIndex:d,deep:0,space:t.space,draggable:t.draggable,checkable:t.checkable,expandClickMode:t.expandClickMode,foreground:t.foreground,expandedIcon:t.expandedIcon,unexpandedIcon:t.unexpandedIcon,backgroundColorHover:t.backgroundColorHover,backgroundColorActive:t.backgroundColorActive,itemHeight:t.itemHeight,expandedIconPosition:t.expandedIconPosition,showLoading:t.showLoading,dragItem:s.dragItem,theme:o.$theme,onRequireRender:o.pushRender,onSelectedChange:o.clearSelected,onSetDragItem:e[0]||(e[0]=c=>s.dragItem=c),onDropItem:e[1]||(e[1]=c=>n.$emit("drop-item",{root:s.thisValue,...c})),onHandleClick:e[2]||(e[2]=c=>n.$emit("click",c)),onItemDragOver:e[3]||(e[3]=c=>n.$emit("item-drag-over",{root:s.thisValue,...c})),onItemDragLeave:e[4]||(e[4]=c=>n.$emit("item-drag-leave",{root:s.thisValue,...c})),onItemDrop:e[5]||(e[5]=c=>n.$emit("item-drop",{root:s.thisValue,...c}))},{default:i.withCtx(c=>[i.renderSlot(n.$slots,"default",{item:c.item,deep:c.deep})]),_:2},1032,["modelValue","kIndex","space","draggable","checkable","expandClickMode","foreground","expandedIcon","unexpandedIcon","backgroundColorHover","backgroundColorActive","itemHeight","expandedIconPosition","showLoading","dragItem","theme","onRequireRender","onSelectedChange"]))),128))],2)}const js=j(Z(vw,[["render",_w]])),Uv="",Yv="",qv="",Cw={...q},Sw={name:"FvVerifyBox",emits:["update:modelValue","confirm"],props:{...Cw,modelValue:{default:""},length:{default:4},inputmode:{default:"numeric"},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:18},fontWeight:{default:"bold"},foreground:{default:""},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},disabled:{default:!1}},data(){return{thisValue:[]}},watch:{modelValue(){this.valueFormat()},thisValue:{deep:!0,handler(n){this.$emit("update:modelValue",n.join(""))}}},computed:{isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.valueFormat()},methods:{valueFormat(){this.thisValue=[];for(let n=0;n<this.length;n++)this.modelValue[n]?this.thisValue.push(this.modelValue[n]):this.thisValue.push("")},handleKeyDown(n,e){if(n.preventDefault(),console.log(n),n.key.length===1&&!n.ctrlKey&&(this.thisValue[e]=n.key),n.keyCode===8){this.thisValue[e]="",e>0&&this.$refs[`t${e-1}`][0].focus();return}if(n.keyCode===86&&n.ctrlKey){navigator.clipboard.readText().then(t=>{for(let r=0;r<this.length;r++)this.thisValue[r]=t[r]});return}n.keyCode===13&&this.$emit("confirm",this.thisValue.join("")),e<this.length-1&&(n.key.length===1||n.keyCode===9)&&this.$refs[`t${e+1}`][0].focus(),e===this.length-1&&this.$emit("confirm",this.thisValue.join(""))},handlePaste(n){console.log(n);let e=n.clipboardData.getData("text/plain");for(let t=0;t<this.length;t++)this.thisValue[t]=e[t]}}};function xw(n,e,t,r,s,o){const l=i.resolveComponent("fv-text-box");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-VerifyBox",[o.$theme]])},[s.thisValue.length===t.length?(i.openBlock(),i.createElementBlock("div",{key:0,class:"fv-verify-container",onPaste:e[0]||(e[0]=a=>o.handlePaste(a))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.length,(a,d)=>(i.openBlock(),i.createBlock(l,{modelValue:s.thisValue[d],inputmode:t.inputmode,class:"fv-verify-unit",theme:n.theme,key:d,disabled:o.isDisabled,maxlength:1,underline:t.underline,background:t.background,"border-width":t.borderWidth,"border-color":t.borderColor,"focus-border-color":t.focusBorderColor,"font-size":t.fontSize,"font-weight":t.fontWeight,foreground:t.foreground,textAlign:"center","border-radius":t.borderRadius,"is-box-shadow":t.isBoxShadow,"reveal-border":t.revealBorder,ref_for:!0,ref:`t${d}`,onKeydown:c=>o.handleKeyDown(c,d)},null,8,["modelValue","inputmode","theme","disabled","underline","background","border-width","border-color","focus-border-color","font-size","font-weight","foreground","border-radius","is-box-shadow","reveal-border","onKeydown"]))),128))],32)):i.createCommentVNode("",!0)],2)}const Js=j(Z(Sw,[["render",xw]])),jv="",Jv="",Kv="",Vw={...q},Ew={emits:["mousedown","mouseup","touchstart","touchend","mousemove","touchmove"],props:{type:{type:String,default:"horizontal"},theme:{type:String,default:"global"}},data(){return{moveable:!1}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",n=>{this.moveable&&this.$emit("mousemove",n)}),window.addEventListener("mouseup",n=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",n=>{this.moveable&&this.$emit("touchmove",n)}),window.addEventListener("touchend",n=>{this.moveable&&this.stop()})},forward(n){n.preventDefault(),this.moveable=!0,n.type==="mousedown"?this.$emit("mousedown",n):this.$emit("touchstart",n)},stop(n){this.moveable=!1,n&&(n.type==="mouseup"?this.$emit("mouseup",n):this.$emit("touchend",n))}}},Tw=[i.createElementVNode("i",null,null,-1)];function Bw(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-web-window-spliter",[{horizontal:t.type==="horizontal",vertical:t.type==="vertical",both:t.type==="both"}]]),onMousedown:e[0]||(e[0]=(...l)=>o.forward&&o.forward(...l)),onMouseup:e[1]||(e[1]=(...l)=>o.stop&&o.stop(...l)),onTouchstart:e[2]||(e[2]=(...l)=>o.forward&&o.forward(...l)),onTouchend:e[3]||(e[3]=(...l)=>o.stop&&o.stop(...l))},Tw,34)}const Iw={name:"FvWebWindow",components:{spliter:Z(Ew,[["render",Bw]])},props:{...Vw,modelValue:{default:!0},title:{type:String,default:"WebWindow"},left:{default:0},top:{default:0},refreshPos:{default:!1},isResize:{default:!1},isAcrylic:{default:!1}},data(){return{thisValue:this.modelValue,moveable:!1,freezeTransition:!0,disX:0,disY:0,disWidth:0,disHeight:0,currentLeft:"0px",currentTop:"0px",currentWidth:0,currentHeight:0,isInit:!0}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.refreshPos&&n&&this.posInit(),this.$emit("update:modelValue",n)},left(n){this.currentLeft=`${n}px`},top(n){this.currentTop=`${n}px`}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.Init(),this.eventInit()},methods:{Init(){window.addEventListener("mousemove",n=>{this.moveable&&(this.currentLeft=`${n.clientX-this.disX}px`,this.currentTop=`${n.clientY-this.disY}px`)}),window.addEventListener("touchmove",n=>{n=n.targetTouches[0],this.moveable&&(this.currentLeft=`${n.clientX-this.disX}px`,this.currentTop=`${n.clientY-this.disY}px`)}),window.addEventListener("mouseup",n=>{this.moveable&&this.stop()}),window.addEventListener("touchup",n=>{this.moveable&&this.stop()})},posInit(){let n=this.$el.clientWidth,e=this.$el.clientHeight;this.left==0?this.currentLeft=`${window.innerWidth/2-n/2}px`:this.currentLeft=`${this.left}px`,this.top==0?this.currentTop=`${window.innerHeight/2-e/2}px`:this.currentTop=`${this.top}px`},eventInit(){let n=this.$el;new ResizeObserver(()=>{(!this.isResize||this.isInit)&&this.posInit(),this.isInit&&(this.currentWidth=this.$el.clientWidth,this.currentHeight=this.$el.clientHeight,this.isInit=!1)}).observe(n)},forward(n){this.moveable=!0,this.freezeTransition=!0,n.preventDefault();let{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n;this.disX=e-this.$el.getBoundingClientRect().left,this.disY=t-this.$el.getBoundingClientRect().top},stop(){this.moveable=!1,this.freezeTransition=!1,this.$el.getBoundingClientRect().left<0&&(this.currentLeft="0px"),this.$el.getBoundingClientRect().top<0&&(this.currentTop="0px"),this.$el.getBoundingClientRect().left+this.$el.clientWidth>window.innerWidth&&(this.currentLeft=`${window.innerWidth-this.$el.clientWidth}px`),this.$el.getBoundingClientRect().top+this.$el.clientHeight>window.innerHeight&&(this.currentTop=`${window.innerHeight-this.$el.clientHeight}px`),setTimeout(()=>{this.freezeTransition=!0},300)},resizeStart(n,e="h"){let{clientX:t,clientY:r}=n.targetTouches?n.targetTouches[0]:n;e!=="v"&&(this.disWidth=t-this.$el.getBoundingClientRect().right),e!=="h"&&(this.disHeight=r-this.$el.getBoundingClientRect().bottom)},resizeMove(n,e="h"){let{clientX:t,clientY:r}=n.targetTouches?n.targetTouches[0]:n;e!=="v"&&(this.currentWidth=t-this.$el.getBoundingClientRect().left+this.disWidth+15),e!=="h"&&(this.currentHeight=r-this.$el.getBoundingClientRect().top+this.disHeight+15)},stopPropagation(n){n.stopPropagation()},close(){this.$emit("close"),this.thisValue=!1}}},Dw={style:{"margin-left":"10px","user-select":"none"}},$w=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];function Nw(n,e,t,r,s,o){const l=i.resolveComponent("spliter");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-WebWindow",[o.$theme,{"static-transition":!s.freezeTransition,"enabled-resize":t.isResize,dark:n.theme=="dark","is-acrylic":t.isAcrylic}]]),style:i.normalizeStyle({left:s.currentLeft,top:s.currentTop,width:s.currentWidth==0?"":`${s.currentWidth}px`,height:s.currentHeight==0?"":`${s.currentHeight}px`}),ref:"block"},[i.createElementVNode("div",{draggable:"false",class:"title-bar",onMousedown:e[2]||(e[2]=(...a)=>o.forward&&o.forward(...a)),onMouseup:e[3]||(e[3]=(...a)=>o.stop&&o.stop(...a)),onTouchstart:e[4]||(e[4]=(...a)=>o.forward&&o.forward(...a)),onTouchend:e[5]||(e[5]=(...a)=>o.stop&&o.stop(...a))},[i.createElementVNode("p",Dw,i.toDisplayString(t.title),1),i.createElementVNode("button",{class:"control-btn shut-down",onMousedown:e[0]||(e[0]=(...a)=>o.stopPropagation&&o.stopPropagation(...a)),onClick:e[1]||(e[1]=(...a)=>o.close&&o.close(...a))},$w,32)],32),i.renderSlot(n.$slots,"default"),t.isResize?(i.openBlock(),i.createBlock(l,{key:0,onMousedown:o.resizeStart,onTouchstart:o.resizeStart,onMousemove:o.resizeMove,onTouchmove:o.resizeMove},null,8,["onMousedown","onTouchstart","onMousemove","onTouchmove"])):i.createCommentVNode("",!0),t.isResize?(i.openBlock(),i.createBlock(l,{key:1,type:"vertical",onMousedown:e[6]||(e[6]=a=>o.resizeStart(a,"v")),onTouchstart:e[7]||(e[7]=a=>o.resizeStart(a,"v")),onMousemove:e[8]||(e[8]=a=>o.resizeMove(a,"v")),onTouchmove:e[9]||(e[9]=a=>o.resizeMove(a,"v"))})):i.createCommentVNode("",!0),t.isResize?(i.openBlock(),i.createBlock(l,{key:2,type:"both",onMousedown:e[10]||(e[10]=a=>o.resizeStart(a,"both")),onTouchstart:e[11]||(e[11]=a=>o.resizeStart(a,"both")),onMousemove:e[12]||(e[12]=a=>o.resizeMove(a,"both")),onTouchmove:e[13]||(e[13]=a=>o.resizeMove(a,"both"))})):i.createCommentVNode("",!0)],6)),[[i.vShow,s.thisValue]])}const Ks=j(Z(Iw,[["render",Nw]])),n_="",Lw={install(n){n.config.globalProperties.$SDate=ie,n.config.globalProperties.$SUtility=ci,n.config.globalProperties.$FvConfig=br()}},Pw=[kr,_r,Cr,Sr,xr,Vr,Er,Tr,Br,Ir,Dr,$r,Nr,Lr,Pr,Mr,zr,Rr,Fr,Ar,Wr,Hr,Gr,Xr,rs,os,cs,us,fs,hs,ms,gs,ps,bs,ws,ys,ks,vs,_s,Cs,Ss,xs,Vs,Fs,Gs,Us,Ys,qs,Xs,js,Js,Ks],Qs={install(n,e){const t=Vl();n.use(t),n.use(Lw);for(const r of Pw)n.use(r)}};O.FvAnimatedIcon=kr,O.FvBadge=_r,O.FvBreadcrumb=Cr,O.FvButton=Sr,O.FvCalendarDatePicker=xr,O.FvCalendarView=Vr,O.FvCallout=Er,O.FvCheckBox=Tr,O.FvCollapse=Br,O.FvColorPicker=Ir,O.FvCombobox=Dr,O.FvCommandBar=$r,O.FvComponentPlugins=Qs,O.FvDatePicker=Nr,O.FvDetailsList=Lr,O.FvDrawer=Pr,O.FvDropDown=Mr,O.FvExpander=zr,O.FvFlipView=Rr,O.FvIconElement=Fr,O.FvImage=Ar,O.FvImg=Wr,O.FvImgBox=Hr,O.FvInfiniteScrollView=Gr,O.FvInfoBox=Xr,O.FvListView=rs,O.FvMenuFlyout=os,O.FvMessageBar=cs,O.FvNavigationPanel=us,O.FvNavigationView=fs,O.FvPagination=hs,O.FvPanel=ms,O.FvPersona=gs,O.FvPivot=ps,O.FvProgressBar=bs,O.FvProgressRing=ws,O.FvRadio=ys,O.FvRadioGroup=ks,O.FvRatingControl=vs,O.FvRevealContainer=_s,O.FvScrollStory=Cs,O.FvSearchBox=Ss,O.FvShimmer=xs,O.FvSlider=Vs,O.FvSwipeControl=Fs,O.FvTag=Gs,O.FvTextBox=Us,O.FvTextField=Ys,O.FvTimePicker=qs,O.FvToggleSwitch=Xs,O.FvTreeView=js,O.FvVerifyBox=Js,O.FvWebWindow=Ks,O.createInfoBox=Yr,O.createMessageBar=ls,O.createSwiftWarning=as,O.default=Qs,O.infoBoxPlugin=qr,O.messageBarPlugin=ds,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
27
|
+
*/var Ro,Ze,Xt,Li,Bt,gn,Fo,ph=function(){return typeof window<"u"},ht={},It=180/Math.PI,pn=Math.PI/180,jt=Math.atan2,Oo=1e8,Ao=/([A-Z])/g,Gn=/[-+=\.]*\d+[\.e-]*\d*[a-z%]*/g,bh=/(?:left|right|width|margin|padding|x)/i,wh=/[\s,\(]\S/,mt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wo=function(e,t){return t.set(t.t,t.p,~~((t.s+t.c*e)*1e3)/1e3+t.u,t)},yh=function(e,t){return t.set(t.t,t.p,e===1?t.e:~~((t.s+t.c*e)*1e3)/1e3+t.u,t)},kh=function(e,t){return t.set(t.t,t.p,e?~~((t.s+t.c*e)*1e3)/1e3+t.u:t.b,t)},vh=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Ho=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Go=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},_h=function(e,t,r){return e.style[t]=r},Ch=function(e,t,r){return e.style.setProperty(t,r)},Sh=function(e,t,r){return e._gsap[t]=r},xh=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},Vh=function(e,t,r,s,o){var l=e._gsap;l.scaleX=l.scaleY=r,l.renderTransform(o,l)},Eh=function(e,t,r,s,o){var l=e._gsap;l[t]=r,l.renderTransform(o,l)},We="transform",gt=We+"Origin",Uo,Pi=function(e,t){var r=Ze.createElementNS?Ze.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ze.createElement(e);return r.style?r:Ze.createElement(e)},Jt=function n(e,t,r){var s=getComputedStyle(e);return s[t]||s.getPropertyValue(t.replace(Ao,"-$1").toLowerCase())||s.getPropertyValue(t)||!r&&n(e,Kt(t)||t,1)||""},Yo="O,Moz,ms,Ms,Webkit".split(","),Kt=function(e,t){var r=t||Bt,s=r.style,o=5;if(e in s)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(Yo[o]+e in s););return o<0?null:(o===3?"ms":o>=0?Yo[o]:"")+e},Mi=function(){ph()&&(Ro=window,Ze=Ro.document,Xt=Ze.documentElement,Bt=Pi("div")||{style:{}},gn=Pi("div"),We=Kt(We),gt=Kt(gt),Bt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Uo=!!Kt("perspective"),Li=1)},Th=function n(e){var t=Pi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,o=this.style.cssText,l;if(Xt.appendChild(t),t.appendChild(this),this.style.display="block",e)try{l=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(l=this._gsapBBox());return s?r.insertBefore(this,s):r.appendChild(this),Xt.removeChild(t),this.style.cssText=o,l},qo=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Xo=function(e){var t;try{t=e.getBBox()}catch{t=Th.call(e,!0)}return t&&!t.width&&!t.x&&!t.y?{x:+qo(e,["x","cx","x1"])||0,y:+qo(e,["y","cy","y1"])||0,width:0,height:0}:t},jo=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Xo(e))},zi=function(e,t){if(t){var r=e.style;t in ht&&(t=We),r.removeProperty?((t.substr(0,2)==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(t.replace(Ao,"-$1").toLowerCase())):r.removeAttribute(t)}},pt=function(e,t,r,s,o,l){var a=new Ee(e._pt,t,r,0,1,l?Go:Ho);return e._pt=a,a.b=s,a.e=o,e._props.push(r),a},Jo={deg:1,rad:1,turn:1},Dt=function(e,t,r,s){var o=parseFloat(r)||0,l=(r+"").trim().substr((o+"").length)||"px",a=Bt.style,d=bh.test(t),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(d?"Width":"Height"),f=100,m=s==="px",h,g,_,p;return s===l||!o||Jo[s]||Jo[l]?o:(p=e.getCTM&&jo(e),s==="%"&&(ht[t]||~t.indexOf("adius"))?se(o/(p?e.getBBox()[d?"width":"height"]:e[u])*f):(a[d?"width":"height"]=f+(m?l:s),g=~t.indexOf("adius")||s==="em"&&e.appendChild&&!c?e:e.parentNode,p&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===Ze||!g.appendChild)&&(g=Ze.body),_=g._gsap,_&&s==="%"&&_.width&&d&&_.time===Ae.time?se(o/_.width*f):(g===e&&(a.position="static"),g.appendChild(Bt),h=Bt[u],g.removeChild(Bt),a.position="absolute",d&&s==="%"&&(_=Gt(g),_.time=Ae.time,_.width=g[u]),se(m?h*o/f:f/h*o))))},bn=function(e,t,r,s){var o;return Li||Mi(),t in mt&&t!=="transform"&&(t=mt[t],~t.indexOf(",")&&(t=t.split(",")[0])),ht[t]&&t!=="transform"?(o=Yn(e,s),o=t!=="transformOrigin"?o[t]:qn(Jt(e,gt))+o.zOrigin+"px"):(o=e.style[t],(!o||o==="auto"||s||~(o+"").indexOf("calc("))&&(o=Un[t]&&Un[t](e,t,r)||Jt(e,t)||fo(e,t)||(t==="opacity"?1:0))),r&&!~(o+"").indexOf(" ")?Dt(e,t,o,r)+r:o},Bh=function(e,t,r,s){var o=new Ee(this._pt,e.style,t,0,1,Mo),l=0,a=0,d,c,u,f,m,h,g,_,p,C,y,w,v;if(o.b=r,o.e=s,r+="",s+="",s==="auto"&&(e.style[t]=s,s=Jt(e,t)||s,e.style[t]=r),d=[r,s],To(d),r=d[0],s=d[1],h=r.indexOf("rgba("),g=s.indexOf("rgba("),!!h!=!!g&&(h?r=r.substr(h)+" "+r.substr(0,h-1):s=s.substr(g)+" "+s.substr(0,g-1)),u=r.match(Gn)||[],v=s.match(Gn)||[],v.length){for(;c=Gn.exec(s);)g=c[0],p=s.substring(l,c.index),m?m=(m+1)%5:(p.substr(-5)==="rgba("||p.substr(-5)==="hsla(")&&(m=1),g!==(h=u[a++]||"")&&(f=parseFloat(h)||0,y=h.substr((f+"").length),w=g.charAt(1)==="="?+(g.charAt(0)+"1"):0,w&&(g=g.substr(2)),_=parseFloat(g),C=g.substr((_+"").length),l=Gn.lastIndex-C.length,C||(C=C||ze.units[t]||y,l===s.length&&(s+=C,o.e+=C)),y!==C&&(f=Dt(e,t,h,C)||0),o._pt={_next:o._pt,p:p||a===1?p:",",s:f,c:w?w*_:_-f,m:m&&m<4?Math.round:0});o.c=l<s.length?s.substring(l,s.length):""}else o.r=t==="display"&&s==="none"?Go:Ho;return eo.test(s)&&(o.e=0),this._pt=o,o},Ko={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ih=function(e){var t=e.split(" "),r=t[0],s=t[1]||"50%";return(r==="top"||r==="bottom"||s==="left"||s==="right")&&(e=r,r=s,s=e),t[0]=Ko[r]||r,t[1]=Ko[s]||s,t.join(" ")},Dh=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,s=r.style,o=t.u,l,a,d;if(o==="all"||o===!0)s.cssText="",a=1;else for(o=o.split(","),d=o.length;--d>-1;)l=o[d],ht[l]&&(a=1,l=l==="transformOrigin"?gt:We),zi(r,l);a&&(zi(r,We),a=r._gsap,a&&(a.svg&&r.removeAttribute("transform"),Yn(r,1)))}},Un={clearProps:function(e,t,r,s,o){if(o.data!=="isFromStart"){var l=e._pt=new Ee(e._pt,t,r,0,0,Dh);return l.u=s,l.pr=-10,l.tween=o,e._props.push(r),1}}},wn=[1,0,0,1,0,0],Qo={},Zo=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},es=function(e){var t=Jt(e,We);return Zo(t)?wn:t.substr(7).match(Zr).map(se)},ts=function(e,t){var r=e._gsap,s=e.style,o=es(e),l,a,d,c;return r.svg&&e.getAttribute("transform")?(d=e.transform.baseVal.consolidate().matrix,o=[d.a,d.b,d.c,d.d,d.e,d.f],o.join(",")==="1,0,0,1,0,0"?wn:o):(o===wn&&!e.offsetParent&&e!==Xt&&!r.svg&&(d=s.display,s.display="block",l=e.parentNode,(!l||!e.offsetParent)&&(c=1,a=e.nextSibling,Xt.appendChild(e)),o=es(e),d?s.display=d:zi(e,"display"),c&&(a?l.insertBefore(e,a):l?l.appendChild(e):Xt.removeChild(e))),t&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},Ri=function(e,t,r,s,o,l){var a=e._gsap,d=o||ts(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,f=a.xOffset||0,m=a.yOffset||0,h=d[0],g=d[1],_=d[2],p=d[3],C=d[4],y=d[5],w=t.split(" "),v=parseFloat(w[0])||0,b=parseFloat(w[1])||0,k,x,I,D;r?d!==wn&&(x=h*p-g*_)&&(I=v*(p/x)+b*(-_/x)+(_*y-p*C)/x,D=v*(-g/x)+b*(h/x)-(h*y-g*C)/x,v=I,b=D):(k=Xo(e),v=k.x+(~w[0].indexOf("%")?v/100*k.width:v),b=k.y+(~(w[1]||w[0]).indexOf("%")?b/100*k.height:b)),s||s!==!1&&a.smooth?(C=v-c,y=b-u,a.xOffset=f+(C*h+y*_)-C,a.yOffset=m+(C*g+y*p)-y):a.xOffset=a.yOffset=0,a.xOrigin=v,a.yOrigin=b,a.smooth=!!s,a.origin=t,a.originIsAbsolute=!!r,e.style[gt]="0px 0px",l&&(pt(l,a,"xOrigin",c,v),pt(l,a,"yOrigin",u,b),pt(l,a,"xOffset",f,a.xOffset),pt(l,a,"yOffset",m,a.yOffset))},Yn=function(e,t){var r=e._gsap||new Do(e);if("x"in r&&!t&&!r.uncache)return r;var s=e.style,o=r.scaleX<0,l=r.xOrigin||0,a=r.yOrigin||0,d="px",c="deg",u=Jt(e,gt)||"0",f,m,h,g,_,p,C,y,w,v,b,k,x,I,D,S,V,M,L,E,z,B,T,F,ee,oe,Q,ve,ke,de;return f=m=h=p=C=y=w=v=b=0,g=_=1,r.svg=!!(e.getCTM&&jo(e)),k=ts(e,r.svg),r.svg&&Ri(e,u,r.originIsAbsolute,r.smooth!==!1,k),k!==wn&&(S=k[0],V=k[1],M=k[2],L=k[3],f=E=k[4],m=z=k[5],k.length===6?(g=Math.sqrt(S*S+V*V),_=Math.sqrt(L*L+M*M),p=S||V?jt(V,S)*It:0,w=M||L?jt(M,L)*It+p:0,r.svg&&(f-=l-(l*S+a*M),m-=a-(l*V+a*L))):(de=k[6],ve=k[7],ee=k[8],oe=k[9],Q=k[10],ke=k[11],f=k[12],m=k[13],h=k[14],x=jt(de,Q),C=x*It,x&&(I=Math.cos(-x),D=Math.sin(-x),B=E*I+ee*D,T=z*I+oe*D,F=de*I+Q*D,ee=E*-D+ee*I,oe=z*-D+oe*I,Q=de*-D+Q*I,ke=ve*-D+ke*I,E=B,z=T,de=F),x=jt(-M,Q),y=x*It,x&&(I=Math.cos(-x),D=Math.sin(-x),B=S*I-ee*D,T=V*I-oe*D,F=M*I-Q*D,ke=L*D+ke*I,S=B,V=T,M=F),x=jt(V,S),p=x*It,x&&(I=Math.cos(x),D=Math.sin(x),B=S*I+V*D,T=E*I+z*D,V=V*I-S*D,z=z*I-E*D,S=B,E=T),C&&Math.abs(C)+Math.abs(p)>359.9&&(C=p=0,y=180-y),g=se(Math.sqrt(S*S+V*V+M*M)),_=se(Math.sqrt(z*z+de*de)),x=jt(E,z),w=Math.abs(x)>2e-4?x*It:0,b=ke?1/(ke<0?-ke:ke):0),r.svg&&(k=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!Zo(Jt(e,We)),k&&e.setAttribute("transform",k))),Math.abs(w)>90&&Math.abs(w)<270&&(o?(g*=-1,w+=p<=0?180:-180,p+=p<=0?180:-180):(_*=-1,w+=w<=0?180:-180)),r.x=((r.xPercent=f&&Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)?0:f)+d,r.y=((r.yPercent=m&&Math.round(e.offsetHeight/2)===Math.round(-m)?-50:0)?0:m)+d,r.z=h+d,r.scaleX=se(g),r.scaleY=se(_),r.rotation=se(p)+c,r.rotationX=se(C)+c,r.rotationY=se(y)+c,r.skewX=w+c,r.skewY=v+c,r.transformPerspective=b+d,(r.zOrigin=parseFloat(u.split(" ")[2])||0)&&(s[gt]=qn(u)),r.xOffset=r.yOffset=0,r.force3D=ze.force3D,r.renderTransform=r.svg?Nh:Uo?ns:$h,r.uncache=0,r},qn=function(e){return(e=e.split(" "))[0]+" "+e[1]},Fi=function(e,t,r){var s=ot(t);return se(parseFloat(t)+parseFloat(Dt(e,"x",r+"px",s)))+s},$h=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ns(e,t)},$t="0deg",yn="0px",Nt=") ",ns=function(e,t){var r=t||this,s=r.xPercent,o=r.yPercent,l=r.x,a=r.y,d=r.z,c=r.rotation,u=r.rotationY,f=r.rotationX,m=r.skewX,h=r.skewY,g=r.scaleX,_=r.scaleY,p=r.transformPerspective,C=r.force3D,y=r.target,w=r.zOrigin,v="",b=C==="auto"&&e&&e!==1||C===!0;if(w&&(f!==$t||u!==$t)){var k=parseFloat(u)*pn,x=Math.sin(k),I=Math.cos(k),D;k=parseFloat(f)*pn,D=Math.cos(k),l=Fi(y,l,x*D*-w),a=Fi(y,a,-Math.sin(k)*-w),d=Fi(y,d,I*D*-w+w)}p!==yn&&(v+="perspective("+p+Nt),(s||o)&&(v+="translate("+s+"%, "+o+"%) "),(b||l!==yn||a!==yn||d!==yn)&&(v+=d!==yn||b?"translate3d("+l+", "+a+", "+d+") ":"translate("+l+", "+a+Nt),c!==$t&&(v+="rotate("+c+Nt),u!==$t&&(v+="rotateY("+u+Nt),f!==$t&&(v+="rotateX("+f+Nt),(m!==$t||h!==$t)&&(v+="skew("+m+", "+h+Nt),(g!==1||_!==1)&&(v+="scale("+g+", "+_+Nt),y.style[We]=v||"translate(0, 0)"},Nh=function(e,t){var r=t||this,s=r.xPercent,o=r.yPercent,l=r.x,a=r.y,d=r.rotation,c=r.skewX,u=r.skewY,f=r.scaleX,m=r.scaleY,h=r.target,g=r.xOrigin,_=r.yOrigin,p=r.xOffset,C=r.yOffset,y=r.forceCSS,w=parseFloat(l),v=parseFloat(a),b,k,x,I,D;d=parseFloat(d),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,d+=u),d||c?(d*=pn,c*=pn,b=Math.cos(d)*f,k=Math.sin(d)*f,x=Math.sin(d-c)*-m,I=Math.cos(d-c)*m,c&&(u*=pn,D=Math.tan(c-u),D=Math.sqrt(1+D*D),x*=D,I*=D,u&&(D=Math.tan(u),D=Math.sqrt(1+D*D),b*=D,k*=D)),b=se(b),k=se(k),x=se(x),I=se(I)):(b=f,I=m,k=x=0),(w&&!~(l+"").indexOf("px")||v&&!~(a+"").indexOf("px"))&&(w=Dt(h,"x",l,"px"),v=Dt(h,"y",a,"px")),(g||_||p||C)&&(w=se(w+g-(g*b+_*x)+p),v=se(v+_-(g*k+_*I)+C)),(s||o)&&(D=h.getBBox(),w=se(w+s/100*D.width),v=se(v+o/100*D.height)),D="matrix("+b+","+k+","+x+","+I+","+w+","+v+")",h.setAttribute("transform",D),y&&(h.style[We]=D)},Lh=function(e,t,r,s,o,l){var a=360,d=Ce(o),c=parseFloat(o)*(d&&~o.indexOf("rad")?It:1),u=l?c*l:c-s,f=s+u+"deg",m,h;return d&&(m=o.split("_")[1],m==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),m==="cw"&&u<0?u=(u+a*Oo)%a-~~(u/a)*a:m==="ccw"&&u>0&&(u=(u-a*Oo)%a-~~(u/a)*a)),e._pt=h=new Ee(e._pt,t,r,s,u,yh),h.e=f,h.u="deg",e._props.push(r),h},Ph=function(e,t,r){var s=gn.style,o=r._gsap,l="perspective,force3D,transformOrigin,svgOrigin",a,d,c,u,f,m,h,g;s.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",s[We]=t,Ze.body.appendChild(gn),a=Yn(gn,1);for(d in ht)c=o[d],u=a[d],c!==u&&l.indexOf(d)<0&&(h=ot(c),g=ot(u),f=h!==g?Dt(r,d,c,g):parseFloat(c),m=parseFloat(u),e._pt=new Ee(e._pt,o,d,f,m-f,Wo),e._pt.u=g||0,e._props.push(d));Ze.body.removeChild(gn)};Oe("padding,margin,Width,Radius",function(n,e){var t="Top",r="Right",s="Bottom",o="Left",l=(e<3?[t,r,s,o]:[t+o,t+r,s+r,s+o]).map(function(a){return e<2?n+a:"border"+a+n});Un[e>1?"border"+n:n]=function(a,d,c,u,f){var m,h;if(arguments.length<4)return m=l.map(function(g){return bn(a,g,c)}),h=m.join(" "),h.split(m[0]).length===5?m[0]:h;m=(u+"").split(" "),h={},l.forEach(function(g,_){return h[g]=m[_]=m[_]||m[(_-1)/2|0]}),a.init(d,h,f)}});var is={name:"css",register:Mi,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,s,o){var l=this._props,a=e.style,d,c,u,f,m,h,g,_,p,C,y,w,v,b,k;Li||Mi();for(g in t)if(g!=="autoRound"&&(c=t[g],!(Ie[g]&&$o(g,t,r,s,e,o))))if(m=typeof c,h=Un[g],m==="function"&&(c=c.call(r,s,e,o),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=On(c)),h)h(this,e,g,c,r)&&(k=1);else if(g.substr(0,2)==="--")this.add(a,"setProperty",getComputedStyle(e).getPropertyValue(g)+"",c+"",s,o,0,0,g);else{if(d=bn(e,g),f=parseFloat(d),C=m==="string"&&c.charAt(1)==="="?+(c.charAt(0)+"1"):0,C&&(c=c.substr(2)),u=parseFloat(c),g in mt&&(g==="autoAlpha"&&(f===1&&bn(e,"visibility")==="hidden"&&u&&(f=0),pt(this,a,"visibility",f?"inherit":"hidden",u?"inherit":"hidden",!u)),g!=="scale"&&g!=="transform"&&(g=mt[g],~g.indexOf(",")&&(g=g.split(",")[0]))),y=g in ht,y){if(w||(v=e._gsap,v.renderTransform||Yn(e),b=t.smoothOrigin!==!1&&v.smooth,w=this._pt=new Ee(this._pt,a,We,0,1,v.renderTransform,v,0,-1),w.dep=1),g==="scale")this._pt=new Ee(this._pt,v,"scaleY",v.scaleY,C?C*u:u-v.scaleY),l.push("scaleY",g),g+="X";else if(g==="transformOrigin"){c=Ih(c),v.svg?Ri(e,c,0,b,0,this):(p=parseFloat(c.split(" ")[2]),p!==v.zOrigin&&pt(this,v,"zOrigin",v.zOrigin,p),pt(this,a,g,qn(d),qn(c)));continue}else if(g==="svgOrigin"){Ri(e,c,1,b,0,this);continue}else if(g in Qo){Lh(this,v,g,f,c,C);continue}else if(g==="smoothOrigin"){pt(this,v,"smooth",v.smooth,c);continue}else if(g==="force3D"){v[g]=c;continue}else if(g==="transform"){Ph(this,c,e);continue}}else g in a||(g=Kt(g)||g);if(y||(u||u===0)&&(f||f===0)&&!wh.test(c)&&g in a)_=(d+"").substr((f+"").length),p=(c+"").substr((u+"").length)||(g in ze.units?ze.units[g]:_),_!==p&&(f=Dt(e,g,d,p)),this._pt=new Ee(this._pt,y?v:a,g,f,C?C*u:u-f,p==="px"&&t.autoRound!==!1&&!y?vh:Wo),this._pt.u=p||0,_!==p&&(this._pt.b=d,this._pt.r=kh);else if(g in a)Bh.call(this,e,g,d,c);else if(g in e)this.add(e,g,e[g],c,s,o);else{oo(g,c);continue}l.push(g)}k&&zo(this)},get:bn,aliases:mt,getSetter:function(e,t,r){return t=mt[t]||t,t in ht&&t!==gt&&(e._gsap.x||bn(e,"x"))?r&&Fo===r?t==="scale"?xh:Sh:(Fo=r||{})&&(t==="scale"?Vh:Eh):e.style&&!fi(e.style[t])?_h:~t.indexOf("-")?Ch:Di(e,t)}};Qe.utils.checkPrefix=Kt,function(n,e,t,r){var s=Oe(n+","+e+","+t,function(o){ht[o]=1});Oe(e,function(o){ze.units[o]="deg",Qo[o]=1}),mt[s[13]]=n+","+e,Oe(r,function(o){var l=o.split(":");mt[l[1]]=s[l[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),Oe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){ze.units[n]="px"}),Qe.registerPlugin(is);var Ve=Qe.registerPlugin(is)||Qe;Ve.core.Tween;const Mh={props:{top:{default:0},height:{default:60},background:{default:""},theme:{type:String,default:"global"}},data(){return{thisTop:0,thisHeight:60,styles:{slider:{background:""}}}},watch:{top(){this.moveInit()},height(){this.moveInit()},background(){this.stylesInit()}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.moveInit(),this.stylesInit()},methods:{moveInit(){let n=this.top-this.thisTop;n>0?this.heightExpandToBottom(n):this.heightExpandToTop(n)},stylesInit(){this.styles.slider.background=this.background},heightExpandToBottom(n){let e=Math.abs(n)+this.height;Ve.to(this.$data,{thisHeight:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToBottom})},heightFormatToBottom(){Ve.to(this.$data,{thisTop:this.top,thisHeight:this.height,duration:.2,ease:"power3.out"})},heightExpandToTop(n){let e=Math.abs(n)+this.height;Ve.to(this.$data,{thisTop:this.top,thisHeight:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.heightFormatToTop})},heightFormatToTop(){Ve.to(this.$data,{thisHeight:this.height,duration:.2,ease:"power3.out"})}}},zh={class:"fv-listview-slider"};function Rh(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",zh,[i.createElementVNode("span",{class:"s",style:i.normalizeStyle({"margin-top":`${s.thisTop}px`,height:`${s.thisHeight}px`})},[i.createElementVNode("p",{style:i.normalizeStyle({background:s.styles.slider.background})},null,4)],4)])}const Fh={name:"FvListView",components:{verticalSlider:Z(Mh,[["render",Rh]])},emits:["update:modelValue","item-click","chooseItem","choosen-items","selection-change","item-drag-over","item-drag-leave","item-drop","update:sliderTarget","update:sliderIndex"],props:{...Ef,modelValue:{default:()=>[]},choosen:{default:()=>[]},multiple:{default:!1},rowHeight:{default:""},headerForeground:{default:""},choosenBackground:{default:""},itemPadding:{default:""},itemBorderRadius:{default:3},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},showSlider:{default:!1},sliderTarget:{default:()=>{}},sliderIndex:{default:-1}},computed:{$theme(){return W(this.$props).theme.value}},data(){return{FR:{init:!1,el:()=>this.$el,revealHandlerList:[]},thisValue:[],focus:!1,showSelectedBorder:!1,thisSliderTarget:null,thisSliderIndex:this.sliderIndex,currentTop:0,currentHeight:0,timer:{debounce:null}}},watch:{modelValue(n){this.valueInit(),this.setChoosen()},choosen(n){this.setChoosen()},sliderTarget(n){this.thisSliderTarget=n},thisSliderTarget(n){this.$emit("update:sliderTarget",n)},sliderIndex(n){this.thisSliderIndex=n,this.setSliderTarget(n)},thisSliderIndex(n){this.$emit("update:sliderIndex",n)}},computed:{borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(160, 160, 160, 0.2)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(160, 160, 160, 0.2)"},currentChoosen(){let n=[];for(let e=0;e<this.thisValue.length;e++)this.thisValue[e].choosen&&this.thisValue[e].show&&n.push(this.thisValue[e]);return n},currentChoosenAll(){for(let n=0;n<this.thisValue.length;n++)if(this.thisValue[n].choosen!=!0&&this.thisValue[n].show)return!1;return!0},currentChoosenNum(){let n=0;for(let e=0;e<this.thisValue.length;e++)this.thisValue[e].choosen&&this.thisValue[e].show&&n++;return n},_rowHeight(){return isNaN(this.rowHeight)?this.rowHeight:this.rowHeight+"px"},$theme(){return this.theme=="system"?this.$fvGlobal.state.theme:this.theme}},mounted(){this.valueInit(),this.setChoosen(),this.outSideClickInit(),this.keyDownEventInit(),this.sliderRefreshInit(),window.addEventListener("click",()=>{this.showSelectedBorder=!1}),setTimeout(()=>{this.setSliderTarget()},300)},methods:{valueInit(){let n={name:"",show:!0,choosen:!1,selected:!1,disabled:!1},e=[];for(let t of this.modelValue){let r=JSON.parse(JSON.stringify(n));e.push(Object.assign(r,t))}this.thisValue=e},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.focus=!1)})},keyDownEventInit(){window.addEventListener("keydown",n=>{!this.focus||(n.keyCode===40?this.move(n,1):n.keyCode===38&&this.move(n,-1),n.keyCode===13&&this.enter(n))})},valueTrigger(n){return typeof n=="function"?n():n},handlerClick(n,e){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{if(this.onChoosen(n,e),this.valueTrigger(e.disabled)||this.valueTrigger(e.type)==="header"||this.valueTrigger(e.type)=="divider")return;let t=this.thisValue.indexOf(e);this.$emit("item-click",{item:e,index:t,event:n})},200)},onChoosen(n,e){if(this.valueTrigger(e.disabled)||this.valueTrigger(e.type)==="header"||this.valueTrigger(e.type)=="divider")return 0;if(this.multiple)this.currentChoosen.find(s=>s.key===e.key)!=null?(e.choosen=!1,this.thisValue[this.thisValue.indexOf(e)]=e):(e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e);else{for(let r of this.currentChoosen)r.choosen=!1,this.thisValue[this.thisValue.indexOf(r)]=r;e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e}this.selectionFormat(e),this.scrollFormat(n.target);let t=this.thisValue.indexOf(e);this.$emit("chooseItem",{item:e,index:t,event:n}),this.setSliderTarget(t),this.$emit("choosen-items",this.currentChoosen)},setChoosen(){for(let n of this.choosen){if(this.valueTrigger(n.disabled)||this.valueTrigger(n.type)==="header"||this.valueTrigger(n.type)=="divider")continue;let e=this.thisValue.find(t=>t.key===n.key);if(e){if(!this.multiple)for(let r of this.currentChoosen)r.choosen=!1,this.thisValue[this.thisValue.indexOf(r)]=r;e.choosen=!0;let t=this.thisValue.indexOf(e);this.thisValue[t]=e,this.setSliderTarget(t)}this.selectionFormat(e)}},move(n,e){n.preventDefault(),this.showSelectedBorder=!0;let t=this.thisValue.find(s=>s.selected===!0);if(!t){if(t=this.thisValue.find(o=>!(this.valueTrigger(o.disabled)||this.valueTrigger(o.type)==="header"||this.valueTrigger(o.type)=="divider")),!t)return;let s=this.thisValue.indexOf(t);this.selectionFormat(t),this.scrollFormat(this.$refs[`list_item_${s}`][0]);return}let r=this.thisValue.indexOf(t);if(e==1){for(let s=r+1;s<this.thisValue.length;s++)if(!this.valueTrigger(this.thisValue[s].disabled)&&!(this.valueTrigger(this.thisValue[s].type)==="header"||this.valueTrigger(this.thisValue[s].type)=="divider")){t=this.thisValue[s],r=s;break}}else if(e==-1){for(let s=r-1;s>=0;s--)if(!this.valueTrigger(this.thisValue[s].disabled)&&!(this.valueTrigger(this.thisValue[s].type)==="header"||this.valueTrigger(this.thisValue[s].type)=="divider")){t=this.thisValue[s],r=s;break}}this.selectionFormat(t),this.scrollFormat(this.$refs[`list_item_${r}`][0])},enter(n){let e=this.thisValue.find(r=>r.selected===!0);if(!e)return;if(this.multiple)this.currentChoosen.find(s=>s.key===e.key)!=null?(e.choosen=!1,this.thisValue[this.thisValue.indexOf(e)]=e):(e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e);else{for(let r of this.currentChoosen)r.choosen=!1,this.thisValue[this.thisValue.indexOf(r)]=r;e.choosen=!0,this.thisValue[this.thisValue.indexOf(e)]=e}let t=this.thisValue.indexOf(e);this.$emit("chooseItem",{item:e,index:t,event:n}),this.setSliderTarget(t),this.$emit("choosen-items",this.currentChoosen)},scrollFormat(n){let e=n.getBoundingClientRect(),t=this.$refs.container.getBoundingClientRect();if(e.top<t.top){let r=t.top-e.top;this.$refs.container.scrollTop-=r}if(e.bottom>t.bottom){let r=t.bottom-e.bottom;this.$refs.container.scrollTop-=r}},selectionFormat(n){this.thisValue.forEach((e,t)=>{e.key===n.key&&e.name===n.name?(e.selected=!0,this.thisValue[t]=e,this.$emit("selection-change",e)):(e.selected=!1,this.thisValue[t]=e)})},setSliderTarget(n=null){if(!n){for(let e=0;e<this.thisValue.length;e++)if(this.thisValue[e].choosen){n=e;break}}this.$refs[`list_item_${n}`]&&(this.thisSliderTarget=this.$refs[`list_item_${n}`][0],this.thisSliderIndex=n)},sliderRefreshInit(){this.timer.slider=setInterval(()=>{if(this.thisSliderTarget){let n=this.thisSliderTarget,e=this.$el.getBoundingClientRect().top,t=n.getBoundingClientRect().top;this.currentTop=t-e}else this.currentTop=0;if(this.thisSliderTarget){let n=this.thisSliderTarget;this.currentHeight=n.clientHeight}else this.currentHeight=0},30)},dragOver(n,e){n.preventDefault(),n.stopPropagation(),!this.valueTrigger(e.disabled)&&this.$emit("item-drag-over",{drop:e,root:this.thisValue})},dragLeave(n,e){n.preventDefault(),n.stopPropagation(),this.$emit("item-drag-leave",{drop:e,root:this.thisValue})},dropItem(n,e){n.preventDefault(),n.stopPropagation(),!this.valueTrigger(e.disabled)&&this.$emit("item-drop",{drop:e,root:this.thisValue})},inspectItemAPI(n){let e=this.thisValue.find(s=>this.valueTrigger(s.name)===this.valueTrigger(n.name)&&this.valueTrigger(s.type)===this.valueTrigger(n.type)&&s.key===n.key),t=this.thisValue.indexOf(e);if(t<0)return 0;let r=this.$refs.container.querySelectorAll(".list-view-item");this.onChoosen({target:r[t]},n)}}},Oh={class:"list-view-header"},Ah={class:"list-view-container",ref:"container"},Wh=["onClick","onTouchend","onDragover","onDragleave","onDrop"],Hh={class:"list-view-footer"};function Gh(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("vertical-slider");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ListView",[o.$theme]]),onClick:e[0]||(e[0]=d=>s.focus=!0)},[i.createElementVNode("div",Oh,[i.renderSlot(n.$slots,"header")]),i.createElementVNode("div",Ah,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisValue,(d,c)=>i.withDirectives((i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass([{choose:o.valueTrigger(d.choosen),header:o.valueTrigger(d.type)=="header",hr:o.valueTrigger(d.type)=="divider",normal:o.valueTrigger(d.type)=="default"||o.valueTrigger(d.type)==null,disabled:o.valueTrigger(d.disabled),selected:d.selected&&s.showSelectedBorder},"list-view-item"]),key:c,style:i.normalizeStyle({height:o._rowHeight,background:o.valueTrigger(d.choosen)?t.choosenBackground:"",borderRadius:t.itemBorderRadius+"px"}),ref_for:!0,ref:`list_item_${c}`,onClick:u=>o.handlerClick(u,d),onTouchend:u=>o.handlerClick(u,d),onDragover:u=>o.dragOver(n.event,d),onDragleave:u=>o.dragLeave(n.event,d),onDrop:u=>o.dropItem(n.event,d)},[(o.valueTrigger(d.type)=="default"||o.valueTrigger(d.type)==null)&&!o.valueTrigger(d.disabled)?(i.openBlock(),i.createBlock(l,{key:0,revealContainer:s.FR,parent:()=>n.$refs[`list_item_${c}`][0],class:"fv-listview-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,borderGradientSize:35,borderWidth:1,borderRadius:t.itemBorderRadius},null,8,["revealContainer","parent","backgroundColor","borderColor","borderRadius"])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"item-content",style:i.normalizeStyle({padding:t.itemPadding})},[i.renderSlot(n.$slots,"listItem",{item:d,index:c,valueTrigger:o.valueTrigger},()=>[i.createElementVNode("p",{style:i.normalizeStyle({color:o.valueTrigger(d.type)=="header"?t.headerForeground:""})},i.toDisplayString(o.valueTrigger(d.name)),5)])],4)],46,Wh)),[[i.vShow,o.valueTrigger(d.show)!==!1]])),128))],512),i.createElementVNode("div",Hh,[i.renderSlot(n.$slots,"footer")]),t.showSlider?(i.openBlock(),i.createBlock(a,{key:0,top:s.currentTop,height:s.currentHeight,background:t.headerForeground},null,8,["top","height","background"])):i.createCommentVNode("",!0)],2)}const rs=j(Z(Fh,[["render",Gh]])),z1="",R1="",F1="",Uh={...q},Yh={name:"FvMenuFlyoutChildrenContainer",emits:["choose-item"],props:{modelValue:{default:()=>[]},options:{default:()=>[]},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},titleForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},theme:{type:String,default:"global"}},data(){return{thisValue:this.modelValue,pivotValue:null}},watch:{modelValue(n){this.thisValue=n},pivotItems(n){n.length>0&&(this.pivotValue=n[n.length-1])}},computed:{pivotItems(){let n=[];for(let e of this.thisValue)n.push({key:e.key,name:e.text,ori:e,width:this.pivotTextWidth(e.text)});return(n.length==0||n[n.length-1].ori.children)&&n.push({key:"$fv-menu-flyout-pivot-placeholder",name:this.pivotPlaceholder,ori:{},width:this.pivotTextWidth(this.pivotPlaceholder)}),n},pivotTextWidth(){return n=>n.length<5?60:n.length>20?200:10*n.length},computedOptions(){if(!this.pivotValue)return this.options;let n=this.pivotItems.findIndex(e=>e.key==this.pivotValue.key);return n>0?this.pivotItems[n-1].ori.children?this.pivotItems[n-1].ori.children:[]:this.options},isChoosen(){return n=>this.pivotValue?n.key===this.pivotValue.key&&n.text===this.pivotValue.name:!1},$theme(){return W(this.$props).theme.value}},mounted(){},methods:{valueTrigger(n){return typeof n=="function"?n():n},Choose(n,e){if(this.valueTrigger(e.disabled)||this.valueTrigger(e.type)=="header"||this.valueTrigger(e.type)=="divider")return 0;let t=n.target;for(;t.getAttribute("class").indexOf("fv-menu-flyout-item")<0;)t=t.parentNode;this.$refs.co_items.scrollTop=t.offsetTop,this.$emit("choose-item",{item:e,index:this.thisValue.findIndex(r=>r.key==this.pivotValue.key&&r.text==this.pivotValue.name)})}}},qh={class:"menu-flyout-list-container"},Xh=["onClick","title"],jh={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function Jh(n,e,t,r,s,o){const l=i.resolveComponent("fv-pivot");return i.openBlock(),i.createBlock(i.Transition,{name:"fv-menu-flyout"},{default:i.withCtx(()=>[i.createElementVNode("div",qh,[i.createVNode(l,{modelValue:s.pivotValue,"onUpdate:modelValue":e[0]||(e[0]=a=>s.pivotValue=a),theme:o.$theme,items:o.pivotItems,fontSize:12,sliderBackground:t.choosenSliderBackground,style:{width:"100%",height:"50px","overflow-x":"auto"}},null,8,["modelValue","theme","items","sliderBackground"]),i.createVNode(i.TransitionGroup,{name:"fv-menu-flyout-item",tag:"div",class:"menu-flyout-item-container",style:i.normalizeStyle({background:t.background,"overflow-y":"auto","overflow-x":"visible"}),ref:"co_items"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.computedOptions,(a,d)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-menu-flyout-item",{hr:o.valueTrigger(a.type)=="divider",normal:(o.valueTrigger(a.type)=="default"||o.valueTrigger(a.type)==null)&&!o.valueTrigger(a.disabled),disabled:o.valueTrigger(a.disabled),choose:o.isChoosen(a),title:o.valueTrigger(a.type)=="header"}]),style:i.normalizeStyle({background:o.isChoosen(a)?t.choosenBackground:"",color:o.valueTrigger(a.type)==="header"?t.titleForeground:""}),onClick:c=>o.Choose(c,a),key:`options: ${a.key?a.key:d}`,title:o.valueTrigger(a.text)},[i.renderSlot(n.$slots,"default",{item:a,choosenSliderBackground:t.choosenSliderBackground},()=>[i.createElementVNode("i",{class:"before-choosen",style:i.normalizeStyle({background:t.choosenSliderBackground})},null,4),i.createTextVNode(" "+i.toDisplayString(o.valueTrigger(a.type)!=="divider"?o.valueTrigger(a.text):"")+" ",1),i.withDirectives(i.createElementVNode("i",jh,null,512),[[i.vShow,a.children]])])],14,Xh))),128))]),_:3},8,["style"])])]),_:3})}const Kh={name:"FvMenuFlyout",emits:["update:modelValue","choose-item"],components:{menuFlyoutChildrenContainer:Z(Yh,[["render",Jh]])},props:{...Uh,modelValue:{default:()=>[]},options:{default:()=>[]},borderWidth:{default:2},placeholder:{default:"menuFlyout"},borderRadius:{default:"3"},background:{default:""},choosenBackground:{default:""},choosenSliderBackground:{default:""},inputForeground:{default:""},inputBackground:{default:""},titleForeground:{default:""},dropDownIcon:{default:"ChevronDown"},dropDownIconForeground:{default:""},pivotPlaceholder:{default:"Please Choose"},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},disabled:{default:!1}},data(){return{thisValue:this.modelValue,status:!1}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)}},computed:{isDisabled(){return this.options.length==0||this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},computedValue(){let n=[];for(let e of this.thisValue)n.push(e.text);return n.join(" / ")},$theme(){return W(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.status=!1)}),window.addEventListener("touchend",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.status=!1)})},valueTrigger(n){return typeof n=="function"?n():n},Choose(n){let{item:e,index:t}=n;t==-1?this.thisValue.push(e):(this.thisValue.splice(t+1),this.thisValue[t]=e),e.children||(this.status=!1),this.$emit("choose-item",this.thisValue)}}},Qh=["placeholder","value"],Zh={class:"ms-Icon ms-Icon--ChevronRight after-expand"};function em(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("menu-flyout-children-container");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-MenuFlyout",[o.$theme,{disabled:o.isDisabled}]]),style:i.normalizeStyle({background:t.background,padding:t.borderWidth,"border-radius":`${t.borderRadius}px`,"z-index":s.status?3:"",overflow:"visible"})},[i.createElementVNode("div",{class:"menu-flyout-container",onClick:e[0]||(e[0]=d=>s.status=o.isDisabled?!1:!s.status),style:i.normalizeStyle({background:t.inputBackground,"border-radius":`${t.borderRadius}px`})},[i.createVNode(l,{parent:()=>n.$el,class:"fv-menu-flyout-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:80,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("input",{class:"input",placeholder:t.placeholder,readonly:"",value:o.computedValue,style:i.normalizeStyle({color:t.inputForeground,"border-radius":`${t.borderRadius}px`})},null,12,Qh),i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon right-icon",[`ms-Icon--${t.dropDownIcon}`]]),style:i.normalizeStyle({color:t.dropDownIconForeground})},null,6)],4),i.withDirectives(i.createVNode(a,{modelValue:s.thisValue,options:t.options,background:t.background,choosenBackground:t.choosenBackground,titleForeground:t.titleForeground,theme:o.$theme,onChooseItem:o.Choose},{item:i.withCtx(d=>[i.renderSlot(n.$slots,"default",{item:d.item,choosenSliderBackground:d.choosenSliderBackground},()=>[i.createElementVNode("i",{class:"before-choosen",style:i.normalizeStyle({background:d.choosenSliderBackground})},null,4),i.createTextVNode(" "+i.toDisplayString(o.valueTrigger(d.item.type)!=="divider"?o.valueTrigger(d.item.text):"")+" ",1),i.withDirectives(i.createElementVNode("i",Zh,null,512),[[i.vShow,d.item.children]])])]),_:3},8,["modelValue","options","background","choosenBackground","titleForeground","theme","onChooseItem"]),[[i.vShow,s.status]])],6)}const os=j(Z(Kh,[["render",em]])),W1="",H1="",G1="",tm={...q},nm={name:"FvMessageBar",emits:["close"],props:{...tm,status:{default:"default"},showControl:{default:!1},showClose:{default:!0},mode:{default:"relative"},destroy:{default:()=>{}},autoClose:{default:3e3}},data(){return{iconList:{default:{icon:"Info2",iconColor:"normal"},warning:{icon:"Info2",iconColor:"warning"},correct:{icon:"CheckMark",iconColor:"correct"},blocked:{icon:"Remove ",iconColor:"error"},error:{icon:"ErrorBadge12",iconColor:"error"}},timer:null}},watch:{autoClose(){this.autoDestroyInit()}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.autoDestroyInit(),this.enter()},methods:{enter(){this.$el.style.top="-100%",Ve.to(this.$el,{top:0,duration:.3})},autoDestroyInit(){this.mode!=="relative"&&this.autoClose>0&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.destroySelf()},this.autoClose))},destroySelf(){this.mode=="relative"?this.$emit("close"):Ve.to(this.$el,{opacity:0,duration:.3,onComplete:()=>{this.$emit("close"),this.destroy()}})}}},im={class:"msg-bar-block"},rm={class:"msg-content-block"},om={class:"control-block"};function sm(n,e,t,r,s,o){const l=i.resolveComponent("fv-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-MessageBar",[o.$theme,s.iconList[t.status].iconColor,{relative:t.mode=="relative"}]])},[i.createElementVNode("span",im,[i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${s.iconList[t.status].icon}`,s.iconList[t.status].iconColor]])},null,2),i.createElementVNode("span",rm,[i.renderSlot(n.$slots,"msg",{theme:o.$theme},()=>[i.createTextVNode(" Message Bar. ")])]),i.withDirectives(i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel close-block",onClick:e[0]||(e[0]=(...a)=>o.destroySelf&&o.destroySelf(...a))},null,512),[[i.vShow,t.showClose]])]),i.withDirectives(i.createElementVNode("span",om,[i.renderSlot(n.$slots,"control",{theme:o.$theme,cancel:o.destroySelf},()=>[i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode("Yes")]),_:1})])],512),[[i.vShow,t.showControl]])],2)}const ss=Z(nm,[["render",sm]]);function ls(n,e,t){let r=o=>{const l=i.h(ss,{status:e.status,showControl:e.showControl,showClose:e.autoClose,mode:"fixed",autoClose:e.autoClose,destroy:()=>{i.render(null,o),e.once||o.remove()},theme:e.theme},{msg:n,control:e.control});return l.appContext=t,l},s=document.createElement("div");if(e.once){const o="__fv-global-message-bar__";s=document.getElementById(o),s||(s=document.createElement("div"),s.id=o,document.body.appendChild(s))}else document.body.appendChild(s);i.render(r(s),s)}function as(n,e){var r;if(n.fvSwiftWarning)return 0;let t={color:"rgba(200, 50, 59, 1)",replaceTitle:"SwiftWarning"};t=Object.assign(t,e),t.oriContent=n.innerHTML,t.oriClass=n.getAttribute("class"),t.oriStyle=n.getAttribute("style"),t.oriClass==null&&(t.oriClass=""),t.oriStyle==null&&(t.oriStyle=""),n.fvSwiftWarning=!0,n.innerHTML=(r=t.replaceTitle)!=null?r:"SwiftWarning",n.setAttribute("class",t.oriClass+" fv-swift-warning"),n.setAttribute("style",t.oriStyle+` color: ${t.color};`),setTimeout(()=>{var s,o,l;n.innerHTML=(s=t.oriContent)!=null?s:"",n.setAttribute("class",(o=t.oriClass)!=null?o:""),n.setAttribute("style",(l=t.oriStyle)!=null?l:""),n.fvSwiftWarning=!1},3e3)}const ds={install(n){n.config.globalProperties.$barWarning=(e,t)=>{ls(e,{...t,status:"warning"},n._context)},n.config.globalProperties.$swiftWarning=as}},cs=Ji(ss,[ds]),U1="",Y1="",q1="",lm={...q},am={name:"FvNavigationPanel",emits:["back","setting-click","expand-change","expand-click","update:expand"],setup(){const n=Wt();return n.initRevealInstances(),{uR:n}},props:{...lm,title:{default:"NavigationPanel"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:50},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},background:{default:""}},data(){return{FR:null,thisExpand:this.expand,thisExpandBackup:this.expand,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{expand(n){this.thisExpand=n},thisExpand(n){this.$emit("update:expand",n),this.$emit("expand-change",n)},screenWidth(n){this.expandDisplay<this.screenWidth?this.isFlyout?this.thisExpand=!1:this.thisExpand=this.thisExpandBackup:this.thisExpand=!1}},computed:{panelWidth(){return this.isFlyout?`${this.compactWidth}px`:this.thisExpand?this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`:`${this.compactWidth}px`},navWidth(){let n=this.screenWidth<=this.fullSizeDisplay?"100%":`${this.expandWidth}px`;return this.thisExpand?n:`${this.compactWidth}px`},isFlyout(){return this.expandMode=="flyout"||this.flyoutDisplay>this.screenWidth},isMobile(){return this.mobileDisplay>this.screenWidth},borderLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return()=>this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},$theme(){return W(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.outSideClickInit()},methods:{FRInit(){this.FR=this.uR.revealDirectJs.apply(this.$el,{selector:`.fv-${this.$theme}-NavigationPanel .panel-container .fv-nav-default-item`,borderGradientSize:60,borderLightColor:this.borderLightColor,backgroundLightColor:this.backgroundLightColor})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.isFlyout||this.isMobile)&&(this.thisExpand=!1)})},expandClick(){this.thisExpandBackup=!this.thisExpand,this.thisExpand=!this.thisExpand,this.$emit("expand-click",this.thisExpand)}},beforeUnmount(){clearInterval(this.timer.widthTimer),this.uR.revealDirectJs.destroy(this.FR)}},dm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),cm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),um=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Back icon"},null,-1),fm={class:"name title"},hm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--GlobalNavButton icon"},null,-1),mm={class:"search"},gm={class:"template"},pm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),bm={class:"name"};function wm(n,e,t,r,s,o){const l=i.resolveComponent("fv-animated-icon"),a=i.resolveComponent("fv-search-box");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-NavigationPanel",[o.$theme,{compact:!s.thisExpand},{flyout:o.isFlyout},{mobile:o.isMobile}]]),style:i.normalizeStyle({position:this.screenWidth<=this.fullSizeDisplay&&s.thisExpand?"static":"",width:o.panelWidth})},[i.createElementVNode("div",{class:"panel-container-mobile",style:i.normalizeStyle({background:s.thisExpand?"":t.background})},[i.withDirectives(i.createVNode(l,{modelValue:"backScale",class:"fv-nav-default-item",hideContent:!0,style:i.normalizeStyle({width:`${t.compactWidth}px`}),onClick:e[0]||(e[0]=d=>n.$emit("back",d))},{default:i.withCtx(()=>[dm]),_:1},8,["style"]),[[i.vShow,t.showBack]]),i.withDirectives(i.createVNode(l,{modelValue:"scaleXDown",class:"fv-nav-default-item",hideContent:!0,style:i.normalizeStyle({width:`${t.compactWidth}px`}),onClick:o.expandClick},{default:i.withCtx(()=>[cm]),_:1},8,["style","onClick"]),[[i.vShow,t.showNav]])],4),i.createElementVNode("div",{class:"panel-container",style:i.normalizeStyle({width:o.navWidth,background:t.background})},[i.withDirectives(i.createVNode(l,{modelValue:"backScale",class:"fv-nav-default-item control",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e[1]||(e[1]=d=>n.$emit("back",d))},{content:i.withCtx(()=>[i.createElementVNode("p",fm,i.toDisplayString(t.title),1)]),default:i.withCtx(()=>[um]),_:1},8,["hideContent"]),[[i.vShow,t.showBack]]),i.withDirectives(i.createVNode(l,{modelValue:"scaleXDown",class:"fv-nav-default-item control",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:o.expandClick},{content:i.withCtx(()=>[i.withDirectives(i.createElementVNode("p",{class:"name title"},i.toDisplayString(t.title),513),[[i.vShow,!t.showBack]])]),default:i.withCtx(()=>[hm]),_:1},8,["hideContent","onClick"]),[[i.vShow,t.showNav]]),i.withDirectives(i.createElementVNode("span",mm,[i.renderSlot(n.$slots,"searchBlock",{},()=>[i.createVNode(a,{icon:"Search",placeholder:"Search",class:"nav-search",theme:n.theme,revealBorder:!0,borderWidth:"2",borderRadius:"6",isBoxShadow:!0,style:{width:"95%"}},null,8,["theme"])])],512),[[i.vShow,t.showSearch&&s.thisExpand]]),i.createElementVNode("div",gm,[i.renderSlot(n.$slots,"panel")]),i.withDirectives(i.createVNode(l,{modelValue:"bounceRotate",ref:"setting",class:"fv-nav-default-item",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e[2]||(e[2]=d=>n.$emit("setting-click",{event:d}))},{content:i.withCtx(()=>[i.createElementVNode("p",bm,i.toDisplayString(t.settingTitle),1)]),default:i.withCtx(()=>[pm]),_:1},8,["hideContent"]),[[i.vShow,t.showSetting]])],4)],6)}const us=j(Z(am,[["render",wm]])),j1="",J1="",K1="",ym={name:"FvNavigationView",props:{...{...q},emits:["update:modelValue","expand-change","setting-click","item-click","back","expand-click","update:expand"],modelValue:{default:()=>({})},options:{default:()=>[]},title:{default:"NavigationView"},expand:{default:!0},expandMode:{default:"relative"},expandWidth:{default:350},expandDisplay:{default:1024},compactWidth:{default:46},flyoutDisplay:{default:0},fullSizeDisplay:{default:800},mobileDisplay:{default:0},showBack:{default:!0},showNav:{default:!0},showSearch:{default:!0},settingTitle:{default:"Settings"},showSetting:{default:!0},searchPlaceholder:{default:"Search"},foreground:{default:""},background:{default:""}},data(){return{thisValue:{},thisExpand:this.expand,currentTarget:{},currentTop:0,currentHeight:0,timer:{slider:{}}}},watch:{modelValue(n,e){this.valueInit()},thisValue(n,e){n.name===e.name&&n.key===e.key||(this.$nextTick(()=>{this.onChooseSearch(n)}),this.$emit("update:modelValue",n))},expand(n){this.thisExpand=n},thisExpand(n){this.$emit("update:expand",n)}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.valueInit()},methods:{valueInit(){if(this.modelValue.type==="setting")return this.thisValue=this.modelValue,0;let n=this.options.find(e=>e.name===this.modelValue.name&&e.key===this.modelValue.key);n!==void 0?this.thisValue=n:this.thisValue=this.options.find(e=>e.type!=="header"&&e.type!=="divider")},itemClick(n){this.thisValue=n.item},settingClick(n){this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},this.$emit("setting-click",n)},expandChange(n){this.$emit("expand-change",n)},onChooseSearch(n){if(n.type==="setting")return this.currentTarget=this.$refs.setting.$el,this.thisValue={key:">setting",name:">setting",type:"setting"},0;let e=this.options.find(r=>r.name===n.name&&r.key===n.key),t=this.options.indexOf(e);if(t<0)return 0;this.currentTarget=this.$refs.listView.$refs[`list_item_${t}`][0],this.thisValue=e}},beforeUnmount(){clearInterval(this.timer)}},km=i.createElementVNode("i",{class:"ms-Icon ms-Icon--Settings icon"},null,-1),vm={class:"name"};function _m(n,e,t,r,s,o){const l=i.resolveComponent("fv-search-box"),a=i.resolveComponent("fv-animated-icon"),d=i.resolveComponent("fv-list-view"),c=i.resolveComponent("fv-NavigationPanel");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-NavigationView",[o.$theme,{compact:!s.thisExpand}]])},[i.createVNode(c,{title:t.title,expand:s.thisExpand,"onUpdate:expand":e[3]||(e[3]=u=>s.thisExpand=u),expandMode:t.expandMode,expandWidth:t.expandWidth,expandDisplay:t.expandDisplay,compactWidth:t.compactWidth,flyoutDisplay:t.flyoutDisplay,fullSizeDisplay:t.fullSizeDisplay,mobileDisplay:t.mobileDisplay,showBack:t.showBack,showNav:t.showNav,showSearch:t.showSearch,settingTitle:t.settingTitle,showSetting:!1,background:t.background,theme:n.theme,ref:"panel",onBack:e[4]||(e[4]=u=>n.$emit("back",u)),onExpandClick:e[5]||(e[5]=u=>n.$emit("expand-click",u)),onExpandChange:o.expandChange,onSettingClick:o.settingClick},{searchBlock:i.withCtx(()=>[i.createVNode(l,{options:t.options,icon:"Search",placeholder:t.searchPlaceholder,theme:n.theme,class:"nav-search",revealBorder:!0,borderRadius:"3",isBoxShadow:!0,style:{width:"95%"},onChooseResult:o.onChooseSearch},null,8,["options","placeholder","theme","onChooseResult"])]),panel:i.withCtx(()=>[i.createVNode(d,{modelValue:t.options,class:"navigation-list",ref:"listView",theme:n.theme,headerForeground:t.foreground,choosenBackground:"transparent",sliderTarget:s.currentTarget,"onUpdate:sliderTarget":e[1]||(e[1]=u=>s.currentTarget=u),showSlider:!0,onChooseItem:o.itemClick,onItemClick:e[2]||(e[2]=u=>n.$emit("item-click",u.item))},{listItem:i.withCtx(u=>[i.renderSlot(n.$slots,"listItem",{item:u.item,index:u.index,valueTrigger:u.valueTrigger},()=>[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon",[`ms-Icon--${u.valueTrigger(u.item.icon)}`]])},null,2),[[i.vShow,u.valueTrigger(u.item.icon)!==void 0]]),i.createElementVNode("p",{class:"name",style:i.normalizeStyle({color:u.valueTrigger(u.item.type)=="header"?t.foreground:""})},i.toDisplayString(u.valueTrigger(u.item.name)),5)])]),footer:i.withCtx(()=>[i.withDirectives(i.createVNode(a,{ref:"setting",modelValue:"bounceRotate",class:"fv-nav-default-item",hideContent:!s.thisExpand,style:{width:"calc(100% - 10px)"},onClick:e[0]||(e[0]=u=>o.settingClick({event:u}))},{content:i.withCtx(()=>[i.createElementVNode("p",vm,i.toDisplayString(t.settingTitle),1)]),default:i.withCtx(()=>[km]),_:1},8,["hideContent"]),[[i.vShow,t.showSetting]])]),_:3},8,["modelValue","theme","headerForeground","sliderTarget","onChooseItem"])]),_:3},8,["title","expand","expandMode","expandWidth","expandDisplay","compactWidth","flyoutDisplay","fullSizeDisplay","mobileDisplay","showBack","showNav","showSearch","settingTitle","background","theme","onExpandChange","onSettingClick"])],2)}const fs=j(Z(ym,[["render",_m]])),ek="",tk="",nk="",Cm={name:"FvPagination",props:{...{...q},emits:["update:modelValue","next-click","prev-click","page-click"],modelValue:{default:1},foreground:{default:"rgba(0, 90, 158, 1)"},background:{default:"transparent"},total:{default:10},maxVisual:{default:7},small:{default:!1},shadow:{default:!1},disabled:{default:!1}},data(){return{thisValue:this.modelValue,itemList:[]}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n),this.pageItem()},total(n){n<=0?this.itemList=[]:this.pageItem()}},computed:{isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.total<=0?this.itemList=[]:this.pageItem()},methods:{pageItem(){let n=[],e=(this.thisValue-2)*2+3<=this.maxVisual,t=(this.total-this.thisValue-1)*2+3<=this.maxVisual;this.total<=this.maxVisual&&(e=t=!0);let r=this.thisValue==1||this.thisValue==this.total?this.maxVisual-2:this.maxVisual-3;for(let o=0;o<this.total;o++)n.push({num:o+1,index:o,show:!1});n[0].show=!0,n[n.length-1].show=!0;let s=n.find(o=>o.num===this.thisValue).index;n[s].show=!0;for(let o=1;s+o<n.length||s-o>0;o++)s-o>0&&r>0&&(n[s-o].show=!0,r--),s+o<n.length-1&&r>0&&(n[s+o].show=!0,r--);e||n.splice(1,0,{num:-1,index:-1,show:!0}),t||n.splice(this.total-1,0,{num:-2,index:-2,show:!0}),this.itemList=n},next(){this.thisValue++,this.$emit("next-click",this.thisValue)},prev(){this.thisValue--,this.$emit("prev-click",this.thisValue)},handleClick(n){n.index>=0?this.thisValue=n.num:n.index==-1?this.thisValue=this.thisValue-this.maxVisual+2>=1?this.thisValue-this.maxVisual+2:1:n.index==-2&&(this.thisValue=this.thisValue+this.maxVisual-2<=this.total?this.thisValue+this.maxVisual-2:this.total),this.$emit("page-click",this.thisValue)}}},Sm={class:"fv-pagination-container"},xm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronLeft"},null,-1),Vm=i.createElementVNode("i",{class:"ms-Icon ms-Icon--ChevronRight"},null,-1);function Em(n,e,t,r,s,o){const l=i.resolveComponent("fv-button");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Pagination",[o.$theme]])},[i.createElementVNode("div",Sm,[i.createVNode(l,{disabled:s.thisValue==1||o.isDisabled,class:i.normalizeClass([{small:t.small},"page-btn"]),theme:n.theme,background:t.background,"is-box-shadow":t.shadow,borderRadius:"3",onClick:o.prev},{default:i.withCtx(()=>[xm]),_:1},8,["disabled","class","theme","background","is-box-shadow","onClick"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.itemList,(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[a.show?(i.openBlock(),i.createBlock(l,{key:d,class:i.normalizeClass([{small:t.small},"page-btn"]),theme:n.theme,disabled:o.isDisabled,background:t.background,foreground:s.thisValue==a.num?t.foreground:"","is-box-shadow":t.shadow,borderRadius:"3",fontWeight:"bold",onClick:c=>o.handleClick(a)},{default:i.withCtx(()=>[i.createElementVNode("p",{class:i.normalizeClass([{"ms-Icon ms-Icon--More":a.num<0}])},i.toDisplayString(a.num>=0?a.num:""),3)]),_:2},1032,["class","theme","disabled","background","foreground","is-box-shadow","onClick"])):i.createCommentVNode("",!0)],64))),256)),i.createVNode(l,{disabled:s.thisValue==t.total||o.isDisabled,class:i.normalizeClass([{small:t.small,shadow:t.shadow},"page-btn"]),theme:n.theme,background:t.background,borderRadius:"3",onClick:o.next},{default:i.withCtx(()=>[Vm]),_:1},8,["disabled","class","theme","background","onClick"])])],2)}const hs=j(Z(Cm,[["render",Em]])),ok="",sk="",lk="",Tm={...q},Bm={name:"FvPanel",emits:["update:modelValue"],props:{...Tm,modelValue:{default:!0},title:{default:"Sample Panel"},titleSize:{default:20},titleWeight:{default:600},titleColor:{default:""},width:{default:"340"},height:{default:"100%"},background:{default:""},controlPadding:{default:"15px"},contentPadding:{default:"0px"},isNearSide:{default:!1},isBottomSide:{default:!1},isTopSide:{default:!1},isCentralSide:{default:!1},isLightDismiss:{default:!1},showTitleBar:{default:!0},isFooter:{default:!1},isAcrylic:{default:!1},teleport:{default:!1}},data(){return{thisValue:this.modelValue,screenWidth:window.innerWidth,timer:{widthTimer:{}}}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)}},computed:{finalWidth(){return isNaN(this.width)?this.width:this.width>this.screenWidth?`${this.screenWidth}px`:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:this.height>this.screenHeight?`${this.screenHeight}px`:`${this.height}px`},sideName(){return this.isCentralSide?"central":this.isNearSide?"near":this.isTopSide?"top":this.isBottomSide?"bottom":"default"},transitionInName(){return this.sideName==="central"?this.thisValue?"fv-panel-scale-up-to-up":"fv-panel-scale-down-to-down":this.sideName==="near"?this.thisValue?"move-left-to-right":"move-right-to-left":this.sideName==="top"?this.thisValue?"move-top-to-bottom":"move-bottom-to-top":this.sideName==="bottom"?this.thisValue?"move-bottom-to-top":"move-top-to-bottom":this.thisValue?"move-right-to-left":"move-left-to-right"},$theme(){return W(this.$props).theme.value}},mounted(){this.screenWidthInit(),this.teleport&&this.globalAppendInit()},methods:{globalAppendInit(){this.$nextTick(()=>{const n=document.querySelector("body");n.append?n.append(this.$el):n.appendChild(this.$el)})},screenWidthInit(){this.timer.widthTimer=setInterval(()=>{this.screenWidth=window.innerWidth},30)}},beforeUnmount(){clearInterval(this.timer.widthTimer);try{document.querySelector("body").removeChild(this.$el)}catch(n){console.warn("Remove Failed",n)}}};function Im(n,e,t,r,s,o){const l=i.resolveComponent("fv-button");return i.openBlock(),i.createBlock(i.Transition,{name:"fv-panel-show"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["fv-Panel",[o.$theme]])},[i.createElementVNode("div",{class:"fv-panel-back-board",onClick:e[0]||(e[0]=a=>t.isLightDismiss?s.thisValue=!1:0)}),i.createVNode(i.Transition,{name:o.transitionInName},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(["fv-panel-container",[`${o.sideName}-side`,{"acrylic-style":t.isAcrylic}]]),style:i.normalizeStyle({width:o.finalWidth,height:o.finalHeight,background:t.background})},[i.withDirectives(i.createElementVNode("div",{class:"fv-panel-control-block",style:i.normalizeStyle({padding:t.controlPadding})},[i.renderSlot(n.$slots,"header",{},()=>[i.createElementVNode("p",{class:"panel-title",style:i.normalizeStyle({"font-size":`${t.titleSize}px`,"font-weight":t.titleWeight,color:t.titleColor})},i.toDisplayString(t.title),5),i.createElementVNode("i",{class:"control-btn ms-Icon ms-Icon--Cancel",onClick:e[1]||(e[1]=a=>s.thisValue=!s.thisValue)})])],4),[[i.vShow,t.showTitleBar]]),i.createElementVNode("div",{class:"fv-panel-main-container",style:i.normalizeStyle({padding:t.contentPadding})},[i.renderSlot(n.$slots,"container",{},()=>[i.createTextVNode(" Content Here ")])],4),i.withDirectives(i.createElementVNode("div",{class:"fv-panel-footer",style:i.normalizeStyle({padding:t.controlPadding})},[i.renderSlot(n.$slots,"footer",{},()=>[i.createVNode(l,{theme:"dark",background:"rgba(0, 90, 158, 1)"},{default:i.withCtx(()=>[i.createTextVNode("OK")]),_:1}),i.createVNode(l,null,{default:i.withCtx(()=>[i.createTextVNode("Cancel")]),_:1})])],4),[[i.vShow,t.isFooter]])],6),[[i.vShow,s.thisValue]])]),_:3},8,["name"])],2),[[i.vShow,s.thisValue]])]),_:3})}const ms=j(Z(Bm,[["render",Im]])),dk="",ck="",uk="",Dm={name:"FvPersona",props:{...{...q},src:{default:""},name:{default:""},size:{default:40},status:{default:""},icon:{default:""},iconColor:{default:""},background:{default:""},showInfo:{default:!1}},data(){return{statusList:{online:{icon:"FullCircleMask",color:"rgba(107, 183, 0, 1)"},offline:{icon:"LocationFill",color:"rgba(50, 49, 48, 1)"},away:{icon:"SkypeCircleClock",color:"rgba(255, 170, 68, 1)"},busy:{icon:"LocationFill",color:"rgba(196, 49, 72, 1)"},ok:{icon:"SkypeCircleCheck",color:"rgba(107, 183, 0, 1)"},dnd:{icon:"SkypeCircleMinus",color:"rgba(197, 15, 31, 1)"},blocked:{icon:"Blocked",color:"rgba(196, 49, 32, 1)"}},colorList:["#d29200","#ffb900","#ffb900","#d83b01","#ea4300","#ff8c00","#a4262c","#d13438","#5c005c","#b4009e","#e3008c","#32145a","#5c2d91","#b4a0ff","#002050","#00188f","#0078d4","#00bcf2","#004b50","#008272","#00B294","#004b1c","#107c10","#bad80a"]}},computed:{nameCard(){return this.name[0]},nameCardBackground(){let n=0;return this.name!==""&&(n=this.name[0].charCodeAt()%this.colorList.length),this.colorList[n]},currentIcon(){return this.icon!==""?this.icon:this.status===""?"":this.statusList[this.status].icon},currentIconColor(){return this.iconColor!=""?this.iconColor:this.status===""?this.statusList.online.color:this.statusList[this.status].color},iconFontSize(){return this.size/4.8+6},titleFontSize(){return this.size/16+12.5},secondaryFontSize(){return this.size/48+11.5},showStatus(){return this.status!==""||this.icon!==""},$theme(){return W(this.$props).theme.value}}},$m={class:"persona-content-block"};function Nm(n,e,t,r,s,o){const l=i.resolveComponent("fv-img");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Persona",[o.$theme]])},[i.createElementVNode("div",{class:"persona-avatar",style:i.normalizeStyle({width:`${t.size}px`,height:`${t.size}px`})},[i.createElementVNode("div",{class:"persona-bg",style:i.normalizeStyle({background:t.background?t.background:o.nameCardBackground,"font-size":`${t.size/2.3}px`})},i.toDisplayString(o.nameCard),5),t.src!==""?(i.openBlock(),i.createBlock(l,{key:0,src:t.src,style:{width:"100%",height:"100%","border-radius":"50%"}},null,8,["src"])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon status-icon",[`ms-Icon--${o.currentIcon}`]]),style:i.normalizeStyle({"font-size":`${o.iconFontSize}px`,color:o.currentIconColor})},null,6),[[i.vShow,o.showStatus]])],4),i.withDirectives(i.createElementVNode("div",$m,[i.createElementVNode("span",{class:"persona-title",style:i.normalizeStyle({"font-size":`${o.titleFontSize}px`})},[i.renderSlot(n.$slots,"name",{},()=>[i.createElementVNode("p",null,i.toDisplayString(t.name),1)])],4),i.createElementVNode("span",{class:"persona-secondary",style:i.normalizeStyle({"font-size":`${o.secondaryFontSize}px`})},[i.renderSlot(n.$slots,"secondary")],4)],512),[[i.vShow,t.showInfo]])],2)}const gs=j(Z(Dm,[["render",Nm]])),mk="",gk="",pk="",Lm={...q},Pm={emits:["update:modelValue"],props:{els:{default:()=>null},sliderBoxshadow:{default:!1},background:{default:""},theme:{type:String,default:"global"}},data(){return{domLeft:0,domWidth:60,styles:{slider:{background:""}}}},watch:{left(n){this.moveInit()},width(n){this.moveInit()}},computed:{left(){let{els:n,index:e}=this.els(),t=0;for(let r=0;r<e;r++){let s=n[r];if(!s.el||!s.show)t+=0;else{let o=s.el.clientWidth;t+=o}}return t},width(){let{els:n,index:e}=this.els(),t=n[e];return t.el?t.el.clientWidth:60},$theme(){return W(this.$props).theme.value}},mounted(){this.moveInit()},methods:{moveInit(){let n=this.left-this.domLeft;n>0?this.widthExpandToRight(n):this.widthExpandToLeft(n)},widthExpandToRight(n){let e=Math.abs(n)+this.width;Ve.to(this.$data,{domWidth:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToRight})},widthFormatToRight(){Ve.to(this.$data,{domLeft:this.left,domWidth:this.width,duration:.2,ease:"power3.out"})},widthExpandToLeft(n){let e=Math.abs(n)+this.width;Ve.to(this.$data,{domLeft:this.left,domWidth:e,duration:.3,delay:.08,ease:"expo.inOut",onComplete:this.widthFormatToLeft})},widthFormatToLeft(){Ve.to(this.$data,{domWidth:this.width,duration:.2,ease:"power3.out"})}}},Mm={class:"slider"};function zm(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",Mm,[i.createElementVNode("span",{class:i.normalizeClass(["fv-pivot-s",[{"is-boxshadow":t.sliderBoxshadow}]]),style:i.normalizeStyle({"margin-left":`${s.domLeft}px`,width:`${s.domWidth}px`})},[i.createElementVNode("p",{style:i.normalizeStyle({background:t.background})},null,4)],6)])}const Rm={name:"FvPivot",components:{slider:Z(Pm,[["render",zm]])},emits:["update:modelValue","change"],props:{...Lm,modelValue:{default:()=>null},items:{default:()=>[{name:"Pivot",width:80}]},tab:{default:!1},fontSize:{default:""},foreground:{default:""},sliderBackground:{default:""},sliderBoxshadow:{default:!1},background:{default:""}},data(){return{thisItems:[],thisValue:null,styles:{slider:{background:""},container:{color:""}}}},watch:{modelValue(n){this.findCurrentValue()},items(n){this.itemsInit()},thisValue(n){this.$emit("update:modelValue",n),this.$emit("change",n)},foreground(n){this.stylesInit()},sliderBackground(n){this.stylesInit()}},computed:{itemWidth(){return n=>n.width?isNaN(n.width)?this.valueTrigger(n.width):`${n.width}px`:0},currentEls(){return()=>{let n=-1;this.thisValue?this.thisValue.key?n=this.thisItems.findIndex(t=>t.key===this.thisValue.key):n=this.thisItems.findIndex(t=>this.valueTrigger(t.name)===this.valueTrigger(this.thisValue.name)):n=0,n<0&&(n=0);let e=[];for(let t=0;t<this.thisItems.length;t++)e.push({el:this.$refs[`item_${t}`]?this.$refs[`item_${t}`][0]:null,show:this.valueTrigger(this.thisItems[t].show)});return{index:n,els:e}}},$theme(){return W(this.$props).theme.value}},updated(){(!this.thisValue||!this.valueTrigger(this.thisValue.show))&&(this.thisValue=this.thisItems.find(n=>this.valueTrigger(n.show)&&!this.valueTrigger(n.disabled)))},mounted(){this.stylesInit(),this.itemsInit()},methods:{itemsInit(){let n={name:"Pivot",width:60,show:!0,disabled:!1},e=[];for(let t of this.items){let r=JSON.parse(JSON.stringify(n));Object.assign(r,t),e.push(r)}this.thisItems=e,this.findCurrentValue()},findCurrentValue(){if(!this.modelValue){let n=this.thisItems.find(e=>this.valueTrigger(e.show)&&!this.valueTrigger(e.disabled));n?this.thisValue=n:(this.thisValue={},console.warn("No visible item in ItemList."));return}if(this.modelValue.key){let n=this.thisItems.find(e=>e.key===this.modelValue.key);n&&(this.thisValue=n);return}else if(this.valueTrigger(this.modelValue.name)){let n=this.thisItems.find(e=>this.valueTrigger(e.name)===this.valueTrigger(this.modelValue.name));n&&(this.thisValue=n)}},stylesInit(){this.styles.slider.background=this.sliderBackground,this.styles.container.color=this.foreground},itemClick(n){if(n.disabled)return 0;this.thisValue=n},eqal(n){return this.thisValue?this.thisValue.key?this.thisValue.key===n.key:this.valueTrigger(this.thisValue.name)?this.valueTrigger(this.thisValue.name)===this.valueTrigger(n.name):!1:!1},valueTrigger(n){return typeof n=="function"?n():n}}},Fm={class:"pivot-container"},Om=["onClick"];function Am(n,e,t,r,s,o){const l=i.resolveComponent("slider");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Pivot",[o.$theme,t.tab?"tab":""]]),style:i.normalizeStyle({background:t.background})},[i.createElementVNode("div",Fm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisItems,(a,d)=>i.withDirectives((i.openBlock(),i.createElementBlock("span",{class:i.normalizeClass(["pivot-item",{choose:o.eqal(a),disabled:o.valueTrigger(a.disabled)}]),key:d,ref_for:!0,ref:`item_${d}`,style:i.normalizeStyle({width:o.itemWidth(a)}),onClick:c=>o.itemClick(a)},[i.renderSlot(n.$slots,"container",{item:a,index:d},()=>[i.createElementVNode("p",{style:i.normalizeStyle({fontSize:`${t.fontSize}px`,color:s.styles.container.color})},i.toDisplayString(o.valueTrigger(a.name)),5)])],14,Om)),[[i.vShow,o.valueTrigger(a.show)]])),128))]),s.thisItems.length>0?(i.openBlock(),i.createBlock(l,{key:0,els:o.currentEls,sliderBoxshadow:t.sliderBoxshadow,background:s.styles.slider.background},null,8,["els","sliderBoxshadow","background"])):i.createCommentVNode("",!0)],6)}const ps=j(Z(Rm,[["render",Am]])),yk="",kk="",vk="",Wm={...q},Hm={name:"FvProgressBar",emits:["update:modelValue","progress-change","progress-finished"],props:{...Wm,modelValue:{default:0},foreground:{default:""},background:{default:""},loading:{default:!1},disabled:{default:!1}},data(){return{percent:this.modelValue}},watch:{modelValue(n){this.percent=n},percent(n){this.$emit("update:modelValue",n),this.$emit("progress-change",n),n>=100&&this.$emit("progress-finished",n)}},computed:{$theme(){return W(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}}};function Gm(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ProgressBar",[o.$theme,t.loading.toString()!="true"?"normal":"",o.isDisabled?"disabled":""]]),style:i.normalizeStyle({background:t.background})},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,l=>i.withDirectives(i.createElementVNode("p",{class:"unit",style:i.normalizeStyle({background:t.foreground}),key:l},null,4),[[i.vShow,t.loading.toString()=="true"]])),64)),i.withDirectives(i.createElementVNode("i",{style:i.normalizeStyle({width:(s.percent<=100?s.percent:100)+"%",background:t.foreground})},null,4),[[i.vShow,t.loading.toString()!="true"]])],6)}const bs=j(Z(Hm,[["render",Gm]])),Ck="",Sk="",xk="",Um={...q},Ym={props:{size:{default:"xs"},color:{default:""}},data(){return{styles:{p:{background:""}}}},watch:{color(n){this.stylesInit()}},computed:{$theme(){return useTheme(this.$props).theme.value}},mounted(){this.stylesInit()},methods:{stylesInit(){this.styles.p.background=this.color}}};function qm(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-progressRing-legacy",t.size])},[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(5,l=>i.createElementVNode("p",{style:i.normalizeStyle(s.styles.p),key:l},null,4)),64))],2)}const Xm={name:"FvProgressRing",emits:["update:modelValue"],components:{legacy:Z(Ym,[["render",qm]])},props:{...Um,modelValue:{default:0},size:{default:"xs"},r:{default:40},loading:{default:!1},color:{default:"rgba(0, 90, 158, 1)"},background:{default:"rgba(204, 204, 204, 1)"},borderWidth:{default:8},legacy:{default:!1}},data(){return{thisValue:this.modelValue,valueCache:this.modelValue,Loading:{ratio:5,rotate:-90}}},watch:{modelValue(n){this.thisValue=n},async thisValue(n){this.$emit("update:modelValue",n),await this.syncValue()}},computed:{l(){return(2*Math.PI*(this.r-this.borderWidth)).toFixed(2)},$theme(){return W(this.$props).theme.value}},mounted(){this.loadingInit()},methods:{loadingInit(){Ve.to(this.$data.Loading,{ratio:70,duration:.8,repeat:-1,yoyo:!0,ease:"linear"}),Ve.to(this.$data.Loading,{rotate:270,duration:.8,repeat:-1,ease:"linear"})},async syncValue(){await new Promise(n=>{Ve.to(this.$data,{valueCache:this.thisValue,duration:.8,ease:"power3.out",onComplete:()=>{n(0)}})})}}},jm=["width","height"],Jm=["r","cy","cx","stroke-width","stroke"],Km=["r","cy","cx","stroke-width","stroke","stroke-dashoffset","stroke-dasharray"];function Qm(n,e,t,r,s,o){const l=i.resolveComponent("legacy");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ProgressRing",[o.$theme]]),style:i.normalizeStyle({width:`${t.r*2}px`,height:`${t.r*2}px`})},[i.withDirectives((i.openBlock(),i.createElementBlock("svg",{width:`${t.r*2}px`,height:`${t.r*2}px`,class:"svg"},[i.createElementVNode("circle",{r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.background,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Jm),i.createElementVNode("circle",{class:"progress-rotate",r:t.r-t.borderWidth,cy:t.r,cx:t.r,"stroke-width":t.borderWidth,stroke:t.color,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none","stroke-dashoffset":`${t.loading?o.l-s.Loading.ratio/100*o.l:o.l-s.valueCache/100*o.l}px`,"stroke-dasharray":`${o.l}px`,style:i.normalizeStyle({transform:`rotate(${t.loading?s.Loading.rotate:-90}deg)`})},null,12,Km)],8,jm)),[[i.vShow,!t.legacy]]),i.withDirectives(i.createVNode(l,{size:t.size,color:t.color},null,8,["size","color"]),[[i.vShow,t.legacy]])],6)}const ws=j(Z(Xm,[["render",Qm]])),Tk="",Bk="",Ik="",Zm=["src"],eg=Object.assign({name:"FvRadio",emits:["update:modelValue","click","actived"],computed:{$theme(){return W(this.$props).theme.value},isActived(){return this.model==this.label},isGroup(){let n=this.$parent;for(;n;)if(n.$options.name!="FvRadioGroup")n=n.$parent;else return this.setGroup(n),!0;return!1},isDisabled(){return this.isGroup?this._group.disabled||this.disabled:this.disabled},model:{get(){return this.isGroup?this._group.value:this.modelValue},set(n){this.isGroup?this._group.$emit("update:modelValue",n):this.$emit("update:modelValue",n)}}},mounted(){},methods:{click(){this.isDisabled||(this.isGroup?(this._group.$emit("update:modelValue",this.label),this._group.change(this.label)):this.$emit("update:modelValue",this.label),this.isActived&&this.$emit("actived"),this.$emit("click"))},setGroup(n){this._group=n}}},{props:{...q,modelValue:{type:[String,Number,Boolean],default:""},label:{type:[String,Number],required:!0},color:{type:String,default:""},foreground:{type:String,default:"rgba(0, 90, 158, 0.8)"},icon:{type:String,default:null},iconBlockBorderRadius:{type:Number,default:6},iconBlockBorderWidth:{type:Number,default:2},image:{type:String,default:null},activeImage:{type:String,default:null},disabled:{type:Boolean,default:!1}},setup(n){return(e,t)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Radio",[e.$theme,{"with-icon":n.icon||n.image},{actived:e.isActived},{disabled:e.isDisabled}]]),onClick:t[0]||(t[0]=(...r)=>e.click&&e.click(...r)),style:i.normalizeStyle({"border-color":e.isActived?n.foreground:"","border-radius":`${n.iconBlockBorderRadius}px`,"border-width":`${n.iconBlockBorderWidth}px`})},[i.createElementVNode("input",{type:"radio",ref:"button",class:i.normalizeClass(["fv-radio-button",[{actived:e.isActived},{disabled:e.isDisabled}]]),style:i.normalizeStyle({background:e.isActived?n.foreground:""})},null,6),i.createElementVNode("label",{class:"fv-radio-label",style:i.normalizeStyle({color:n.color})},[n.image?(i.openBlock(),i.createElementBlock("img",{key:0,src:e.isActived&&n.activeImage?n.activeImage:n.image},null,8,Zm)):n.icon?(i.openBlock(),i.createElementBlock("i",{key:1,class:i.normalizeClass(["with-icon ms-Icon","ms-Icon--"+n.icon])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("span",null,[i.renderSlot(e.$slots,"default")])],4)],6))}}),ys=j(eg),$k="",Nk="",Lk="",tg={...q},ng={name:"FvRadioGroup",emits:["change"],props:{...tg,modelValue:{required:!0},disabled:{type:Boolean,default:!1},label:{type:String,default:""},inline:{type:Boolean,default:!1}},data(){return{}},computed:{$theme(){return W(this.$props).theme.value}},methods:{change(n){this.$emit("change",n)}}},ig={key:0};function rg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-RadioGroup",[o.$theme,{inline:t.inline}]])},[t.label?(i.openBlock(),i.createElementBlock("label",ig,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),i.renderSlot(n.$slots,"default")],2)}const ks=j(Z(ng,[["render",rg]])),Mk="",zk="",Rk="",og={...q},sg={name:"FvRatingControl",emits:["update:modelValue","change"],props:{...og,modelValue:{default:0},maxRate:{default:5},halfRate:{default:!1},defaultIcon:{type:String,default:"FavoriteStar"},selectedIcon:{type:String,default:"FavoriteStarFill"},borderColor:{type:String,default:""},selectedColor:{type:String,default:""},isClear:{default:!1},readonly:{default:!1}},data(){return{thisValue:this.modelValue,hover:[]}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n),this.$emit("change",n)},maxRate(n){this.hover=new Array(n).fill({status:!1,ratio:100})}},mounted(){this.thisValue=this.modelValue,this.hover=new Array(this.maxRate).fill({status:!1,ratio:100})},computed:{itemShow(){return n=>this.hoverIndex<0?n-this.thisValue<0:n<=this.hoverIndex},itemRatio(){return n=>this.hoverIndex<0?n+1<=parseInt(this.thisValue)?100:(this.thisValue-parseInt(this.thisValue))*100:this.hoverIndex===n?this.hover[n].ratio:100},hoverIndex(){return this.hover.findIndex(n=>n.status)},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},$theme(){return W(this.$props).theme.value}},methods:{handlerHover(n,e){if(this.isReadOnly)return;let t=n.target.offsetWidth,{left:r}=n.target.getBoundingClientRect(),{clientX:s}=n.targetTouches?n.targetTouches[0]:n,l=(s-r)/t*100>50||!this.halfRate?100:50;this.$emit("hover",{index:e,ratio:l}),this.$set(this.hover,e,{status:!0,ratio:l})},handlerLeave(n){this.isReadOnly||(this.hover[n]={status:!1,ratio:100},this.$emit("leave",n))},handlerClick(n,e){if(this.isReadOnly)return;if(!this.halfRate){if(this.isClear&&this.thisValue==e+1){this.thisValue=0,this.clearHover();return}this.thisValue=e+1;return}let t=n.target.offsetWidth,{left:r}=n.target.getBoundingClientRect(),{clientX:s}=n.targetTouches?n.targetTouches[0]:n,o=(s-r)/t*100;if(this.isClear&&this.thisValue==e+1-(o>50?0:.5)){this.thisValue=0,this.clearHover();return}this.thisValue=e+1-(o>50?0:.5)},clearHover(){for(let n=0;n<this.maxRate;n++)this.hover[n]={status:!1,ratio:100}}}},lg={class:"fv-rating-container"},ag=["onMousemove","onTouchmove","onMouseleave","onTouchend","onClick"];function dg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-RatingControl",[o.$theme]])},[i.createElementVNode("div",lg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.maxRate,(l,a)=>(i.openBlock(),i.createElementBlock("div",{key:a,class:"fv-rating-unit",onMousemove:d=>o.handlerHover(d,a),onTouchmove:d=>o.handlerHover(d,a),onMouseleave:d=>o.handlerLeave(a),onTouchend:d=>o.handlerLeave(a),onClick:d=>o.handlerClick(d,a)},[i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon background",[`ms-Icon--${t.defaultIcon}`]]),style:i.normalizeStyle({color:t.borderColor})},null,6),i.withDirectives(i.createElementVNode("div",{class:"fv-rating-mask",style:i.normalizeStyle({width:`${o.itemRatio(a)}%`})},[i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon foreground",[`ms-Icon--${t.selectedIcon}`]]),style:i.normalizeStyle({color:t.selectedColor})},null,6)],4),[[i.vShow,o.itemShow(a)]])],40,ag))),128))])],2)}const vs=j(Z(sg,[["render",dg]])),Ok="",Ak="",Wk="",cg={...q},ug={name:"FvRevealContainer",emits:["click"],props:{...cg,revealContainer:{default:!1},parent:{default:null},borderWidth:{default:1},borderRadius:{default:6},backgroundColor:{default:"rgba(121, 119, 117, 0.6)"},backgroundGradientList:{default:()=>[]},backgroundGradientSize:{default:120},borderColor:{default:"rgba(121, 119, 117, 0.6)"},borderGradientList:{default:()=>[]},borderGradientSize:{default:60},debounceDistance:{default:300},disabled:{default:!1}},setup(){return{revealCache:Wt()}},data(){return{id:this.GuidWithoutDash(),offset:{left:0,top:0,right:0,bottom:0},disEl:{x:0,y:0},inside:!1,wave:0,clickDown:!1,timer:{wave:null}}},watch:{inside(n){n||this.leaveEvent(null)}},computed:{$theme(){return W(this.$props).theme.value},borderMatrix(){const{left:n,top:e,right:t,bottom:r}=this.offset;let s=t-n,o=r-e;return`matrix(${[1,0,0,1,(this.disEl.x-s/2).toFixed(3),(this.disEl.y-o/2).toFixed(3)].join(" ")})`},computedBorderRadius(){let n=this.offset.right-this.offset.left,e=this.offset.bottom-this.offset.top,t=n>e?e:n;return t==0?this.borderRadius:this.borderRadius>t/2?t/2:this.borderRadius},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.disEl.y=window.innerHeight,this.disEl.x=window.innerWidth,this.mouseMoveInit(),this.mouseClickInit()},methods:{mouseMoveInit(){if(this.revealContainer===!1){if(this.revealCache.setRevealHandler({id:this.id,moveHandler:this.moveEvent,leaveHandler:this.leaveEvent}),window.$FvRevealContainer)return;window.$FvRevealContainer=!0,window.removeEventListener("mousemove",this.globalMoveEventListener),window.addEventListener("mousemove",this.globalMoveEventListener),window.removeEventListener("touchmove",this.globalMoveEventListener),window.addEventListener("touchmove",this.globalMoveEventListener),window.removeEventListener("mouseleave",this.globalLeaveEventListener),window.addEventListener("mouseleave",this.globalLeaveEventListener)}else{if(this.revealContainer.revealHandlerList.push({id:this.id,moveHandler:this.moveEvent,downHandler:this.downEvent,upHandler:this.upEvent,leaveHandler:this.leaveEvent}),this.revealContainer.init)return;this.revealContainer.init=!0,this.revealContainer.el().removeEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("mousemove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().addEventListener("touchmove",this.globalMoveEventListener),this.revealContainer.el().removeEventListener("mouseleave",this.globalLeaveEventListener),this.revealContainer.el().addEventListener("mouseleave",this.globalLeaveEventListener)}},mouseClickInit(){this.parent?(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().addEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().addEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent),this.parent().addEventListener("mouseup",this.upEvent),this.parent().removeEventListener("touchend",this.leaveEvent),this.parent().addEventListener("touchend",this.leaveEvent)):(this.$el.removeEventListener("mousedown",this.downEvent),this.$el.addEventListener("mousedown",this.downEvent),this.$el.removeEventListener("touchstart",this.downEvent),this.$el.addEventListener("touchstart",this.downEvent),this.$el.removeEventListener("mouseup",this.upEvent),this.$el.addEventListener("mouseup",this.upEvent),this.$el.removeEventListener("touchend",this.leaveEvent),this.$el.addEventListener("touchend",this.leaveEvent))},globalMoveEventListener(n){if(this.revealContainer===!1)for(let e of this.revealCache.revealHandlerList)e.moveHandler&&e.moveHandler(n);else for(let e of this.revealContainer.revealHandlerList)e.moveHandler&&e.moveHandler(n)},globalLeaveEventListener(n){if(this.revealContainer===!1)for(let e of this.revealCache.revealHandlerList)e.leaveHandler&&e.leaveHandler(n);else for(let e of this.revealContainer.revealHandlerList)e.leaveHandler&&e.leaveHandler(n)},moveEvent(n){if(this.isDisabled||!this.inVisual())return;n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]);const{left:e,top:t}=this.getOffset(this.$el);let r=n.pageX-e-window.scrollX,s=n.pageY-t-window.scrollY,o=this.distanceOfElement(this.$el,n.clientX,n.clientY);o.left>this.debounceDistance||o.top>this.debounceDistance||o.right>this.debounceDistance||o.bottom>this.debounceDistance||(this.disEl.x=r,this.disEl.y=s,this.inside=this.moveInsideElement(this.$el,n.clientX,n.clientY))},downEvent(n){if(this.isDisabled||!this.clickInsideElement(n))return;n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]);const{left:e,top:t}=this.getOffset(this.$el);let r=n.pageX-e-window.scrollX,s=n.pageY-t-window.scrollY;this.disEl.x=r,this.disEl.y=s,this.wave=120,this.inside=!0,this.clickDown=!0,clearInterval(this.timer.wave),this.timer.wave=setInterval(()=>{try{let o=this.wave,l=o/60+1;o+=l,o>=1e3?clearInterval(this.timer.wave):this.wave=o}catch{}},50)},upEvent(n){this.wave=0,this.clickDown=!1,clearInterval(this.timer.wave)},leaveEvent(n){this.wave=0,this.disEl.x=window.innerWidth,this.disEl.y=window.innerHeight,this.inside=!1,clearInterval(this.timer.wave)},getOffset(n){const{left:e,top:t,right:r,bottom:s}=n.getBoundingClientRect();return this.offset.left=e,this.offset.top=t,this.offset.right=r,this.offset.bottom=s,{left:e,top:t,right:r,bottom:s}},moveInsideElement(n,e,t){const{left:r,top:s,right:o,bottom:l}=n.getBoundingClientRect();return e>=r&&e<=o&&t>=s&&t<=l},distanceOfElement(n,e,t){const{left:r,top:s,right:o,bottom:l}=n.getBoundingClientRect();return{left:r-e,right:e-o,top:s-t,bottom:t-l}},clickInsideElement(n){let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}if(this.parent&&e==this.parent()){t=!0;break}e=e.parentNode}return t},inVisual(){const{left:n,top:e,right:t,bottom:r}=this.$el.getBoundingClientRect(),s=t-n,o=r-e,l=window.innerWidth,a=window.innerHeight;let d=!1,c=!1;return r>=0&&r<=a+o&&(c=!0),t>=0&&t<=l+s&&(d=!0),d&&c},GuidWithoutDash(){function n(){return((1+Math.random())*65536|0).toString(16).substring(1)}return n()+n()+n()+n()+n()+n()+n()+n()},valueTrigger(n){return typeof n=="function"?n():n}},beforeUnmount(){if(this.revealContainer===!1)this.revealCache.removeRevealHandler(this.id);else{let n=this.revealContainer.revealHandlerList.findIndex(e=>e.id==this.id);n>-1&&this.revealContainer.revealHandlerList.splice(n,1)}this.parent&&this.parent()&&(this.parent().removeEventListener("mousedown",this.downEvent),this.parent().removeEventListener("touchstart",this.downEvent),this.parent().removeEventListener("mouseup",this.upEvent))}},fg={width:"100%",height:"100%",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hg=["r","id","gradientTransform"],mg=["stop-color"],gg={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},pg=["offset","stop-color"],bg=["r","id","gradientTransform"],wg=["stop-color"],yg={key:1,offset:"1","stop-color":"rgba(255, 255, 255, 0)"},kg=["offset","stop-color"],vg=["r","id","gradientTransform"],_g=i.createElementVNode("stop",{offset:"0","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Cg=["stop-color"],Sg=i.createElementVNode("stop",{offset:"0.66","stop-color":"rgba(255, 255, 255, 0)"},null,-1),xg=i.createElementVNode("stop",{offset:"1","stop-color":"rgba(255, 255, 255, 0)"},null,-1),Vg=["x","y","rx","ry"],Eg=["x","y","rx","ry"];function Tg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-RevealContainer",[o.$theme]]),style:i.normalizeStyle({"border-radius":`${o.computedBorderRadius}px`}),onClick:e[0]||(e[0]=l=>{l.preventDefault(),o.isDisabled||n.$emit("click",l)})},[i.withDirectives((i.openBlock(),i.createElementBlock("svg",fg,[i.createTextVNode(" > "),i.createElementVNode("defs",null,[i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.backgroundGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`backgroundG_${s.id}`,gradientTransform:o.borderMatrix},[t.backgroundGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",{key:0,offset:"0","stop-color":t.backgroundColor},null,8,mg)):i.createCommentVNode("",!0),t.backgroundGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",gg)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.backgroundGradientList,(l,a)=>(i.openBlock(),i.createElementBlock("stop",{offset:1/t.backgroundGradientList.length*a,"stop-color":l,key:`bg:${a}`},null,8,pg))),128))],8,hg),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:t.borderGradientSize,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`borderG_${s.id}`,gradientTransform:o.borderMatrix},[t.borderGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",{key:0,offset:"0","stop-color":t.borderColor},null,8,wg)):i.createCommentVNode("",!0),t.borderGradientList.length==0?(i.openBlock(),i.createElementBlock("stop",yg)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.borderGradientList,(l,a)=>(i.openBlock(),i.createElementBlock("stop",{offset:1/t.borderGradientList.length*a,"stop-color":l,key:`border:${a}`},null,8,kg))),128))],8,bg),i.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:s.wave,gradientUnits:"userSpaceOnUse",spreadMethod:"pad",id:`clickG_${s.id}`,gradientTransform:o.borderMatrix},[_g,i.createElementVNode("stop",{offset:"0.33","stop-color":t.backgroundColor},null,8,Cg),Sg,xg],8,vg)]),i.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:o.computedBorderRadius,ry:o.computedBorderRadius,style:i.normalizeStyle([{"box-sizing":"border-box"},{width:`${s.offset.right-s.offset.left-t.borderWidth}px`,height:`${s.offset.bottom-s.offset.top-t.borderWidth}px`,stroke:`url(#borderG_${s.id})`,fill:s.inside?`url(#backgroundG_${s.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Vg),i.withDirectives(i.createElementVNode("rect",{x:t.borderWidth/2,y:t.borderWidth/2,rx:o.computedBorderRadius,ry:o.computedBorderRadius,style:i.normalizeStyle([{stroke:"transparent","box-sizing":"border-box"},{width:`${s.offset.right-s.offset.left-t.borderWidth}px`,height:`${s.offset.bottom-s.offset.top-t.borderWidth}px`,fill:s.inside?`url(#clickG_${s.id})`:"transparent","stroke-width":t.borderWidth}])},null,12,Eg),[[i.vShow,s.clickDown]])],512)),[[i.vShow,s.offset.right-s.offset.left>0]])],6)}const _s=j(Z(ug,[["render",Tg]])),Gk="",Uk="",Yk="",Bg={...q},Ig={name:"FvScrollStory",emits:["show-changed"],props:{...Bg,name:{default:""},overCollapse:{default:!1},infinite:{default:!1},trueRender:{default:!1}},data(){return{show:!1,bounding:1/0,event:()=>{this.refreshBounding()},timer:{}}},watch:{show(n){this.$emit("show-changed",n)}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.timerInit()},methods:{timerInit(){clearInterval(this.timer),this.timer=setInterval(()=>{this.refreshBounding()},30)},refreshBounding(){this.bounding=this.$el.getBoundingClientRect(),this.bounding.top<window.innerHeight&&(this.show=!0),this.bounding.top>window.innerHeight&&this.infinite&&(this.show=!1),this.bounding.bottom<100&&this.overCollapse&&(this.show=!1)}},beforeUnmount(){clearInterval(this.timer)}},Dg={key:0},$g=i.createElementVNode("p",null,"Scroll Story",-1);function Ng(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ScrollStory",[o.$theme]])},[i.createVNode(i.Transition,{name:t.name},{default:i.withCtx(()=>[!t.trueRender||s.show?i.withDirectives((i.openBlock(),i.createElementBlock("div",Dg,[i.renderSlot(n.$slots,"default",{},()=>[$g])],512)),[[i.vShow,s.show]]):i.createCommentVNode("",!0)]),_:3},8,["name"])],2)}const Cs=j(Z(Ig,[["render",Ng]])),Xk="",jk="",Jk="",Lg={...q},Pg={name:"FvSearchBox",emits:["update:modelValue","debounce-input","choose-result","lazyload","clear-click","left-icon-click","icon-click","keydown","keyup","change","paste"],props:{...Lg,modelValue:{default:""},options:{default:()=>[]},placeholder:{default:""},type:{default:"text"},readonly:{default:!1},maxlength:{default:""},customFilter:{default:!1},resultPlaceholder:{default:!1},focusShow:{default:!1},leftIcon:{default:""},icon:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},foreground:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},status:{default:""},debounceDelay:{default:300},disabled:{default:!1}},data(){return{thisValue:this.modelValue,isFocus:!1,filterOptions:this.options,show:{searchResult:!1},timer:{debounce:null}}},watch:{modelValue(n){this.thisValue=n},thisValue(n){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",n),this.refreshFilter()},isFocus(n){n&&this.focusShow&&(this.show.searchResult=!0)}},computed:{thisBorderColor(){return this.isUnderline?this.isFocus?{borderBottomColor:this.focusBorderColor}:{borderBottomColor:this.borderColor}:this.isFocus?{borderColor:this.focusBorderColor}:{borderColor:this.borderColor}},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show.searchResult=!1)})},refreshFilter(){let n=[];if(this.customFilter!==!1)n=this.customFilter(this.options);else for(let e of this.options)e.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&n.push(e);this.filterOptions=n},chooseResult(n){this.thisValue=n.item.name,this.$emit("choose-result",n.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let n=this.resultPlaceholder;n.splice(n.length-1,1),this.$emit("update:resultPlaceholder",n)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}},mounted(){this.lazyLoadInit(),this.outSideClickInit()},methods:{lazyLoadInit(){this.$SUtility.ScrollToLoadInit(this.$refs.filterResult,()=>{this.$emit("lazyload",this.filterOptions)})},outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show.searchResult=!1)})},refreshFilter(){let n=[];if(this.customFilter!==!1)n=this.customFilter(this.options);else for(let e of this.options)e.name.toString().toLowerCase().indexOf(this.thisValue.toLowerCase())>-1&&n.push(e);this.filterOptions=n},chooseResult(n){this.thisValue=n.item.name,this.$emit("choose-result",n.item),this.show.searchResult=!1},onBackspace(){if(this.thisValue===""&&this.resultPlaceholder.length>0){let n=this.resultPlaceholder;n.splice(n.length-1,1),this.$emit("update:resultPlaceholder",n)}},clearValue(){this.thisValue="",this.$emit("update:resultPlaceholder",[]),this.$emit("clear-click")}}},Mg={class:"search-box-placeholder"},zg={class:"search-box-container"},Rg=["type","placeholder","readonly","disabled","maxlength"],Fg={class:"search-result-container",ref:"filterResult"};function Og(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("fv-list-view");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SearchBox",[o.$theme,t.status,s.isFocus?"focus":"",o.isDisabled?"disabled":"",o.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:i.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onKeydown:e[11]||(e[11]=d=>s.show.searchResult=!0),onKeyup:e[12]||(e[12]=i.withKeys((...d)=>o.onBackspace&&o.onBackspace(...d),["delete"])),onClick:e[13]||(e[13]=d=>s.isFocus=!0)},[i.createVNode(l,{parent:()=>n.$el,class:"fv-search-box-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("div",{class:"search-box-wrapper-container",style:i.normalizeStyle([o.thisBorderColor,{background:t.background,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`}])},[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),onClick:e[0]||(e[0]=d=>n.$emit("left-icon-click",d))},null,2),[[i.vShow,t.leftIcon!=""]]),i.createVNode(i.Transition,{name:"move-left-to-right"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",Mg,[i.renderSlot(n.$slots,"resultPlaceholder",{resultPlaceholder:t.resultPlaceholder})],512),[[i.vShow,t.resultPlaceholder.length>0]])]),_:3}),i.createElementVNode("div",zg,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=d=>s.thisValue=d),type:t.type,placeholder:t.placeholder,class:"input",readonly:o.isReadOnly,disabled:o.isDisabled,maxlength:t.maxlength,ref:"input",style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:e[2]||(e[2]=d=>n.$emit("keydown",d)),onKeyup:e[3]||(e[3]=d=>n.$emit("keyup",d)),onChange:e[4]||(e[4]=d=>n.$emit("change",d)),onPaste:e[5]||(e[5]=d=>n.$emit("paste",d)),onFocus:e[6]||(e[6]=d=>s.isFocus=!0),onBlur:e[7]||(e[7]=d=>s.isFocus=!1)},null,44,Rg),[[i.vModelDynamic,s.thisValue]])]),i.withDirectives(i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel icon-block",onClick:e[8]||(e[8]=(...d)=>o.clearValue&&o.clearValue(...d))},null,512),[[i.vShow,s.thisValue.length>0||t.resultPlaceholder.length>0]]),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),onClick:e[9]||(e[9]=d=>n.$emit("icon-click",d))},null,2),[[i.vShow,t.icon!=""]])],4),i.createVNode(i.Transition,{name:"zoom-in-top"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",Fg,[i.renderSlot(n.$slots,"searchResult",{data:s.filterOptions,chooseResult:o.chooseResult},()=>[i.createVNode(a,{modelValue:s.filterOptions,"onUpdate:modelValue":e[10]||(e[10]=d=>s.filterOptions=d),theme:n.theme,style:{width:"100%",height:"auto"},onChooseItem:o.chooseResult},null,8,["modelValue","theme","onChooseItem"])])],512),[[i.vShow,s.show.searchResult]])]),_:3})],38)}const Ss=j(Z(Pg,[["render",Og]])),Qk="",Zk="",ev="",Ag={name:"FvShimmer",props:{...{...q}},data(){return{gradientSize:80,x:0,y:0,timer:{}}},computed:{$theme(){return W(this.$props).theme.value},backgroundLightColor(){return this.$theme=="light"?"rgba(121, 119, 117, 0.1)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.1)":"rgba(121, 119, 117, 0.1)"}},mounted(){this.moveInit(),this.timer=setInterval(()=>{this.childrenInit()},30)},methods:{moveInit(){this.gradientSize=this.$el.clientWidth/1.6,this.x=-this.gradientSize,this.y=this.$el.clientHeight/2,Ve.to(this.$data,{x:this.$el.clientWidth+this.gradientSize+100,duration:2,delay:0,repeat:-1,ease:"power3.in"})},childrenInit(){try{this.$refs.shimmer.querySelectorAll("*").forEach(e=>{e.getAttribute("style").indexOf("background-image")<0&&e.setAttribute("style",`${e.getAttribute("style")} background-image: inherit;`)})}catch{}}},beforeUnmount(){clearInterval(this.timer)}},Wg=i.createElementVNode("div",{class:"sample",style:{"background-image":"inherit"}},null,-1);function Hg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Shimmer",[o.$theme]])},[i.createElementVNode("div",{class:"shimmer-container",ref:"shimmer",style:i.normalizeStyle({"background-image":`radial-gradient(circle ${s.gradientSize}px at ${s.x}px ${s.y}px, ${o.backgroundLightColor}, rgba(255,255,255,0))`})},[i.renderSlot(n.$slots,"default",{},()=>[Wg])],4)],2)}const xs=j(Z(Ag,[["render",Hg]])),iv="",rv="",ov="",Gg={name:"FvSlider",props:{...{...q},disabled:{type:Boolean,default:!1},modelValue:{type:Number,default:0},unit:{type:Number,default:1},maxinum:{type:Number,default:100},mininum:{type:Number,default:0},icon:{type:String,default:"RadioBullet"},vertical:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1},scale:{type:[Boolean,Number],default:!1},color:{type:String}},data(){return{progress:0,isActive:!1,rejust:!1,buttonHeight:0,style:{bar:{}}}},computed:{$theme(){return W(this.$props).theme.value},buttonStyle(){let n=this.color;return this.vertical?{top:this.progress+"%",transform:`translateX(-${this.buttonHeight/2-1}px) translateY(-${this.buttonHeight/2}px) rotate(90deg)`,color:n}:{left:this.progress+"%",transform:`translateX(-${this.buttonHeight/2}px) translateY(-${this.buttonHeight/2-3}px)`,color:n}},progressStyle(){let n=this.color;return this.vertical?{height:this.progress+"%",backgroundColor:n}:{width:this.progress+"%",backgroundColor:n}}},watch:{modelValue(n){this.isActive||this.setProgress(n,this.mininum,this.maxinum)},progress(n){this.$emit("change",this.getValue(n,this.mininum,this.maxinum)),this.isActive&&this.setValue(n,this.mininum,this.maxinum)}},mounted(){this.resize(),this.widthObserverInit()},methods:{widthObserverInit(){new ResizeObserver(()=>{this.buttonHeight=this.$refs.button?this.$refs.button.clientHeight:0}).observe(this.$refs.button)},click(n){if(this.isActive||this.disabled)return!1;let e=this.$refs.bar.getBoundingClientRect(),t=this.$refs.button.getBoundingClientRect(),r=this.vertical?n.clientY-e.top:n.clientX-e.left,s=this.vertical?t.top-e.top:t.left-e.left;return this.move(r,s),!0},scaleUnit(){return!this.scale||this.scale==!0?this.unit:this.scale},scaleStyle(n,e){let t=Math.round(this.scaleUnit()/(this.maxinum-this.mininum)*100);return this.vertical?{left:e?"7px":"-7px",top:n*t+"%",height:"1px",width:"5px"}:{top:e?"7px":"-7px",left:n*t+"%",height:"5px",width:"1px"}},resize(){this.setProgress(this.modelValue,this.mininum,this.maxinum)},moveable(n){if(event.preventDefault&&(this.$refs.button.ondragenter=event.preventDefault(),this.$refs.button.ondragover=event.preventDefault()),this.isActive||this.disabled)return;this.$emit("click"),this.isActive=!0;let e=this.vertical?n.clientY:n.clientX,t=s=>{s.type==="touchmove"&&(s=s.targetTouches[0]);let o=this.vertical?s.clientY:s.clientX;this.move(o,e),e=o},r=()=>{this.isActive=!1,this.rejustProgress(),window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",r),window.removeEventListener("mouseleave",r),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",r)};window.addEventListener("mousemove",t),window.addEventListener("mouseleave",r),window.addEventListener("mouseup",r),window.addEventListener("touchmove",t),window.addEventListener("touchend",r)},setProgress(n,e,t){this.progress=(n-e)/(t-e)*100,this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress)},setValue(n,e,t){this.$emit("update:modelValue",this.getValue(n,e,t))},getValue(n,e,t){return Math.round(n*(t-e)/100)+e},rejustProgress(){if(this.rejust)return;this.rejust=!0,this.isActive=!0;let n=this.getValue(this.progress,this.mininum,this.maxinum);n<this.maxinum?n=Math.round((n-this.mininum)/this.unit)*this.unit+this.mininum:n=this.maxinum,this.setProgress(n,this.mininum,this.maxinum),setTimeout(()=>{this.rejust=!1,this.isActive=!1},300)},move(n,e){let t=this.vertical?this.$refs.bar.clientHeight:this.$refs.bar.clientWidth,r=this.progress+(n-e)*100/t;r=Math.max(r,0),r=Math.min(r,100),this.progress=r}}},Ug=i.createElementVNode("div",{class:"fv-slider__bar-bg"},null,-1);function Yg(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Slider",[o.$theme,{active:s.isActive},{vertical:t.vertical}]]),ref:"slider"},[i.createElementVNode("div",{class:i.normalizeClass(["fv-slider__bar",[{vertical:t.vertical},{disabled:t.disabled}]]),onMousedown:e[1]||(e[1]=l=>o.click(l)&&o.moveable(l)),onTouchstart:e[2]||(e[2]=l=>o.click(l.targetTouches[0])&&o.moveable(l.targetTouches[0])),style:i.normalizeStyle(s.style.bar),ref:"bar"},[t.scale?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((t.maxinum-t.mininum)/o.scaleUnit()-1,l=>(i.openBlock(),i.createElementBlock("div",{class:"fv-slider__scale-up",key:"scale:"+l,style:i.normalizeStyle(o.scaleStyle(l,!0))},null,4))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList((t.maxinum-t.mininum)/o.scaleUnit()-1,l=>(i.openBlock(),i.createElementBlock("div",{class:"fv-slider__scale-down",key:"scale-d:"+l,style:i.normalizeStyle(o.scaleStyle(l,!1))},null,4))),128))],64)):i.createCommentVNode("",!0),Ug,i.createElementVNode("div",{class:i.normalizeClass(["fv-slider__progress",[{anime:s.rejust}]]),ref:"progress",style:i.normalizeStyle(o.progressStyle)},null,6),i.createElementVNode("div",{class:i.normalizeClass(["fv-slider__button ms-Icon",[`ms-Icon--${t.icon}`,{disabled:t.disabled},{anime:s.rejust}]]),style:i.normalizeStyle(o.buttonStyle),ref:"button",onMousedown:e[0]||(e[0]=(...l)=>o.moveable&&o.moveable(...l))},null,38)],38),t.showLabel?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["fv-slider__label",{vertical:t.vertical}])},[i.renderSlot(n.$slots,"default",{value:o.getValue(s.progress,t.mininum,t.maxinum)})],2)):i.createCommentVNode("",!0)],2)}const Vs=j(Z(Gg,[["render",Yg]])),av="",dv="",cv="",qg={...q};function Es(n){return n!==null&&typeof n=="object"&&"constructor"in n&&n.constructor===Object}function Oi(n={},e={}){Object.keys(e).forEach(t=>{typeof n[t]>"u"?n[t]=e[t]:Es(e[t])&&Es(n[t])&&Object.keys(e[t]).length>0&&Oi(n[t],e[t])})}const Ts={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ne(){const n=typeof document<"u"?document:{};return Oi(n,Ts),n}const Xg={document:Ts,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)}};function ye(){const n=typeof window<"u"?window:{};return Oi(n,Xg),n}function jg(n){const e=n.__proto__;Object.defineProperty(n,"__proto__",{get(){return e},set(t){e.__proto__=t}})}class bt extends Array{constructor(e){typeof e=="number"?super(e):(super(...e||[]),jg(this))}}function kn(n=[]){const e=[];return n.forEach(t=>{Array.isArray(t)?e.push(...kn(t)):e.push(t)}),e}function Bs(n,e){return Array.prototype.filter.call(n,e)}function Jg(n){const e=[];for(let t=0;t<n.length;t+=1)e.indexOf(n[t])===-1&&e.push(n[t]);return e}function Kg(n,e){if(typeof n!="string")return[n];const t=[],r=e.querySelectorAll(n);for(let s=0;s<r.length;s+=1)t.push(r[s]);return t}function U(n,e){const t=ye(),r=Ne();let s=[];if(!e&&n instanceof bt)return n;if(!n)return new bt(s);if(typeof n=="string"){const o=n.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){let l="div";o.indexOf("<li")===0&&(l="ul"),o.indexOf("<tr")===0&&(l="tbody"),(o.indexOf("<td")===0||o.indexOf("<th")===0)&&(l="tr"),o.indexOf("<tbody")===0&&(l="table"),o.indexOf("<option")===0&&(l="select");const a=r.createElement(l);a.innerHTML=o;for(let d=0;d<a.childNodes.length;d+=1)s.push(a.childNodes[d])}else s=Kg(n.trim(),e||r)}else if(n.nodeType||n===t||n===r)s.push(n);else if(Array.isArray(n)){if(n instanceof bt)return n;s=n}return new bt(Jg(s))}U.fn=bt.prototype;function Qg(...n){const e=kn(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this}function Zg(...n){const e=kn(n.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this}function ep(...n){const e=kn(n.map(t=>t.split(" ")));this.forEach(t=>{e.forEach(r=>{t.classList.toggle(r)})})}function tp(...n){const e=kn(n.map(t=>t.split(" ")));return Bs(this,t=>e.filter(r=>t.classList.contains(r)).length>0).length>0}function np(n,e){if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):void 0;for(let t=0;t<this.length;t+=1)if(arguments.length===2)this[t].setAttribute(n,e);else for(const r in n)this[t][r]=n[r],this[t].setAttribute(r,n[r]);return this}function ip(n){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(n);return this}function rp(n){for(let e=0;e<this.length;e+=1)this[e].style.transform=n;return this}function op(n){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof n!="string"?`${n}ms`:n;return this}function sp(...n){let[e,t,r,s]=n;typeof n[1]=="function"&&([e,r,s]=n,t=void 0),s||(s=!1);function o(c){const u=c.target;if(!u)return;const f=c.target.dom7EventData||[];if(f.indexOf(c)<0&&f.unshift(c),U(u).is(t))r.apply(u,f);else{const m=U(u).parents();for(let h=0;h<m.length;h+=1)U(m[h]).is(t)&&r.apply(m[h],f)}}function l(c){const u=c&&c.target?c.target.dom7EventData||[]:[];u.indexOf(c)<0&&u.unshift(c),r.apply(this,u)}const a=e.split(" ");let d;for(let c=0;c<this.length;c+=1){const u=this[c];if(t)for(d=0;d<a.length;d+=1){const f=a[d];u.dom7LiveListeners||(u.dom7LiveListeners={}),u.dom7LiveListeners[f]||(u.dom7LiveListeners[f]=[]),u.dom7LiveListeners[f].push({listener:r,proxyListener:o}),u.addEventListener(f,o,s)}else for(d=0;d<a.length;d+=1){const f=a[d];u.dom7Listeners||(u.dom7Listeners={}),u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:r,proxyListener:l}),u.addEventListener(f,l,s)}}return this}function lp(...n){let[e,t,r,s]=n;typeof n[1]=="function"&&([e,r,s]=n,t=void 0),s||(s=!1);const o=e.split(" ");for(let l=0;l<o.length;l+=1){const a=o[l];for(let d=0;d<this.length;d+=1){const c=this[d];let u;if(!t&&c.dom7Listeners?u=c.dom7Listeners[a]:t&&c.dom7LiveListeners&&(u=c.dom7LiveListeners[a]),u&&u.length)for(let f=u.length-1;f>=0;f-=1){const m=u[f];r&&m.listener===r||r&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===r?(c.removeEventListener(a,m.proxyListener,s),u.splice(f,1)):r||(c.removeEventListener(a,m.proxyListener,s),u.splice(f,1))}}}return this}function ap(...n){const e=ye(),t=n[0].split(" "),r=n[1];for(let s=0;s<t.length;s+=1){const o=t[s];for(let l=0;l<this.length;l+=1){const a=this[l];if(e.CustomEvent){const d=new e.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0});a.dom7EventData=n.filter((c,u)=>u>0),a.dispatchEvent(d),a.dom7EventData=[],delete a.dom7EventData}}}return this}function dp(n){const e=this;function t(r){r.target===this&&(n.call(this,r),e.off("transitionend",t))}return n&&e.on("transitionend",t),this}function cp(n){if(this.length>0){if(n){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function up(n){if(this.length>0){if(n){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function fp(){if(this.length>0){const n=ye(),e=Ne(),t=this[0],r=t.getBoundingClientRect(),s=e.body,o=t.clientTop||s.clientTop||0,l=t.clientLeft||s.clientLeft||0,a=t===n?n.scrollY:t.scrollTop,d=t===n?n.scrollX:t.scrollLeft;return{top:r.top+a-o,left:r.left+d-l}}return null}function hp(){const n=ye();return this[0]?n.getComputedStyle(this[0],null):{}}function mp(n,e){const t=ye();let r;if(arguments.length===1)if(typeof n=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(r=0;r<this.length;r+=1)for(const s in n)this[r].style[s]=n[s];return this}if(arguments.length===2&&typeof n=="string"){for(r=0;r<this.length;r+=1)this[r].style[n]=e;return this}return this}function gp(n){return n?(this.forEach((e,t)=>{n.apply(e,[e,t])}),this):this}function pp(n){const e=Bs(this,n);return U(e)}function bp(n){if(typeof n>"u")return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=n;return this}function wp(n){if(typeof n>"u")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=n;return this}function yp(n){const e=ye(),t=Ne(),r=this[0];let s,o;if(!r||typeof n>"u")return!1;if(typeof n=="string"){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(s=U(n),o=0;o<s.length;o+=1)if(s[o]===r)return!0;return!1}if(n===t)return r===t;if(n===e)return r===e;if(n.nodeType||n instanceof bt){for(s=n.nodeType?[n]:n,o=0;o<s.length;o+=1)if(s[o]===r)return!0;return!1}return!1}function kp(){let n=this[0],e;if(n){for(e=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(e+=1);return e}}function vp(n){if(typeof n>"u")return this;const e=this.length;if(n>e-1)return U([]);if(n<0){const t=e+n;return t<0?U([]):U([this[t]])}return U([this[n]])}function _p(...n){let e;const t=Ne();for(let r=0;r<n.length;r+=1){e=n[r];for(let s=0;s<this.length;s+=1)if(typeof e=="string"){const o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[s].appendChild(o.firstChild)}else if(e instanceof bt)for(let o=0;o<e.length;o+=1)this[s].appendChild(e[o]);else this[s].appendChild(e)}return this}function Cp(n){const e=Ne();let t,r;for(t=0;t<this.length;t+=1)if(typeof n=="string"){const s=e.createElement("div");for(s.innerHTML=n,r=s.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(s.childNodes[r],this[t].childNodes[0])}else if(n instanceof bt)for(r=0;r<n.length;r+=1)this[t].insertBefore(n[r],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this}function Sp(n){return this.length>0?n?this[0].nextElementSibling&&U(this[0].nextElementSibling).is(n)?U([this[0].nextElementSibling]):U([]):this[0].nextElementSibling?U([this[0].nextElementSibling]):U([]):U([])}function xp(n){const e=[];let t=this[0];if(!t)return U([]);for(;t.nextElementSibling;){const r=t.nextElementSibling;n?U(r).is(n)&&e.push(r):e.push(r),t=r}return U(e)}function Vp(n){if(this.length>0){const e=this[0];return n?e.previousElementSibling&&U(e.previousElementSibling).is(n)?U([e.previousElementSibling]):U([]):e.previousElementSibling?U([e.previousElementSibling]):U([])}return U([])}function Ep(n){const e=[];let t=this[0];if(!t)return U([]);for(;t.previousElementSibling;){const r=t.previousElementSibling;n?U(r).is(n)&&e.push(r):e.push(r),t=r}return U(e)}function Tp(n){const e=[];for(let t=0;t<this.length;t+=1)this[t].parentNode!==null&&(n?U(this[t].parentNode).is(n)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return U(e)}function Bp(n){const e=[];for(let t=0;t<this.length;t+=1){let r=this[t].parentNode;for(;r;)n?U(r).is(n)&&e.push(r):e.push(r),r=r.parentNode}return U(e)}function Ip(n){let e=this;return typeof n>"u"?U([]):(e.is(n)||(e=e.parents(n).eq(0)),e)}function Dp(n){const e=[];for(let t=0;t<this.length;t+=1){const r=this[t].querySelectorAll(n);for(let s=0;s<r.length;s+=1)e.push(r[s])}return U(e)}function $p(n){const e=[];for(let t=0;t<this.length;t+=1){const r=this[t].children;for(let s=0;s<r.length;s+=1)(!n||U(r[s]).is(n))&&e.push(r[s])}return U(e)}function Np(){for(let n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}const Is={addClass:Qg,removeClass:Zg,hasClass:tp,toggleClass:ep,attr:np,removeAttr:ip,transform:rp,transition:op,on:sp,off:lp,trigger:ap,transitionEnd:dp,outerWidth:cp,outerHeight:up,styles:hp,offset:fp,css:mp,each:gp,html:bp,text:wp,is:yp,index:kp,eq:vp,append:_p,prepend:Cp,next:Sp,nextAll:xp,prev:Vp,prevAll:Ep,parent:Tp,parents:Bp,closest:Ip,find:Dp,children:$p,filter:pp,remove:Np};Object.keys(Is).forEach(n=>{Object.defineProperty(U.fn,n,{value:Is[n],writable:!0})});function Lp(n){const e=n;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Ai(n,e){return e===void 0&&(e=0),setTimeout(n,e)}function vn(){return Date.now()}function Pp(n){const e=ye();let t;return e.getComputedStyle&&(t=e.getComputedStyle(n,null)),!t&&n.currentStyle&&(t=n.currentStyle),t||(t=n.style),t}function Mp(n,e){e===void 0&&(e="x");const t=ye();let r,s,o;const l=Pp(n);return t.WebKitCSSMatrix?(s=l.transform||l.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new t.WebKitCSSMatrix(s==="none"?"":s)):(o=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?s=o.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),e==="y"&&(t.WebKitCSSMatrix?s=o.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function Xn(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function zp(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)}function Le(){const n=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const r=t<0||arguments.length<=t?void 0:arguments[t];if(r!=null&&!zp(r)){const s=Object.keys(Object(r)).filter(o=>e.indexOf(o)<0);for(let o=0,l=s.length;o<l;o+=1){const a=s[o],d=Object.getOwnPropertyDescriptor(r,a);d!==void 0&&d.enumerable&&(Xn(n[a])&&Xn(r[a])?r[a].__swiper__?n[a]=r[a]:Le(n[a],r[a]):!Xn(n[a])&&Xn(r[a])?(n[a]={},r[a].__swiper__?n[a]=r[a]:Le(n[a],r[a])):n[a]=r[a])}}}return n}function jn(n,e,t){n.style.setProperty(e,t)}function Ds(n){let{swiper:e,targetPosition:t,side:r}=n;const s=ye(),o=-e.translate;let l=null,a;const d=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=t>o?"next":"prev",u=(m,h)=>c==="next"&&m>=h||c==="prev"&&m<=h,f=()=>{a=new Date().getTime(),l===null&&(l=a);const m=Math.max(Math.min((a-l)/d,1),0),h=.5-Math.cos(m*Math.PI)/2;let g=o+h*(t-o);if(u(g,t)&&(g=t),e.wrapperEl.scrollTo({[r]:g}),u(g,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:g})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(f)};f()}let Wi;function Rp(){const n=ye(),e=Ne();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch),passiveListener:function(){let r=!1;try{const s=Object.defineProperty({},"passive",{get(){r=!0}});n.addEventListener("testPassiveListener",null,s)}catch{}return r}(),gestures:function(){return"ongesturestart"in n}()}}function $s(){return Wi||(Wi=Rp()),Wi}let Hi;function Fp(n){let{userAgent:e}=n===void 0?{}:n;const t=$s(),r=ye(),s=r.navigator.platform,o=e||r.navigator.userAgent,l={ios:!1,android:!1},a=r.screen.width,d=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/);let u=o.match(/(iPad).*OS\s([\d_]+)/);const f=o.match(/(iPod)(.*OS\s([\d_]+))?/),m=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let g=s==="MacIntel";const _=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&g&&t.touch&&_.indexOf(`${a}x${d}`)>=0&&(u=o.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),g=!1),c&&!h&&(l.os="android",l.android=!0),(u||m||f)&&(l.os="ios",l.ios=!0),l}function Op(n){return n===void 0&&(n={}),Hi||(Hi=Fp(n)),Hi}let Gi;function Ap(){const n=ye();function e(){const t=n.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent)}}function Wp(){return Gi||(Gi=Ap()),Gi}function Hp(n){let{swiper:e,on:t,emit:r}=n;const s=ye();let o=null,l=null;const a=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(o=new ResizeObserver(f=>{l=s.requestAnimationFrame(()=>{const{width:m,height:h}=e;let g=m,_=h;f.forEach(p=>{let{contentBoxSize:C,contentRect:y,target:w}=p;w&&w!==e.el||(g=y?y.width:(C[0]||C).inlineSize,_=y?y.height:(C[0]||C).blockSize)}),(g!==m||_!==h)&&a()})}),o.observe(e.el))},c=()=>{l&&s.cancelAnimationFrame(l),o&&o.unobserve&&e.el&&(o.unobserve(e.el),o=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){d();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",u)})}function Gp(n){let{swiper:e,extendParams:t,on:r,emit:s}=n;const o=[],l=ye(),a=function(u,f){f===void 0&&(f={});const m=l.MutationObserver||l.WebkitMutationObserver,h=new m(g=>{if(g.length===1){s("observerUpdate",g[0]);return}const _=function(){s("observerUpdate",g[0])};l.requestAnimationFrame?l.requestAnimationFrame(_):l.setTimeout(_,0)});h.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),o.push(h)},d=()=>{if(!!e.params.observer){if(e.params.observeParents){const u=e.$el.parents();for(let f=0;f<u.length;f+=1)a(u[f])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}},c=()=>{o.forEach(u=>{u.disconnect()}),o.splice(0,o.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",d),r("destroy",c)}const Up={on(n,e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const s=t?"unshift":"push";return n.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][s](e)}),r},once(n,e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function s(){r.off(n,s),s.__emitterProxy&&delete s.__emitterProxy;for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];e.apply(r,l)}return s.__emitterProxy=e,r.on(n,s,t)},onAny(n,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof n!="function")return t;const r=e?"unshift":"push";return t.eventsAnyListeners.indexOf(n)<0&&t.eventsAnyListeners[r](n),t},offAny(n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(n);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(n,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||n.split(" ").forEach(r=>{typeof e>"u"?t.eventsListeners[r]=[]:t.eventsListeners[r]&&t.eventsListeners[r].forEach((s,o)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&t.eventsListeners[r].splice(o,1)})}),t},emit(){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let e,t,r;for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return typeof o[0]=="string"||Array.isArray(o[0])?(e=o[0],t=o.slice(1,o.length),r=n):(e=o[0].events,t=o[0].data,r=o[0].context||n),t.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(d=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(c=>{c.apply(r,[d,...t])}),n.eventsListeners&&n.eventsListeners[d]&&n.eventsListeners[d].forEach(c=>{c.apply(r,t)})}),n}};function Yp(){const n=this;let e,t;const r=n.$el;typeof n.params.width<"u"&&n.params.width!==null?e=n.params.width:e=r[0].clientWidth,typeof n.params.height<"u"&&n.params.height!==null?t=n.params.height:t=r[0].clientHeight,!(e===0&&n.isHorizontal()||t===0&&n.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function qp(){const n=this;function e(S){return n.isHorizontal()?S:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[S]}function t(S,V){return parseFloat(S.getPropertyValue(e(V))||0)}const r=n.params,{$wrapperEl:s,size:o,rtlTranslate:l,wrongRTL:a}=n,d=n.virtual&&r.virtual.enabled,c=d?n.virtual.slides.length:n.slides.length,u=s.children(`.${n.params.slideClass}`),f=d?n.virtual.slides.length:u.length;let m=[];const h=[],g=[];let _=r.slidesOffsetBefore;typeof _=="function"&&(_=r.slidesOffsetBefore.call(n));let p=r.slidesOffsetAfter;typeof p=="function"&&(p=r.slidesOffsetAfter.call(n));const C=n.snapGrid.length,y=n.slidesGrid.length;let w=r.spaceBetween,v=-_,b=0,k=0;if(typeof o>"u")return;typeof w=="string"&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*o),n.virtualSize=-w,l?u.css({marginLeft:"",marginBottom:"",marginTop:""}):u.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(jn(n.wrapperEl,"--swiper-centered-offset-before",""),jn(n.wrapperEl,"--swiper-centered-offset-after",""));const x=r.grid&&r.grid.rows>1&&n.grid;x&&n.grid.initSlides(f);let I;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(S=>typeof r.breakpoints[S].slidesPerView<"u").length>0;for(let S=0;S<f;S+=1){I=0;const V=u.eq(S);if(x&&n.grid.updateSlide(S,V,f,e),V.css("display")!=="none"){if(r.slidesPerView==="auto"){D&&(u[S].style[e("width")]="");const M=getComputedStyle(V[0]),L=V[0].style.transform,E=V[0].style.webkitTransform;if(L&&(V[0].style.transform="none"),E&&(V[0].style.webkitTransform="none"),r.roundLengths)I=n.isHorizontal()?V.outerWidth(!0):V.outerHeight(!0);else{const z=t(M,"width"),B=t(M,"padding-left"),T=t(M,"padding-right"),F=t(M,"margin-left"),ee=t(M,"margin-right"),oe=M.getPropertyValue("box-sizing");if(oe&&oe==="border-box")I=z+F+ee;else{const{clientWidth:Q,offsetWidth:ve}=V[0];I=z+B+T+F+ee+(ve-Q)}}L&&(V[0].style.transform=L),E&&(V[0].style.webkitTransform=E),r.roundLengths&&(I=Math.floor(I))}else I=(o-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(I=Math.floor(I)),u[S]&&(u[S].style[e("width")]=`${I}px`);u[S]&&(u[S].swiperSlideSize=I),g.push(I),r.centeredSlides?(v=v+I/2+b/2+w,b===0&&S!==0&&(v=v-o/2-w),S===0&&(v=v-o/2-w),Math.abs(v)<1/1e3&&(v=0),r.roundLengths&&(v=Math.floor(v)),k%r.slidesPerGroup===0&&m.push(v),h.push(v)):(r.roundLengths&&(v=Math.floor(v)),(k-Math.min(n.params.slidesPerGroupSkip,k))%n.params.slidesPerGroup===0&&m.push(v),h.push(v),v=v+I+w),n.virtualSize+=I+w,b=I,k+=1}}if(n.virtualSize=Math.max(n.virtualSize,o)+p,l&&a&&(r.effect==="slide"||r.effect==="coverflow")&&s.css({width:`${n.virtualSize+r.spaceBetween}px`}),r.setWrapperSize&&s.css({[e("width")]:`${n.virtualSize+r.spaceBetween}px`}),x&&n.grid.updateWrapperSize(I,m,e),!r.centeredSlides){const S=[];for(let V=0;V<m.length;V+=1){let M=m[V];r.roundLengths&&(M=Math.floor(M)),m[V]<=n.virtualSize-o&&S.push(M)}m=S,Math.floor(n.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(n.virtualSize-o)}if(m.length===0&&(m=[0]),r.spaceBetween!==0){const S=n.isHorizontal()&&l?"marginLeft":e("marginRight");u.filter((V,M)=>r.cssMode?M!==u.length-1:!0).css({[S]:`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let S=0;g.forEach(M=>{S+=M+(r.spaceBetween?r.spaceBetween:0)}),S-=r.spaceBetween;const V=S-o;m=m.map(M=>M<0?-_:M>V?V+p:M)}if(r.centerInsufficientSlides){let S=0;if(g.forEach(V=>{S+=V+(r.spaceBetween?r.spaceBetween:0)}),S-=r.spaceBetween,S<o){const V=(o-S)/2;m.forEach((M,L)=>{m[L]=M-V}),h.forEach((M,L)=>{h[L]=M+V})}}if(Object.assign(n,{slides:u,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){jn(n.wrapperEl,"--swiper-centered-offset-before",`${-m[0]}px`),jn(n.wrapperEl,"--swiper-centered-offset-after",`${n.size/2-g[g.length-1]/2}px`);const S=-n.snapGrid[0],V=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(M=>M+S),n.slidesGrid=n.slidesGrid.map(M=>M+V)}if(f!==c&&n.emit("slidesLengthChange"),m.length!==C&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),h.length!==y&&n.emit("slidesGridLengthChange"),r.watchSlidesProgress&&n.updateSlidesOffset(),!d&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const S=`${r.containerModifierClass}backface-hidden`,V=n.$el.hasClass(S);f<=r.maxBackfaceHiddenSlides?V||n.$el.addClass(S):V&&n.$el.removeClass(S)}}function Xp(n){const e=this,t=[],r=e.virtual&&e.params.virtual.enabled;let s=0,o;typeof n=="number"?e.setTransition(n):n===!0&&e.setTransition(e.params.speed);const l=a=>r?e.slides.filter(d=>parseInt(d.getAttribute("data-swiper-slide-index"),10)===a)[0]:e.slides.eq(a)[0];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||U([])).each(a=>{t.push(a)});else for(o=0;o<Math.ceil(e.params.slidesPerView);o+=1){const a=e.activeIndex+o;if(a>e.slides.length&&!r)break;t.push(l(a))}else t.push(l(e.activeIndex));for(o=0;o<t.length;o+=1)if(typeof t[o]<"u"){const a=t[o].offsetHeight;s=a>s?a:s}(s||s===0)&&e.$wrapperEl.css("height",`${s}px`)}function jp(){const n=this,e=n.slides;for(let t=0;t<e.length;t+=1)e[t].swiperSlideOffset=n.isHorizontal()?e[t].offsetLeft:e[t].offsetTop}function Jp(n){n===void 0&&(n=this&&this.translate||0);const e=this,t=e.params,{slides:r,rtlTranslate:s,snapGrid:o}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let l=-n;s&&(l=n),r.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let a=0;a<r.length;a+=1){const d=r[a];let c=d.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=r[0].swiperSlideOffset);const u=(l+(t.centeredSlides?e.minTranslate():0)-c)/(d.swiperSlideSize+t.spaceBetween),f=(l-o[0]+(t.centeredSlides?e.minTranslate():0)-c)/(d.swiperSlideSize+t.spaceBetween),m=-(l-c),h=m+e.slidesSizesGrid[a];(m>=0&&m<e.size-1||h>1&&h<=e.size||m<=0&&h>=e.size)&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(a),r.eq(a).addClass(t.slideVisibleClass)),d.progress=s?-u:u,d.originalProgress=s?-f:f}e.visibleSlides=U(e.visibleSlides)}function Kp(n){const e=this;if(typeof n>"u"){const c=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*c||0}const t=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:o,isEnd:l}=e;const a=o,d=l;r===0?(s=0,o=!0,l=!0):(s=(n-e.minTranslate())/r,o=s<=0,l=s>=1),Object.assign(e,{progress:s,isBeginning:o,isEnd:l}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(n),o&&!a&&e.emit("reachBeginning toEdge"),l&&!d&&e.emit("reachEnd toEdge"),(a&&!o||d&&!l)&&e.emit("fromEdge"),e.emit("progress",s)}function Qp(){const n=this,{slides:e,params:t,$wrapperEl:r,activeIndex:s,realIndex:o}=n,l=n.virtual&&t.virtual.enabled;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`);let a;l?a=n.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${s}"]`):a=e.eq(s),a.addClass(t.slideActiveClass),t.loop&&(a.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${o}"]`).addClass(t.slideDuplicateActiveClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${o}"]`).addClass(t.slideDuplicateActiveClass));let d=a.nextAll(`.${t.slideClass}`).eq(0).addClass(t.slideNextClass);t.loop&&d.length===0&&(d=e.eq(0),d.addClass(t.slideNextClass));let c=a.prevAll(`.${t.slideClass}`).eq(0).addClass(t.slidePrevClass);t.loop&&c.length===0&&(c=e.eq(-1),c.addClass(t.slidePrevClass)),t.loop&&(d.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),c.hasClass(t.slideDuplicateClass)?r.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):r.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()}function Zp(n){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:s,params:o,activeIndex:l,realIndex:a,snapIndex:d}=e;let c=n,u;if(typeof c>"u"){for(let m=0;m<r.length;m+=1)typeof r[m+1]<"u"?t>=r[m]&&t<r[m+1]-(r[m+1]-r[m])/2?c=m:t>=r[m]&&t<r[m+1]&&(c=m+1):t>=r[m]&&(c=m);o.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0)}if(s.indexOf(t)>=0)u=s.indexOf(t);else{const m=Math.min(o.slidesPerGroupSkip,c);u=m+Math.floor((c-m)/o.slidesPerGroup)}if(u>=s.length&&(u=s.length-1),c===l){u!==d&&(e.snapIndex=u,e.emit("snapIndexChange"));return}const f=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:u,realIndex:f,previousIndex:l,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),a!==f&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function e0(n){const e=this,t=e.params,r=U(n).closest(`.${t.slideClass}`)[0];let s=!1,o;if(r){for(let l=0;l<e.slides.length;l+=1)if(e.slides[l]===r){s=!0,o=l;break}}if(r&&s)e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(U(r).attr("data-swiper-slide-index"),10):e.clickedIndex=o;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}t.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}const t0={updateSize:Yp,updateSlides:qp,updateAutoHeight:Xp,updateSlidesOffset:jp,updateSlidesProgress:Jp,updateProgress:Kp,updateSlidesClasses:Qp,updateActiveIndex:Zp,updateClickedSlide:e0};function n0(n){n===void 0&&(n=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:r,translate:s,$wrapperEl:o}=e;if(t.virtualTranslate)return r?-s:s;if(t.cssMode)return s;let l=Mp(o[0],n);return r&&(l=-l),l||0}function i0(n,e){const t=this,{rtlTranslate:r,params:s,$wrapperEl:o,wrapperEl:l,progress:a}=t;let d=0,c=0;const u=0;t.isHorizontal()?d=r?-n:n:c=n,s.roundLengths&&(d=Math.floor(d),c=Math.floor(c)),s.cssMode?l[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-d:-c:s.virtualTranslate||o.transform(`translate3d(${d}px, ${c}px, ${u}px)`),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?d:c;let f;const m=t.maxTranslate()-t.minTranslate();m===0?f=0:f=(n-t.minTranslate())/m,f!==a&&t.updateProgress(n),t.emit("setTranslate",t.translate,e)}function r0(){return-this.snapGrid[0]}function o0(){return-this.snapGrid[this.snapGrid.length-1]}function s0(n,e,t,r,s){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=!0);const o=this,{params:l,wrapperEl:a}=o;if(o.animating&&l.preventInteractionOnTransition)return!1;const d=o.minTranslate(),c=o.maxTranslate();let u;if(r&&n>d?u=d:r&&n<c?u=c:u=n,o.updateProgress(u),l.cssMode){const f=o.isHorizontal();if(e===0)a[f?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return Ds({swiper:o,targetPosition:-u,side:f?"left":"top"}),!0;a.scrollTo({[f?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(o.setTransition(0),o.setTranslate(u),t&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(u),t&&(o.emit("beforeTransitionStart",e,s),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(m){!o||o.destroyed||m.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,t&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}const l0={getTranslate:n0,setTranslate:i0,minTranslate:r0,maxTranslate:o0,translateTo:s0};function a0(n,e){const t=this;t.params.cssMode||t.$wrapperEl.transition(n),t.emit("setTransition",n,e)}function Ns(n){let{swiper:e,runCallbacks:t,direction:r,step:s}=n;const{activeIndex:o,previousIndex:l}=e;let a=r;if(a||(o>l?a="next":o<l?a="prev":a="reset"),e.emit(`transition${s}`),t&&o!==l){if(a==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),a==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function d0(n,e){n===void 0&&(n=!0);const t=this,{params:r}=t;r.cssMode||(r.autoHeight&&t.updateAutoHeight(),Ns({swiper:t,runCallbacks:n,direction:e,step:"Start"}))}function c0(n,e){n===void 0&&(n=!0);const t=this,{params:r}=t;t.animating=!1,!r.cssMode&&(t.setTransition(0),Ns({swiper:t,runCallbacks:n,direction:e,step:"End"}))}const u0={setTransition:a0,transitionStart:d0,transitionEnd:c0};function f0(n,e,t,r,s){if(n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof n!="number"&&typeof n!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof n}] given.`);if(typeof n=="string"){const w=parseInt(n,10);if(!isFinite(w))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=w}const o=this;let l=n;l<0&&(l=0);const{params:a,snapGrid:d,slidesGrid:c,previousIndex:u,activeIndex:f,rtlTranslate:m,wrapperEl:h,enabled:g}=o;if(o.animating&&a.preventInteractionOnTransition||!g&&!r&&!s)return!1;const _=Math.min(o.params.slidesPerGroupSkip,l);let p=_+Math.floor((l-_)/o.params.slidesPerGroup);p>=d.length&&(p=d.length-1),(f||a.initialSlide||0)===(u||0)&&t&&o.emit("beforeSlideChangeStart");const C=-d[p];if(o.updateProgress(C),a.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const v=-Math.floor(C*100),b=Math.floor(c[w]*100),k=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?v>=b&&v<k-(k-b)/2?l=w:v>=b&&v<k&&(l=w+1):v>=b&&(l=w)}if(o.initialized&&l!==f&&(!o.allowSlideNext&&C<o.translate&&C<o.minTranslate()||!o.allowSlidePrev&&C>o.translate&&C>o.maxTranslate()&&(f||0)!==l))return!1;let y;if(l>f?y="next":l<f?y="prev":y="reset",m&&-C===o.translate||!m&&C===o.translate)return o.updateActiveIndex(l),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(C),y!=="reset"&&(o.transitionStart(t,y),o.transitionEnd(t,y)),!1;if(a.cssMode){const w=o.isHorizontal(),v=m?C:-C;if(e===0){const b=o.virtual&&o.params.virtual.enabled;b&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),h[w?"scrollLeft":"scrollTop"]=v,b&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._swiperImmediateVirtual=!1})}else{if(!o.support.smoothScroll)return Ds({swiper:o,targetPosition:v,side:w?"left":"top"}),!0;h.scrollTo({[w?"left":"top"]:v,behavior:"smooth"})}return!0}return o.setTransition(e),o.setTranslate(C),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,r),o.transitionStart(t,y),e===0?o.transitionEnd(t,y):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(v){!o||o.destroyed||v.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(t,y))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd)),!0}function h0(n,e,t,r){if(n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof n=="string"){const l=parseInt(n,10);if(!isFinite(l))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=l}const s=this;let o=n;return s.params.loop&&(o+=s.loopedSlides),s.slideTo(o,e,t,r)}function m0(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);const r=this,{animating:s,enabled:o,params:l}=r;if(!o)return r;let a=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const d=r.activeIndex<l.slidesPerGroupSkip?1:a;if(l.loop){if(s&&l.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return l.rewind&&r.isEnd?r.slideTo(0,n,e,t):r.slideTo(r.activeIndex+d,n,e,t)}function g0(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);const r=this,{params:s,animating:o,snapGrid:l,slidesGrid:a,rtlTranslate:d,enabled:c}=r;if(!c)return r;if(s.loop){if(o&&s.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}const u=d?r.translate:-r.translate;function f(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const m=f(u),h=l.map(p=>f(p));let g=l[h.indexOf(m)-1];if(typeof g>"u"&&s.cssMode){let p;l.forEach((C,y)=>{m>=C&&(p=y)}),typeof p<"u"&&(g=l[p>0?p-1:p])}let _=0;if(typeof g<"u"&&(_=a.indexOf(g),_<0&&(_=r.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic("previous",!0)+1,_=Math.max(_,0))),s.rewind&&r.isBeginning){const p=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(p,n,e,t)}return r.slideTo(_,n,e,t)}function p0(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);const r=this;return r.slideTo(r.activeIndex,n,e,t)}function b0(n,e,t,r){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0),r===void 0&&(r=.5);const s=this;let o=s.activeIndex;const l=Math.min(s.params.slidesPerGroupSkip,o),a=l+Math.floor((o-l)/s.params.slidesPerGroup),d=s.rtlTranslate?s.translate:-s.translate;if(d>=s.snapGrid[a]){const c=s.snapGrid[a],u=s.snapGrid[a+1];d-c>(u-c)*r&&(o+=s.params.slidesPerGroup)}else{const c=s.snapGrid[a-1],u=s.snapGrid[a];d-c<=(u-c)*r&&(o-=s.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,s.slidesGrid.length-1),s.slideTo(o,n,e,t)}function w0(){const n=this,{params:e,$wrapperEl:t}=n,r=e.slidesPerView==="auto"?n.slidesPerViewDynamic():e.slidesPerView;let s=n.clickedIndex,o;if(e.loop){if(n.animating)return;o=parseInt(U(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?s<n.loopedSlides-r/2||s>n.slides.length-n.loopedSlides+r/2?(n.loopFix(),s=t.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Ai(()=>{n.slideTo(s)})):n.slideTo(s):s>n.slides.length-r?(n.loopFix(),s=t.children(`.${e.slideClass}[data-swiper-slide-index="${o}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),Ai(()=>{n.slideTo(s)})):n.slideTo(s)}else n.slideTo(s)}const y0={slideTo:f0,slideToLoop:h0,slideNext:m0,slidePrev:g0,slideReset:p0,slideToClosest:b0,slideToClickedSlide:w0};function k0(){const n=this,e=Ne(),{params:t,$wrapperEl:r}=n,s=r.children().length>0?U(r.children()[0].parentNode):r;s.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let o=s.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const d=t.slidesPerGroup-o.length%t.slidesPerGroup;if(d!==t.slidesPerGroup){for(let c=0;c<d;c+=1){const u=U(e.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);s.append(u)}o=s.children(`.${t.slideClass}`)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=o.length),n.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>o.length&&n.params.loopedSlidesLimit&&(n.loopedSlides=o.length);const l=[],a=[];o.each((d,c)=>{U(d).attr("data-swiper-slide-index",c)});for(let d=0;d<n.loopedSlides;d+=1){const c=d-Math.floor(d/o.length)*o.length;a.push(o.eq(c)[0]),l.unshift(o.eq(o.length-c-1)[0])}for(let d=0;d<a.length;d+=1)s.append(U(a[d].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let d=l.length-1;d>=0;d-=1)s.prepend(U(l[d].cloneNode(!0)).addClass(t.slideDuplicateClass))}function v0(){const n=this;n.emit("beforeLoopFix");const{activeIndex:e,slides:t,loopedSlides:r,allowSlidePrev:s,allowSlideNext:o,snapGrid:l,rtlTranslate:a}=n;let d;n.allowSlidePrev=!0,n.allowSlideNext=!0;const u=-l[e]-n.getTranslate();e<r?(d=t.length-r*3+e,d+=r,n.slideTo(d,0,!1,!0)&&u!==0&&n.setTranslate((a?-n.translate:n.translate)-u)):e>=t.length-r&&(d=-t.length+e+r,d+=r,n.slideTo(d,0,!1,!0)&&u!==0&&n.setTranslate((a?-n.translate:n.translate)-u)),n.allowSlidePrev=s,n.allowSlideNext=o,n.emit("loopFix")}function _0(){const n=this,{$wrapperEl:e,params:t,slides:r}=n;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),r.removeAttr("data-swiper-slide-index")}const C0={loopCreate:k0,loopFix:v0,loopDestroy:_0};function S0(n){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;t.style.cursor="move",t.style.cursor=n?"grabbing":"grab"}function x0(){const n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n[n.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const V0={setGrabCursor:S0,unsetGrabCursor:x0};function E0(n,e){e===void 0&&(e=this);function t(r){if(!r||r===Ne()||r===ye())return null;r.assignedSlot&&(r=r.assignedSlot);const s=r.closest(n);return!s&&!r.getRootNode?null:s||t(r.getRootNode().host)}return t(e)}function T0(n){const e=this,t=Ne(),r=ye(),s=e.touchEventsData,{params:o,touches:l,enabled:a}=e;if(!a||e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let d=n;d.originalEvent&&(d=d.originalEvent);let c=U(d.target);if(o.touchEventsTarget==="wrapper"&&!c.closest(e.wrapperEl).length||(s.isTouchEvent=d.type==="touchstart",!s.isTouchEvent&&"which"in d&&d.which===3)||!s.isTouchEvent&&"button"in d&&d.button>0||s.isTouched&&s.isMoved)return;!!o.noSwipingClass&&o.noSwipingClass!==""&&d.target&&d.target.shadowRoot&&n.path&&n.path[0]&&(c=U(n.path[0]));const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,m=!!(d.target&&d.target.shadowRoot);if(o.noSwiping&&(m?E0(f,c[0]):c.closest(f)[0])){e.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler)[0])return;l.currentX=d.type==="touchstart"?d.targetTouches[0].pageX:d.pageX,l.currentY=d.type==="touchstart"?d.targetTouches[0].pageY:d.pageY;const h=l.currentX,g=l.currentY,_=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(_&&(h<=p||h>=r.innerWidth-p))if(_==="prevent")n.preventDefault();else return;if(Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=h,l.startY=g,s.touchStartTime=vn(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(s.allowThresholdMove=!1),d.type!=="touchstart"){let C=!0;c.is(s.focusableElements)&&(C=!1,c[0].nodeName==="SELECT"&&(s.isTouched=!1)),t.activeElement&&U(t.activeElement).is(s.focusableElements)&&t.activeElement!==c[0]&&t.activeElement.blur();const y=C&&e.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!c[0].isContentEditable&&d.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",d)}function B0(n){const e=Ne(),t=this,r=t.touchEventsData,{params:s,touches:o,rtlTranslate:l,enabled:a}=t;if(!a)return;let d=n;if(d.originalEvent&&(d=d.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",d);return}if(r.isTouchEvent&&d.type!=="touchmove")return;const c=d.type==="touchmove"&&d.targetTouches&&(d.targetTouches[0]||d.changedTouches[0]),u=d.type==="touchmove"?c.pageX:d.pageX,f=d.type==="touchmove"?c.pageY:d.pageY;if(d.preventedByNestedSwiper){o.startX=u,o.startY=f;return}if(!t.allowTouchMove){U(d.target).is(r.focusableElements)||(t.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:u,startY:f,currentX:u,currentY:f}),r.touchStartTime=vn());return}if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop){if(t.isVertical()){if(f<o.startY&&t.translate<=t.maxTranslate()||f>o.startY&&t.translate>=t.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u<o.startX&&t.translate<=t.maxTranslate()||u>o.startX&&t.translate>=t.minTranslate())return}if(r.isTouchEvent&&e.activeElement&&d.target===e.activeElement&&U(d.target).is(r.focusableElements)){r.isMoved=!0,t.allowClick=!1;return}if(r.allowTouchCallbacks&&t.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;o.currentX=u,o.currentY=f;const m=o.currentX-o.startX,h=o.currentY-o.startY;if(t.params.threshold&&Math.sqrt(m**2+h**2)<t.params.threshold)return;if(typeof r.isScrolling>"u"){let C;t.isHorizontal()&&o.currentY===o.startY||t.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:m*m+h*h>=25&&(C=Math.atan2(Math.abs(h),Math.abs(m))*180/Math.PI,r.isScrolling=t.isHorizontal()?C>s.touchAngle:90-C>s.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",d),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!r.startMoving)return;t.allowClick=!1,!s.cssMode&&d.cancelable&&d.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&d.stopPropagation(),r.isMoved||(s.loop&&!s.cssMode&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,s.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",d)),t.emit("sliderMove",d),r.isMoved=!0;let g=t.isHorizontal()?m:h;o.diff=g,g*=s.touchRatio,l&&(g=-g),t.swipeDirection=g>0?"prev":"next",r.currentTranslate=g+r.startTranslate;let _=!0,p=s.resistanceRatio;if(s.touchReleaseOnEdges&&(p=0),g>0&&r.currentTranslate>t.minTranslate()?(_=!1,s.resistance&&(r.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+r.startTranslate+g)**p)):g<0&&r.currentTranslate<t.maxTranslate()&&(_=!1,s.resistance&&(r.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-r.startTranslate-g)**p)),_&&(d.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(g)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=t.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&t.freeMode||s.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&s.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}function I0(n){const e=this,t=e.touchEventsData,{params:r,touches:s,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a)return;let d=n;if(d.originalEvent&&(d=d.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",d),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}r.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=vn(),u=c-t.touchStartTime;if(e.allowClick){const y=d.path||d.composedPath&&d.composedPath();e.updateClickedSlide(y&&y[0]||d.target),e.emit("tap click",d),u<300&&c-t.lastClickTime<300&&e.emit("doubleTap doubleClick",d)}if(t.lastClickTime=vn(),Ai(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||s.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let f;if(r.followFinger?f=o?e.translate:-e.translate:f=-t.currentTranslate,r.cssMode)return;if(e.params.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}let m=0,h=e.slidesSizesGrid[0];for(let y=0;y<l.length;y+=y<r.slidesPerGroupSkip?1:r.slidesPerGroup){const w=y<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof l[y+w]<"u"?f>=l[y]&&f<l[y+w]&&(m=y,h=l[y+w]-l[y]):f>=l[y]&&(m=y,h=l[l.length-1]-l[l.length-2])}let g=null,_=null;r.rewind&&(e.isBeginning?_=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const p=(f-l[m])/h,C=m<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(p>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?g:m+C):e.slideTo(m)),e.swipeDirection==="prev"&&(p>1-r.longSwipesRatio?e.slideTo(m+C):_!==null&&p<0&&Math.abs(p)>r.longSwipesRatio?e.slideTo(_):e.slideTo(m))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(d.target===e.navigation.nextEl||d.target===e.navigation.prevEl)?d.target===e.navigation.nextEl?e.slideTo(m+C):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(g!==null?g:m+C),e.swipeDirection==="prev"&&e.slideTo(_!==null?_:m))}}function Ls(){const n=this,{params:e,el:t}=n;if(t&&t.offsetWidth===0)return;e.breakpoints&&n.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:o}=n;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=s,n.allowSlideNext=r,n.params.watchOverflow&&o!==n.snapGrid&&n.checkOverflow()}function D0(n){const e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}function $0(){const n=this,{wrapperEl:e,rtlTranslate:t,enabled:r}=n;if(!r)return;n.previousTranslate=n.translate,n.isHorizontal()?n.translate=-e.scrollLeft:n.translate=-e.scrollTop,n.translate===0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();let s;const o=n.maxTranslate()-n.minTranslate();o===0?s=0:s=(n.translate-n.minTranslate())/o,s!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}let Ps=!1;function N0(){}const Ms=(n,e)=>{const t=Ne(),{params:r,touchEvents:s,el:o,wrapperEl:l,device:a,support:d}=n,c=!!r.nested,u=e==="on"?"addEventListener":"removeEventListener",f=e;if(!d.touch)o[u](s.start,n.onTouchStart,!1),t[u](s.move,n.onTouchMove,c),t[u](s.end,n.onTouchEnd,!1);else{const m=s.start==="touchstart"&&d.passiveListener&&r.passiveListeners?{passive:!0,capture:!1}:!1;o[u](s.start,n.onTouchStart,m),o[u](s.move,n.onTouchMove,d.passiveListener?{passive:!1,capture:c}:c),o[u](s.end,n.onTouchEnd,m),s.cancel&&o[u](s.cancel,n.onTouchEnd,m)}(r.preventClicks||r.preventClicksPropagation)&&o[u]("click",n.onClick,!0),r.cssMode&&l[u]("scroll",n.onScroll),r.updateOnWindowResize?n[f](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ls,!0):n[f]("observerUpdate",Ls,!0)};function L0(){const n=this,e=Ne(),{params:t,support:r}=n;n.onTouchStart=T0.bind(n),n.onTouchMove=B0.bind(n),n.onTouchEnd=I0.bind(n),t.cssMode&&(n.onScroll=$0.bind(n)),n.onClick=D0.bind(n),r.touch&&!Ps&&(e.addEventListener("touchstart",N0),Ps=!0),Ms(n,"on")}function P0(){Ms(this,"off")}const M0={attachEvents:L0,detachEvents:P0},zs=(n,e)=>n.grid&&e.grid&&e.grid.rows>1;function z0(){const n=this,{activeIndex:e,initialized:t,loopedSlides:r=0,params:s,$el:o}=n,l=s.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const a=n.getBreakpoint(l,n.params.breakpointsBase,n.el);if(!a||n.currentBreakpoint===a)return;const c=(a in l?l[a]:void 0)||n.originalParams,u=zs(n,s),f=zs(n,c),m=s.enabled;u&&!f?(o.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`),n.emitContainerClasses()):!u&&f&&(o.addClass(`${s.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&s.grid.fill==="column")&&o.addClass(`${s.containerModifierClass}grid-column`),n.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(p=>{const C=s[p]&&s[p].enabled,y=c[p]&&c[p].enabled;C&&!y&&n[p].disable(),!C&&y&&n[p].enable()});const h=c.direction&&c.direction!==s.direction,g=s.loop&&(c.slidesPerView!==s.slidesPerView||h);h&&t&&n.changeDirection(),Le(n.params,c);const _=n.params.enabled;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),m&&!_?n.disable():!m&&_&&n.enable(),n.currentBreakpoint=a,n.emit("_beforeBreakpoint",c),g&&t&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(e-r+n.loopedSlides,0,!1)),n.emit("breakpoint",c)}function R0(n,e,t){if(e===void 0&&(e="window"),!n||e==="container"&&!t)return;let r=!1;const s=ye(),o=e==="window"?s.innerHeight:t.clientHeight,l=Object.keys(n).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const d=parseFloat(a.substr(1));return{value:o*d,point:a}}return{value:a,point:a}});l.sort((a,d)=>parseInt(a.value,10)-parseInt(d.value,10));for(let a=0;a<l.length;a+=1){const{point:d,value:c}=l[a];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(r=d):c<=t.clientWidth&&(r=d)}return r||"max"}const F0={setBreakpoint:z0,getBreakpoint:R0};function O0(n,e){const t=[];return n.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(s=>{r[s]&&t.push(e+s)}):typeof r=="string"&&t.push(e+r)}),t}function A0(){const n=this,{classNames:e,params:t,rtl:r,$el:s,device:o,support:l}=n,a=O0(["initialized",t.direction,{"pointer-events":!l.touch},{"free-mode":n.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:r},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),s.addClass([...e].join(" ")),n.emitContainerClasses()}function W0(){const n=this,{$el:e,classNames:t}=n;e.removeClass(t.join(" ")),n.emitContainerClasses()}const H0={addClasses:A0,removeClasses:W0};function G0(n,e,t,r,s,o){const l=ye();let a;function d(){o&&o()}!U(n).parent("picture")[0]&&(!n.complete||!s)&&e?(a=new l.Image,a.onload=d,a.onerror=d,r&&(a.sizes=r),t&&(a.srcset=t),e&&(a.src=e)):d()}function U0(){const n=this;n.imagesToLoad=n.$el.find("img");function e(){typeof n>"u"||n===null||!n||n.destroyed||(n.imagesLoaded!==void 0&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}for(let t=0;t<n.imagesToLoad.length;t+=1){const r=n.imagesToLoad[t];n.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}const Y0={loadImage:G0,preloadImages:U0};function q0(){const n=this,{isLocked:e,params:t}=n,{slidesOffsetBefore:r}=t;if(r){const s=n.slides.length-1,o=n.slidesGrid[s]+n.slidesSizesGrid[s]+r*2;n.isLocked=n.size>o}else n.isLocked=n.snapGrid.length===1;t.allowSlideNext===!0&&(n.allowSlideNext=!n.isLocked),t.allowSlidePrev===!0&&(n.allowSlidePrev=!n.isLocked),e&&e!==n.isLocked&&(n.isEnd=!1),e!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock")}const X0={checkOverflow:q0},Rs={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function j0(n,e){return function(r){r===void 0&&(r={});const s=Object.keys(r)[0],o=r[s];if(typeof o!="object"||o===null){Le(e,r);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&n[s]===!0&&(n[s]={auto:!0}),!(s in n&&"enabled"in o)){Le(e,r);return}n[s]===!0&&(n[s]={enabled:!0}),typeof n[s]=="object"&&!("enabled"in n[s])&&(n[s].enabled=!0),n[s]||(n[s]={enabled:!1}),Le(e,r)}}const Ui={eventsEmitter:Up,update:t0,translate:l0,transition:u0,slide:y0,loop:C0,grabCursor:V0,events:M0,breakpoints:F0,checkOverflow:X0,classes:H0,images:Y0},Yi={};class He{constructor(){let e,t;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];if(s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?t=s[0]:[e,t]=s,t||(t={}),t=Le({},t),e&&!t.el&&(t.el=e),t.el&&U(t.el).length>1){const c=[];return U(t.el).each(u=>{const f=Le({},t,{el:u});c.push(new He(f))}),c}const l=this;l.__swiper__=!0,l.support=$s(),l.device=Op({userAgent:t.userAgent}),l.browser=Wp(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const a={};l.modules.forEach(c=>{c({swiper:l,extendParams:j0(t,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const d=Le({},Rs,a);return l.params=Le({},d,Yi,t),l.originalParams=Le({},l.params),l.passedParams=Le({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach(c=>{l.on(c,l.params.on[c])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),l.$=U,Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:U(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){const u=["touchstart","touchmove","touchend","touchcancel"],f=["pointerdown","pointermove","pointerup"];return l.touchEventsTouch={start:u[0],move:u[1],end:u[2],cancel:u[3]},l.touchEventsDesktop={start:f[0],move:f[1],end:f[2]},l.support.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:vn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;!e.enabled||(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const r=this;e=Math.min(Math.max(e,0),1);const s=r.minTranslate(),l=(r.maxTranslate()-s)*e+s;r.translateTo(l,typeof t>"u"?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(r=>{const s=e.getSlideClasses(r);t.push({slideEl:r,classNames:s}),e.emit("_slideClass",r,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const r=this,{params:s,slides:o,slidesGrid:l,slidesSizesGrid:a,size:d,activeIndex:c}=r;let u=1;if(s.centeredSlides){let f=o[c].swiperSlideSize,m;for(let h=c+1;h<o.length;h+=1)o[h]&&!m&&(f+=o[h].swiperSlideSize,u+=1,f>d&&(m=!0));for(let h=c-1;h>=0;h-=1)o[h]&&!m&&(f+=o[h].swiperSlideSize,u+=1,f>d&&(m=!0))}else if(e==="current")for(let f=c+1;f<o.length;f+=1)(t?l[f]+a[f]-l[c]<d:l[f]-l[c]<d)&&(u+=1);else for(let f=c-1;f>=0;f-=1)l[c]-l[f]<d&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const l=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(l,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let o;e.params.freeMode&&e.params.freeMode.enabled?(s(),e.params.autoHeight&&e.updateAutoHeight()):((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?o=e.slideTo(e.slides.length-1,0,!1,!0):o=e.slideTo(e.activeIndex,0,!1,!0),o||s()),r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const r=this,s=r.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(r.$el.removeClass(`${r.params.containerModifierClass}${s}`).addClass(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.each(o=>{e==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const r=U(e||t.params.el);if(e=r[0],!e)return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const a=U(e.shadowRoot.querySelector(s()));return a.children=d=>r.children(d),a}return r.children?r.children(s()):U(r).children(s())})();if(l.length===0&&t.params.createElements){const d=Ne().createElement("div");l=U(d),d.className=t.params.wrapperClass,r.append(d),r.children(`.${t.params.slideClass}`).each(c=>{l.append(c)})}return Object.assign(t,{$el:r,el:e,$wrapperEl:l,wrapperEl:l[0],mounted:!0,rtl:e.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||r.css("direction")==="rtl"),wrongRTL:l.css("display")==="-webkit-box"}),!0}init(e){const t=this;return t.initialized||t.mount(e)===!1||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const r=this,{params:s,$el:o,$wrapperEl:l,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),s.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),l.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(d=>{r.off(d)}),e!==!1&&(r.$el[0].swiper=null,Lp(r)),r.destroyed=!0),null}static extendDefaults(e){Le(Yi,e)}static get extendedDefaults(){return Yi}static get defaults(){return Rs}static installModule(e){He.prototype.__modules__||(He.prototype.__modules__=[]);const t=He.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>He.installModule(t)),He):(He.installModule(e),He)}}Object.keys(Ui).forEach(n=>{Object.keys(Ui[n]).forEach(e=>{He.prototype[e]=Ui[n][e]})}),He.use([Hp,Gp]);const uv="",J0={name:"FvSwipeControl",emits:["status-change"],props:{...qg,value:{default:()=>({})},minOpWidth:{default:60},maxOpWidth:{default:300},leftOptions:{default:()=>[]},options:{default:()=>[{icon:"Delete",func:()=>{},type:"delete"}]},itemPadding:{default:"0 10px"},disabledLeft:{default:!0},disabledRight:{default:!1},disabledLeftFull:{default:!0},disabledRightFull:{default:!1},disabled:{default:!1}},data(){return{status:"normal",triggerType:"auto",swiper:null,swiperProgress:0,slidesProgress:[],thisLeftOptions:this.leftOptions,thisOptions:this.options}},watch:{value(){this.triggerType="auto",this.swiper.slideTo(1,300,!1),this.status="normal"},status(n){this.$emit("status-change",n)},isDisabled(n){n?this.swiper.disabled():this.swiper.enable()}},computed:{computedProgress(){return n=>this.slidesProgress[n]},computedWidth(){return n=>this.swiper?this.swiper.width*n:0},opWidth(){let n=this.computedWidth(.3);return n<this.minOpWidth?n=this.minOpWidth:n>this.maxOpWidth&&(n=this.maxOpWidth),n},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.init(),this.isDisabled?this.swiper.disable():this.swiper.enable()},methods:{init(){this.swiper=new He(this.$refs.container,{initialSlide:1,slidesPerView:1,longSwipesRatio:2,shortSwipes:!1,watchSlidesProgress:!0,on:{touchStart:n=>{this.triggerType="manual"},touchMove:(n,e)=>{this.refreshProgress(n)},touchEnd:(n,e)=>{this.refreshProgress(n)},transitionStart:n=>{if(this.triggerType==="auto")return;let e=this.slidesProgress[1];this.status!="normal"&&e>=-.5&&e<.5?(this.status="normal",this.swiper.slideTo(1,300,!1)):e<-.1&&e>=-.5?this.disabledLeft?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(.7)),this.status="left"):e<-.5?this.disabledLeftFull?this.swiper.slideTo(1,300,!1):(this.swiper.slidePrev(),this.status="leftFull"):e>.1&&e<=.5?this.disabledRight?(this.status="normal",this.swiper.slideTo(1,300,!1)):(this.swiper.setTransition(300),this.swiper.setTranslate(-this.computedWidth(1.3)),this.status="right"):e>.5&&(this.disabledRightFull?this.swiper.slideTo(1,300,!1):(this.swiper.slideNext(),this.status="rightFull"))},transitionEnd:(n,e)=>{this.triggerType="auto",this.refreshProgress(n),this.status=="rightFull"?this.callFunc(this.thisOptions[this.thisOptions.length-1]):this.status=="leftFull"&&this.callFunc(this.thisLeftOptions[this.thisLeftOptions.length-1])}}})},refreshProgress(n){this.swiperProgress=n.progress;let e=[];for(let t=0;t<n.slides.length;t++)e.push(n.slides[t].progress);this.slidesProgress=e},callFunc(n){this.valueTrigger(n.disabled)||n.func&&n.func(this.value)},valueTrigger(n){return typeof n=="function"?n():n}}},K0={class:"fv-swiper-container swiper-container",ref:"container"},Q0={class:"swiper-wrapper",ref:"wrapper"},Z0={class:"fv-SwipeControl-left swiper-slide"},eb=["onClick"],tb={class:"fv-SwipeControl-right swiper-slide"},nb=["onClick"];function ib(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SwipeControl",[o.$theme]])},[i.createElementVNode("div",K0,[i.createElementVNode("div",Q0,[i.createElementVNode("div",Z0,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.leftOptions,(l,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SwipeControl-btn",[o.valueTrigger(l.type)]]),key:a,style:i.normalizeStyle({width:a===t.leftOptions.length-1?"":`${o.opWidth/t.leftOptions.length}px`}),onClick:d=>o.callFunc(l)},[i.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:i.normalizeStyle({width:`${o.opWidth/t.leftOptions.length}px`})},[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon",[`ms-Icon--${o.valueTrigger(l.icon)}`]])},null,2),[[i.vShow,o.valueTrigger(l.icon)]]),i.withDirectives(i.createElementVNode("p",{style:{"margin-left":"5px"}},i.toDisplayString(o.valueTrigger(l.text)),513),[[i.vShow,o.valueTrigger(l.text)]])],4)],14,eb))),128))]),i.createElementVNode("div",{class:"fv-SwipeControl-main swiper-slide",style:i.normalizeStyle({padding:t.itemPadding})},[i.renderSlot(n.$slots,"default",{},()=>[i.createTextVNode(" Swipe Control ")])],4),i.createElementVNode("div",tb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisOptions,(l,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-SwipeControl-btn",[o.valueTrigger(l.type)]]),key:a,style:i.normalizeStyle({width:a===s.thisOptions.length-1?"":`${o.opWidth/s.thisOptions.length}px`}),onClick:d=>o.callFunc(l)},[i.createElementVNode("div",{class:"fv-SwipeControl-btn-content-block",style:i.normalizeStyle({width:`${o.opWidth/s.thisOptions.length}px`})},[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon",[`ms-Icon--${o.valueTrigger(l.icon)}`]])},null,2),[[i.vShow,o.valueTrigger(l.icon)]]),i.withDirectives(i.createElementVNode("p",{style:{"margin-left":"5px"}},i.toDisplayString(o.valueTrigger(l.text)),513),[[i.vShow,o.valueTrigger(l.text)]])],4)],14,nb))),128))])],512)],512)],2)}const Fs=j(Z(J0,[["render",ib]])),hv="",mv="",gv="",rb={...q};var qi=[],Xi=function(n){return typeof n>"u"},ji=/\s*(\.\d+|\d+(?:\.\d+)?)(%)?\s*/,Jn=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,ob=/\s*(\.\d+|\d+(?:\.\d+)?)\s*/,sb=new RegExp("^(rgb|hsl|hsv)a?\\("+ji.source+","+ji.source+","+ji.source+"(?:,"+ob.source+")?\\)$","i");function re(n){if(Array.isArray(n)){if(typeof n[0]=="string"&&typeof re[n[0]]=="function")return new re[n[0]](n.slice(1,n.length));if(n.length===4)return new re.RGB(n[0]/255,n[1]/255,n[2]/255,n[3]/255)}else if(typeof n=="string"){var e=n.toLowerCase();re.namedColors[e]&&(n="#"+re.namedColors[e]),e==="transparent"&&(n="rgba(0,0,0,0)");var t=n.match(sb);if(t){var r=t[1].toUpperCase(),s=Xi(t[8])?t[8]:parseFloat(t[8]),o=r[0]==="H",l=t[3]?100:o?360:255,a=t[5]||o?100:255,d=t[7]||o?100:255;if(Xi(re[r]))throw new Error("color."+r+" is not installed.");return new re[r](parseFloat(t[2])/l,parseFloat(t[4])/a,parseFloat(t[6])/d,s)}n.length<6&&(n=n.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,"$1$1$2$2$3$3"));var c=n.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/i);if(c)return new re.RGB(parseInt(c[1],16)/255,parseInt(c[2],16)/255,parseInt(c[3],16)/255);if(re.CMYK){var u=n.match(new RegExp("^cmyk\\("+Jn.source+","+Jn.source+","+Jn.source+","+Jn.source+"\\)$","i"));if(u)return new re.CMYK(parseFloat(u[1])/100,parseFloat(u[2])/100,parseFloat(u[3])/100,parseFloat(u[4])/100)}}else if(typeof n=="object"&&n.isColor)return n;return!1}re.namedColors={},re.installColorSpace=function(n,e,t){re[n]=function(a){var d=Array.isArray(a)?a:arguments;e.forEach(function(c,u){var f=d[u];if(c==="alpha")this._alpha=isNaN(f)||f>1?1:f<0?0:f;else{if(isNaN(f))throw new Error("["+n+"]: Invalid color: ("+e.join(",")+")");c==="hue"?this._hue=f<0?f-Math.floor(f):f%1:this["_"+c]=f<0?0:f>1?1:f}},this)},re[n].propertyNames=e;var r=re[n].prototype;["valueOf","hex","hexa","css","cssa"].forEach(function(a){r[a]=r[a]||(n==="RGB"?r.hex:function(){return this.rgb()[a]()})}),r.isColor=!0,r.equals=function(a,d){Xi(d)&&(d=1e-10),a=a[n.toLowerCase()]();for(var c=0;c<e.length;c=c+1)if(Math.abs(this["_"+e[c]]-a["_"+e[c]])>d)return!1;return!0},r.toJSON=function(){return[n].concat(e.map(function(a){return this["_"+a]},this))};for(var s in t)if(t.hasOwnProperty(s)){var o=s.match(/^from(.*)$/);o?re[o[1].toUpperCase()].prototype[n.toLowerCase()]=t[s]:r[s]=t[s]}r[n.toLowerCase()]=function(){return this},r.toString=function(){return"["+n+" "+e.map(function(a){return this["_"+a]},this).join(", ")+"]"},e.forEach(function(a){var d=a==="black"?"k":a.charAt(0);r[a]=r[d]=function(c,u){return typeof c>"u"?this["_"+a]:u?new this.constructor(e.map(function(f){return this["_"+f]+(a===f?c:0)},this)):new this.constructor(e.map(function(f){return a===f?c:this["_"+f]},this))}});function l(a,d){var c={};c[d.toLowerCase()]=function(){return this.rgb()[d.toLowerCase()]()},re[d].propertyNames.forEach(function(f){var m=f==="black"?"k":f.charAt(0);c[f]=c[m]=function(h,g){return this[d.toLowerCase()]()[f](h,g)}});for(var u in c)c.hasOwnProperty(u)&&re[a].prototype[u]===void 0&&(re[a].prototype[u]=c[u])}return qi.forEach(function(a){l(n,a),l(a,n)}),qi.push(n),re},re.pluginList=[],re.use=function(n){return re.pluginList.indexOf(n)===-1&&(this.pluginList.push(n),n(re)),re},re.installMethod=function(n,e){return qi.forEach(function(t){re[t].prototype[n]=e}),this},re.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var n=(Math.round(255*this._red)*65536+Math.round(255*this._green)*256+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-n.length)+n},hexa:function(){var n=Math.round(this._alpha*255).toString(16);return"#"+"00".substr(0,2-n.length)+n+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}});var lb=re,Os=function(e){e.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var t=function(l){return l>.04045?Math.pow((l+.055)/1.055,2.4):l/12.92},r=t(this._red),s=t(this._green),o=t(this._blue);return new e.XYZ(r*.4124564+s*.3575761+o*.1804375,r*.2126729+s*.7151522+o*.072175,r*.0193339+s*.119192+o*.9503041,this._alpha)},rgb:function(){var t=this._x,r=this._y,s=this._z,o=function(l){return l>.0031308?1.055*Math.pow(l,1/2.4)-.055:12.92*l};return new e.RGB(o(t*3.2404542+r*-1.5371385+s*-.4985314),o(t*-.969266+r*1.8760108+s*.041556),o(t*.0556434+r*-.2040259+s*1.0572252),this._alpha)},lab:function(){var t=function(l){return l>.008856?Math.pow(l,.3333333333333333):7.787037*l+.13793103448275862},r=t(this._x/95.047),s=t(this._y/100),o=t(this._z/108.883);return new e.LAB(116*s-16,500*(r-s),200*(s-o),this._alpha)}})},ab=function(e){e.use(Os),e.installColorSpace("LAB",["l","a","b","alpha"],{fromRgb:function(){return this.xyz().lab()},rgb:function(){return this.xyz().rgb()},xyz:function(){var t=function(l){var a=Math.pow(l,3);return a>.008856?a:(l-.13793103448275862)/7.87},r=(this._l+16)/116,s=this._a/500+r,o=r-this._b/200;return new e.XYZ(t(s)*95.047,t(r)*100,t(o)*108.883,this._alpha)}})},As=function(e){e.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var t=this._hue,r=this._saturation,s=this._value,o=Math.min(5,Math.floor(t*6)),l=t*6-o,a=s*(1-r),d=s*(1-l*r),c=s*(1-(1-l)*r),u,f,m;switch(o){case 0:u=s,f=c,m=a;break;case 1:u=d,f=s,m=a;break;case 2:u=a,f=s,m=c;break;case 3:u=a,f=d,m=s;break;case 4:u=c,f=a,m=s;break;case 5:u=s,f=a,m=d;break}return new e.RGB(u,f,m,this._alpha)},hsl:function(){var t=(2-this._saturation)*this._value,r=this._saturation*this._value,s=t<=1?t:2-t,o;return s<1e-9?o=0:o=r/s,new e.HSL(this._hue,o,t/2,this._alpha)},fromRgb:function(){var t=this._red,r=this._green,s=this._blue,o=Math.max(t,r,s),l=Math.min(t,r,s),a=o-l,d,c=o===0?0:a/o,u=o;if(a===0)d=0;else switch(o){case t:d=(r-s)/a/6+(r<s?1:0);break;case r:d=(s-t)/a/6+1/3;break;case s:d=(t-r)/a/6+2/3;break}return new e.HSV(d,c,u,this._alpha)}})},Qt=function(e){e.use(As),e.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var t=this._lightness*2,r=this._saturation*(t<=1?t:2-t),s;return t+r<1e-9?s=0:s=2*r/(t+r),new e.HSV(this._hue,s,(t+r)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})},db=function(e){e.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new e.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var t=this._red,r=this._green,s=this._blue,o=1-t,l=1-r,a=1-s,d=1;return t||r||s?(d=Math.min(o,Math.min(l,a)),o=(o-d)/(1-d),l=(l-d)/(1-d),a=(a-d)/(1-d)):d=1,new e.CMYK(o,l,a,d,this._alpha)}})},cb=function(e){e.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}},ub=function(e){e.installMethod("clearer",function(t){return this.alpha(isNaN(t)?-.1:-t,!0)})},Ws=function(e){function t(r){return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}e.installMethod("luminance",function(){var r=this.rgb();return .2126*t(r._red)+.7152*t(r._green)+.0722*t(r._blue)})},fb=function(e){e.use(Ws),e.installMethod("contrast",function(t){var r=this.luminance(),s=t.luminance();return r>s?(r+.05)/(s+.05):(s+.05)/(r+.05)})},hb=function(e){e.use(Qt),e.installMethod("darken",function(t){return this.lightness(isNaN(t)?-.1:-t,!0)})},mb=function(e){e.use(Qt),e.installMethod("desaturate",function(t){return this.saturation(isNaN(t)?-.1:-t,!0)})},gb=function(e){function t(){var r=this.rgb(),s=r._red*.3+r._green*.59+r._blue*.11;return new e.RGB(s,s,s,r._alpha)}e.installMethod("greyscale",t).installMethod("grayscale",t)},Hs=function(e){e.installMethod("isDark",function(){var t=this.rgb(),r=(t._red*255*299+t._green*255*587+t._blue*255*114)/1e3;return r<128})},pb=function(e){e.use(Hs),e.installMethod("isLight",function(){return!this.isDark()})},bb=function(e){e.use(Qt),e.installMethod("lighten",function(t){return this.lightness(isNaN(t)?.1:t,!0)})},wb=function(e){e.installMethod("mix",function(t,r){t=e(t).rgb(),r=1-(isNaN(r)?.5:r);var s=r*2-1,o=this._alpha-t._alpha,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,a=1-l,d=this.rgb();return new e.RGB(d._red*l+t._red*a,d._green*l+t._green*a,d._blue*l+t._blue*a,d._alpha*r+t._alpha*(1-r))})},yb=function(e){e.installMethod("negate",function(){var t=this.rgb();return new e.RGB(1-t._red,1-t._green,1-t._blue,this._alpha)})},kb=function(e){e.installMethod("opaquer",function(t){return this.alpha(isNaN(t)?.1:t,!0)})},vb=function(e){e.use(Qt),e.installMethod("rotate",function(t){return this.hue((t||0)/360,!0)})},_b=function(e){e.use(Qt),e.installMethod("saturate",function(t){return this.saturation(isNaN(t)?.1:t,!0)})},Cb=function(e){e.installMethod("toAlpha",function(t){var r=this.rgb(),s=t(t).rgb(),o=1e-10,l=new t.RGB(0,0,0,r._alpha),a=["_red","_green","_blue"];return a.forEach(function(d){r[d]<o?l[d]=r[d]:r[d]>s[d]?l[d]=(r[d]-s[d])/(1-s[d]):r[d]>s[d]?l[d]=(s[d]-r[d])/s[d]:l[d]=0}),l._red>l._green?l._red>l._blue?r._alpha=l._red:r._alpha=l._blue:l._green>l._blue?r._alpha=l._green:r._alpha=l._blue,r._alpha<o||(a.forEach(function(d){r[d]=(r[d]-s[d])/r._alpha+s[d]}),r._alpha*=l._alpha),r})},Sb=lb.use(Os).use(ab).use(As).use(Qt).use(db).use(cb).use(ub).use(fb).use(hb).use(mb).use(gb).use(Hs).use(pb).use(bb).use(Ws).use(wb).use(yb).use(kb).use(vb).use(_b).use(Cb);const xb={name:"FvTag",emits:["update:modelValue","add-item","del-item","tag-click"],props:{...rb,modelValue:{default:()=>[]},newTagPlaceholder:{default:"New Tag"},size:{default:""},newTagBackground:{default:null},isNewTag:{default:!1},isDel:{default:!1}},data(){return{thisValue:this.modelValue,inputValue:"",edit:!1}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)},edit(){this.inputValue!==""&&this.addTag()}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.outSideClickInit()},methods:{outSideClickInit(){window.addEventListener("click",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$refs.add){t=!0;break}e=e.parentNode}t||(this.edit=!1)}),window.addEventListener("touchend",n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$refs.add){t=!0;break}e=e.parentNode}t||(this.edit=!1)})},editable(){this.edit=!0,setTimeout(()=>{this.$refs.edit.focus()},10)},addTag(){this.thisValue.push({text:this.inputValue}),this.inputValue="",this.$emit("add-item",{text:this.inputValue})},delTag(n){let e=this.thisValue.indexOf(n);this.thisValue.splice(e,1),this.$emit("del-item",n)},getColor(n){return n=Sb(n),this.$theme=="dark"?{background:n.alpha(1).cssa(),borderColor:n.alpha(1).cssa(),color:"whitesmoke"}:{background:n.alpha(.1).cssa(),borderColor:n.alpha(.1).cssa(),color:n.alpha(1).cssa()}}}},Vb=["onClick"],Eb={class:"fv-tag-content"},Tb=["onClick"],Bb={class:"ms-Icon ms-Icon--Add fv-tag-icon"};function Ib(n,e,t,r,s,o){const l=i.resolveComponent("fv-text-box");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-Tag",[o.$theme]])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisValue,(a,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:i.normalizeClass(["fv-tag-item",[a.type?a.type:"",t.size,{disabled:a.disabled}]]),style:i.normalizeStyle({background:a.background?o.getColor(a.background).background:"",borderColor:a.background?o.getColor(a.background).borderColor:"",color:a.background?o.getColor(a.background).color:""}),onClick:c=>n.$emit("tag-click",a)},[i.createElementVNode("span",Eb,[i.renderSlot(n.$slots,"default",{},()=>[i.createTextVNode(i.toDisplayString(a.text),1)])]),i.withDirectives(i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel fv-tag-icon",onClick:c=>o.delTag(a)},null,8,Tb),[[i.vShow,t.isDel&&!a.disabled]])],14,Vb))),128)),i.withDirectives(i.createElementVNode("div",{ref:"add",class:i.normalizeClass(["fv-tag-item controller",[t.size]]),style:i.normalizeStyle({background:t.newTagBackground?o.getColor(t.newTagBackground).background:"",borderColor:t.newTagBackground?o.getColor(t.newTagBackground).borderColor:"",color:t.newTagBackground?o.getColor(t.newTagBackground).color:""}),onClick:e[1]||(e[1]=(...a)=>o.editable&&o.editable(...a))},[i.withDirectives(i.createElementVNode("i",Bb,null,512),[[i.vShow,!s.edit]]),i.withDirectives(i.createElementVNode("span",{class:"fv-tag-content"},i.toDisplayString(t.newTagPlaceholder),513),[[i.vShow,!s.edit]]),i.withDirectives(i.createVNode(l,{modelValue:s.inputValue,"onUpdate:modelValue":e[0]||(e[0]=a=>s.inputValue=a),ref:"edit",placeholder:t.newTagPlaceholder,style:{width:"auto"},onKeydown:i.withKeys(o.addTag,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),[[i.vShow,s.edit]])],6),[[i.vShow,t.isNewTag]])],2)}const Gs=j(Z(xb,[["render",Ib]])),bv="",wv="",yv="",Db={...q},$b={emits:["update:modelValue","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{type:Array,default:()=>[]},inputmode:{default:"text"},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},readonly:{default:!1},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},theme:{type:String,default:"global"}},data(){return{thisValue:[],currentPos:0,thisPattern:new RegExp(this.pattern)}},watch:{modelValue(n){this.syncValue(n)},mask(n){this.thisValueInit()},flag(n){this.thisValueInit()},pattern(n){this.thisPattern=new RegExp(n)}},computed:{$theme(){return W(this.$props).theme.value},maxLength(){let n=0;for(let e=0;e<this.mask.length;e++)this.mask[e]==this.flag&&n++;return n},renderText(){this.mask;let n=0,e="";for(let t=0;t<this.mask.length;t++)if(this.mask[t]==this.flag){if(n>=this.thisValue.length)break;this.thisValue[n].content!==""?e+=this.thisValue[n].content:e+=this.mask[t],n++}else e+=this.mask[t];return e},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisValueInit(),this.syncValue(this.modelValue),this.thisPattern=new RegExp(this.pattern),this.$refs.input.addEventListener("paste",n=>{let e=n.clipboardData.getData("text/plain"),t=0;for(let r=0;r<e.length;r++)e[r].match(this.thisPattern)&&t<this.thisValue.length&&(this.thisValue[t].content=e[r],t++,this.currentPos=this.thisValue[t].index+1)})},methods:{thisValueInit(){this.thisValue=[];for(let n=0;n<this.mask.length;n++)this.mask[n]==this.flag&&this.thisValue.push({index:n,content:""});this.flag.length!=1&&console.warn("TextBox's flag should only contain 1 char."),this.$refs.input.value=this.renderText},syncValue(n){for(let e=0;e<this.thisValue.length;e++)e<n.length?this.thisValue[e]={index:this.thisValue[e].index,content:n[e]}:this.thisValue[e]={index:this.thisValue[e].index,content:""};this.$refs.input.value=this.renderText},keyDown(n){this.$emit("keydown",n);let e=n.keyCode,t=-1,r=this.$refs.input.selectionStart,s=this.$refs.input.selectionEnd,o=this.clearRange(r,s);for(let l=r-1;l>=0;l--)this.mask[l]==this.flag&&t++;if(this.isInputCode(e)&&!n.crtlKey){if(!this.thisPattern.test(n.key))return 0;t<this.thisValue.length-1&&(this.thisValue[t+1]={index:this.thisValue[t+1].index,content:n.key},this.currentPos=this.thisValue[t+1].index+1)}else if(e==8){if(o)return 0;t>-1&&(this.thisValue[t]={index:this.thisValue[t].index,content:""},this.currentPos=this.thisValue[t].index)}},isInputCode(n){let e=[[48,57],[65,90],[96,107],[109,111],[186,222]];for(let t of e)if(n>=t[0]&&n<=t[1])return!0;return!1},clearRange(n,e){if(e-n==0)return 0;let t=0;for(let r=this.thisValue.length-1;r>=0;r--)this.thisValue[r].index+1>n&&this.thisValue[r].index+1<=e&&(this.thisValue[r]={index:this.thisValue[r].index,content:""},t=r);return this.currentPos=this.thisValue[t].index,!0},input(n){n.target.value=this.renderText,this.$refs.input.setSelectionRange(this.currentPos,this.currentPos);let e=[];for(let t=0;t<this.thisValue.length;t++)e.push(this.thisValue[t].content);this.$emit("update:modelValue",e)},focusInspect(){this.$refs.input.focus()}}},Nb={class:"text-box-container internal"},Lb=["inputmode","type","readonly","disabled"];function Pb(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",Nb,[i.createElementVNode("input",{inputmode:t.inputmode,type:t.type,class:"fv-text-box-input",readonly:o.isReadOnly,disabled:o.isDisabled,ref:"input",style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onInput:e[0]||(e[0]=(...l)=>o.input&&o.input(...l)),onKeydown:e[1]||(e[1]=(...l)=>o.keyDown&&o.keyDown(...l)),onKeyup:e[2]||(e[2]=l=>n.$emit("keyup",l)),onChange:e[3]||(e[3]=l=>n.$emit("change",l)),onPaste:e[4]||(e[4]=l=>n.$emit("paste",l)),onFocus:e[5]||(e[5]=l=>n.$emit("focus",!0)),onBlur:e[6]||(e[6]=l=>n.$emit("blur",!1))},null,44,Lb)])}const Mb={components:{maskInput:Z($b,[["render",Pb]])},emits:["update:modelValue","update:focus","keydown","keyup","change","paste","focus","blur"],props:{modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},focus:{default:!1},maxlength:{default:""},disabled:{default:!1},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},theme:{type:String,default:"global"}},data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",thisMaskValue:(typeof this.modelValue).toString()=="object"?this.modelValue:[],thisPattern:new RegExp(this.partten),thisInputRules:new RegExp(this.inputRules)}},watch:{modelValue(n){(typeof n).toString()=="string"?this.thisValue=n:this.thisMaskValue=n},mode(n){n=="default"?this.thisValue="":this.thisMaskValue=[]},thisValue(n,e){!n||this.thisInputRules.test(n)?this.$emit("update:modelValue",n):n=e},thisMaskValue(n){this.$emit("update:modelValue",n)},pattern(n){this.thisPattern=new RegExp(n)},inputRules(n){this.thisInputRules=new RegExp(n)}},computed:{$theme(){return W(this.$props).theme.value},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""}},mounted(){this.thisPattern=new RegExp(this.pattern),this.thisInputRules=new RegExp(this.inputRules)},methods:{keyDown(n){this.$emit("keydown",n),n.key&&(n.key.length>1||this.thisPattern.test(n.key)||n.preventDefault())},focusInspect(){this.mode=="mask"?this.$refs.mask_input.focusInspect():this.$refs.input.focus()}}},zb={class:"text-box-container"},Rb=["inputmode","type","placeholder","readonly","disabled","maxlength"];function Fb(n,e,t,r,s,o){const l=i.resolveComponent("mask-input");return i.openBlock(),i.createElementBlock("div",zb,[t.mode=="default"?i.withDirectives((i.openBlock(),i.createElementBlock("input",{key:0,"onUpdate:modelValue":e[0]||(e[0]=a=>s.thisValue=a),inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,class:"fv-text-box-input",readonly:o.isReadOnly,disabled:o.isDisabled,maxlength:t.maxlength,ref:"input",style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:e[1]||(e[1]=(...a)=>o.keyDown&&o.keyDown(...a)),onKeyup:e[2]||(e[2]=a=>n.$emit("keyup",a)),onChange:e[3]||(e[3]=a=>n.$emit("change",a)),onPaste:e[4]||(e[4]=a=>n.$emit("paste",a)),onFocus:e[5]||(e[5]=a=>n.$emit("update:focus",!0)),onBlur:e[6]||(e[6]=a=>n.$emit("update:focus",!1))},null,44,Rb)),[[i.vModelDynamic,s.thisValue]]):i.createCommentVNode("",!0),t.mode=="mask"?(i.openBlock(),i.createBlock(l,{key:1,ref:"mask_input",modelValue:s.thisMaskValue,"onUpdate:modelValue":e[7]||(e[7]=a=>s.thisMaskValue=a),inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,mask:t.mask,flag:t.flag,pattern:t.pattern,readonly:o.isReadOnly,disabled:o.isDisabled,fontSize:t.fontSize,fontWeight:t.fontWeight,textAlign:t.textAlign,onKeydown:e[8]||(e[8]=a=>n.$emit("keydown",a)),onKeyup:e[9]||(e[9]=a=>n.$emit("keyup",a)),onChange:e[10]||(e[10]=a=>n.$emit("change",a)),onPaste:e[11]||(e[11]=a=>n.$emit("paste",a)),onFocus:e[12]||(e[12]=a=>n.$emit("update:focus",!0)),onBlur:e[13]||(e[13]=a=>n.$emit("update:focus",!1))},null,8,["modelValue","inputmode","type","placeholder","mask","flag","pattern","readonly","disabled","fontSize","fontWeight","textAlign"])):i.createCommentVNode("",!0)])}const Ob={name:"FvTextBox",components:{core:Z(Mb,[["render",Fb]])},emits:["update:modelValue","debounce-input","keydown","keyup","change","paste","left-icon-click","icon-click","click"],props:{...Db,modelValue:{default:""},mode:{default:"default"},inputmode:{default:"text"},placeholder:{default:""},type:{default:"text"},mask:{type:String,default:"mask:___"},flag:{type:String,default:"_"},pattern:{type:String,default:"[Ss]*"},inputRules:{type:String,default:"[Ss]*"},readonly:{default:!1},maxlength:{default:""},prefix:{default:""},suffix:{default:""},leftIcon:{default:""},icon:{default:""},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.3},fontWeight:{default:"normal"},foreground:{default:""},borderRadius:{default:3},textAlign:{default:"left"},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""},debounceDelay:{default:300},disabled:{default:!1}},data(){return{thisValue:this.modelValue,isFocus:!1,timer:{debounce:null}}},watch:{modelValue(n){this.thisValue=n},thisValue(n){clearTimeout(this.timer.debounce),this.timer.debounce=setTimeout(()=>{this.$emit("debounce-input",this.thisValue)},this.debounceDelay),this.$emit("update:modelValue",n)}},computed:{$theme(){return W(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(){this.$refs.core.focusInspect()}}},Ab={class:"fix-block"},Wb={class:"fix-block"};function Hb(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container"),a=i.resolveComponent("core");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TextBox",[o.$theme,t.status,s.isFocus?"focus":"",o.isDisabled?"disabled":"",o.isUnderline?"underline":"",{shadow:t.isBoxShadow}]]),style:i.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}]),onClick:e[8]||(e[8]=d=>s.isFocus=!0)},[i.createVNode(l,{parent:()=>n.$el,class:"fv-text-box-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("div",{class:"fv-text-box-wrapper-container",style:i.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:s.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[i.withDirectives(i.createElementVNode("div",Ab,[i.createElementVNode("p",null,i.toDisplayString(t.prefix),1)],512),[[i.vShow,t.prefix!=""]]),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.leftIcon}`]]),onClick:e[0]||(e[0]=d=>n.$emit("left-icon-click",d))},null,2),[[i.vShow,t.leftIcon!=""]]),i.createVNode(a,{modelValue:s.thisValue,"onUpdate:modelValue":e[1]||(e[1]=d=>s.thisValue=d),ref:"core",mode:t.mode,inputmode:t.inputmode,type:t.type,placeholder:t.placeholder,mask:t.mask,flag:t.flag,pattern:t.pattern,inputRules:t.inputRules,readonly:t.readonly,maxlength:t.maxlength,disabled:t.disabled,fontSize:t.fontSize,fontWeight:t.fontWeight,foreground:t.foreground,textAlign:t.textAlign,focus:s.isFocus,"onUpdate:focus":e[2]||(e[2]=d=>s.isFocus=d),onKeydown:e[3]||(e[3]=d=>n.$emit("keydown",d)),onKeyup:e[4]||(e[4]=d=>n.$emit("keyup",d)),onChange:e[5]||(e[5]=d=>n.$emit("change",d)),onPaste:e[6]||(e[6]=d=>n.$emit("paste",d))},null,8,["modelValue","mode","inputmode","type","placeholder","mask","flag","pattern","inputRules","readonly","maxlength","disabled","fontSize","fontWeight","foreground","textAlign","focus"]),i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon icon-block",[`ms-Icon--${t.icon}`]]),onClick:e[7]||(e[7]=d=>n.$emit("icon-click",d))},null,2),[[i.vShow,t.icon!=""]]),i.withDirectives(i.createElementVNode("div",Wb,[i.createElementVNode("p",null,i.toDisplayString(t.suffix),1)],512),[[i.vShow,t.suffix!=""]])],4)],6)}const Us=j(Z(Ob,[["render",Hb]])),Cv="",Sv="",xv="",Gb={...q},Ub={name:"FvTextField",emits:["update:modelValue","focus","blur","keydown","keyup","change","paste"],props:{...Gb,modelValue:{default:""},readonly:{default:!1},placeholder:{default:""},maxlength:{default:""},disabled:{default:!1},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:13.8},fontWeight:{default:"normal"},foreground:{default:""},textAlign:{default:"left"},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},revealBorderColor:{default:!1},revealBackgroundColor:{default:!1},status:{default:""}},data(){return{thisValue:(typeof this.modelValue).toString()=="string"?this.modelValue:"",isFocus:!1}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)}},computed:{$theme(){return W(this.$props).theme.value},isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isReadOnly(){return this.readonly.toString()=="true"||this.readonly=="readonly"||this.readonly===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},borderLightColor(){return this.revealBorderColor?this.revealBorderColor:this.$theme=="light"?"rgba(121, 119, 117, 0.6)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.6)":"rgba(121, 119, 117, 0.6)"},backgroundLightColor(){return this.revealBackgroundColor?this.revealBackgroundColor:this.$theme=="light"?"rgba(121, 119, 117, 0.3)":this.$theme=="dark"||this.$theme=="custom"?"rgba(255, 255, 255, 0.3)":"rgba(121, 119, 117, 0.3)"}},mounted(){},methods:{focus(n,e){this.isFocus=n,n?this.$emit("focus",e):this.$emit("blur",e)}}},Yb=["placeholder","readonly","disabled","maxlength"];function qb(n,e,t,r,s,o){const l=i.resolveComponent("fv-reveal-container");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TextField",[o.$theme,t.status,{focus:s.isFocus},{disabled:o.isDisabled},{underline:o.isUnderline},{shadow:t.isBoxShadow}]]),style:i.normalizeStyle([{background:t.background,borderRadius:`${t.borderRadius}px`}])},[i.createVNode(l,{parent:()=>n.$el,class:"fv-text-field-reveal-container",backgroundColor:o.backgroundLightColor,borderColor:o.borderLightColor,backgroundGradientSize:120,borderGradientSize:60,borderWidth:t.borderWidth,borderRadius:t.borderRadius,disabled:o.isDisabled||!t.revealBorder},null,8,["parent","backgroundColor","borderColor","borderWidth","borderRadius","disabled"]),i.createElementVNode("div",{class:"text-field-wrapper-container",style:i.normalizeStyle({borderWidth:`${t.borderWidth}px`,borderColor:s.isFocus?t.focusBorderColor:t.borderColor,borderRadius:`${t.borderRadius}px`})},[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":e[0]||(e[0]=a=>s.thisValue=a),placeholder:t.placeholder,class:"fv-text-field-input",readonly:o.isReadOnly,disabled:o.isDisabled,maxlength:t.maxlength,style:i.normalizeStyle({"font-size":`${t.fontSize}px`,"font-weight":t.fontWeight,color:t.foreground,"text-align":t.textAlign}),onKeydown:e[1]||(e[1]=a=>n.$emit("keydown",a)),onKeyup:e[2]||(e[2]=a=>n.$emit("keyup",a)),onChange:e[3]||(e[3]=a=>n.$emit("change",a)),onPaste:e[4]||(e[4]=a=>n.$emit("paste",a)),onFocus:e[5]||(e[5]=a=>o.focus(!0,a)),onBlur:e[6]||(e[6]=a=>o.focus(!1,a))},null,44,Yb),[[i.vModelText,s.thisValue]])],4)],6)}const Ys=j(Z(Ub,[["render",qb]])),Ev="",Tv="",Bv="",Xb={...q},jb={name:"FvTimePicker",emits:["update:modelValue","change","focus"],directives:{hover:{bind(n,{value:e}){e!==void 0&&typeof e=="function"&&(n.enterFunction=()=>{e(!0,n)},n.leaveFunction=()=>{e(!1,n)},n.addEventListener("mouseover",n.enterFunction),n.addEventListener("mouseleave",n.leaveFunction))},unbind(n){n.enterFunction!==void 0&&typeof n.enterFunction=="function"&&(n.removeEventListener("mouseover",n.hoverFunction),n.removeEventListener("mouseleave",n.leaveFunction))}}},props:{...Xb,timeType:{type:Number,default:12},modelValue:{type:Date,default:()=>new Date},period:{type:Array,default:()=>["A.M.","P.M."]},inputBackground:{default:""},innerBorderColor:{type:String,default:"rgba(200, 200, 200, 0.3)"},selectedBackground:{default:""},optionBackground:{default:""},disabled:{type:Boolean,default:!1},hoverColor:{type:String,default:void 0}},data(){return{show:!1,data:[[],[]],window:{event:{click:n=>{let e=n.target,t=!1;for(;e;){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show=!1)}}},config:{optionCount:9,buffer:1},selected:{date:this.modelValue},options:{}}},watch:{show(n){n?(this.selected.date=this.modelValue,this.init()):this.config.clickLock=!1}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.init(),this.loadEvent()},beforeUnmount(){this.removeEvent()},methods:{focus(){this.disabled||(this.show=!0)},accept(){this.$emit("update:modelValue",new Date(this.selected.date)),this.$emit("change",new Date(this.selected.date)),this.show=!1},cancel(){this.show=!1},init(){this.data=[[],[]],this.timeType=="12"&&this.data.push([]),this.size=[this.timeType==12?12:24,60,2];for(let n=0;n<this.data.length;++n){let e=this.data[n];this.setOptions(e,this.size[n],n)}},nPrev(n,e,t=1,r=1){n=Math.round(n);let s=t*e;return(n+s-r-t)%e+r},nNext(n,e,t=1,r=1){n=Math.round(n);let s=r*e;return(n+s+t-r)%e+r},loadEvent(){for(let n in this.window.event){let e=this.window.event[n];window.addEventListener(n,e)}},setOptions(n,e,t){let r=this.config.optionCount+this.config.buffer*2,s,o=this.selected.date;switch(t){case 0:s=this.nPrev(o.getHours(),e,Math.floor(r/2),0);break;case 1:s=this.nPrev(o.getMinutes(),e,Math.floor(r/2),0,0);break;case 2:s=this.nPrev(Math.floor(o.getHours()/11.9),e,Math.floor(r/2),0);break}for(let l=0;l<r;++l)t==2&&l!=5&&l-s!=5&&l-s!=4?n.push(s-3):n.push(s),s=this.nNext(s,e,1,t==0?1:0);this.$nextTick(()=>{this.loadSlide(e,t)})},loadSlide(n,e){let t=`col${e}`,r=this.$refs[t][0].scrollTop=40*this.config.buffer;this.options[t]={},this.options[t].scroll&&this.$refs[t][0].removeEventListener("scroll",this.options[t].scroll),this.options[t].scroll=()=>{if(e==2){if(this.$refs[t][0].scrollTop>r){if(this.selected.date.getHours()>11){this.$refs[t][0].scrollTop=r;return}}else if(this.selected.date.getHours()<=11){this.$refs[t][0].scrollTop=r;return}}this.slideCol(r,t,()=>{this.data[e].shift();let s,o;switch(e){case 0:o=this.timeType==12?this.selected.date.getHours()>=12?12:0:1,s=this.nNext(this.selected.date.getHours(),n,0),this.selected.date.setHours(this.nNext(s,n,1,o));break;case 1:s=this.nNext(this.selected.date.getMinutes(),n,0,0),this.selected.date.setMinutes(this.nNext(s,n,1,0));break;case 2:s=Math.floor(this.selected.date.getHours()/11.9),s==0&&this.selected.date.setHours(this.selected.date.getHours()+12);break}let l=this.nNext(s,n,(this.config.optionCount-1)/2+this.config.buffer+1,0);e==2&&(l=-1),this.data[e].push(l)},()=>{this.data[e].pop();let s,o;switch(e){case 0:o=this.timeType==12?this.selected.date.getHours()>=12?12:0:1,s=this.nNext(this.selected.date.getHours(),n,0),this.selected.date.setHours(this.nPrev(s,n,1,o));break;case 1:s=this.nNext(this.selected.date.getMinutes(),n,0,0),this.selected.date.setMinutes(this.nPrev(s,n,1,0));break;case 2:s=Math.floor(this.selected.date.getHours()/12),s==1&&this.selected.date.setHours(this.selected.date.getHours()-12);break}let l=this.nPrev(s,n,(this.config.optionCount-1)/2+this.config.buffer+1,0);e==2&&(l=-1),this.data[e].unshift(l)})},this.$refs[t][0].addEventListener("scroll",this.options[t].scroll)},removeEvent(){for(let n in this.window.event){let e=this.window.event[n];window.removeEventListener(n,e)}for(let n in this.options)this.$refs[n][0].removeEventListener("scroll",this.options[n].scroll)},slideCol(n,e,t,r){Math.abs(this.$refs[e][0].scrollTop-n)>=20&&(this.$refs[e][0].scrollTop>n?t():r(),this.$nextTick(()=>{this.$refs[e][0].scrollTop=n}))},async clickItem(n,e){if(this.config.clickLock)return;this.config.clickLock=!0,this.$refs[n][0].scrollTop=this.config.buffer*40;let t=this.$refs[n][0].scrollTop;this.$refs[n][0].scrollTop+=e-5;let r=Math.abs(e-5);if(r>0){let s=setInterval(()=>{if(this.$refs[n][0].scrollTop==t&&(--r,!r)){clearInterval(s),this.config.clickLock=!1;return}this.config.scrollLock=!0,this.$refs[n][0].scrollTop+=(e-5)*3},20)}else this.config.clickLock=!1},numberFixTwo(n){return n<10?"0"+n:n},showTime(n,e){return n==0?this.nNext(e,this.timeType==12?12:24,0,this.timeType==12?1:0):n==1?this.numberFixTwo(this.nNext(e,60,0,0)):e>=0?this.period[e]:""},hover(n,e){this.hoverColor!==void 0&&(n?(e.hoverStatus===!1||e.hoverStatus===void 0)&&(e.style.backgroundColor&&(e.backgroundColor=e.style.backgroundColor),e.style.backgroundColor=this.hoverColor):e.backgroundColor!==void 0?e.style.backgroundColor=e.backgroundColor:e.style.backgroundColor=null,e.hoverStatus=n)},hoverUpAndDown(n,e){let t=e.querySelector(".fv-TimePicker__options-body-col-down"),r=e.querySelector(".fv-TimePicker__options-body-col-up");n?((t.hoverStatus===!1||t.hoverStatus===void 0)&&(t.style.backgroundColor&&(t.backgroundColor=t.style.backgroundColor),t.style.backgroundColor=this.hoverColor),(r.hoverStatus===!1||r.hoverStatus===void 0)&&(r.style.backgroundColor&&(r.backgroundColor=r.style.backgroundColor),r.style.backgroundColor=this.hoverColor)):(t.backgroundColor!==void 0?t.style.backgroundColor=t.backgroundColor:t.style.backgroundColor=null,r.backgroundColor!==void 0?r.style.backgroundColor=r.backgroundColor:r.style.backgroundColor=null),t.hoverStatus=n,r.hoverStatus=n}}},Jb={class:"fv-TimePicker__input-item"},Kb={class:"fv-TimePicker__options-body"},Qb=["onClick"],Zb=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretUpSolid8"},null,-1)],ew=["onClick"],tw=["onClick"],nw=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--CaretDownSolid8"},null,-1)],iw={class:"fv-TimePicker__options-bar"},rw=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--Accept"},null,-1)],ow=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];function sw(n,e,t,r,s,o){const l=i.resolveDirective("hover");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TimePicker",[o.$theme,{disabled:t.disabled}]])},[i.createElementVNode("div",{class:"fv-TimePicker__input",style:i.normalizeStyle({background:t.inputBackground}),onClick:e[0]||(e[0]=a=>o.focus())},[i.createElementVNode("button",Jb,i.toDisplayString(o.showTime(0,t.modelValue.getHours())),1),i.createElementVNode("button",{class:"fv-TimePicker__input-item",style:i.normalizeStyle({borderColor:t.innerBorderColor})},i.toDisplayString(o.showTime(1,t.modelValue.getMinutes())),5),t.timeType==12?(i.openBlock(),i.createElementBlock("button",{key:0,style:i.normalizeStyle({borderColor:t.innerBorderColor}),class:"fv-TimePicker__input-item"},i.toDisplayString(o.showTime(2,Math.floor(t.modelValue.getHours()/11.9))),5)):i.createCommentVNode("",!0)],4),i.createVNode(i.Transition,{name:"fv-TimePicker__options"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:"fv-TimePicker__options",style:i.normalizeStyle({background:t.optionBackground})},[i.createElementVNode("div",Kb,[i.createElementVNode("div",{class:"fv-TimePicker__options-body-mask",style:i.normalizeStyle({background:t.selectedBackground})},null,4),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.data,(a,d)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:`options-col${d}`,class:"fv-TimePicker__options-body-col"},[i.createElementVNode("div",{class:"fv-TimePicker__options-body-col-up",onClick:c=>o.clickItem(`col${d}`,4)},Zb,8,Qb),i.createElementVNode("div",{class:"fv-TimePicker__options-body-items",ref_for:!0,ref:`col${d}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,(c,u)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"fv-TimePicker__options-body-item",key:`options-col-item${d}-${c}-${u}`,onClick:f=>o.clickItem(`col${d}`,u)},[i.createTextVNode(i.toDisplayString(o.showTime(d,c)),1)],8,ew)),[[l,o.hover]])),128))],512),i.createElementVNode("div",{class:"fv-TimePicker__options-body-col-down",onClick:c=>o.clickItem(`col${d}`,6)},nw,8,tw)])),[[l,o.hoverUpAndDown]])),128))]),i.createElementVNode("div",iw,[i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:"fv-TimePicker__options-bar-accept",onClick:e[1]||(e[1]=(...a)=>o.accept&&o.accept(...a))},rw)),[[l,o.hover]]),i.withDirectives((i.openBlock(),i.createElementBlock("button",{class:"fv-TimePicker__options-bar-cancel",onClick:e[2]||(e[2]=(...a)=>o.cancel&&o.cancel(...a))},ow)),[[l,o.hover]])])],4),[[i.vShow,s.show]])]),_:1})],2)}const qs=j(Z(jb,[["render",sw]])),Pv="",Mv="",zv="",lw={...q},aw={emits:["mousedown","mouseup","touchstart","touchend","mousemove","touchmove"],props:{value:{default:!1},left:{default:5},ringBackground:{default:""},theme:{type:String,default:"global"}},data(){return{thisValue:this.value,moveable:!1}},watch:{value(n){this.thisValue=n}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",n=>{this.moveable&&this.$emit("mousemove",n)}),window.addEventListener("mouseup",n=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",n=>{this.moveable&&this.$emit("touchmove",n)}),window.addEventListener("touchend",n=>{this.moveable&&this.stop()})},forward(n){n.preventDefault(),this.moveable=!0,n.type==="mousedown"?this.$emit("mousedown",n):this.$emit("touchstart",n)},stop(n){this.moveable=!1,n&&(n.type==="mouseup"?this.$emit("mouseup",n):this.$emit("touchend",n))}}};function dw(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:"fv-toggle-ring",style:i.normalizeStyle({left:s.moveable?`${t.left}px`:"",background:t.value?"":t.ringBackground}),onMousedown:e[0]||(e[0]=(...l)=>o.forward&&o.forward(...l)),onMouseup:e[1]||(e[1]=(...l)=>o.stop&&o.stop(...l)),onTouchstart:e[2]||(e[2]=(...l)=>o.forward&&o.forward(...l)),onTouchend:e[3]||(e[3]=(...l)=>o.stop&&o.stop(...l))},null,36)}const cw={name:"FvToggleSwitch",components:{toggleRing:Z(aw,[["render",dw]])},props:{...lw,modelValue:{default:!1},on:{default:"On"},off:{default:"Off"},onForeground:{default:""},offForeground:{default:""},width:{default:40},height:{default:20},borderColor:{default:""},ringBackground:{default:""},switchOnBackground:{default:""},insideContent:{default:!1},disabled:{default:!1}},data(){return{thisValue:this.modelValue,disX:0,mouseMove:!1,currentLeft:0,toggleLeft:""}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.$emit("update:modelValue",n)},currentLeft(){this.toggleLeft=this.computedLeft}},computed:{$theme(){return W(this.$props).theme.value},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},computedLeft(){return!this.$refs.border||this.currentLeft<5?5:this.currentLeft>this.$refs.border.clientWidth-17?this.$refs.border.clientWidth-17:this.currentLeft},finalWidth(){return isNaN(this.width)?this.width:`${this.width}px`},finalHeight(){return isNaN(this.height)?this.height:`${this.height}px`}},methods:{toggleDown(n){this.isDisabled||(n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]),this.disX=n.clientX-this.$refs.toggle.$el.offsetLeft)},toggleMove(n){this.isDisabled||(n.type.indexOf("mouse")<0&&(n=n.targetTouches[0]),this.mouseMove=!0,this.currentLeft=n.clientX-this.disX)},toggleUp(n){n.stopPropagation(),!this.isDisabled&&(this.mouseMove?this.$refs.toggle.$el.offsetLeft+this.$refs.toggle.$el.clientWidth/2>this.$refs.border.clientWidth/2?this.thisValue=!0:this.thisValue=!1:this.thisValue=!this.thisValue,this.mouseMove=!1,this.$emit("toggle",this.thisValue),this.currentLeft=this.$refs.toggle.$el.offsetLeft,this.disX=0)},toggle(n){this.isDisabled||(this.thisValue=!this.thisValue,this.$emit("toggle",this.thisValue))}}};function uw(n,e,t,r,s,o){const l=i.resolveComponent("toggle-ring");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-ToggleSwitch",[o.$theme,o.isDisabled?"disabled":""]]),onMouseup:e[0]||(e[0]=(...a)=>o.toggle&&o.toggle(...a))},[i.createElementVNode("div",{class:i.normalizeClass(["fv-toggle-border",{"toggle-on":s.thisValue}]),ref:"border",style:i.normalizeStyle([{width:o.finalWidth,height:o.finalHeight,background:s.thisValue?t.switchOnBackground:"",borderColor:s.thisValue?"":t.borderColor}])},[i.createVNode(l,{value:s.thisValue,left:s.toggleLeft,ringBackground:t.ringBackground,theme:o.$theme,ref:"toggle",onMousedown:o.toggleDown,onTouchstart:o.toggleDown,onMousemove:o.toggleMove,onTouchmove:o.toggleMove,onMouseup:o.toggleUp,onTouchend:o.toggleUp},null,8,["value","left","ringBackground","theme","onMousedown","onTouchstart","onMousemove","onTouchmove","onMouseup","onTouchend"]),i.withDirectives(i.createElementVNode("p",{class:"fv-toggle-inside-content",style:i.normalizeStyle({left:s.thisValue?"10px":"",right:s.thisValue?"":"10px",color:s.thisValue?"white":t.offForeground})},i.toDisplayString(s.thisValue?t.on:t.off),5),[[i.vShow,t.insideContent]])],6),i.withDirectives(i.createElementVNode("p",{class:"fv-toggle-content",style:i.normalizeStyle({color:s.thisValue?t.onForeground:t.offForeground})},i.toDisplayString(s.thisValue?t.on:t.off),5),[[i.vShow,!t.insideContent]])],34)}const Xs=j(Z(cw,[["render",uw]])),Ov="",Av="",Wv="",fw={...q},hw={name:"TreeViewItem",emits:["require-render","selected-change","set-drag-item","drop-item","handle-click","item-drag-over","item-drag-leave","item-drop"],props:{modelValue:{type:Object,default:()=>({})},parent:{type:Object,default:()=>({})},kIndex:{default:0},deep:{default:0},space:{default:20},expandClickMode:{default:"icon"},backgroundColorHover:{default:""},backgroundColorActive:{default:""},foreground:{default:"rgba(0, 90, 158, 1)"},dropBackgroundColor:{default:"rgba(0, 90, 158, 0.1)"},draggable:{default:!1},checkable:{default:!1},expandedIcon:{default:"ChevronDownSmall"},unexpandedIcon:{default:"ChevronRightSmall"},itemHeight:{default:30},showLoading:{default:!1},expandedIconPosition:{default:"left"},dragItem:{default:()=>({item:null,parent:null})},theme:{type:String,default:"global"}},data(){return{isRender:!1,cssMode:"normal",dropMode:"none",dragMode:!1,timer:{drop:null,delayExpand:null,requireRender:null}}},watch:{},computed:{backgroundColor(){return this.cssMode==="hover"?this.backgroundColorHover:this.cssMode==="active"?this.backgroundColorActive:""}},mounted(){this.requireRenderInit()},methods:{requireRenderInit(){clearInterval(this.timer.requireRender),this.timer.requireRender=setInterval(()=>{if(this.isRender){clearInterval(this.timer.requireRender);return}(!this.parent||this.parent.expanded)&&(this.$emit("require-render",async()=>{for(this.isRender=!0;!this.$el.style;)await new Promise(n=>{setTimeout(()=>{n(1)},30)})}),clearInterval(this.timer.requireRender))},100)},expandClick(n="icon",e){if(this.valueTrigger(this.modelValue.disabled))return;let t=e.target,r=!1;for(;t&&t.tagName&&t.tagName.toLowerCase()!="body";){if(t===this.$refs.expander||t===this.$refs.check.$el){r=!0;break}t=t.parentNode}if(r||(this.$emit("selected-change",this.modelValue),this.modelValue.selected=!0,this.$emit("handle-click",this.modelValue)),t=e.target,n==="icon"&&this.expandClickMode==="icon")e.stopPropagation(),t===this.$refs.expander&&(this.modelValue.expanded=!this.modelValue.expanded);else if(n==="normal"&&this.expandClickMode==="normal"){for(r=!1;t&&t.tagName&&t.tagName.toLowerCase()!="body";){if(t===this.$refs.check.$el){r=!0;break}t=t.parentNode}r||(this.modelValue.expanded=!this.modelValue.expanded)}},switchCSSMode(n){this.valueTrigger(this.modelValue.disabled)||(this.cssMode=n)},handleDrag(n){n.stopPropagation(),this.modelValue.expanded=!1,console.log("expanded"),this.$emit("set-drag-item",{item:this.modelValue,parent:this.parent}),this.dragMode=!0},isURL(n){return!!(n.startsWith("http")||n.startsWith(".")||n.startsWith("/"))},changeChildren(n){if(this.modelValue.children){let e=this.modelValue.children;for(let t=0;t<e.length;t++){let r=e[t];r.selected=n,r.children&&(e=e.concat(r.children))}}},valueTrigger(n){return typeof n=="function"?n():n},dragOver(n){if(n.preventDefault(),n.stopPropagation(),this.valueTrigger(this.modelValue.disabled)||this.dragItem.item===this.modelValue)return;this.$emit("item-drag-over",{drop:this.modelValue,dropParent:this.parent});const{clientY:e}=n,{top:t,height:r}=this.$refs.item.getBoundingClientRect();e-t<r/2?(this.dropMode="before",clearTimeout(this.timer.delayExpand)):this.valueTrigger(this.modelValue.dropInside)===!1?(this.dropMode="before",clearTimeout(this.timer.delayExpand)):(this.dropMode="enter",this.timer.delayExpand=setTimeout(()=>{this.modelValue.expanded=!0},500)),clearTimeout(this.timer.drop)},dragLeave(n){n.preventDefault(),n.stopPropagation(),this.$emit("item-drag-leave",{drop:this.modelValue,dropParent:this.parent}),clearTimeout(this.timer.drop),this.timer.drop=setTimeout(()=>{this.dropMode="leave"},100)},dropItem(n){if(n.preventDefault(),n.stopPropagation(),this.valueTrigger(this.modelValue.disabled)){this.dropMode="leave";return}this.$emit("item-drop",{drop:this.modelValue,dropParent:this.parent}),this.dragItem&&this.$emit("drop-item",{drop:this.modelValue,dropParent:this.parent,drag:this.dragItem.item,dragParent:this.dragItem.parent,mode:this.dropMode}),this.dropMode="leave"}},beforeUnmount(){clearInterval(this.timer.requireRender)}},mw=["draggable"],gw={key:0,class:"fv-tree-view-item-expander",style:{"margin-right":"10px"}},pw={class:"fv-tree-view-item-content"},bw=["src"],ww={key:1,class:"fv-tree-view-item-expander"},yw={key:0,class:"fv-tree-view-item-children"};function kw(n,e,t,r,s,o){const l=i.resolveComponent("fv-check-box"),a=i.resolveComponent("fv-progress-ring"),d=i.resolveComponent("tree-view-item",!0);return s.isRender?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"fv-tree-view-item",draggable:t.draggable,onDragstart:e[21]||(e[21]=(...c)=>o.handleDrag&&o.handleDrag(...c)),onDragend:e[22]||(e[22]=c=>s.dragMode=!1)},[i.createElementVNode("div",{class:i.normalizeClass(["fv-tree-view-item-container",[{selected:t.modelValue.selected,disabled:o.valueTrigger(t.modelValue.disabled)}]]),ref:"item",style:i.normalizeStyle({height:`${t.itemHeight}px`,"background-color":s.dropMode==="enter"?t.dropBackgroundColor:o.backgroundColor,"border-top":s.dropMode==="before"?`${t.itemHeight}px solid transparent`:""}),onDragover:e[3]||(e[3]=(...c)=>o.dragOver&&o.dragOver(...c)),onDragleave:e[4]||(e[4]=(...c)=>o.dragLeave&&o.dragLeave(...c)),onDrop:e[5]||(e[5]=(...c)=>o.dropItem&&o.dropItem(...c)),onClick:e[6]||(e[6]=c=>o.expandClick("normal",c)),onMouseenter:e[7]||(e[7]=c=>o.switchCSSMode("hover")),onMouseleave:e[8]||(e[8]=c=>o.switchCSSMode("normal")),onMousedown:e[9]||(e[9]=c=>o.switchCSSMode("active")),onMouseup:e[10]||(e[10]=c=>o.switchCSSMode("hover")),onTouchstart:e[11]||(e[11]=c=>o.switchCSSMode("active")),onTouchend:e[12]||(e[12]=c=>o.switchCSSMode("normal"))},[i.withDirectives(i.createElementVNode("i",{class:"fv-tree-view-item-choosen-bar",style:i.normalizeStyle({background:t.foreground})},null,4),[[i.vShow,t.modelValue.selected&&!t.checkable]]),i.withDirectives(i.createVNode(l,{modelValue:t.modelValue.selected,"onUpdate:modelValue":e[0]||(e[0]=c=>t.modelValue.selected=c),theme:t.theme,background:t.foreground,ref:"check",style:{"margin-right":"10px"},onClick:o.changeChildren},null,8,["modelValue","theme","background","onClick"]),[[i.vShow,t.checkable]]),i.createElementVNode("div",{class:"fv-tree-view-item-container-main",style:i.normalizeStyle({"padding-left":`${t.deep*t.space}px`})},[t.expandedIconPosition==="left"?(i.openBlock(),i.createElementBlock("div",gw,[!o.valueTrigger(t.modelValue.loading)||!t.showLoading?i.withDirectives((i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(["ms-Icon fv-tree-view-item-expander-icon",[`ms-Icon--${t.modelValue.expanded?t.expandedIcon:t.unexpandedIcon}`]]),ref:"expander",onClick:e[1]||(e[1]=c=>o.expandClick("icon",c))},null,2)),[[i.vShow,t.modelValue.children]]):(i.openBlock(),i.createBlock(a,{key:1,loading:!0,r:10,borderWidth:"2",color:t.foreground,background:"transparent"},null,8,["color"]))])):i.createCommentVNode("",!0),i.createElementVNode("div",pw,[i.renderSlot(n.$slots,"default",{item:t.modelValue,deep:t.deep},()=>[i.withDirectives(i.createElementVNode("i",{class:i.normalizeClass(["ms-Icon fv-tree-view-item-std-icon",`ms-Icon--${o.valueTrigger(t.modelValue.icon)}`])},null,2),[[i.vShow,t.modelValue.icon&&!o.isURL(o.valueTrigger(t.modelValue.icon))]]),t.modelValue.icon&&o.isURL(o.valueTrigger(t.modelValue.icon))?(i.openBlock(),i.createElementBlock("img",{key:0,class:"fv-tree-view-item-std-icon",src:o.valueTrigger(t.modelValue.icon)},null,8,bw)):i.createCommentVNode("",!0),i.createElementVNode("p",{class:"fv-tree-view-item-text",style:i.normalizeStyle({"margin-left":t.modelValue.icon?"10px":""})},i.toDisplayString(o.valueTrigger(t.modelValue.label)),5)])]),t.expandedIconPosition==="right"?(i.openBlock(),i.createElementBlock("div",ww,[!o.valueTrigger(t.modelValue.loading)||!t.showLoading?i.withDirectives((i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(["ms-Icon fv-tree-view-item-expander-icon",[`ms-Icon--${t.modelValue.expanded?t.expandedIcon:t.unexpandedIcon}`]]),ref:"expander",onClick:e[2]||(e[2]=c=>o.expandClick("icon",c))},null,2)),[[i.vShow,t.modelValue.children]]):(i.openBlock(),i.createBlock(a,{key:1,loading:!0,r:10,borderWidth:"2",color:t.foreground,background:"transparent"},null,8,["color"]))])):i.createCommentVNode("",!0)],4)],38),i.createVNode(i.Transition,{name:"fv-tree-view-children-list"},{default:i.withCtx(()=>[t.modelValue.children?i.withDirectives((i.openBlock(),i.createElementBlock("div",yw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.modelValue.children,(c,u)=>(i.openBlock(),i.createBlock(d,{key:`parent: ${t.kIndex}, self: ${u}`,modelValue:c,parent:t.modelValue,kIndex:u,deep:t.deep+1,space:t.space,expandClickMode:t.expandClickMode,draggable:t.draggable,checkable:t.checkable,foreground:t.foreground,expandedIcon:t.expandedIcon,unexpandedIcon:t.unexpandedIcon,backgroundColorHover:t.backgroundColorHover,backgroundColorActive:t.backgroundColorActive,itemHeight:t.itemHeight,expandedIconPosition:t.expandedIconPosition,showLoading:t.showLoading,dragItem:t.dragItem,theme:t.theme,onRequireRender:e[13]||(e[13]=f=>n.$emit("require-render",f)),onSelectedChange:e[14]||(e[14]=f=>n.$emit("selected-change",f)),onSetDragItem:e[15]||(e[15]=f=>n.$emit("set-drag-item",f)),onDropItem:e[16]||(e[16]=f=>n.$emit("drop-item",f)),onHandleClick:e[17]||(e[17]=f=>n.$emit("handle-click",f)),onItemDragOver:e[18]||(e[18]=f=>n.$emit("item-drag-over",f)),onItemDragLeave:e[19]||(e[19]=f=>n.$emit("item-drag-leave",f)),onItemDrop:e[20]||(e[20]=f=>n.$emit("item-drop",f))},{default:i.withCtx(f=>[i.renderSlot(n.$slots,"default",{item:f.item,deep:f.deep})]),_:2},1032,["modelValue","parent","kIndex","deep","space","expandClickMode","draggable","checkable","foreground","expandedIcon","unexpandedIcon","backgroundColorHover","backgroundColorActive","itemHeight","expandedIconPosition","showLoading","dragItem","theme"]))),128))],512)),[[i.vShow,t.modelValue.expanded]]):i.createCommentVNode("",!0)]),_:3})],40,mw)),[[i.vShow,o.valueTrigger(t.modelValue.show)!==!1]]):i.createCommentVNode("",!0)}const vw={name:"FvTreeView",components:{TreeViewItem:Z(hw,[["render",kw]])},emits:["click","drop-item","item-drag-over","item-drag-leave","item-drop"],props:{...fw,modelValue:{type:Array,default:()=>[]},space:{default:20},draggable:{default:!1},checkable:{default:!1},expandedIcon:{default:"ChevronDownSmall"},unexpandedIcon:{default:"ChevronRightSmall"},foreground:{default:"rgba(0, 90, 158, 1)"},backgroundColorHover:{default:""},backgroundColorActive:{default:""},expandClickMode:{default:"normal"},expandedIconPosition:{default:"left"},itemHeight:{default:30},showLoading:{default:!1}},data(){return{thisValue:this.modelValue,dragItem:{item:null,parent:null},queueFunction:[],lock:{isQueueRunning:!0}}},watch:{modelValue(){this.thisValue=this.value},async"queueFunction.length"(){if(this.queueFunction.length!==0&&!!this.lock.isQueueRunning){for(this.lock.isQueueRunning=!1;this.queueFunction.length>0;){let n=this.queueFunction.shift();try{await n()}catch(e){console.log(e)}}this.lock.isQueueRunning=!0}}},computed:{$theme(){return W(this.$props).theme.value}},methods:{clearSelected(n){let e=this.thisValue;for(let t=0;t<e.length;t++){let r=e[t];r!==n&&(r.selected=!1),r.children&&(e=e.concat(r.children))}},pushRender(n){this.queueFunction.push(n)}}};function _w(n,e,t,r,s,o){const l=i.resolveComponent("tree-view-item");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-TreeView",[o.$theme]])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.thisValue,(a,d)=>(i.openBlock(),i.createBlock(l,{key:`parent: root, self: ${d}`,modelValue:a,parent:null,kIndex:d,deep:0,space:t.space,draggable:t.draggable,checkable:t.checkable,expandClickMode:t.expandClickMode,foreground:t.foreground,expandedIcon:t.expandedIcon,unexpandedIcon:t.unexpandedIcon,backgroundColorHover:t.backgroundColorHover,backgroundColorActive:t.backgroundColorActive,itemHeight:t.itemHeight,expandedIconPosition:t.expandedIconPosition,showLoading:t.showLoading,dragItem:s.dragItem,theme:o.$theme,onRequireRender:o.pushRender,onSelectedChange:o.clearSelected,onSetDragItem:e[0]||(e[0]=c=>s.dragItem=c),onDropItem:e[1]||(e[1]=c=>n.$emit("drop-item",{root:s.thisValue,...c})),onHandleClick:e[2]||(e[2]=c=>n.$emit("click",c)),onItemDragOver:e[3]||(e[3]=c=>n.$emit("item-drag-over",{root:s.thisValue,...c})),onItemDragLeave:e[4]||(e[4]=c=>n.$emit("item-drag-leave",{root:s.thisValue,...c})),onItemDrop:e[5]||(e[5]=c=>n.$emit("item-drop",{root:s.thisValue,...c}))},{default:i.withCtx(c=>[i.renderSlot(n.$slots,"default",{item:c.item,deep:c.deep})]),_:2},1032,["modelValue","kIndex","space","draggable","checkable","expandClickMode","foreground","expandedIcon","unexpandedIcon","backgroundColorHover","backgroundColorActive","itemHeight","expandedIconPosition","showLoading","dragItem","theme","onRequireRender","onSelectedChange"]))),128))],2)}const js=j(Z(vw,[["render",_w]])),Uv="",Yv="",qv="",Cw={...q},Sw={name:"FvVerifyBox",emits:["update:modelValue","confirm"],props:{...Cw,modelValue:{default:""},length:{default:4},inputmode:{default:"numeric"},underline:{default:!1},background:{default:""},borderWidth:{default:1},borderColor:{default:""},focusBorderColor:{default:""},fontSize:{default:18},fontWeight:{default:"bold"},foreground:{default:""},borderRadius:{default:3},isBoxShadow:{default:!1},revealBorder:{default:!1},disabled:{default:!1}},data(){return{thisValue:[]}},watch:{modelValue(){this.valueFormat()},thisValue:{deep:!0,handler(n){this.$emit("update:modelValue",n.join(""))}}},computed:{isUnderline(){return this.underline.toString()=="true"||this.underline=="underline"||this.underline===""},isDisabled(){return this.disabled.toString()=="true"||this.disabled=="disabled"||this.disabled===""},$theme(){return W(this.$props).theme.value}},mounted(){this.valueFormat()},methods:{valueFormat(){this.thisValue=[];for(let n=0;n<this.length;n++)this.modelValue[n]?this.thisValue.push(this.modelValue[n]):this.thisValue.push("")},handleKeyDown(n,e){if(n.preventDefault(),console.log(n),n.key.length===1&&!n.ctrlKey&&(this.thisValue[e]=n.key),n.keyCode===8){this.thisValue[e]="",e>0&&this.$refs[`t${e-1}`][0].focus();return}if(n.keyCode===86&&n.ctrlKey){navigator.clipboard.readText().then(t=>{for(let r=0;r<this.length;r++)this.thisValue[r]=t[r]});return}n.keyCode===13&&this.$emit("confirm",this.thisValue.join("")),e<this.length-1&&(n.key.length===1||n.keyCode===9)&&this.$refs[`t${e+1}`][0].focus(),e===this.length-1&&this.$emit("confirm",this.thisValue.join(""))},handlePaste(n){console.log(n);let e=n.clipboardData.getData("text/plain");for(let t=0;t<this.length;t++)this.thisValue[t]=e[t]}}};function xw(n,e,t,r,s,o){const l=i.resolveComponent("fv-text-box");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-VerifyBox",[o.$theme]])},[s.thisValue.length===t.length?(i.openBlock(),i.createElementBlock("div",{key:0,class:"fv-verify-container",onPaste:e[0]||(e[0]=a=>o.handlePaste(a))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.length,(a,d)=>(i.openBlock(),i.createBlock(l,{modelValue:s.thisValue[d],inputmode:t.inputmode,class:"fv-verify-unit",theme:n.theme,key:d,disabled:o.isDisabled,maxlength:1,underline:t.underline,background:t.background,"border-width":t.borderWidth,"border-color":t.borderColor,"focus-border-color":t.focusBorderColor,"font-size":t.fontSize,"font-weight":t.fontWeight,foreground:t.foreground,textAlign:"center","border-radius":t.borderRadius,"is-box-shadow":t.isBoxShadow,"reveal-border":t.revealBorder,ref_for:!0,ref:`t${d}`,onKeydown:c=>o.handleKeyDown(c,d)},null,8,["modelValue","inputmode","theme","disabled","underline","background","border-width","border-color","focus-border-color","font-size","font-weight","foreground","border-radius","is-box-shadow","reveal-border","onKeydown"]))),128))],32)):i.createCommentVNode("",!0)],2)}const Js=j(Z(Sw,[["render",xw]])),jv="",Jv="",Kv="",Vw={...q},Ew={emits:["mousedown","mouseup","touchstart","touchend","mousemove","touchmove"],props:{type:{type:String,default:"horizontal"},theme:{type:String,default:"global"}},data(){return{moveable:!1}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.Init()},methods:{Init(){window.addEventListener("mousemove",n=>{this.moveable&&this.$emit("mousemove",n)}),window.addEventListener("mouseup",n=>{this.moveable&&this.stop()}),window.addEventListener("touchmove",n=>{this.moveable&&this.$emit("touchmove",n)}),window.addEventListener("touchend",n=>{this.moveable&&this.stop()})},forward(n){n.preventDefault(),this.moveable=!0,n.type==="mousedown"?this.$emit("mousedown",n):this.$emit("touchstart",n)},stop(n){this.moveable=!1,n&&(n.type==="mouseup"?this.$emit("mouseup",n):this.$emit("touchend",n))}}},Tw=[i.createElementVNode("i",null,null,-1)];function Bw(n,e,t,r,s,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-web-window-spliter",[{horizontal:t.type==="horizontal",vertical:t.type==="vertical",both:t.type==="both"}]]),onMousedown:e[0]||(e[0]=(...l)=>o.forward&&o.forward(...l)),onMouseup:e[1]||(e[1]=(...l)=>o.stop&&o.stop(...l)),onTouchstart:e[2]||(e[2]=(...l)=>o.forward&&o.forward(...l)),onTouchend:e[3]||(e[3]=(...l)=>o.stop&&o.stop(...l))},Tw,34)}const Iw={name:"FvWebWindow",components:{spliter:Z(Ew,[["render",Bw]])},props:{...Vw,modelValue:{default:!0},title:{type:String,default:"WebWindow"},left:{default:0},top:{default:0},refreshPos:{default:!1},isResize:{default:!1},isAcrylic:{default:!1}},data(){return{thisValue:this.modelValue,moveable:!1,freezeTransition:!0,disX:0,disY:0,disWidth:0,disHeight:0,currentLeft:"0px",currentTop:"0px",currentWidth:0,currentHeight:0,isInit:!0}},watch:{modelValue(n){this.thisValue=n},thisValue(n){this.refreshPos&&n&&this.posInit(),this.$emit("update:modelValue",n)},left(n){this.currentLeft=`${n}px`},top(n){this.currentTop=`${n}px`}},computed:{$theme(){return W(this.$props).theme.value}},mounted(){this.Init(),this.eventInit()},methods:{Init(){window.addEventListener("mousemove",n=>{this.moveable&&(this.currentLeft=`${n.clientX-this.disX}px`,this.currentTop=`${n.clientY-this.disY}px`)}),window.addEventListener("touchmove",n=>{n=n.targetTouches[0],this.moveable&&(this.currentLeft=`${n.clientX-this.disX}px`,this.currentTop=`${n.clientY-this.disY}px`)}),window.addEventListener("mouseup",n=>{this.moveable&&this.stop()}),window.addEventListener("touchup",n=>{this.moveable&&this.stop()})},posInit(){let n=this.$el.clientWidth,e=this.$el.clientHeight;this.left==0?this.currentLeft=`${window.innerWidth/2-n/2}px`:this.currentLeft=`${this.left}px`,this.top==0?this.currentTop=`${window.innerHeight/2-e/2}px`:this.currentTop=`${this.top}px`},eventInit(){let n=this.$el;new ResizeObserver(()=>{(!this.isResize||this.isInit)&&this.posInit(),this.isInit&&(this.currentWidth=this.$el.clientWidth,this.currentHeight=this.$el.clientHeight,this.isInit=!1)}).observe(n)},forward(n){this.moveable=!0,this.freezeTransition=!0,n.preventDefault();let{clientX:e,clientY:t}=n.targetTouches?n.targetTouches[0]:n;this.disX=e-this.$el.getBoundingClientRect().left,this.disY=t-this.$el.getBoundingClientRect().top},stop(){this.moveable=!1,this.freezeTransition=!1,this.$el.getBoundingClientRect().left<0&&(this.currentLeft="0px"),this.$el.getBoundingClientRect().top<0&&(this.currentTop="0px"),this.$el.getBoundingClientRect().left+this.$el.clientWidth>window.innerWidth&&(this.currentLeft=`${window.innerWidth-this.$el.clientWidth}px`),this.$el.getBoundingClientRect().top+this.$el.clientHeight>window.innerHeight&&(this.currentTop=`${window.innerHeight-this.$el.clientHeight}px`),setTimeout(()=>{this.freezeTransition=!0},300)},resizeStart(n,e="h"){let{clientX:t,clientY:r}=n.targetTouches?n.targetTouches[0]:n;e!=="v"&&(this.disWidth=t-this.$el.getBoundingClientRect().right),e!=="h"&&(this.disHeight=r-this.$el.getBoundingClientRect().bottom)},resizeMove(n,e="h"){let{clientX:t,clientY:r}=n.targetTouches?n.targetTouches[0]:n;e!=="v"&&(this.currentWidth=t-this.$el.getBoundingClientRect().left+this.disWidth+15),e!=="h"&&(this.currentHeight=r-this.$el.getBoundingClientRect().top+this.disHeight+15)},stopPropagation(n){n.stopPropagation()},close(){this.$emit("close"),this.thisValue=!1}}},Dw={style:{"margin-left":"10px","user-select":"none"}},$w=[i.createElementVNode("i",{class:"ms-Icon ms-Icon--Cancel"},null,-1)];function Nw(n,e,t,r,s,o){const l=i.resolveComponent("spliter");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["fv-WebWindow",[o.$theme,{"static-transition":!s.freezeTransition,"enabled-resize":t.isResize,dark:n.theme=="dark","is-acrylic":t.isAcrylic}]]),style:i.normalizeStyle({left:s.currentLeft,top:s.currentTop,width:s.currentWidth==0?"":`${s.currentWidth}px`,height:s.currentHeight==0?"":`${s.currentHeight}px`}),ref:"block"},[i.createElementVNode("div",{draggable:"false",class:"title-bar",onMousedown:e[2]||(e[2]=(...a)=>o.forward&&o.forward(...a)),onMouseup:e[3]||(e[3]=(...a)=>o.stop&&o.stop(...a)),onTouchstart:e[4]||(e[4]=(...a)=>o.forward&&o.forward(...a)),onTouchend:e[5]||(e[5]=(...a)=>o.stop&&o.stop(...a))},[i.createElementVNode("p",Dw,i.toDisplayString(t.title),1),i.createElementVNode("button",{class:"control-btn shut-down",onMousedown:e[0]||(e[0]=(...a)=>o.stopPropagation&&o.stopPropagation(...a)),onClick:e[1]||(e[1]=(...a)=>o.close&&o.close(...a))},$w,32)],32),i.renderSlot(n.$slots,"default"),t.isResize?(i.openBlock(),i.createBlock(l,{key:0,onMousedown:o.resizeStart,onTouchstart:o.resizeStart,onMousemove:o.resizeMove,onTouchmove:o.resizeMove},null,8,["onMousedown","onTouchstart","onMousemove","onTouchmove"])):i.createCommentVNode("",!0),t.isResize?(i.openBlock(),i.createBlock(l,{key:1,type:"vertical",onMousedown:e[6]||(e[6]=a=>o.resizeStart(a,"v")),onTouchstart:e[7]||(e[7]=a=>o.resizeStart(a,"v")),onMousemove:e[8]||(e[8]=a=>o.resizeMove(a,"v")),onTouchmove:e[9]||(e[9]=a=>o.resizeMove(a,"v"))})):i.createCommentVNode("",!0),t.isResize?(i.openBlock(),i.createBlock(l,{key:2,type:"both",onMousedown:e[10]||(e[10]=a=>o.resizeStart(a,"both")),onTouchstart:e[11]||(e[11]=a=>o.resizeStart(a,"both")),onMousemove:e[12]||(e[12]=a=>o.resizeMove(a,"both")),onTouchmove:e[13]||(e[13]=a=>o.resizeMove(a,"both"))})):i.createCommentVNode("",!0)],6)),[[i.vShow,s.thisValue]])}const Ks=j(Z(Iw,[["render",Nw]])),n_="",Lw={install(n){n.config.globalProperties.$SDate=ie,n.config.globalProperties.$SUtility=ci,n.config.globalProperties.$FvConfig=br()}},Pw=[kr,_r,Cr,Sr,xr,Vr,Er,Tr,Br,Ir,Dr,$r,Nr,Lr,Pr,Mr,zr,Rr,Fr,Ar,Wr,Hr,Gr,Xr,rs,os,cs,us,fs,hs,ms,gs,ps,bs,ws,ys,ks,vs,_s,Cs,Ss,xs,Vs,Fs,Gs,Us,Ys,qs,Xs,js,Js,Ks],Qs={install(n,e){const t=Vl();n.use(t),n.use(Lw);for(const r of Pw)n.component(r.name,r)}};O.FvAnimatedIcon=kr,O.FvBadge=_r,O.FvBreadcrumb=Cr,O.FvButton=Sr,O.FvCalendarDatePicker=xr,O.FvCalendarView=Vr,O.FvCallout=Er,O.FvCheckBox=Tr,O.FvCollapse=Br,O.FvColorPicker=Ir,O.FvCombobox=Dr,O.FvCommandBar=$r,O.FvComponentPlugins=Qs,O.FvDatePicker=Nr,O.FvDetailsList=Lr,O.FvDrawer=Pr,O.FvDropDown=Mr,O.FvExpander=zr,O.FvFlipView=Rr,O.FvIconElement=Fr,O.FvImage=Ar,O.FvImg=Wr,O.FvImgBox=Hr,O.FvInfiniteScrollView=Gr,O.FvInfoBox=Xr,O.FvListView=rs,O.FvMenuFlyout=os,O.FvMessageBar=cs,O.FvNavigationPanel=us,O.FvNavigationView=fs,O.FvPagination=hs,O.FvPanel=ms,O.FvPersona=gs,O.FvPivot=ps,O.FvProgressBar=bs,O.FvProgressRing=ws,O.FvRadio=ys,O.FvRadioGroup=ks,O.FvRatingControl=vs,O.FvRevealContainer=_s,O.FvScrollStory=Cs,O.FvSearchBox=Ss,O.FvShimmer=xs,O.FvSlider=Vs,O.FvSwipeControl=Fs,O.FvTag=Gs,O.FvTextBox=Us,O.FvTextField=Ys,O.FvTimePicker=qs,O.FvToggleSwitch=Xs,O.FvTreeView=js,O.FvVerifyBox=Js,O.FvWebWindow=Ks,O.createInfoBox=Yr,O.createMessageBar=ls,O.createSwiftWarning=as,O.default=Qs,O.infoBoxPlugin=qr,O.messageBarPlugin=ds,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|