diff --git a/dist/assets/index-CGIEdu3F.js b/dist/assets/index-Cse9kYPG.js similarity index 84% rename from dist/assets/index-CGIEdu3F.js rename to dist/assets/index-Cse9kYPG.js index e440a02..5eeb744 100644 --- a/dist/assets/index-CGIEdu3F.js +++ b/dist/assets/index-Cse9kYPG.js @@ -535,29 +535,76 @@ top: 0; bottom: 0; border-radius: inherit; -`),zC=P({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(e){ex(`-base-wave`,RC,j(e,`clsPrefix`));let t=k(null),n=k(!1),r=null;return Wr(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),kn(()=>{var e;(e=t.value)==null||e.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){let{clsPrefix:e}=this;return V(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),BC={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},VC={name:`Alert`,common:Q,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return Object.assign(Object.assign({},BC),{fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${J(p,{alpha:.35})}`,colorInfo:J(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${J(m,{alpha:.35})}`,colorSuccess:J(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${J(h,{alpha:.35})}`,colorWarning:J(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${J(g,{alpha:.35})}`,colorError:J(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},{cubicBezierEaseInOut:HC,cubicBezierEaseOut:UC,cubicBezierEaseIn:WC}=Yb;function GC({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[H(`&.fade-in-height-expand-transition-${l}-from, +`),zC=P({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(e){ex(`-base-wave`,RC,j(e,`clsPrefix`));let t=k(null),n=k(!1),r=null;return Wr(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),kn(()=>{var e;(e=t.value)==null||e.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){let{clsPrefix:e}=this;return V(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),BC={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},VC={name:`Alert`,common:Q,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return Object.assign(Object.assign({},BC),{fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${J(p,{alpha:.35})}`,colorInfo:J(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${J(m,{alpha:.35})}`,colorSuccess:J(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${J(h,{alpha:.35})}`,colorWarning:J(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${J(g,{alpha:.35})}`,colorError:J(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}};function HC(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:s,textColor2:c,closeColorHover:l,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,infoColor:m,successColor:h,warningColor:g,errorColor:_,fontSize:v}=e;return Object.assign(Object.assign({},BC),{fontSize:v,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:s,iconColor:c,contentTextColor:c,closeBorderRadius:n,closeColorHover:l,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,borderInfo:`1px solid ${q(i,J(m,{alpha:.25}))}`,colorInfo:q(i,J(m,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:m,contentTextColorInfo:c,closeColorHoverInfo:l,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${q(i,J(h,{alpha:.25}))}`,colorSuccess:q(i,J(h,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:c,closeColorHoverSuccess:l,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${q(i,J(g,{alpha:.33}))}`,colorWarning:q(i,J(g,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:g,contentTextColorWarning:c,closeColorHoverWarning:l,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:p,borderError:`1px solid ${q(i,J(_,{alpha:.25}))}`,colorError:q(i,J(_,{alpha:.08})),titleTextColorError:s,iconColorError:_,contentTextColorError:c,closeColorHoverError:l,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:p})}var UC={name:`Alert`,common:eS,self:HC},{cubicBezierEaseInOut:WC,cubicBezierEaseOut:GC,cubicBezierEaseIn:KC}=Yb;function qC({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[H(`&.fade-in-height-expand-transition-${l}-from, &.fade-in-height-expand-transition-${c}-to`,Object.assign(Object.assign({},a),{opacity:1})),H(`&.fade-in-height-expand-transition-${l}-to, &.fade-in-height-expand-transition-${c}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:`0 !important`,marginBottom:`0 !important`,paddingTop:i?`0 !important`:void 0,paddingBottom:i?`0 !important`:void 0})),H(`&.fade-in-height-expand-transition-${l}-active`,` overflow: ${e}; transition: - max-height ${t} ${HC} ${r}, - opacity ${t} ${UC} ${r}, - margin-top ${t} ${HC} ${r}, - margin-bottom ${t} ${HC} ${r}, - padding-top ${t} ${HC} ${r}, - padding-bottom ${t} ${HC} ${r} + max-height ${t} ${WC} ${r}, + opacity ${t} ${GC} ${r}, + margin-top ${t} ${WC} ${r}, + margin-bottom ${t} ${WC} ${r}, + padding-top ${t} ${WC} ${r}, + padding-bottom ${t} ${WC} ${r} ${n?`,${n}`:``} `),H(`&.fade-in-height-expand-transition-${c}-active`,` overflow: ${e}; transition: - max-height ${t} ${HC}, - opacity ${t} ${WC}, - margin-top ${t} ${HC}, - margin-bottom ${t} ${HC}, - padding-top ${t} ${HC}, - padding-bottom ${t} ${HC} + max-height ${t} ${WC}, + opacity ${t} ${KC}, + margin-top ${t} ${WC}, + margin-bottom ${t} ${WC}, + padding-top ${t} ${WC}, + padding-bottom ${t} ${WC} ${n?`,${n}`:``} - `)]}var KC={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function qC(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return Object.assign(Object.assign({},KC),{borderRadius:t,railColor:n,railColorActive:r,linkColor:J(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r})}var JC={name:`Anchor`,common:Q,self:qC},YC=wu&&`chrome`in window;wu&&navigator.userAgent.includes(`Firefox`);var XC=wu&&navigator.userAgent.includes(`Safari`)&&!YC,ZC={paddingTiny:`0 8px`,paddingSmall:`0 10px`,paddingMedium:`0 12px`,paddingLarge:`0 14px`,clearSize:`16px`};function QC(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:ee,iconColorPressed:te,fontWeight:ne}=e;return Object.assign(Object.assign({},ZC),{fontWeight:ne,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorDisabled:s,colorFocus:J(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${J(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:J(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${J(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:J(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:ee,iconColorPressed:te,suffixTextColor:t})}var $C=tx({name:`Input`,common:Q,peers:{Scrollbar:iS},self:QC});function ew(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,borderColor:c,warningColor:l,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:m,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,actionColor:C,clearColor:w,clearColorHover:T,clearColorPressed:E,placeholderColor:D,placeholderColorDisabled:O,iconColor:ee,iconColorDisabled:te,iconColorHover:ne,iconColorPressed:re,fontWeight:ie}=e;return Object.assign(Object.assign({},ZC),{fontWeight:ie,countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,lineHeight:m,lineHeightTextarea:m,borderRadius:p,iconSize:`16px`,groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:i,placeholderColor:D,placeholderColorDisabled:O,color:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${J(i,{alpha:.2})}`,loadingColor:i,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${J(d,{alpha:.2})}`,caretColorError:d,clearColor:w,clearColorHover:T,clearColorPressed:E,iconColor:ee,iconColorDisabled:te,iconColorHover:ne,iconColorPressed:re,suffixTextColor:t})}var tw=tx({name:`Input`,common:eS,peers:{Scrollbar:rS},self:ew}),nw=mu(`n-input`),rw=U(`input`,` + `)]}var JC=U(`alert`,` + line-height: var(--n-line-height); + border-radius: var(--n-border-radius); + position: relative; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-color); + text-align: start; + word-break: break-word; +`,[W(`border`,` + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + transition: border-color .3s var(--n-bezier); + border: var(--n-border); + pointer-events: none; + `),G(`closable`,[U(`alert-body`,[W(`title`,` + padding-right: 24px; + `)])]),W(`icon`,{color:`var(--n-icon-color)`}),U(`alert-body`,{padding:`var(--n-padding)`},[W(`title`,{color:`var(--n-title-text-color)`}),W(`content`,{color:`var(--n-content-text-color)`})]),qC({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),W(`icon`,` + position: absolute; + left: 0; + top: 0; + align-items: center; + justify-content: center; + display: flex; + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + margin: var(--n-icon-margin); + `),W(`close`,` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + `),G(`show-icon`,[U(`alert-body`,{paddingLeft:`calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))`})]),G(`right-adjust`,[U(`alert-body`,{paddingRight:`calc(var(--n-close-size) + var(--n-padding) + 2px)`})]),U(`alert-body`,` + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + `,[W(`title`,` + transition: color .3s var(--n-bezier); + font-size: 16px; + line-height: 19px; + font-weight: var(--n-title-font-weight); + `,[H(`& +`,[W(`content`,{marginTop:`9px`})])]),W(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),W(`icon`,{transition:`color .3s var(--n-bezier)`})]),YC=P({name:`Alert`,inheritAttrs:!1,props:Object.assign(Object.assign({},X.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:`default`},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=bp(e),a=X(`Alert`,`-alert`,JC,UC,e,t),o=Jb(`Alert`,i,t),s=B(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=a.value,{fontSize:r,borderRadius:i,titleFontWeight:o,lineHeight:s,iconSize:c,iconMargin:l,iconMarginRtl:u,closeIconSize:d,closeBorderRadius:f,closeSize:p,closeMargin:m,closeMarginRtl:h,padding:g}=n,{type:_}=e,{left:v,right:y}=nl(l);return{"--n-bezier":t,"--n-color":n[K(`color`,_)],"--n-close-icon-size":d,"--n-close-border-radius":f,"--n-close-color-hover":n[K(`closeColorHover`,_)],"--n-close-color-pressed":n[K(`closeColorPressed`,_)],"--n-close-icon-color":n[K(`closeIconColor`,_)],"--n-close-icon-color-hover":n[K(`closeIconColorHover`,_)],"--n-close-icon-color-pressed":n[K(`closeIconColorPressed`,_)],"--n-icon-color":n[K(`iconColor`,_)],"--n-border":n[K(`border`,_)],"--n-title-text-color":n[K(`titleTextColor`,_)],"--n-content-text-color":n[K(`contentTextColor`,_)],"--n-line-height":s,"--n-border-radius":i,"--n-font-size":r,"--n-title-font-weight":o,"--n-icon-size":c,"--n-icon-margin":l,"--n-icon-margin-rtl":u,"--n-close-size":p,"--n-close-margin":m,"--n-close-margin-rtl":h,"--n-padding":g,"--n-icon-margin-left":v,"--n-icon-margin-right":y}}),c=r?xp(`alert`,B(()=>e.type[0]),s,e):void 0,l=k(!0),u=()=>{let{onAfterLeave:t,onAfterHide:n}=e;t&&t(),n&&n()};return{rtlEnabled:o,mergedClsPrefix:t,mergedBordered:n,visible:l,handleCloseClick:()=>{Promise.resolve(e.onClose?.call(e)).then(e=>{e!==!1&&(l.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:a,cssVars:r?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender}},render(){var e;return(e=this.onRender)==null||e.call(this),V(Lx,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:e,$slots:t}=this,n={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?V(`div`,Object.assign({},Fa(this.$attrs,n)),this.closable&&V(Ix,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&V(`div`,{class:`${e}-alert__border`}),this.showIcon&&V(`div`,{class:`${e}-alert__icon`,"aria-hidden":`true`},mp(t.icon,()=>[V(rx,{clsPrefix:e},{default:()=>{switch(this.type){case`success`:return V(Ex,null);case`info`:return V(bx,null);case`warning`:return V(Ox,null);case`error`:return V(_x,null);default:return null}}})])),V(`div`,{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},gp(t.header,t=>{let n=t||this.title;return n?V(`div`,{class:`${e}-alert-body__title`},n):null}),t.default&&V(`div`,{class:`${e}-alert-body__content`},t))):null}})}}),XC={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function ZC(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return Object.assign(Object.assign({},XC),{borderRadius:t,railColor:n,railColorActive:r,linkColor:J(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r})}var QC={name:`Anchor`,common:Q,self:ZC},$C=wu&&`chrome`in window;wu&&navigator.userAgent.includes(`Firefox`);var ew=wu&&navigator.userAgent.includes(`Safari`)&&!$C,tw={paddingTiny:`0 8px`,paddingSmall:`0 10px`,paddingMedium:`0 12px`,paddingLarge:`0 14px`,clearSize:`16px`};function nw(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:ee,iconColorPressed:te,fontWeight:ne}=e;return Object.assign(Object.assign({},tw),{fontWeight:ne,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorDisabled:s,colorFocus:J(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${J(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:J(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${J(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:J(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${J(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:ee,iconColorPressed:te,suffixTextColor:t})}var rw=tx({name:`Input`,common:Q,peers:{Scrollbar:iS},self:nw});function iw(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,borderColor:c,warningColor:l,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:m,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,actionColor:C,clearColor:w,clearColorHover:T,clearColorPressed:E,placeholderColor:D,placeholderColorDisabled:O,iconColor:ee,iconColorDisabled:te,iconColorHover:ne,iconColorPressed:re,fontWeight:ie}=e;return Object.assign(Object.assign({},tw),{fontWeight:ie,countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,lineHeight:m,lineHeightTextarea:m,borderRadius:p,iconSize:`16px`,groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:i,placeholderColor:D,placeholderColorDisabled:O,color:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${J(i,{alpha:.2})}`,loadingColor:i,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${J(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${J(d,{alpha:.2})}`,caretColorError:d,clearColor:w,clearColorHover:T,clearColorPressed:E,iconColor:ee,iconColorDisabled:te,iconColorHover:ne,iconColorPressed:re,suffixTextColor:t})}var aw=tx({name:`Input`,common:eS,peers:{Scrollbar:rS},self:iw}),ow=mu(`n-input`),sw=U(`input`,` max-width: 100%; cursor: text; line-height: 1.5; @@ -788,9 +835,9 @@ `,[W(`state-border`,` box-shadow: var(--n-box-shadow-focus-${e}); border: var(--n-border-focus-${e}); - `)])])]))]),iw=U(`input`,[G(`disabled`,[W(`input-el, textarea-el`,` + `)])])]))]),cw=U(`input`,[G(`disabled`,[W(`input-el, textarea-el`,` -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]);function aw(e){let t=0;for(let n of e)t++;return t}function ow(e){return e===``||e==null}function sw(e){let t=k(null);function n(){let{value:n}=e;if(!n?.focus){i();return}let{selectionStart:r,selectionEnd:a,value:o}=n;if(r==null||a==null){i();return}t.value={start:r,end:a,beforeText:o.slice(0,r),afterText:o.slice(a)}}function r(){var n;let{value:r}=t,{value:i}=e;if(!r||!i)return;let{value:a}=i,{start:o,beforeText:s,afterText:c}=r,l=a.length;if(a.endsWith(c))l=a.length-c.length;else if(a.startsWith(s))l=s.length;else{let e=s[o-1],t=a.indexOf(e,o-1);t!==-1&&(l=t+1)}(n=i.setSelectionRange)==null||n.call(i,l,l)}function i(){t.value=null}return Jn(e,i),{recordCursor:n,restoreCursor:r}}var cw=P({name:`InputWordCount`,setup(e,{slots:t}){let{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:i,countGraphemesRef:a}=N(nw),o=B(()=>{let{value:e}=n;return e===null||Array.isArray(e)?0:(a.value||aw)(e)});return()=>{let{value:e}=r,{value:a}=n;return V(`span`,{class:`${i.value}-input-word-count`},hp(t.default,{value:a===null||Array.isArray(a)?``:a},()=>[e===void 0?o.value:`${o.value} / ${e}`]))}}}),lw=P({name:`Input`,props:Object.assign(Object.assign({},X.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:`text`},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:i,mergedComponentPropsRef:a}=bp(e),o=X(`Input`,`-input`,rw,tw,e,t);XC&&ex(`-input-safari`,iw,t);let s=k(null),c=k(null),l=k(null),u=k(null),d=k(null),f=k(null),p=k(null),m=sw(p),h=k(null),{localeRef:g}=Kb(`Input`),_=k(e.defaultValue),v=lu(j(e,`value`),_),y=Cp(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:a?.value?.Input?.size||`medium`}}),{mergedSizeRef:b,mergedDisabledRef:x,mergedStatusRef:S}=y,C=k(!1),w=k(!1),T=k(!1),E=k(!1),D=null,O=B(()=>{let{placeholder:t,pair:n}=e;return n?Array.isArray(t)?t:t===void 0?[``,``]:[t,t]:t===void 0?[g.value.placeholder]:[t]}),ee=B(()=>{let{value:e}=T,{value:t}=v,{value:n}=O;return!e&&(ow(t)||Array.isArray(t)&&ow(t[0]))&&n[0]}),te=B(()=>{let{value:e}=T,{value:t}=v,{value:n}=O;return!e&&n[1]&&(ow(t)||Array.isArray(t)&&ow(t[1]))}),ne=ql(()=>e.internalForceFocus||C.value),re=ql(()=>{if(x.value||e.readonly||!e.clearable||!ne.value&&!w.value)return!1;let{value:t}=v,{value:n}=ne;return e.pair?!!(Array.isArray(t)&&(t[0]||t[1]))&&(w.value||n):!!t&&(w.value||n)}),ie=B(()=>{let{showPasswordOn:t}=e;if(t)return t;if(e.showPasswordToggle)return`click`}),ae=k(!1),oe=B(()=>{let{textDecoration:t}=e;return t?Array.isArray(t)?t.map(e=>({textDecoration:e})):[{textDecoration:t}]:[``,``]}),se=k(void 0),ce=()=>{if(e.type===`textarea`){let{autosize:t}=e;if(t&&(se.value=h.value?.$el?.offsetWidth),!c.value||typeof t==`boolean`)return;let{paddingTop:n,paddingBottom:r,lineHeight:i}=window.getComputedStyle(c.value),a=Number(n.slice(0,-2)),o=Number(r.slice(0,-2)),s=Number(i.slice(0,-2)),{value:u}=l;if(!u)return;if(t.minRows){let e=Math.max(t.minRows,1),n=`${a+o+s*e}px`;u.style.minHeight=n}if(t.maxRows){let e=`${a+o+s*t.maxRows}px`;u.style.maxHeight=e}}},le=B(()=>{let{maxlength:t}=e;return t===void 0?void 0:Number(t)});Vr(()=>{let{value:e}=v;Array.isArray(e)||Ze(e)});let ue=Va().proxy;function de(t,n){let{onUpdateValue:r,"onUpdate:value":i,onInput:a}=e,{nTriggerFormInput:o}=y;r&&Y(r,t,n),i&&Y(i,t,n),a&&Y(a,t,n),_.value=t,o()}function fe(t,n){let{onChange:r}=e,{nTriggerFormChange:i}=y;r&&Y(r,t,n),_.value=t,i()}function pe(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=y;n&&Y(n,t),r()}function me(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=y;n&&Y(n,t),r()}function he(t){let{onClear:n}=e;n&&Y(n,t)}function ge(t){let{onInputBlur:n}=e;n&&Y(n,t)}function _e(t){let{onInputFocus:n}=e;n&&Y(n,t)}function ve(){let{onDeactivate:t}=e;t&&Y(t)}function ye(){let{onActivate:t}=e;t&&Y(t)}function be(t){let{onClick:n}=e;n&&Y(n,t)}function xe(t){let{onWrapperFocus:n}=e;n&&Y(n,t)}function Se(t){let{onWrapperBlur:n}=e;n&&Y(n,t)}function Ce(){T.value=!0}function we(e){T.value=!1,e.target===f.value?Te(e,1):Te(e,0)}function Te(t,n=0,r=`input`){let i=t.target.value;if(Ze(i),t instanceof InputEvent&&!t.isComposing&&(T.value=!1),e.type===`textarea`){let{value:e}=h;e&&e.syncUnifiedContainer()}if(D=i,T.value)return;m.recordCursor();let a=Ee(i);if(a)if(!e.pair)r===`input`?de(i,{source:n}):fe(i,{source:n});else{let{value:e}=v;e=Array.isArray(e)?[e[0],e[1]]:[``,``],e[n]=i,r===`input`?de(e,{source:n}):fe(e,{source:n})}ue.$forceUpdate(),a||kn(m.restoreCursor)}function Ee(t){let{countGraphemes:n,maxlength:r,minlength:i}=e;if(n){let e;if(r!==void 0&&(e===void 0&&(e=n(t)),e>Number(r))||i!==void 0&&(e===void 0&&(e=n(t)),e{e.preventDefault(),Gl(`mouseup`,document,t)};if(Wl(`mouseup`,document,t),ie.value!==`mousedown`)return;ae.value=!0;let n=()=>{ae.value=!1,Gl(`mouseup`,document,n)};Wl(`mouseup`,document,n)}function Ve(t){e.onKeyup&&Y(e.onKeyup,t)}function He(t){switch(e.onKeydown&&Y(e.onKeydown,t),t.key){case`Escape`:We();break;case`Enter`:Ue(t);break}}function Ue(t){var n,r;if(e.passivelyActivated){let{value:i}=E;if(i){e.internalDeactivateOnEnter&&We();return}t.preventDefault(),e.type===`textarea`?(n=c.value)==null||n.focus():(r=d.value)==null||r.focus()}}function We(){e.passivelyActivated&&(E.value=!1,kn(()=>{var e;(e=s.value)==null||e.focus()}))}function Ge(){var t,n,r;x.value||(e.passivelyActivated?(t=s.value)==null||t.focus():((n=c.value)==null||n.focus(),(r=d.value)==null||r.focus()))}function Ke(){s.value?.contains(document.activeElement)&&document.activeElement.blur()}function qe(){var e,t;(e=c.value)==null||e.select(),(t=d.value)==null||t.select()}function Je(){x.value||(c.value?c.value.focus():d.value&&d.value.focus())}function Ye(){let{value:e}=s;e?.contains(document.activeElement)&&e!==document.activeElement&&We()}function Xe(t){if(e.type===`textarea`){let{value:e}=c;e?.scrollTo(t)}else{let{value:e}=d;e?.scrollTo(t)}}function Ze(t){let{type:n,pair:r,autosize:i}=e;if(!r&&i)if(n===`textarea`){let{value:e}=l;e&&(e.textContent=`${t??``}\r\n`)}else{let{value:e}=u;e&&(t?e.textContent=t:e.innerHTML=` `)}}function Qe(){ce()}let $e=k({top:`0`});function et(e){var t;let{scrollTop:n}=e.target;$e.value.top=`${-n}px`,(t=h.value)==null||t.syncUnifiedContainer()}let tt=null;qn(()=>{let{autosize:t,type:n}=e;t&&n===`textarea`?tt=Jn(v,e=>{!Array.isArray(e)&&e!==D&&Ze(e)}):tt?.()});let nt=null;qn(()=>{e.type===`textarea`?nt=Jn(v,e=>{var t;!Array.isArray(e)&&e!==D&&((t=h.value)==null||t.syncUnifiedContainer())}):nt?.()}),Un(nw,{mergedValueRef:v,maxlengthRef:le,mergedClsPrefixRef:t,countGraphemesRef:j(e,`countGraphemes`)});let rt={wrapperElRef:s,inputElRef:d,textareaElRef:c,isCompositing:T,clear:Fe,focus:Ge,blur:Ke,select:qe,deactivate:Ye,activate:Je,scrollTo:Xe},it=Jb(`Input`,i,t),at=B(()=>{let{value:e}=b,{common:{cubicBezierEaseInOut:t},self:{color:n,borderRadius:r,textColor:i,caretColor:a,caretColorError:s,caretColorWarning:c,textDecorationColor:l,border:u,borderDisabled:d,borderHover:f,borderFocus:p,placeholderColor:m,placeholderColorDisabled:h,lineHeightTextarea:g,colorDisabled:_,colorFocus:v,textColorDisabled:y,boxShadowFocus:x,iconSize:S,colorFocusWarning:C,boxShadowFocusWarning:w,borderWarning:T,borderFocusWarning:E,borderHoverWarning:D,colorFocusError:O,boxShadowFocusError:ee,borderError:te,borderFocusError:ne,borderHoverError:re,clearSize:ie,clearColor:ae,clearColorHover:oe,clearColorPressed:se,iconColor:ce,iconColorDisabled:le,suffixTextColor:ue,countTextColor:de,countTextColorDisabled:fe,iconColorHover:pe,iconColorPressed:me,loadingColor:he,loadingColorError:ge,loadingColorWarning:_e,fontWeight:ve,[K(`padding`,e)]:ye,[K(`fontSize`,e)]:be,[K(`height`,e)]:xe}}=o.value,{left:Se,right:Ce}=nl(ye);return{"--n-bezier":t,"--n-count-text-color":de,"--n-count-text-color-disabled":fe,"--n-color":n,"--n-font-size":be,"--n-font-weight":ve,"--n-border-radius":r,"--n-height":xe,"--n-padding-left":Se,"--n-padding-right":Ce,"--n-text-color":i,"--n-caret-color":a,"--n-text-decoration-color":l,"--n-border":u,"--n-border-disabled":d,"--n-border-hover":f,"--n-border-focus":p,"--n-placeholder-color":m,"--n-placeholder-color-disabled":h,"--n-icon-size":S,"--n-line-height-textarea":g,"--n-color-disabled":_,"--n-color-focus":v,"--n-text-color-disabled":y,"--n-box-shadow-focus":x,"--n-loading-color":he,"--n-caret-color-warning":c,"--n-color-focus-warning":C,"--n-box-shadow-focus-warning":w,"--n-border-warning":T,"--n-border-focus-warning":E,"--n-border-hover-warning":D,"--n-loading-color-warning":_e,"--n-caret-color-error":s,"--n-color-focus-error":O,"--n-box-shadow-focus-error":ee,"--n-border-error":te,"--n-border-focus-error":ne,"--n-border-hover-error":re,"--n-loading-color-error":ge,"--n-clear-color":ae,"--n-clear-size":ie,"--n-clear-color-hover":oe,"--n-clear-color-pressed":se,"--n-icon-color":ce,"--n-icon-color-hover":pe,"--n-icon-color-pressed":me,"--n-icon-color-disabled":le,"--n-suffix-text-color":ue}}),ot=r?xp(`input`,B(()=>{let{value:e}=b;return e[0]}),at,e):void 0;return Object.assign(Object.assign({},rt),{wrapperElRef:s,inputElRef:d,inputMirrorElRef:u,inputEl2Ref:f,textareaElRef:c,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:it,uncontrolledValue:_,mergedValue:v,passwordVisible:ae,mergedPlaceholder:O,showPlaceholder1:ee,showPlaceholder2:te,mergedFocus:ne,isComposing:T,activated:E,showClearButton:re,mergedSize:b,mergedDisabled:x,textDecorationStyle:oe,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:ie,placeholderStyle:$e,mergedStatus:S,textAreaScrollContainerWidth:se,handleTextAreaScroll:et,handleCompositionStart:Ce,handleCompositionEnd:we,handleInput:Te,handleInputBlur:De,handleInputFocus:Oe,handleWrapperBlur:ke,handleWrapperFocus:Ae,handleMouseEnter:Le,handleMouseLeave:Re,handleMouseDown:Ie,handleChange:Me,handleClick:Ne,handleClear:Pe,handlePasswordToggleClick:ze,handlePasswordToggleMousedown:Be,handleWrapperKeydown:He,handleWrapperKeyup:Ve,handleTextAreaMirrorResize:Qe,getTextareaScrollContainer:()=>c.value,mergedTheme:o,cssVars:r?void 0:at,themeClass:ot?.themeClass,onRender:ot?.onRender})},render(){let{mergedClsPrefix:e,mergedStatus:t,themeClass:n,type:r,countGraphemes:i,onRender:a}=this,o=this.$slots;return a?.(),V(`div`,{ref:`wrapperElRef`,class:[`${e}-input`,`${e}-input--${this.mergedSize}-size`,n,t&&`${e}-input--${t}-status`,{[`${e}-input--rtl`]:this.rtlEnabled,[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:r===`textarea`,[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&r!==`textarea`,[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},V(`div`,{class:`${e}-input-wrapper`},gp(o.prefix,t=>t&&V(`div`,{class:`${e}-input__prefix`},t)),r===`textarea`?V(oS,{ref:`textareaScrollbarInstRef`,class:`${e}-input__textarea`,container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{let{textAreaScrollContainerWidth:t}=this,n={width:this.autosize&&t&&`${t}px`};return V(pa,null,V(`textarea`,Object.assign({},this.inputProps,{ref:`textareaElRef`,class:[`${e}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,n],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?V(`div`,{class:`${e}-input__placeholder`,style:[this.placeholderStyle,n],key:`placeholder`},this.mergedPlaceholder[0]):null,this.autosize?V(Tf,{onResize:this.handleTextAreaMirrorResize},{default:()=>V(`div`,{ref:`textareaMirrorElRef`,class:`${e}-input__textarea-mirror`,key:`mirror`})}):null)}}):V(`div`,{class:`${e}-input__input`},V(`input`,Object.assign({type:r===`password`&&this.mergedShowPasswordOn&&this.passwordVisible?`text`:r},this.inputProps,{ref:`inputElRef`,class:[`${e}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?V(`div`,{class:`${e}-input__placeholder`},V(`span`,null,this.mergedPlaceholder[0])):null,this.autosize?V(`div`,{class:`${e}-input__input-mirror`,key:`mirror`,ref:`inputMirrorElRef`},`\xA0`):null),!this.pair&&gp(o.suffix,t=>t||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?V(`div`,{class:`${e}-input__suffix`},[gp(o[`clear-icon-placeholder`],t=>(this.clearable||t)&&V(Px,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>t,icon:()=>{var e;return(e=this.$slots)[`clear-icon`]?.call(e)}})),this.internalLoadingBeforeSuffix?null:t,this.loading===void 0?null:V(NC,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}),this.internalLoadingBeforeSuffix?t:null,this.showCount&&this.type!==`textarea`?V(cw,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null,this.mergedShowPasswordOn&&this.type===`password`?V(`div`,{class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?mp(o[`password-visible-icon`],()=>[V(rx,{clsPrefix:e},{default:()=>V(vx,null)})]):mp(o[`password-invisible-icon`],()=>[V(rx,{clsPrefix:e},{default:()=>V(yx,null)})])):null]):null)),this.pair?V(`span`,{class:`${e}-input__separator`},mp(o.separator,()=>[this.separator])):null,this.pair?V(`div`,{class:`${e}-input-wrapper`},V(`div`,{class:`${e}-input__input`},V(`input`,{ref:`inputEl2Ref`,type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?V(`div`,{class:`${e}-input__placeholder`},V(`span`,null,this.mergedPlaceholder[1])):null),gp(o.suffix,t=>(this.clearable||t)&&V(`div`,{class:`${e}-input__suffix`},[this.clearable&&V(Px,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{icon:()=>o[`clear-icon`]?.call(o),placeholder:()=>o[`clear-icon-placeholder`]?.call(o)}),t]))):null,this.mergedBordered?V(`div`,{class:`${e}-input__border`}):null,this.mergedBordered?V(`div`,{class:`${e}-input__state-border`}):null,this.showCount&&r===`textarea`?V(cw,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null)}}),uw=U(`input-group`,` + `)])]);function lw(e){let t=0;for(let n of e)t++;return t}function uw(e){return e===``||e==null}function dw(e){let t=k(null);function n(){let{value:n}=e;if(!n?.focus){i();return}let{selectionStart:r,selectionEnd:a,value:o}=n;if(r==null||a==null){i();return}t.value={start:r,end:a,beforeText:o.slice(0,r),afterText:o.slice(a)}}function r(){var n;let{value:r}=t,{value:i}=e;if(!r||!i)return;let{value:a}=i,{start:o,beforeText:s,afterText:c}=r,l=a.length;if(a.endsWith(c))l=a.length-c.length;else if(a.startsWith(s))l=s.length;else{let e=s[o-1],t=a.indexOf(e,o-1);t!==-1&&(l=t+1)}(n=i.setSelectionRange)==null||n.call(i,l,l)}function i(){t.value=null}return Jn(e,i),{recordCursor:n,restoreCursor:r}}var fw=P({name:`InputWordCount`,setup(e,{slots:t}){let{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:i,countGraphemesRef:a}=N(ow),o=B(()=>{let{value:e}=n;return e===null||Array.isArray(e)?0:(a.value||lw)(e)});return()=>{let{value:e}=r,{value:a}=n;return V(`span`,{class:`${i.value}-input-word-count`},hp(t.default,{value:a===null||Array.isArray(a)?``:a},()=>[e===void 0?o.value:`${o.value} / ${e}`]))}}}),pw=P({name:`Input`,props:Object.assign(Object.assign({},X.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:`text`},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:i,mergedComponentPropsRef:a}=bp(e),o=X(`Input`,`-input`,sw,aw,e,t);ew&&ex(`-input-safari`,cw,t);let s=k(null),c=k(null),l=k(null),u=k(null),d=k(null),f=k(null),p=k(null),m=dw(p),h=k(null),{localeRef:g}=Kb(`Input`),_=k(e.defaultValue),v=lu(j(e,`value`),_),y=Cp(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:a?.value?.Input?.size||`medium`}}),{mergedSizeRef:b,mergedDisabledRef:x,mergedStatusRef:S}=y,C=k(!1),w=k(!1),T=k(!1),E=k(!1),D=null,O=B(()=>{let{placeholder:t,pair:n}=e;return n?Array.isArray(t)?t:t===void 0?[``,``]:[t,t]:t===void 0?[g.value.placeholder]:[t]}),ee=B(()=>{let{value:e}=T,{value:t}=v,{value:n}=O;return!e&&(uw(t)||Array.isArray(t)&&uw(t[0]))&&n[0]}),te=B(()=>{let{value:e}=T,{value:t}=v,{value:n}=O;return!e&&n[1]&&(uw(t)||Array.isArray(t)&&uw(t[1]))}),ne=ql(()=>e.internalForceFocus||C.value),re=ql(()=>{if(x.value||e.readonly||!e.clearable||!ne.value&&!w.value)return!1;let{value:t}=v,{value:n}=ne;return e.pair?!!(Array.isArray(t)&&(t[0]||t[1]))&&(w.value||n):!!t&&(w.value||n)}),ie=B(()=>{let{showPasswordOn:t}=e;if(t)return t;if(e.showPasswordToggle)return`click`}),ae=k(!1),oe=B(()=>{let{textDecoration:t}=e;return t?Array.isArray(t)?t.map(e=>({textDecoration:e})):[{textDecoration:t}]:[``,``]}),se=k(void 0),ce=()=>{if(e.type===`textarea`){let{autosize:t}=e;if(t&&(se.value=h.value?.$el?.offsetWidth),!c.value||typeof t==`boolean`)return;let{paddingTop:n,paddingBottom:r,lineHeight:i}=window.getComputedStyle(c.value),a=Number(n.slice(0,-2)),o=Number(r.slice(0,-2)),s=Number(i.slice(0,-2)),{value:u}=l;if(!u)return;if(t.minRows){let e=Math.max(t.minRows,1),n=`${a+o+s*e}px`;u.style.minHeight=n}if(t.maxRows){let e=`${a+o+s*t.maxRows}px`;u.style.maxHeight=e}}},le=B(()=>{let{maxlength:t}=e;return t===void 0?void 0:Number(t)});Vr(()=>{let{value:e}=v;Array.isArray(e)||Ze(e)});let ue=Va().proxy;function de(t,n){let{onUpdateValue:r,"onUpdate:value":i,onInput:a}=e,{nTriggerFormInput:o}=y;r&&Y(r,t,n),i&&Y(i,t,n),a&&Y(a,t,n),_.value=t,o()}function fe(t,n){let{onChange:r}=e,{nTriggerFormChange:i}=y;r&&Y(r,t,n),_.value=t,i()}function pe(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=y;n&&Y(n,t),r()}function me(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=y;n&&Y(n,t),r()}function he(t){let{onClear:n}=e;n&&Y(n,t)}function ge(t){let{onInputBlur:n}=e;n&&Y(n,t)}function _e(t){let{onInputFocus:n}=e;n&&Y(n,t)}function ve(){let{onDeactivate:t}=e;t&&Y(t)}function ye(){let{onActivate:t}=e;t&&Y(t)}function be(t){let{onClick:n}=e;n&&Y(n,t)}function xe(t){let{onWrapperFocus:n}=e;n&&Y(n,t)}function Se(t){let{onWrapperBlur:n}=e;n&&Y(n,t)}function Ce(){T.value=!0}function we(e){T.value=!1,e.target===f.value?Te(e,1):Te(e,0)}function Te(t,n=0,r=`input`){let i=t.target.value;if(Ze(i),t instanceof InputEvent&&!t.isComposing&&(T.value=!1),e.type===`textarea`){let{value:e}=h;e&&e.syncUnifiedContainer()}if(D=i,T.value)return;m.recordCursor();let a=Ee(i);if(a)if(!e.pair)r===`input`?de(i,{source:n}):fe(i,{source:n});else{let{value:e}=v;e=Array.isArray(e)?[e[0],e[1]]:[``,``],e[n]=i,r===`input`?de(e,{source:n}):fe(e,{source:n})}ue.$forceUpdate(),a||kn(m.restoreCursor)}function Ee(t){let{countGraphemes:n,maxlength:r,minlength:i}=e;if(n){let e;if(r!==void 0&&(e===void 0&&(e=n(t)),e>Number(r))||i!==void 0&&(e===void 0&&(e=n(t)),e{e.preventDefault(),Gl(`mouseup`,document,t)};if(Wl(`mouseup`,document,t),ie.value!==`mousedown`)return;ae.value=!0;let n=()=>{ae.value=!1,Gl(`mouseup`,document,n)};Wl(`mouseup`,document,n)}function Ve(t){e.onKeyup&&Y(e.onKeyup,t)}function He(t){switch(e.onKeydown&&Y(e.onKeydown,t),t.key){case`Escape`:We();break;case`Enter`:Ue(t);break}}function Ue(t){var n,r;if(e.passivelyActivated){let{value:i}=E;if(i){e.internalDeactivateOnEnter&&We();return}t.preventDefault(),e.type===`textarea`?(n=c.value)==null||n.focus():(r=d.value)==null||r.focus()}}function We(){e.passivelyActivated&&(E.value=!1,kn(()=>{var e;(e=s.value)==null||e.focus()}))}function Ge(){var t,n,r;x.value||(e.passivelyActivated?(t=s.value)==null||t.focus():((n=c.value)==null||n.focus(),(r=d.value)==null||r.focus()))}function Ke(){s.value?.contains(document.activeElement)&&document.activeElement.blur()}function qe(){var e,t;(e=c.value)==null||e.select(),(t=d.value)==null||t.select()}function Je(){x.value||(c.value?c.value.focus():d.value&&d.value.focus())}function Ye(){let{value:e}=s;e?.contains(document.activeElement)&&e!==document.activeElement&&We()}function Xe(t){if(e.type===`textarea`){let{value:e}=c;e?.scrollTo(t)}else{let{value:e}=d;e?.scrollTo(t)}}function Ze(t){let{type:n,pair:r,autosize:i}=e;if(!r&&i)if(n===`textarea`){let{value:e}=l;e&&(e.textContent=`${t??``}\r\n`)}else{let{value:e}=u;e&&(t?e.textContent=t:e.innerHTML=` `)}}function Qe(){ce()}let $e=k({top:`0`});function et(e){var t;let{scrollTop:n}=e.target;$e.value.top=`${-n}px`,(t=h.value)==null||t.syncUnifiedContainer()}let tt=null;qn(()=>{let{autosize:t,type:n}=e;t&&n===`textarea`?tt=Jn(v,e=>{!Array.isArray(e)&&e!==D&&Ze(e)}):tt?.()});let nt=null;qn(()=>{e.type===`textarea`?nt=Jn(v,e=>{var t;!Array.isArray(e)&&e!==D&&((t=h.value)==null||t.syncUnifiedContainer())}):nt?.()}),Un(ow,{mergedValueRef:v,maxlengthRef:le,mergedClsPrefixRef:t,countGraphemesRef:j(e,`countGraphemes`)});let rt={wrapperElRef:s,inputElRef:d,textareaElRef:c,isCompositing:T,clear:Fe,focus:Ge,blur:Ke,select:qe,deactivate:Ye,activate:Je,scrollTo:Xe},it=Jb(`Input`,i,t),at=B(()=>{let{value:e}=b,{common:{cubicBezierEaseInOut:t},self:{color:n,borderRadius:r,textColor:i,caretColor:a,caretColorError:s,caretColorWarning:c,textDecorationColor:l,border:u,borderDisabled:d,borderHover:f,borderFocus:p,placeholderColor:m,placeholderColorDisabled:h,lineHeightTextarea:g,colorDisabled:_,colorFocus:v,textColorDisabled:y,boxShadowFocus:x,iconSize:S,colorFocusWarning:C,boxShadowFocusWarning:w,borderWarning:T,borderFocusWarning:E,borderHoverWarning:D,colorFocusError:O,boxShadowFocusError:ee,borderError:te,borderFocusError:ne,borderHoverError:re,clearSize:ie,clearColor:ae,clearColorHover:oe,clearColorPressed:se,iconColor:ce,iconColorDisabled:le,suffixTextColor:ue,countTextColor:de,countTextColorDisabled:fe,iconColorHover:pe,iconColorPressed:me,loadingColor:he,loadingColorError:ge,loadingColorWarning:_e,fontWeight:ve,[K(`padding`,e)]:ye,[K(`fontSize`,e)]:be,[K(`height`,e)]:xe}}=o.value,{left:Se,right:Ce}=nl(ye);return{"--n-bezier":t,"--n-count-text-color":de,"--n-count-text-color-disabled":fe,"--n-color":n,"--n-font-size":be,"--n-font-weight":ve,"--n-border-radius":r,"--n-height":xe,"--n-padding-left":Se,"--n-padding-right":Ce,"--n-text-color":i,"--n-caret-color":a,"--n-text-decoration-color":l,"--n-border":u,"--n-border-disabled":d,"--n-border-hover":f,"--n-border-focus":p,"--n-placeholder-color":m,"--n-placeholder-color-disabled":h,"--n-icon-size":S,"--n-line-height-textarea":g,"--n-color-disabled":_,"--n-color-focus":v,"--n-text-color-disabled":y,"--n-box-shadow-focus":x,"--n-loading-color":he,"--n-caret-color-warning":c,"--n-color-focus-warning":C,"--n-box-shadow-focus-warning":w,"--n-border-warning":T,"--n-border-focus-warning":E,"--n-border-hover-warning":D,"--n-loading-color-warning":_e,"--n-caret-color-error":s,"--n-color-focus-error":O,"--n-box-shadow-focus-error":ee,"--n-border-error":te,"--n-border-focus-error":ne,"--n-border-hover-error":re,"--n-loading-color-error":ge,"--n-clear-color":ae,"--n-clear-size":ie,"--n-clear-color-hover":oe,"--n-clear-color-pressed":se,"--n-icon-color":ce,"--n-icon-color-hover":pe,"--n-icon-color-pressed":me,"--n-icon-color-disabled":le,"--n-suffix-text-color":ue}}),ot=r?xp(`input`,B(()=>{let{value:e}=b;return e[0]}),at,e):void 0;return Object.assign(Object.assign({},rt),{wrapperElRef:s,inputElRef:d,inputMirrorElRef:u,inputEl2Ref:f,textareaElRef:c,textareaMirrorElRef:l,textareaScrollbarInstRef:h,rtlEnabled:it,uncontrolledValue:_,mergedValue:v,passwordVisible:ae,mergedPlaceholder:O,showPlaceholder1:ee,showPlaceholder2:te,mergedFocus:ne,isComposing:T,activated:E,showClearButton:re,mergedSize:b,mergedDisabled:x,textDecorationStyle:oe,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:ie,placeholderStyle:$e,mergedStatus:S,textAreaScrollContainerWidth:se,handleTextAreaScroll:et,handleCompositionStart:Ce,handleCompositionEnd:we,handleInput:Te,handleInputBlur:De,handleInputFocus:Oe,handleWrapperBlur:ke,handleWrapperFocus:Ae,handleMouseEnter:Le,handleMouseLeave:Re,handleMouseDown:Ie,handleChange:Me,handleClick:Ne,handleClear:Pe,handlePasswordToggleClick:ze,handlePasswordToggleMousedown:Be,handleWrapperKeydown:He,handleWrapperKeyup:Ve,handleTextAreaMirrorResize:Qe,getTextareaScrollContainer:()=>c.value,mergedTheme:o,cssVars:r?void 0:at,themeClass:ot?.themeClass,onRender:ot?.onRender})},render(){let{mergedClsPrefix:e,mergedStatus:t,themeClass:n,type:r,countGraphemes:i,onRender:a}=this,o=this.$slots;return a?.(),V(`div`,{ref:`wrapperElRef`,class:[`${e}-input`,`${e}-input--${this.mergedSize}-size`,n,t&&`${e}-input--${t}-status`,{[`${e}-input--rtl`]:this.rtlEnabled,[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:r===`textarea`,[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&r!==`textarea`,[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},V(`div`,{class:`${e}-input-wrapper`},gp(o.prefix,t=>t&&V(`div`,{class:`${e}-input__prefix`},t)),r===`textarea`?V(oS,{ref:`textareaScrollbarInstRef`,class:`${e}-input__textarea`,container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{let{textAreaScrollContainerWidth:t}=this,n={width:this.autosize&&t&&`${t}px`};return V(pa,null,V(`textarea`,Object.assign({},this.inputProps,{ref:`textareaElRef`,class:[`${e}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,n],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?V(`div`,{class:`${e}-input__placeholder`,style:[this.placeholderStyle,n],key:`placeholder`},this.mergedPlaceholder[0]):null,this.autosize?V(Tf,{onResize:this.handleTextAreaMirrorResize},{default:()=>V(`div`,{ref:`textareaMirrorElRef`,class:`${e}-input__textarea-mirror`,key:`mirror`})}):null)}}):V(`div`,{class:`${e}-input__input`},V(`input`,Object.assign({type:r===`password`&&this.mergedShowPasswordOn&&this.passwordVisible?`text`:r},this.inputProps,{ref:`inputElRef`,class:[`${e}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?V(`div`,{class:`${e}-input__placeholder`},V(`span`,null,this.mergedPlaceholder[0])):null,this.autosize?V(`div`,{class:`${e}-input__input-mirror`,key:`mirror`,ref:`inputMirrorElRef`},`\xA0`):null),!this.pair&&gp(o.suffix,t=>t||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?V(`div`,{class:`${e}-input__suffix`},[gp(o[`clear-icon-placeholder`],t=>(this.clearable||t)&&V(Px,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>t,icon:()=>{var e;return(e=this.$slots)[`clear-icon`]?.call(e)}})),this.internalLoadingBeforeSuffix?null:t,this.loading===void 0?null:V(NC,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}),this.internalLoadingBeforeSuffix?t:null,this.showCount&&this.type!==`textarea`?V(fw,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null,this.mergedShowPasswordOn&&this.type===`password`?V(`div`,{class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?mp(o[`password-visible-icon`],()=>[V(rx,{clsPrefix:e},{default:()=>V(vx,null)})]):mp(o[`password-invisible-icon`],()=>[V(rx,{clsPrefix:e},{default:()=>V(yx,null)})])):null]):null)),this.pair?V(`span`,{class:`${e}-input__separator`},mp(o.separator,()=>[this.separator])):null,this.pair?V(`div`,{class:`${e}-input-wrapper`},V(`div`,{class:`${e}-input__input`},V(`input`,{ref:`inputEl2Ref`,type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:i?void 0:this.maxlength,minlength:i?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?V(`div`,{class:`${e}-input__placeholder`},V(`span`,null,this.mergedPlaceholder[1])):null),gp(o.suffix,t=>(this.clearable||t)&&V(`div`,{class:`${e}-input__suffix`},[this.clearable&&V(Px,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{icon:()=>o[`clear-icon`]?.call(o),placeholder:()=>o[`clear-icon-placeholder`]?.call(o)}),t]))):null,this.mergedBordered?V(`div`,{class:`${e}-input__border`}):null,this.mergedBordered?V(`div`,{class:`${e}-input__state-border`}):null,this.showCount&&r===`textarea`?V(fw,null,{default:e=>{let{renderCount:t}=this;return t?t(e):o.count?.call(o,e)}}):null)}}),mw=U(`input-group`,` display: inline-flex; width: 100%; flex-wrap: nowrap; @@ -845,7 +892,7 @@ `),W(`box-shadow, border, state-border`,` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; - `)])])])])])]),dw=P({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=bp(e);return ex(`-input-group`,uw,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return V(`div`,{class:`${e}-input-group`},this.$slots)}});function fw(e){return e.type===`group`}function pw(e){return e.type===`ignored`}function mw(e,t){return{getIsGroup:fw,getIgnored:pw,getKey(t){return fw(t)?t.name||t.key||`key-required`:t[e]},getChildren(e){return e[t]}}}function hw(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var gw=tx({name:`AutoComplete`,common:eS,peers:{InternalSelectMenu:ZS,Input:tw},self:hw}),_w={name:`AutoComplete`,common:Q,peers:{InternalSelectMenu:QS,Input:$C},self:hw},vw=H([U(`auto-complete`,` + `)])])])])])]),hw=P({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=bp(e);return ex(`-input-group`,mw,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return V(`div`,{class:`${e}-input-group`},this.$slots)}});function gw(e){return e.type===`group`}function _w(e){return e.type===`ignored`}function vw(e,t){return{getIsGroup:gw,getIgnored:_w,getKey(t){return gw(t)?t.name||t.key||`key-required`:t[e]},getChildren(e){return e[t]}}}function yw(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var bw=tx({name:`AutoComplete`,common:eS,peers:{InternalSelectMenu:ZS,Input:aw},self:yw}),xw={name:`AutoComplete`,common:Q,peers:{InternalSelectMenu:QS,Input:rw},self:yw},Sw=H([U(`auto-complete`,` z-index: auto; position: relative; display: inline-flex; @@ -853,7 +900,7 @@ `),U(`auto-complete-menu`,` margin: 4px 0; box-shadow: var(--n-menu-box-shadow); - `,[iC({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]);function yw(e){return e.map(bw)}function bw(e){return typeof e==`string`?{label:e,value:e}:e.type===`group`?{type:`group`,label:e.label??e.name,value:e.value??e.name,key:e.key||e.name,children:e.children.map(e=>bw(e))}:e}var xw=P({name:`AutoComplete`,props:Object.assign(Object.assign({},X.props),{to:Cu.propTo,menuProps:Object,append:Boolean,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:`bottom-start`},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,showEmpty:Boolean,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],scrollbarProps:Object,onInput:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:a}=bp(e),o=Cp(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:a?.value?.AutoComplete?.size||`medium`}}),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:l}=o,u=k(null),d=k(null),f=k(e.defaultValue),p=lu(j(e,`value`),f),m=k(!1),h=k(!1),g=X(`AutoComplete`,`-auto-complete`,vw,gw,e,r),_=B(()=>yw(e.options)),v=B(()=>{let{getShow:t}=e;return t?t(p.value||``):!!p.value}),y=B(()=>v.value&&m.value&&(e.showEmpty?!0:!!_.value.length)),b=B(()=>HS(_.value,mw(`value`,`children`)));function x(t){let{"onUpdate:value":n,onUpdateValue:r,onInput:i}=e,{nTriggerFormInput:a,nTriggerFormChange:s}=o;r&&Y(r,t),n&&Y(n,t),i&&Y(i,t),f.value=t,a(),s()}function S(t){let{onSelect:n}=e,{nTriggerFormInput:r,nTriggerFormChange:i}=o;n&&Y(n,t),r(),i()}function C(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=o;n&&Y(n,t),r()}function w(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=o;n&&Y(n,t),r()}function T(){h.value=!0}function E(){window.setTimeout(()=>{h.value=!1},0)}function D(e){var t,n;switch(e.key){case`Enter`:if(!h.value){let t=d.value?.getPendingTmNode();t&&(O(t.rawNode),e.preventDefault())}break;case`ArrowDown`:(t=d.value)==null||t.next();break;case`ArrowUp`:(n=d.value)==null||n.prev();break}}function O(t){t?.value!==void 0&&(S(t.value),e.clearAfterSelect?x(null):t.label!==void 0&&x(e.append?`${p.value}${t.label}`:t.label),m.value=!1,e.blurAfterSelect&&oe())}function ee(){x(null)}function te(e){m.value=!0,w(e)}function ne(e){m.value=!1,C(e)}function re(e){m.value=!0,x(e)}function ie(e){O(e.rawNode)}function ae(e){u.value?.contains($c(e))||(m.value=!1)}function oe(){var e;u.value?.contains(document.activeElement)&&((e=document.activeElement)==null||e.blur())}let se=B(()=>{let{common:{cubicBezierEaseInOut:e},self:{menuBoxShadow:t}}=g.value;return{"--n-menu-box-shadow":t,"--n-bezier":e}}),ce=i?xp(`auto-complete`,void 0,se,e):void 0,le=k(null),ue={focus:()=>{var e;(e=le.value)==null||e.focus()},blur:()=>{var e;(e=le.value)==null||e.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:le,uncontrolledValue:f,mergedValue:p,isMounted:uu(),adjustedTo:Cu(e),menuInstRef:d,triggerElRef:u,treeMate:b,mergedSize:s,mergedDisabled:c,active:y,mergedStatus:l,handleClear:ee,handleFocus:te,handleBlur:ne,handleInput:re,handleToggle:ie,handleClickOutsideMenu:ae,handleCompositionStart:T,handleCompositionEnd:E,handleKeyDown:D,mergedTheme:g,cssVars:i?void 0:se,themeClass:ce?.themeClass,onRender:ce?.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){let{mergedClsPrefix:e}=this;return V(`div`,{class:`${e}-auto-complete`,ref:`triggerElRef`,onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},V(qu,null,{default:()=>[V(Ju,null,{default:()=>{let e=this.$slots.default;if(e)return op(`default`,e,{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});let{mergedTheme:t}=this;return V(lw,{ref:`inputInstRef`,status:this.mergedStatus,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var e;return(e=this.$slots).suffix?.call(e)},prefix:()=>{var e;return(e=this.$slots).prefix?.call(e)}})}}),V(Dd,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Cu.tdkey,placement:this.placement,width:`target`},{default:()=>V(yo,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)==null||t.call(this),!this.active)return null;let{menuProps:n}=this;return Vn(V(oC,Object.assign({},n,{clsPrefix:e,ref:`menuInstRef`,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n?.class],style:[n?.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:`medium`,onToggle:this.handleToggle,scrollbarProps:this.scrollbarProps}),{empty:()=>{var e;return(e=this.$slots).empty?.call(e)}}),[[Qu,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),Sw=wu&&`loading`in document.createElement(`img`);function Cw(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var ww=new WeakMap,Tw=new WeakMap,Ew=new WeakMap,Dw=(e,t,n)=>{if(!e)return()=>{};let r=Cw(t),{root:i}=r.options,a,o=ww.get(i);o?a=o:(a=new Map,ww.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=Tw.get(e.target),n=Ew.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(Tw.delete(e),Ew.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||ww.delete(i))};return Tw.set(e,u),Ew.set(e,n),u};function Ow(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:q(r,n),colorModal:q(u,n),colorPopover:q(d,n)}}var kw={name:`Avatar`,common:Q,self:Ow};function Aw(){return{gap:`-12px`}}var jw={name:`AvatarGroup`,common:Q,peers:{Avatar:kw},self:Aw},Mw={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},Nw={name:`BackTop`,common:Q,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return Object.assign(Object.assign({},Mw),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`})}},Pw={name:`Badge`,common:Q,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}},Fw={fontWeightActive:`400`};function Iw(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},Fw),{fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n})}var Lw={name:`Breadcrumb`,common:Q,self:Iw};function Rw(e){return q(e,[255,255,255,.16])}function zw(e){return q(e,[0,0,0,.12])}var Bw=mu(`n-button-group`),Vw={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function Hw(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:ee,fontWeight:te,buttonColor2:ne,buttonColor2Hover:re,buttonColor2Pressed:ie,fontWeightStrong:ae}=e;return Object.assign(Object.assign({},Vw),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:ne,colorSecondaryHover:re,colorSecondaryPressed:ie,colorTertiary:ne,colorTertiaryHover:re,colorTertiaryPressed:ie,colorQuaternary:`#0000`,colorQuaternaryHover:re,colorQuaternaryPressed:ie,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:ee,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:ee,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:ee,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${ee}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:te,fontWeightStrong:ae})}var Uw={name:`Button`,common:eS,self:Hw},Ww={name:`Button`,common:Q,self(e){let t=Hw(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},Gw=H([U(`button`,` + `,[iC({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]);function Cw(e){return e.map(ww)}function ww(e){return typeof e==`string`?{label:e,value:e}:e.type===`group`?{type:`group`,label:e.label??e.name,value:e.value??e.name,key:e.key||e.name,children:e.children.map(e=>ww(e))}:e}var Tw=P({name:`AutoComplete`,props:Object.assign(Object.assign({},X.props),{to:Cu.propTo,menuProps:Object,append:Boolean,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:`bottom-start`},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,showEmpty:Boolean,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],scrollbarProps:Object,onInput:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:a}=bp(e),o=Cp(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:a?.value?.AutoComplete?.size||`medium`}}),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:l}=o,u=k(null),d=k(null),f=k(e.defaultValue),p=lu(j(e,`value`),f),m=k(!1),h=k(!1),g=X(`AutoComplete`,`-auto-complete`,Sw,bw,e,r),_=B(()=>Cw(e.options)),v=B(()=>{let{getShow:t}=e;return t?t(p.value||``):!!p.value}),y=B(()=>v.value&&m.value&&(e.showEmpty?!0:!!_.value.length)),b=B(()=>HS(_.value,vw(`value`,`children`)));function x(t){let{"onUpdate:value":n,onUpdateValue:r,onInput:i}=e,{nTriggerFormInput:a,nTriggerFormChange:s}=o;r&&Y(r,t),n&&Y(n,t),i&&Y(i,t),f.value=t,a(),s()}function S(t){let{onSelect:n}=e,{nTriggerFormInput:r,nTriggerFormChange:i}=o;n&&Y(n,t),r(),i()}function C(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=o;n&&Y(n,t),r()}function w(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=o;n&&Y(n,t),r()}function T(){h.value=!0}function E(){window.setTimeout(()=>{h.value=!1},0)}function D(e){var t,n;switch(e.key){case`Enter`:if(!h.value){let t=d.value?.getPendingTmNode();t&&(O(t.rawNode),e.preventDefault())}break;case`ArrowDown`:(t=d.value)==null||t.next();break;case`ArrowUp`:(n=d.value)==null||n.prev();break}}function O(t){t?.value!==void 0&&(S(t.value),e.clearAfterSelect?x(null):t.label!==void 0&&x(e.append?`${p.value}${t.label}`:t.label),m.value=!1,e.blurAfterSelect&&oe())}function ee(){x(null)}function te(e){m.value=!0,w(e)}function ne(e){m.value=!1,C(e)}function re(e){m.value=!0,x(e)}function ie(e){O(e.rawNode)}function ae(e){u.value?.contains($c(e))||(m.value=!1)}function oe(){var e;u.value?.contains(document.activeElement)&&((e=document.activeElement)==null||e.blur())}let se=B(()=>{let{common:{cubicBezierEaseInOut:e},self:{menuBoxShadow:t}}=g.value;return{"--n-menu-box-shadow":t,"--n-bezier":e}}),ce=i?xp(`auto-complete`,void 0,se,e):void 0,le=k(null),ue={focus:()=>{var e;(e=le.value)==null||e.focus()},blur:()=>{var e;(e=le.value)==null||e.blur()}};return{focus:ue.focus,blur:ue.blur,inputInstRef:le,uncontrolledValue:f,mergedValue:p,isMounted:uu(),adjustedTo:Cu(e),menuInstRef:d,triggerElRef:u,treeMate:b,mergedSize:s,mergedDisabled:c,active:y,mergedStatus:l,handleClear:ee,handleFocus:te,handleBlur:ne,handleInput:re,handleToggle:ie,handleClickOutsideMenu:ae,handleCompositionStart:T,handleCompositionEnd:E,handleKeyDown:D,mergedTheme:g,cssVars:i?void 0:se,themeClass:ce?.themeClass,onRender:ce?.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){let{mergedClsPrefix:e}=this;return V(`div`,{class:`${e}-auto-complete`,ref:`triggerElRef`,onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},V(qu,null,{default:()=>[V(Ju,null,{default:()=>{let e=this.$slots.default;if(e)return op(`default`,e,{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});let{mergedTheme:t}=this;return V(pw,{ref:`inputInstRef`,status:this.mergedStatus,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var e;return(e=this.$slots).suffix?.call(e)},prefix:()=>{var e;return(e=this.$slots).prefix?.call(e)}})}}),V(Dd,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Cu.tdkey,placement:this.placement,width:`target`},{default:()=>V(yo,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)==null||t.call(this),!this.active)return null;let{menuProps:n}=this;return Vn(V(oC,Object.assign({},n,{clsPrefix:e,ref:`menuInstRef`,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n?.class],style:[n?.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:`medium`,onToggle:this.handleToggle,scrollbarProps:this.scrollbarProps}),{empty:()=>{var e;return(e=this.$slots).empty?.call(e)}}),[[Qu,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),Ew=wu&&`loading`in document.createElement(`img`);function Dw(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var Ow=new WeakMap,kw=new WeakMap,Aw=new WeakMap,jw=(e,t,n)=>{if(!e)return()=>{};let r=Dw(t),{root:i}=r.options,a,o=Ow.get(i);o?a=o:(a=new Map,Ow.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=kw.get(e.target),n=Aw.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(kw.delete(e),Aw.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||Ow.delete(i))};return kw.set(e,u),Aw.set(e,n),u};function Mw(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:q(r,n),colorModal:q(u,n),colorPopover:q(d,n)}}var Nw={name:`Avatar`,common:Q,self:Mw};function Pw(){return{gap:`-12px`}}var Fw={name:`AvatarGroup`,common:Q,peers:{Avatar:Nw},self:Pw},Iw={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},Lw={name:`BackTop`,common:Q,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return Object.assign(Object.assign({},Iw),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`})}},Rw={name:`Badge`,common:Q,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}},zw={fontWeightActive:`400`};function Bw(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},zw),{fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n})}var Vw={name:`Breadcrumb`,common:Q,self:Bw};function Hw(e){return q(e,[255,255,255,.16])}function Uw(e){return q(e,[0,0,0,.12])}var Ww=mu(`n-button-group`),Gw={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function Kw(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:ee,fontWeight:te,buttonColor2:ne,buttonColor2Hover:re,buttonColor2Pressed:ie,fontWeightStrong:ae}=e;return Object.assign(Object.assign({},Gw),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:ne,colorSecondaryHover:re,colorSecondaryPressed:ie,colorTertiary:ne,colorTertiaryHover:re,colorTertiaryPressed:ie,colorQuaternary:`#0000`,colorQuaternaryHover:re,colorQuaternaryPressed:ie,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:ee,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:ee,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:ee,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${ee}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:te,fontWeightStrong:ae})}var qw={name:`Button`,common:eS,self:Kw},Jw={name:`Button`,common:Q,self(e){let t=Kw(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},Yw=H([U(`button`,` margin: 0; font-weight: var(--n-font-weight); line-height: 1; @@ -936,44 +983,44 @@ `,[H(`~`,[W(`icon`,{margin:`var(--n-icon-margin)`,marginRight:0})])]),G(`block`,` display: flex; width: 100%; - `),G(`dashed`,[W(`border, state-border`,{borderStyle:`dashed !important`})]),G(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),H(`@keyframes button-wave-spread`,{from:{boxShadow:`0 0 0.5px 0 var(--n-ripple-color)`},to:{boxShadow:`0 0 0.5px 4.5px var(--n-ripple-color)`}}),H(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]),Kw=P({name:`Button`,props:Object.assign(Object.assign({},X.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:`button`},type:{type:String,default:`default`},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:`left`},attrType:{type:String,default:`button`},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!XC},spinProps:Object}),slots:Object,setup(e){let t=k(null),n=k(null),r=k(!1),i=ql(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=N(Bw,{}),{inlineThemeDisabled:o,mergedClsPrefixRef:s,mergedRtlRef:c,mergedComponentPropsRef:l}=bp(e),{mergedSizeRef:u}=Cp({},{defaultSize:`medium`,mergedSize:t=>{let{size:n}=e;if(n)return n;let{size:r}=a;if(r)return r;let{mergedSize:i}=t||{};return i?i.value:l?.value?.Button?.size||`medium`}}),d=B(()=>e.focusable&&!e.disabled),f=n=>{var r;d.value||n.preventDefault(),!e.nativeFocusBehavior&&(n.preventDefault(),!e.disabled&&d.value&&((r=t.value)==null||r.focus({preventScroll:!0})))},p=t=>{var r;if(!e.disabled&&!e.loading){let{onClick:i}=e;i&&Y(i,t),e.text||(r=n.value)==null||r.play()}},m=t=>{switch(t.key){case`Enter`:if(!e.keyboard)return;r.value=!1}},h=t=>{switch(t.key){case`Enter`:if(!e.keyboard||e.loading){t.preventDefault();return}r.value=!0}},g=()=>{r.value=!1},_=X(`Button`,`-button`,Gw,Uw,e,s),v=Jb(`Button`,c,s),y=B(()=>{let{common:{cubicBezierEaseInOut:t,cubicBezierEaseOut:n},self:r}=_.value,{rippleDuration:i,opacityDisabled:a,fontWeight:o,fontWeightStrong:s}=r,c=u.value,{dashed:l,type:d,ghost:f,text:p,color:m,round:h,circle:g,textColor:v,secondary:y,tertiary:b,quaternary:x,strong:S}=e,C={"--n-font-weight":S?s:o},w={"--n-color":`initial`,"--n-color-hover":`initial`,"--n-color-pressed":`initial`,"--n-color-focus":`initial`,"--n-color-disabled":`initial`,"--n-ripple-color":`initial`,"--n-text-color":`initial`,"--n-text-color-hover":`initial`,"--n-text-color-pressed":`initial`,"--n-text-color-focus":`initial`,"--n-text-color-disabled":`initial`},T=d===`tertiary`,E=d==="default",D=T?`default`:d;if(p){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":`#0000`,"--n-text-color":e||r[K(`textColorText`,D)],"--n-text-color-hover":e?Rw(e):r[K(`textColorTextHover`,D)],"--n-text-color-pressed":e?zw(e):r[K(`textColorTextPressed`,D)],"--n-text-color-focus":e?Rw(e):r[K(`textColorTextHover`,D)],"--n-text-color-disabled":e||r[K(`textColorTextDisabled`,D)]}}else if(f||l){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":m||r[K(`rippleColor`,D)],"--n-text-color":e||r[K(`textColorGhost`,D)],"--n-text-color-hover":e?Rw(e):r[K(`textColorGhostHover`,D)],"--n-text-color-pressed":e?zw(e):r[K(`textColorGhostPressed`,D)],"--n-text-color-focus":e?Rw(e):r[K(`textColorGhostHover`,D)],"--n-text-color-disabled":e||r[K(`textColorGhostDisabled`,D)]}}else if(y){let e=E?r.textColor:T?r.textColorTertiary:r[K(`color`,D)],t=m||e,n=d!=="default"&&d!==`tertiary`;w={"--n-color":n?J(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?J(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?J(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?J(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(b||x){let e=E?r.textColor:T?r.textColorTertiary:r[K(`color`,D)],t=m||e;b?(w[`--n-color`]=r.colorTertiary,w[`--n-color-hover`]=r.colorTertiaryHover,w[`--n-color-pressed`]=r.colorTertiaryPressed,w[`--n-color-focus`]=r.colorSecondaryHover,w[`--n-color-disabled`]=r.colorTertiary):(w[`--n-color`]=r.colorQuaternary,w[`--n-color-hover`]=r.colorQuaternaryHover,w[`--n-color-pressed`]=r.colorQuaternaryPressed,w[`--n-color-focus`]=r.colorQuaternaryHover,w[`--n-color-disabled`]=r.colorQuaternary),w[`--n-ripple-color`]=`#0000`,w[`--n-text-color`]=t,w[`--n-text-color-hover`]=t,w[`--n-text-color-pressed`]=t,w[`--n-text-color-focus`]=t,w[`--n-text-color-disabled`]=t}else w={"--n-color":m||r[K(`color`,D)],"--n-color-hover":m?Rw(m):r[K(`colorHover`,D)],"--n-color-pressed":m?zw(m):r[K(`colorPressed`,D)],"--n-color-focus":m?Rw(m):r[K(`colorFocus`,D)],"--n-color-disabled":m||r[K(`colorDisabled`,D)],"--n-ripple-color":m||r[K(`rippleColor`,D)],"--n-text-color":v||(m?r.textColorPrimary:T?r.textColorTertiary:r[K(`textColor`,D)]),"--n-text-color-hover":v||(m?r.textColorHoverPrimary:r[K(`textColorHover`,D)]),"--n-text-color-pressed":v||(m?r.textColorPressedPrimary:r[K(`textColorPressed`,D)]),"--n-text-color-focus":v||(m?r.textColorFocusPrimary:r[K(`textColorFocus`,D)]),"--n-text-color-disabled":v||(m?r.textColorDisabledPrimary:r[K(`textColorDisabled`,D)])};let O={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};O=p?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[K(`border`,D)],"--n-border-hover":r[K(`borderHover`,D)],"--n-border-pressed":r[K(`borderPressed`,D)],"--n-border-focus":r[K(`borderFocus`,D)],"--n-border-disabled":r[K(`borderDisabled`,D)]};let{[K(`height`,c)]:ee,[K(`fontSize`,c)]:te,[K(`padding`,c)]:ne,[K(`paddingRound`,c)]:re,[K(`iconSize`,c)]:ie,[K(`borderRadius`,c)]:ae,[K(`iconMargin`,c)]:oe,waveOpacity:se}=r,ce={"--n-width":g&&!p?ee:`initial`,"--n-height":p?`initial`:ee,"--n-font-size":te,"--n-padding":g||p?`initial`:h?re:ne,"--n-icon-size":ie,"--n-icon-margin":oe,"--n-border-radius":p?`initial`:g||h?ee:ae};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":t,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":se},C),w),O),ce)}),b=o?xp(`button`,B(()=>{let t=``,{dashed:n,type:r,ghost:i,text:a,color:o,round:s,circle:c,textColor:l,secondary:d,tertiary:f,quaternary:p,strong:m}=e;n&&(t+=`a`),i&&(t+=`b`),a&&(t+=`c`),s&&(t+=`d`),c&&(t+=`e`),d&&(t+=`f`),f&&(t+=`g`),p&&(t+=`h`),m&&(t+=`i`),o&&(t+=`j${Gf(o)}`),l&&(t+=`k${Gf(l)}`);let{value:h}=u;return t+=`l${h[0]}`,t+=`m${r[0]}`,t}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:s,mergedFocusable:d,mergedSize:u,showBorder:i,enterPressed:r,rtlEnabled:v,handleMousedown:f,handleKeydown:h,handleBlur:g,handleKeyup:m,handleClick:p,customColorCssVars:B(()=>{let{color:t}=e;if(!t)return null;let n=Rw(t);return{"--n-border-color":t,"--n-border-color-hover":n,"--n-border-color-pressed":zw(t),"--n-border-color-focus":n,"--n-border-color-disabled":t}}),cssVars:o?void 0:y,themeClass:b?.themeClass,onRender:b?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();let r=gp(this.$slots.default,t=>t&&V(`span`,{class:`${e}-button__content`},t));return V(t,{ref:`selfElRef`,class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement===`right`&&r,V(Lx,{width:!0},{default:()=>gp(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&V(`span`,{class:`${e}-button__icon`,style:{margin:_p(this.$slots.default)?`0`:``}},V(ix,null,{default:()=>this.loading?V(Vx,Object.assign({clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20},this.spinProps)):V(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&r,this.text?null:V(zC,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?V(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?V(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),qw=`0!important`,Jw=`-1px!important`;function Yw(e){return G(`${e}-type`,[H(`& +`,[U(`button`,{},[G(`${e}-type`,[W(`border`,{borderLeftWidth:qw}),W(`state-border`,{left:Jw})])])])])}function Xw(e){return G(`${e}-type`,[H(`& +`,[U(`button`,[G(`${e}-type`,[W(`border`,{borderTopWidth:qw}),W(`state-border`,{top:Jw})])])])])}var Zw=U(`button-group`,` + `),G(`dashed`,[W(`border, state-border`,{borderStyle:`dashed !important`})]),G(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),H(`@keyframes button-wave-spread`,{from:{boxShadow:`0 0 0.5px 0 var(--n-ripple-color)`},to:{boxShadow:`0 0 0.5px 4.5px var(--n-ripple-color)`}}),H(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]),Xw=P({name:`Button`,props:Object.assign(Object.assign({},X.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:`button`},type:{type:String,default:`default`},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:`left`},attrType:{type:String,default:`button`},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!ew},spinProps:Object}),slots:Object,setup(e){let t=k(null),n=k(null),r=k(!1),i=ql(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),a=N(Ww,{}),{inlineThemeDisabled:o,mergedClsPrefixRef:s,mergedRtlRef:c,mergedComponentPropsRef:l}=bp(e),{mergedSizeRef:u}=Cp({},{defaultSize:`medium`,mergedSize:t=>{let{size:n}=e;if(n)return n;let{size:r}=a;if(r)return r;let{mergedSize:i}=t||{};return i?i.value:l?.value?.Button?.size||`medium`}}),d=B(()=>e.focusable&&!e.disabled),f=n=>{var r;d.value||n.preventDefault(),!e.nativeFocusBehavior&&(n.preventDefault(),!e.disabled&&d.value&&((r=t.value)==null||r.focus({preventScroll:!0})))},p=t=>{var r;if(!e.disabled&&!e.loading){let{onClick:i}=e;i&&Y(i,t),e.text||(r=n.value)==null||r.play()}},m=t=>{switch(t.key){case`Enter`:if(!e.keyboard)return;r.value=!1}},h=t=>{switch(t.key){case`Enter`:if(!e.keyboard||e.loading){t.preventDefault();return}r.value=!0}},g=()=>{r.value=!1},_=X(`Button`,`-button`,Yw,qw,e,s),v=Jb(`Button`,c,s),y=B(()=>{let{common:{cubicBezierEaseInOut:t,cubicBezierEaseOut:n},self:r}=_.value,{rippleDuration:i,opacityDisabled:a,fontWeight:o,fontWeightStrong:s}=r,c=u.value,{dashed:l,type:d,ghost:f,text:p,color:m,round:h,circle:g,textColor:v,secondary:y,tertiary:b,quaternary:x,strong:S}=e,C={"--n-font-weight":S?s:o},w={"--n-color":`initial`,"--n-color-hover":`initial`,"--n-color-pressed":`initial`,"--n-color-focus":`initial`,"--n-color-disabled":`initial`,"--n-ripple-color":`initial`,"--n-text-color":`initial`,"--n-text-color-hover":`initial`,"--n-text-color-pressed":`initial`,"--n-text-color-focus":`initial`,"--n-text-color-disabled":`initial`},T=d===`tertiary`,E=d==="default",D=T?`default`:d;if(p){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":`#0000`,"--n-text-color":e||r[K(`textColorText`,D)],"--n-text-color-hover":e?Hw(e):r[K(`textColorTextHover`,D)],"--n-text-color-pressed":e?Uw(e):r[K(`textColorTextPressed`,D)],"--n-text-color-focus":e?Hw(e):r[K(`textColorTextHover`,D)],"--n-text-color-disabled":e||r[K(`textColorTextDisabled`,D)]}}else if(f||l){let e=v||m;w={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":m||r[K(`rippleColor`,D)],"--n-text-color":e||r[K(`textColorGhost`,D)],"--n-text-color-hover":e?Hw(e):r[K(`textColorGhostHover`,D)],"--n-text-color-pressed":e?Uw(e):r[K(`textColorGhostPressed`,D)],"--n-text-color-focus":e?Hw(e):r[K(`textColorGhostHover`,D)],"--n-text-color-disabled":e||r[K(`textColorGhostDisabled`,D)]}}else if(y){let e=E?r.textColor:T?r.textColorTertiary:r[K(`color`,D)],t=m||e,n=d!=="default"&&d!==`tertiary`;w={"--n-color":n?J(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?J(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?J(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?J(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(b||x){let e=E?r.textColor:T?r.textColorTertiary:r[K(`color`,D)],t=m||e;b?(w[`--n-color`]=r.colorTertiary,w[`--n-color-hover`]=r.colorTertiaryHover,w[`--n-color-pressed`]=r.colorTertiaryPressed,w[`--n-color-focus`]=r.colorSecondaryHover,w[`--n-color-disabled`]=r.colorTertiary):(w[`--n-color`]=r.colorQuaternary,w[`--n-color-hover`]=r.colorQuaternaryHover,w[`--n-color-pressed`]=r.colorQuaternaryPressed,w[`--n-color-focus`]=r.colorQuaternaryHover,w[`--n-color-disabled`]=r.colorQuaternary),w[`--n-ripple-color`]=`#0000`,w[`--n-text-color`]=t,w[`--n-text-color-hover`]=t,w[`--n-text-color-pressed`]=t,w[`--n-text-color-focus`]=t,w[`--n-text-color-disabled`]=t}else w={"--n-color":m||r[K(`color`,D)],"--n-color-hover":m?Hw(m):r[K(`colorHover`,D)],"--n-color-pressed":m?Uw(m):r[K(`colorPressed`,D)],"--n-color-focus":m?Hw(m):r[K(`colorFocus`,D)],"--n-color-disabled":m||r[K(`colorDisabled`,D)],"--n-ripple-color":m||r[K(`rippleColor`,D)],"--n-text-color":v||(m?r.textColorPrimary:T?r.textColorTertiary:r[K(`textColor`,D)]),"--n-text-color-hover":v||(m?r.textColorHoverPrimary:r[K(`textColorHover`,D)]),"--n-text-color-pressed":v||(m?r.textColorPressedPrimary:r[K(`textColorPressed`,D)]),"--n-text-color-focus":v||(m?r.textColorFocusPrimary:r[K(`textColorFocus`,D)]),"--n-text-color-disabled":v||(m?r.textColorDisabledPrimary:r[K(`textColorDisabled`,D)])};let O={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};O=p?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[K(`border`,D)],"--n-border-hover":r[K(`borderHover`,D)],"--n-border-pressed":r[K(`borderPressed`,D)],"--n-border-focus":r[K(`borderFocus`,D)],"--n-border-disabled":r[K(`borderDisabled`,D)]};let{[K(`height`,c)]:ee,[K(`fontSize`,c)]:te,[K(`padding`,c)]:ne,[K(`paddingRound`,c)]:re,[K(`iconSize`,c)]:ie,[K(`borderRadius`,c)]:ae,[K(`iconMargin`,c)]:oe,waveOpacity:se}=r,ce={"--n-width":g&&!p?ee:`initial`,"--n-height":p?`initial`:ee,"--n-font-size":te,"--n-padding":g||p?`initial`:h?re:ne,"--n-icon-size":ie,"--n-icon-margin":oe,"--n-border-radius":p?`initial`:g||h?ee:ae};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":t,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":se},C),w),O),ce)}),b=o?xp(`button`,B(()=>{let t=``,{dashed:n,type:r,ghost:i,text:a,color:o,round:s,circle:c,textColor:l,secondary:d,tertiary:f,quaternary:p,strong:m}=e;n&&(t+=`a`),i&&(t+=`b`),a&&(t+=`c`),s&&(t+=`d`),c&&(t+=`e`),d&&(t+=`f`),f&&(t+=`g`),p&&(t+=`h`),m&&(t+=`i`),o&&(t+=`j${Gf(o)}`),l&&(t+=`k${Gf(l)}`);let{value:h}=u;return t+=`l${h[0]}`,t+=`m${r[0]}`,t}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:s,mergedFocusable:d,mergedSize:u,showBorder:i,enterPressed:r,rtlEnabled:v,handleMousedown:f,handleKeydown:h,handleBlur:g,handleKeyup:m,handleClick:p,customColorCssVars:B(()=>{let{color:t}=e;if(!t)return null;let n=Hw(t);return{"--n-border-color":t,"--n-border-color-hover":n,"--n-border-color-pressed":Uw(t),"--n-border-color-focus":n,"--n-border-color-disabled":t}}),cssVars:o?void 0:y,themeClass:b?.themeClass,onRender:b?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();let r=gp(this.$slots.default,t=>t&&V(`span`,{class:`${e}-button__content`},t));return V(t,{ref:`selfElRef`,class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement===`right`&&r,V(Lx,{width:!0},{default:()=>gp(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&V(`span`,{class:`${e}-button__icon`,style:{margin:_p(this.$slots.default)?`0`:``}},V(ix,null,{default:()=>this.loading?V(Vx,Object.assign({clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20},this.spinProps)):V(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&r,this.text?null:V(zC,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?V(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?V(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Zw=`0!important`,Qw=`-1px!important`;function $w(e){return G(`${e}-type`,[H(`& +`,[U(`button`,{},[G(`${e}-type`,[W(`border`,{borderLeftWidth:Zw}),W(`state-border`,{left:Qw})])])])])}function eT(e){return G(`${e}-type`,[H(`& +`,[U(`button`,[G(`${e}-type`,[W(`border`,{borderTopWidth:Zw}),W(`state-border`,{top:Qw})])])])])}var tT=U(`button-group`,` flex-wrap: nowrap; display: inline-flex; position: relative; `,[Uc(`vertical`,{flexDirection:`row`},[Uc(`rtl`,[U(`button`,[H(`&:first-child:not(:last-child)`,` - margin-right: ${qw}; - border-top-right-radius: ${qw}; - border-bottom-right-radius: ${qw}; + margin-right: ${Zw}; + border-top-right-radius: ${Zw}; + border-bottom-right-radius: ${Zw}; `),H(`&:last-child:not(:first-child)`,` - margin-left: ${qw}; - border-top-left-radius: ${qw}; - border-bottom-left-radius: ${qw}; + margin-left: ${Zw}; + border-top-left-radius: ${Zw}; + border-bottom-left-radius: ${Zw}; `),H(`&:not(:first-child):not(:last-child)`,` - margin-left: ${qw}; - margin-right: ${qw}; - border-radius: ${qw}; - `),Yw(`default`),G(`ghost`,[Yw(`primary`),Yw(`info`),Yw(`success`),Yw(`warning`),Yw(`error`)])])])]),G(`vertical`,{flexDirection:`column`},[U(`button`,[H(`&:first-child:not(:last-child)`,` - margin-bottom: ${qw}; - margin-left: ${qw}; - margin-right: ${qw}; - border-bottom-left-radius: ${qw}; - border-bottom-right-radius: ${qw}; + margin-left: ${Zw}; + margin-right: ${Zw}; + border-radius: ${Zw}; + `),$w(`default`),G(`ghost`,[$w(`primary`),$w(`info`),$w(`success`),$w(`warning`),$w(`error`)])])])]),G(`vertical`,{flexDirection:`column`},[U(`button`,[H(`&:first-child:not(:last-child)`,` + margin-bottom: ${Zw}; + margin-left: ${Zw}; + margin-right: ${Zw}; + border-bottom-left-radius: ${Zw}; + border-bottom-right-radius: ${Zw}; `),H(`&:last-child:not(:first-child)`,` - margin-top: ${qw}; - margin-left: ${qw}; - margin-right: ${qw}; - border-top-left-radius: ${qw}; - border-top-right-radius: ${qw}; + margin-top: ${Zw}; + margin-left: ${Zw}; + margin-right: ${Zw}; + border-top-left-radius: ${Zw}; + border-top-right-radius: ${Zw}; `),H(`&:not(:first-child):not(:last-child)`,` - margin: ${qw}; - border-radius: ${qw}; - `),Xw(`default`),G(`ghost`,[Xw(`primary`),Xw(`info`),Xw(`success`),Xw(`warning`),Xw(`error`)])])])]),Qw=P({name:`ButtonGroup`,props:{size:String,vertical:Boolean},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=bp(e);return ex(`-button-group`,Zw,t),Un(Bw,e),{rtlEnabled:Jb(`ButtonGroup`,n,t),mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return V(`div`,{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:`group`},this.$slots)}}),$w={titleFontSize:`22px`};function eT(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return Object.assign(Object.assign({},$w),{borderRadius:t,borderColor:q(f,s),borderColorModal:q(p,s),borderColorPopover:q(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:q(f,d),cellColorHoverModal:q(p,d),cellColorHoverPopover:q(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l})}var tT={name:`Calendar`,common:Q,peers:{Button:Ww},self:eT},nT={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function rT(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return Object.assign(Object.assign({},nT),{lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n})}var iT={name:`Card`,common:eS,self:rT},aT={name:`Card`,common:Q,self(e){let t=rT(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}},oT=U(`card-content`,` + margin: ${Zw}; + border-radius: ${Zw}; + `),eT(`default`),G(`ghost`,[eT(`primary`),eT(`info`),eT(`success`),eT(`warning`),eT(`error`)])])])]),nT=P({name:`ButtonGroup`,props:{size:String,vertical:Boolean},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=bp(e);return ex(`-button-group`,tT,t),Un(Ww,e),{rtlEnabled:Jb(`ButtonGroup`,n,t),mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return V(`div`,{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:`group`},this.$slots)}}),rT={titleFontSize:`22px`};function iT(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return Object.assign(Object.assign({},rT),{borderRadius:t,borderColor:q(f,s),borderColorModal:q(p,s),borderColorPopover:q(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:q(f,d),cellColorHoverModal:q(p,d),cellColorHoverPopover:q(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l})}var aT={name:`Calendar`,common:Q,peers:{Button:Jw},self:iT},oT={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function sT(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return Object.assign(Object.assign({},oT),{lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n})}var cT={name:`Card`,common:eS,self:sT},lT={name:`Card`,common:Q,self(e){let t=sT(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}},uT=U(`card-content`,` flex: 1; min-width: 0; box-sizing: border-box; padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); font-size: var(--n-font-size); -`),sT=H([U(`card`,` +`),dT=H([U(`card`,` font-size: var(--n-font-size); line-height: var(--n-line-height); display: flex; @@ -1040,12 +1087,12 @@ border-color .3s var(--n-bezier); background-clip: padding-box; background-color: var(--n-action-color); - `),oT,U(`card-content`,[H(`&:first-child`,` + `),uT,U(`card-content`,[H(`&:first-child`,` padding-top: var(--n-padding-bottom); `)]),W(`content-scrollbar`,` display: flex; flex-direction: column; - `,[H(`>`,[U(`scrollbar-container`,[H(`>`,[oT])])]),H(`&:first-child >`,[U(`scrollbar-container`,[H(`>`,[U(`card-content`,` + `,[H(`>`,[U(`scrollbar-container`,[H(`>`,[uT])])]),H(`&:first-child >`,[U(`scrollbar-container`,[H(`>`,[U(`card-content`,` padding-top: var(--n-padding-bottom); `)])])])]),W(`footer`,` box-sizing: border-box; @@ -1091,7 +1138,7 @@ background: var(--n-color-popover); `,[G(`embedded`,` background-color: var(--n-color-embedded-popover); - `)]))]),cT={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},lT=lp(cT),uT=P({name:`Card`,props:Object.assign(Object.assign({},X.props),cT),slots:Object,setup(e){let t=()=>{let{onClose:t}=e;t&&Y(t)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:a}=bp(e),o=X(`Card`,`-card`,sT,iT,e,r),s=Jb(`Card`,i,r),c=B(()=>e.size||a?.value?.Card?.size||`medium`),l=B(()=>{let e=c.value,{self:{color:t,colorModal:n,colorTarget:r,textColor:i,titleTextColor:a,titleFontWeight:s,borderColor:l,actionColor:u,borderRadius:d,lineHeight:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,closeBorderRadius:v,closeIconSize:y,closeSize:b,boxShadow:x,colorPopover:S,colorEmbedded:C,colorEmbeddedModal:w,colorEmbeddedPopover:T,[K(`padding`,e)]:E,[K(`fontSize`,e)]:D,[K(`titleFontSize`,e)]:O},common:{cubicBezierEaseInOut:ee}}=o.value,{top:te,left:ne,bottom:re}=nl(E);return{"--n-bezier":ee,"--n-border-radius":d,"--n-color":t,"--n-color-modal":n,"--n-color-popover":S,"--n-color-embedded":C,"--n-color-embedded-modal":w,"--n-color-embedded-popover":T,"--n-color-target":r,"--n-text-color":i,"--n-line-height":f,"--n-action-color":u,"--n-title-text-color":a,"--n-title-font-weight":s,"--n-close-icon-color":p,"--n-close-icon-color-hover":m,"--n-close-icon-color-pressed":h,"--n-close-color-hover":g,"--n-close-color-pressed":_,"--n-border-color":l,"--n-box-shadow":x,"--n-padding-top":te,"--n-padding-bottom":re,"--n-padding-left":ne,"--n-font-size":D,"--n-title-font-size":O,"--n-close-size":b,"--n-close-icon-size":y,"--n-close-border-radius":v}}),u=n?xp(`card`,B(()=>c.value[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:o,handleCloseClick:t,cssVars:n?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){let{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:i,onRender:a,embedded:o,tag:s,$slots:c}=this;return a?.(),V(s,{class:[`${r}-card`,this.themeClass,o&&`${r}-card--embedded`,{[`${r}-card--rtl`]:i,[`${r}-card--content-scrollable`]:this.contentScrollable,[`${r}-card--content${typeof e!=`boolean`&&e.content===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!=`boolean`&&e.footer===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},gp(c.cover,e=>{let t=this.cover?pp([this.cover()]):e;return t&&V(`div`,{class:`${r}-card-cover`,role:`none`},t)}),gp(c.header,e=>{let{title:t}=this,n=t?pp(typeof t==`function`?[t()]:[t]):e;return n||this.closable?V(`div`,{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:`heading`},V(`div`,{class:`${r}-card-header__main`,role:`heading`},n),gp(c[`header-extra`],e=>{let t=this.headerExtra?pp([this.headerExtra()]):e;return t&&V(`div`,{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},t)}),this.closable&&V(Ix,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),gp(c.default,e=>{let{content:t}=this,n=t?pp(typeof t==`function`?[t()]:[t]):e;return n?this.contentScrollable?V(oS,{class:`${r}-card__content-scrollbar`,contentClass:[`${r}-card-content`,this.contentClass],contentStyle:this.contentStyle},n):V(`div`,{class:[`${r}-card-content`,this.contentClass],style:this.contentStyle,role:`none`},n):null}),gp(c.footer,e=>{let t=this.footer?pp([this.footer()]):e;return t&&V(`div`,{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:`none`},t)}),gp(c.action,e=>{let t=this.action?pp([this.action()]):e;return t&&V(`div`,{class:`${r}-card__action`,role:`none`},t)}))}});function dT(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var fT={name:`Carousel`,common:Q,self:dT},pT={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function mT(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return Object.assign(Object.assign({},pT),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${J(c,{alpha:.3})}`,textColor:l,textColorDisabled:o})}var hT={name:`Checkbox`,common:eS,self:mT},gT={name:`Checkbox`,common:Q,self(e){let{cardColor:t}=e,n=mT(e);return n.color=`#0000`,n.checkMarkColor=t,n}};function _T(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}var vT={name:`Cascader`,common:Q,peers:{InternalSelectMenu:QS,InternalSelection:FC,Scrollbar:iS,Checkbox:gT,Empty:GS},self:_T},yT=mu(`n-checkbox-group`),bT=()=>V(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},V(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})),xT=()=>V(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},V(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})),ST=H([U(`checkbox`,` + `)]))]),fT={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},pT=lp(fT),mT=P({name:`Card`,props:Object.assign(Object.assign({},X.props),fT),slots:Object,setup(e){let t=()=>{let{onClose:t}=e;t&&Y(t)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:a}=bp(e),o=X(`Card`,`-card`,dT,cT,e,r),s=Jb(`Card`,i,r),c=B(()=>e.size||a?.value?.Card?.size||`medium`),l=B(()=>{let e=c.value,{self:{color:t,colorModal:n,colorTarget:r,textColor:i,titleTextColor:a,titleFontWeight:s,borderColor:l,actionColor:u,borderRadius:d,lineHeight:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,closeBorderRadius:v,closeIconSize:y,closeSize:b,boxShadow:x,colorPopover:S,colorEmbedded:C,colorEmbeddedModal:w,colorEmbeddedPopover:T,[K(`padding`,e)]:E,[K(`fontSize`,e)]:D,[K(`titleFontSize`,e)]:O},common:{cubicBezierEaseInOut:ee}}=o.value,{top:te,left:ne,bottom:re}=nl(E);return{"--n-bezier":ee,"--n-border-radius":d,"--n-color":t,"--n-color-modal":n,"--n-color-popover":S,"--n-color-embedded":C,"--n-color-embedded-modal":w,"--n-color-embedded-popover":T,"--n-color-target":r,"--n-text-color":i,"--n-line-height":f,"--n-action-color":u,"--n-title-text-color":a,"--n-title-font-weight":s,"--n-close-icon-color":p,"--n-close-icon-color-hover":m,"--n-close-icon-color-pressed":h,"--n-close-color-hover":g,"--n-close-color-pressed":_,"--n-border-color":l,"--n-box-shadow":x,"--n-padding-top":te,"--n-padding-bottom":re,"--n-padding-left":ne,"--n-font-size":D,"--n-title-font-size":O,"--n-close-size":b,"--n-close-icon-size":y,"--n-close-border-radius":v}}),u=n?xp(`card`,B(()=>c.value[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:o,handleCloseClick:t,cssVars:n?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){let{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:i,onRender:a,embedded:o,tag:s,$slots:c}=this;return a?.(),V(s,{class:[`${r}-card`,this.themeClass,o&&`${r}-card--embedded`,{[`${r}-card--rtl`]:i,[`${r}-card--content-scrollable`]:this.contentScrollable,[`${r}-card--content${typeof e!=`boolean`&&e.content===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!=`boolean`&&e.footer===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},gp(c.cover,e=>{let t=this.cover?pp([this.cover()]):e;return t&&V(`div`,{class:`${r}-card-cover`,role:`none`},t)}),gp(c.header,e=>{let{title:t}=this,n=t?pp(typeof t==`function`?[t()]:[t]):e;return n||this.closable?V(`div`,{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:`heading`},V(`div`,{class:`${r}-card-header__main`,role:`heading`},n),gp(c[`header-extra`],e=>{let t=this.headerExtra?pp([this.headerExtra()]):e;return t&&V(`div`,{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},t)}),this.closable&&V(Ix,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),gp(c.default,e=>{let{content:t}=this,n=t?pp(typeof t==`function`?[t()]:[t]):e;return n?this.contentScrollable?V(oS,{class:`${r}-card__content-scrollbar`,contentClass:[`${r}-card-content`,this.contentClass],contentStyle:this.contentStyle},n):V(`div`,{class:[`${r}-card-content`,this.contentClass],style:this.contentStyle,role:`none`},n):null}),gp(c.footer,e=>{let t=this.footer?pp([this.footer()]):e;return t&&V(`div`,{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:`none`},t)}),gp(c.action,e=>{let t=this.action?pp([this.action()]):e;return t&&V(`div`,{class:`${r}-card__action`,role:`none`},t)}))}});function hT(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var gT={name:`Carousel`,common:Q,self:hT},_T={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function vT(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return Object.assign(Object.assign({},_T),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${J(c,{alpha:.3})}`,textColor:l,textColorDisabled:o})}var yT={name:`Checkbox`,common:eS,self:vT},bT={name:`Checkbox`,common:Q,self(e){let{cardColor:t}=e,n=vT(e);return n.color=`#0000`,n.checkMarkColor=t,n}};function xT(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}var ST={name:`Cascader`,common:Q,peers:{InternalSelectMenu:QS,InternalSelection:FC,Scrollbar:iS,Checkbox:bT,Empty:GS},self:xT},CT=mu(`n-checkbox-group`),wT=()=>V(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},V(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})),TT=()=>V(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},V(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})),ET=H([U(`checkbox`,` font-size: var(--n-font-size); outline: none; cursor: pointer; @@ -1195,7 +1242,7 @@ --n-merged-color-table: var(--n-color-table-modal); `)),Gc(U(`checkbox`,` --n-merged-color-table: var(--n-color-table-popover); - `))]),CT=P({name:`Checkbox`,props:Object.assign(Object.assign({},X.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){let t=N(yT,null),n=k(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:a,mergedComponentPropsRef:o}=bp(e),s=k(e.defaultChecked),c=lu(j(e,`checked`),s),l=ql(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}else return c.value===e.checkedValue}),u=Cp(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return o?.value?.Checkbox?.size||`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!l.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&l.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,p=X(`Checkbox`,`-checkbox`,ST,hT,e,r);function m(n){if(t&&e.value!==void 0)t.toggleCheckbox(!l.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=u,c=l.value?e.uncheckedValue:e.checkedValue;r&&Y(r,c,n),i&&Y(i,c,n),t&&Y(t,c,n),a(),o(),s.value=c}}function h(e){d.value||m(e)}function g(e){if(!d.value)switch(e.key){case` `:case`Enter`:m(e)}}function _(e){switch(e.key){case` `:e.preventDefault()}}let v={focus:()=>{var e;(e=n.value)==null||e.focus()},blur:()=>{var e;(e=n.value)==null||e.blur()}},y=Jb(`Checkbox`,a,r),b=B(()=>{let{value:e}=f,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:d,borderFocus:m,borderDisabled:h,borderChecked:g,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:T,[K(`fontSize`,e)]:E,[K(`size`,e)]:D}}=p.value;return{"--n-label-line-height":w,"--n-label-font-weight":T,"--n-size":D,"--n-bezier":t,"--n-border-radius":n,"--n-border":d,"--n-border-checked":g,"--n-border-focus":m,"--n-border-disabled":h,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":E,"--n-label-padding":C}}),x=i?xp(`checkbox`,B(()=>f.value[0]),b,e):void 0;return Object.assign(u,v,{rtlEnabled:y,selfRef:n,mergedClsPrefix:r,mergedDisabled:d,renderedChecked:l,mergedTheme:p,labelId:Il(),handleClick:h,handleKeyUp:g,handleKeyDown:_,cssVars:i?void 0:b,themeClass:x?.themeClass,onRender:x?.onRender})},render(){var e;let{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:i,privateInsideTable:a,cssVars:o,labelId:s,label:c,mergedClsPrefix:l,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:p}=this;(e=this.onRender)==null||e.call(this);let m=gp(t.default,e=>c||e?V(`span`,{class:`${l}-checkbox__label`,id:s},c||e):null);return V(`div`,{ref:`selfRef`,class:[`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,i&&`${l}-checkbox--indeterminate`,a&&`${l}-checkbox--inside-table`,m&&`${l}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:`checkbox`,"aria-checked":i?`mixed`:n,"aria-labelledby":s,style:o,onKeyup:d,onKeydown:f,onClick:p,onMousedown:()=>{Wl(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},V(`div`,{class:`${l}-checkbox-box-wrapper`},`\xA0`,V(`div`,{class:`${l}-checkbox-box`},V(ix,null,{default:()=>this.indeterminate?V(`div`,{key:`indeterminate`,class:`${l}-checkbox-icon`},xT()):V(`div`,{key:`check`,class:`${l}-checkbox-icon`},bT())}),V(`div`,{class:`${l}-checkbox-box__border`}))),m)}}),wT={name:`Code`,common:Q,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}};function TT(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var ET={name:`Collapse`,common:Q,self:TT};function DT(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var OT={name:`CollapseTransition`,common:Q,self:DT};function kT(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}var AT={name:`ColorPicker`,common:Q,peers:{Input:$C,Button:Ww},self:kT},jT=P({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(tp(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=N(yp,null),n=B(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),r=B(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:Ub({},e,n)}}}),i=ql(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),a=ql(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),o=B(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),s=B(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),c=B(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),l=B(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=Xt(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=Xt(e))});return i}),u=B(()=>e.breakpoints||t?.mergedBreakpointsRef.value),d=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget;return Un(yp,{mergedThemeHashRef:B(()=>{let{value:e}=n,{value:t}=r,i=t&&Object.keys(t).length!==0,a=e?.name;return a?i?`${a}-${Ec(JSON.stringify(r.value))}`:a:i?Ec(JSON.stringify(r.value)):``}),mergedBreakpointsRef:u,mergedRtlRef:l,mergedIconsRef:o,mergedComponentPropsRef:s,mergedBorderedRef:a,mergedNamespaceRef:i,mergedClsPrefixRef:c,mergedLocaleRef:B(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:B(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:B(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:B(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:p}),{mergedClsPrefix:c,mergedBordered:a,mergedNamespace:i,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):V(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),MT={name:`Popselect`,common:Q,peers:{Popover:uC,InternalSelectMenu:QS}};function NT(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var PT={name:`Select`,common:Q,peers:{InternalSelection:FC,InternalSelectMenu:QS},self:NT},FT={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function IT(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return Object.assign(Object.assign({},FT),{buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})}var LT={name:`Pagination`,common:Q,peers:{Select:PT,Input:$C,Popselect:MT},self(e){let{primaryColor:t,opacity3:n}=e,r=J(t,{alpha:Number(n)}),i=IT(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},RT={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function zT(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:m,heightHuge:h,textColor3:g,opacityDisabled:_}=e;return Object.assign(Object.assign({},RT),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:m,optionHeightHuge:h,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:_})}var BT={name:`Dropdown`,common:Q,peers:{Popover:uC},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=zT(e);return i.colorInverted=r,i.optionColorActive=J(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},VT={padding:`8px 14px`},HT={name:`Tooltip`,common:Q,peers:{Popover:uC},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return Object.assign(Object.assign({},VT),{borderRadius:t,boxShadow:n,color:r,textColor:i})}};function UT(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},VT),{borderRadius:t,boxShadow:n,color:q(r,`rgba(0, 0, 0, .85)`),textColor:r})}var WT=tx({name:`Tooltip`,common:eS,peers:{Popover:lC},self:UT}),GT={name:`Ellipsis`,common:Q,peers:{Tooltip:HT}},KT={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},qT={name:`Radio`,common:Q,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},KT),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${J(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${J(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}},JT={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function YT(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return Object.assign(Object.assign({},JT),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:q(t,g),tdColorHover:q(t,s),tdColorSorting:q(t,s),tdColorStriped:q(t,y),thColor:q(t,o),thColorHover:q(q(t,o),s),thColorSorting:q(q(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:q(n,g),tdColorHoverModal:q(n,s),tdColorSortingModal:q(n,s),tdColorStripedModal:q(n,y),thColorModal:q(n,o),thColorHoverModal:q(q(n,o),s),thColorSortingModal:q(q(n,o),s),tdColorModal:n,borderColorPopover:q(r,g),tdColorHoverPopover:q(r,s),tdColorSortingPopover:q(r,s),tdColorStripedPopover:q(r,y),thColorPopover:q(r,o),thColorHoverPopover:q(q(r,o),s),thColorSortingPopover:q(q(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v})}var XT={name:`DataTable`,common:Q,peers:{Button:Ww,Checkbox:gT,Radio:qT,Pagination:LT,Scrollbar:iS,Empty:KS,Popover:uC,Ellipsis:GT,Dropdown:BT},self(e){let t=YT(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}},ZT=P({name:`Tooltip`,props:Object.assign(Object.assign({},SC),X.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=bp(e),n=X(`Tooltip`,`-tooltip`,void 0,WT,e,t),r=k(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:B(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return V(CC,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function QT(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var $T={name:`Icon`,common:Q,self:QT},eE={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function tE(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return Object.assign(Object.assign({},eE),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u})}var nE={name:`TimePicker`,common:Q,peers:{Scrollbar:iS,Button:Ww,Input:$C},self:tE},rE={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function iE(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return Object.assign(Object.assign({},rE),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:J(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l})}var aE={name:`DatePicker`,common:Q,peers:{Input:$C,Button:Ww,TimePicker:nE,Scrollbar:iS},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=iE(e);return i.itemColorDisabled=q(t,n),i.itemColorIncluded=J(r,{alpha:.15}),i.itemColorHover=q(t,n),i}},oE={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function sE(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},oE),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:q(i,t),thColorModal:q(a,t),thColorPopover:q(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:q(i,s),borderColorModal:q(a,s),borderColorPopover:q(o,s),borderRadius:c})}var cE={name:`Descriptions`,common:Q,self:sE},lE=mu(`n-dialog-provider`),uE={titleFontSize:`18px`,padding:`16px 28px 20px 28px`,iconSize:`28px`,actionSpace:`12px`,contentMargin:`8px 0 16px 0`,iconMargin:`0 4px 0 0`,iconMarginIconTop:`4px 0 8px 0`,closeSize:`22px`,closeIconSize:`18px`,closeMargin:`20px 26px 0 0`,closeMarginIconTop:`10px 16px 0 0`};function dE(e){let{textColor1:t,textColor2:n,modalColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,infoColor:l,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:m,borderRadius:h,fontWeightStrong:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},uE),{fontSize:v,lineHeight:_,border:`1px solid ${m}`,titleTextColor:t,textColor:n,color:r,closeColorHover:s,closeColorPressed:c,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeBorderRadius:h,iconColor:p,iconColorInfo:l,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:h,titleFontWeight:g})}var fE=tx({name:`Dialog`,common:eS,peers:{Button:Uw},self:dE}),pE={name:`Dialog`,common:Q,peers:{Button:Ww},self:dE},mE={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},hE=lp(mE),gE=H([U(`dialog`,` + `))]),DT=P({name:`Checkbox`,props:Object.assign(Object.assign({},X.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){let t=N(CT,null),n=k(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:a,mergedComponentPropsRef:o}=bp(e),s=k(e.defaultChecked),c=lu(j(e,`checked`),s),l=ql(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}else return c.value===e.checkedValue}),u=Cp(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return o?.value?.Checkbox?.size||`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!l.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&l.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:f}=u,p=X(`Checkbox`,`-checkbox`,ET,yT,e,r);function m(n){if(t&&e.value!==void 0)t.toggleCheckbox(!l.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=u,c=l.value?e.uncheckedValue:e.checkedValue;r&&Y(r,c,n),i&&Y(i,c,n),t&&Y(t,c,n),a(),o(),s.value=c}}function h(e){d.value||m(e)}function g(e){if(!d.value)switch(e.key){case` `:case`Enter`:m(e)}}function _(e){switch(e.key){case` `:e.preventDefault()}}let v={focus:()=>{var e;(e=n.value)==null||e.focus()},blur:()=>{var e;(e=n.value)==null||e.blur()}},y=Jb(`Checkbox`,a,r),b=B(()=>{let{value:e}=f,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:d,borderFocus:m,borderDisabled:h,borderChecked:g,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:T,[K(`fontSize`,e)]:E,[K(`size`,e)]:D}}=p.value;return{"--n-label-line-height":w,"--n-label-font-weight":T,"--n-size":D,"--n-bezier":t,"--n-border-radius":n,"--n-border":d,"--n-border-checked":g,"--n-border-focus":m,"--n-border-disabled":h,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":E,"--n-label-padding":C}}),x=i?xp(`checkbox`,B(()=>f.value[0]),b,e):void 0;return Object.assign(u,v,{rtlEnabled:y,selfRef:n,mergedClsPrefix:r,mergedDisabled:d,renderedChecked:l,mergedTheme:p,labelId:Il(),handleClick:h,handleKeyUp:g,handleKeyDown:_,cssVars:i?void 0:b,themeClass:x?.themeClass,onRender:x?.onRender})},render(){var e;let{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:i,privateInsideTable:a,cssVars:o,labelId:s,label:c,mergedClsPrefix:l,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:p}=this;(e=this.onRender)==null||e.call(this);let m=gp(t.default,e=>c||e?V(`span`,{class:`${l}-checkbox__label`,id:s},c||e):null);return V(`div`,{ref:`selfRef`,class:[`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,i&&`${l}-checkbox--indeterminate`,a&&`${l}-checkbox--inside-table`,m&&`${l}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:`checkbox`,"aria-checked":i?`mixed`:n,"aria-labelledby":s,style:o,onKeyup:d,onKeydown:f,onClick:p,onMousedown:()=>{Wl(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},V(`div`,{class:`${l}-checkbox-box-wrapper`},`\xA0`,V(`div`,{class:`${l}-checkbox-box`},V(ix,null,{default:()=>this.indeterminate?V(`div`,{key:`indeterminate`,class:`${l}-checkbox-icon`},TT()):V(`div`,{key:`check`,class:`${l}-checkbox-icon`},wT())}),V(`div`,{class:`${l}-checkbox-box__border`}))),m)}}),OT={name:`Code`,common:Q,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}};function kT(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var AT={name:`Collapse`,common:Q,self:kT};function jT(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var MT={name:`CollapseTransition`,common:Q,self:jT};function NT(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}var PT={name:`ColorPicker`,common:Q,peers:{Input:rw,Button:Jw},self:NT},FT=P({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(tp(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=N(yp,null),n=B(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),r=B(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:Ub({},e,n)}}}),i=ql(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),a=ql(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),o=B(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),s=B(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),c=B(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),l=B(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=Xt(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=Xt(e))});return i}),u=B(()=>e.breakpoints||t?.mergedBreakpointsRef.value),d=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget;return Un(yp,{mergedThemeHashRef:B(()=>{let{value:e}=n,{value:t}=r,i=t&&Object.keys(t).length!==0,a=e?.name;return a?i?`${a}-${Ec(JSON.stringify(r.value))}`:a:i?Ec(JSON.stringify(r.value)):``}),mergedBreakpointsRef:u,mergedRtlRef:l,mergedIconsRef:o,mergedComponentPropsRef:s,mergedBorderedRef:a,mergedNamespaceRef:i,mergedClsPrefixRef:c,mergedLocaleRef:B(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:B(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:B(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:B(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:p}),{mergedClsPrefix:c,mergedBordered:a,mergedNamespace:i,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):V(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),IT={name:`Popselect`,common:Q,peers:{Popover:uC,InternalSelectMenu:QS}};function LT(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var RT={name:`Select`,common:Q,peers:{InternalSelection:FC,InternalSelectMenu:QS},self:LT},zT={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function BT(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return Object.assign(Object.assign({},zT),{buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})}var VT={name:`Pagination`,common:Q,peers:{Select:RT,Input:rw,Popselect:IT},self(e){let{primaryColor:t,opacity3:n}=e,r=J(t,{alpha:Number(n)}),i=BT(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},HT={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function UT(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:m,heightHuge:h,textColor3:g,opacityDisabled:_}=e;return Object.assign(Object.assign({},HT),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:m,optionHeightHuge:h,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:J(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:_})}var WT={name:`Dropdown`,common:Q,peers:{Popover:uC},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=UT(e);return i.colorInverted=r,i.optionColorActive=J(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},GT={padding:`8px 14px`},KT={name:`Tooltip`,common:Q,peers:{Popover:uC},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return Object.assign(Object.assign({},GT),{borderRadius:t,boxShadow:n,color:r,textColor:i})}};function qT(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},GT),{borderRadius:t,boxShadow:n,color:q(r,`rgba(0, 0, 0, .85)`),textColor:r})}var JT=tx({name:`Tooltip`,common:eS,peers:{Popover:lC},self:qT}),YT={name:`Ellipsis`,common:Q,peers:{Tooltip:KT}},XT={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},ZT={name:`Radio`,common:Q,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},XT),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${J(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${J(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}},QT={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function $T(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return Object.assign(Object.assign({},QT),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:q(t,g),tdColorHover:q(t,s),tdColorSorting:q(t,s),tdColorStriped:q(t,y),thColor:q(t,o),thColorHover:q(q(t,o),s),thColorSorting:q(q(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:q(n,g),tdColorHoverModal:q(n,s),tdColorSortingModal:q(n,s),tdColorStripedModal:q(n,y),thColorModal:q(n,o),thColorHoverModal:q(q(n,o),s),thColorSortingModal:q(q(n,o),s),tdColorModal:n,borderColorPopover:q(r,g),tdColorHoverPopover:q(r,s),tdColorSortingPopover:q(r,s),tdColorStripedPopover:q(r,y),thColorPopover:q(r,o),thColorHoverPopover:q(q(r,o),s),thColorSortingPopover:q(q(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v})}var eE={name:`DataTable`,common:Q,peers:{Button:Jw,Checkbox:bT,Radio:ZT,Pagination:VT,Scrollbar:iS,Empty:KS,Popover:uC,Ellipsis:YT,Dropdown:WT},self(e){let t=$T(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}},tE=P({name:`Tooltip`,props:Object.assign(Object.assign({},SC),X.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=bp(e),n=X(`Tooltip`,`-tooltip`,void 0,JT,e,t),r=k(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:B(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return V(CC,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function nE(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var rE={name:`Icon`,common:Q,self:nE},iE={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function aE(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return Object.assign(Object.assign({},iE),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u})}var oE={name:`TimePicker`,common:Q,peers:{Scrollbar:iS,Button:Jw,Input:rw},self:aE},sE={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function cE(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return Object.assign(Object.assign({},sE),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:J(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l})}var lE={name:`DatePicker`,common:Q,peers:{Input:rw,Button:Jw,TimePicker:oE,Scrollbar:iS},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=cE(e);return i.itemColorDisabled=q(t,n),i.itemColorIncluded=J(r,{alpha:.15}),i.itemColorHover=q(t,n),i}},uE={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function dE(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},uE),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:q(i,t),thColorModal:q(a,t),thColorPopover:q(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:q(i,s),borderColorModal:q(a,s),borderColorPopover:q(o,s),borderRadius:c})}var fE={name:`Descriptions`,common:Q,self:dE},pE=mu(`n-dialog-provider`),mE={titleFontSize:`18px`,padding:`16px 28px 20px 28px`,iconSize:`28px`,actionSpace:`12px`,contentMargin:`8px 0 16px 0`,iconMargin:`0 4px 0 0`,iconMarginIconTop:`4px 0 8px 0`,closeSize:`22px`,closeIconSize:`18px`,closeMargin:`20px 26px 0 0`,closeMarginIconTop:`10px 16px 0 0`};function hE(e){let{textColor1:t,textColor2:n,modalColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,infoColor:l,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:m,borderRadius:h,fontWeightStrong:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},mE),{fontSize:v,lineHeight:_,border:`1px solid ${m}`,titleTextColor:t,textColor:n,color:r,closeColorHover:s,closeColorPressed:c,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeBorderRadius:h,iconColor:p,iconColorInfo:l,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:h,titleFontWeight:g})}var gE=tx({name:`Dialog`,common:eS,peers:{Button:qw},self:hE}),_E={name:`Dialog`,common:Q,peers:{Button:Jw},self:hE},vE={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},yE=lp(vE),bE=H([U(`dialog`,` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); @@ -1266,7 +1313,7 @@ `)),U(`dialog`,[Kc(` width: 446px; max-width: calc(100vw - 32px); - `)])]),_E={default:()=>V(bx,null),info:()=>V(bx,null),success:()=>V(Ex,null),warning:()=>V(Ox,null),error:()=>V(_x,null)},vE=P({name:`Dialog`,alias:[`NimbusConfirmCard`,`Confirm`],props:Object.assign(Object.assign({},X.props),mE),slots:Object,setup(e){let{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=bp(e),a=Jb(`Dialog`,i,n),o=B(()=>{let{iconPlacement:n}=e;return n||t?.value?.Dialog?.iconPlacement||`left`});function s(t){let{onPositiveClick:n}=e;n&&n(t)}function c(t){let{onNegativeClick:n}=e;n&&n(t)}function l(){let{onClose:t}=e;t&&t()}let u=X(`Dialog`,`-dialog`,gE,fE,e,n),d=B(()=>{let{type:t}=e,n=o.value,{common:{cubicBezierEaseInOut:r},self:{fontSize:i,lineHeight:a,border:s,titleTextColor:c,textColor:l,color:d,closeBorderRadius:f,closeColorHover:p,closeColorPressed:m,closeIconColor:h,closeIconColorHover:g,closeIconColorPressed:_,closeIconSize:v,borderRadius:y,titleFontWeight:b,titleFontSize:x,padding:S,iconSize:C,actionSpace:w,contentMargin:T,closeSize:E,[n===`top`?`iconMarginIconTop`:`iconMargin`]:D,[n===`top`?`closeMarginIconTop`:`closeMargin`]:O,[K(`iconColor`,t)]:ee}}=u.value,te=nl(D);return{"--n-font-size":i,"--n-icon-color":ee,"--n-bezier":r,"--n-close-margin":O,"--n-icon-margin-top":te.top,"--n-icon-margin-right":te.right,"--n-icon-margin-bottom":te.bottom,"--n-icon-margin-left":te.left,"--n-icon-size":C,"--n-close-size":E,"--n-close-icon-size":v,"--n-close-border-radius":f,"--n-close-color-hover":p,"--n-close-color-pressed":m,"--n-close-icon-color":h,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":_,"--n-color":d,"--n-text-color":l,"--n-border-radius":y,"--n-padding":S,"--n-line-height":a,"--n-border":s,"--n-content-margin":T,"--n-title-font-size":x,"--n-title-font-weight":b,"--n-title-text-color":c,"--n-action-space":w}}),f=r?xp(`dialog`,B(()=>`${e.type[0]}${o.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:a,mergedIconPlacement:o,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:c,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var e;let{bordered:t,mergedIconPlacement:n,cssVars:r,closable:i,showIcon:a,title:o,content:s,action:c,negativeText:l,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:m,mergedTheme:h,loading:g,type:_,mergedClsPrefix:v}=this;(e=this.onRender)==null||e.call(this);let y=a?V(rx,{clsPrefix:v,class:`${v}-dialog__icon`},{default:()=>gp(this.$slots.icon,e=>e||(this.icon?fp(this.icon):_E[this.type]()))}):null,b=gp(this.$slots.action,e=>e||u||l||c?V(`div`,{class:[`${v}-dialog__action`,this.actionClass],style:this.actionStyle},e||(c?[fp(c)]:[this.negativeText&&V(Kw,Object.assign({theme:h.peers.Button,themeOverrides:h.peerOverrides.Button,ghost:!0,size:`small`,onClick:m},f),{default:()=>fp(this.negativeText)}),this.positiveText&&V(Kw,Object.assign({theme:h.peers.Button,themeOverrides:h.peerOverrides.Button,size:`small`,type:_==="default"?`primary`:_,disabled:g,loading:g,onClick:p},d),{default:()=>fp(this.positiveText)})])):null);return V(`div`,{class:[`${v}-dialog`,this.themeClass,this.closable&&`${v}-dialog--closable`,`${v}-dialog--icon-${n}`,t&&`${v}-dialog--bordered`,this.rtlEnabled&&`${v}-dialog--rtl`],style:r,role:`dialog`},i?gp(this.$slots.close,e=>{let t=[`${v}-dialog__close`,this.rtlEnabled&&`${v}-dialog--rtl`];return e?V(`div`,{class:t},e):V(Ix,{focusable:this.closeFocusable,clsPrefix:v,class:t,onClick:this.handleCloseClick})}):null,a&&n===`top`?V(`div`,{class:`${v}-dialog-icon-container`},y):null,V(`div`,{class:[`${v}-dialog__title`,this.titleClass],style:this.titleStyle},a&&n===`left`?y:null,mp(this.$slots.header,()=>[fp(o)])),V(`div`,{class:[`${v}-dialog__content`,b?``:`${v}-dialog__content--last`,this.contentClass],style:this.contentStyle},mp(this.$slots.default,()=>[fp(s)])),b)}});function yE(e){let{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}var bE=tx({name:`Modal`,common:eS,peers:{Scrollbar:rS,Dialog:fE,Card:iT},self:yE}),xE={name:`Modal`,common:Q,peers:{Scrollbar:iS,Dialog:pE,Card:aT},self:yE},SE=`n-draggable`;function CE(e,t){let n,r=B(()=>e.value!==!1),i=B(()=>r.value?SE:``),a=B(()=>{let t=e.value;return t===!0||t===!1?!0:t?t.bounds!==`none`:!0});function o(e){let r=e.querySelector(`.${SE}`);if(!r||!i.value)return;let o=0,s=0,c=0,l=0,u=0,d=0,f,p=null,m=null;function h(t){t.preventDefault(),f=t;let{x:n,y:r,right:i,bottom:a}=e.getBoundingClientRect();s=n,l=r,o=window.innerWidth-i,c=window.innerHeight-a;let{left:p,top:m}=e.style;u=+m.slice(0,-2),d=+p.slice(0,-2)}function g(){m&&=(e.style.top=`${m.y}px`,e.style.left=`${m.x}px`,null),p=null}function _(e){if(!f)return;let{clientX:t,clientY:n}=f,r=e.clientX-t,i=e.clientY-n;a.value&&(r>o?r=o:-r>s&&(r=-s),i>c?i=c:-i>l&&(i=-l)),m={x:r+d,y:i+u},p||=requestAnimationFrame(g)}function v(){f=void 0,p&&=(cancelAnimationFrame(p),null),m&&=(e.style.top=`${m.y}px`,e.style.left=`${m.x}px`,null),t.onEnd(e)}Wl(`mousedown`,r,h),Wl(`mousemove`,window,_),Wl(`mouseup`,window,v),n=()=>{p&&cancelAnimationFrame(p),Gl(`mousedown`,r,h),Gl(`mousemove`,window,_),Gl(`mouseup`,window,v)}}function s(){n&&=(n(),void 0)}return Gr(s),{stopDrag:s,startDrag:o,draggableRef:r,draggableClassRef:i}}var wE=Object.assign(Object.assign({},cT),mE),TE=lp(wE),EE=P({name:`ModalBody`,inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean},wE),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){let t=k(null),n=k(null),r=k(e.show),i=k(null),a=k(null),o=N(bu),s=null;Jn(j(e,`show`),e=>{e&&(s=o.getMousePosition())},{immediate:!0});let{stopDrag:c,startDrag:l,draggableRef:u,draggableClassRef:d}=CE(j(e,`draggable`),{onEnd:e=>{h(e)}}),f=B(()=>ge([e.titleClass,d.value])),p=B(()=>ge([e.headerClass,d.value]));Jn(j(e,`show`),e=>{e&&(r.value=!0)}),Iu(B(()=>e.blockScroll&&r.value));function m(){if(o.transformOriginRef.value===`center`)return``;let{value:e}=i,{value:t}=a;return e===null||t===null?``:n.value?`${e}px ${t+n.value.containerScrollTop}px`:``}function h(e){if(o.transformOriginRef.value===`center`||!s||!n.value)return;let t=n.value.containerScrollTop,{offsetLeft:r,offsetTop:c}=e,l=s.y,u=s.x;i.value=-(r-u),a.value=-(c-l-t),e.style.transformOrigin=m()}function g(e){kn(()=>{h(e)})}function _(t){t.style.transformOrigin=m(),e.onBeforeLeave()}function v(t){let n=t;u.value&&l(n),e.onAfterEnter&&e.onAfterEnter(n)}function y(){r.value=!1,i.value=null,a.value=null,c(),e.onAfterLeave()}function b(){let{onClose:t}=e;t&&t()}function x(){e.onNegativeClick()}function S(){e.onPositiveClick()}let C=k(null);return Jn(C,e=>{e&&kn(()=>{let n=e.el;n&&t.value!==n&&(t.value=n)})}),Un(vu,t),Un(_u,null),Un(xu,null),{mergedTheme:o.mergedThemeRef,appear:o.appearRef,isMounted:o.isMountedRef,mergedClsPrefix:o.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:d,displayed:r,childNodeRef:C,cardHeaderClass:p,dialogTitleClass:f,handlePositiveClick:S,handleNegativeClick:x,handleCloseClick:b,handleAfterEnter:v,handleAfterLeave:y,handleBeforeLeave:_,handleEnter:g}},render(){let{$slots:e,$attrs:t,handleEnter:n,handleAfterEnter:r,handleAfterLeave:i,handleBeforeLeave:a,preset:o,mergedClsPrefix:s}=this,c=null;if(!o){if(c=op(`default`,e.default,{draggableClass:this.draggableClass}),!c){tp(`modal`,`default slot is empty`);return}c=Aa(c),c.props=Fa({class:`${s}-modal`},t,c.props||{})}return this.displayDirective===`show`||this.displayed||this.show?Vn(V(`div`,{role:`none`,class:[`${s}-modal-body-wrapper`,this.maskHidden&&`${s}-modal-body-wrapper--mask-hidden`]},V(oS,{ref:`scrollbarRef`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>[this.renderMask?.call(this),V(Uf,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>V(yo,{name:`fade-in-scale-up-transition`,appear:this.appear??this.isMounted,onEnter:n,onAfterEnter:r,onAfterLeave:i,onBeforeLeave:a},{default:()=>{let t=[[Lo,this.show]],{onClickoutside:n}=this;return n&&t.push([Qu,this.onClickoutside,void 0,{capture:!0}]),Vn(this.preset===`confirm`||this.preset===`dialog`?V(vE,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:`bodyRef`,theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},cp(this.$props,hE),{titleClass:this.dialogTitleClass,"aria-modal":`true`}),e):this.preset===`card`?V(uT,Object.assign({},this.$attrs,{ref:`bodyRef`,class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},cp(this.$props,lT),{headerClass:this.cardHeaderClass,"aria-modal":`true`,role:`dialog`}),e):this.childNodeRef=c,t)}})})]})),[[Lo,this.displayDirective===`if`||this.displayed||this.show]]):null}}),DE=H([U(`modal-container`,` + `)])]),xE={default:()=>V(bx,null),info:()=>V(bx,null),success:()=>V(Ex,null),warning:()=>V(Ox,null),error:()=>V(_x,null)},SE=P({name:`Dialog`,alias:[`NimbusConfirmCard`,`Confirm`],props:Object.assign(Object.assign({},X.props),vE),slots:Object,setup(e){let{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=bp(e),a=Jb(`Dialog`,i,n),o=B(()=>{let{iconPlacement:n}=e;return n||t?.value?.Dialog?.iconPlacement||`left`});function s(t){let{onPositiveClick:n}=e;n&&n(t)}function c(t){let{onNegativeClick:n}=e;n&&n(t)}function l(){let{onClose:t}=e;t&&t()}let u=X(`Dialog`,`-dialog`,bE,gE,e,n),d=B(()=>{let{type:t}=e,n=o.value,{common:{cubicBezierEaseInOut:r},self:{fontSize:i,lineHeight:a,border:s,titleTextColor:c,textColor:l,color:d,closeBorderRadius:f,closeColorHover:p,closeColorPressed:m,closeIconColor:h,closeIconColorHover:g,closeIconColorPressed:_,closeIconSize:v,borderRadius:y,titleFontWeight:b,titleFontSize:x,padding:S,iconSize:C,actionSpace:w,contentMargin:T,closeSize:E,[n===`top`?`iconMarginIconTop`:`iconMargin`]:D,[n===`top`?`closeMarginIconTop`:`closeMargin`]:O,[K(`iconColor`,t)]:ee}}=u.value,te=nl(D);return{"--n-font-size":i,"--n-icon-color":ee,"--n-bezier":r,"--n-close-margin":O,"--n-icon-margin-top":te.top,"--n-icon-margin-right":te.right,"--n-icon-margin-bottom":te.bottom,"--n-icon-margin-left":te.left,"--n-icon-size":C,"--n-close-size":E,"--n-close-icon-size":v,"--n-close-border-radius":f,"--n-close-color-hover":p,"--n-close-color-pressed":m,"--n-close-icon-color":h,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":_,"--n-color":d,"--n-text-color":l,"--n-border-radius":y,"--n-padding":S,"--n-line-height":a,"--n-border":s,"--n-content-margin":T,"--n-title-font-size":x,"--n-title-font-weight":b,"--n-title-text-color":c,"--n-action-space":w}}),f=r?xp(`dialog`,B(()=>`${e.type[0]}${o.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:a,mergedIconPlacement:o,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:c,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var e;let{bordered:t,mergedIconPlacement:n,cssVars:r,closable:i,showIcon:a,title:o,content:s,action:c,negativeText:l,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:m,mergedTheme:h,loading:g,type:_,mergedClsPrefix:v}=this;(e=this.onRender)==null||e.call(this);let y=a?V(rx,{clsPrefix:v,class:`${v}-dialog__icon`},{default:()=>gp(this.$slots.icon,e=>e||(this.icon?fp(this.icon):xE[this.type]()))}):null,b=gp(this.$slots.action,e=>e||u||l||c?V(`div`,{class:[`${v}-dialog__action`,this.actionClass],style:this.actionStyle},e||(c?[fp(c)]:[this.negativeText&&V(Xw,Object.assign({theme:h.peers.Button,themeOverrides:h.peerOverrides.Button,ghost:!0,size:`small`,onClick:m},f),{default:()=>fp(this.negativeText)}),this.positiveText&&V(Xw,Object.assign({theme:h.peers.Button,themeOverrides:h.peerOverrides.Button,size:`small`,type:_==="default"?`primary`:_,disabled:g,loading:g,onClick:p},d),{default:()=>fp(this.positiveText)})])):null);return V(`div`,{class:[`${v}-dialog`,this.themeClass,this.closable&&`${v}-dialog--closable`,`${v}-dialog--icon-${n}`,t&&`${v}-dialog--bordered`,this.rtlEnabled&&`${v}-dialog--rtl`],style:r,role:`dialog`},i?gp(this.$slots.close,e=>{let t=[`${v}-dialog__close`,this.rtlEnabled&&`${v}-dialog--rtl`];return e?V(`div`,{class:t},e):V(Ix,{focusable:this.closeFocusable,clsPrefix:v,class:t,onClick:this.handleCloseClick})}):null,a&&n===`top`?V(`div`,{class:`${v}-dialog-icon-container`},y):null,V(`div`,{class:[`${v}-dialog__title`,this.titleClass],style:this.titleStyle},a&&n===`left`?y:null,mp(this.$slots.header,()=>[fp(o)])),V(`div`,{class:[`${v}-dialog__content`,b?``:`${v}-dialog__content--last`,this.contentClass],style:this.contentStyle},mp(this.$slots.default,()=>[fp(s)])),b)}});function CE(e){let{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}var wE=tx({name:`Modal`,common:eS,peers:{Scrollbar:rS,Dialog:gE,Card:cT},self:CE}),TE={name:`Modal`,common:Q,peers:{Scrollbar:iS,Dialog:_E,Card:lT},self:CE},EE=`n-draggable`;function DE(e,t){let n,r=B(()=>e.value!==!1),i=B(()=>r.value?EE:``),a=B(()=>{let t=e.value;return t===!0||t===!1?!0:t?t.bounds!==`none`:!0});function o(e){let r=e.querySelector(`.${EE}`);if(!r||!i.value)return;let o=0,s=0,c=0,l=0,u=0,d=0,f,p=null,m=null;function h(t){t.preventDefault(),f=t;let{x:n,y:r,right:i,bottom:a}=e.getBoundingClientRect();s=n,l=r,o=window.innerWidth-i,c=window.innerHeight-a;let{left:p,top:m}=e.style;u=+m.slice(0,-2),d=+p.slice(0,-2)}function g(){m&&=(e.style.top=`${m.y}px`,e.style.left=`${m.x}px`,null),p=null}function _(e){if(!f)return;let{clientX:t,clientY:n}=f,r=e.clientX-t,i=e.clientY-n;a.value&&(r>o?r=o:-r>s&&(r=-s),i>c?i=c:-i>l&&(i=-l)),m={x:r+d,y:i+u},p||=requestAnimationFrame(g)}function v(){f=void 0,p&&=(cancelAnimationFrame(p),null),m&&=(e.style.top=`${m.y}px`,e.style.left=`${m.x}px`,null),t.onEnd(e)}Wl(`mousedown`,r,h),Wl(`mousemove`,window,_),Wl(`mouseup`,window,v),n=()=>{p&&cancelAnimationFrame(p),Gl(`mousedown`,r,h),Gl(`mousemove`,window,_),Gl(`mouseup`,window,v)}}function s(){n&&=(n(),void 0)}return Gr(s),{stopDrag:s,startDrag:o,draggableRef:r,draggableClassRef:i}}var OE=Object.assign(Object.assign({},fT),vE),kE=lp(OE),AE=P({name:`ModalBody`,inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean},OE),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){let t=k(null),n=k(null),r=k(e.show),i=k(null),a=k(null),o=N(bu),s=null;Jn(j(e,`show`),e=>{e&&(s=o.getMousePosition())},{immediate:!0});let{stopDrag:c,startDrag:l,draggableRef:u,draggableClassRef:d}=DE(j(e,`draggable`),{onEnd:e=>{h(e)}}),f=B(()=>ge([e.titleClass,d.value])),p=B(()=>ge([e.headerClass,d.value]));Jn(j(e,`show`),e=>{e&&(r.value=!0)}),Iu(B(()=>e.blockScroll&&r.value));function m(){if(o.transformOriginRef.value===`center`)return``;let{value:e}=i,{value:t}=a;return e===null||t===null?``:n.value?`${e}px ${t+n.value.containerScrollTop}px`:``}function h(e){if(o.transformOriginRef.value===`center`||!s||!n.value)return;let t=n.value.containerScrollTop,{offsetLeft:r,offsetTop:c}=e,l=s.y,u=s.x;i.value=-(r-u),a.value=-(c-l-t),e.style.transformOrigin=m()}function g(e){kn(()=>{h(e)})}function _(t){t.style.transformOrigin=m(),e.onBeforeLeave()}function v(t){let n=t;u.value&&l(n),e.onAfterEnter&&e.onAfterEnter(n)}function y(){r.value=!1,i.value=null,a.value=null,c(),e.onAfterLeave()}function b(){let{onClose:t}=e;t&&t()}function x(){e.onNegativeClick()}function S(){e.onPositiveClick()}let C=k(null);return Jn(C,e=>{e&&kn(()=>{let n=e.el;n&&t.value!==n&&(t.value=n)})}),Un(vu,t),Un(_u,null),Un(xu,null),{mergedTheme:o.mergedThemeRef,appear:o.appearRef,isMounted:o.isMountedRef,mergedClsPrefix:o.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:d,displayed:r,childNodeRef:C,cardHeaderClass:p,dialogTitleClass:f,handlePositiveClick:S,handleNegativeClick:x,handleCloseClick:b,handleAfterEnter:v,handleAfterLeave:y,handleBeforeLeave:_,handleEnter:g}},render(){let{$slots:e,$attrs:t,handleEnter:n,handleAfterEnter:r,handleAfterLeave:i,handleBeforeLeave:a,preset:o,mergedClsPrefix:s}=this,c=null;if(!o){if(c=op(`default`,e.default,{draggableClass:this.draggableClass}),!c){tp(`modal`,`default slot is empty`);return}c=Aa(c),c.props=Fa({class:`${s}-modal`},t,c.props||{})}return this.displayDirective===`show`||this.displayed||this.show?Vn(V(`div`,{role:`none`,class:[`${s}-modal-body-wrapper`,this.maskHidden&&`${s}-modal-body-wrapper--mask-hidden`]},V(oS,{ref:`scrollbarRef`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${s}-modal-scroll-content`},{default:()=>[this.renderMask?.call(this),V(Uf,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>V(yo,{name:`fade-in-scale-up-transition`,appear:this.appear??this.isMounted,onEnter:n,onAfterEnter:r,onAfterLeave:i,onBeforeLeave:a},{default:()=>{let t=[[Lo,this.show]],{onClickoutside:n}=this;return n&&t.push([Qu,this.onClickoutside,void 0,{capture:!0}]),Vn(this.preset===`confirm`||this.preset===`dialog`?V(SE,Object.assign({},this.$attrs,{class:[`${s}-modal`,this.$attrs.class],ref:`bodyRef`,theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},cp(this.$props,yE),{titleClass:this.dialogTitleClass,"aria-modal":`true`}),e):this.preset===`card`?V(mT,Object.assign({},this.$attrs,{ref:`bodyRef`,class:[`${s}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},cp(this.$props,pT),{headerClass:this.cardHeaderClass,"aria-modal":`true`,role:`dialog`}),e):this.childNodeRef=c,t)}})})]})),[[Lo,this.displayDirective===`if`||this.displayed||this.show]]):null}}),jE=H([U(`modal-container`,` position: fixed; left: 0; top: 0; @@ -1299,15 +1346,15 @@ color: var(--n-text-color); margin: auto; box-shadow: var(--n-box-shadow); - `,[iC({duration:`.25s`,enterScale:`.5`}),H(`.${SE}`,` + `,[iC({duration:`.25s`,enterScale:`.5`}),H(`.${EE}`,` cursor: move; user-select: none; - `)])]),OE=P({name:`Modal`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign(Object.assign({},X.props),{show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:`if`},transformOrigin:{type:String,default:`mouse`},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),wE),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}}),slots:Object,setup(e){let t=k(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:i}=bp(e),a=X(`Modal`,`-modal`,DE,bE,e,n),o=cu(64),s=ru(),c=uu(),l=e.internalDialog?N(lE,null):null,u=e.internalModal?N(yu,null):null,d=ku();function f(t){let{onUpdateShow:n,"onUpdate:show":r,onHide:i}=e;n&&Y(n,t),r&&Y(r,t),i&&!t&&i(t)}function p(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&f(!1)}):f(!1)}function m(){let{onPositiveClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&f(!1)}):f(!1)}function h(){let{onNegativeClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&f(!1)}):f(!1)}function g(){let{onBeforeLeave:t,onBeforeHide:n}=e;t&&Y(t),n&&n()}function _(){let{onAfterLeave:t,onAfterHide:n}=e;t&&Y(t),n&&n()}function v(n){let{onMaskClick:r}=e;r&&r(n),e.maskClosable&&t.value?.contains($c(n))&&f(!1)}function y(t){var n;(n=e.onEsc)==null||n.call(e),e.show&&e.closeOnEsc&&ep(t)&&(d.value||f(!1))}Un(bu,{getMousePosition:()=>{let e=l||u;if(e){let{clickedRef:t,clickedPositionRef:n}=e;if(t.value&&n.value)return n.value}return o.value?s.value:null},mergedClsPrefixRef:n,mergedThemeRef:a,isMountedRef:c,appearRef:j(e,`internalAppear`),transformOriginRef:j(e,`transformOrigin`)});let b=B(()=>{let{common:{cubicBezierEaseOut:e},self:{boxShadow:t,color:n,textColor:r}}=a.value;return{"--n-bezier-ease-out":e,"--n-box-shadow":t,"--n-color":n,"--n-text-color":r}}),x=i?xp(`theme-class`,void 0,b,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:c,containerRef:t,presetProps:B(()=>cp(e,TE)),handleEsc:y,handleAfterLeave:_,handleClickoutside:v,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:h,handlePositiveClick:m,handleCloseClick:p,cssVars:i?void 0:b,themeClass:x?.themeClass,onRender:x?.onRender}},render(){let{mergedClsPrefix:e}=this;return V(md,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)==null||t.call(this);let{showMask:n}=this;return Vn(V(`div`,{role:`none`,ref:`containerRef`,class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},V(EE,Object.assign({style:this.overlayStyle},this.$attrs,{ref:`bodyWrapper`,displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!n},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>V(yo,{name:`fade-in-transition`,key:`mask`,appear:this.internalAppear??this.isMounted},{default:()=>this.show?V(`div`,{"aria-hidden":!0,ref:`containerRef`,class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null}):void 0}),this.$slots)),[[nd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),kE={name:`LoadingBar`,common:Q,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},AE=mu(`n-message-api`),jE=mu(`n-message-provider`),ME={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function NE(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},ME),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var PE={name:`Message`,common:eS,self:NE},FE={name:`Message`,common:Q,self:NE},IE={icon:Function,type:{type:String,default:`info`},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function},LE=H([U(`message-wrapper`,` + `)])]),ME=P({name:`Modal`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign(Object.assign({},X.props),{show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:`if`},transformOrigin:{type:String,default:`mouse`},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),OE),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}}),slots:Object,setup(e){let t=k(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:i}=bp(e),a=X(`Modal`,`-modal`,jE,wE,e,n),o=cu(64),s=ru(),c=uu(),l=e.internalDialog?N(pE,null):null,u=e.internalModal?N(yu,null):null,d=ku();function f(t){let{onUpdateShow:n,"onUpdate:show":r,onHide:i}=e;n&&Y(n,t),r&&Y(r,t),i&&!t&&i(t)}function p(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&f(!1)}):f(!1)}function m(){let{onPositiveClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&f(!1)}):f(!1)}function h(){let{onNegativeClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&f(!1)}):f(!1)}function g(){let{onBeforeLeave:t,onBeforeHide:n}=e;t&&Y(t),n&&n()}function _(){let{onAfterLeave:t,onAfterHide:n}=e;t&&Y(t),n&&n()}function v(n){let{onMaskClick:r}=e;r&&r(n),e.maskClosable&&t.value?.contains($c(n))&&f(!1)}function y(t){var n;(n=e.onEsc)==null||n.call(e),e.show&&e.closeOnEsc&&ep(t)&&(d.value||f(!1))}Un(bu,{getMousePosition:()=>{let e=l||u;if(e){let{clickedRef:t,clickedPositionRef:n}=e;if(t.value&&n.value)return n.value}return o.value?s.value:null},mergedClsPrefixRef:n,mergedThemeRef:a,isMountedRef:c,appearRef:j(e,`internalAppear`),transformOriginRef:j(e,`transformOrigin`)});let b=B(()=>{let{common:{cubicBezierEaseOut:e},self:{boxShadow:t,color:n,textColor:r}}=a.value;return{"--n-bezier-ease-out":e,"--n-box-shadow":t,"--n-color":n,"--n-text-color":r}}),x=i?xp(`theme-class`,void 0,b,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:c,containerRef:t,presetProps:B(()=>cp(e,kE)),handleEsc:y,handleAfterLeave:_,handleClickoutside:v,handleBeforeLeave:g,doUpdateShow:f,handleNegativeClick:h,handlePositiveClick:m,handleCloseClick:p,cssVars:i?void 0:b,themeClass:x?.themeClass,onRender:x?.onRender}},render(){let{mergedClsPrefix:e}=this;return V(md,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)==null||t.call(this);let{showMask:n}=this;return Vn(V(`div`,{role:`none`,ref:`containerRef`,class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},V(AE,Object.assign({style:this.overlayStyle},this.$attrs,{ref:`bodyWrapper`,displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!n},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>V(yo,{name:`fade-in-transition`,key:`mask`,appear:this.internalAppear??this.isMounted},{default:()=>this.show?V(`div`,{"aria-hidden":!0,ref:`containerRef`,class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null}):void 0}),this.$slots)),[[nd,{zIndex:this.zIndex,enabled:this.show}]])}})}}),NE={name:`LoadingBar`,common:Q,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},PE=mu(`n-message-api`),FE=mu(`n-message-provider`),IE={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function LE(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},IE),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var RE={name:`Message`,common:eS,self:LE},zE={name:`Message`,common:Q,self:LE},BE={icon:Function,type:{type:String,default:`info`},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function},VE=H([U(`message-wrapper`,` margin: var(--n-margin); z-index: 0; transform-origin: top center; display: flex; - `,[GC({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),U(`message`,` + `,[qC({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),U(`message`,` box-sizing: border-box; display: flex; align-items: center; @@ -1396,7 +1443,7 @@ right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),RE={info:()=>V(bx,null),success:()=>V(Ex,null),warning:()=>V(Ox,null),error:()=>V(_x,null),default:()=>null},zE=P({name:`Message`,props:Object.assign(Object.assign({},IE),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=bp(e),{props:r,mergedClsPrefixRef:i}=N(jE),a=Jb(`Message`,n,i),o=X(`Message`,`-message`,LE,PE,r,i),s=B(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[K(`textColor`,t)]:S,[K(`boxShadow`,t)]:C,[K(`color`,t)]:w,[K(`closeColorHover`,t)]:T,[K(`closeColorPressed`,t)]:E,[K(`closeIconColor`,t)]:D,[K(`closeIconColorPressed`,t)]:O,[K(`closeIconColorHover`,t)]:ee}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":ee,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?xp(`message`,B(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return V(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):V(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=BE(c,t,i,this.spinProps))&&u?V(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},V(ix,null,{default:()=>d})):null,V(`div`,{class:`${i}-message__content`},fp(r)),n?V(Ix,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function BE(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?V(Vx,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):RE[t]();return e?V(rx,{clsPrefix:n,key:t},{default:()=>e}):null}}var VE=P({name:`MessageEnvironment`,props:Object.assign(Object.assign({},IE),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=k(!0);Vr(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return V(Lx,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?V(zE,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),HE=P({name:`MessageProvider`,props:Object.assign(Object.assign({},X.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=bp(e),n=k([]),r=k({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};Un(jE,{props:e,mergedClsPrefixRef:t}),Un(AE,i);function a(t,i){let a=Il(),o=Vt(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return V(pa,null,(e=this.$slots).default?.call(e),this.messageList.length?V(lr,{to:this.to??`body`},V(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>V(VE,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},dp(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}});function UE(){let e=N(AE,null);return e===null&&rp(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}var WE={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function GE(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},WE),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}var KE={name:`Notification`,common:Q,peers:{Scrollbar:iS},self:GE};function qE(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var JE={name:`Divider`,common:Q,self:qE};function YE(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}var XE={name:`Drawer`,common:Q,peers:{Scrollbar:iS},self:YE},ZE={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},QE={name:`DynamicInput`,common:Q,peers:{Input:$C,Button:Ww},self(){return ZE}};function $E(){return ZE}var eD=tx({name:`DynamicInput`,common:eS,peers:{Input:tw,Button:Uw},self:$E}),tD=mu(`n-dynamic-input`),nD=P({name:`DynamicInputInputPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:``},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){let{mergedThemeRef:e,placeholderRef:t}=N(tD);return{mergedTheme:e,placeholder:t}},render(){let{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:i,disabled:a}=this;return V(`div`,{class:`${r}-dynamic-input-preset-input`},V(lw,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:i,disabled:a}))}}),rD=P({name:`DynamicInputPairPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:``,value:``})},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){let{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=N(tD);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(t){e.onUpdateValue({key:t,value:e.value.value})},handleValueInput(t){e.onUpdateValue({key:e.value.key,value:t})}}},render(){let{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:i,disabled:a}=this;return V(`div`,{class:`${i}-dynamic-input-preset-pair`},V(lw,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${i}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput,disabled:a}),V(lw,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${i}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput,disabled:a}))}}),iD=U(`dynamic-input`,{width:`100%`},[U(`dynamic-input-item`,` + `)])]),HE={info:()=>V(bx,null),success:()=>V(Ex,null),warning:()=>V(Ox,null),error:()=>V(_x,null),default:()=>null},UE=P({name:`Message`,props:Object.assign(Object.assign({},BE),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=bp(e),{props:r,mergedClsPrefixRef:i}=N(FE),a=Jb(`Message`,n,i),o=X(`Message`,`-message`,VE,RE,r,i),s=B(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[K(`textColor`,t)]:S,[K(`boxShadow`,t)]:C,[K(`color`,t)]:w,[K(`closeColorHover`,t)]:T,[K(`closeColorPressed`,t)]:E,[K(`closeIconColor`,t)]:D,[K(`closeIconColorPressed`,t)]:O,[K(`closeIconColorHover`,t)]:ee}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":ee,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?xp(`message`,B(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:c,handleClose:l,showIcon:u}=this;s?.();let d;return V(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):V(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=WE(c,t,i,this.spinProps))&&u?V(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},V(ix,null,{default:()=>d})):null,V(`div`,{class:`${i}-message__content`},fp(r)),n?V(Ix,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function WE(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?V(Vx,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):HE[t]();return e?V(rx,{clsPrefix:n,key:t},{default:()=>e}):null}}var GE=P({name:`MessageEnvironment`,props:Object.assign(Object.assign({},BE),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=k(!0);Vr(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return V(Lx,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?V(UE,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),KE=P({name:`MessageProvider`,props:Object.assign(Object.assign({},X.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=bp(e),n=k([]),r=k({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};Un(FE,{props:e,mergedClsPrefixRef:t}),Un(PE,i);function a(t,i){let a=Il(),o=Vt(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return V(pa,null,(e=this.$slots).default?.call(e),this.messageList.length?V(lr,{to:this.to??`body`},V(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>V(GE,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},dp(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}});function qE(){let e=N(PE,null);return e===null&&rp(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}var JE={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function YE(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},JE),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}var XE={name:`Notification`,common:Q,peers:{Scrollbar:iS},self:YE};function ZE(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var QE={name:`Divider`,common:Q,self:ZE};function $E(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}var eD={name:`Drawer`,common:Q,peers:{Scrollbar:iS},self:$E},tD={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},nD={name:`DynamicInput`,common:Q,peers:{Input:rw,Button:Jw},self(){return tD}};function rD(){return tD}var iD=tx({name:`DynamicInput`,common:eS,peers:{Input:aw,Button:qw},self:rD}),aD=mu(`n-dynamic-input`),oD=P({name:`DynamicInputInputPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:``},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){let{mergedThemeRef:e,placeholderRef:t}=N(aD);return{mergedTheme:e,placeholder:t}},render(){let{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:i,disabled:a}=this;return V(`div`,{class:`${r}-dynamic-input-preset-input`},V(pw,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:i,disabled:a}))}}),sD=P({name:`DynamicInputPairPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:``,value:``})},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){let{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=N(aD);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(t){e.onUpdateValue({key:t,value:e.value.value})},handleValueInput(t){e.onUpdateValue({key:e.value.key,value:t})}}},render(){let{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:i,disabled:a}=this;return V(`div`,{class:`${i}-dynamic-input-preset-pair`},V(pw,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${i}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput,disabled:a}),V(pw,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${i}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput,disabled:a}))}}),cD=U(`dynamic-input`,{width:`100%`},[U(`dynamic-input-item`,` margin-bottom: 10px; display: flex; flex-wrap: nowrap; @@ -1414,7 +1461,7 @@ `,[G(`icon`,{cursor:`pointer`})]),H(`&:last-child`,{marginBottom:0})]),U(`form-item`,` padding-top: 0 !important; margin-right: 0 !important; - `,[U(`form-item-blank`,{paddingTop:`0 !important`})])]),aD=new WeakMap,oD=P({name:`DynamicInput`,props:Object.assign(Object.assign({},X.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:`input`},keyField:String,itemClass:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:``},valuePlaceholder:{type:String,default:``},placeholder:{type:String,default:``},disabled:Boolean,showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),setup(e,{slots:t}){let{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:i,inlineThemeDisabled:a}=bp(),o=N(Sp,null),s=k(e.defaultValue),c=lu(j(e,`value`),s),l=X(`DynamicInput`,`-dynamic-input`,iD,eD,e,r),u=B(()=>{let{value:t}=c;if(Array.isArray(t)){let{max:n}=e;return n!==void 0&&t.length>=n}return!1}),d=B(()=>{let{value:t}=c;return Array.isArray(t)?t.length<=e.min:!0}),f=B(()=>n?.value?.DynamicInput?.buttonSize);function p(t){let{onInput:n,"onUpdate:value":r,onUpdateValue:i}=e;n&&Y(n,t),r&&Y(r,t),i&&Y(i,t),s.value=t}function m(e,t){if(typeof e!=`object`||!e)return t;let n=Jt(e)?Yt(e):e,r=aD.get(n);return r===void 0&&aD.set(n,r=Il()),r}function h(e,t){let{value:n}=c,r=Array.from(n??[]),i=r[e];if(r[e]=t,i&&t&&typeof i==`object`&&typeof t==`object`){let e=Jt(i)?Yt(i):i,n=Jt(t)?Yt(t):t,r=aD.get(e);r!==void 0&&aD.set(n,r)}p(r)}function g(){_(-1)}function _(n){let{value:r}=c,{onCreate:i}=e,a=Array.from(r??[]);if(i)a.splice(n+1,0,i(n+1)),p(a);else if(t.default)a.splice(n+1,0,null),p(a);else switch(e.preset){case`input`:a.splice(n+1,0,``),p(a);break;case`pair`:a.splice(n+1,0,{key:``,value:``}),p(a);break}}function v(t){let{value:n}=c;if(!Array.isArray(n))return;let{min:r}=e;if(n.length<=r)return;let{onRemove:i}=e;i&&i(t);let a=Array.from(n);a.splice(t,1),p(a)}function y(e,t,n){if(t<0||n<0||t>=e.length||n>=e.length||t===n)return;let r=e[t];e[t]=e[n],e[n]=r}function b(e,t){let{value:n}=c;if(!Array.isArray(n))return;let r=Array.from(n);e===`up`&&y(r,t,t-1),e===`down`&&y(r,t,t+1),p(r)}Un(tD,{mergedThemeRef:l,keyPlaceholderRef:j(e,`keyPlaceholder`),valuePlaceholderRef:j(e,`valuePlaceholder`),placeholderRef:j(e,`placeholder`)});let x=Jb(`DynamicInput`,i,r),S=B(()=>{let{self:{actionMargin:e,actionMarginRtl:t}}=l.value;return{"--action-margin":e,"--action-margin-rtl":t}}),C=a?xp(`dynamic-input`,void 0,S,e):void 0;return{locale:Kb(`DynamicInput`).localeRef,rtlEnabled:x,buttonSize:f,mergedClsPrefix:r,NFormItem:o,uncontrolledValue:s,mergedValue:c,insertionDisabled:u,removeDisabled:d,handleCreateClick:g,ensureKey:m,handleValueChange:h,remove:v,move:b,createItem:_,mergedTheme:l,cssVars:a?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender}},render(){let{$slots:e,itemClass:t,buttonSize:n,mergedClsPrefix:r,mergedValue:i,locale:a,mergedTheme:o,keyField:s,itemStyle:c,preset:l,showSortButton:u,NFormItem:d,ensureKey:f,handleValueChange:p,remove:m,createItem:h,move:g,onRender:_,disabled:v}=this;return _?.(),V(`div`,{class:[`${r}-dynamic-input`,this.rtlEnabled&&`${r}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(i)||i.length===0?V(Kw,Object.assign({block:!0,ghost:!0,dashed:!0,size:n},this.createButtonProps,{disabled:this.insertionDisabled||v,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>mp(e[`create-button-default`],()=>[a.create]),icon:()=>mp(e[`create-button-icon`],()=>[V(rx,{clsPrefix:r},{default:()=>V(ax,null)})])}):i.map((a,_)=>V(`div`,{key:s?a[s]:f(a,_),"data-key":s?a[s]:f(a,_),class:[`${r}-dynamic-input-item`,t],style:c},hp(e.default,{value:i[_],index:_},()=>[l===`input`?V(nD,{disabled:v,clsPrefix:r,value:i[_],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${_}]`:void 0,onUpdateValue:e=>{p(_,e)}}):l===`pair`?V(rD,{disabled:v,clsPrefix:r,value:i[_],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${_}]`:void 0,onUpdateValue:e=>{p(_,e)}}):null]),hp(e.action,{value:i[_],index:_,create:h,remove:m,move:g},()=>[V(`div`,{class:`${r}-dynamic-input-item__action`},V(Qw,{size:n},{default:()=>[V(Kw,{disabled:this.removeDisabled||v,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,circle:!0,onClick:()=>{m(_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(xx,null)})}),V(Kw,{disabled:this.insertionDisabled||v,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{h(_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(ax,null)})}),u?V(Kw,{disabled:_===0||v,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{g(`up`,_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(sx,null)})}):null,u?V(Kw,{disabled:_===i.length-1||v,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{g(`down`,_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(ox,null)})}):null]}))]))))}}),sD={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},cD={name:`Space`,self(){return sD}};function lD(){return sD}var uD={name:`Space`,self:lD},dD;function fD(){if(!wu)return!0;if(dD===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),dD=t}return dD}var pD=P({name:`Space`,props:Object.assign(Object.assign({},X.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:r}=bp(e),i=B(()=>e.size||r?.value?.Space?.size||`medium`),a=X(`Space`,`-space`,void 0,uD,e,t),o=Jb(`Space`,n,t);return{useGap:fD(),rtlEnabled:o,mergedClsPrefix:t,margin:B(()=>{let e=i.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[K(`gap`,e)]:t}}=a.value,{row:n,col:r}=rl(t);return{horizontal:el(r),vertical:el(n)}})}},render(){let{vertical:e,reverse:t,align:n,inline:r,justify:i,itemClass:a,itemStyle:o,margin:s,wrap:c,mergedClsPrefix:l,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:p}=this,m=ip(sp(this),!1);if(!m.length)return null;let h=`${s.horizontal}px`,g=`${s.horizontal/2}px`,_=`${s.vertical}px`,v=`${s.vertical/2}px`,y=m.length-1,b=i.startsWith(`space-`);return V(`div`,{role:`none`,class:[`${l}-space`,u&&`${l}-space--rtl`],style:{display:r?`inline-flex`:`flex`,flexDirection:e&&!t?`column`:e&&t?`column-reverse`:!e&&t?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(i)?`flex-${i}`:i,flexWrap:!c||e?`nowrap`:`wrap`,marginTop:d||e?``:`-${v}`,marginBottom:d||e?``:`-${v}`,alignItems:n,gap:d?`${s.vertical}px ${s.horizontal}px`:``}},!f&&(d||p)?m:m.map((t,n)=>t.type===ha?t:V(`div`,{role:`none`,class:a,style:[o,{maxWidth:`100%`},d?``:e?{marginBottom:n===y?``:_}:u?{marginLeft:b?i===`space-between`&&n===y?``:g:n===y?``:h,marginRight:b?i===`space-between`&&n===0?``:g:``,paddingTop:v,paddingBottom:v}:{marginRight:b?i===`space-between`&&n===y?``:g:n===y?``:h,marginLeft:b?i===`space-between`&&n===0?``:g:``,paddingTop:v,paddingBottom:v}]},t)))}}),mD={name:`DynamicTags`,common:Q,peers:{Input:$C,Button:Ww,Tag:TC,Space:cD},self(){return{inputWidth:`64px`}}},hD={name:`Element`,common:Q},gD={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},_D={name:`Flex`,self(){return gD}};function vD(){return gD}var yD={name:`Flex`,self:vD},bD=P({name:`Flex`,props:Object.assign(Object.assign({},X.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=bp(e),r=X(`Flex`,`-flex`,void 0,yD,e,t);return{rtlEnabled:Jb(`Flex`,n,t),mergedClsPrefix:t,margin:B(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[K(`gap`,t)]:n}}=r.value,{row:i,col:a}=rl(n);return{horizontal:el(a),vertical:el(i)}})}},render(){let{vertical:e,reverse:t,align:n,inline:r,justify:i,margin:a,wrap:o,mergedClsPrefix:s,rtlEnabled:c}=this,l=ip(sp(this),!1);return l.length?V(`div`,{role:`none`,class:[`${s}-flex`,c&&`${s}-flex--rtl`],style:{display:r?`inline-flex`:`flex`,flexDirection:e&&!t?`column`:e&&t?`column-reverse`:!e&&t?`row-reverse`:`row`,justifyContent:i,flexWrap:!o||e?`nowrap`:`wrap`,alignItems:n,gap:`${a.vertical}px ${a.horizontal}px`}},l):null}}),xD={name:`ButtonGroup`,common:Q},SD={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function CD(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},SD),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var wD={name:`Form`,common:Q,self:CD},TD={name:`GradientText`,common:Q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},ED={name:`InputNumber`,common:Q,peers:{Button:Ww,Input:$C},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function DD(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}var OD={name:`InputOtp`,common:Q,peers:{Input:$C},self:DD},kD={name:`Layout`,common:Q,peers:{Scrollbar:iS},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:q(n,o),siderToggleBarColorHover:q(n,s),__invertScrollbar:`false`}}},AD={name:`Row`,common:Q};function jD(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:q(r,c),colorPopover:i,colorHoverPopover:q(i,c),borderColor:a,borderColorModal:q(r,a),borderColorPopover:q(i,a),borderRadius:o,fontSize:s}}var MD={name:`List`,common:Q,self:jD},ND={name:`Log`,common:Q,peers:{Scrollbar:iS,Code:wT},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},PD={name:`Mention`,common:Q,peers:{InternalSelectMenu:QS,Input:$C},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function FD(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function ID(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:J(r,{alpha:.1}),itemColorActiveHover:J(r,{alpha:.1}),itemColorActiveCollapsed:J(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},FD(`#BBB`,r,`#FFF`,`#AAA`))}var LD={name:`Menu`,common:Q,peers:{Tooltip:HT,Dropdown:BT},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=ID(e);return r.itemColorActive=J(t,{alpha:.15}),r.itemColorActiveHover=J(t,{alpha:.15}),r.itemColorActiveCollapsed=J(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},RD={titleFontSize:`18px`,backSize:`22px`};function zD(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},RD),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}var BD={name:`PageHeader`,common:Q,self:zD},VD={iconSize:`22px`};function HD(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},VD),{fontSize:t,iconColor:n})}var UD={name:`Popconfirm`,common:Q,peers:{Button:Ww,Popover:uC},self:HD};function WD(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var GD={name:`Progress`,common:eS,self:WD},KD={name:`Progress`,common:Q,self(e){let t=WD(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},qD={name:`Rate`,common:Q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},JD={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function YD(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},JD),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var XD={name:`Result`,common:Q,self:YD},ZD={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},QD={name:`Slider`,common:Q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},ZD),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function $D(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var eO={name:`Spin`,common:Q,self:$D};function tO(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var nO={name:`Statistic`,common:Q,self:tO},rO={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function iO(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},rO),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var aO={name:`Steps`,common:Q,self:iO},oO={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},sO={name:`Switch`,common:Q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},oO),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${J(i,{alpha:.3})}`})}};function cO(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},oO),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${J(t,{alpha:.2})}`})}var lO={name:`Switch`,common:eS,self:cO},uO={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function dO(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},uO),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:q(n,t),borderColorModal:q(r,t),borderColorPopover:q(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:q(n,o),tdColorStripedModal:q(r,o),tdColorStripedPopover:q(i,o),thColor:q(n,a),thColorModal:q(r,a),thColorPopover:q(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var fO={name:`Table`,common:Q,self:dO},pO={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function mO(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},pO),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var hO={name:`Tabs`,common:eS,self:mO},gO={name:`Tabs`,common:Q,self(e){let t=mO(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function _O(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var vO={name:`Thing`,common:Q,self:_O},yO={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},bO={name:`Timeline`,common:Q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},yO),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},xO={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},SO={name:`Transfer`,common:Q,peers:{Checkbox:gT,Scrollbar:iS,Input:$C,Empty:KS,Button:Ww},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},xO),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function CO(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:J(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}var wO={name:`Tree`,common:Q,peers:{Checkbox:gT,Scrollbar:iS,Empty:KS},self(e){let{primaryColor:t}=e,n=CO(e);return n.nodeColorActive=J(t,{alpha:.15}),n}},TO={name:`TreeSelect`,common:Q,peers:{Tree:wO,Empty:KS,InternalSelection:FC}},EO={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function DO(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},EO),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var OO={name:`Typography`,common:eS,self:DO},kO={name:`Typography`,common:Q,self:DO};function AO(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:J(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var jO=tx({name:`Upload`,common:eS,peers:{Button:Uw,Progress:GD},self:AO}),MO={name:`Upload`,common:Q,peers:{Button:Ww,Progress:KD},self(e){let{errorColor:t}=e,n=AO(e);return n.itemColorHoverError=J(t,{alpha:.09}),n}},NO={name:`Watermark`,common:Q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},PO={name:`FloatButton`,common:Q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function FO(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}var IO={name:`Heatmap`,common:Q,self(e){let t=FO(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function LO(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var RO={name:`IconWrapper`,common:Q,self:LO},zO={name:`Image`,common:Q,peers:{Tooltip:HT},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}};function BO(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var VO=tx({name:`Image`,common:eS,peers:{Tooltip:WT},self:BO});function HO(){return V(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},V(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function UO(){return V(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},V(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function WO(){return V(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},V(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var GO=Object.assign(Object.assign({},X.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),KO=mu(`n-image`),qO=H([H(`body >`,[U(`image-container`,`position: fixed;`)]),U(`image-preview-container`,` + `,[U(`form-item-blank`,{paddingTop:`0 !important`})])]),lD=new WeakMap,uD=P({name:`DynamicInput`,props:Object.assign(Object.assign({},X.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:`input`},keyField:String,itemClass:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:``},valuePlaceholder:{type:String,default:``},placeholder:{type:String,default:``},disabled:Boolean,showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),setup(e,{slots:t}){let{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:i,inlineThemeDisabled:a}=bp(),o=N(Sp,null),s=k(e.defaultValue),c=lu(j(e,`value`),s),l=X(`DynamicInput`,`-dynamic-input`,cD,iD,e,r),u=B(()=>{let{value:t}=c;if(Array.isArray(t)){let{max:n}=e;return n!==void 0&&t.length>=n}return!1}),d=B(()=>{let{value:t}=c;return Array.isArray(t)?t.length<=e.min:!0}),f=B(()=>n?.value?.DynamicInput?.buttonSize);function p(t){let{onInput:n,"onUpdate:value":r,onUpdateValue:i}=e;n&&Y(n,t),r&&Y(r,t),i&&Y(i,t),s.value=t}function m(e,t){if(typeof e!=`object`||!e)return t;let n=Jt(e)?Yt(e):e,r=lD.get(n);return r===void 0&&lD.set(n,r=Il()),r}function h(e,t){let{value:n}=c,r=Array.from(n??[]),i=r[e];if(r[e]=t,i&&t&&typeof i==`object`&&typeof t==`object`){let e=Jt(i)?Yt(i):i,n=Jt(t)?Yt(t):t,r=lD.get(e);r!==void 0&&lD.set(n,r)}p(r)}function g(){_(-1)}function _(n){let{value:r}=c,{onCreate:i}=e,a=Array.from(r??[]);if(i)a.splice(n+1,0,i(n+1)),p(a);else if(t.default)a.splice(n+1,0,null),p(a);else switch(e.preset){case`input`:a.splice(n+1,0,``),p(a);break;case`pair`:a.splice(n+1,0,{key:``,value:``}),p(a);break}}function v(t){let{value:n}=c;if(!Array.isArray(n))return;let{min:r}=e;if(n.length<=r)return;let{onRemove:i}=e;i&&i(t);let a=Array.from(n);a.splice(t,1),p(a)}function y(e,t,n){if(t<0||n<0||t>=e.length||n>=e.length||t===n)return;let r=e[t];e[t]=e[n],e[n]=r}function b(e,t){let{value:n}=c;if(!Array.isArray(n))return;let r=Array.from(n);e===`up`&&y(r,t,t-1),e===`down`&&y(r,t,t+1),p(r)}Un(aD,{mergedThemeRef:l,keyPlaceholderRef:j(e,`keyPlaceholder`),valuePlaceholderRef:j(e,`valuePlaceholder`),placeholderRef:j(e,`placeholder`)});let x=Jb(`DynamicInput`,i,r),S=B(()=>{let{self:{actionMargin:e,actionMarginRtl:t}}=l.value;return{"--action-margin":e,"--action-margin-rtl":t}}),C=a?xp(`dynamic-input`,void 0,S,e):void 0;return{locale:Kb(`DynamicInput`).localeRef,rtlEnabled:x,buttonSize:f,mergedClsPrefix:r,NFormItem:o,uncontrolledValue:s,mergedValue:c,insertionDisabled:u,removeDisabled:d,handleCreateClick:g,ensureKey:m,handleValueChange:h,remove:v,move:b,createItem:_,mergedTheme:l,cssVars:a?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender}},render(){let{$slots:e,itemClass:t,buttonSize:n,mergedClsPrefix:r,mergedValue:i,locale:a,mergedTheme:o,keyField:s,itemStyle:c,preset:l,showSortButton:u,NFormItem:d,ensureKey:f,handleValueChange:p,remove:m,createItem:h,move:g,onRender:_,disabled:v}=this;return _?.(),V(`div`,{class:[`${r}-dynamic-input`,this.rtlEnabled&&`${r}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(i)||i.length===0?V(Xw,Object.assign({block:!0,ghost:!0,dashed:!0,size:n},this.createButtonProps,{disabled:this.insertionDisabled||v,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>mp(e[`create-button-default`],()=>[a.create]),icon:()=>mp(e[`create-button-icon`],()=>[V(rx,{clsPrefix:r},{default:()=>V(ax,null)})])}):i.map((a,_)=>V(`div`,{key:s?a[s]:f(a,_),"data-key":s?a[s]:f(a,_),class:[`${r}-dynamic-input-item`,t],style:c},hp(e.default,{value:i[_],index:_},()=>[l===`input`?V(oD,{disabled:v,clsPrefix:r,value:i[_],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${_}]`:void 0,onUpdateValue:e=>{p(_,e)}}):l===`pair`?V(sD,{disabled:v,clsPrefix:r,value:i[_],parentPath:d?d.path.value:void 0,path:d?.path.value?`${d.path.value}[${_}]`:void 0,onUpdateValue:e=>{p(_,e)}}):null]),hp(e.action,{value:i[_],index:_,create:h,remove:m,move:g},()=>[V(`div`,{class:`${r}-dynamic-input-item__action`},V(nT,{size:n},{default:()=>[V(Xw,{disabled:this.removeDisabled||v,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,circle:!0,onClick:()=>{m(_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(xx,null)})}),V(Xw,{disabled:this.insertionDisabled||v,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{h(_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(ax,null)})}),u?V(Xw,{disabled:_===0||v,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{g(`up`,_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(sx,null)})}):null,u?V(Xw,{disabled:_===i.length-1||v,circle:!0,theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,onClick:()=>{g(`down`,_)}},{icon:()=>V(rx,{clsPrefix:r},{default:()=>V(ox,null)})}):null]}))]))))}}),dD={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},fD={name:`Space`,self(){return dD}};function pD(){return dD}var mD={name:`Space`,self:pD},hD;function gD(){if(!wu)return!0;if(hD===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),hD=t}return hD}var _D=P({name:`Space`,props:Object.assign(Object.assign({},X.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:r}=bp(e),i=B(()=>e.size||r?.value?.Space?.size||`medium`),a=X(`Space`,`-space`,void 0,mD,e,t),o=Jb(`Space`,n,t);return{useGap:gD(),rtlEnabled:o,mergedClsPrefix:t,margin:B(()=>{let e=i.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[K(`gap`,e)]:t}}=a.value,{row:n,col:r}=rl(t);return{horizontal:el(r),vertical:el(n)}})}},render(){let{vertical:e,reverse:t,align:n,inline:r,justify:i,itemClass:a,itemStyle:o,margin:s,wrap:c,mergedClsPrefix:l,rtlEnabled:u,useGap:d,wrapItem:f,internalUseGap:p}=this,m=ip(sp(this),!1);if(!m.length)return null;let h=`${s.horizontal}px`,g=`${s.horizontal/2}px`,_=`${s.vertical}px`,v=`${s.vertical/2}px`,y=m.length-1,b=i.startsWith(`space-`);return V(`div`,{role:`none`,class:[`${l}-space`,u&&`${l}-space--rtl`],style:{display:r?`inline-flex`:`flex`,flexDirection:e&&!t?`column`:e&&t?`column-reverse`:!e&&t?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(i)?`flex-${i}`:i,flexWrap:!c||e?`nowrap`:`wrap`,marginTop:d||e?``:`-${v}`,marginBottom:d||e?``:`-${v}`,alignItems:n,gap:d?`${s.vertical}px ${s.horizontal}px`:``}},!f&&(d||p)?m:m.map((t,n)=>t.type===ha?t:V(`div`,{role:`none`,class:a,style:[o,{maxWidth:`100%`},d?``:e?{marginBottom:n===y?``:_}:u?{marginLeft:b?i===`space-between`&&n===y?``:g:n===y?``:h,marginRight:b?i===`space-between`&&n===0?``:g:``,paddingTop:v,paddingBottom:v}:{marginRight:b?i===`space-between`&&n===y?``:g:n===y?``:h,marginLeft:b?i===`space-between`&&n===0?``:g:``,paddingTop:v,paddingBottom:v}]},t)))}}),vD={name:`DynamicTags`,common:Q,peers:{Input:rw,Button:Jw,Tag:TC,Space:fD},self(){return{inputWidth:`64px`}}},yD={name:`Element`,common:Q},bD={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},xD={name:`Flex`,self(){return bD}};function SD(){return bD}var CD={name:`Flex`,self:SD},wD=P({name:`Flex`,props:Object.assign(Object.assign({},X.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=bp(e),r=X(`Flex`,`-flex`,void 0,CD,e,t);return{rtlEnabled:Jb(`Flex`,n,t),mergedClsPrefix:t,margin:B(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[K(`gap`,t)]:n}}=r.value,{row:i,col:a}=rl(n);return{horizontal:el(a),vertical:el(i)}})}},render(){let{vertical:e,reverse:t,align:n,inline:r,justify:i,margin:a,wrap:o,mergedClsPrefix:s,rtlEnabled:c}=this,l=ip(sp(this),!1);return l.length?V(`div`,{role:`none`,class:[`${s}-flex`,c&&`${s}-flex--rtl`],style:{display:r?`inline-flex`:`flex`,flexDirection:e&&!t?`column`:e&&t?`column-reverse`:!e&&t?`row-reverse`:`row`,justifyContent:i,flexWrap:!o||e?`nowrap`:`wrap`,alignItems:n,gap:`${a.vertical}px ${a.horizontal}px`}},l):null}}),TD={name:`ButtonGroup`,common:Q},ED={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function DD(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},ED),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var OD={name:`Form`,common:Q,self:DD},kD={name:`GradientText`,common:Q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},AD={name:`InputNumber`,common:Q,peers:{Button:Jw,Input:rw},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function jD(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}var MD={name:`InputOtp`,common:Q,peers:{Input:rw},self:jD},ND={name:`Layout`,common:Q,peers:{Scrollbar:iS},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:q(n,o),siderToggleBarColorHover:q(n,s),__invertScrollbar:`false`}}},PD={name:`Row`,common:Q};function FD(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:q(r,c),colorPopover:i,colorHoverPopover:q(i,c),borderColor:a,borderColorModal:q(r,a),borderColorPopover:q(i,a),borderRadius:o,fontSize:s}}var ID={name:`List`,common:Q,self:FD},LD={name:`Log`,common:Q,peers:{Scrollbar:iS,Code:OT},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},RD={name:`Mention`,common:Q,peers:{InternalSelectMenu:QS,Input:rw},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function zD(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function BD(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:J(r,{alpha:.1}),itemColorActiveHover:J(r,{alpha:.1}),itemColorActiveCollapsed:J(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},zD(`#BBB`,r,`#FFF`,`#AAA`))}var VD={name:`Menu`,common:Q,peers:{Tooltip:KT,Dropdown:WT},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=BD(e);return r.itemColorActive=J(t,{alpha:.15}),r.itemColorActiveHover=J(t,{alpha:.15}),r.itemColorActiveCollapsed=J(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},HD={titleFontSize:`18px`,backSize:`22px`};function UD(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},HD),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}var WD={name:`PageHeader`,common:Q,self:UD},GD={iconSize:`22px`};function KD(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},GD),{fontSize:t,iconColor:n})}var qD={name:`Popconfirm`,common:Q,peers:{Button:Jw,Popover:uC},self:KD};function JD(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var YD={name:`Progress`,common:eS,self:JD},XD={name:`Progress`,common:Q,self(e){let t=JD(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},ZD={name:`Rate`,common:Q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},QD={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function $D(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},QD),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var eO={name:`Result`,common:Q,self:$D},tO={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},nO={name:`Slider`,common:Q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},tO),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function rO(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var iO={name:`Spin`,common:Q,self:rO};function aO(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var oO={name:`Statistic`,common:Q,self:aO},sO={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function cO(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},sO),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var lO={name:`Steps`,common:Q,self:cO},uO={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},dO={name:`Switch`,common:Q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},uO),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${J(i,{alpha:.3})}`})}};function fO(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},uO),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${J(t,{alpha:.2})}`})}var pO={name:`Switch`,common:eS,self:fO},mO={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function hO(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},mO),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:q(n,t),borderColorModal:q(r,t),borderColorPopover:q(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:q(n,o),tdColorStripedModal:q(r,o),tdColorStripedPopover:q(i,o),thColor:q(n,a),thColorModal:q(r,a),thColorPopover:q(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var gO={name:`Table`,common:Q,self:hO},_O={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function vO(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},_O),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var yO={name:`Tabs`,common:eS,self:vO},bO={name:`Tabs`,common:Q,self(e){let t=vO(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function xO(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var SO={name:`Thing`,common:Q,self:xO},CO={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},wO={name:`Timeline`,common:Q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},CO),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},TO={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},EO={name:`Transfer`,common:Q,peers:{Checkbox:bT,Scrollbar:iS,Input:rw,Empty:KS,Button:Jw},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},TO),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function DO(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:J(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}var OO={name:`Tree`,common:Q,peers:{Checkbox:bT,Scrollbar:iS,Empty:KS},self(e){let{primaryColor:t}=e,n=DO(e);return n.nodeColorActive=J(t,{alpha:.15}),n}},kO={name:`TreeSelect`,common:Q,peers:{Tree:OO,Empty:KS,InternalSelection:FC}},AO={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function jO(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},AO),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var MO={name:`Typography`,common:eS,self:jO},NO={name:`Typography`,common:Q,self:jO};function PO(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:J(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var FO=tx({name:`Upload`,common:eS,peers:{Button:qw,Progress:YD},self:PO}),IO={name:`Upload`,common:Q,peers:{Button:Jw,Progress:XD},self(e){let{errorColor:t}=e,n=PO(e);return n.itemColorHoverError=J(t,{alpha:.09}),n}},LO={name:`Watermark`,common:Q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},RO={name:`FloatButton`,common:Q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function zO(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}var BO={name:`Heatmap`,common:Q,self(e){let t=zO(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function VO(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var HO={name:`IconWrapper`,common:Q,self:VO},UO={name:`Image`,common:Q,peers:{Tooltip:KT},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}};function WO(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var GO=tx({name:`Image`,common:eS,peers:{Tooltip:JT},self:WO});function KO(){return V(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},V(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function qO(){return V(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},V(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function JO(){return V(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},V(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var YO=Object.assign(Object.assign({},X.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),XO=mu(`n-image`),ZO=H([H(`body >`,[U(`image-container`,`position: fixed;`)]),U(`image-preview-container`,` position: fixed; left: 0; right: 0; @@ -1472,9 +1519,9 @@ cursor: pointer; `),H(`img`,` border-radius: inherit; - `)])]),JO=32,YO=P({name:`ImagePreview`,props:Object.assign(Object.assign({},GO),{src:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onNext:Function,onPrev:Function,onClose:[Function,Array]}),setup(e){let{src:t}=on(e),{mergedClsPrefixRef:n}=bp(e),r=X(`Image`,`-image`,qO,VO,e,n),i=null,a=k(null),o=k(null),s=k(!1),{localeRef:c}=Kb(`Image`),l=k(e.defaultShow),u=lu(j(e,`show`),l);function d(){let{value:e}=o;if(!i||!e)return;let{style:t}=e,n=i.getBoundingClientRect();t.transformOrigin=`${n.left+n.width/2}px ${n.top+n.height/2}px`}function f(t){var n,r;switch(t.key){case` `:t.preventDefault();break;case`ArrowLeft`:(n=e.onPrev)==null||n.call(e);break;case`ArrowRight`:(r=e.onNext)==null||r.call(e);break;case`ArrowUp`:t.preventDefault(),pe();break;case`ArrowDown`:t.preventDefault(),me();break;case`Escape`:_e();break}}function p(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&Y(n,t),r&&Y(r,t),l.value=t,s.value=!0}Jn(u,e=>{e?Wl(`keydown`,document,f):Gl(`keydown`,document,f)}),Wr(()=>{Gl(`keydown`,document,f)});let m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=!1;function C(e){let{clientX:t,clientY:n}=e;g=t-m,_=n-h,Zc(ge)}function w(e){let{mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:r,mouseDownClientY:i}=e,a=r-t,o=i-n;return{moveVerticalDirection:`vertical${o>0?`Top`:`Bottom`}`,moveHorizontalDirection:`horizontal${a>0?`Left`:`Right`}`,deltaHorizontal:a,deltaVertical:o}}function T(e){let{value:t}=a;if(!t)return{offsetX:0,offsetY:0};let n=t.getBoundingClientRect(),{moveVerticalDirection:r,moveHorizontalDirection:i,deltaHorizontal:o,deltaVertical:s}=e||{},c=0,l=0;return c=n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right0?(n.height-window.innerHeight)/2:n.bottom.5){let e=ne;--te,ne=Math.max(.5,ee**te);let t=e-ne;ge(!1);let n=T();ne+=t,ge(!1),ne-=t,g=n.offsetX,_=n.offsetY,ge()}}function he(){let e=t.value;e&&Xf(e,void 0)}function ge(e=!0){let{value:t}=a;if(!t)return;let{style:n}=t,r=de(D?.previewedImgPropsRef.value?.style),i=``;if(typeof r==`string`)i=`${r};`;else for(let e in r)i+=`${Hb(e)}: ${r[e]};`;let o=`transform-origin: center; transform: translateX(${g}px) translateY(${_}px) rotate(${re}deg) scale(${ne});`;S?n.cssText=`${i}cursor: grabbing; transition: none;${o}`:n.cssText=`${i}cursor: grab;${o}${e?``:`transition: none;`}`,e||t.offsetHeight}function _e(){if(u.value){let{onClose:t}=e;t&&Y(t),p(!1),l.value=!1}}function ve(){ne=fe(),te=Math.ceil(Math.log(ne)/Math.log(ee)),g=0,_=0,ge()}let ye={setThumbnailEl:e=>{i=e}};function be(t,n){if(e.showToolbarTooltip){let{value:e}=r;return V(ZT,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>c.value[n],trigger:()=>t})}else return t}let xe=B(()=>{let{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:t,toolbarBorderRadius:n,toolbarBoxShadow:i,toolbarColor:a}}=r.value;return{"--n-bezier":e,"--n-toolbar-icon-color":t,"--n-toolbar-color":a,"--n-toolbar-border-radius":n,"--n-toolbar-box-shadow":i}}),{inlineThemeDisabled:Se}=bp(),Ce=Se?xp(`image-preview`,void 0,xe,e):void 0;function we(e){e.preventDefault()}return Object.assign({clsPrefix:n,previewRef:a,previewWrapperRef:o,previewSrc:t,mergedShow:u,appear:uu(),displayed:s,previewedImgProps:D?.previewedImgPropsRef,handleWheel:we,handlePreviewMousedown:O,handlePreviewDblclick:ie,syncTransformOrigin:d,handleAfterLeave:()=>{ae(),re=0,s.value=!1},handleDragStart:e=>{var t,n;(n=(t=D?.previewedImgPropsRef.value)?.onDragstart)==null||n.call(t,e),e.preventDefault()},zoomIn:pe,zoomOut:me,handleDownloadClick:he,rotateCounterclockwise:ce,rotateClockwise:le,handleSwitchPrev:oe,handleSwitchNext:se,withTooltip:be,resizeToOrignalImageSize:ve,cssVars:Se?void 0:xe,themeClass:Ce?.themeClass,onRender:Ce?.onRender,doUpdateShow:p,close:_e},ye)},render(){var e;let{clsPrefix:t,renderToolbar:n,withTooltip:r}=this,i=r(V(rx,{clsPrefix:t,onClick:this.handleSwitchPrev},{default:HO}),`tipPrevious`),a=r(V(rx,{clsPrefix:t,onClick:this.handleSwitchNext},{default:UO}),`tipNext`),o=r(V(rx,{clsPrefix:t,onClick:this.rotateCounterclockwise},{default:()=>V(Tx,null)}),`tipCounterclockwise`),s=r(V(rx,{clsPrefix:t,onClick:this.rotateClockwise},{default:()=>V(wx,null)}),`tipClockwise`),c=r(V(rx,{clsPrefix:t,onClick:this.resizeToOrignalImageSize},{default:()=>V(Sx,null)}),`tipOriginalSize`),l=r(V(rx,{clsPrefix:t,onClick:this.zoomOut},{default:()=>V(Ax,null)}),`tipZoomOut`),u=r(V(rx,{clsPrefix:t,onClick:this.handleDownloadClick},{default:()=>V(hx,null)}),`tipDownload`),d=r(V(rx,{clsPrefix:t,onClick:()=>this.close()},{default:WO}),`tipClose`),f=r(V(rx,{clsPrefix:t,onClick:this.zoomIn},{default:()=>V(kx,null)}),`tipZoomIn`);return V(pa,null,(e=this.$slots).default?.call(e),V(md,{show:this.mergedShow},{default:()=>{var e;return this.mergedShow||this.displayed?((e=this.onRender)==null||e.call(this),Vn(V(`div`,{ref:`containerRef`,class:[`${t}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},V(yo,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?V(`div`,{class:`${t}-image-preview-overlay`,onClick:()=>this.close()}):null}),this.showToolbar?V(yo,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?V(`div`,{class:`${t}-image-preview-toolbar`},n?n({nodes:{prev:i,next:a,rotateCounterclockwise:o,rotateClockwise:s,resizeToOriginalSize:c,zoomOut:l,zoomIn:f,download:u,close:d}}):V(pa,null,this.onPrev?V(pa,null,i,a):null,o,s,c,l,f,u,d)):null}):null,V(yo,{name:`fade-in-scale-up-transition`,onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{let{previewedImgProps:e={}}=this;return Vn(V(`div`,{class:`${t}-image-preview-wrapper`,ref:`previewWrapperRef`},V(`img`,Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${t}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:`previewRef`,onDragstart:this.handleDragStart}))),[[Lo,this.mergedShow]])}})),[[nd,{enabled:this.mergedShow}]])):null}}))}}),XO=mu(`n-image-group`),ZO=P({name:`ImageGroup`,props:Object.assign(Object.assign({},GO),{srcList:Array,current:Number,defaultCurrent:{type:Number,default:0},show:{type:Boolean,default:void 0},defaultShow:Boolean,onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onUpdateCurrent:[Function,Array],"onUpdate:current":[Function,Array]}),setup(e){let{mergedClsPrefixRef:t}=bp(e),n=`c${Il()}`,r=k(null),i=k(e.defaultShow),a=lu(j(e,`show`),i),o=k(new Map),s=B(()=>{if(e.srcList){let t=new Map;return e.srcList.forEach((e,n)=>{t.set(`p${n}`,e)}),t}return o.value}),c=B(()=>Array.from(s.value.keys())),l=()=>c.value.length;function u(t,n){e.srcList&&rp(`image-group`,"`n-image` can't be placed inside `n-image-group` when image group's `src-list` prop is set.");let r=`r${t}`;return o.value.has(`r${r}`)||o.value.set(r,n),function(){o.value.has(r)||o.value.delete(r)}}let d=k(e.defaultCurrent),f=lu(j(e,`current`),d),p=t=>{if(t!==f.value){let{onUpdateCurrent:n,"onUpdate:current":r}=e;n&&Y(n,t),r&&Y(r,t),d.value=t}},m=B(()=>c.value[f.value]),h=e=>{let t=c.value.indexOf(e);t!==f.value&&p(t)},g=B(()=>s.value.get(m.value));function _(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&Y(n,t),r&&Y(r,t),i.value=t}function v(){_(!1)}let y=B(()=>{let e=(e,t)=>{for(let n=e;n<=t;n++){let e=c.value[n];if(s.value.get(e))return n}},t=e(f.value+1,l()-1);return t===void 0?e(0,f.value-1):t}),b=B(()=>{let e=(e,t)=>{for(let n=e;n>=t;n--){let e=c.value[n];if(s.value.get(e))return n}},t=e(f.value-1,0);return t===void 0?e(l()-1,f.value+1):t});function x(t){var n,r;t===1?(b.value!==void 0&&p(y.value),(n=e.onPreviewNext)==null||n.call(e)):(y.value!==void 0&&p(b.value),(r=e.onPreviewPrev)==null||r.call(e))}return Un(XO,{mergedClsPrefixRef:t,registerImageUrl:u,setThumbnailEl:e=>{var t;(t=r.value)==null||t.setThumbnailEl(e)},toggleShow:e=>{_(!0),h(e)},groupId:n,renderToolbarRef:j(e,`renderToolbar`)}),{mergedClsPrefix:t,previewInstRef:r,mergedShow:a,src:g,onClose:v,next:()=>{x(1)},prev:()=>{x(-1)}}},render(){return V(YO,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,onPrev:this.prev,onNext:this.next,src:this.src,show:this.mergedShow,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,onClose:this.onClose},this.$slots)}}),QO=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:`fill`},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},GO),$O=0,ek=P({name:`Image`,props:QO,slots:Object,inheritAttrs:!1,setup(e){let t=k(null),n=k(!1),r=k(null),i=N(XO,null),{mergedClsPrefixRef:a}=i||bp(e),o=B(()=>e.previewSrc||e.src),s=k(!1),c=$O++,l=()=>{if(e.previewDisabled||n.value)return;if(i){i.setThumbnailEl(t.value),i.toggleShow(`r${c}`);return}let{value:a}=r;a&&(a.setThumbnailEl(t.value),s.value=!0)},u={click:()=>{l()},showPreview:l},d=k(!e.lazy);Vr(()=>{var e;(e=t.value)==null||e.setAttribute(`data-group-id`,i?.groupId||``)}),Vr(()=>{if(e.lazy&&e.intersectionObserverOptions){let n,r=qn(()=>{n?.(),n=void 0,n=Dw(t.value,e.intersectionObserverOptions,d)});Wr(()=>{r(),n?.()})}}),qn(()=>{var t;e.src||(t=e.imgProps)==null||t.src,n.value=!1}),qn(e=>{let t=(i?.registerImageUrl)?.call(i,c,o.value||``);e(()=>{t?.()})});function f(t){var n,r;u.showPreview(),(r=(n=e.imgProps)?.onClick)==null||r.call(n,t)}function p(){s.value=!1}let m=k(!1);return Un(KO,{previewedImgPropsRef:j(e,`previewedImgProps`)}),Object.assign({mergedClsPrefix:a,groupId:i?.groupId,previewInstRef:r,imageRef:t,mergedPreviewSrc:o,showError:n,shouldStartLoading:d,loaded:m,mergedOnClick:e=>{f(e)},onPreviewClose:p,mergedOnError:t=>{if(!d.value)return;n.value=!0;let{onError:r,imgProps:{onError:i}={}}=e;r?.(t),i?.(t)},mergedOnLoad:t=>{let{onLoad:n,imgProps:{onLoad:r}={}}=e;n?.(t),r?.(t),m.value=!0},previewShow:s},u)},render(){var e;let{mergedClsPrefix:t,imgProps:n={},loaded:r,$attrs:i,lazy:a}=this,o=mp(this.$slots.error,()=>[]),s=(e=this.$slots).placeholder?.call(e),c=this.src||n.src,l=this.showError&&o.length?o:V(`img`,Object.assign(Object.assign({},n),{ref:`imageRef`,width:this.width||n.width,height:this.height||n.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?c:void 0:c,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Sw&&a&&!this.intersectionObserverOptions?`lazy`:`eager`,style:[n.style||``,s&&!r?{height:`0`,width:`0`,visibility:`hidden`}:``,{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return V(`div`,Object.assign({},i,{role:`none`,class:[i.class,`${t}-image`,(this.previewDisabled||this.showError)&&`${t}-image--preview-disabled`]}),this.groupId?l:V(YO,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,src:this.mergedPreviewSrc,show:!this.previewDisabled&&this.previewShow,onClose:this.onPreviewClose},{default:()=>l}),!r&&s)}}),tk={extraFontSize:`12px`,width:`440px`},nk={name:`Transfer`,common:Q,peers:{Checkbox:gT,Scrollbar:iS,Input:$C,Empty:KS,Button:Ww},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},tk),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function rk(){return{}}var ik={name:`Marquee`,common:Q,self:rk},ak={success:V(Ex,null),error:V(_x,null),warning:V(Ox,null),info:V(bx,null)},ok=P({name:`ProgressCircle`,props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){let n=B(()=>{let t=`gradient`,{fillColor:n}=e;return typeof n==`object`?`${t}-${Ec(JSON.stringify(n))}`:t});function r(t,r,i,a){let{gapDegree:o,viewBoxWidth:s,strokeWidth:c}=e,l=50+c/2,u=`M ${l},${l} m 0,50 + `)])]),QO=32,$O=P({name:`ImagePreview`,props:Object.assign(Object.assign({},YO),{src:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onNext:Function,onPrev:Function,onClose:[Function,Array]}),setup(e){let{src:t}=on(e),{mergedClsPrefixRef:n}=bp(e),r=X(`Image`,`-image`,ZO,GO,e,n),i=null,a=k(null),o=k(null),s=k(!1),{localeRef:c}=Kb(`Image`),l=k(e.defaultShow),u=lu(j(e,`show`),l);function d(){let{value:e}=o;if(!i||!e)return;let{style:t}=e,n=i.getBoundingClientRect();t.transformOrigin=`${n.left+n.width/2}px ${n.top+n.height/2}px`}function f(t){var n,r;switch(t.key){case` `:t.preventDefault();break;case`ArrowLeft`:(n=e.onPrev)==null||n.call(e);break;case`ArrowRight`:(r=e.onNext)==null||r.call(e);break;case`ArrowUp`:t.preventDefault(),pe();break;case`ArrowDown`:t.preventDefault(),me();break;case`Escape`:_e();break}}function p(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&Y(n,t),r&&Y(r,t),l.value=t,s.value=!0}Jn(u,e=>{e?Wl(`keydown`,document,f):Gl(`keydown`,document,f)}),Wr(()=>{Gl(`keydown`,document,f)});let m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=!1;function C(e){let{clientX:t,clientY:n}=e;g=t-m,_=n-h,Zc(ge)}function w(e){let{mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:r,mouseDownClientY:i}=e,a=r-t,o=i-n;return{moveVerticalDirection:`vertical${o>0?`Top`:`Bottom`}`,moveHorizontalDirection:`horizontal${a>0?`Left`:`Right`}`,deltaHorizontal:a,deltaVertical:o}}function T(e){let{value:t}=a;if(!t)return{offsetX:0,offsetY:0};let n=t.getBoundingClientRect(),{moveVerticalDirection:r,moveHorizontalDirection:i,deltaHorizontal:o,deltaVertical:s}=e||{},c=0,l=0;return c=n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right0?(n.height-window.innerHeight)/2:n.bottom.5){let e=ne;--te,ne=Math.max(.5,ee**te);let t=e-ne;ge(!1);let n=T();ne+=t,ge(!1),ne-=t,g=n.offsetX,_=n.offsetY,ge()}}function he(){let e=t.value;e&&Xf(e,void 0)}function ge(e=!0){let{value:t}=a;if(!t)return;let{style:n}=t,r=de(D?.previewedImgPropsRef.value?.style),i=``;if(typeof r==`string`)i=`${r};`;else for(let e in r)i+=`${Hb(e)}: ${r[e]};`;let o=`transform-origin: center; transform: translateX(${g}px) translateY(${_}px) rotate(${re}deg) scale(${ne});`;S?n.cssText=`${i}cursor: grabbing; transition: none;${o}`:n.cssText=`${i}cursor: grab;${o}${e?``:`transition: none;`}`,e||t.offsetHeight}function _e(){if(u.value){let{onClose:t}=e;t&&Y(t),p(!1),l.value=!1}}function ve(){ne=fe(),te=Math.ceil(Math.log(ne)/Math.log(ee)),g=0,_=0,ge()}let ye={setThumbnailEl:e=>{i=e}};function be(t,n){if(e.showToolbarTooltip){let{value:e}=r;return V(tE,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>c.value[n],trigger:()=>t})}else return t}let xe=B(()=>{let{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:t,toolbarBorderRadius:n,toolbarBoxShadow:i,toolbarColor:a}}=r.value;return{"--n-bezier":e,"--n-toolbar-icon-color":t,"--n-toolbar-color":a,"--n-toolbar-border-radius":n,"--n-toolbar-box-shadow":i}}),{inlineThemeDisabled:Se}=bp(),Ce=Se?xp(`image-preview`,void 0,xe,e):void 0;function we(e){e.preventDefault()}return Object.assign({clsPrefix:n,previewRef:a,previewWrapperRef:o,previewSrc:t,mergedShow:u,appear:uu(),displayed:s,previewedImgProps:D?.previewedImgPropsRef,handleWheel:we,handlePreviewMousedown:O,handlePreviewDblclick:ie,syncTransformOrigin:d,handleAfterLeave:()=>{ae(),re=0,s.value=!1},handleDragStart:e=>{var t,n;(n=(t=D?.previewedImgPropsRef.value)?.onDragstart)==null||n.call(t,e),e.preventDefault()},zoomIn:pe,zoomOut:me,handleDownloadClick:he,rotateCounterclockwise:ce,rotateClockwise:le,handleSwitchPrev:oe,handleSwitchNext:se,withTooltip:be,resizeToOrignalImageSize:ve,cssVars:Se?void 0:xe,themeClass:Ce?.themeClass,onRender:Ce?.onRender,doUpdateShow:p,close:_e},ye)},render(){var e;let{clsPrefix:t,renderToolbar:n,withTooltip:r}=this,i=r(V(rx,{clsPrefix:t,onClick:this.handleSwitchPrev},{default:KO}),`tipPrevious`),a=r(V(rx,{clsPrefix:t,onClick:this.handleSwitchNext},{default:qO}),`tipNext`),o=r(V(rx,{clsPrefix:t,onClick:this.rotateCounterclockwise},{default:()=>V(Tx,null)}),`tipCounterclockwise`),s=r(V(rx,{clsPrefix:t,onClick:this.rotateClockwise},{default:()=>V(wx,null)}),`tipClockwise`),c=r(V(rx,{clsPrefix:t,onClick:this.resizeToOrignalImageSize},{default:()=>V(Sx,null)}),`tipOriginalSize`),l=r(V(rx,{clsPrefix:t,onClick:this.zoomOut},{default:()=>V(Ax,null)}),`tipZoomOut`),u=r(V(rx,{clsPrefix:t,onClick:this.handleDownloadClick},{default:()=>V(hx,null)}),`tipDownload`),d=r(V(rx,{clsPrefix:t,onClick:()=>this.close()},{default:JO}),`tipClose`),f=r(V(rx,{clsPrefix:t,onClick:this.zoomIn},{default:()=>V(kx,null)}),`tipZoomIn`);return V(pa,null,(e=this.$slots).default?.call(e),V(md,{show:this.mergedShow},{default:()=>{var e;return this.mergedShow||this.displayed?((e=this.onRender)==null||e.call(this),Vn(V(`div`,{ref:`containerRef`,class:[`${t}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},V(yo,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?V(`div`,{class:`${t}-image-preview-overlay`,onClick:()=>this.close()}):null}),this.showToolbar?V(yo,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?V(`div`,{class:`${t}-image-preview-toolbar`},n?n({nodes:{prev:i,next:a,rotateCounterclockwise:o,rotateClockwise:s,resizeToOriginalSize:c,zoomOut:l,zoomIn:f,download:u,close:d}}):V(pa,null,this.onPrev?V(pa,null,i,a):null,o,s,c,l,f,u,d)):null}):null,V(yo,{name:`fade-in-scale-up-transition`,onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{let{previewedImgProps:e={}}=this;return Vn(V(`div`,{class:`${t}-image-preview-wrapper`,ref:`previewWrapperRef`},V(`img`,Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${t}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:`previewRef`,onDragstart:this.handleDragStart}))),[[Lo,this.mergedShow]])}})),[[nd,{enabled:this.mergedShow}]])):null}}))}}),ek=mu(`n-image-group`),tk=P({name:`ImageGroup`,props:Object.assign(Object.assign({},YO),{srcList:Array,current:Number,defaultCurrent:{type:Number,default:0},show:{type:Boolean,default:void 0},defaultShow:Boolean,onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onUpdateCurrent:[Function,Array],"onUpdate:current":[Function,Array]}),setup(e){let{mergedClsPrefixRef:t}=bp(e),n=`c${Il()}`,r=k(null),i=k(e.defaultShow),a=lu(j(e,`show`),i),o=k(new Map),s=B(()=>{if(e.srcList){let t=new Map;return e.srcList.forEach((e,n)=>{t.set(`p${n}`,e)}),t}return o.value}),c=B(()=>Array.from(s.value.keys())),l=()=>c.value.length;function u(t,n){e.srcList&&rp(`image-group`,"`n-image` can't be placed inside `n-image-group` when image group's `src-list` prop is set.");let r=`r${t}`;return o.value.has(`r${r}`)||o.value.set(r,n),function(){o.value.has(r)||o.value.delete(r)}}let d=k(e.defaultCurrent),f=lu(j(e,`current`),d),p=t=>{if(t!==f.value){let{onUpdateCurrent:n,"onUpdate:current":r}=e;n&&Y(n,t),r&&Y(r,t),d.value=t}},m=B(()=>c.value[f.value]),h=e=>{let t=c.value.indexOf(e);t!==f.value&&p(t)},g=B(()=>s.value.get(m.value));function _(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&Y(n,t),r&&Y(r,t),i.value=t}function v(){_(!1)}let y=B(()=>{let e=(e,t)=>{for(let n=e;n<=t;n++){let e=c.value[n];if(s.value.get(e))return n}},t=e(f.value+1,l()-1);return t===void 0?e(0,f.value-1):t}),b=B(()=>{let e=(e,t)=>{for(let n=e;n>=t;n--){let e=c.value[n];if(s.value.get(e))return n}},t=e(f.value-1,0);return t===void 0?e(l()-1,f.value+1):t});function x(t){var n,r;t===1?(b.value!==void 0&&p(y.value),(n=e.onPreviewNext)==null||n.call(e)):(y.value!==void 0&&p(b.value),(r=e.onPreviewPrev)==null||r.call(e))}return Un(ek,{mergedClsPrefixRef:t,registerImageUrl:u,setThumbnailEl:e=>{var t;(t=r.value)==null||t.setThumbnailEl(e)},toggleShow:e=>{_(!0),h(e)},groupId:n,renderToolbarRef:j(e,`renderToolbar`)}),{mergedClsPrefix:t,previewInstRef:r,mergedShow:a,src:g,onClose:v,next:()=>{x(1)},prev:()=>{x(-1)}}},render(){return V($O,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,onPrev:this.prev,onNext:this.next,src:this.src,show:this.mergedShow,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,onClose:this.onClose},this.$slots)}}),nk=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:`fill`},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},YO),rk=0,ik=P({name:`Image`,props:nk,slots:Object,inheritAttrs:!1,setup(e){let t=k(null),n=k(!1),r=k(null),i=N(ek,null),{mergedClsPrefixRef:a}=i||bp(e),o=B(()=>e.previewSrc||e.src),s=k(!1),c=rk++,l=()=>{if(e.previewDisabled||n.value)return;if(i){i.setThumbnailEl(t.value),i.toggleShow(`r${c}`);return}let{value:a}=r;a&&(a.setThumbnailEl(t.value),s.value=!0)},u={click:()=>{l()},showPreview:l},d=k(!e.lazy);Vr(()=>{var e;(e=t.value)==null||e.setAttribute(`data-group-id`,i?.groupId||``)}),Vr(()=>{if(e.lazy&&e.intersectionObserverOptions){let n,r=qn(()=>{n?.(),n=void 0,n=jw(t.value,e.intersectionObserverOptions,d)});Wr(()=>{r(),n?.()})}}),qn(()=>{var t;e.src||(t=e.imgProps)==null||t.src,n.value=!1}),qn(e=>{let t=(i?.registerImageUrl)?.call(i,c,o.value||``);e(()=>{t?.()})});function f(t){var n,r;u.showPreview(),(r=(n=e.imgProps)?.onClick)==null||r.call(n,t)}function p(){s.value=!1}let m=k(!1);return Un(XO,{previewedImgPropsRef:j(e,`previewedImgProps`)}),Object.assign({mergedClsPrefix:a,groupId:i?.groupId,previewInstRef:r,imageRef:t,mergedPreviewSrc:o,showError:n,shouldStartLoading:d,loaded:m,mergedOnClick:e=>{f(e)},onPreviewClose:p,mergedOnError:t=>{if(!d.value)return;n.value=!0;let{onError:r,imgProps:{onError:i}={}}=e;r?.(t),i?.(t)},mergedOnLoad:t=>{let{onLoad:n,imgProps:{onLoad:r}={}}=e;n?.(t),r?.(t),m.value=!0},previewShow:s},u)},render(){var e;let{mergedClsPrefix:t,imgProps:n={},loaded:r,$attrs:i,lazy:a}=this,o=mp(this.$slots.error,()=>[]),s=(e=this.$slots).placeholder?.call(e),c=this.src||n.src,l=this.showError&&o.length?o:V(`img`,Object.assign(Object.assign({},n),{ref:`imageRef`,width:this.width||n.width,height:this.height||n.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?c:void 0:c,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Ew&&a&&!this.intersectionObserverOptions?`lazy`:`eager`,style:[n.style||``,s&&!r?{height:`0`,width:`0`,visibility:`hidden`}:``,{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return V(`div`,Object.assign({},i,{role:`none`,class:[i.class,`${t}-image`,(this.previewDisabled||this.showError)&&`${t}-image--preview-disabled`]}),this.groupId?l:V($O,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,src:this.mergedPreviewSrc,show:!this.previewDisabled&&this.previewShow,onClose:this.onPreviewClose},{default:()=>l}),!r&&s)}}),ak={extraFontSize:`12px`,width:`440px`},ok={name:`Transfer`,common:Q,peers:{Checkbox:bT,Scrollbar:iS,Input:rw,Empty:KS,Button:Jw},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},ak),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function sk(){return{}}var ck={name:`Marquee`,common:Q,self:sk},lk={success:V(Ex,null),error:V(_x,null),warning:V(Ox,null),info:V(bx,null)},uk=P({name:`ProgressCircle`,props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){let n=B(()=>{let t=`gradient`,{fillColor:n}=e;return typeof n==`object`?`${t}-${Ec(JSON.stringify(n))}`:t});function r(t,r,i,a){let{gapDegree:o,viewBoxWidth:s,strokeWidth:c}=e,l=50+c/2,u=`M ${l},${l} m 0,50 a 50,50 0 1 1 0,-100 - a 50,50 0 1 1 0,100`,d=Math.PI*2*50;return{pathString:u,pathStyle:{stroke:a===`rail`?i:typeof e.fillColor==`object`?`url(#${n.value})`:i,strokeDasharray:`${Math.min(t,100)/100*(d-o)}px ${s*8}px`,strokeDashoffset:`-${o/2}px`,transformOrigin:r?`center`:void 0,transform:r?`rotate(${r}deg)`:void 0}}}let i=()=>{let t=typeof e.fillColor==`object`,r=t?e.fillColor.stops[0]:``,i=t?e.fillColor.stops[1]:``;return t&&V(`defs`,null,V(`linearGradient`,{id:n.value,x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`},V(`stop`,{offset:`0%`,"stop-color":r}),V(`stop`,{offset:`100%`,"stop-color":i})))};return()=>{let{fillColor:n,railColor:a,strokeWidth:o,offsetDegree:s,status:c,percentage:l,showIndicator:u,indicatorTextColor:d,unit:f,gapOffsetDegree:p,clsPrefix:m}=e,{pathString:h,pathStyle:g}=r(100,0,a,`rail`),{pathString:_,pathStyle:v}=r(l,s,n,`fill`),y=100+o;return V(`div`,{class:`${m}-progress-content`,role:`none`},V(`div`,{class:`${m}-progress-graph`,"aria-hidden":!0},V(`div`,{class:`${m}-progress-graph-circle`,style:{transform:p?`rotate(${p}deg)`:void 0}},V(`svg`,{viewBox:`0 0 ${y} ${y}`},i(),V(`g`,null,V(`path`,{class:`${m}-progress-graph-circle-rail`,d:h,"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:g})),V(`g`,null,V(`path`,{class:[`${m}-progress-graph-circle-fill`,l===0&&`${m}-progress-graph-circle-fill--empty`],d:_,"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:v}))))),u?V(`div`,null,t.default?V(`div`,{class:`${m}-progress-custom-content`,role:`none`},t.default()):c==="default"?V(`div`,{class:`${m}-progress-text`,style:{color:d},role:`none`},V(`span`,{class:`${m}-progress-text__percentage`},l),V(`span`,{class:`${m}-progress-text__unit`},f)):V(`div`,{class:`${m}-progress-icon`,"aria-hidden":!0},V(rx,{clsPrefix:m},{default:()=>ak[c]}))):null)}}}),sk={success:V(Ex,null),error:V(_x,null),warning:V(Ox,null),info:V(bx,null)},ck=P({name:`ProgressLine`,props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:`%`},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){let n=B(()=>Jf(e.height)),r=B(()=>typeof e.fillColor==`object`?`linear-gradient(to right, ${e.fillColor?.stops[0]} , ${e.fillColor?.stops[1]})`:e.fillColor),i=B(()=>e.railBorderRadius===void 0?e.height===void 0?``:Jf(e.height,{c:.5}):Jf(e.railBorderRadius)),a=B(()=>e.fillBorderRadius===void 0?e.railBorderRadius===void 0?e.height===void 0?``:Jf(e.height,{c:.5}):Jf(e.railBorderRadius):Jf(e.fillBorderRadius));return()=>{let{indicatorPlacement:o,railColor:s,railStyle:c,percentage:l,unit:u,indicatorTextColor:d,status:f,showIndicator:p,processing:m,clsPrefix:h}=e;return V(`div`,{class:`${h}-progress-content`,role:`none`},V(`div`,{class:`${h}-progress-graph`,"aria-hidden":!0},V(`div`,{class:[`${h}-progress-graph-line`,{[`${h}-progress-graph-line--indicator-${o}`]:!0}]},V(`div`,{class:`${h}-progress-graph-line-rail`,style:[{backgroundColor:s,height:n.value,borderRadius:i.value},c]},V(`div`,{class:[`${h}-progress-graph-line-fill`,m&&`${h}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:r.value,height:n.value,lineHeight:n.value,borderRadius:a.value}},o===`inside`?V(`div`,{class:`${h}-progress-graph-line-indicator`,style:{color:d}},t.default?t.default():`${l}${u}`):null)))),p&&o===`outside`?V(`div`,null,t.default?V(`div`,{class:`${h}-progress-custom-content`,style:{color:d},role:`none`},t.default()):f==="default"?V(`div`,{role:`none`,class:`${h}-progress-icon ${h}-progress-icon--as-text`,style:{color:d}},l,u):V(`div`,{class:`${h}-progress-icon`,"aria-hidden":!0},V(rx,{clsPrefix:h},{default:()=>sk[f]}))):null)}}});function lk(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var uk=P({name:`ProgressMultipleCircle`,props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){let n=B(()=>e.percentage.map((t,n)=>`${Math.PI*t/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*n)-e.circleGap*n)*2}, ${e.viewBoxWidth*8}`)),r=(t,n)=>{let r=e.fillColor[n],i=typeof r==`object`?r.stops[0]:``,a=typeof r==`object`?r.stops[1]:``;return typeof e.fillColor[n]==`object`&&V(`linearGradient`,{id:`gradient-${n}`,x1:`100%`,y1:`0%`,x2:`0%`,y2:`100%`},V(`stop`,{offset:`0%`,"stop-color":i}),V(`stop`,{offset:`100%`,"stop-color":a}))};return()=>{let{viewBoxWidth:i,strokeWidth:a,circleGap:o,showIndicator:s,fillColor:c,railColor:l,railStyle:u,percentage:d,clsPrefix:f}=e;return V(`div`,{class:`${f}-progress-content`,role:`none`},V(`div`,{class:`${f}-progress-graph`,"aria-hidden":!0},V(`div`,{class:`${f}-progress-graph-circle`},V(`svg`,{viewBox:`0 0 ${i} ${i}`},V(`defs`,null,d.map((e,t)=>r(e,t))),d.map((e,t)=>V(`g`,{key:t},V(`path`,{class:`${f}-progress-graph-circle-rail`,d:lk(i/2-a/2*(1+2*t)-o*t,a,i),"stroke-width":a,"stroke-linecap":`round`,fill:`none`,style:[{strokeDashoffset:0,stroke:l[t]},u[t]]}),V(`path`,{class:[`${f}-progress-graph-circle-fill`,e===0&&`${f}-progress-graph-circle-fill--empty`],d:lk(i/2-a/2*(1+2*t)-o*t,a,i),"stroke-width":a,"stroke-linecap":`round`,fill:`none`,style:{strokeDasharray:n.value[t],strokeDashoffset:0,stroke:typeof c[t]==`object`?`url(#gradient-${t})`:c[t]}})))))),s&&t.default?V(`div`,null,V(`div`,{class:`${f}-progress-text`},t.default())):null)}}}),dk=H([U(`progress`,{display:`inline-block`},[U(`progress-icon`,` + a 50,50 0 1 1 0,100`,d=Math.PI*2*50;return{pathString:u,pathStyle:{stroke:a===`rail`?i:typeof e.fillColor==`object`?`url(#${n.value})`:i,strokeDasharray:`${Math.min(t,100)/100*(d-o)}px ${s*8}px`,strokeDashoffset:`-${o/2}px`,transformOrigin:r?`center`:void 0,transform:r?`rotate(${r}deg)`:void 0}}}let i=()=>{let t=typeof e.fillColor==`object`,r=t?e.fillColor.stops[0]:``,i=t?e.fillColor.stops[1]:``;return t&&V(`defs`,null,V(`linearGradient`,{id:n.value,x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`},V(`stop`,{offset:`0%`,"stop-color":r}),V(`stop`,{offset:`100%`,"stop-color":i})))};return()=>{let{fillColor:n,railColor:a,strokeWidth:o,offsetDegree:s,status:c,percentage:l,showIndicator:u,indicatorTextColor:d,unit:f,gapOffsetDegree:p,clsPrefix:m}=e,{pathString:h,pathStyle:g}=r(100,0,a,`rail`),{pathString:_,pathStyle:v}=r(l,s,n,`fill`),y=100+o;return V(`div`,{class:`${m}-progress-content`,role:`none`},V(`div`,{class:`${m}-progress-graph`,"aria-hidden":!0},V(`div`,{class:`${m}-progress-graph-circle`,style:{transform:p?`rotate(${p}deg)`:void 0}},V(`svg`,{viewBox:`0 0 ${y} ${y}`},i(),V(`g`,null,V(`path`,{class:`${m}-progress-graph-circle-rail`,d:h,"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:g})),V(`g`,null,V(`path`,{class:[`${m}-progress-graph-circle-fill`,l===0&&`${m}-progress-graph-circle-fill--empty`],d:_,"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:v}))))),u?V(`div`,null,t.default?V(`div`,{class:`${m}-progress-custom-content`,role:`none`},t.default()):c==="default"?V(`div`,{class:`${m}-progress-text`,style:{color:d},role:`none`},V(`span`,{class:`${m}-progress-text__percentage`},l),V(`span`,{class:`${m}-progress-text__unit`},f)):V(`div`,{class:`${m}-progress-icon`,"aria-hidden":!0},V(rx,{clsPrefix:m},{default:()=>lk[c]}))):null)}}}),dk={success:V(Ex,null),error:V(_x,null),warning:V(Ox,null),info:V(bx,null)},fk=P({name:`ProgressLine`,props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:`%`},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){let n=B(()=>Jf(e.height)),r=B(()=>typeof e.fillColor==`object`?`linear-gradient(to right, ${e.fillColor?.stops[0]} , ${e.fillColor?.stops[1]})`:e.fillColor),i=B(()=>e.railBorderRadius===void 0?e.height===void 0?``:Jf(e.height,{c:.5}):Jf(e.railBorderRadius)),a=B(()=>e.fillBorderRadius===void 0?e.railBorderRadius===void 0?e.height===void 0?``:Jf(e.height,{c:.5}):Jf(e.railBorderRadius):Jf(e.fillBorderRadius));return()=>{let{indicatorPlacement:o,railColor:s,railStyle:c,percentage:l,unit:u,indicatorTextColor:d,status:f,showIndicator:p,processing:m,clsPrefix:h}=e;return V(`div`,{class:`${h}-progress-content`,role:`none`},V(`div`,{class:`${h}-progress-graph`,"aria-hidden":!0},V(`div`,{class:[`${h}-progress-graph-line`,{[`${h}-progress-graph-line--indicator-${o}`]:!0}]},V(`div`,{class:`${h}-progress-graph-line-rail`,style:[{backgroundColor:s,height:n.value,borderRadius:i.value},c]},V(`div`,{class:[`${h}-progress-graph-line-fill`,m&&`${h}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:r.value,height:n.value,lineHeight:n.value,borderRadius:a.value}},o===`inside`?V(`div`,{class:`${h}-progress-graph-line-indicator`,style:{color:d}},t.default?t.default():`${l}${u}`):null)))),p&&o===`outside`?V(`div`,null,t.default?V(`div`,{class:`${h}-progress-custom-content`,style:{color:d},role:`none`},t.default()):f==="default"?V(`div`,{role:`none`,class:`${h}-progress-icon ${h}-progress-icon--as-text`,style:{color:d}},l,u):V(`div`,{class:`${h}-progress-icon`,"aria-hidden":!0},V(rx,{clsPrefix:h},{default:()=>dk[f]}))):null)}}});function pk(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var mk=P({name:`ProgressMultipleCircle`,props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){let n=B(()=>e.percentage.map((t,n)=>`${Math.PI*t/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*n)-e.circleGap*n)*2}, ${e.viewBoxWidth*8}`)),r=(t,n)=>{let r=e.fillColor[n],i=typeof r==`object`?r.stops[0]:``,a=typeof r==`object`?r.stops[1]:``;return typeof e.fillColor[n]==`object`&&V(`linearGradient`,{id:`gradient-${n}`,x1:`100%`,y1:`0%`,x2:`0%`,y2:`100%`},V(`stop`,{offset:`0%`,"stop-color":i}),V(`stop`,{offset:`100%`,"stop-color":a}))};return()=>{let{viewBoxWidth:i,strokeWidth:a,circleGap:o,showIndicator:s,fillColor:c,railColor:l,railStyle:u,percentage:d,clsPrefix:f}=e;return V(`div`,{class:`${f}-progress-content`,role:`none`},V(`div`,{class:`${f}-progress-graph`,"aria-hidden":!0},V(`div`,{class:`${f}-progress-graph-circle`},V(`svg`,{viewBox:`0 0 ${i} ${i}`},V(`defs`,null,d.map((e,t)=>r(e,t))),d.map((e,t)=>V(`g`,{key:t},V(`path`,{class:`${f}-progress-graph-circle-rail`,d:pk(i/2-a/2*(1+2*t)-o*t,a,i),"stroke-width":a,"stroke-linecap":`round`,fill:`none`,style:[{strokeDashoffset:0,stroke:l[t]},u[t]]}),V(`path`,{class:[`${f}-progress-graph-circle-fill`,e===0&&`${f}-progress-graph-circle-fill--empty`],d:pk(i/2-a/2*(1+2*t)-o*t,a,i),"stroke-width":a,"stroke-linecap":`round`,fill:`none`,style:{strokeDasharray:n.value[t],strokeDashoffset:0,stroke:typeof c[t]==`object`?`url(#gradient-${t})`:c[t]}})))))),s&&t.default?V(`div`,null,V(`div`,{class:`${f}-progress-text`},t.default())):null)}}}),hk=H([U(`progress`,{display:`inline-block`},[U(`progress-icon`,` color: var(--n-icon-color); transition: color .3s var(--n-bezier); `),G(`line`,` @@ -1637,7 +1684,7 @@ right: 0; opacity: 0; } - `)]),fk=P({name:`Progress`,props:Object.assign(Object.assign({},X.props),{processing:Boolean,type:{type:String,default:`line`},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:`default`},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:`%`},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:`outside`},indicatorPlacement:{type:String,default:`outside`},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),setup(e){let t=B(()=>e.indicatorPlacement||e.indicatorPosition),n=B(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type===`dashboard`)return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=bp(e),a=X(`Progress`,`-progress`,dk,GD,e,r),o=B(()=>{let{status:t}=e,{common:{cubicBezierEaseInOut:n},self:{fontSize:r,fontSizeCircle:i,railColor:o,railHeight:s,iconSizeCircle:c,iconSizeLine:l,textColorCircle:u,textColorLineInner:d,textColorLineOuter:f,lineBgProcessing:p,fontWeightCircle:m,[K(`iconColor`,t)]:h,[K(`fillColor`,t)]:g}}=a.value;return{"--n-bezier":n,"--n-fill-color":g,"--n-font-size":r,"--n-font-size-circle":i,"--n-font-weight-circle":m,"--n-icon-color":h,"--n-icon-size-circle":c,"--n-icon-size-line":l,"--n-line-bg-processing":p,"--n-rail-color":o,"--n-rail-height":s,"--n-text-color-circle":u,"--n-text-color-line-inner":d,"--n-text-color-line-outer":f}}),s=i?xp(`progress`,B(()=>e.status[0]),o,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:i?void 0:o,themeClass:s?.themeClass,onRender:s?.onRender}},render(){let{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:i,railColor:a,railStyle:o,color:s,percentage:c,viewBoxWidth:l,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:p,fillBorderRadius:m,height:h,processing:g,circleGap:_,mergedClsPrefix:v,gapDeg:y,gapOffsetDegree:b,themeClass:x,$slots:S,onRender:C}=this;return C?.(),V(`div`,{class:[x,`${v}-progress`,`${v}-progress--${e}`,`${v}-progress--${i}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:e===`circle`||e===`line`||e===`dashboard`?`progressbar`:`none`},e===`circle`||e===`dashboard`?V(ok,{clsPrefix:v,status:i,showIndicator:r,indicatorTextColor:n,railColor:a,fillColor:s,railStyle:o,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:l,strokeWidth:u,gapDegree:y===void 0?e===`dashboard`?75:0:y,gapOffsetDegree:b,unit:f},S):e===`line`?V(ck,{clsPrefix:v,status:i,showIndicator:r,indicatorTextColor:n,railColor:a,fillColor:s,railStyle:o,percentage:c,processing:g,indicatorPlacement:d,unit:f,fillBorderRadius:m,railBorderRadius:p,height:h},S):e===`multiple-circle`?V(uk,{clsPrefix:v,strokeWidth:u,railColor:a,fillColor:s,railStyle:o,viewBoxWidth:l,percentage:c,showIndicator:r,circleGap:_},S):null)}}),pk={name:`QrCode`,common:Q,self:e=>({borderRadius:e.borderRadius})},mk={name:`Skeleton`,common:Q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},hk={name:`Split`,common:Q},gk=U(`switch`,` + `)]),gk=P({name:`Progress`,props:Object.assign(Object.assign({},X.props),{processing:Boolean,type:{type:String,default:`line`},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:`default`},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:`%`},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:`outside`},indicatorPlacement:{type:String,default:`outside`},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),setup(e){let t=B(()=>e.indicatorPlacement||e.indicatorPosition),n=B(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type===`dashboard`)return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=bp(e),a=X(`Progress`,`-progress`,hk,YD,e,r),o=B(()=>{let{status:t}=e,{common:{cubicBezierEaseInOut:n},self:{fontSize:r,fontSizeCircle:i,railColor:o,railHeight:s,iconSizeCircle:c,iconSizeLine:l,textColorCircle:u,textColorLineInner:d,textColorLineOuter:f,lineBgProcessing:p,fontWeightCircle:m,[K(`iconColor`,t)]:h,[K(`fillColor`,t)]:g}}=a.value;return{"--n-bezier":n,"--n-fill-color":g,"--n-font-size":r,"--n-font-size-circle":i,"--n-font-weight-circle":m,"--n-icon-color":h,"--n-icon-size-circle":c,"--n-icon-size-line":l,"--n-line-bg-processing":p,"--n-rail-color":o,"--n-rail-height":s,"--n-text-color-circle":u,"--n-text-color-line-inner":d,"--n-text-color-line-outer":f}}),s=i?xp(`progress`,B(()=>e.status[0]),o,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:i?void 0:o,themeClass:s?.themeClass,onRender:s?.onRender}},render(){let{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:i,railColor:a,railStyle:o,color:s,percentage:c,viewBoxWidth:l,strokeWidth:u,mergedIndicatorPlacement:d,unit:f,borderRadius:p,fillBorderRadius:m,height:h,processing:g,circleGap:_,mergedClsPrefix:v,gapDeg:y,gapOffsetDegree:b,themeClass:x,$slots:S,onRender:C}=this;return C?.(),V(`div`,{class:[x,`${v}-progress`,`${v}-progress--${e}`,`${v}-progress--${i}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:e===`circle`||e===`line`||e===`dashboard`?`progressbar`:`none`},e===`circle`||e===`dashboard`?V(uk,{clsPrefix:v,status:i,showIndicator:r,indicatorTextColor:n,railColor:a,fillColor:s,railStyle:o,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:l,strokeWidth:u,gapDegree:y===void 0?e===`dashboard`?75:0:y,gapOffsetDegree:b,unit:f},S):e===`line`?V(fk,{clsPrefix:v,status:i,showIndicator:r,indicatorTextColor:n,railColor:a,fillColor:s,railStyle:o,percentage:c,processing:g,indicatorPlacement:d,unit:f,fillBorderRadius:m,railBorderRadius:p,height:h},S):e===`multiple-circle`?V(mk,{clsPrefix:v,strokeWidth:u,railColor:a,fillColor:s,railStyle:o,viewBoxWidth:l,percentage:c,showIndicator:r,circleGap:_},S):null)}}),_k={name:`QrCode`,common:Q,self:e=>({borderRadius:e.borderRadius})},vk={name:`Skeleton`,common:Q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},yk={name:`Split`,common:Q},bk=U(`switch`,` height: var(--n-height); min-width: var(--n-width); vertical-align: middle; @@ -1738,7 +1785,7 @@ `)]),G(`disabled`,[W(`rail`,` cursor: not-allowed; opacity: .5; - `)])]),_k=Object.assign(Object.assign({},X.props),{size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]}),vk,yk=P({name:`Switch`,props:_k,slots:Object,setup(e){vk===void 0&&(vk=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=bp(e),i=X(`Switch`,`-switch`,gk,lO,e,t),a=Cp(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:r?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:o,mergedDisabledRef:s}=a,c=k(e.defaultValue),l=lu(j(e,`value`),c),u=B(()=>l.value===e.checkedValue),d=k(!1),f=k(!1),p=B(()=>{let{railStyle:t}=e;if(t)return t({focused:f.value,checked:u.value})});function m(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=a;n&&Y(n,t),i&&Y(i,t),r&&Y(r,t),c.value=t,o(),s()}function h(){let{nTriggerFormFocus:e}=a;e()}function g(){let{nTriggerFormBlur:e}=a;e()}function _(){e.loading||s.value||(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue))}function v(){f.value=!0,h()}function y(){f.value=!1,g(),d.value=!1}function b(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue),d.value=!1)}function x(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let S=B(()=>{let{value:e}=o,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:a,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[K(`buttonHeight`,e)]:f,[K(`buttonWidth`,e)]:p,[K(`buttonWidthPressed`,e)]:m,[K(`railHeight`,e)]:h,[K(`railWidth`,e)]:g,[K(`railBorderRadius`,e)]:_,[K(`buttonBorderRadius`,e)]:v},common:{cubicBezierEaseInOut:y}}=i.value,b,x,S;return vk?(b=`calc((${h} - ${f}) / 2)`,x=`max(${h}, ${f})`,S=`max(${g}, calc(${g} + ${f} - ${h}))`):(b=tl((el(h)-el(f))/2),x=tl(Math.max(el(h),el(f))),S=el(h)>el(f)?g:tl(el(g)+el(f)-el(h))),{"--n-bezier":y,"--n-button-border-radius":v,"--n-button-box-shadow":a,"--n-button-color":s,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":x,"--n-offset":b,"--n-opacity-disabled":t,"--n-rail-border-radius":_,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":h,"--n-rail-width":g,"--n-width":S,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),C=n?xp(`switch`,B(()=>o.value[0]),S,e):void 0;return{handleClick:_,handleBlur:y,handleFocus:v,handleKeyup:b,handleKeydown:x,mergedRailStyle:p,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:i,$slots:a}=this;i?.();let{checked:o,unchecked:s,icon:c,"checked-icon":l,"unchecked-icon":u}=a,d=!(_p(c)&&_p(l)&&_p(u));return V(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},V(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:r},gp(o,t=>gp(s,n=>t||n?V(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},V(`div`,{class:`${e}-switch__rail-placeholder`},V(`div`,{class:`${e}-switch__button-placeholder`}),t),V(`div`,{class:`${e}-switch__rail-placeholder`},V(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),V(`div`,{class:`${e}-switch__button`},gp(c,t=>gp(l,n=>gp(u,r=>V(ix,null,{default:()=>this.loading?V(Vx,Object.assign({key:`loading`,clsPrefix:e,strokeWidth:20},this.spinProps)):this.checked&&(n||t)?V(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(r||t)?V(`div`,{class:`${e}-switch__button-icon`,key:r?`unchecked-icon`:`icon`},r||t):null})))),gp(o,t=>t&&V(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),gp(s,t=>t&&V(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}}),bk=mu(`n-tabs`),xk={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Sk=P({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:xk,slots:Object,setup(e){let t=N(bk,null);return t||rp(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return V(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ck=P({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},dp(xk,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:i,tabStyleRef:a,addTabStyleRef:o,tabClassRef:s,addTabClassRef:c,tabChangeIdRef:l,onBeforeLeaveRef:u,triggerRef:d,handleAdd:f,activateTab:p,handleClose:m}=N(bk);return{trigger:d,mergedClosable:B(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?i.value:t}),style:a,addStyle:o,tabClass:s,addTabClass:c,clsPrefix:t,value:n,type:r,handleClose(t){t.stopPropagation(),!e.disabled&&m(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}let{name:t}=e,r=++l.id;if(t!==n.value){let{value:i}=u;i?Promise.resolve(i(e.name,n.value)).then(e=>{e&&l.id===r&&p(t)}):p(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:a,value:o,mergedClosable:s,trigger:c,$slots:{default:l}}=this,u=i??a;return V(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?V(`div`,{class:`${t}-tabs-tab-pad`}):null,V(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Fa({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:c===`click`?this.activateTab:void 0,onMouseenter:c===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),V(`span`,{class:`${t}-tabs-tab__label`},e?V(pa,null,V(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),V(rx,{clsPrefix:t},{default:()=>V(ax,null)})):l?l():typeof u==`object`?u:fp(u??n)),s&&this.type===`card`?V(Ix,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),wk=U(`tabs`,` + `)])]),xk=Object.assign(Object.assign({},X.props),{size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]}),Sk,Ck=P({name:`Switch`,props:xk,slots:Object,setup(e){Sk===void 0&&(Sk=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=bp(e),i=X(`Switch`,`-switch`,bk,pO,e,t),a=Cp(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:r?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:o,mergedDisabledRef:s}=a,c=k(e.defaultValue),l=lu(j(e,`value`),c),u=B(()=>l.value===e.checkedValue),d=k(!1),f=k(!1),p=B(()=>{let{railStyle:t}=e;if(t)return t({focused:f.value,checked:u.value})});function m(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=a;n&&Y(n,t),i&&Y(i,t),r&&Y(r,t),c.value=t,o(),s()}function h(){let{nTriggerFormFocus:e}=a;e()}function g(){let{nTriggerFormBlur:e}=a;e()}function _(){e.loading||s.value||(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue))}function v(){f.value=!0,h()}function y(){f.value=!1,g(),d.value=!1}function b(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?m(e.uncheckedValue):m(e.checkedValue),d.value=!1)}function x(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let S=B(()=>{let{value:e}=o,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:a,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[K(`buttonHeight`,e)]:f,[K(`buttonWidth`,e)]:p,[K(`buttonWidthPressed`,e)]:m,[K(`railHeight`,e)]:h,[K(`railWidth`,e)]:g,[K(`railBorderRadius`,e)]:_,[K(`buttonBorderRadius`,e)]:v},common:{cubicBezierEaseInOut:y}}=i.value,b,x,S;return Sk?(b=`calc((${h} - ${f}) / 2)`,x=`max(${h}, ${f})`,S=`max(${g}, calc(${g} + ${f} - ${h}))`):(b=tl((el(h)-el(f))/2),x=tl(Math.max(el(h),el(f))),S=el(h)>el(f)?g:tl(el(g)+el(f)-el(h))),{"--n-bezier":y,"--n-button-border-radius":v,"--n-button-box-shadow":a,"--n-button-color":s,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":x,"--n-offset":b,"--n-opacity-disabled":t,"--n-rail-border-radius":_,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":h,"--n-rail-width":g,"--n-width":S,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),C=n?xp(`switch`,B(()=>o.value[0]),S,e):void 0;return{handleClick:_,handleBlur:y,handleFocus:v,handleKeyup:b,handleKeydown:x,mergedRailStyle:p,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:i,$slots:a}=this;i?.();let{checked:o,unchecked:s,icon:c,"checked-icon":l,"unchecked-icon":u}=a,d=!(_p(c)&&_p(l)&&_p(u));return V(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,d&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},V(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:r},gp(o,t=>gp(s,n=>t||n?V(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},V(`div`,{class:`${e}-switch__rail-placeholder`},V(`div`,{class:`${e}-switch__button-placeholder`}),t),V(`div`,{class:`${e}-switch__rail-placeholder`},V(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),V(`div`,{class:`${e}-switch__button`},gp(c,t=>gp(l,n=>gp(u,r=>V(ix,null,{default:()=>this.loading?V(Vx,Object.assign({key:`loading`,clsPrefix:e,strokeWidth:20},this.spinProps)):this.checked&&(n||t)?V(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(r||t)?V(`div`,{class:`${e}-switch__button-icon`,key:r?`unchecked-icon`:`icon`},r||t):null})))),gp(o,t=>t&&V(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),gp(s,t=>t&&V(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}}),wk=mu(`n-tabs`),Tk={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},Ek=P({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:Tk,slots:Object,setup(e){let t=N(wk,null);return t||rp(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return V(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Dk=P({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},dp(Tk,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:i,tabStyleRef:a,addTabStyleRef:o,tabClassRef:s,addTabClassRef:c,tabChangeIdRef:l,onBeforeLeaveRef:u,triggerRef:d,handleAdd:f,activateTab:p,handleClose:m}=N(wk);return{trigger:d,mergedClosable:B(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?i.value:t}),style:a,addStyle:o,tabClass:s,addTabClass:c,clsPrefix:t,value:n,type:r,handleClose(t){t.stopPropagation(),!e.disabled&&m(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}let{name:t}=e,r=++l.id;if(t!==n.value){let{value:i}=u;i?Promise.resolve(i(e.name,n.value)).then(e=>{e&&l.id===r&&p(t)}):p(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:a,value:o,mergedClosable:s,trigger:c,$slots:{default:l}}=this,u=i??a;return V(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?V(`div`,{class:`${t}-tabs-tab-pad`}):null,V(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Fa({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:c===`click`?this.activateTab:void 0,onMouseenter:c===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),V(`span`,{class:`${t}-tabs-tab__label`},e?V(pa,null,V(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),V(rx,{clsPrefix:t},{default:()=>V(ax,null)})):l?l():typeof u==`object`?u:fp(u??n)),s&&this.type===`card`?V(Ix,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),Ok=U(`tabs`,` box-sizing: border-box; width: 100%; display: flex; @@ -2089,7 +2136,7 @@ border-top: 1px solid var(--n-tab-border-color); `),U(`tabs-pad`,` border-top: 1px solid var(--n-tab-border-color); - `)])])])]),Tk=Gb,Ek=P({name:`Tabs`,props:Object.assign(Object.assign({},X.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedComponentPropsRef:i}=bp(e),a=X(`Tabs`,`-tabs`,wk,hO,e,n),o=k(null),s=k(null),c=k(null),l=k(null),u=k(null),d=k(null),f=k(!0),p=k(!0),m=du(e,[`labelSize`,`size`]),h=B(()=>m.value?m.value:i?.value?.Tabs?.size||`medium`),g=du(e,[`activeName`,`value`]),_=k(g.value??e.defaultValue??(t.default?ip(t.default())[0]?.props?.name:null)),v=lu(g,_),y={id:0},b=B(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});Jn(v,()=>{y.id=0,T(),E()});function x(){let{value:e}=v;return e===null?null:o.value?.querySelector(`[data-name="${e}"]`)}function S(t){if(e.type===`card`)return;let{value:r}=s;if(!r)return;let i=r.style.opacity===`0`;if(t){let a=`${n.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?r.classList.add(a):r.classList.remove(a),[`top`,`bottom`].includes(s)){if(w([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;r.style.left=`${e}px`,r.style.maxWidth=`${o}px`}else r.style.left=`${t.offsetLeft}px`,r.style.maxWidth=`${t.offsetWidth}px`;r.style.width=`8192px`,i&&(r.style.transition=`none`),r.offsetWidth,i&&(r.style.transition=``,r.style.opacity=`1`)}else{if(w([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;r.style.top=`${e}px`,r.style.maxHeight=`${o}px`}else r.style.top=`${t.offsetTop}px`,r.style.maxHeight=`${t.offsetHeight}px`;r.style.height=`8192px`,i&&(r.style.transition=`none`),r.offsetHeight,i&&(r.style.transition=``,r.style.opacity=`1`)}}}function C(){if(e.type===`card`)return;let{value:t}=s;t&&(t.style.opacity=`0`)}function w(e){let{value:t}=s;if(t)for(let n of e)t.style[n]=``}function T(){if(e.type===`card`)return;let t=x();t?S(t):C()}function E(){let e=u.value?.$el;if(!e)return;let t=x();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let D=k(null),O=0,ee=null;function te(e){let t=D.value;if(t){O=e.getBoundingClientRect().height;let n=`${O}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};ee?(r(),ee(),ee=null):ee=r}}function ne(e){let t=D.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(O,n)}px`};ee?(ee(),ee=null,r()):ee=r}}function re(){let t=D.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let ie={value:[]},ae=k(`next`);function oe(e){let t=v.value,n=`next`;for(let r of ie.value){if(r===t)break;if(r===e){n=`prev`;break}}ae.value=n,se(e)}function se(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&Y(n,t),r&&Y(r,t),i&&Y(i,t),_.value=t}function ce(t){let{onClose:n}=e;n&&Y(n,t)}let le=!0;function ue(){let{value:e}=s;if(!e)return;le||=!1;let t=`transition-disabled`;e.classList.add(t),T(),e.classList.remove(t)}let de=k(null);function fe({transitionDisabled:e}){let t=o.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=x();n&&de.value&&(de.value.style.width=`${n.offsetWidth}px`,de.value.style.height=`${n.offsetHeight}px`,de.value.style.transform=`translateX(${n.offsetLeft-el(getComputedStyle(t).paddingLeft)}px)`,e&&de.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}Jn([v],()=>{e.type===`segment`&&kn(()=>{fe({transitionDisabled:!1})})}),Vr(()=>{e.type===`segment`&&fe({transitionDisabled:!0})});let pe=0;function me(t){if(t.contentRect.width===0&&t.contentRect.height===0||pe===t.contentRect.width)return;pe=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(le||e.justifyContent?.startsWith(`space`))&&ue(),n!==`segment`){let{placement:t}=e;be((t===`top`||t===`bottom`?u.value?.$el:d.value)||null)}}let he=Tk(me,64);Jn([()=>e.justifyContent,()=>e.size],()=>{kn(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&ue()})});let ge=k(!1);function _e(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!ge.value)s===`top`||s===`bottom`?ae.$el.offsetWidth&&(ge.value=!1):o-i>e.$el.offsetHeight&&(ge.value=!1)}be(u.value?.$el||null)}let ve=Tk(_e,64);function ye(){let{onAdd:t}=e;t&&t(),kn(()=>{let e=x(),{value:t}=u;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function be(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;f.value=e<=0,p.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;f.value=e<=0,p.value=e+r>=n}}let xe=Tk(e=>{be(e.target)},64);Un(bk,{triggerRef:j(e,`trigger`),tabStyleRef:j(e,`tabStyle`),tabClassRef:j(e,`tabClass`),addTabStyleRef:j(e,`addTabStyle`),addTabClassRef:j(e,`addTabClass`),paneClassRef:j(e,`paneClass`),paneStyleRef:j(e,`paneStyle`),mergedClsPrefixRef:n,typeRef:j(e,`type`),closableRef:j(e,`closable`),valueRef:v,tabChangeIdRef:y,onBeforeLeaveRef:j(e,`onBeforeLeave`),activateTab:oe,handleClose:ce,handleAdd:ye}),Ql(()=>{T(),E()}),qn(()=>{let{value:e}=c;if(!e)return;let{value:t}=n,r=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;f.value?e.classList.remove(r):e.classList.add(r),p.value?e.classList.remove(i):e.classList.add(i)});let Se={syncBarPosition:()=>{T()}},Ce=()=>{fe({transitionDisabled:!0})},we=B(()=>{let{value:t}=h,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:o,closeIconColorHover:s,closeIconColorPressed:c,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:g,fontWeightStrong:_,tabColorSegment:v,closeSize:y,closeIconSize:b,closeColorHover:x,closeColorPressed:S,closeBorderRadius:C,[K(`panePadding`,t)]:w,[K(`tabPadding`,r)]:T,[K(`tabPaddingVertical`,r)]:E,[K(`tabGap`,r)]:D,[K(`tabGap`,`${r}Vertical`)]:O,[K(`tabTextColor`,n)]:ee,[K(`tabTextColorActive`,n)]:te,[K(`tabTextColorHover`,n)]:ne,[K(`tabTextColorDisabled`,n)]:re,[K(`tabFontSize`,t)]:ie},common:{cubicBezierEaseInOut:ae}}=a.value;return{"--n-bezier":ae,"--n-color-segment":g,"--n-bar-color":i,"--n-tab-font-size":ie,"--n-tab-text-color":ee,"--n-tab-text-color-active":te,"--n-tab-text-color-disabled":re,"--n-tab-text-color-hover":ne,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":y,"--n-close-icon-size":b,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-close-border-radius":C,"--n-close-icon-color":o,"--n-close-icon-color-hover":s,"--n-close-icon-color-pressed":c,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":E,"--n-tab-gap":D,"--n-tab-gap-vertical":O,"--n-pane-padding-left":nl(w,`left`),"--n-pane-padding-right":nl(w,`right`),"--n-pane-padding-top":nl(w,`top`),"--n-pane-padding-bottom":nl(w,`bottom`),"--n-font-weight-strong":_,"--n-tab-color-segment":v}}),Te=r?xp(`tabs`,B(()=>`${h.value[0]}${e.type[0]}`),we,e):void 0;return Object.assign({mergedClsPrefix:n,mergedValue:v,renderedNames:new Set,segmentCapsuleElRef:de,tabsPaneWrapperRef:D,tabsElRef:o,barElRef:s,addTabInstRef:l,xScrollInstRef:u,scrollWrapperElRef:c,addTabFixed:ge,tabWrapperStyle:b,handleNavResize:he,mergedSize:h,handleScroll:xe,handleTabsResize:ve,cssVars:r?void 0:we,themeClass:Te?.themeClass,animationDirection:ae,renderNameListRef:ie,yScrollElRef:d,handleSegmentResize:Ce,onAnimationBeforeLeave:te,onAnimationEnter:ne,onAnimationAfterEnter:re,onRender:Te?.onRender},Se)},render(){let{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:o,onRender:s,paneWrapperClass:c,paneWrapperStyle:l,$slots:{default:u,prefix:d,suffix:f}}=this;s?.();let p=u?ip(u()).filter(e=>e.type.__TAB_PANE__===!0):[],m=u?ip(u()).filter(e=>e.type.__TAB__===!0):[],h=!m.length,g=t===`card`,_=t===`segment`,v=!g&&!_&&this.justifyContent;o.value=[];let y=()=>{let t=V(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},v?null:V(`div`,{class:`${e}-tabs-scroll-padding`,style:n===`top`||n===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),h?p.map((e,t)=>(o.value.push(e.props.name),Ak(V(Ck,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!v||v===`center`||v===`start`||v===`end`)}),e.children?{default:e.children.tab}:void 0)))):m.map((e,t)=>(o.value.push(e.props.name),Ak(t!==0&&!v?kk(e):e))),!r&&i&&g?Ok(i,(h?p.length:m.length)!==0):null,v?null:V(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return V(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},g&&i?V(Tf,{onResize:this.handleTabsResize},{default:()=>t}):t,g?V(`div`,{class:`${e}-tabs-pad`}):null,g?null:V(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},b=_?`top`:n;return V(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,v&&`${e}-tabs--flex`,`${e}-tabs--${b}`],style:this.cssVars},V(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${b}`,`${e}-tabs-nav`]},gp(d,t=>t&&V(`div`,{class:`${e}-tabs-nav__prefix`},t)),_?V(Tf,{onResize:this.handleSegmentResize},{default:()=>V(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},V(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},V(`div`,{class:`${e}-tabs-wrapper`},V(`div`,{class:`${e}-tabs-tab`}))),h?p.map((e,t)=>(o.value.push(e.props.name),V(Ck,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):m.map((e,t)=>(o.value.push(e.props.name),t===0?e:kk(e))))}):V(Tf,{onResize:this.handleNavResize},{default:()=>V(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(b)?V(If,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:y}):V(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},y()))}),r&&i&&g?Ok(i,!0):null,gp(f,t=>t&&V(`div`,{class:`${e}-tabs-nav__suffix`},t))),h&&(this.animated&&(b===`top`||b===`bottom`)?V(`div`,{ref:`tabsPaneWrapperRef`,style:l,class:[`${e}-tabs-pane-wrapper`,c]},Dk(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Dk(p,this.mergedValue,this.renderedNames)))}});function Dk(e,t,n,r,i,a,o){let s=[];return e.forEach(e=>{let{name:r,displayDirective:i,"display-directive":a}=e.props,o=e=>i===e||a===e,c=t===r;if(e.key!==void 0&&(e.key=r),c||o(`show`)||o(`show:lazy`)&&n.has(r)){n.has(r)||n.add(r);let t=!o(`if`);s.push(t?Vn(e,[[Lo,c]]):e)}}),o?V(gs,{name:`${o}-transition`,onBeforeLeave:r,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Ok(e,t){return V(Ck,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function kk(e){let t=Aa(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Ak(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}var jk=U(`text`,` + `)])])])]),kk=Gb,Ak=P({name:`Tabs`,props:Object.assign(Object.assign({},X.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedComponentPropsRef:i}=bp(e),a=X(`Tabs`,`-tabs`,Ok,yO,e,n),o=k(null),s=k(null),c=k(null),l=k(null),u=k(null),d=k(null),f=k(!0),p=k(!0),m=du(e,[`labelSize`,`size`]),h=B(()=>m.value?m.value:i?.value?.Tabs?.size||`medium`),g=du(e,[`activeName`,`value`]),_=k(g.value??e.defaultValue??(t.default?ip(t.default())[0]?.props?.name:null)),v=lu(g,_),y={id:0},b=B(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});Jn(v,()=>{y.id=0,T(),E()});function x(){let{value:e}=v;return e===null?null:o.value?.querySelector(`[data-name="${e}"]`)}function S(t){if(e.type===`card`)return;let{value:r}=s;if(!r)return;let i=r.style.opacity===`0`;if(t){let a=`${n.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?r.classList.add(a):r.classList.remove(a),[`top`,`bottom`].includes(s)){if(w([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;r.style.left=`${e}px`,r.style.maxWidth=`${o}px`}else r.style.left=`${t.offsetLeft}px`,r.style.maxWidth=`${t.offsetWidth}px`;r.style.width=`8192px`,i&&(r.style.transition=`none`),r.offsetWidth,i&&(r.style.transition=``,r.style.opacity=`1`)}else{if(w([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;r.style.top=`${e}px`,r.style.maxHeight=`${o}px`}else r.style.top=`${t.offsetTop}px`,r.style.maxHeight=`${t.offsetHeight}px`;r.style.height=`8192px`,i&&(r.style.transition=`none`),r.offsetHeight,i&&(r.style.transition=``,r.style.opacity=`1`)}}}function C(){if(e.type===`card`)return;let{value:t}=s;t&&(t.style.opacity=`0`)}function w(e){let{value:t}=s;if(t)for(let n of e)t.style[n]=``}function T(){if(e.type===`card`)return;let t=x();t?S(t):C()}function E(){let e=u.value?.$el;if(!e)return;let t=x();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let D=k(null),O=0,ee=null;function te(e){let t=D.value;if(t){O=e.getBoundingClientRect().height;let n=`${O}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};ee?(r(),ee(),ee=null):ee=r}}function ne(e){let t=D.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(O,n)}px`};ee?(ee(),ee=null,r()):ee=r}}function re(){let t=D.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let ie={value:[]},ae=k(`next`);function oe(e){let t=v.value,n=`next`;for(let r of ie.value){if(r===t)break;if(r===e){n=`prev`;break}}ae.value=n,se(e)}function se(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&Y(n,t),r&&Y(r,t),i&&Y(i,t),_.value=t}function ce(t){let{onClose:n}=e;n&&Y(n,t)}let le=!0;function ue(){let{value:e}=s;if(!e)return;le||=!1;let t=`transition-disabled`;e.classList.add(t),T(),e.classList.remove(t)}let de=k(null);function fe({transitionDisabled:e}){let t=o.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=x();n&&de.value&&(de.value.style.width=`${n.offsetWidth}px`,de.value.style.height=`${n.offsetHeight}px`,de.value.style.transform=`translateX(${n.offsetLeft-el(getComputedStyle(t).paddingLeft)}px)`,e&&de.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}Jn([v],()=>{e.type===`segment`&&kn(()=>{fe({transitionDisabled:!1})})}),Vr(()=>{e.type===`segment`&&fe({transitionDisabled:!0})});let pe=0;function me(t){if(t.contentRect.width===0&&t.contentRect.height===0||pe===t.contentRect.width)return;pe=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(le||e.justifyContent?.startsWith(`space`))&&ue(),n!==`segment`){let{placement:t}=e;be((t===`top`||t===`bottom`?u.value?.$el:d.value)||null)}}let he=kk(me,64);Jn([()=>e.justifyContent,()=>e.size],()=>{kn(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&ue()})});let ge=k(!1);function _e(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!ge.value)s===`top`||s===`bottom`?ae.$el.offsetWidth&&(ge.value=!1):o-i>e.$el.offsetHeight&&(ge.value=!1)}be(u.value?.$el||null)}let ve=kk(_e,64);function ye(){let{onAdd:t}=e;t&&t(),kn(()=>{let e=x(),{value:t}=u;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function be(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;f.value=e<=0,p.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;f.value=e<=0,p.value=e+r>=n}}let xe=kk(e=>{be(e.target)},64);Un(wk,{triggerRef:j(e,`trigger`),tabStyleRef:j(e,`tabStyle`),tabClassRef:j(e,`tabClass`),addTabStyleRef:j(e,`addTabStyle`),addTabClassRef:j(e,`addTabClass`),paneClassRef:j(e,`paneClass`),paneStyleRef:j(e,`paneStyle`),mergedClsPrefixRef:n,typeRef:j(e,`type`),closableRef:j(e,`closable`),valueRef:v,tabChangeIdRef:y,onBeforeLeaveRef:j(e,`onBeforeLeave`),activateTab:oe,handleClose:ce,handleAdd:ye}),Ql(()=>{T(),E()}),qn(()=>{let{value:e}=c;if(!e)return;let{value:t}=n,r=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;f.value?e.classList.remove(r):e.classList.add(r),p.value?e.classList.remove(i):e.classList.add(i)});let Se={syncBarPosition:()=>{T()}},Ce=()=>{fe({transitionDisabled:!0})},we=B(()=>{let{value:t}=h,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:o,closeIconColorHover:s,closeIconColorPressed:c,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:g,fontWeightStrong:_,tabColorSegment:v,closeSize:y,closeIconSize:b,closeColorHover:x,closeColorPressed:S,closeBorderRadius:C,[K(`panePadding`,t)]:w,[K(`tabPadding`,r)]:T,[K(`tabPaddingVertical`,r)]:E,[K(`tabGap`,r)]:D,[K(`tabGap`,`${r}Vertical`)]:O,[K(`tabTextColor`,n)]:ee,[K(`tabTextColorActive`,n)]:te,[K(`tabTextColorHover`,n)]:ne,[K(`tabTextColorDisabled`,n)]:re,[K(`tabFontSize`,t)]:ie},common:{cubicBezierEaseInOut:ae}}=a.value;return{"--n-bezier":ae,"--n-color-segment":g,"--n-bar-color":i,"--n-tab-font-size":ie,"--n-tab-text-color":ee,"--n-tab-text-color-active":te,"--n-tab-text-color-disabled":re,"--n-tab-text-color-hover":ne,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":y,"--n-close-icon-size":b,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-close-border-radius":C,"--n-close-icon-color":o,"--n-close-icon-color-hover":s,"--n-close-icon-color-pressed":c,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":E,"--n-tab-gap":D,"--n-tab-gap-vertical":O,"--n-pane-padding-left":nl(w,`left`),"--n-pane-padding-right":nl(w,`right`),"--n-pane-padding-top":nl(w,`top`),"--n-pane-padding-bottom":nl(w,`bottom`),"--n-font-weight-strong":_,"--n-tab-color-segment":v}}),Te=r?xp(`tabs`,B(()=>`${h.value[0]}${e.type[0]}`),we,e):void 0;return Object.assign({mergedClsPrefix:n,mergedValue:v,renderedNames:new Set,segmentCapsuleElRef:de,tabsPaneWrapperRef:D,tabsElRef:o,barElRef:s,addTabInstRef:l,xScrollInstRef:u,scrollWrapperElRef:c,addTabFixed:ge,tabWrapperStyle:b,handleNavResize:he,mergedSize:h,handleScroll:xe,handleTabsResize:ve,cssVars:r?void 0:we,themeClass:Te?.themeClass,animationDirection:ae,renderNameListRef:ie,yScrollElRef:d,handleSegmentResize:Ce,onAnimationBeforeLeave:te,onAnimationEnter:ne,onAnimationAfterEnter:re,onRender:Te?.onRender},Se)},render(){let{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:o,onRender:s,paneWrapperClass:c,paneWrapperStyle:l,$slots:{default:u,prefix:d,suffix:f}}=this;s?.();let p=u?ip(u()).filter(e=>e.type.__TAB_PANE__===!0):[],m=u?ip(u()).filter(e=>e.type.__TAB__===!0):[],h=!m.length,g=t===`card`,_=t===`segment`,v=!g&&!_&&this.justifyContent;o.value=[];let y=()=>{let t=V(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},v?null:V(`div`,{class:`${e}-tabs-scroll-padding`,style:n===`top`||n===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),h?p.map((e,t)=>(o.value.push(e.props.name),Pk(V(Dk,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!v||v===`center`||v===`start`||v===`end`)}),e.children?{default:e.children.tab}:void 0)))):m.map((e,t)=>(o.value.push(e.props.name),Pk(t!==0&&!v?Nk(e):e))),!r&&i&&g?Mk(i,(h?p.length:m.length)!==0):null,v?null:V(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return V(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},g&&i?V(Tf,{onResize:this.handleTabsResize},{default:()=>t}):t,g?V(`div`,{class:`${e}-tabs-pad`}):null,g?null:V(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},b=_?`top`:n;return V(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,v&&`${e}-tabs--flex`,`${e}-tabs--${b}`],style:this.cssVars},V(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${b}`,`${e}-tabs-nav`]},gp(d,t=>t&&V(`div`,{class:`${e}-tabs-nav__prefix`},t)),_?V(Tf,{onResize:this.handleSegmentResize},{default:()=>V(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},V(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},V(`div`,{class:`${e}-tabs-wrapper`},V(`div`,{class:`${e}-tabs-tab`}))),h?p.map((e,t)=>(o.value.push(e.props.name),V(Dk,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):m.map((e,t)=>(o.value.push(e.props.name),t===0?e:Nk(e))))}):V(Tf,{onResize:this.handleNavResize},{default:()=>V(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(b)?V(If,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:y}):V(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},y()))}),r&&i&&g?Mk(i,!0):null,gp(f,t=>t&&V(`div`,{class:`${e}-tabs-nav__suffix`},t))),h&&(this.animated&&(b===`top`||b===`bottom`)?V(`div`,{ref:`tabsPaneWrapperRef`,style:l,class:[`${e}-tabs-pane-wrapper`,c]},jk(p,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):jk(p,this.mergedValue,this.renderedNames)))}});function jk(e,t,n,r,i,a,o){let s=[];return e.forEach(e=>{let{name:r,displayDirective:i,"display-directive":a}=e.props,o=e=>i===e||a===e,c=t===r;if(e.key!==void 0&&(e.key=r),c||o(`show`)||o(`show:lazy`)&&n.has(r)){n.has(r)||n.add(r);let t=!o(`if`);s.push(t?Vn(e,[[Lo,c]]):e)}}),o?V(gs,{name:`${o}-transition`,onBeforeLeave:r,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Mk(e,t){return V(Dk,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function Nk(e){let t=Aa(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Pk(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}var Fk=U(`text`,` transition: color .3s var(--n-bezier); color: var(--n-text-color); `,[G(`strong`,` @@ -2109,7 +2156,7 @@ color: var(--n-code-text-color); background-color: var(--n-code-color); border: var(--n-code-border); - `)]),Mk=P({name:`Text`,props:Object.assign(Object.assign({},X.props),{code:Boolean,type:{type:String,default:`default`},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=bp(e),r=X(`Typography`,`-text`,jk,OO,e,t),i=B(()=>{let{depth:t,type:n}=e,i=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:K(`textColor`,n),{common:{fontWeightStrong:a,fontFamilyMono:o,cubicBezierEaseInOut:s},self:{codeTextColor:c,codeBorderRadius:l,codeColor:u,codeBorder:d,[i]:f}}=r.value;return{"--n-bezier":s,"--n-text-color":f,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":l,"--n-code-text-color":c,"--n-code-color":u,"--n-code-border":d}}),a=n?xp(`text`,B(()=>`${e.type[0]}${e.depth||``}`),i,e):void 0;return{mergedClsPrefix:t,compitableTag:du(e,[`as`,`tag`]),cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){var e,t;let{mergedClsPrefix:n}=this;(e=this.onRender)==null||e.call(this);let r=[`${n}-text`,this.themeClass,{[`${n}-text--code`]:this.code,[`${n}-text--delete`]:this.delete,[`${n}-text--strong`]:this.strong,[`${n}-text--italic`]:this.italic,[`${n}-text--underline`]:this.underline}],i=(t=this.$slots).default?.call(t);return this.code?V(`code`,{class:r,style:this.cssVars},this.delete?V(`del`,null,i):i):this.delete?V(`del`,{class:r,style:this.cssVars},i):V(this.compitableTag||`span`,{class:r,style:this.cssVars},i)}}),Nk=mu(`n-upload`),Pk=H([U(`upload`,`width: 100%;`,[G(`dragger-inside`,[U(`upload-trigger`,` + `)]),Ik=P({name:`Text`,props:Object.assign(Object.assign({},X.props),{code:Boolean,type:{type:String,default:`default`},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=bp(e),r=X(`Typography`,`-text`,Fk,MO,e,t),i=B(()=>{let{depth:t,type:n}=e,i=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:K(`textColor`,n),{common:{fontWeightStrong:a,fontFamilyMono:o,cubicBezierEaseInOut:s},self:{codeTextColor:c,codeBorderRadius:l,codeColor:u,codeBorder:d,[i]:f}}=r.value;return{"--n-bezier":s,"--n-text-color":f,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":l,"--n-code-text-color":c,"--n-code-color":u,"--n-code-border":d}}),a=n?xp(`text`,B(()=>`${e.type[0]}${e.depth||``}`),i,e):void 0;return{mergedClsPrefix:t,compitableTag:du(e,[`as`,`tag`]),cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){var e,t;let{mergedClsPrefix:n}=this;(e=this.onRender)==null||e.call(this);let r=[`${n}-text`,this.themeClass,{[`${n}-text--code`]:this.code,[`${n}-text--delete`]:this.delete,[`${n}-text--strong`]:this.strong,[`${n}-text--italic`]:this.italic,[`${n}-text--underline`]:this.underline}],i=(t=this.$slots).default?.call(t);return this.code?V(`code`,{class:r,style:this.cssVars},this.delete?V(`del`,null,i):i):this.delete?V(`del`,{class:r,style:this.cssVars},i):V(this.compitableTag||`span`,{class:r,style:this.cssVars},i)}}),Lk=mu(`n-upload`),Rk=H([U(`upload`,`width: 100%;`,[G(`dragger-inside`,[U(`upload-trigger`,` display: block; `)]),G(`drag-over`,[U(`upload-dragger`,` border: var(--n-dragger-border-hover); @@ -2170,7 +2217,7 @@ padding: 0px 12px 0 6px; transition: background-color .3s var(--n-bezier); border-radius: var(--n-border-radius); - `,[GC(),U(`progress`,[GC({foldPadding:!0})]),H(`&:hover`,` + `,[qC(),U(`progress`,[qC({foldPadding:!0})]),H(`&:hover`,` background-color: var(--n-item-color-hover); `,[U(`upload-file-info`,[W(`action`,` opacity: 1; @@ -2325,13 +2372,13 @@ width: 0; height: 0; opacity: 0; - `)]),Fk=P({name:`UploadDragger`,__UPLOAD_DRAGGER__:!0,setup(e,{slots:t}){let n=N(Nk,null);return n||rp(`upload-dragger`,"`n-upload-dragger` must be placed inside `n-upload`."),()=>{let{mergedClsPrefixRef:{value:e},mergedDisabledRef:{value:r},maxReachedRef:{value:i}}=n;return V(`div`,{class:[`${e}-upload-dragger`,(r||i)&&`${e}-upload-dragger--disabled`]},t)}}});function Ik(){return V(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},V(`g`,{fill:`none`},V(`path`,{d:`M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z`,fill:`currentColor`})))}function Lk(){return V(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},V(`g`,{fill:`none`},V(`path`,{d:`M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z`,fill:`currentColor`})))}var Rk=P({name:`UploadProgress`,props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:N(Nk).mergedThemeRef}},render(){return V(Lx,null,{default:()=>this.show?V(fk,{type:`line`,showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),zk=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Bk(e){return e.includes(`image/`)}function Vk(e=``){let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]}var Hk=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,Uk=e=>{if(e.type)return Bk(e.type);let t=Vk(e.name||``);if(Hk.test(t))return!0;let n=e.thumbnailUrl||e.url||``,r=Vk(n);return!!(/^data:image\//.test(n)||Hk.test(r))};function Wk(e){return zk(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!Bk(e.type)){t(``);return}t(window.URL.createObjectURL(e))})})}var Gk=wu&&window.FileReader&&window.File;function Kk(e){return e.isDirectory}function qk(e){return e.isFile}function Jk(e,t){return zk(this,void 0,void 0,function*(){let n=[];function r(e){return zk(this,void 0,void 0,function*(){for(let i of e)if(i){if(t&&Kk(i)){let e=i.createReader(),t=[],n;try{do n=yield new Promise((t,n)=>{e.readEntries(t,n)}),t=t.concat(n);while(n.length>0)}catch(e){np(`upload`,`error happens when handling directory upload`,e)}yield r(t)}else if(qk(i))try{let e=yield new Promise((e,t)=>{i.file(e,t)});n.push({file:e,entry:i,source:`dnd`})}catch(e){np(`upload`,`error happens when handling file upload`,e)}}})}return yield r(e),n})}function Yk(e){let{id:t,name:n,percentage:r,status:i,url:a,file:o,thumbnailUrl:s,type:c,fullPath:l,batchId:u}=e;return{id:t,name:n,percentage:r??null,status:i,url:a??null,file:o??null,thumbnailUrl:s??null,type:c??null,fullPath:l??null,batchId:u??null}}function Xk(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(`,`).map(e=>e.trim()).filter(Boolean).some(n=>{if(n.startsWith(`.`)){if(e.endsWith(n))return!0}else if(n.includes(`/`)){let[e,r]=t.split(`/`),[i,a]=n.split(`/`);if((i===`*`||e&&i&&i===e)&&(a===`*`||r&&a&&a===r))return!0}else return!0;return!1})}var Zk=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Qk={paddingMedium:`0 3px`,heightMedium:`24px`,iconSizeMedium:`18px`},$k=P({name:`UploadFile`,props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0},index:{type:Number,required:!0}},setup(e){let t=N(Nk),n=k(null),r=k(``),i=B(()=>{let{file:t}=e;return t.status===`finished`?`success`:t.status===`error`?`error`:`info`}),a=B(()=>{let{file:t}=e;if(t.status===`error`)return`error`}),o=B(()=>{let{file:t}=e;return t.status===`uploading`}),s=B(()=>{if(!t.showCancelButtonRef.value)return!1;let{file:n}=e;return[`uploading`,`pending`,`error`].includes(n.status)}),c=B(()=>{if(!t.showRemoveButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),l=B(()=>{if(!t.showDownloadButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),u=B(()=>{if(!t.showRetryButtonRef.value)return!1;let{file:n}=e;return[`error`].includes(n.status)}),d=ql(()=>r.value||e.file.thumbnailUrl||e.file.url),f=B(()=>{if(!t.showPreviewButtonRef.value)return!1;let{file:{status:n},listType:r}=e;return[`finished`].includes(n)&&d.value&&r===`image-card`});function p(){return Zk(this,void 0,void 0,function*(){let n=t.onRetryRef.value;n&&(yield n({file:e.file}))===!1||t.submit({fileId:e.file.id})})}function m(t){t.preventDefault();let{file:n}=e;[`finished`,`pending`,`error`].includes(n.status)?g(n):[`uploading`].includes(n.status)?v(n):tp(`upload`,`The button clicked type is unknown.`)}function h(t){t.preventDefault(),_(e.file)}function g(n){let{xhrMap:r,doChange:i,onRemoveRef:{value:a},mergedFileListRef:{value:o}}=t;Promise.resolve(a?a({file:Object.assign({},n),fileList:o,index:e.index}):!0).then(e=>{if(e===!1)return;let t=Object.assign({},n,{status:`removed`});r.delete(n.id),i(t,void 0,{remove:!0})})}function _(e){let{onDownloadRef:{value:n},customDownloadRef:{value:r}}=t;Promise.resolve(n?n(Object.assign({},e)):!0).then(t=>{t!==!1&&(r?r(Object.assign({},e)):Xf(e.url,e.name))})}function v(e){let{xhrMap:n}=t;n.get(e.id)?.abort(),g(Object.assign({},e))}function y(r){let{onPreviewRef:{value:i}}=t;if(i)i(e.file,{event:r});else if(e.listType===`image-card`){let{value:e}=n;if(!e)return;e.showPreview()}}let b=()=>Zk(this,void 0,void 0,function*(){let{listType:n}=e;n!==`image`&&n!==`image-card`||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return qn(()=>{b()}),{mergedTheme:t.mergedThemeRef,progressStatus:i,buttonType:a,showProgress:o,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:c,showDownloadButton:l,showRetryButton:u,showPreviewButton:f,mergedThumbnailUrl:d,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:m,handleDownloadClick:h,handleRetryClick:p,handlePreviewClick:y}},render(){let{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:i}=this,a,o=n===`image`;a=o||n===`image-card`?!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?V(`span`,{class:`${e}-upload-file-info__thumbnail`},i?i(r):Uk(r)?V(rx,{clsPrefix:e},{default:Ik}):V(rx,{clsPrefix:e},{default:Lk})):V(`a`,{rel:`noopener noreferer`,target:`_blank`,href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n===`image-card`?V(ek,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:`imageRef`}):V(`img`,{src:this.mergedThumbnailUrl||void 0,alt:r.name})):V(`span`,{class:`${e}-upload-file-info__thumbnail`},i?i(r):V(rx,{clsPrefix:e},{default:()=>V(lx,null)}));let s=V(Rk,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n===`text`||n===`image`;return V(`div`,{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!==`error`&&n!==`image-card`&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},V(`div`,{class:`${e}-upload-file-info`},a,V(`div`,{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!==`error`?V(`a`,{rel:`noopener noreferer`,target:`_blank`,href:r.url||void 0,onClick:this.handlePreviewClick},r.name):V(`span`,{onClick:this.handlePreviewClick},r.name)),o&&s),V(`div`,{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?V(Kw,{key:`preview`,quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Qk},{icon:()=>V(rx,{clsPrefix:e},{default:()=>V(vx,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&V(Kw,{key:`cancelOrTrash`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Qk,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>V(ix,null,{default:()=>this.showRemoveButton?V(rx,{clsPrefix:e,key:`trash`},{default:()=>V(Dx,null)}):V(rx,{clsPrefix:e,key:`cancel`},{default:()=>V(ux,null)})})}),this.showRetryButton&&!this.disabled&&V(Kw,{key:`retry`,quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Qk},{icon:()=>V(rx,{clsPrefix:e},{default:()=>V(Cx,null)})}),this.showDownloadButton?V(Kw,{key:`download`,quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Qk},{icon:()=>V(rx,{clsPrefix:e},{default:()=>V(hx,null)})}):null)),!o&&s)}}),eA=P({name:`UploadTrigger`,props:{abstract:Boolean},slots:Object,setup(e,{slots:t}){let n=N(Nk,null);n||rp(`upload-trigger`,"`n-upload-trigger` must be placed inside `n-upload`.");let{mergedClsPrefixRef:r,mergedDisabledRef:i,maxReachedRef:a,listTypeRef:o,dragOverRef:s,openOpenFileDialog:c,draggerInsideRef:l,handleFileAddition:u,mergedDirectoryDndRef:d,triggerClassRef:f,triggerStyleRef:p}=n,m=B(()=>o.value===`image-card`);function h(){i.value||a.value||c()}function g(e){e.preventDefault(),s.value=!0}function _(e){e.preventDefault(),s.value=!0}function v(e){e.preventDefault(),s.value=!1}function y(e){if(e.preventDefault(),!l.value||i.value||a.value){s.value=!1;return}let t=e.dataTransfer?.items;t?.length?Jk(Array.from(t).map(e=>e.webkitGetAsEntry()),d.value).then(e=>{u(e)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{let{value:n}=r;return e.abstract?t.default?.call(t,{handleClick:h,handleDrop:y,handleDragOver:g,handleDragEnter:_,handleDragLeave:v}):V(`div`,{class:[`${n}-upload-trigger`,(i.value||a.value)&&`${n}-upload-trigger--disabled`,m.value&&`${n}-upload-trigger--image-card`,f.value],style:p.value,onClick:h,onDrop:y,onDragover:g,onDragenter:_,onDragleave:v},m.value?V(Fk,null,{default:()=>mp(t.default,()=>[V(rx,{clsPrefix:n},{default:()=>V(ax,null)})])}):t)}}}),tA=P({name:`UploadFileList`,setup(e,{slots:t}){let n=N(Nk,null);n||rp(`upload-file-list`,"`n-upload-file-list` must be placed inside `n-upload`.");let{abstractRef:r,mergedClsPrefixRef:i,listTypeRef:a,mergedFileListRef:o,fileListClassRef:s,fileListStyleRef:c,cssVarsRef:l,themeClassRef:u,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:p}=n,m=B(()=>a.value===`image-card`),h=()=>o.value.map((e,t)=>V($k,{clsPrefix:i.value,key:e.id,file:e,index:t,listType:a.value})),g=()=>m.value?V(ZO,Object.assign({},p.value),{default:h}):V(Lx,{group:!0},{default:h});return()=>{let{value:e}=i,{value:n}=r;return V(`div`,{class:[`${e}-upload-file-list`,m.value&&`${e}-upload-file-list--grid`,n?u?.value:void 0,s.value],style:[n&&l?l.value:``,c.value]},g(),f.value&&!d.value&&m.value&&V(eA,null,t))}}}),nA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function rA(e,t,n){let{doChange:r,xhrMap:i}=e,a=0;function o(n){let o=Object.assign({},t,{status:`error`,percentage:a});i.delete(t.id),o=Yk(e.onError?.call(e,{file:o,event:n})||o),r(o,n)}function s(s){if(e.isErrorState){if(e.isErrorState(n)){o(s);return}}else if(n.status<200||n.status>=300){o(s);return}let c=Object.assign({},t,{status:`finished`,percentage:a});i.delete(t.id),c=Yk(e.onFinish?.call(e,{file:c,event:s})||c),r(c,s)}return{handleXHRLoad:s,handleXHRError:o,handleXHRAbort(e){let n=Object.assign({},t,{status:`removed`,file:null,percentage:a});i.delete(t.id),r(n,e)},handleXHRProgress(e){let n=Object.assign({},t,{status:`uploading`});if(e.lengthComputable){let t=Math.ceil(e.loaded/e.total*100);n.percentage=t,a=t}r(n,e)}}}function iA(e){let{inst:t,file:n,data:r,headers:i,withCredentials:a,action:o,customRequest:s}=e,{doChange:c}=e.inst,l=0;s({file:n,data:r,headers:i,withCredentials:a,action:o,onProgress(e){let t=Object.assign({},n,{status:`uploading`}),r=e.percent;t.percentage=r,l=r,c(t)},onFinish(){let e=Object.assign({},n,{status:`finished`,percentage:l});e=Yk(t.onFinish?.call(t,{file:e})||e),c(e)},onError(){let e=Object.assign({},n,{status:`error`,percentage:l});e=Yk(t.onError?.call(t,{file:e})||e),c(e)}})}function aA(e,t,n){let r=rA(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function oA(e,t){return typeof e==`function`?e({file:t}):e||{}}function sA(e,t,n){let r=oA(t,n);r&&Object.keys(r).forEach(t=>{e.setRequestHeader(t,r[t])})}function cA(e,t,n){let r=oA(t,n);r&&Object.keys(r).forEach(t=>{e.append(t,r[t])})}function lA(e,t,n,{method:r,action:i,withCredentials:a,responseType:o,headers:s,data:c}){let l=new XMLHttpRequest;l.responseType=o,e.xhrMap.set(n.id,l),l.withCredentials=a;let u=new FormData;if(cA(u,c,n),n.file!==null&&u.append(t,n.file),aA(e,n,l),i!==void 0){l.open(r.toUpperCase(),i),sA(l,s,n),l.send(u);let t=Object.assign({},n,{status:`uploading`});e.doChange(t)}}var uA=P({name:`Upload`,props:Object.assign(Object.assign({},X.props),{name:{type:String,default:`file`},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:`POST`},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:``},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onRetry:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,customDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListClass:String,fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:`text`},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Gk?Uk(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerClass:String,triggerStyle:[String,Object],renderIcon:Function}),setup(e){e.abstract&&e.listType===`image-card`&&rp(`upload`,`when the list-type is image-card, abstract is not supported.`);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=bp(e),i=X(`Upload`,`-upload`,Pk,jO,e,t),a=Jb(`Upload`,r,t),o=Cp(e),s=k(e.defaultFileList),c=j(e,`fileList`),l=k(null),u={value:!1},d=k(!1),f=new Map,p=lu(c,s),m=B(()=>p.value.map(Yk)),h=B(()=>{let{max:t}=e;return t===void 0?!1:m.value.length>=t});function g(){var e;(e=l.value)==null||e.click()}function _(e){let t=e.target;x(t.files?Array.from(t.files).map(e=>({file:e,entry:null,source:`input`})):null,e),t.value=``}function v(t){let{"onUpdate:fileList":n,onUpdateFileList:r}=e;n&&Y(n,t),r&&Y(r,t),s.value=t}let y=B(()=>e.multiple||e.directory),b=(t,n,r={append:!1,remove:!1})=>{let{append:i,remove:a}=r,o=Array.from(m.value),s=o.findIndex(e=>e.id===t.id);if(i||a||~s){i?o.push(t):a?o.splice(s,1):o.splice(s,1,t);let{onChange:r}=e;r&&r({file:t,fileList:o,event:n}),v(o)}};function x(t,n){if(!t||t.length===0)return;let{onBeforeUpload:r}=e;t=y.value?t:[t[0]];let{max:i,accept:a}=e;t=t.filter(({file:e,source:t})=>t===`dnd`&&a?.trim()?Xk(e.name,e.type,a):!0),i&&(t=t.slice(0,i-m.value.length));let o=Il();Promise.all(t.map(e=>nA(this,[e],void 0,function*({file:e,entry:t}){let n={id:Il(),batchId:o,name:e.name,status:`pending`,percentage:0,file:e,url:null,type:e.type,thumbnailUrl:null,fullPath:t?.fullPath??`/${e.webkitRelativePath||e.name}`};return!r||(yield r({file:n,fileList:m.value}))!==!1?n:null}))).then(e=>nA(this,void 0,void 0,function*(){let t=Promise.resolve();e.forEach(e=>{t=t.then(kn).then(()=>{e&&b(e,n,{append:!0})})}),yield t})).then(()=>{e.defaultUpload&&S()})}function S({fileId:t,retry:n=!1}={}){let{method:r,action:i,withCredentials:a,headers:o,data:s,name:c}=e,l=t===void 0?m.value:m.value.filter(e=>e.id===t),u=n||t!==void 0;l.forEach(t=>{let{status:n}=t;(n===`pending`||n===`error`&&u)&&(e.customRequest?iA({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:t,action:i,withCredentials:a,headers:o,data:s,customRequest:e.customRequest}):lA({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},c,t,{method:r,action:i,withCredentials:a,responseType:e.responseType,headers:o,data:s}))})}function C(t){if(t.thumbnailUrl)return t.thumbnailUrl;let{createThumbnailUrl:n}=e;return n?n(t.file,t)??(t.url||``):t.url?t.url:t.file?Wk(t.file):``}let w=B(()=>{let{common:{cubicBezierEaseInOut:e},self:{draggerColor:t,draggerBorder:n,draggerBorderHover:r,itemColorHover:a,itemColorHoverError:o,itemTextColorError:s,itemTextColorSuccess:c,itemTextColor:l,itemIconColor:u,itemDisabledOpacity:d,lineHeight:f,borderRadius:p,fontSize:m,itemBorderImageCardError:h,itemBorderImageCard:g}}=i.value;return{"--n-bezier":e,"--n-border-radius":p,"--n-dragger-border":n,"--n-dragger-border-hover":r,"--n-dragger-color":t,"--n-font-size":m,"--n-item-color-hover":a,"--n-item-color-hover-error":o,"--n-item-disabled-opacity":d,"--n-item-icon-color":u,"--n-item-text-color":l,"--n-item-text-color-error":s,"--n-item-text-color-success":c,"--n-line-height":f,"--n-item-border-image-card-error":h,"--n-item-border-image-card":g}}),T=n?xp(`upload`,void 0,w,e):void 0;Un(Nk,{mergedClsPrefixRef:t,mergedThemeRef:i,showCancelButtonRef:j(e,`showCancelButton`),showDownloadButtonRef:j(e,`showDownloadButton`),showRemoveButtonRef:j(e,`showRemoveButton`),showRetryButtonRef:j(e,`showRetryButton`),onRemoveRef:j(e,`onRemove`),onDownloadRef:j(e,`onDownload`),customDownloadRef:j(e,`customDownload`),mergedFileListRef:m,triggerClassRef:j(e,`triggerClass`),triggerStyleRef:j(e,`triggerStyle`),shouldUseThumbnailUrlRef:j(e,`shouldUseThumbnailUrl`),renderIconRef:j(e,`renderIcon`),xhrMap:f,submit:S,doChange:b,showPreviewButtonRef:j(e,`showPreviewButton`),onPreviewRef:j(e,`onPreview`),getFileThumbnailUrlResolver:C,listTypeRef:j(e,`listType`),dragOverRef:d,openOpenFileDialog:g,draggerInsideRef:u,handleFileAddition:x,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:h,fileListClassRef:j(e,`fileListClass`),fileListStyleRef:j(e,`fileListStyle`),abstractRef:j(e,`abstract`),acceptRef:j(e,`accept`),cssVarsRef:n?void 0:w,themeClassRef:T?.themeClass,onRender:T?.onRender,showTriggerRef:j(e,`showTrigger`),imageGroupPropsRef:j(e,`imageGroupProps`),mergedDirectoryDndRef:B(()=>e.directoryDnd??e.directory),onRetryRef:j(e,`onRetry`)});let E={clear:()=>{s.value=[]},submit:S,openOpenFileDialog:g};return Object.assign({mergedClsPrefix:t,draggerInsideRef:u,rtlEnabled:a,inputElRef:l,mergedTheme:i,dragOver:d,mergedMultiple:y,cssVars:n?void 0:w,themeClass:T?.themeClass,onRender:T?.onRender,handleFileInputChange:_},E)},render(){let{draggerInsideRef:e,mergedClsPrefix:t,$slots:n,directory:r,onRender:i}=this;n.default&&!this.abstract&&n.default()[0]?.type?.__UPLOAD_DRAGGER__&&(e.value=!0);let a=V(`input`,Object.assign({},this.inputProps,{ref:`inputElRef`,type:`file`,class:`${t}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:r||void 0,directory:r||void 0}));return this.abstract?V(pa,null,n.default?.call(n),V(lr,{to:`body`},a)):(i?.(),V(`div`,{class:[`${t}-upload`,this.rtlEnabled&&`${t}-upload--rtl`,e.value&&`${t}-upload--dragger-inside`,this.dragOver&&`${t}-upload--drag-over`,this.themeClass],style:this.cssVars},a,this.showTrigger&&this.listType!==`image-card`&&V(eA,null,n),this.showFileList&&V(tA,null,n)))}}),dA={name:`dark`,common:Q,Alert:VC,Anchor:JC,AutoComplete:_w,Avatar:kw,AvatarGroup:jw,BackTop:Nw,Badge:Pw,Breadcrumb:Lw,Button:Ww,ButtonGroup:xD,Calendar:tT,Card:aT,Carousel:fT,Cascader:vT,Checkbox:gT,Code:wT,Collapse:ET,CollapseTransition:OT,ColorPicker:AT,DataTable:XT,DatePicker:aE,Descriptions:cE,Dialog:pE,Divider:JE,Drawer:XE,Dropdown:BT,DynamicInput:QE,DynamicTags:mD,Element:hD,Empty:KS,Ellipsis:GT,Equation:{name:`Equation`,common:Q,self:()=>({})},Flex:_D,Form:wD,GradientText:TD,Heatmap:IO,Icon:$T,IconWrapper:RO,Image:zO,Input:$C,InputNumber:ED,InputOtp:OD,LegacyTransfer:nk,Layout:kD,List:MD,LoadingBar:kE,Log:ND,Menu:LD,Mention:PD,Message:FE,Modal:xE,Notification:KE,PageHeader:BD,Pagination:LT,Popconfirm:UD,Popover:uC,Popselect:MT,Progress:KD,QrCode:pk,Radio:qT,Rate:qD,Result:XD,Row:AD,Scrollbar:iS,Select:PT,Skeleton:mk,Slider:QD,Space:cD,Spin:eO,Statistic:nO,Steps:aO,Switch:sO,Table:fO,Tabs:gO,Tag:TC,Thing:vO,TimePicker:nE,Timeline:bO,Tooltip:HT,Transfer:SO,Tree:wO,TreeSelect:TO,Typography:kO,Upload:MO,Watermark:NO,Split:hk,FloatButton:PO,FloatButtonGroup:{name:`FloatButtonGroup`,common:Q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:ik},fA=typeof document<`u`;function pA(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function mA(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&pA(e.default)}var hA=Object.assign;function gA(e,t){let n={};for(let r in t){let i=t[r];n[r]=vA(i)?i.map(e):e(i)}return n}var _A=()=>{},vA=Array.isArray;function yA(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var bA=Symbol(``);function xA(e,t){return hA(Error(),{type:e,[bA]:!0},t)}function SA(e,t){return e instanceof Error&&bA in e&&(t==null||!!(e.type&t))}var CA=Symbol(``),wA=Symbol(``),TA=Symbol(``),EA=Symbol(``),DA=Symbol(``);function OA(){return N(TA)}function kA(e){return N(EA)}var AA=/#/g,jA=/&/g,MA=/\//g,NA=/=/g,PA=/\?/g,FA=/\+/g,IA=/%5B/g,LA=/%5D/g,RA=/%5E/g,zA=/%60/g,BA=/%7B/g,VA=/%7C/g,HA=/%7D/g,UA=/%20/g;function WA(e){return e==null?``:encodeURI(``+e).replace(VA,`|`).replace(IA,`[`).replace(LA,`]`)}function GA(e){return WA(e).replace(BA,`{`).replace(HA,`}`).replace(RA,`^`)}function KA(e){return WA(e).replace(FA,`%2B`).replace(UA,`+`).replace(AA,`%23`).replace(jA,`%26`).replace(zA,"`").replace(BA,`{`).replace(HA,`}`).replace(RA,`^`)}function qA(e){return KA(e).replace(NA,`%3D`)}function JA(e){return WA(e).replace(AA,`%23`).replace(PA,`%3F`)}function YA(e){return JA(e).replace(MA,`%2F`)}function XA(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ZA=/\/$/,QA=e=>e.replace(ZA,``);function $A(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=sj(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:XA(o)}}function ej(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function tj(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function nj(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&rj(t.matched[r],n.matched[i])&&ij(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rj(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ij(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!aj(e[n],t[n]))return!1;return!0}function aj(e,t){return vA(e)?oj(e,t):vA(t)?oj(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function oj(e,t){return vA(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function sj(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var cj={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function lj(e){if(!e)if(fA){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),QA(e)}var uj=/^[^#]+#/;function dj(e,t){return e.replace(uj,`#`)+t}function fj(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var pj=()=>({left:window.scrollX,top:window.scrollY});function mj(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=fj(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function hj(e,t){return(history.state?history.state.position-t:-1)+e}var gj=new Map;function _j(e,t){gj.set(e,t)}function vj(e){let t=gj.get(e);return gj.delete(e),t}function yj(e){return typeof e==`string`||e&&typeof e==`object`}function bj(e){return typeof e==`string`||typeof e==`symbol`}function xj(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&KA(e)):[r&&KA(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Cj(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=vA(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function wj(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Tj(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(xA(4,{from:n,to:t})):e instanceof Error?c(e):yj(e)?c(xA(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ej(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(pA(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Tj(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=mA(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Tj(c,n,r,o,e,i)()}))}}return a}function Dj(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;orj(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>rj(e,s))||i.push(s))}return[n,r,i]}var Oj=()=>location.protocol+`//`+location.host;function kj(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),tj(n,``)}return tj(n,e)+r+i}function Aj(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=kj(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(hA({},e.state,{scroll:pj()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function jj(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?pj():null}}function Mj(e){let{history:t,location:n}=window,r={value:kj(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Oj()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,hA({},t.state,jj(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=hA({},i.value,t.state,{forward:e,scroll:pj()});a(o.current,o,!0),a(e,hA({},jj(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Nj(e){e=lj(e);let t=Mj(e),n=Aj(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=hA({location:``,base:e,go:r,createHref:dj.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Pj={type:0,value:``},Fj=/[a-zA-Z0-9_]/;function Ij(e){if(!e)return[[]];if(e===`/`)return[[Pj]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function Hj(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Wj={strict:!1,end:!0,sensitive:!1};function Gj(e,t,n){let r=hA(Bj(Ij(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Kj(e,t){let n=[],r=new Map;t=yA(Wj,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Jj(e);s.aliasOf=r&&r.record;let l=yA(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Jj(hA({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Gj(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Xj(d)&&o(e.name)),eM(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:_A}function o(e){if(bj(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Qj(e,n);n.splice(t,0,e),e.record.name&&!Xj(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw xA(1,{location:e});s=i.record.name,a=hA(qj(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qj(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw xA(1,{location:e,currentLocation:t});s=i.record.name,a=hA({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Zj(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function qj(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Jj(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yj(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yj(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Xj(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zj(e){return e.reduce((e,t)=>hA(e,t.meta),{})}function Qj(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Hj(e,t[i])<0?r=i:n=i+1}let i=$j(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $j(e){let t=e;for(;t=t.parent;)if(eM(t)&&Hj(e,t)===0)return t}function eM({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tM(e){let t=N(TA),n=N(EA),r=B(()=>{let n=A(e.to);return t.resolve(n)}),i=B(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(rj.bind(null,i));if(o>-1)return o;let s=oM(e[t-2]);return t>1&&oM(i)===s&&a[a.length-1].path!==s?a.findIndex(rj.bind(null,e[t-2])):o}),a=B(()=>i.value>-1&&aM(n.params,r.value.params)),o=B(()=>i.value>-1&&i.value===n.matched.length-1&&ij(n.params,r.value.params));function s(n={}){if(iM(n)){let n=t[A(e.replace)?`replace`:`push`](A(e.to)).catch(_A);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function nM(e){return e.length===1?e[0]:e}var rM=P({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:tM,setup(e,{slots:t}){let n=Vt(tM(e)),{options:r}=N(TA),i=B(()=>({[sM(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[sM(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&nM(t.default(n));return e.custom?r:V(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function iM(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function aM(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!vA(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function oM(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var sM=(e,t,n)=>e??t??n,cM=P({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=N(DA),i=B(()=>e.route||r.value),a=N(wA,0),o=B(()=>{let e=A(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=B(()=>i.value.matched[o.value]);Un(wA,B(()=>o.value+1)),Un(CA,s),Un(DA,i);let c=k();return Jn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!rj(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return lM(n.default,{Component:l,route:r});let u=o.props[a],d=V(l,hA({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return lM(n.default,{Component:d,route:r})||d}}});function lM(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var uM=cM;function dM(e){let t=Kj(e.routes,e),n=e.parseQuery||xj,r=e.stringifyQuery||Sj,i=e.history,a=wj(),o=wj(),s=wj(),c=en(cj),l=cj;fA&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=gA.bind(null,e=>``+e),d=gA.bind(null,YA),f=gA.bind(null,XA);function p(e,n){let r,i;return bj(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=hA({},a||c.value),typeof e==`string`){let r=$A(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return hA(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=hA({},e,{path:$A(n,e.path,a.path).path});else{let t=hA({},e.params);for(let e in t)t[e]??delete t[e];o=hA({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=ej(r,hA({},e,{hash:GA(l),path:s.path})),m=i.createHref(p);return hA({fullPath:p,hash:l,query:r===Sj?Cj(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?$A(n,e,c.value.path):hA({},e)}function y(e,t){if(l!==e)return xA(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(hA(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),hA({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(hA(v(u),{state:typeof u==`object`?hA({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&nj(r,i,n)&&(f=xA(16,{to:d,from:i}),ce(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>SA(e)?SA(e,2)?e:se(e):ae(e,d,i)).then(e=>{if(e){if(SA(e,2))return C(hA({replace:s},v(e.to),{state:typeof e.to==`object`?hA({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=de.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=Dj(e,t);n=Ej(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Tj(r,e,t))});let c=w.bind(null,e,t);return n.push(c),pe(n).then(()=>{n=[];for(let r of a.list())n.push(Tj(r,e,t));return n.push(c),pe(n)}).then(()=>{n=Ej(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Tj(r,e,t))});return n.push(c),pe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(vA(r.beforeEnter))for(let i of r.beforeEnter)n.push(Tj(i,e,t));else n.push(Tj(r.beforeEnter,e,t));return n.push(c),pe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ej(s,`beforeRouteEnter`,e,t,T),n.push(c),pe(n))).then(()=>{n=[];for(let r of o.list())n.push(Tj(r,e,t));return n.push(c),pe(n)}).catch(e=>SA(e,8)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===cj,l=fA?history.state:{};n&&(r||s?i.replace(e.fullPath,hA({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ce(e,t,n,s),se()}let ee;function te(){ee||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=_(e),a=S(r,fe.currentRoute.value);if(a){C(hA(a,{replace:!0,force:!0}),r).catch(_A);return}l=r;let o=c.value;fA&&_j(hj(o.fullPath,n.delta),pj()),E(r,o).catch(e=>SA(e,12)?e:SA(e,2)?(C(hA(v(e.to),{force:!0}),r).then(e=>{SA(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(_A),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!SA(e,8)?i.go(-n.delta,!1):n.type===`pop`&&SA(e,20)&&i.go(-1,!1)),D(r,o,e)}).catch(_A)})}let ne=wj(),re=wj(),ie;function ae(e,t,n){se(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return ie&&c.value!==cj?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function se(e){return ie||(ie=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function ce(t,n,r,i){let{scrollBehavior:a}=e;if(!fA||!a)return Promise.resolve();let o=!r&&vj(hj(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return kn().then(()=>a(t,n,o)).then(e=>e&&mj(e)).catch(e=>ae(e,t,n))}let le=e=>i.go(e),ue,de=new Set,fe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:oe,install(e){e.component(`RouterLink`,rM),e.component(`RouterView`,uM),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>A(c)}),fA&&!ue&&c.value===cj&&(ue=!0,b(i.location).catch(e=>{}));let t={};for(let e in cj)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(TA,fe),e.provide(EA,Ht(t)),e.provide(DA,c);let n=e.unmount;de.add(e),e.unmount=function(){de.delete(e),de.size<1&&(l=cj,ee&&ee(),ee=null,c.value=cj,ue=!1,ie=!1),n()}}};function pe(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return fe}var fM=P({__name:`App`,setup(e){return(e,t)=>(F(),Ca(A(jT),{theme:A(dA)},{default:M(()=>[R(A(HE),null,{default:M(()=>[R(A(uM))]),_:1})]),_:1},8,[`theme`]))}}),pM={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},mM=P({name:`LockOutlined`,render:function(e,t){return F(),I(`svg`,pM,t[0]||=[L(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2z`,fill:`currentColor`},null,-1)])}}),hM={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},gM=P({name:`MenuOutlined`,render:function(e,t){return F(),I(`svg`,hM,t[0]||=[L(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}});function _M(e){let t=0;for(let n=0;n{let r=_M(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function xM(e,t){let n=[];return t.split(vM).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function SM(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?bM(t,e):xM(t,e))}),t.join(`, `).replace(yM,` `)}var CM=/[A-Z]/g;function wM(e){return e.replace(CM,e=>`-`+e.toLowerCase())}function TM(e,t=` `){return typeof e==`object`&&e?` { -`+Object.entries(e).map(e=>t+` ${wM(e[0])}: ${e[1]};`).join(` + `)]),zk=P({name:`UploadDragger`,__UPLOAD_DRAGGER__:!0,setup(e,{slots:t}){let n=N(Lk,null);return n||rp(`upload-dragger`,"`n-upload-dragger` must be placed inside `n-upload`."),()=>{let{mergedClsPrefixRef:{value:e},mergedDisabledRef:{value:r},maxReachedRef:{value:i}}=n;return V(`div`,{class:[`${e}-upload-dragger`,(r||i)&&`${e}-upload-dragger--disabled`]},t)}}});function Bk(){return V(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},V(`g`,{fill:`none`},V(`path`,{d:`M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z`,fill:`currentColor`})))}function Vk(){return V(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},V(`g`,{fill:`none`},V(`path`,{d:`M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z`,fill:`currentColor`})))}var Hk=P({name:`UploadProgress`,props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:N(Lk).mergedThemeRef}},render(){return V(Lx,null,{default:()=>this.show?V(gk,{type:`line`,showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),Uk=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Wk(e){return e.includes(`image/`)}function Gk(e=``){let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]}var Kk=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,qk=e=>{if(e.type)return Wk(e.type);let t=Gk(e.name||``);if(Kk.test(t))return!0;let n=e.thumbnailUrl||e.url||``,r=Gk(n);return!!(/^data:image\//.test(n)||Kk.test(r))};function Jk(e){return Uk(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!Wk(e.type)){t(``);return}t(window.URL.createObjectURL(e))})})}var Yk=wu&&window.FileReader&&window.File;function Xk(e){return e.isDirectory}function Zk(e){return e.isFile}function Qk(e,t){return Uk(this,void 0,void 0,function*(){let n=[];function r(e){return Uk(this,void 0,void 0,function*(){for(let i of e)if(i){if(t&&Xk(i)){let e=i.createReader(),t=[],n;try{do n=yield new Promise((t,n)=>{e.readEntries(t,n)}),t=t.concat(n);while(n.length>0)}catch(e){np(`upload`,`error happens when handling directory upload`,e)}yield r(t)}else if(Zk(i))try{let e=yield new Promise((e,t)=>{i.file(e,t)});n.push({file:e,entry:i,source:`dnd`})}catch(e){np(`upload`,`error happens when handling file upload`,e)}}})}return yield r(e),n})}function $k(e){let{id:t,name:n,percentage:r,status:i,url:a,file:o,thumbnailUrl:s,type:c,fullPath:l,batchId:u}=e;return{id:t,name:n,percentage:r??null,status:i,url:a??null,file:o??null,thumbnailUrl:s??null,type:c??null,fullPath:l??null,batchId:u??null}}function eA(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(`,`).map(e=>e.trim()).filter(Boolean).some(n=>{if(n.startsWith(`.`)){if(e.endsWith(n))return!0}else if(n.includes(`/`)){let[e,r]=t.split(`/`),[i,a]=n.split(`/`);if((i===`*`||e&&i&&i===e)&&(a===`*`||r&&a&&a===r))return!0}else return!0;return!1})}var tA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},nA={paddingMedium:`0 3px`,heightMedium:`24px`,iconSizeMedium:`18px`},rA=P({name:`UploadFile`,props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0},index:{type:Number,required:!0}},setup(e){let t=N(Lk),n=k(null),r=k(``),i=B(()=>{let{file:t}=e;return t.status===`finished`?`success`:t.status===`error`?`error`:`info`}),a=B(()=>{let{file:t}=e;if(t.status===`error`)return`error`}),o=B(()=>{let{file:t}=e;return t.status===`uploading`}),s=B(()=>{if(!t.showCancelButtonRef.value)return!1;let{file:n}=e;return[`uploading`,`pending`,`error`].includes(n.status)}),c=B(()=>{if(!t.showRemoveButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),l=B(()=>{if(!t.showDownloadButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),u=B(()=>{if(!t.showRetryButtonRef.value)return!1;let{file:n}=e;return[`error`].includes(n.status)}),d=ql(()=>r.value||e.file.thumbnailUrl||e.file.url),f=B(()=>{if(!t.showPreviewButtonRef.value)return!1;let{file:{status:n},listType:r}=e;return[`finished`].includes(n)&&d.value&&r===`image-card`});function p(){return tA(this,void 0,void 0,function*(){let n=t.onRetryRef.value;n&&(yield n({file:e.file}))===!1||t.submit({fileId:e.file.id})})}function m(t){t.preventDefault();let{file:n}=e;[`finished`,`pending`,`error`].includes(n.status)?g(n):[`uploading`].includes(n.status)?v(n):tp(`upload`,`The button clicked type is unknown.`)}function h(t){t.preventDefault(),_(e.file)}function g(n){let{xhrMap:r,doChange:i,onRemoveRef:{value:a},mergedFileListRef:{value:o}}=t;Promise.resolve(a?a({file:Object.assign({},n),fileList:o,index:e.index}):!0).then(e=>{if(e===!1)return;let t=Object.assign({},n,{status:`removed`});r.delete(n.id),i(t,void 0,{remove:!0})})}function _(e){let{onDownloadRef:{value:n},customDownloadRef:{value:r}}=t;Promise.resolve(n?n(Object.assign({},e)):!0).then(t=>{t!==!1&&(r?r(Object.assign({},e)):Xf(e.url,e.name))})}function v(e){let{xhrMap:n}=t;n.get(e.id)?.abort(),g(Object.assign({},e))}function y(r){let{onPreviewRef:{value:i}}=t;if(i)i(e.file,{event:r});else if(e.listType===`image-card`){let{value:e}=n;if(!e)return;e.showPreview()}}let b=()=>tA(this,void 0,void 0,function*(){let{listType:n}=e;n!==`image`&&n!==`image-card`||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return qn(()=>{b()}),{mergedTheme:t.mergedThemeRef,progressStatus:i,buttonType:a,showProgress:o,disabled:t.mergedDisabledRef,showCancelButton:s,showRemoveButton:c,showDownloadButton:l,showRetryButton:u,showPreviewButton:f,mergedThumbnailUrl:d,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:m,handleDownloadClick:h,handleRetryClick:p,handlePreviewClick:y}},render(){let{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:i}=this,a,o=n===`image`;a=o||n===`image-card`?!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?V(`span`,{class:`${e}-upload-file-info__thumbnail`},i?i(r):qk(r)?V(rx,{clsPrefix:e},{default:Bk}):V(rx,{clsPrefix:e},{default:Vk})):V(`a`,{rel:`noopener noreferer`,target:`_blank`,href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n===`image-card`?V(ik,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:`imageRef`}):V(`img`,{src:this.mergedThumbnailUrl||void 0,alt:r.name})):V(`span`,{class:`${e}-upload-file-info__thumbnail`},i?i(r):V(rx,{clsPrefix:e},{default:()=>V(lx,null)}));let s=V(Hk,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n===`text`||n===`image`;return V(`div`,{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!==`error`&&n!==`image-card`&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},V(`div`,{class:`${e}-upload-file-info`},a,V(`div`,{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!==`error`?V(`a`,{rel:`noopener noreferer`,target:`_blank`,href:r.url||void 0,onClick:this.handlePreviewClick},r.name):V(`span`,{onClick:this.handlePreviewClick},r.name)),o&&s),V(`div`,{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?V(Xw,{key:`preview`,quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:nA},{icon:()=>V(rx,{clsPrefix:e},{default:()=>V(vx,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&V(Xw,{key:`cancelOrTrash`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:nA,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>V(ix,null,{default:()=>this.showRemoveButton?V(rx,{clsPrefix:e,key:`trash`},{default:()=>V(Dx,null)}):V(rx,{clsPrefix:e,key:`cancel`},{default:()=>V(ux,null)})})}),this.showRetryButton&&!this.disabled&&V(Xw,{key:`retry`,quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:nA},{icon:()=>V(rx,{clsPrefix:e},{default:()=>V(Cx,null)})}),this.showDownloadButton?V(Xw,{key:`download`,quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:nA},{icon:()=>V(rx,{clsPrefix:e},{default:()=>V(hx,null)})}):null)),!o&&s)}}),iA=P({name:`UploadTrigger`,props:{abstract:Boolean},slots:Object,setup(e,{slots:t}){let n=N(Lk,null);n||rp(`upload-trigger`,"`n-upload-trigger` must be placed inside `n-upload`.");let{mergedClsPrefixRef:r,mergedDisabledRef:i,maxReachedRef:a,listTypeRef:o,dragOverRef:s,openOpenFileDialog:c,draggerInsideRef:l,handleFileAddition:u,mergedDirectoryDndRef:d,triggerClassRef:f,triggerStyleRef:p}=n,m=B(()=>o.value===`image-card`);function h(){i.value||a.value||c()}function g(e){e.preventDefault(),s.value=!0}function _(e){e.preventDefault(),s.value=!0}function v(e){e.preventDefault(),s.value=!1}function y(e){if(e.preventDefault(),!l.value||i.value||a.value){s.value=!1;return}let t=e.dataTransfer?.items;t?.length?Qk(Array.from(t).map(e=>e.webkitGetAsEntry()),d.value).then(e=>{u(e)}).finally(()=>{s.value=!1}):s.value=!1}return()=>{let{value:n}=r;return e.abstract?t.default?.call(t,{handleClick:h,handleDrop:y,handleDragOver:g,handleDragEnter:_,handleDragLeave:v}):V(`div`,{class:[`${n}-upload-trigger`,(i.value||a.value)&&`${n}-upload-trigger--disabled`,m.value&&`${n}-upload-trigger--image-card`,f.value],style:p.value,onClick:h,onDrop:y,onDragover:g,onDragenter:_,onDragleave:v},m.value?V(zk,null,{default:()=>mp(t.default,()=>[V(rx,{clsPrefix:n},{default:()=>V(ax,null)})])}):t)}}}),aA=P({name:`UploadFileList`,setup(e,{slots:t}){let n=N(Lk,null);n||rp(`upload-file-list`,"`n-upload-file-list` must be placed inside `n-upload`.");let{abstractRef:r,mergedClsPrefixRef:i,listTypeRef:a,mergedFileListRef:o,fileListClassRef:s,fileListStyleRef:c,cssVarsRef:l,themeClassRef:u,maxReachedRef:d,showTriggerRef:f,imageGroupPropsRef:p}=n,m=B(()=>a.value===`image-card`),h=()=>o.value.map((e,t)=>V(rA,{clsPrefix:i.value,key:e.id,file:e,index:t,listType:a.value})),g=()=>m.value?V(tk,Object.assign({},p.value),{default:h}):V(Lx,{group:!0},{default:h});return()=>{let{value:e}=i,{value:n}=r;return V(`div`,{class:[`${e}-upload-file-list`,m.value&&`${e}-upload-file-list--grid`,n?u?.value:void 0,s.value],style:[n&&l?l.value:``,c.value]},g(),f.value&&!d.value&&m.value&&V(iA,null,t))}}}),oA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function sA(e,t,n){let{doChange:r,xhrMap:i}=e,a=0;function o(n){let o=Object.assign({},t,{status:`error`,percentage:a});i.delete(t.id),o=$k(e.onError?.call(e,{file:o,event:n})||o),r(o,n)}function s(s){if(e.isErrorState){if(e.isErrorState(n)){o(s);return}}else if(n.status<200||n.status>=300){o(s);return}let c=Object.assign({},t,{status:`finished`,percentage:a});i.delete(t.id),c=$k(e.onFinish?.call(e,{file:c,event:s})||c),r(c,s)}return{handleXHRLoad:s,handleXHRError:o,handleXHRAbort(e){let n=Object.assign({},t,{status:`removed`,file:null,percentage:a});i.delete(t.id),r(n,e)},handleXHRProgress(e){let n=Object.assign({},t,{status:`uploading`});if(e.lengthComputable){let t=Math.ceil(e.loaded/e.total*100);n.percentage=t,a=t}r(n,e)}}}function cA(e){let{inst:t,file:n,data:r,headers:i,withCredentials:a,action:o,customRequest:s}=e,{doChange:c}=e.inst,l=0;s({file:n,data:r,headers:i,withCredentials:a,action:o,onProgress(e){let t=Object.assign({},n,{status:`uploading`}),r=e.percent;t.percentage=r,l=r,c(t)},onFinish(){let e=Object.assign({},n,{status:`finished`,percentage:l});e=$k(t.onFinish?.call(t,{file:e})||e),c(e)},onError(){let e=Object.assign({},n,{status:`error`,percentage:l});e=$k(t.onError?.call(t,{file:e})||e),c(e)}})}function lA(e,t,n){let r=sA(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function uA(e,t){return typeof e==`function`?e({file:t}):e||{}}function dA(e,t,n){let r=uA(t,n);r&&Object.keys(r).forEach(t=>{e.setRequestHeader(t,r[t])})}function fA(e,t,n){let r=uA(t,n);r&&Object.keys(r).forEach(t=>{e.append(t,r[t])})}function pA(e,t,n,{method:r,action:i,withCredentials:a,responseType:o,headers:s,data:c}){let l=new XMLHttpRequest;l.responseType=o,e.xhrMap.set(n.id,l),l.withCredentials=a;let u=new FormData;if(fA(u,c,n),n.file!==null&&u.append(t,n.file),lA(e,n,l),i!==void 0){l.open(r.toUpperCase(),i),dA(l,s,n),l.send(u);let t=Object.assign({},n,{status:`uploading`});e.doChange(t)}}var mA=P({name:`Upload`,props:Object.assign(Object.assign({},X.props),{name:{type:String,default:`file`},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:`POST`},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:``},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onRetry:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,customDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListClass:String,fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:`text`},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>Yk?qk(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerClass:String,triggerStyle:[String,Object],renderIcon:Function}),setup(e){e.abstract&&e.listType===`image-card`&&rp(`upload`,`when the list-type is image-card, abstract is not supported.`);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=bp(e),i=X(`Upload`,`-upload`,Rk,FO,e,t),a=Jb(`Upload`,r,t),o=Cp(e),s=k(e.defaultFileList),c=j(e,`fileList`),l=k(null),u={value:!1},d=k(!1),f=new Map,p=lu(c,s),m=B(()=>p.value.map($k)),h=B(()=>{let{max:t}=e;return t===void 0?!1:m.value.length>=t});function g(){var e;(e=l.value)==null||e.click()}function _(e){let t=e.target;x(t.files?Array.from(t.files).map(e=>({file:e,entry:null,source:`input`})):null,e),t.value=``}function v(t){let{"onUpdate:fileList":n,onUpdateFileList:r}=e;n&&Y(n,t),r&&Y(r,t),s.value=t}let y=B(()=>e.multiple||e.directory),b=(t,n,r={append:!1,remove:!1})=>{let{append:i,remove:a}=r,o=Array.from(m.value),s=o.findIndex(e=>e.id===t.id);if(i||a||~s){i?o.push(t):a?o.splice(s,1):o.splice(s,1,t);let{onChange:r}=e;r&&r({file:t,fileList:o,event:n}),v(o)}};function x(t,n){if(!t||t.length===0)return;let{onBeforeUpload:r}=e;t=y.value?t:[t[0]];let{max:i,accept:a}=e;t=t.filter(({file:e,source:t})=>t===`dnd`&&a?.trim()?eA(e.name,e.type,a):!0),i&&(t=t.slice(0,i-m.value.length));let o=Il();Promise.all(t.map(e=>oA(this,[e],void 0,function*({file:e,entry:t}){let n={id:Il(),batchId:o,name:e.name,status:`pending`,percentage:0,file:e,url:null,type:e.type,thumbnailUrl:null,fullPath:t?.fullPath??`/${e.webkitRelativePath||e.name}`};return!r||(yield r({file:n,fileList:m.value}))!==!1?n:null}))).then(e=>oA(this,void 0,void 0,function*(){let t=Promise.resolve();e.forEach(e=>{t=t.then(kn).then(()=>{e&&b(e,n,{append:!0})})}),yield t})).then(()=>{e.defaultUpload&&S()})}function S({fileId:t,retry:n=!1}={}){let{method:r,action:i,withCredentials:a,headers:o,data:s,name:c}=e,l=t===void 0?m.value:m.value.filter(e=>e.id===t),u=n||t!==void 0;l.forEach(t=>{let{status:n}=t;(n===`pending`||n===`error`&&u)&&(e.customRequest?cA({inst:{doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError},file:t,action:i,withCredentials:a,headers:o,data:s,customRequest:e.customRequest}):pA({doChange:b,xhrMap:f,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},c,t,{method:r,action:i,withCredentials:a,responseType:e.responseType,headers:o,data:s}))})}function C(t){if(t.thumbnailUrl)return t.thumbnailUrl;let{createThumbnailUrl:n}=e;return n?n(t.file,t)??(t.url||``):t.url?t.url:t.file?Jk(t.file):``}let w=B(()=>{let{common:{cubicBezierEaseInOut:e},self:{draggerColor:t,draggerBorder:n,draggerBorderHover:r,itemColorHover:a,itemColorHoverError:o,itemTextColorError:s,itemTextColorSuccess:c,itemTextColor:l,itemIconColor:u,itemDisabledOpacity:d,lineHeight:f,borderRadius:p,fontSize:m,itemBorderImageCardError:h,itemBorderImageCard:g}}=i.value;return{"--n-bezier":e,"--n-border-radius":p,"--n-dragger-border":n,"--n-dragger-border-hover":r,"--n-dragger-color":t,"--n-font-size":m,"--n-item-color-hover":a,"--n-item-color-hover-error":o,"--n-item-disabled-opacity":d,"--n-item-icon-color":u,"--n-item-text-color":l,"--n-item-text-color-error":s,"--n-item-text-color-success":c,"--n-line-height":f,"--n-item-border-image-card-error":h,"--n-item-border-image-card":g}}),T=n?xp(`upload`,void 0,w,e):void 0;Un(Lk,{mergedClsPrefixRef:t,mergedThemeRef:i,showCancelButtonRef:j(e,`showCancelButton`),showDownloadButtonRef:j(e,`showDownloadButton`),showRemoveButtonRef:j(e,`showRemoveButton`),showRetryButtonRef:j(e,`showRetryButton`),onRemoveRef:j(e,`onRemove`),onDownloadRef:j(e,`onDownload`),customDownloadRef:j(e,`customDownload`),mergedFileListRef:m,triggerClassRef:j(e,`triggerClass`),triggerStyleRef:j(e,`triggerStyle`),shouldUseThumbnailUrlRef:j(e,`shouldUseThumbnailUrl`),renderIconRef:j(e,`renderIcon`),xhrMap:f,submit:S,doChange:b,showPreviewButtonRef:j(e,`showPreviewButton`),onPreviewRef:j(e,`onPreview`),getFileThumbnailUrlResolver:C,listTypeRef:j(e,`listType`),dragOverRef:d,openOpenFileDialog:g,draggerInsideRef:u,handleFileAddition:x,mergedDisabledRef:o.mergedDisabledRef,maxReachedRef:h,fileListClassRef:j(e,`fileListClass`),fileListStyleRef:j(e,`fileListStyle`),abstractRef:j(e,`abstract`),acceptRef:j(e,`accept`),cssVarsRef:n?void 0:w,themeClassRef:T?.themeClass,onRender:T?.onRender,showTriggerRef:j(e,`showTrigger`),imageGroupPropsRef:j(e,`imageGroupProps`),mergedDirectoryDndRef:B(()=>e.directoryDnd??e.directory),onRetryRef:j(e,`onRetry`)});let E={clear:()=>{s.value=[]},submit:S,openOpenFileDialog:g};return Object.assign({mergedClsPrefix:t,draggerInsideRef:u,rtlEnabled:a,inputElRef:l,mergedTheme:i,dragOver:d,mergedMultiple:y,cssVars:n?void 0:w,themeClass:T?.themeClass,onRender:T?.onRender,handleFileInputChange:_},E)},render(){let{draggerInsideRef:e,mergedClsPrefix:t,$slots:n,directory:r,onRender:i}=this;n.default&&!this.abstract&&n.default()[0]?.type?.__UPLOAD_DRAGGER__&&(e.value=!0);let a=V(`input`,Object.assign({},this.inputProps,{ref:`inputElRef`,type:`file`,class:`${t}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:r||void 0,directory:r||void 0}));return this.abstract?V(pa,null,n.default?.call(n),V(lr,{to:`body`},a)):(i?.(),V(`div`,{class:[`${t}-upload`,this.rtlEnabled&&`${t}-upload--rtl`,e.value&&`${t}-upload--dragger-inside`,this.dragOver&&`${t}-upload--drag-over`,this.themeClass],style:this.cssVars},a,this.showTrigger&&this.listType!==`image-card`&&V(iA,null,n),this.showFileList&&V(aA,null,n)))}}),hA={name:`dark`,common:Q,Alert:VC,Anchor:QC,AutoComplete:xw,Avatar:Nw,AvatarGroup:Fw,BackTop:Lw,Badge:Rw,Breadcrumb:Vw,Button:Jw,ButtonGroup:TD,Calendar:aT,Card:lT,Carousel:gT,Cascader:ST,Checkbox:bT,Code:OT,Collapse:AT,CollapseTransition:MT,ColorPicker:PT,DataTable:eE,DatePicker:lE,Descriptions:fE,Dialog:_E,Divider:QE,Drawer:eD,Dropdown:WT,DynamicInput:nD,DynamicTags:vD,Element:yD,Empty:KS,Ellipsis:YT,Equation:{name:`Equation`,common:Q,self:()=>({})},Flex:xD,Form:OD,GradientText:kD,Heatmap:BO,Icon:rE,IconWrapper:HO,Image:UO,Input:rw,InputNumber:AD,InputOtp:MD,LegacyTransfer:ok,Layout:ND,List:ID,LoadingBar:NE,Log:LD,Menu:VD,Mention:RD,Message:zE,Modal:TE,Notification:XE,PageHeader:WD,Pagination:VT,Popconfirm:qD,Popover:uC,Popselect:IT,Progress:XD,QrCode:_k,Radio:ZT,Rate:ZD,Result:eO,Row:PD,Scrollbar:iS,Select:RT,Skeleton:vk,Slider:nO,Space:fD,Spin:iO,Statistic:oO,Steps:lO,Switch:dO,Table:gO,Tabs:bO,Tag:TC,Thing:SO,TimePicker:oE,Timeline:wO,Tooltip:KT,Transfer:EO,Tree:OO,TreeSelect:kO,Typography:NO,Upload:IO,Watermark:LO,Split:yk,FloatButton:RO,FloatButtonGroup:{name:`FloatButtonGroup`,common:Q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:ck},gA=typeof document<`u`;function _A(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function vA(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&_A(e.default)}var yA=Object.assign;function bA(e,t){let n={};for(let r in t){let i=t[r];n[r]=SA(i)?i.map(e):e(i)}return n}var xA=()=>{},SA=Array.isArray;function CA(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var wA=Symbol(``);function TA(e,t){return yA(Error(),{type:e,[wA]:!0},t)}function EA(e,t){return e instanceof Error&&wA in e&&(t==null||!!(e.type&t))}var DA=Symbol(``),OA=Symbol(``),kA=Symbol(``),AA=Symbol(``),jA=Symbol(``);function MA(){return N(kA)}function NA(e){return N(AA)}var PA=/#/g,FA=/&/g,IA=/\//g,LA=/=/g,RA=/\?/g,zA=/\+/g,BA=/%5B/g,VA=/%5D/g,HA=/%5E/g,UA=/%60/g,WA=/%7B/g,GA=/%7C/g,KA=/%7D/g,qA=/%20/g;function JA(e){return e==null?``:encodeURI(``+e).replace(GA,`|`).replace(BA,`[`).replace(VA,`]`)}function YA(e){return JA(e).replace(WA,`{`).replace(KA,`}`).replace(HA,`^`)}function XA(e){return JA(e).replace(zA,`%2B`).replace(qA,`+`).replace(PA,`%23`).replace(FA,`%26`).replace(UA,"`").replace(WA,`{`).replace(KA,`}`).replace(HA,`^`)}function ZA(e){return XA(e).replace(LA,`%3D`)}function QA(e){return JA(e).replace(PA,`%23`).replace(RA,`%3F`)}function $A(e){return QA(e).replace(IA,`%2F`)}function ej(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var tj=/\/$/,nj=e=>e.replace(tj,``);function rj(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=dj(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:ej(o)}}function ij(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function aj(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function oj(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&sj(t.matched[r],n.matched[i])&&cj(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function sj(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function cj(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!lj(e[n],t[n]))return!1;return!0}function lj(e,t){return SA(e)?uj(e,t):SA(t)?uj(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function uj(e,t){return SA(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function dj(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var fj={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function pj(e){if(!e)if(gA){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),nj(e)}var mj=/^[^#]+#/;function hj(e,t){return e.replace(mj,`#`)+t}function gj(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var _j=()=>({left:window.scrollX,top:window.scrollY});function vj(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=gj(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function yj(e,t){return(history.state?history.state.position-t:-1)+e}var bj=new Map;function xj(e,t){bj.set(e,t)}function Sj(e){let t=bj.get(e);return bj.delete(e),t}function Cj(e){return typeof e==`string`||e&&typeof e==`object`}function wj(e){return typeof e==`string`||typeof e==`symbol`}function Tj(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&XA(e)):[r&&XA(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Dj(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=SA(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Oj(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function kj(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(TA(4,{from:n,to:t})):e instanceof Error?c(e):Cj(e)?c(TA(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Aj(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(_A(s)){let c=(s.__vccOpts||s)[t];c&&a.push(kj(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=vA(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&kj(c,n,r,o,e,i)()}))}}return a}function jj(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;osj(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>sj(e,s))||i.push(s))}return[n,r,i]}var Mj=()=>location.protocol+`//`+location.host;function Nj(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),aj(n,``)}return aj(n,e)+r+i}function Pj(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Nj(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(yA({},e.state,{scroll:_j()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Fj(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?_j():null}}function Ij(e){let{history:t,location:n}=window,r={value:Nj(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Mj()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,yA({},t.state,Fj(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=yA({},i.value,t.state,{forward:e,scroll:_j()});a(o.current,o,!0),a(e,yA({},Fj(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Lj(e){e=pj(e);let t=Ij(e),n=Pj(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=yA({location:``,base:e,go:r,createHref:hj.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Rj={type:0,value:``},zj=/[a-zA-Z0-9_]/;function Bj(e){if(!e)return[[]];if(e===`/`)return[[Rj]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function Kj(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var Jj={strict:!1,end:!0,sensitive:!1};function Yj(e,t,n){let r=yA(Wj(Bj(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xj(e,t){let n=[],r=new Map;t=CA(Jj,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Qj(e);s.aliasOf=r&&r.record;let l=CA(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Qj(yA({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Yj(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!eM(d)&&o(e.name)),iM(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:xA}function o(e){if(wj(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=nM(e,n);n.splice(t,0,e),e.record.name&&!eM(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw TA(1,{location:e});s=i.record.name,a=yA(Zj(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Zj(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw TA(1,{location:e,currentLocation:t});s=i.record.name,a=yA({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:tM(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Zj(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Qj(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:$j(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function $j(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function eM(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tM(e){return e.reduce((e,t)=>yA(e,t.meta),{})}function nM(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Kj(e,t[i])<0?r=i:n=i+1}let i=rM(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function rM(e){let t=e;for(;t=t.parent;)if(iM(t)&&Kj(e,t)===0)return t}function iM({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function aM(e){let t=N(kA),n=N(AA),r=B(()=>{let n=A(e.to);return t.resolve(n)}),i=B(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(sj.bind(null,i));if(o>-1)return o;let s=uM(e[t-2]);return t>1&&uM(i)===s&&a[a.length-1].path!==s?a.findIndex(sj.bind(null,e[t-2])):o}),a=B(()=>i.value>-1&&lM(n.params,r.value.params)),o=B(()=>i.value>-1&&i.value===n.matched.length-1&&cj(n.params,r.value.params));function s(n={}){if(cM(n)){let n=t[A(e.replace)?`replace`:`push`](A(e.to)).catch(xA);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function oM(e){return e.length===1?e[0]:e}var sM=P({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:aM,setup(e,{slots:t}){let n=Vt(aM(e)),{options:r}=N(kA),i=B(()=>({[dM(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[dM(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&oM(t.default(n));return e.custom?r:V(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function cM(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function lM(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!SA(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function uM(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var dM=(e,t,n)=>e??t??n,fM=P({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=N(jA),i=B(()=>e.route||r.value),a=N(OA,0),o=B(()=>{let e=A(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=B(()=>i.value.matched[o.value]);Un(OA,B(()=>o.value+1)),Un(DA,s),Un(jA,i);let c=k();return Jn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!sj(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return pM(n.default,{Component:l,route:r});let u=o.props[a],d=V(l,yA({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return pM(n.default,{Component:d,route:r})||d}}});function pM(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var mM=fM;function hM(e){let t=Xj(e.routes,e),n=e.parseQuery||Tj,r=e.stringifyQuery||Ej,i=e.history,a=Oj(),o=Oj(),s=Oj(),c=en(fj),l=fj;gA&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=bA.bind(null,e=>``+e),d=bA.bind(null,$A),f=bA.bind(null,ej);function p(e,n){let r,i;return wj(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=yA({},a||c.value),typeof e==`string`){let r=rj(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return yA(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=yA({},e,{path:rj(n,e.path,a.path).path});else{let t=yA({},e.params);for(let e in t)t[e]??delete t[e];o=yA({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=ij(r,yA({},e,{hash:YA(l),path:s.path})),m=i.createHref(p);return yA({fullPath:p,hash:l,query:r===Ej?Dj(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?rj(n,e,c.value.path):yA({},e)}function y(e,t){if(l!==e)return TA(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(yA(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),yA({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(yA(v(u),{state:typeof u==`object`?yA({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&oj(r,i,n)&&(f=TA(16,{to:d,from:i}),ce(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>EA(e)?EA(e,2)?e:se(e):ae(e,d,i)).then(e=>{if(e){if(EA(e,2))return C(yA({replace:s},v(e.to),{state:typeof e.to==`object`?yA({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=de.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=jj(e,t);n=Aj(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(kj(r,e,t))});let c=w.bind(null,e,t);return n.push(c),pe(n).then(()=>{n=[];for(let r of a.list())n.push(kj(r,e,t));return n.push(c),pe(n)}).then(()=>{n=Aj(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(kj(r,e,t))});return n.push(c),pe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(SA(r.beforeEnter))for(let i of r.beforeEnter)n.push(kj(i,e,t));else n.push(kj(r.beforeEnter,e,t));return n.push(c),pe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Aj(s,`beforeRouteEnter`,e,t,T),n.push(c),pe(n))).then(()=>{n=[];for(let r of o.list())n.push(kj(r,e,t));return n.push(c),pe(n)}).catch(e=>EA(e,8)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===fj,l=gA?history.state:{};n&&(r||s?i.replace(e.fullPath,yA({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ce(e,t,n,s),se()}let ee;function te(){ee||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=_(e),a=S(r,fe.currentRoute.value);if(a){C(yA(a,{replace:!0,force:!0}),r).catch(xA);return}l=r;let o=c.value;gA&&xj(yj(o.fullPath,n.delta),_j()),E(r,o).catch(e=>EA(e,12)?e:EA(e,2)?(C(yA(v(e.to),{force:!0}),r).then(e=>{EA(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(xA),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!EA(e,8)?i.go(-n.delta,!1):n.type===`pop`&&EA(e,20)&&i.go(-1,!1)),D(r,o,e)}).catch(xA)})}let ne=Oj(),re=Oj(),ie;function ae(e,t,n){se(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return ie&&c.value!==fj?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function se(e){return ie||(ie=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function ce(t,n,r,i){let{scrollBehavior:a}=e;if(!gA||!a)return Promise.resolve();let o=!r&&Sj(yj(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return kn().then(()=>a(t,n,o)).then(e=>e&&vj(e)).catch(e=>ae(e,t,n))}let le=e=>i.go(e),ue,de=new Set,fe={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:le,back:()=>le(-1),forward:()=>le(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:oe,install(e){e.component(`RouterLink`,sM),e.component(`RouterView`,mM),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>A(c)}),gA&&!ue&&c.value===fj&&(ue=!0,b(i.location).catch(e=>{}));let t={};for(let e in fj)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(kA,fe),e.provide(AA,Ht(t)),e.provide(jA,c);let n=e.unmount;de.add(e),e.unmount=function(){de.delete(e),de.size<1&&(l=fj,ee&&ee(),ee=null,c.value=fj,ue=!1,ie=!1),n()}}};function pe(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return fe}var gM=P({__name:`App`,setup(e){return(e,t)=>(F(),Ca(A(FT),{theme:A(hA)},{default:M(()=>[R(A(KE),null,{default:M(()=>[R(A(mM))]),_:1})]),_:1},8,[`theme`]))}}),_M={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},vM=P({name:`LockOutlined`,render:function(e,t){return F(),I(`svg`,_M,t[0]||=[L(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2z`,fill:`currentColor`},null,-1)])}}),yM={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},bM=P({name:`MenuOutlined`,render:function(e,t){return F(),I(`svg`,yM,t[0]||=[L(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}});function xM(e){let t=0;for(let n=0;n{let r=xM(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function TM(e,t){let n=[];return t.split(SM).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function EM(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?wM(t,e):TM(t,e))}),t.join(`, `).replace(CM,` `)}var DM=/[A-Z]/g;function OM(e){return e.replace(DM,e=>`-`+e.toLowerCase())}function kM(e,t=` `){return typeof e==`object`&&e?` { +`+Object.entries(e).map(e=>t+` ${OM(e[0])}: ${e[1]};`).join(` `)+` -`+t+`}`:`: ${e};`}function EM(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function DM(e,t,n,r){if(!t)return``;let i=EM(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { +`+t+`}`:`: ${e};`}function AM(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function jM(e,t,n,r){if(!t)return``;let i=AM(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { }`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(` `+t+` -`);return}e=wM(e),t!=null&&o.push(` ${e}${TM(t)}`)}),e&&o.push(`}`),o.join(` -`)}function OM(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))OM(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?OM(r,t,n):r&&n(r)}else e&&n(e)})}function kM(e,t,n,r,i,a){let o=e.$;!o||typeof o==`string`?t.push(o):typeof o==`function`?t.push(o({context:r.context,props:i})):(o.before&&o.before(r.context),!o.$||typeof o.$==`string`?t.push(o.$):o.$&&t.push(o.$({context:r.context,props:i})));let s=SM(t),c=DM(s,e.props,r,i);a&&c&&a.insertRule(c),!a&&c.length&&n.push(c),e.children&&OM(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=DM(s,{raw:e},r,i);a?a.insertRule(t):n.push(t)}else kM(e,t,n,r,i,a)}),t.pop(),o&&o.after&&o.after(r.context)}function AM(e,t,n,r=!1){let i=[];return kM(e,[],i,t,n,r?e.instance.__styleSheet:void 0),r?``:i.join(` +`);return}e=OM(e),t!=null&&o.push(` ${e}${kM(t)}`)}),e&&o.push(`}`),o.join(` +`)}function MM(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))MM(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?MM(r,t,n):r&&n(r)}else e&&n(e)})}function NM(e,t,n,r,i,a){let o=e.$;!o||typeof o==`string`?t.push(o):typeof o==`function`?t.push(o({context:r.context,props:i})):(o.before&&o.before(r.context),!o.$||typeof o.$==`string`?t.push(o.$):o.$&&t.push(o.$({context:r.context,props:i})));let s=EM(t),c=jM(s,e.props,r,i);a&&c&&a.insertRule(c),!a&&c.length&&n.push(c),e.children&&MM(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=jM(s,{raw:e},r,i);a?a.insertRule(t):n.push(t)}else NM(e,t,n,r,i,a)}),t.pop(),o&&o.after&&o.after(r.context)}function PM(e,t,n,r=!1){let i=[];return NM(e,[],i,t,n,r?e.instance.__styleSheet:void 0),r?``:i.join(` -`)}function jM(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function MM(e){return document.querySelector(`style[cssr-id="${e}"]`)}function NM(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function PM(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function FM(e,t){e.setAttribute(`mount-count`,String(t))}function IM(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(jM),t.els=[];else{let e=MM(n);if(e&&i.includes(e)){let a=PM(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(jM(e),t.els=i.filter(t=>t!==e)):FM(e,a-1):a===null?(jM(e),t.els=i.filter(t=>t!==e)):console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`)}}}function LM(e,t){e.push(t)}function RM(e,t,n,r,i,a,o,s,c){if(o&&!c){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}let i=window.__cssrContext;i[n]||(i[n]=!0,AM(t,e,r,o));return}let l,{els:u}=t,d;if(n===void 0&&(d=t.render(r),n=Ec(d)),c){c(n,d??t.render(r));return}let f=MM(n);if(s||f===null){if(l=f===null?NM(n):f,d===void 0&&(d=t.render(r)),l.textContent=d,f!==null)return;if(i){let e=document.head.getElementsByTagName(`style`)[0]||null;document.head.insertBefore(l,e)}else document.head.appendChild(l);a&&FM(l,1),LM(u,l)}else{let e=PM(f);a?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):FM(f,e+1):e!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return f??l}function zM(e){return AM(this,this.instance,e)}function BM(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return RM(this.instance,this,n??t,i,o,a,s,c,r)}function VM(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?IM(this.instance,this,t??n,i):setTimeout(()=>IM(this.instance,this,t??n,i),r)}var HM=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:zM,mount:BM,unmount:VM}},UM=function(e,t,n,r){return Array.isArray(t)?HM(e,{$:null},null,t):Array.isArray(n)?HM(e,t,null,n):Array.isArray(r)?HM(e,t,n,r):HM(e,t,n,null)};function WM(e={}){let t=null,n={c:((...e)=>UM(n,...e)),use:(e,...t)=>e.install(n,...t),find:MM,context:{},config:e,get __styleSheet(){if(!t){let e=document.createElement(`style`);return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}var{c:GM}=WM(),KM=GM(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[GM(`svg`,{width:`1em`,height:`1em`}),GM(`svg:not([fill])`,{fill:`currentColor`})]),qM=()=>{KM.mount({id:`xicons-icon`})},JM={size:[String,Number],color:String,tag:String},YM=Symbol(`IconConfigInjection`),XM=`span`,ZM=P({name:`Icon`,props:JM,setup(e,{slots:t}){let n=N(YM,null),r=B(()=>{let t=e.size??n?.size;if(t!==void 0)return typeof t==`number`||/^\d+$/.test(t)?`${t}px`:t}),i=B(()=>{let{color:t}=e;return t===void 0?n?n.color:void 0:t}),a=B(()=>{let{tag:t}=e;return t===void 0?n?.tag??XM:t});return Br(()=>{qM()}),()=>V(a.value,{class:`xicon`,style:{color:i.value,fontSize:r.value}},[Qr(t,`default`)])}});function QM(e){return{Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserById(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserById`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},AddUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},DeleteScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})}}}function $M(e){return QM(eN(e))}function eN(e){return async t=>{let n=`${tN()}/${t.path}`,r={"Content-Type":`application/json`},i=e?.();i&&(r.Authorization=`Bearer ${i}`);let a=await fetch(n,{method:t.method,headers:r,body:t.body});if(a.status==401)throw Error(`unauthorized`);return await a.json()}}function tN(){return`https://evening-detective.crabs-games.art`}var nN=oc(`auth`,()=>{let e=k(null),t=k(null),n=k(null),r=k(!1),i=k(null),a=B(()=>!!e.value),o=B(()=>n.value?.username||``),s=B(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await $M(l).GetMe({});if(e.error){i.value=e.error;return}e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await h()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await $M(l).Login({email:n,password:a});return r.error?(i.value=r.error,!1):r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await $M(l).Refresh({refreshToken:t.value});return n.error||!n.accessToken?!1:(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0)}catch{return!1}}async function p(e,t){r.value=!0,i.value=null;try{let n=await $M(l).Signup({username:e,email:t});return n.error?(i.value=n.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{let t=await $M(l).RefreshPassword({email:e});return t.error?(i.value=t.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function h(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function g(e){return s.value.includes(e)}function _(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,refreshPassword:m,logout:h,fetchUser:u,refreshTokenAction:f,hasRole:g,hasAnyRole:_}});function rN(){let e=nN();return iN(e.refreshTokenAction,e.getToken)}function iN(e,t){return QM(aN(e,eN(t)))}function aN(e,t){return async n=>{try{return await t(n)}catch{return await e(),await t(n)}}}var oN={class:`menu-block`},sN={class:`right-group`},cN=P({__name:`HeaderMenu`,props:{addLogin:{type:Boolean,required:!1},addLogout:{type:Boolean,required:!1},active:{type:String,required:!1}},setup(e){let t=e,n=nN();n.initFromStorage();let r=OA(),i=rN(),a=k([]);async function o(){a.value=[];let e=await i.GetPermissions({});a.value=e.permissions}o();function s(e){return a.value.includes(e)}let c=()=>{r.push(`/login`)},l=()=>{n.logout(),r.push(`/login`)},u=k(!1);return(e,i)=>(F(),I(`div`,oN,[A(n).hasRole(`user`)?(F(),I(`div`,{key:0,onClick:i[0]||=e=>u.value=!u.value,class:`burger-button`},[R(A(ZM),{class:`burger-icon`,size:`28`},{default:M(()=>[R(A(gM))]),_:1})])):ja(``,!0),L(`div`,{class:ge([`left-group menu-buttons-block`,u.value?``:`menu-buttons-block-active`])},[A(n).hasRole(`user`)?(F(),I(`div`,{key:0,class:ge([`menu-item-block`,{active:t.active==`office`}]),onClick:i[1]||=e=>A(r).push(`/office`)},` Кабинет `,2)):ja(``,!0),s(`games_page`)?(F(),I(`div`,{key:1,class:ge([`menu-item-block`,{active:t.active==`games`}]),onClick:i[2]||=e=>A(r).push(`/games`)},` Игры `,2)):ja(``,!0),s(`scenarios_page`)?(F(),I(`div`,{key:2,class:ge([`menu-item-block`,{active:t.active==`scenarios`}]),onClick:i[3]||=e=>A(r).push(`/scenarios`)},` Мои сценарии `,2)):ja(``,!0),s(`users_page`)?(F(),I(`div`,{key:3,class:ge([`menu-item-block`,{active:t.active==`users`}]),onClick:i[4]||=e=>A(r).push(`/users`)},` Пользователи `,2)):ja(``,!0)],2),L(`div`,sN,[t.addLogin?(F(),I(`div`,{key:0,class:`menu-item-block right`,onClick:c},` Войти `)):ja(``,!0),t.addLogout?(F(),I(`div`,{key:1,class:`menu-item-block right`,onClick:l},`Выйти`)):ja(``,!0)])]))}}),lN=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},uN=lN(cN,[[`__scopeId`,`data-v-39cfef67`]]),dN=P({__name:`GamesPage`,setup(e){return(e,t)=>(F(),I(pa,null,[t[0]||=L(`div`,{class:`center-block-custom content-block`},`Игры`,-1),R(uN,{"add-logout":!0,active:`games`})],64))}}),fN=P({__name:`GamesView`,setup(e){return(e,t)=>(F(),Ca(dN))}}),pN=P({__name:`HomeView`,setup(e){return(e,t)=>(F(),I(pa,null,[t[0]||=L(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[L(`div`,null,[L(`h1`,{class:`font-text`},`Вечерний детектив`),L(`h3`,{class:`font-text`},`Дело №0`),L(`p`,{class:`content-text`},` Поиграем? `)])],-1),R(uN,{"add-login":!0})],64))}}),mN={class:`center-block-custom content-block center-middle-block-custom height80`},hN={class:`form-button-wrapper`},gN={class:`form-label`},_N={key:0},vN={key:1},yN={class:`form-label`},bN={class:`form-button-wrapper`},xN={class:`form-label`},SN={key:0},CN={key:1},wN={class:`form-button-wrapper`},TN={class:`form-label`},EN={key:0},DN={key:1},ON=lN(P({__name:`LoginPage`,setup(e){let t=nN(),n=OA(),r=UE(),i=k(``),a=k(``),o=k(``),s=k(!1),c=B(()=>[`@mail.ru`,`@yandex.ru`,`@gmail.com`].map(e=>{let t=a.value.split(`@`)[0];return{label:t+e,value:t+e}}));async function l(){if(!await t.login(a.value,o.value)&&t.error!=null){r.error(t.error);return}n.push(`/office`)}async function u(){if(s.value){if(!await t.signup(i.value,a.value)&&t.error!=null){r.error(t.error);return}r.info(`Пароль отправлен на почту`)}}async function d(){if(!await t.refreshPassword(a.value)&&t.error!=null){r.error(t.error);return}r.info(`Пароль отправлен на почту`)}return(e,n)=>(F(),I(`div`,mN,[R(A(uT),{style:{"margin-bottom":`16px`},class:`sign-card`},{default:M(()=>[R(A(Ek),{type:`line`,animated:``},{default:M(()=>[R(A(Sk),{name:`signin`,tab:`Вход`},{default:M(()=>[R(A(pD),{vertical:``},{default:M(()=>[n[6]||=L(`div`,{class:`form-label`},`Почта`,-1),R(A(xw),{value:a.value,"onUpdate:value":n[0]||=e=>a.value=e,"input-props":{autocomplete:`disabled`},options:c.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),n[7]||=L(`div`,{class:`form-label`},`Пароль`,-1),R(A(lw),{value:o.value,"onUpdate:value":n[1]||=e=>o.value=e,type:`password`,placeholder:`********`},null,8,[`value`]),L(`div`,hN,[L(`div`,gN,[R(A(Kw),{onClick:l,disabled:a.value.length==0||o.value.length==0},{default:M(()=>[A(t).isLoading?(F(),I(`span`,vN,` Подождите... `)):(F(),I(`span`,_N,` Вход `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1}),R(A(Sk),{name:`signup`,tab:`Регистрация`},{default:M(()=>[R(A(pD),{vertical:``},{default:M(()=>[n[9]||=L(`div`,{class:`form-label`},`Позывной`,-1),R(A(lw),{value:i.value,"onUpdate:value":n[2]||=e=>i.value=e,type:`text`,placeholder:`Шерлок`},null,8,[`value`]),n[10]||=L(`div`,{class:`form-label`},`Почта`,-1),R(A(xw),{value:a.value,"onUpdate:value":n[3]||=e=>a.value=e,"input-props":{autocomplete:`disabled`},options:c.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),L(`div`,yN,[R(A(CT),{checked:s.value,"onUpdate:checked":n[4]||=e=>s.value=e},{default:M(()=>[...n[8]||=[z(` Я согласен с `,-1),L(`a`,{href:`/user-agreement`,target:`_blank`,class:`docs-link`},`пользовательским соглашением`,-1),L(`br`,null,null,-1),z(` и `,-1),L(`a`,{href:`/privacy-policy`,target:`_blank`,class:`docs-link`},`соглашением о персональных данных`,-1)]]),_:1},8,[`checked`])]),L(`div`,bN,[L(`div`,xN,[R(A(Kw),{onClick:u,disabled:i.value.length==0||o.value.length==0||!s.value},{default:M(()=>[A(t).isLoading?(F(),I(`span`,CN,` Подождите... `)):(F(),I(`span`,SN,` Регистрация `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1}),R(A(Sk),{name:`new-password`,tab:`Новый пароль`},{default:M(()=>[R(A(pD),{vertical:``},{default:M(()=>[n[11]||=L(`div`,{class:`form-label`},`Почта`,-1),R(A(xw),{value:a.value,"onUpdate:value":n[5]||=e=>a.value=e,"input-props":{autocomplete:`disabled`},options:c.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),L(`div`,wN,[L(`div`,TN,[R(A(Kw),{onClick:d,disabled:a.value.length==0},{default:M(()=>[A(t).isLoading?(F(),I(`span`,DN,` Подождите... `)):(F(),I(`span`,EN,` Прислать новый пароль `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1})]),_:1})]),_:1})]))}}),[[`__scopeId`,`data-v-c1fd645b`]]),kN=P({__name:`LoginView`,setup(e){return(e,t)=>(F(),Ca(ON))}}),AN={class:`center-block-custom content-block`},jN=P({__name:`OfficePage`,setup(e){let t=nN(),n=rN(),r=k([]);async function i(){r.value=[];let e=await n.GetPermissions({});r.value=e.permissions}return i(),(e,n)=>(F(),I(pa,null,[L(`div`,AN,[L(`p`,null,`Доброго времени суток, `+Ce(A(t).username)+`.`,1)]),R(uN,{"add-logout":!0,active:`office`})],64))}}),MN=P({__name:`OfficeView`,setup(e){return(e,t)=>(F(),Ca(jN))}}),NN={};function PN(e,t){return`Соглашением о персональных данных`}var FN=lN(NN,[[`render`,PN]]),IN={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},LN=P({name:`Settings`,render:function(e,t){return F(),I(`svg`,IN,t[0]||=[L(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),L(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}}),RN={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},zN=P({name:`Key24Regular`,render:function(e,t){return F(),I(`svg`,RN,t[0]||=[L(`g`,{fill:`none`},[L(`path`,{d:`M18.25 7a1.25 1.25 0 1 1-2.5 0a1.25 1.25 0 0 1 2.5 0zM15.5 2.05A6.554 6.554 0 0 0 8.95 8.6c0 .387.05.76.11 1.104a.275.275 0 0 1-.07.244l-6.235 6.236a2.75 2.75 0 0 0-.806 1.944V20.3c0 .966.784 1.75 1.75 1.75h2.5a1.75 1.75 0 0 0 1.75-1.75v-1.25H9.7c.69 0 1.25-.56 1.25-1.25v-1.75h1.75a1.25 1.25 0 0 0 1.25-1.204c.496.128 1.02.204 1.55.204a6.554 6.554 0 0 0 6.55-6.55c0-3.631-2.953-6.45-6.55-6.45zM10.45 8.6a5.054 5.054 0 0 1 5.05-5.05c2.802 0 5.05 2.181 5.05 4.95a5.054 5.054 0 0 1-5.05 5.05c-.68 0-1.38-.171-2.005-.44a.75.75 0 0 0-1.046.69v.75H10.7c-.69 0-1.25.56-1.25 1.25v1.75H7.7c-.69 0-1.25.56-1.25 1.25v1.5a.25.25 0 0 1-.25.25H3.7a.25.25 0 0 1-.25-.25v-2.172c0-.331.132-.65.366-.884l6.236-6.235a1.774 1.774 0 0 0 .486-1.564a4.917 4.917 0 0 1-.088-.845z`,fill:`currentColor`})],-1)])}}),BN={key:1,class:`place-block`},VN={class:`message-header`},HN={class:`message-content`},UN={key:0},WN={class:`message-image-border`},GN=[`src`],KN={class:`key-block`},qN={key:0,class:`hr`},JN={class:`gray-block`},YN={key:0},XN={class:`key-block`},ZN={key:3,class:`place-block`},QN=[`src`],$N={style:{display:`flex`,"align-items":`center`,width:`100%`}},eP={style:{display:`flex`,"flex-direction":`column`}},tP={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},nP={class:`door-add-block`},rP={class:`door-field`},iP={style:{display:`flex`,"align-items":`center`,width:`100%`}},aP={style:{display:`flex`,"align-items":`center`,width:`100%`}},oP={class:`slot-block`},sP=lN(P({__name:`PlaceBlock`,props:{newPlaceCode:{type:String},newPlaceName:{type:String},newPlaceText:{type:String},place:{type:Object},mode:{type:String,required:!0}},emits:[`update:newPlaceCode`,`update:newPlaceName`,`update:newPlaceText`,`update:mode`],setup(e,{emit:t}){let n=e,r=t,i=e=>{r(`update:newPlaceCode`,e)},a=e=>{r(`update:newPlaceName`,e)},o=e=>{r(`update:newPlaceText`,e)},s=e=>{r(`update:mode`,e)};function c(){return{name:void 0,image:void 0}}function l(){return{code:void 0,name:void 0,keys:void 0}}function u(){return{name:void 0}}return(t,r)=>(F(),I(pa,null,[e.mode==`mini-add`?(F(),I(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:r[0]||=e=>s(`add`)},[...r[12]||=[L(`p`,{class:`place-image-plus`},`+`,-1)]])):ja(``,!0),e.mode==`add`?(F(),I(`div`,BN,[R(A(pD),{vertical:``},{default:M(()=>[R(A(dw),null,{default:M(()=>[R(A(lw),{style:{width:`20%`},value:e.newPlaceCode,"onUpdate:value":i,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),R(A(lw),{style:{width:`80%`},value:e.newPlaceName,"onUpdate:value":a,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),R(A(lw),{value:e.newPlaceText,"onUpdate:value":o,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),Qr(t.$slots,`default`,{},void 0,!0)]),_:3})])):ja(``,!0),e.mode==`show-editor`?(F(),I(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:r[1]||=e=>s(`edit`)},[L(`div`,VN,Ce(n.place.code)+`: `+Ce(n.place.name),1),r[13]||=L(`hr`,{class:`hr`},null,-1),L(`div`,HN,[n.place.image?(F(),I(`div`,UN,[L(`div`,WN,[L(`img`,{src:n.place.image,class:`message-image`},null,8,GN)])])):ja(``,!0),z(` `+Ce(n.place.text),1)]),(F(!0),I(pa,null,Zr(n.place.doors,e=>(F(),I(`div`,{key:e.code,class:`door-block`},[z(Ce(e.name)+` `,1),(F(!0),I(pa,null,Zr(e.keys,e=>(F(),I(`span`,KN,[R(A(ZM),{class:`lock-icon`},{default:M(()=>[R(A(mM))]),_:1}),z(` `+Ce(e.name),1)]))),256))]))),128)),n.place.applications.length?(F(),I(`hr`,qN)):ja(``,!0),(F(!0),I(pa,null,Zr(n.place.applications,e=>(F(),I(`div`,{class:`message-footer application-block`,key:e.name},` Приложение: `+Ce(e.name),1))),128)),L(`p`,JN,[e.place.hidden?(F(),I(`span`,YN,` Скрытая точка `)):ja(``,!0),(F(!0),I(pa,null,Zr(e.place.keys,e=>(F(),I(`span`,XN,[R(A(ZM),{class:`lock-icon`},{default:M(()=>[R(A(zN))]),_:1}),z(` `+Ce(e.name),1)]))),256))])])):ja(``,!0),e.mode==`edit`?(F(),I(`div`,ZN,[R(A(pD),{vertical:``},{default:M(()=>[R(A(dw),null,{default:M(()=>[R(A(lw),{style:{width:`20%`},value:n.place.code,"onUpdate:value":r[2]||=e=>n.place.code=e,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),R(A(lw),{style:{width:`80%`},value:n.place.name,"onUpdate:value":r[3]||=e=>n.place.name=e,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),R(A(lw),{value:n.place.text,"onUpdate:value":r[4]||=e=>n.place.text=e,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),r[25]||=L(`p`,{class:`settings-header`},`Картинка`,-1),L(`div`,null,[R(A(pD),null,{default:M(()=>[R(A(pD),{vertical:``},{default:M(()=>[L(`img`,{src:n.place.image,class:`message-edit-image`},null,8,QN),R(A(Kw),{onClick:r[5]||=e=>(n.place.image=``,n.place.fileList=null)},{default:M(()=>[...r[14]||=[z(`Убрать картинку`,-1)]]),_:1})]),_:1}),R(A(pD),{vertical:``},{default:M(()=>[R(A(lw),{value:n.place.image,"onUpdate:value":r[6]||=e=>n.place.image=e,type:`text`,placeholder:`Не задано`,disabled:``},null,8,[`value`]),R(A(uA),{"directory-dnd":``,max:1,"file-list":n.place.fileList,"onUpdate:fileList":r[7]||=e=>n.place.fileList=e},{default:M(()=>[R(A(Fk),null,{default:M(()=>[R(A(Mk),{style:{"font-size":`16px`}},{default:M(()=>[...r[15]||=[z(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1})]),r[26]||=L(`p`,{class:`settings-header`},`Видимость точки`,-1),R(A(yk),{value:n.place.hidden,"onUpdate:value":r[8]||=e=>n.place.hidden=e},{checked:M(()=>[...r[16]||=[z(` Скрытая точка `,-1)]]),unchecked:M(()=>[...r[17]||=[z(` Обычная точка `,-1)]]),_:1},8,[`value`]),r[27]||=z(` Улики `,-1),R(A(oD),{value:n.place.applications,"onUpdate:value":r[9]||=e=>n.place.applications=e,"on-create":c},{"create-button-default":M(()=>[...r[18]||=[z(` Добавить улику `,-1)]]),default:M(({value:e})=>[L(`div`,$N,[R(A(lw),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),r[28]||=z(` Действия `,-1),R(A(oD),{value:n.place.doors,"onUpdate:value":r[10]||=e=>n.place.doors=e,"on-create":l},{"create-button-default":M(()=>[...r[19]||=[z(` Добавить действие `,-1)]]),action:M(({index:e,create:t,remove:n})=>[L(`div`,eP,[R(A(Kw),{onClick:()=>t(e),class:`plus-minus-buttons`},{default:M(()=>[...r[20]||=[z(`+`,-1)]]),_:1},8,[`onClick`]),R(A(Kw),{disabled:``,onClick:()=>n(e),class:`plus-minus-buttons`},{default:M(()=>[...r[21]||=[z(`-`,-1)]]),_:1},8,[`onClick`])])]),default:M(({value:e})=>[L(`div`,tP,[L(`div`,nP,[R(A(dw),null,{default:M(()=>[R(A(lw),{style:{width:`30%`},value:e.code,"onUpdate:value":t=>e.code=t,type:`text`,placeholder:`Код`},null,8,[`value`,`onUpdate:value`]),R(A(lw),{style:{width:`70%`},value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])]),_:2},1024),r[23]||=L(`p`,{class:`need-keys-text`},`Требуемые ключи`,-1),L(`div`,rP,[R(A(oD),{value:e.keys,"onUpdate:value":t=>e.keys=t,"on-create":u},{"create-button-default":M(()=>[...r[22]||=[z(` Добавить ключ `,-1)]]),default:M(({value:e})=>[L(`div`,iP,[R(A(lw),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`,`onUpdate:value`])])])])]),_:1},8,[`value`]),r[29]||=z(` Получаемые ключи `,-1),R(A(oD),{value:n.place.keys,"onUpdate:value":r[11]||=e=>n.place.keys=e,"on-create":u},{"create-button-default":M(()=>[...r[24]||=[z(` Добавить ключ `,-1)]]),default:M(({value:e})=>[L(`div`,aP,[R(A(lw),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),L(`div`,oP,[Qr(t.$slots,`default`,{},void 0,!0)])]),_:3})])):ja(``,!0)],64))}}),[[`__scopeId`,`data-v-19e95c2c`]]),cP={class:`center-block-custom-big`},lP={class:`places-container`},uP={class:`settings-block`},dP=lN(P({__name:`ScenariosEditorPage`,setup(e){let t=rN(),n=kA().params.id,r=k(!1),i=k(``),a=UE(),o=k([]),s=k({id:void 0,name:void 0,story:void 0,author:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0});async function c(e){let n=await t.GetScenario({id:e});if(n.error!=``){a.error(n.error);return}s.value=n.scenario,s.value.story?.places?.forEach(e=>{e.oldCode=e.code,e.mode=`show-editor`})}c(Number(n));async function l(e){let n=await t.DeleteScenario({id:e});if(n.error!=``){a.error(n.error);return}kP.push(`/scenarios`)}async function u(e,n){if(!e)return``;let r=await e.arrayBuffer(),i=new Uint8Array(r),o=await t.UploadFile({filename:n,data:f(i)});return o.error==``?o.filename||``:(a.error(o.error),``)}async function d(){let e=``;if(o.value&&o.value.length>0){let t=o.value[0].file||null;if(t==null||(e=await u(t,`scenarios_`+s.value.id+`_`+t.name),e===``))return}let i=await t.UpdateScenario({id:s.value.id,name:s.value.name,description:s.value.description,image:e});if(i.error!=``){a.error(i.error);return}await c(Number(n)),r.value=!1}function f(e){let t=String.fromCharCode(...e);return btoa(t)}let p=k(``),m=k(``),h=k(``),g=k(`mini-add`);async function _(){let e=await t.AddScenarioPlace({id:s.value.id,place:{code:p.value,name:m.value,text:h.value,image:void 0,hidden:void 0,applications:void 0,doors:void 0,keys:void 0}});if(e.error!=``){a.error(e.error);return}await c(Number(n)),p.value=``,m.value=``,h.value=``,g.value=`add`}async function v(){p.value=``,m.value=``,h.value=``,g.value=`mini-add`}async function y(e,n){for(let r of n.doors||[])if(e.story?.places?.find(e=>e.code==r.code)==null){let n=await t.AddScenarioPlace({id:e.id,place:{code:r.code,name:r.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}});if(n.error!=``){a.error(n.error);return}}}async function b(e){await c(Number(n)),e.mode=`show-editor`}async function x(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await u(t,`scenarios_`+s.value.id+`_place_`+e.code+`_`+t.name);if(n===``)return;e.image=n}await y(s.value,e);let r=await t.UpdateScenarioPlace({id:s.value.id,code:e.oldCode,place:e});if(r.error!=``){a.error(r.error);return}await c(Number(n)),e.mode=`show-editor`}async function S(e){let r=await t.DeleteScenarioPlace({id:s.value.id,code:e.oldCode});if(r.error!=``){a.error(r.error);return}await c(Number(n))}return(e,t)=>(F(),I(pa,null,[L(`div`,cP,[L(`div`,lP,[L(`div`,uP,[z(` Точек: `+Ce(s.value.story?.places?.length)+` `,1),R(A(Kw),{quaternary:``,onClick:t[0]||=e=>r.value=!0,class:`settings-button`},{default:M(()=>[R(A(ZM),{class:`settings-icon`},{default:M(()=>[R(A(LN))]),_:1}),t[16]||=z(` Настройки `,-1)]),_:1})]),R(sP,{mode:g.value,"onUpdate:mode":t[3]||=e=>g.value=e,newPlaceCode:p.value,"onUpdate:newPlaceCode":t[4]||=e=>p.value=e,newPlaceName:m.value,"onUpdate:newPlaceName":t[5]||=e=>m.value=e,newPlaceText:h.value,"onUpdate:newPlaceText":t[6]||=e=>h.value=e},{default:M(()=>[R(A(bD),{justify:`end`},{default:M(()=>[R(A(Kw),{onClick:t[1]||=e=>v()},{default:M(()=>[...t[17]||=[z(`Отмена`,-1)]]),_:1}),R(A(Kw),{onClick:t[2]||=e=>_(),disabled:!p.value},{default:M(()=>[...t[18]||=[z(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(F(!0),I(pa,null,Zr(s.value.story?.places,e=>(F(),Ca(sP,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.code},{default:M(()=>[R(A(bD),{justify:`end`},{default:M(()=>[R(A(Kw),{onClick:t=>S(e),type:`error`,ghost:``},{default:M(()=>[...t[19]||=[z(`Удалить`,-1)]]),_:1},8,[`onClick`]),R(A(Kw),{onClick:t=>b(e)},{default:M(()=>[...t[20]||=[z(`Отмена`,-1)]]),_:1},8,[`onClick`]),R(A(Kw),{onClick:t=>x(e)},{default:M(()=>[...t[21]||=[z(`Сохранить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`]))),128))])]),R(A(OE),{show:r.value,"onUpdate:show":t[15]||=e=>r.value=e},{default:M(()=>[R(A(uT),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":M(()=>[R(A(Kw),{onClick:t[7]||=e=>r.value=!1},{default:M(()=>[...t[22]||=[z(` x `,-1)]]),_:1})]),footer:M(()=>[...t[32]||=[]]),default:M(()=>[R(A(pD),{vertical:``},{default:M(()=>[t[28]||=L(`p`,null,`Название`,-1),R(A(lw),{value:s.value.name,"onUpdate:value":t[8]||=e=>s.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),t[29]||=L(`p`,{class:`settings-header`},`Описание`,-1),R(A(lw),{value:s.value.description,"onUpdate:value":t[9]||=e=>s.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),t[30]||=L(`p`,{class:`settings-header`},`Картинка`,-1),R(A(lw),{value:s.value.image,"onUpdate:value":t[10]||=e=>s.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),R(A(uA),{"directory-dnd":``,max:1,"file-list":o.value,"onUpdate:fileList":t[11]||=e=>o.value=e},{default:M(()=>[R(A(Fk),null,{default:M(()=>[R(A(Mk),{style:{"font-size":`16px`}},{default:M(()=>[...t[23]||=[z(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),R(A(Kw),{onClick:t[12]||=e=>d(),ghost:``},{default:M(()=>[...t[24]||=[z(` Сохранить изменения `,-1)]]),_:1}),t[31]||=L(`hr`,{class:`settings-hr`},null,-1),L(`p`,null,[t[25]||=z(` Введите название сценария `,-1),R(A(Mk),{class:`name-text`,strong:``},{default:M(()=>[z(Ce(s.value.name),1)]),_:1}),t[26]||=z(` чтобы удалить его `,-1)]),R(A(lw),{value:i.value,"onUpdate:value":t[13]||=e=>i.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),R(A(Kw),{onClick:t[14]||=e=>l(s.value.id),type:`error`,ghost:``,disabled:i.value!=s.value.name},{default:M(()=>[...t[27]||=[z(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),R(uN,{"add-logout":!0,active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-810fc02a`]]),fP=P({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(F(),Ca(dP))}}),pP={class:`center-block-custom-big content-block`},mP={class:`scenarios-container`},hP=[`onClick`],gP={class:`scenario-title`},_P=lN(P({__name:`ScenariosPage`,setup(e){let t=rN(),n=k([]),r=OA(),i=UE(),a=k(!1),o=k(``);async function s(){n.value=[];let e=await t.GetMyScenarios({});n.value=e.scenarios}async function c(e){let n=await t.AddScenario({name:e});if(n.error!=``){i.error(n.error);return}await l(n.id)}async function l(e){r.push(`/scenarios/`+e)}return s(),(e,t)=>(F(),I(pa,null,[L(`div`,pP,[L(`div`,mP,[L(`div`,{class:`scenario-block`,onClick:t[0]||=e=>a.value=!0},[...t[5]||=[L(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),L(`p`,{class:`scenario-title`},`Создать новый сценарий`,-1)]]),(F(!0),I(pa,null,Zr(n.value,e=>(F(),I(`div`,{class:`scenario-block`,onClick:t=>l(e.id),key:e.id},[L(`div`,{class:`scenario-image-block scenario-image`,style:de({backgroundImage:`url(${e.image})`})},null,4),L(`p`,gP,Ce(e.name),1)],8,hP))),128))])]),R(A(OE),{show:a.value,"onUpdate:show":t[4]||=e=>a.value=e},{default:M(()=>[R(A(uT),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":M(()=>[R(A(Kw),{onClick:t[1]||=e=>a.value=!1},{default:M(()=>[...t[6]||=[z(` x `,-1)]]),_:1})]),footer:M(()=>[R(A(Kw),{onClick:t[3]||=e=>c(o.value),disabled:o.value.length==0},{default:M(()=>[...t[7]||=[z(` Создать `,-1)]]),_:1},8,[`disabled`])]),default:M(()=>[R(A(lw),{value:o.value,"onUpdate:value":t[2]||=e=>o.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),R(uN,{"add-logout":!0,active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-b389c9aa`]]),vP=P({__name:`ScenariosView`,setup(e){return(e,t)=>(F(),Ca(_P))}}),yP={};function bP(e,t){return`Пользовательское соглашение`}var xP=lN(yP,[[`render`,bP]]),SP={class:`center-block-custom content-block`},CP={class:`users-container`},wP={class:`user-field`},TP={class:`user-field`},EP={class:`user-field`},DP=lN(P({__name:`UsersPage`,setup(e){let t=rN(),n=UE(),r=k([]);async function i(){let e=await t.GetUsers({});if(e.error!=``){n.error(e.error);return}r.value=e.users}i();async function a(e,r){let a=await t.AddUserRole({id:e,role:r});if(a.error!=``){n.error(a.error);return}await i()}async function o(e,r){let a=await t.DeleteUserRole({id:e,role:r});if(a.error!=``){n.error(a.error);return}await i()}return(e,t)=>(F(),I(pa,null,[L(`div`,SP,[L(`div`,CP,[(F(!0),I(pa,null,Zr(r.value,e=>(F(),I(`div`,{key:e.id,class:`user-block`},[L(`div`,wP,` Позывной: `+Ce(e.username),1),L(`div`,TP,` Почта: `+Ce(e.email),1),L(`div`,EP,[R(A(pD),null,{default:M(()=>[t[0]||=z(` Роли: `,-1),(F(!0),I(pa,null,Zr(e.roles,e=>(F(),Ca(A(MC),{bordered:!1,key:e},{default:M(()=>[z(Ce(e),1)]),_:2},1024))),128))]),_:2},1024)]),R(A(bD),{justify:`end`,class:`roles-buttons-block`},{default:M(()=>[e.roles?.includes(`author`)?(F(),Ca(A(Kw),{key:1,onClick:t=>o(e.id,`author`)},{default:M(()=>[...t[2]||=[z(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(F(),Ca(A(Kw),{key:0,onClick:t=>a(e.id,`author`)},{default:M(()=>[...t[1]||=[z(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),e.roles?.includes(`organizer`)?(F(),Ca(A(Kw),{key:3,onClick:t=>o(e.id,`organizer`)},{default:M(()=>[...t[4]||=[z(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(F(),Ca(A(Kw),{key:2,onClick:t=>a(e.id,`organizer`)},{default:M(()=>[...t[3]||=[z(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),R(uN,{"add-logout":!0,active:`users`})],64))}}),[[`__scopeId`,`data-v-475b5dbd`]]),OP=P({__name:`UsersView`,setup(e){return(e,t)=>(F(),Ca(DP))}}),kP=dM({history:Nj(`/`),routes:[{path:`/`,name:`home`,component:pN},{path:`/login`,name:`login`,component:kN},{path:`/office`,name:`office`,component:MN},{path:`/user-agreement`,name:`user-agreement`,component:xP},{path:`/privacy-policy`,name:`privacy-policy`,component:FN},{path:`/games`,name:`games`,component:fN},{path:`/scenarios`,name:`scenarios`,component:vP},{path:`/scenarios/:id`,name:`ScenariosEditorView`,component:fP},{path:`/users`,name:`users`,component:OP}]}),AP=Ts(fM);AP.use(Ks()),AP.use(kP),AP.mount(`#app`); \ No newline at end of file +`)}function FM(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function IM(e){return document.querySelector(`style[cssr-id="${e}"]`)}function LM(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function RM(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function zM(e,t){e.setAttribute(`mount-count`,String(t))}function BM(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(FM),t.els=[];else{let e=IM(n);if(e&&i.includes(e)){let a=RM(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(FM(e),t.els=i.filter(t=>t!==e)):zM(e,a-1):a===null?(FM(e),t.els=i.filter(t=>t!==e)):console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`)}}}function VM(e,t){e.push(t)}function HM(e,t,n,r,i,a,o,s,c){if(o&&!c){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}let i=window.__cssrContext;i[n]||(i[n]=!0,PM(t,e,r,o));return}let l,{els:u}=t,d;if(n===void 0&&(d=t.render(r),n=Ec(d)),c){c(n,d??t.render(r));return}let f=IM(n);if(s||f===null){if(l=f===null?LM(n):f,d===void 0&&(d=t.render(r)),l.textContent=d,f!==null)return;if(i){let e=document.head.getElementsByTagName(`style`)[0]||null;document.head.insertBefore(l,e)}else document.head.appendChild(l);a&&zM(l,1),VM(u,l)}else{let e=RM(f);a?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):zM(f,e+1):e!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return f??l}function UM(e){return PM(this,this.instance,e)}function WM(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return HM(this.instance,this,n??t,i,o,a,s,c,r)}function GM(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?BM(this.instance,this,t??n,i):setTimeout(()=>BM(this.instance,this,t??n,i),r)}var KM=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:UM,mount:WM,unmount:GM}},qM=function(e,t,n,r){return Array.isArray(t)?KM(e,{$:null},null,t):Array.isArray(n)?KM(e,t,null,n):Array.isArray(r)?KM(e,t,n,r):KM(e,t,n,null)};function JM(e={}){let t=null,n={c:((...e)=>qM(n,...e)),use:(e,...t)=>e.install(n,...t),find:IM,context:{},config:e,get __styleSheet(){if(!t){let e=document.createElement(`style`);return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}var{c:YM}=JM(),XM=YM(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[YM(`svg`,{width:`1em`,height:`1em`}),YM(`svg:not([fill])`,{fill:`currentColor`})]),ZM=()=>{XM.mount({id:`xicons-icon`})},QM={size:[String,Number],color:String,tag:String},$M=Symbol(`IconConfigInjection`),eN=`span`,tN=P({name:`Icon`,props:QM,setup(e,{slots:t}){let n=N($M,null),r=B(()=>{let t=e.size??n?.size;if(t!==void 0)return typeof t==`number`||/^\d+$/.test(t)?`${t}px`:t}),i=B(()=>{let{color:t}=e;return t===void 0?n?n.color:void 0:t}),a=B(()=>{let{tag:t}=e;return t===void 0?n?.tag??eN:t});return Br(()=>{ZM()}),()=>V(a.value,{class:`xicon`,style:{color:i.value,fontSize:r.value}},[Qr(t,`default`)])}});function nN(e){return{Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserById(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserById`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},AddUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/users/${t.id}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);let n=`api/scenarios/${t.id}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.id)throw Error(`missing required field request.id`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.id}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})}}}function rN(e){return nN(iN(e))}function iN(e){return async t=>{let n=`${aN()}/${t.path}`,r={"Content-Type":`application/json`},i=e?.();i&&(r.Authorization=`Bearer ${i}`);let a=await fetch(n,{method:t.method,headers:r,body:t.body});if(a.status==401)throw Error(`unauthorized`);return await a.json()}}function aN(){return`http://192.168.1.111:8090`}var oN=oc(`auth`,()=>{let e=k(null),t=k(null),n=k(null),r=k(!1),i=k(null),a=B(()=>!!e.value),o=B(()=>n.value?.username||``),s=B(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await rN(l).GetMe({});if(e.error){i.value=e.error;return}e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await h()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await rN(l).Login({email:n,password:a});return r.error?(i.value=r.error,!1):r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await rN(l).Refresh({refreshToken:t.value});return n.error||!n.accessToken?!1:(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0)}catch{return!1}}async function p(e,t){r.value=!0,i.value=null;try{let n=await rN(l).Signup({username:e,email:t});return n.error?(i.value=n.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{let t=await rN(l).RefreshPassword({email:e});return t.error?(i.value=t.error,!1):!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function h(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function g(e){return s.value.includes(e)}function _(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,refreshPassword:m,logout:h,fetchUser:u,refreshTokenAction:f,hasRole:g,hasAnyRole:_}});function sN(){let e=oN();return cN(e.refreshTokenAction,e.getToken)}function cN(e,t){return nN(lN(e,iN(t)))}function lN(e,t){return async n=>{try{return await t(n)}catch{return await e(),await t(n)}}}var uN={class:`menu-block`},dN={class:`right-group`},fN=P({__name:`HeaderMenu`,props:{addLogin:{type:Boolean,required:!1},addLogout:{type:Boolean,required:!1},active:{type:String,required:!1}},setup(e){let t=e,n=oN();n.initFromStorage();let r=MA(),i=sN(),a=k([]);async function o(){a.value=[];let e=await i.GetPermissions({});a.value=e.permissions}o();function s(e){return a.value.includes(e)}let c=()=>{r.push(`/login`)},l=()=>{n.logout(),r.push(`/login`)},u=k(!1);return(e,i)=>(F(),I(`div`,uN,[A(n).hasRole(`user`)?(F(),I(`div`,{key:0,onClick:i[0]||=e=>u.value=!u.value,class:`burger-button`},[R(A(tN),{class:`burger-icon`,size:`28`},{default:M(()=>[R(A(bM))]),_:1})])):ja(``,!0),L(`div`,{class:ge([`left-group menu-buttons-block`,u.value?``:`menu-buttons-block-active`])},[A(n).hasRole(`user`)?(F(),I(`div`,{key:0,class:ge([`menu-item-block`,{active:t.active==`office`}]),onClick:i[1]||=e=>A(r).push(`/office`)},` Кабинет `,2)):ja(``,!0),s(`games_page`)?(F(),I(`div`,{key:1,class:ge([`menu-item-block`,{active:t.active==`games`}]),onClick:i[2]||=e=>A(r).push(`/games`)},` Игры `,2)):ja(``,!0),s(`scenarios_page`)?(F(),I(`div`,{key:2,class:ge([`menu-item-block`,{active:t.active==`scenarios`}]),onClick:i[3]||=e=>A(r).push(`/scenarios`)},` Мои сценарии `,2)):ja(``,!0),s(`users_page`)?(F(),I(`div`,{key:3,class:ge([`menu-item-block`,{active:t.active==`users`}]),onClick:i[4]||=e=>A(r).push(`/users`)},` Пользователи `,2)):ja(``,!0)],2),L(`div`,dN,[t.addLogin?(F(),I(`div`,{key:0,class:`menu-item-block right`,onClick:c},` Войти `)):ja(``,!0),t.addLogout?(F(),I(`div`,{key:1,class:`menu-item-block right`,onClick:l},`Выйти`)):ja(``,!0)])]))}}),pN=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},mN=pN(fN,[[`__scopeId`,`data-v-798f9085`]]),hN=P({__name:`GamesPage`,setup(e){return(e,t)=>(F(),I(pa,null,[t[0]||=L(`div`,{class:`center-block-custom content-block`},`Игры`,-1),R(mN,{"add-logout":!0,active:`games`})],64))}}),gN=P({__name:`GamesView`,setup(e){return(e,t)=>(F(),Ca(hN))}}),_N=P({__name:`HomeView`,setup(e){return(e,t)=>(F(),I(pa,null,[t[0]||=L(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[L(`div`,null,[L(`h1`,{class:`font-text`},`Вечерний детектив`),L(`h3`,{class:`font-text`},`Дело №0`),L(`p`,{class:`content-text`},` Поиграем? `)])],-1),R(mN,{"add-login":!0})],64))}}),vN={class:`center-block-custom content-block center-middle-block-custom height80`},yN={class:`form-button-wrapper`},bN={class:`form-label`},xN={key:0},SN={key:1},CN={class:`form-label`},wN={class:`form-button-wrapper`},TN={class:`form-label`},EN={key:0},DN={key:1},ON={class:`form-button-wrapper`},kN={class:`form-label`},AN={key:0},jN={key:1},MN=pN(P({__name:`LoginPage`,setup(e){let t=oN(),n=MA(),r=qE(),i=k(``),a=k(``),o=k(``),s=k(!1),c=B(()=>[`@mail.ru`,`@yandex.ru`,`@gmail.com`].map(e=>{let t=a.value.split(`@`)[0];return{label:t+e,value:t+e}}));async function l(){if(!await t.login(a.value,o.value)&&t.error!=null){r.error(t.error);return}n.push(`/office`)}async function u(){if(s.value){if(!await t.signup(i.value,a.value)&&t.error!=null){r.error(t.error);return}r.info(`Пароль отправлен на почту`)}}async function d(){if(!await t.refreshPassword(a.value)&&t.error!=null){r.error(t.error);return}r.info(`Пароль отправлен на почту`)}return(e,n)=>(F(),I(`div`,vN,[R(A(mT),{style:{"margin-bottom":`16px`},class:`sign-card`},{default:M(()=>[R(A(Ak),{type:`line`,animated:``},{default:M(()=>[R(A(Ek),{name:`signin`,tab:`Вход`},{default:M(()=>[R(A(_D),{vertical:``},{default:M(()=>[n[6]||=L(`div`,{class:`form-label`},`Почта`,-1),R(A(Tw),{value:a.value,"onUpdate:value":n[0]||=e=>a.value=e,"input-props":{autocomplete:`disabled`},options:c.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),n[7]||=L(`div`,{class:`form-label`},`Пароль`,-1),R(A(pw),{value:o.value,"onUpdate:value":n[1]||=e=>o.value=e,type:`password`,placeholder:`********`},null,8,[`value`]),L(`div`,yN,[L(`div`,bN,[R(A(Xw),{onClick:l,disabled:a.value.length==0||o.value.length==0},{default:M(()=>[A(t).isLoading?(F(),I(`span`,SN,` Подождите... `)):(F(),I(`span`,xN,` Вход `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1}),R(A(Ek),{name:`signup`,tab:`Регистрация`},{default:M(()=>[R(A(_D),{vertical:``},{default:M(()=>[n[9]||=L(`div`,{class:`form-label`},`Позывной`,-1),R(A(pw),{value:i.value,"onUpdate:value":n[2]||=e=>i.value=e,type:`text`,placeholder:`Шерлок`},null,8,[`value`]),n[10]||=L(`div`,{class:`form-label`},`Почта`,-1),R(A(Tw),{value:a.value,"onUpdate:value":n[3]||=e=>a.value=e,"input-props":{autocomplete:`disabled`},options:c.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),L(`div`,CN,[R(A(DT),{checked:s.value,"onUpdate:checked":n[4]||=e=>s.value=e},{default:M(()=>[...n[8]||=[z(` Я согласен с `,-1),L(`a`,{href:`/user-agreement`,target:`_blank`,class:`docs-link`},`пользовательским соглашением`,-1),L(`br`,null,null,-1),z(` и `,-1),L(`a`,{href:`/privacy-policy`,target:`_blank`,class:`docs-link`},`соглашением о персональных данных`,-1)]]),_:1},8,[`checked`])]),L(`div`,wN,[L(`div`,TN,[R(A(Xw),{onClick:u,disabled:i.value.length==0||o.value.length==0||!s.value},{default:M(()=>[A(t).isLoading?(F(),I(`span`,DN,` Подождите... `)):(F(),I(`span`,EN,` Регистрация `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1}),R(A(Ek),{name:`new-password`,tab:`Новый пароль`},{default:M(()=>[R(A(_D),{vertical:``},{default:M(()=>[n[11]||=L(`div`,{class:`form-label`},`Почта`,-1),R(A(Tw),{value:a.value,"onUpdate:value":n[5]||=e=>a.value=e,"input-props":{autocomplete:`disabled`},options:c.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),L(`div`,ON,[L(`div`,kN,[R(A(Xw),{onClick:d,disabled:a.value.length==0},{default:M(()=>[A(t).isLoading?(F(),I(`span`,jN,` Подождите... `)):(F(),I(`span`,AN,` Прислать новый пароль `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1})]),_:1})]),_:1})]))}}),[[`__scopeId`,`data-v-c1fd645b`]]),NN=P({__name:`LoginView`,setup(e){return(e,t)=>(F(),Ca(MN))}}),PN={class:`center-block-custom content-block`},FN=P({__name:`OfficePage`,setup(e){let t=oN(),n=sN(),r=k([]);async function i(){r.value=[];let e=await n.GetPermissions({});r.value=e.permissions}return i(),(e,n)=>(F(),I(pa,null,[L(`div`,PN,[L(`p`,null,`Доброго времени суток, `+Ce(A(t).username)+`.`,1)]),R(mN,{"add-logout":!0,active:`office`})],64))}}),IN=P({__name:`OfficeView`,setup(e){return(e,t)=>(F(),Ca(FN))}}),LN={};function RN(e,t){return`Соглашением о персональных данных`}var zN=pN(LN,[[`render`,RN]]),BN={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},VN=P({name:`Settings`,render:function(e,t){return F(),I(`svg`,BN,t[0]||=[L(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),L(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}}),HN={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},UN=P({name:`Key24Regular`,render:function(e,t){return F(),I(`svg`,HN,t[0]||=[L(`g`,{fill:`none`},[L(`path`,{d:`M18.25 7a1.25 1.25 0 1 1-2.5 0a1.25 1.25 0 0 1 2.5 0zM15.5 2.05A6.554 6.554 0 0 0 8.95 8.6c0 .387.05.76.11 1.104a.275.275 0 0 1-.07.244l-6.235 6.236a2.75 2.75 0 0 0-.806 1.944V20.3c0 .966.784 1.75 1.75 1.75h2.5a1.75 1.75 0 0 0 1.75-1.75v-1.25H9.7c.69 0 1.25-.56 1.25-1.25v-1.75h1.75a1.25 1.25 0 0 0 1.25-1.204c.496.128 1.02.204 1.55.204a6.554 6.554 0 0 0 6.55-6.55c0-3.631-2.953-6.45-6.55-6.45zM10.45 8.6a5.054 5.054 0 0 1 5.05-5.05c2.802 0 5.05 2.181 5.05 4.95a5.054 5.054 0 0 1-5.05 5.05c-.68 0-1.38-.171-2.005-.44a.75.75 0 0 0-1.046.69v.75H10.7c-.69 0-1.25.56-1.25 1.25v1.75H7.7c-.69 0-1.25.56-1.25 1.25v1.5a.25.25 0 0 1-.25.25H3.7a.25.25 0 0 1-.25-.25v-2.172c0-.331.132-.65.366-.884l6.236-6.235a1.774 1.774 0 0 0 .486-1.564a4.917 4.917 0 0 1-.088-.845z`,fill:`currentColor`})],-1)])}}),WN={key:1,class:`place-block`},GN={class:`message-header`},KN={class:`message-content`},qN={key:0},JN={class:`message-image-border`},YN=[`src`],XN={class:`key-block`},ZN={key:0,class:`hr`},QN={class:`gray-block`},$N={key:0},eP={class:`key-block`},tP={key:3,class:`place-block`},nP=[`src`],rP={style:{display:`flex`,"align-items":`center`,width:`100%`}},iP={style:{display:`flex`,"flex-direction":`column`}},aP={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},oP={class:`door-add-block`},sP={class:`door-field`},cP={style:{display:`flex`,"align-items":`center`,width:`100%`}},lP={style:{display:`flex`,"align-items":`center`,width:`100%`}},uP={class:`slot-block`},dP=pN(P({__name:`PlaceBlock`,props:{newPlaceCode:{type:String},newPlaceName:{type:String},newPlaceText:{type:String},place:{type:Object},mode:{type:String,required:!0}},emits:[`update:newPlaceCode`,`update:newPlaceName`,`update:newPlaceText`,`update:mode`],setup(e,{emit:t}){let n=e,r=t,i=e=>{r(`update:newPlaceCode`,e)},a=e=>{r(`update:newPlaceName`,e)},o=e=>{r(`update:newPlaceText`,e)},s=e=>{r(`update:mode`,e)};function c(){return{name:void 0,image:void 0}}function l(){return{code:void 0,name:void 0,keys:void 0}}function u(){return{name:void 0}}return(t,r)=>(F(),I(pa,null,[e.mode==`mini-add`?(F(),I(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:r[0]||=e=>s(`add`)},[...r[12]||=[L(`p`,{class:`place-image-plus`},`+`,-1)]])):ja(``,!0),e.mode==`add`?(F(),I(`div`,WN,[R(A(_D),{vertical:``},{default:M(()=>[R(A(hw),null,{default:M(()=>[R(A(pw),{style:{width:`20%`},value:e.newPlaceCode,"onUpdate:value":i,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),R(A(pw),{style:{width:`80%`},value:e.newPlaceName,"onUpdate:value":a,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),R(A(pw),{value:e.newPlaceText,"onUpdate:value":o,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),Qr(t.$slots,`default`,{},void 0,!0)]),_:3})])):ja(``,!0),e.mode==`show-editor`?(F(),I(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:r[1]||=e=>s(`edit`)},[L(`div`,GN,Ce(n.place.code)+`: `+Ce(n.place.name),1),r[13]||=L(`hr`,{class:`hr`},null,-1),L(`div`,KN,[n.place.image?(F(),I(`div`,qN,[L(`div`,JN,[L(`img`,{src:n.place.image,class:`message-image`},null,8,YN)])])):ja(``,!0),z(` `+Ce(n.place.text),1)]),(F(!0),I(pa,null,Zr(n.place.doors,e=>(F(),I(`div`,{key:e.code,class:`door-block`},[z(Ce(e.name)+` `,1),(F(!0),I(pa,null,Zr(e.keys,e=>(F(),I(`span`,XN,[R(A(tN),{class:`lock-icon`},{default:M(()=>[R(A(vM))]),_:1}),z(` `+Ce(e.name),1)]))),256))]))),128)),n.place.applications.length?(F(),I(`hr`,ZN)):ja(``,!0),(F(!0),I(pa,null,Zr(n.place.applications,e=>(F(),I(`div`,{class:`message-footer application-block`,key:e.name},` Приложение: `+Ce(e.name),1))),128)),L(`p`,QN,[e.place.hidden?(F(),I(`span`,$N,` Скрытая точка `)):ja(``,!0),(F(!0),I(pa,null,Zr(e.place.keys,e=>(F(),I(`span`,eP,[R(A(tN),{class:`lock-icon`},{default:M(()=>[R(A(UN))]),_:1}),z(` `+Ce(e.name),1)]))),256))])])):ja(``,!0),e.mode==`edit`?(F(),I(`div`,tP,[R(A(_D),{vertical:``},{default:M(()=>[R(A(hw),null,{default:M(()=>[R(A(pw),{style:{width:`20%`},value:n.place.code,"onUpdate:value":r[2]||=e=>n.place.code=e,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),R(A(pw),{style:{width:`80%`},value:n.place.name,"onUpdate:value":r[3]||=e=>n.place.name=e,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),R(A(pw),{value:n.place.text,"onUpdate:value":r[4]||=e=>n.place.text=e,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),r[25]||=L(`p`,{class:`settings-header`},`Картинка`,-1),L(`div`,null,[R(A(_D),null,{default:M(()=>[R(A(_D),{vertical:``},{default:M(()=>[L(`img`,{src:n.place.image,class:`message-edit-image`},null,8,nP),R(A(Xw),{onClick:r[5]||=e=>(n.place.image=``,n.place.fileList=null)},{default:M(()=>[...r[14]||=[z(`Убрать картинку`,-1)]]),_:1})]),_:1}),R(A(_D),{vertical:``},{default:M(()=>[R(A(pw),{value:n.place.image,"onUpdate:value":r[6]||=e=>n.place.image=e,type:`text`,placeholder:`Не задано`,disabled:``},null,8,[`value`]),R(A(mA),{"directory-dnd":``,max:1,"file-list":n.place.fileList,"onUpdate:fileList":r[7]||=e=>n.place.fileList=e},{default:M(()=>[R(A(zk),null,{default:M(()=>[R(A(Ik),{style:{"font-size":`16px`}},{default:M(()=>[...r[15]||=[z(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1})]),r[26]||=L(`p`,{class:`settings-header`},`Видимость точки`,-1),R(A(Ck),{value:n.place.hidden,"onUpdate:value":r[8]||=e=>n.place.hidden=e},{checked:M(()=>[...r[16]||=[z(` Скрытая точка `,-1)]]),unchecked:M(()=>[...r[17]||=[z(` Обычная точка `,-1)]]),_:1},8,[`value`]),r[27]||=z(` Улики `,-1),R(A(uD),{value:n.place.applications,"onUpdate:value":r[9]||=e=>n.place.applications=e,"on-create":c},{"create-button-default":M(()=>[...r[18]||=[z(` Добавить улику `,-1)]]),default:M(({value:e})=>[L(`div`,rP,[R(A(pw),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),r[28]||=z(` Действия `,-1),R(A(uD),{value:n.place.doors,"onUpdate:value":r[10]||=e=>n.place.doors=e,"on-create":l},{"create-button-default":M(()=>[...r[19]||=[z(` Добавить действие `,-1)]]),action:M(({index:e,create:t,remove:n})=>[L(`div`,iP,[R(A(Xw),{onClick:()=>t(e),class:`plus-minus-buttons`},{default:M(()=>[...r[20]||=[z(`+`,-1)]]),_:1},8,[`onClick`]),R(A(Xw),{disabled:``,onClick:()=>n(e),class:`plus-minus-buttons`},{default:M(()=>[...r[21]||=[z(`-`,-1)]]),_:1},8,[`onClick`])])]),default:M(({value:e})=>[L(`div`,aP,[L(`div`,oP,[R(A(hw),null,{default:M(()=>[R(A(pw),{style:{width:`30%`},value:e.code,"onUpdate:value":t=>e.code=t,type:`text`,placeholder:`Код`},null,8,[`value`,`onUpdate:value`]),R(A(pw),{style:{width:`70%`},value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])]),_:2},1024),r[23]||=L(`p`,{class:`need-keys-text`},`Требуемые ключи`,-1),L(`div`,sP,[R(A(uD),{value:e.keys,"onUpdate:value":t=>e.keys=t,"on-create":u},{"create-button-default":M(()=>[...r[22]||=[z(` Добавить ключ `,-1)]]),default:M(({value:e})=>[L(`div`,cP,[R(A(pw),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`,`onUpdate:value`])])])])]),_:1},8,[`value`]),r[29]||=z(` Получаемые ключи `,-1),R(A(uD),{value:n.place.keys,"onUpdate:value":r[11]||=e=>n.place.keys=e,"on-create":u},{"create-button-default":M(()=>[...r[24]||=[z(` Добавить ключ `,-1)]]),default:M(({value:e})=>[L(`div`,lP,[R(A(pw),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),L(`div`,uP,[Qr(t.$slots,`default`,{},void 0,!0)])]),_:3})])):ja(``,!0)],64))}}),[[`__scopeId`,`data-v-8927f3b5`]]),fP={class:`center-block-custom-big`},pP={class:`places-container`},mP={class:`settings-block`},hP={key:0},gP={key:1},_P=pN(P({__name:`ScenariosEditorPage`,setup(e){let t=sN(),n=NA().params.id,r=k(!1),i=k(``),a=k(``),o=qE(),s=k([]),c=k({id:void 0,name:void 0,story:void 0,author:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0});async function l(e){let n=await t.GetScenario({id:e});if(n.error!=``){o.error(n.error);return}c.value=n.scenario,c.value.story?.places?.forEach(e=>{e.oldCode=e.code,e.mode=`show-editor`})}l(Number(n));async function u(e){let n=await t.DeleteScenario({id:e});if(n.error!=``){o.error(n.error);return}FP.push(`/scenarios`)}async function d(e){let a=await t.PublicScenario({id:e});if(a.error!=``){o.error(a.error);return}await l(Number(n)),i.value=``,r.value=!1}async function f(e){let a=await t.DraftScenario({id:e});if(a.error!=``){o.error(a.error);return}await l(Number(n)),i.value=``,r.value=!1}async function p(e,n){if(!e)return``;let r=await e.arrayBuffer(),i=new Uint8Array(r),a=await t.UploadFile({filename:n,data:h(i)});return a.error==``?a.filename||``:(o.error(a.error),``)}async function m(){let e=``;if(s.value&&s.value.length>0){let t=s.value[0].file||null;if(t==null||(e=await p(t,`scenarios_`+c.value.id+`_`+t.name),e===``))return}let i=await t.UpdateScenario({id:c.value.id,name:c.value.name,description:c.value.description,image:e});if(i.error!=``){o.error(i.error);return}await l(Number(n)),r.value=!1}function h(e){let t=String.fromCharCode(...e);return btoa(t)}let g=k(``),_=k(``),v=k(``),y=k(`mini-add`);async function b(){let e=await t.AddScenarioPlace({id:c.value.id,place:{code:g.value,name:_.value,text:v.value,image:void 0,hidden:void 0,applications:void 0,doors:void 0,keys:void 0}});if(e.error!=``){o.error(e.error);return}await l(Number(n)),g.value=``,_.value=``,v.value=``,y.value=`add`}async function x(){g.value=``,_.value=``,v.value=``,y.value=`mini-add`}async function S(e,n){for(let r of n.doors||[])if(e.story?.places?.find(e=>e.code==r.code)==null){let n=await t.AddScenarioPlace({id:e.id,place:{code:r.code,name:r.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}});if(n.error!=``){o.error(n.error);return}}}async function C(e){await l(Number(n)),e.mode=`show-editor`}async function w(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await p(t,`scenarios_`+c.value.id+`_place_`+e.code+`_`+t.name);if(n===``)return;e.image=n}await S(c.value,e);let r=await t.UpdateScenarioPlace({id:c.value.id,code:e.oldCode,place:e});if(r.error!=``){o.error(r.error);return}await l(Number(n)),e.mode=`show-editor`}async function T(e){let r=await t.DeleteScenarioPlace({id:c.value.id,code:e.oldCode});if(r.error!=``){o.error(r.error);return}await l(Number(n))}return(e,t)=>(F(),I(pa,null,[L(`div`,fP,[L(`div`,pP,[c.value.status==`public`?(F(),Ca(A(YC),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:M(()=>[...t[19]||=[z(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):ja(``,!0),L(`div`,mP,[z(` Точек: `+Ce(c.value.story?.places?.length)+` `,1),R(A(Xw),{quaternary:``,onClick:t[0]||=e=>r.value=!0,class:`settings-button`},{default:M(()=>[R(A(tN),{class:`settings-icon`},{default:M(()=>[R(A(VN))]),_:1}),t[20]||=z(` Настройки `,-1)]),_:1})]),R(dP,{mode:y.value,"onUpdate:mode":t[3]||=e=>y.value=e,newPlaceCode:g.value,"onUpdate:newPlaceCode":t[4]||=e=>g.value=e,newPlaceName:_.value,"onUpdate:newPlaceName":t[5]||=e=>_.value=e,newPlaceText:v.value,"onUpdate:newPlaceText":t[6]||=e=>v.value=e},{default:M(()=>[R(A(wD),{justify:`end`},{default:M(()=>[R(A(Xw),{onClick:t[1]||=e=>x()},{default:M(()=>[...t[21]||=[z(`Отмена`,-1)]]),_:1}),R(A(Xw),{onClick:t[2]||=e=>b(),disabled:!g.value},{default:M(()=>[...t[22]||=[z(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(F(!0),I(pa,null,Zr(c.value.story?.places,e=>(F(),Ca(dP,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.code},{default:M(()=>[R(A(wD),{justify:`end`},{default:M(()=>[R(A(Xw),{onClick:t=>T(e),type:`error`,ghost:``},{default:M(()=>[...t[23]||=[z(`Удалить`,-1)]]),_:1},8,[`onClick`]),R(A(Xw),{onClick:t=>C(e)},{default:M(()=>[...t[24]||=[z(`Отмена`,-1)]]),_:1},8,[`onClick`]),R(A(Xw),{onClick:t=>w(e)},{default:M(()=>[...t[25]||=[z(`Сохранить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`]))),128))])]),R(A(ME),{show:r.value,"onUpdate:show":t[18]||=e=>r.value=e},{default:M(()=>[R(A(mT),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":M(()=>[R(A(Xw),{onClick:t[7]||=e=>r.value=!1},{default:M(()=>[...t[26]||=[z(` x `,-1)]]),_:1})]),footer:M(()=>[...t[42]||=[]]),default:M(()=>[R(A(_D),{vertical:``},{default:M(()=>[t[36]||=L(`p`,null,`Название`,-1),R(A(pw),{value:c.value.name,"onUpdate:value":t[8]||=e=>c.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),t[37]||=L(`p`,{class:`settings-header`},`Описание`,-1),R(A(pw),{value:c.value.description,"onUpdate:value":t[9]||=e=>c.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),t[38]||=L(`p`,{class:`settings-header`},`Картинка`,-1),R(A(pw),{value:c.value.image,"onUpdate:value":t[10]||=e=>c.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),R(A(mA),{"directory-dnd":``,max:1,"file-list":s.value,"onUpdate:fileList":t[11]||=e=>s.value=e},{default:M(()=>[R(A(zk),null,{default:M(()=>[R(A(Ik),{style:{"font-size":`16px`}},{default:M(()=>[...t[27]||=[z(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),R(A(Xw),{onClick:t[12]||=e=>m(),ghost:``},{default:M(()=>[...t[28]||=[z(` Сохранить изменения `,-1)]]),_:1}),t[39]||=L(`hr`,{class:`settings-hr`},null,-1),t[40]||=L(`p`,null,`Публикация`,-1),L(`p`,null,[t[29]||=z(`Статус: `,-1),c.value.status==`public`?(F(),I(`span`,hP,`опубликовано`)):ja(``,!0),c.value.status==`draft`?(F(),I(`span`,gP,`в разработке`)):ja(``,!0)]),L(`p`,null,[t[30]||=z(` Введите название сценария `,-1),R(A(Ik),{class:`name-text`,strong:``},{default:M(()=>[z(Ce(c.value.name),1)]),_:1})]),R(A(pw),{value:i.value,"onUpdate:value":t[13]||=e=>i.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),c.value.status==`public`?ja(``,!0):(F(),Ca(A(Xw),{key:0,onClick:t[14]||=e=>d(c.value.id),ghost:``,disabled:i.value!=c.value.name},{default:M(()=>[...t[31]||=[z(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),c.value.status==`draft`?ja(``,!0):(F(),Ca(A(Xw),{key:1,onClick:t[15]||=e=>f(c.value.id),ghost:``,disabled:i.value!=c.value.name},{default:M(()=>[...t[32]||=[z(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),t[41]||=L(`hr`,{class:`settings-hr`},null,-1),L(`p`,null,[t[33]||=z(` Введите название сценария `,-1),R(A(Ik),{class:`name-text`,strong:``},{default:M(()=>[z(Ce(c.value.name),1)]),_:1}),t[34]||=z(` чтобы удалить его `,-1)]),R(A(pw),{value:a.value,"onUpdate:value":t[16]||=e=>a.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),R(A(Xw),{onClick:t[17]||=e=>u(c.value.id),type:`error`,ghost:``,disabled:a.value!=c.value.name},{default:M(()=>[...t[35]||=[z(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),R(mN,{"add-logout":!0,active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-2b6fbd31`]]),vP=P({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(F(),Ca(_P))}}),yP={class:`center-block-custom-big content-block`},bP={class:`scenarios-container`},xP=[`onClick`],SP={class:`scenario-title`},CP=pN(P({__name:`ScenariosPage`,setup(e){let t=sN(),n=k([]),r=MA(),i=qE(),a=k(!1),o=k(``);async function s(){n.value=[];let e=await t.GetMyScenarios({});n.value=e.scenarios}async function c(e){let n=await t.AddScenario({name:e});if(n.error!=``){i.error(n.error);return}await l(n.id)}async function l(e){r.push(`/scenarios/`+e+`/editor`)}return s(),(e,t)=>(F(),I(pa,null,[L(`div`,yP,[L(`div`,bP,[L(`div`,{class:`scenario-block`,onClick:t[0]||=e=>a.value=!0},[...t[5]||=[L(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),L(`p`,{class:`scenario-title`},`Создать новый сценарий`,-1)]]),(F(!0),I(pa,null,Zr(n.value,e=>(F(),I(`div`,{class:`scenario-block`,onClick:t=>l(e.id),key:e.id},[L(`div`,{class:`scenario-image-block scenario-image`,style:de({backgroundImage:`url(${e.image})`})},null,4),L(`p`,SP,Ce(e.name),1)],8,xP))),128))])]),R(A(ME),{show:a.value,"onUpdate:show":t[4]||=e=>a.value=e},{default:M(()=>[R(A(mT),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":M(()=>[R(A(Xw),{onClick:t[1]||=e=>a.value=!1},{default:M(()=>[...t[6]||=[z(` x `,-1)]]),_:1})]),footer:M(()=>[R(A(Xw),{onClick:t[3]||=e=>c(o.value),disabled:o.value.length==0},{default:M(()=>[...t[7]||=[z(` Создать `,-1)]]),_:1},8,[`disabled`])]),default:M(()=>[R(A(pw),{value:o.value,"onUpdate:value":t[2]||=e=>o.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),R(mN,{"add-logout":!0,active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-4e9444bd`]]),wP=P({__name:`ScenariosView`,setup(e){return(e,t)=>(F(),Ca(CP))}}),TP={};function EP(e,t){return`Пользовательское соглашение`}var DP=pN(TP,[[`render`,EP]]),OP={class:`center-block-custom content-block`},kP={class:`users-container`},AP={class:`user-field`},jP={class:`user-field`},MP={class:`user-field`},NP=pN(P({__name:`UsersPage`,setup(e){let t=sN(),n=qE(),r=k([]);async function i(){let e=await t.GetUsers({});if(e.error!=``){n.error(e.error);return}r.value=e.users}i();async function a(e,r){let a=await t.AddUserRole({id:e,role:r});if(a.error!=``){n.error(a.error);return}await i()}async function o(e,r){let a=await t.DeleteUserRole({id:e,role:r});if(a.error!=``){n.error(a.error);return}await i()}return(e,t)=>(F(),I(pa,null,[L(`div`,OP,[L(`div`,kP,[(F(!0),I(pa,null,Zr(r.value,e=>(F(),I(`div`,{key:e.id,class:`user-block`},[L(`div`,AP,` Позывной: `+Ce(e.username),1),L(`div`,jP,` Почта: `+Ce(e.email),1),L(`div`,MP,[R(A(_D),null,{default:M(()=>[t[0]||=z(` Роли: `,-1),(F(!0),I(pa,null,Zr(e.roles,e=>(F(),Ca(A(MC),{bordered:!1,key:e},{default:M(()=>[z(Ce(e),1)]),_:2},1024))),128))]),_:2},1024)]),R(A(wD),{justify:`end`,class:`roles-buttons-block`},{default:M(()=>[e.roles?.includes(`author`)?(F(),Ca(A(Xw),{key:1,onClick:t=>o(e.id,`author`)},{default:M(()=>[...t[2]||=[z(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(F(),Ca(A(Xw),{key:0,onClick:t=>a(e.id,`author`)},{default:M(()=>[...t[1]||=[z(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),e.roles?.includes(`organizer`)?(F(),Ca(A(Xw),{key:3,onClick:t=>o(e.id,`organizer`)},{default:M(()=>[...t[4]||=[z(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(F(),Ca(A(Xw),{key:2,onClick:t=>a(e.id,`organizer`)},{default:M(()=>[...t[3]||=[z(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),R(mN,{"add-logout":!0,active:`users`})],64))}}),[[`__scopeId`,`data-v-28a0d510`]]),PP=P({__name:`UsersView`,setup(e){return(e,t)=>(F(),Ca(NP))}}),FP=hM({history:Lj(`/`),routes:[{path:`/`,name:`home`,component:_N},{path:`/login`,name:`login`,component:NN},{path:`/office`,name:`office`,component:IN},{path:`/user-agreement`,name:`user-agreement`,component:DP},{path:`/privacy-policy`,name:`privacy-policy`,component:zN},{path:`/games`,name:`games`,component:gN},{path:`/scenarios`,name:`scenarios`,component:wP},{path:`/scenarios/:id/editor`,name:`ScenariosEditorView`,component:vP},{path:`/users`,name:`users`,component:PP}]}),IP=Ts(gM);IP.use(Ks()),IP.use(FP),IP.mount(`#app`); \ No newline at end of file diff --git a/dist/assets/index-RcOLieKE.css b/dist/assets/index-DwS7oaRt.css similarity index 50% rename from dist/assets/index-RcOLieKE.css rename to dist/assets/index-DwS7oaRt.css index 58822e1..4215c60 100644 --- a/dist/assets/index-RcOLieKE.css +++ b/dist/assets/index-DwS7oaRt.css @@ -1 +1 @@ -:root{--vt-c-white:#fff;--vt-c-white-soft:#f8f8f8;--vt-c-white-mute:#f2f2f2;--vt-c-black:#181818;--vt-c-black-soft:#222;--vt-c-black-mute:#282828;--vt-c-indigo:#2c3e50;--vt-c-divider-light-1:#3c3c3c4a;--vt-c-divider-light-2:#3c3c3c1f;--vt-c-divider-dark-1:#545454a6;--vt-c-divider-dark-2:#5454547a;--vt-c-text-light-1:var(--vt-c-indigo);--vt-c-text-light-2:#3c3c3ca8;--vt-c-text-dark-1:var(--vt-c-white);--vt-c-text-dark-2:#ebebeba3;--main-color:#22323c;--second-color:burlywood;--main-back-color:#f0f0f0;--main-back-item-color:#fefefe;--color-background:var(--vt-c-white);--color-background-soft:var(--vt-c-white-soft);--color-background-mute:var(--vt-c-white-mute);--color-border:var(--vt-c-divider-light-2);--color-border-hover:var(--vt-c-divider-light-1);--color-heading:var(--vt-c-text-light-1);--color-text:var(--vt-c-text-light-1);--section-gap:160px}@media (prefers-color-scheme:dark){:root{--color-background:var(--vt-c-black);--color-background-soft:var(--vt-c-black-soft);--color-background-mute:var(--vt-c-black-mute);--color-border:var(--vt-c-divider-dark-2);--color-border-hover:var(--vt-c-divider-dark-1);--color-heading:var(--vt-c-text-dark-1);--color-text:var(--vt-c-text-dark-2)}}*,:before,:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:#eee;background:var(--color-background);text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scrollbar-width:none;background-color:#111;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;line-height:1.6;transition:color .5s,background-color .5s;overflow:hidden}@font-face{font-family:font_old_typer;src:url(/assets/a_OldTyper-BsgRTrmO.ttf)}.center-message{text-align:center;justify-content:center;align-items:center;height:calc(100dvh - 100px);display:flex}.content-block{margin-top:70px;padding:20px}.height80{height:80vh}@media (width>=1024px){.center-block-custom{width:700px;margin:70px auto 0}.center-block-custom-big{width:1200px;margin:70px auto 0}.center-middle-block-custom{place-items:center;display:grid}.content-block{margin-top:70px;padding:20px 0}}.menu-block[data-v-39cfef67]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-39cfef67]{cursor:pointer;margin-left:10px;padding:5px;font-size:1.1em;display:inline-block}.menu-item-block[data-v-39cfef67]:hover{color:#63e2b7;opacity:.8}.right[data-v-39cfef67]{margin-left:auto}.active[data-v-39cfef67]{color:#63e2b7}@media (width>=1024px){.burger-button[data-v-39cfef67]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-39cfef67]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block div[data-v-39cfef67]{padding:15px 5px}.menu-buttons-block-active[data-v-39cfef67]{position:relative;top:-1000px}.burger-icon[data-v-39cfef67]{position:relative;top:5px}}.font-text{font-family:font_old_typer}.content-text{float:right;position:relative;top:100px;right:0}@media (width>=1024px){.font-text{position:relative;left:-50px}.content-text{position:relative;top:100px;right:-50px}}.sign-card[data-v-c1fd645b]{background-color:#1d1d1d}.form-label[data-v-c1fd645b]{margin-top:10px}.form-button-wrapper[data-v-c1fd645b]{justify-content:center;display:flex}.docs-link[data-v-c1fd645b]{color:#45aa89}.docs-link[data-v-c1fd645b]:hover{color:#63e2b7}@media (width>=1024px){.sign-card[data-v-c1fd645b]{width:380px}}.hr[data-v-19e95c2c]{border:1px dashed #eee;margin:10px 0}.place-block-hover[data-v-19e95c2c],.place-block[data-v-19e95c2c]{border:1px solid #444;border-radius:10px;margin:10px 0;padding:20px}.place-block-hover[data-v-19e95c2c]:hover{color:#63e2b7}.place-image-plus[data-v-19e95c2c]{justify-content:center;align-items:center;font-size:30px;display:flex}.show-editor-block[data-v-19e95c2c]{cursor:pointer}.message-content[data-v-19e95c2c]{white-space:pre-wrap;font-weight:500}.gray-block[data-v-19e95c2c]{color:#777;margin-top:5px}.application-block[data-v-19e95c2c]{color:#deb887;margin-right:5px}.door-block[data-v-19e95c2c]{color:#eee;background-color:#222;border-radius:5px;margin:10px 5px 10px 0;padding:5px 10px;display:inline-block}.door-add-block[data-v-19e95c2c]{color:#eee;background-color:#222;border-radius:5px;padding:10px}.key-block[data-v-19e95c2c]{color:gold;margin-left:10px}.lock-icon[data-v-19e95c2c]{position:relative;top:2px}.door-field[data-v-19e95c2c]{margin-top:10px}.need-keys-text[data-v-19e95c2c]{color:gold;margin:15px 0 0;padding:0}.slot-block[data-v-19e95c2c]{margin-top:10px}.plus-minus-buttons[data-v-19e95c2c]{text-align:center;color:#eee;border:1px solid #444;border-radius:40px;margin:0 0 10px 5px;padding:0 13px;font-size:25px}.plus-minus-buttons[data-v-19e95c2c]:hover{cursor:pointer;color:#63e2b7}.message-image-border[data-v-19e95c2c]{float:left;background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;width:40%;max-width:200px;margin-right:15px;padding:7px;transform:rotate(-3deg);box-shadow:0 3px 15px #626262}.message-image[data-v-19e95c2c]{width:100%}.message-edit-image[data-v-19e95c2c]{width:135px;height:135px}.message-header[data-v-19e95c2c]{padding-right:50px;font-size:20px}.message-footer[data-v-19e95c2c]{color:var(--second-color);padding-right:50px;font-weight:400;position:relative}.settings-block[data-v-810fc02a]{height:40px}.settings-button[data-v-810fc02a]{float:right}.settings-icon[data-v-810fc02a]{width:20px}.name-text[data-v-810fc02a]{background-color:#ffffff1a;border-radius:3px;padding:3px}.settings-header[data-v-810fc02a]{margin-top:20px}.settings-hr[data-v-810fc02a]{margin:20px 0}.places-container[data-v-810fc02a]{flex-flow:column;height:calc(100vh - 150px);margin-top:70px;padding:20px;display:flex;overflow-y:auto}@media (width>=1024px){.places-container[data-v-810fc02a]{height:calc(100vh - 70px);padding:20px 250px}}.scenarios-container[data-v-b389c9aa]{flex-flow:wrap;justify-content:center;height:calc(100vh - 150px);padding:0;display:flex;overflow-y:auto}.scenario-block[data-v-b389c9aa]{cursor:pointer;width:160px;margin:10px}.scenario-block[data-v-b389c9aa]:hover{color:#63e2b7}.scenario-image-block[data-v-b389c9aa]{border-radius:10px;height:160px}.scenario-image-block[data-v-b389c9aa]:hover{color:#63e2b7;border:2px solid #63e2b7}.scenario-image-plus[data-v-b389c9aa]{background-color:#333;justify-content:center;align-items:center;font-size:120px;display:flex}.scenario-image[data-v-b389c9aa]{background-position:50%;background-size:cover}.scenario-title[data-v-b389c9aa]{padding:5px 0}@media (width>=1024px){.scenarios-container[data-v-b389c9aa]{height:calc(100vh - 70px)}.scenario-block[data-v-b389c9aa]{width:250px}.scenario-image-block[data-v-b389c9aa]{border-radius:10px;height:250px}}.users-container[data-v-475b5dbd]{padding-bottom:20px}.user-block[data-v-475b5dbd]{border:1px solid #444;border-radius:10px;margin:0 0 20px;padding:20px}.user-field[data-v-475b5dbd]{margin:10px}.roles-buttons-block[data-v-475b5dbd]{margin-top:20px} +:root{--vt-c-white:#fff;--vt-c-white-soft:#f8f8f8;--vt-c-white-mute:#f2f2f2;--vt-c-black:#181818;--vt-c-black-soft:#222;--vt-c-black-mute:#282828;--vt-c-indigo:#2c3e50;--vt-c-divider-light-1:#3c3c3c4a;--vt-c-divider-light-2:#3c3c3c1f;--vt-c-divider-dark-1:#545454a6;--vt-c-divider-dark-2:#5454547a;--vt-c-text-light-1:var(--vt-c-indigo);--vt-c-text-light-2:#3c3c3ca8;--vt-c-text-dark-1:var(--vt-c-white);--vt-c-text-dark-2:#ebebeba3;--main-color:#22323c;--second-color:burlywood;--main-back-color:#f0f0f0;--main-back-item-color:#fefefe;--color-background:var(--vt-c-white);--color-background-soft:var(--vt-c-white-soft);--color-background-mute:var(--vt-c-white-mute);--color-border:var(--vt-c-divider-light-2);--color-border-hover:var(--vt-c-divider-light-1);--color-heading:var(--vt-c-text-light-1);--color-text:var(--vt-c-text-light-1);--section-gap:160px}@media (prefers-color-scheme:dark){:root{--color-background:var(--vt-c-black);--color-background-soft:var(--vt-c-black-soft);--color-background-mute:var(--vt-c-black-mute);--color-border:var(--vt-c-divider-dark-2);--color-border-hover:var(--vt-c-divider-dark-1);--color-heading:var(--vt-c-text-dark-1);--color-text:var(--vt-c-text-dark-2)}}*,:before,:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:#eee;background:var(--color-background);text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scrollbar-width:none;background-color:#111;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;line-height:1.6;transition:color .5s,background-color .5s;overflow:hidden}@font-face{font-family:font_old_typer;src:url(/assets/a_OldTyper-BsgRTrmO.ttf)}.center-message{text-align:center;justify-content:center;align-items:center;height:calc(100dvh - 100px);display:flex}.content-block{margin-top:70px;padding:20px}.height80{height:80vh}@media (width>=1024px){.center-block-custom{width:700px;margin:70px auto 0}.center-block-custom-big{width:1200px;margin:70px auto 0}.center-middle-block-custom{place-items:center;display:grid}.content-block{margin-top:70px;padding:20px 0}}.menu-block[data-v-798f9085]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-798f9085]{cursor:pointer;margin-left:10px;padding:5px;font-size:1.1em;display:inline-block}.menu-item-block[data-v-798f9085]:hover{color:#63e2b7;opacity:.8}.right[data-v-798f9085]{margin-left:auto}.active[data-v-798f9085]{color:#63e2b7}@media (width>=1024px){.burger-button[data-v-798f9085]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-798f9085]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block div[data-v-798f9085]{padding:15px 5px}.menu-buttons-block-active[data-v-798f9085]{position:relative;top:-1000px}.burger-icon[data-v-798f9085]{position:relative;top:5px}}.font-text{font-family:font_old_typer}.content-text{float:right;position:relative;top:100px;right:0}@media (width>=1024px){.font-text{position:relative;left:-50px}.content-text{position:relative;top:100px;right:-50px}}.sign-card[data-v-c1fd645b]{background-color:#1d1d1d}.form-label[data-v-c1fd645b]{margin-top:10px}.form-button-wrapper[data-v-c1fd645b]{justify-content:center;display:flex}.docs-link[data-v-c1fd645b]{color:#45aa89}.docs-link[data-v-c1fd645b]:hover{color:#63e2b7}@media (width>=1024px){.sign-card[data-v-c1fd645b]{width:380px}}.hr[data-v-8927f3b5]{border:1px dashed #eee;margin:10px 0}.place-block-hover[data-v-8927f3b5],.place-block[data-v-8927f3b5]{border:1px solid #444;border-radius:10px;margin:10px 0;padding:20px}.place-block-hover[data-v-8927f3b5]:hover{color:#63e2b7}.place-image-plus[data-v-8927f3b5]{justify-content:center;align-items:center;font-size:30px;display:flex}.show-editor-block[data-v-8927f3b5]{cursor:pointer}.message-content[data-v-8927f3b5]{white-space:pre-wrap;font-weight:500}.gray-block[data-v-8927f3b5]{color:#777;margin-top:5px}.application-block[data-v-8927f3b5]{color:#deb887;margin-right:5px}.door-block[data-v-8927f3b5]{color:#eee;background-color:#222;border-radius:5px;margin:10px 5px 10px 0;padding:5px 10px;display:inline-block}.door-add-block[data-v-8927f3b5]{color:#eee;background-color:#222;border-radius:5px;padding:10px}.key-block[data-v-8927f3b5]{color:gold;margin-left:10px}.lock-icon[data-v-8927f3b5]{position:relative;top:2px}.door-field[data-v-8927f3b5]{margin-top:10px}.need-keys-text[data-v-8927f3b5]{color:gold;margin:15px 0 0;padding:0}.slot-block[data-v-8927f3b5]{margin-top:10px}.plus-minus-buttons[data-v-8927f3b5]{text-align:center;color:#eee;border:1px solid #444;border-radius:40px;margin:0 0 10px 5px;padding:0 13px;font-size:25px}.plus-minus-buttons[data-v-8927f3b5]:hover{cursor:pointer;color:#63e2b7}.message-image-border[data-v-8927f3b5]{float:left;background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;width:40%;max-width:200px;margin-right:15px;padding:7px;transform:rotate(-3deg);box-shadow:0 3px 15px #626262}.message-image[data-v-8927f3b5]{width:100%}.message-edit-image[data-v-8927f3b5]{width:135px;height:135px}.message-header[data-v-8927f3b5]{padding-right:50px;font-size:20px}.message-footer[data-v-8927f3b5]{color:var(--second-color);padding-right:50px;font-weight:400;position:relative}.settings-block[data-v-2b6fbd31]{height:40px}.settings-button[data-v-2b6fbd31]{float:right}.settings-icon[data-v-2b6fbd31]{width:20px}.name-text[data-v-2b6fbd31]{background-color:#ffffff1a;border-radius:3px;padding:3px}.settings-header[data-v-2b6fbd31]{margin-top:20px}.settings-hr[data-v-2b6fbd31]{margin:20px 0}.places-container[data-v-2b6fbd31]{flex-flow:column;height:calc(100vh - 150px);margin-top:70px;padding:20px;display:flex;overflow-y:auto}@media (width>=1024px){.places-container[data-v-2b6fbd31]{height:calc(100vh - 70px);padding:20px 250px}}.scenarios-container[data-v-4e9444bd]{flex-flow:wrap;justify-content:center;height:calc(100vh - 150px);padding:0;display:flex;overflow-y:auto}.scenario-block[data-v-4e9444bd]{cursor:pointer;width:160px;margin:10px}.scenario-block[data-v-4e9444bd]:hover{color:#63e2b7}.scenario-image-block[data-v-4e9444bd]{border-radius:10px;height:160px}.scenario-image-block[data-v-4e9444bd]:hover{color:#63e2b7;border:2px solid #63e2b7}.scenario-image-plus[data-v-4e9444bd]{background-color:#333;justify-content:center;align-items:center;font-size:120px;display:flex}.scenario-image[data-v-4e9444bd]{background-position:50%;background-size:cover}.scenario-title[data-v-4e9444bd]{padding:5px 0}@media (width>=1024px){.scenarios-container[data-v-4e9444bd]{height:calc(100vh - 70px)}.scenario-block[data-v-4e9444bd]{width:250px}.scenario-image-block[data-v-4e9444bd]{border-radius:10px;height:250px}}.users-container[data-v-28a0d510]{padding-bottom:20px}.user-block[data-v-28a0d510]{border:1px solid #444;border-radius:10px;margin:0 0 20px;padding:20px}.user-field[data-v-28a0d510]{margin:10px}.roles-buttons-block[data-v-28a0d510]{margin-top:20px} diff --git a/dist/index.html b/dist/index.html index 42db1c8..181376f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,8 +5,8 @@ Вечерний детектив - - + +
diff --git a/proto/main.proto b/proto/main.proto index 7bc693d..62b8b6d 100644 --- a/proto/main.proto +++ b/proto/main.proto @@ -240,6 +240,28 @@ service EveningDetectiveServer { }; } + rpc PublicScenario(PublicScenarioReq) returns (PublicScenarioRsp) { + option (google.api.http) = { + put : "/api/scenarios/{id}/public" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags : "Сценарии"; + summary: "Опубликовать сценарий"; + }; + } + + rpc DraftScenario(DraftScenarioReq) returns (DraftScenarioRsp) { + option (google.api.http) = { + put : "/api/scenarios/{id}/draft" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags : "Сценарии"; + summary: "Снять с публикации сценарий"; + }; + } + rpc DeleteScenario(DeleteScenarioReq) returns (DeleteScenarioRsp) { option (google.api.http) = { delete: "/api/scenarios/{id}" @@ -435,10 +457,11 @@ message Scenario { optional string description = 3; optional string image = 4; Story story = 5; - User author = 6; - google.protobuf.Timestamp updated_at = 7; - google.protobuf.Timestamp created_at = 8; - google.protobuf.Timestamp published_at = 9; + string status = 6; + User author = 7; + google.protobuf.Timestamp updated_at = 8; + google.protobuf.Timestamp created_at = 9; + google.protobuf.Timestamp published_at = 10; } message Story { @@ -482,6 +505,22 @@ message UpdateScenarioRsp { string error = 1; } +message PublicScenarioReq { + int32 id = 1; +} + +message PublicScenarioRsp { + string error = 1; +} + +message DraftScenarioReq { + int32 id = 1; +} + +message DraftScenarioRsp { + string error = 1; +} + message DeleteScenarioReq { int32 id = 1; } diff --git a/src/api/generated/crabs/evening_detective_server/index.ts b/src/api/generated/crabs/evening_detective_server/index.ts index 2df8771..7724e80 100644 --- a/src/api/generated/crabs/evening_detective_server/index.ts +++ b/src/api/generated/crabs/evening_detective_server/index.ts @@ -1,767 +1,763 @@ // Code generated by protoc-gen-typescript-http. DO NOT EDIT. - +/* eslint-disable camelcase */ // @ts-nocheck -export type PingReq = {} +export type PingReq = { +}; -export type PingRsp = {} +export type PingRsp = { +}; export type EchoReq = { - text: string | undefined -} + text: string | undefined; +}; export type EchoRsp = { - text: string | undefined -} + text: string | undefined; +}; export type SignupReq = { - username: string | undefined - email: string | undefined -} + username: string | undefined; + email: string | undefined; +}; export type SignupRsp = { - error: string | undefined -} + error: string | undefined; +}; export type RefreshPasswordReq = { - email: string | undefined -} + email: string | undefined; +}; export type RefreshPasswordRsp = { - error: string | undefined -} + error: string | undefined; +}; export type LoginReq = { - email: string | undefined - password: string | undefined -} + email: string | undefined; + password: string | undefined; +}; export type LoginRsp = { - error: string | undefined - accessToken: string | undefined - refreshToken: string | undefined -} + error: string | undefined; + accessToken: string | undefined; + refreshToken: string | undefined; +}; export type RefreshReq = { - refreshToken: string | undefined -} + refreshToken: string | undefined; +}; export type RefreshRsp = { - error: string | undefined - accessToken: string | undefined - refreshToken: string | undefined -} + error: string | undefined; + accessToken: string | undefined; + refreshToken: string | undefined; +}; -export type GetUsersReq = {} +export type GetUsersReq = { +}; export type GetUsersRsp = { - error: string | undefined - users: User[] | undefined -} + error: string | undefined; + users: User[] | undefined; +}; export type User = { - id: number | undefined - username: string | undefined - email: string | undefined - roles: string[] | undefined - isActive: boolean | undefined - createdAt: wellKnownTimestamp | undefined -} + id: number | undefined; + username: string | undefined; + email: string | undefined; + roles: string[] | undefined; + isActive: boolean | undefined; + createdAt: wellKnownTimestamp | undefined; +}; // Encoded using RFC 3339, where generated output will always be Z-normalized // and uses 0, 3, 6 or 9 fractional digits. // Offsets other than "Z" are also accepted. -type wellKnownTimestamp = string +type wellKnownTimestamp = string; export type GetUserByIdReq = { - id: number | undefined -} + id: number | undefined; +}; export type GetUserByIdRsp = { - error: string | undefined - user: User | undefined -} + error: string | undefined; + user: User | undefined; +}; -export type GetMeReq = {} +export type GetMeReq = { +}; export type GetMeRsp = { - error: string | undefined - user: User | undefined -} + error: string | undefined; + user: User | undefined; +}; export type AddUserRoleReq = { - id: number | undefined - role: string | undefined -} + id: number | undefined; + role: string | undefined; +}; export type AddUserRoleRsp = { - error: string | undefined -} + error: string | undefined; +}; export type DeleteUserRoleReq = { - id: number | undefined - role: string | undefined -} + id: number | undefined; + role: string | undefined; +}; export type DeleteUserRoleRsp = { - error: string | undefined -} + error: string | undefined; +}; -export type GetPermissionsReq = {} +export type GetPermissionsReq = { +}; export type GetPermissionsRsp = { - error: string | undefined - permissions: string[] | undefined -} + error: string | undefined; + permissions: string[] | undefined; +}; export type UploadFileReq = { - filename: string | undefined - data: string | undefined -} + filename: string | undefined; + data: string | undefined; +}; export type UploadFileRsp = { - error: string | undefined - filename: string | undefined -} + error: string | undefined; + filename: string | undefined; +}; export type DownloadFileReq = { - filename: string | undefined -} + filename: string | undefined; +}; export type AddScenarioReq = { - name: string | undefined -} + name: string | undefined; +}; export type AddScenarioRsp = { - error: string | undefined - id: number | undefined -} + error: string | undefined; + id: number | undefined; +}; -export type GetMyScenariosReq = {} +export type GetMyScenariosReq = { +}; export type GetMyScenariosRsp = { - error: string | undefined - scenarios: Scenario[] | undefined -} + error: string | undefined; + scenarios: Scenario[] | undefined; +}; export type Scenario = { - id: number | undefined - name: string | undefined - description?: string - image?: string - story: Story | undefined - author: User | undefined - updatedAt: wellKnownTimestamp | undefined - createdAt: wellKnownTimestamp | undefined - publishedAt: wellKnownTimestamp | undefined -} + id: number | undefined; + name: string | undefined; + description?: string; + image?: string; + story: Story | undefined; + status: string | undefined; + author: User | undefined; + updatedAt: wellKnownTimestamp | undefined; + createdAt: wellKnownTimestamp | undefined; + publishedAt: wellKnownTimestamp | undefined; +}; export type Story = { - places: Place[] | undefined -} + places: Place[] | undefined; +}; export type Place = { - code: string | undefined - name: string | undefined - text: string | undefined - image: string | undefined - hidden: boolean | undefined - applications: Application[] | undefined - doors: Door[] | undefined - keys: Key[] | undefined -} + code: string | undefined; + name: string | undefined; + text: string | undefined; + image: string | undefined; + hidden: boolean | undefined; + applications: Application[] | undefined; + doors: Door[] | undefined; + keys: Key[] | undefined; +}; export type Application = { - name: string | undefined - image: string | undefined -} + name: string | undefined; + image: string | undefined; +}; export type Door = { - code: string | undefined - name: string | undefined - keys: Key[] | undefined -} + code: string | undefined; + name: string | undefined; + keys: Key[] | undefined; +}; export type Key = { - name: string | undefined -} + name: string | undefined; +}; export type GetScenarioReq = { - id: number | undefined -} + id: number | undefined; +}; export type GetScenarioRsp = { - error: string | undefined - scenario: Scenario | undefined -} + error: string | undefined; + scenario: Scenario | undefined; +}; export type UpdateScenarioReq = { - id: number | undefined - name: string | undefined - description: string | undefined - image: string | undefined -} + id: number | undefined; + name: string | undefined; + description: string | undefined; + image: string | undefined; +}; export type UpdateScenarioRsp = { - error: string | undefined -} + error: string | undefined; +}; + +export type PublicScenarioReq = { + id: number | undefined; +}; + +export type PublicScenarioRsp = { + error: string | undefined; +}; + +export type DraftScenarioReq = { + id: number | undefined; +}; + +export type DraftScenarioRsp = { + error: string | undefined; +}; export type DeleteScenarioReq = { - id: number | undefined -} + id: number | undefined; +}; export type DeleteScenarioRsp = { - error: string | undefined -} + error: string | undefined; +}; export type AddScenarioPlaceReq = { - id: number | undefined - place: Place | undefined -} + id: number | undefined; + place: Place | undefined; +}; export type AddScenarioPlaceRsp = { - error: string | undefined -} + error: string | undefined; +}; export type UpdateScenarioPlaceReq = { - id: number | undefined - code: string | undefined - place: Place | undefined -} + id: number | undefined; + code: string | undefined; + place: Place | undefined; +}; export type UpdateScenarioPlaceRsp = { - error: string | undefined -} + error: string | undefined; +}; export type DeleteScenarioPlaceReq = { - id: number | undefined - code: string | undefined -} + id: number | undefined; + code: string | undefined; +}; export type DeleteScenarioPlaceRsp = { - error: string | undefined -} + error: string | undefined; +}; export interface EveningDetectiveServer { - Ping(request: PingReq): Promise - Echo(request: EchoReq): Promise - Signup(request: SignupReq): Promise - RefreshPassword(request: RefreshPasswordReq): Promise - Login(request: LoginReq): Promise - Refresh(request: RefreshReq): Promise - GetUsers(request: GetUsersReq): Promise - GetUserById(request: GetUserByIdReq): Promise - GetMe(request: GetMeReq): Promise - AddUserRole(request: AddUserRoleReq): Promise - DeleteUserRole(request: DeleteUserRoleReq): Promise - GetPermissions(request: GetPermissionsReq): Promise - UploadFile(request: UploadFileReq): Promise - DownloadFile(request: DownloadFileReq): Promise - AddScenario(request: AddScenarioReq): Promise - GetMyScenarios(request: GetMyScenariosReq): Promise - GetScenario(request: GetScenarioReq): Promise - UpdateScenario(request: UpdateScenarioReq): Promise - DeleteScenario(request: DeleteScenarioReq): Promise - AddScenarioPlace(request: AddScenarioPlaceReq): Promise - UpdateScenarioPlace(request: UpdateScenarioPlaceReq): Promise - DeleteScenarioPlace(request: DeleteScenarioPlaceReq): Promise + Ping(request: PingReq): Promise; + Echo(request: EchoReq): Promise; + Signup(request: SignupReq): Promise; + RefreshPassword(request: RefreshPasswordReq): Promise; + Login(request: LoginReq): Promise; + Refresh(request: RefreshReq): Promise; + GetUsers(request: GetUsersReq): Promise; + GetUserById(request: GetUserByIdReq): Promise; + GetMe(request: GetMeReq): Promise; + AddUserRole(request: AddUserRoleReq): Promise; + DeleteUserRole(request: DeleteUserRoleReq): Promise; + GetPermissions(request: GetPermissionsReq): Promise; + UploadFile(request: UploadFileReq): Promise; + DownloadFile(request: DownloadFileReq): Promise; + AddScenario(request: AddScenarioReq): Promise; + GetMyScenarios(request: GetMyScenariosReq): Promise; + GetScenario(request: GetScenarioReq): Promise; + UpdateScenario(request: UpdateScenarioReq): Promise; + PublicScenario(request: PublicScenarioReq): Promise; + DraftScenario(request: DraftScenarioReq): Promise; + DeleteScenario(request: DeleteScenarioReq): Promise; + AddScenarioPlace(request: AddScenarioPlaceReq): Promise; + UpdateScenarioPlace(request: UpdateScenarioPlaceReq): Promise; + DeleteScenarioPlace(request: DeleteScenarioPlaceReq): Promise; } type RequestType = { - path: string - method: string - body: string | null -} + path: string; + method: string; + body: string | null; +}; -type RequestHandler = ( - request: RequestType, - meta: { service: string; method: string }, -) => Promise +type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise; export function createEveningDetectiveServerClient( - handler: RequestHandler, + handler: RequestHandler ): EveningDetectiveServer { return { - Ping(request) { - const path = `api/test/ping` - const body = null - const queryParams: string[] = [] - let uri = path + Ping(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/test/ping`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'Ping', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "Ping", + }) as Promise; }, - Echo(request) { - const path = `api/test/echo` - const body = null - const queryParams: string[] = [] + Echo(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/test/echo`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; if (request.text) { queryParams.push(`text=${encodeURIComponent(request.text.toString())}`) } - let uri = path + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'Echo', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "Echo", + }) as Promise; }, - Signup(request) { - const path = `api/auth/signup` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + Signup(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/auth/signup`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'Signup', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "Signup", + }) as Promise; }, - RefreshPassword(request) { - const path = `api/auth/refresh-password` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + RefreshPassword(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/auth/refresh-password`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'RefreshPassword', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "RefreshPassword", + }) as Promise; }, - Login(request) { - const path = `api/auth/login` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + Login(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/auth/login`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'Login', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "Login", + }) as Promise; }, - Refresh(request) { - const path = `api/auth/refresh` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + Refresh(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/auth/refresh`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'Refresh', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "Refresh", + }) as Promise; }, - GetUsers(request) { - const path = `api/users` - const body = null - const queryParams: string[] = [] - let uri = path + GetUsers(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/users`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'GetUsers', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetUsers", + }) as Promise; }, - GetUserById(request) { + GetUserById(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/users/${request.id}` - const body = null - const queryParams: string[] = [] - let uri = path + const path = `api/users/${request.id}`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'GetUserById', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetUserById", + }) as Promise; }, - GetMe(request) { - const path = `api/users/me` - const body = null - const queryParams: string[] = [] - let uri = path + GetMe(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/users/me`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'GetMe', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetMe", + }) as Promise; }, - AddUserRole(request) { + AddUserRole(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/users/${request.id}/role/add` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + const path = `api/users/${request.id}/role/add`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'AddUserRole', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "AddUserRole", + }) as Promise; }, - DeleteUserRole(request) { + DeleteUserRole(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/users/${request.id}/role/delete` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + const path = `api/users/${request.id}/role/delete`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'DeleteUserRole', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "DeleteUserRole", + }) as Promise; }, - GetPermissions(request) { - const path = `api/ui/permissions` - const body = null - const queryParams: string[] = [] - let uri = path + GetPermissions(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/ui/permissions`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'GetPermissions', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetPermissions", + }) as Promise; }, - UploadFile(request) { - const path = `api/files/upload` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + UploadFile(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/files/upload`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'UploadFile', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "UploadFile", + }) as Promise; }, - DownloadFile(request) { + DownloadFile(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.filename) { - throw new Error('missing required field request.filename') + throw new Error("missing required field request.filename"); } - const path = `api/files/${request.filename}` - const body = null - const queryParams: string[] = [] - let uri = path + const path = `api/files/${request.filename}`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'DownloadFile', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "DownloadFile", + }) as Promise; }, - AddScenario(request) { - const path = `api/scenario` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + AddScenario(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/scenario`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'AddScenario', - }, - ) as Promise + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "AddScenario", + }) as Promise; }, - GetMyScenarios(request) { - const path = `api/my-scenarios` - const body = null - const queryParams: string[] = [] - let uri = path + GetMyScenarios(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + const path = `api/my-scenarios`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'GetMyScenarios', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetMyScenarios", + }) as Promise; }, - GetScenario(request) { + GetScenario(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/scenarios/${request.id}` - const body = null - const queryParams: string[] = [] - let uri = path + const path = `api/scenarios/${request.id}`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'GET', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'GetScenario', - }, - ) as Promise + return handler({ + path: uri, + method: "GET", + body, + }, { + service: "EveningDetectiveServer", + method: "GetScenario", + }) as Promise; }, - UpdateScenario(request) { + UpdateScenario(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/scenarios/${request.id}` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + const path = `api/scenarios/${request.id}`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'PUT', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'UpdateScenario', - }, - ) as Promise + return handler({ + path: uri, + method: "PUT", + body, + }, { + service: "EveningDetectiveServer", + method: "UpdateScenario", + }) as Promise; }, - DeleteScenario(request) { + PublicScenario(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/scenarios/${request.id}` - const body = null - const queryParams: string[] = [] - let uri = path + const path = `api/scenarios/${request.id}/public`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'DELETE', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'DeleteScenario', - }, - ) as Promise + return handler({ + path: uri, + method: "PUT", + body, + }, { + service: "EveningDetectiveServer", + method: "PublicScenario", + }) as Promise; }, - AddScenarioPlace(request) { + DraftScenario(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } - const path = `api/scenarios/${request.id}/places` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + const path = `api/scenarios/${request.id}/draft`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'POST', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'AddScenarioPlace', - }, - ) as Promise + return handler({ + path: uri, + method: "PUT", + body, + }, { + service: "EveningDetectiveServer", + method: "DraftScenario", + }) as Promise; }, - UpdateScenarioPlace(request) { + DeleteScenario(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); + } + const path = `api/scenarios/${request.id}`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; + if (queryParams.length > 0) { + uri += `?${queryParams.join("&")}` + } + return handler({ + path: uri, + method: "DELETE", + body, + }, { + service: "EveningDetectiveServer", + method: "DeleteScenario", + }) as Promise; + }, + AddScenarioPlace(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + if (!request.id) { + throw new Error("missing required field request.id"); + } + const path = `api/scenarios/${request.id}/places`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; + if (queryParams.length > 0) { + uri += `?${queryParams.join("&")}` + } + return handler({ + path: uri, + method: "POST", + body, + }, { + service: "EveningDetectiveServer", + method: "AddScenarioPlace", + }) as Promise; + }, + UpdateScenarioPlace(request) { // eslint-disable-line @typescript-eslint/no-unused-vars + if (!request.id) { + throw new Error("missing required field request.id"); } if (!request.code) { - throw new Error('missing required field request.code') + throw new Error("missing required field request.code"); } - const path = `api/scenarios/${request.id}/places/${request.code}` - const body = JSON.stringify(request) - const queryParams: string[] = [] - let uri = path + const path = `api/scenarios/${request.id}/places/${request.code}`; // eslint-disable-line quotes + const body = JSON.stringify(request); + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'PUT', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'UpdateScenarioPlace', - }, - ) as Promise + return handler({ + path: uri, + method: "PUT", + body, + }, { + service: "EveningDetectiveServer", + method: "UpdateScenarioPlace", + }) as Promise; }, - DeleteScenarioPlace(request) { + DeleteScenarioPlace(request) { // eslint-disable-line @typescript-eslint/no-unused-vars if (!request.id) { - throw new Error('missing required field request.id') + throw new Error("missing required field request.id"); } if (!request.code) { - throw new Error('missing required field request.code') + throw new Error("missing required field request.code"); } - const path = `api/scenarios/${request.id}/places/${request.code}` - const body = null - const queryParams: string[] = [] - let uri = path + const path = `api/scenarios/${request.id}/places/${request.code}`; // eslint-disable-line quotes + const body = null; + const queryParams: string[] = []; + let uri = path; if (queryParams.length > 0) { - uri += `?${queryParams.join('&')}` + uri += `?${queryParams.join("&")}` } - return handler( - { - path: uri, - method: 'DELETE', - body, - }, - { - service: 'EveningDetectiveServer', - method: 'DeleteScenarioPlace', - }, - ) as Promise + return handler({ + path: uri, + method: "DELETE", + body, + }, { + service: "EveningDetectiveServer", + method: "DeleteScenarioPlace", + }) as Promise; }, - } + }; } // Message that represents an arbitrary HTTP body. It should only be used for // payload formats that can't be represented as JSON, such as raw binary or @@ -795,13 +791,13 @@ export function createEveningDetectiveServerClient( // handled, all other features will continue to work unchanged. export type googleapi_HttpBody = { // The HTTP Content-Type header value specifying the content type of the body. - contentType: string | undefined + contentType: string | undefined; // The HTTP request/response body as raw binary. - data: string | undefined + data: string | undefined; // Application specific response metadata. Must be set in the first response // for streaming APIs. - extensions: wellKnownAny[] | undefined -} + extensions: wellKnownAny[] | undefined; +}; // If the Any contains a value that has a special JSON mapping, // it will be converted as follows: @@ -809,8 +805,9 @@ export type googleapi_HttpBody = { // Otherwise, the value will be converted into a JSON object, // and the "@type" field will be inserted to indicate the actual data type. interface wellKnownAny { - '@type': string - [key: string]: unknown + "@type": string; + [key: string]: unknown; } + // @@protoc_insertion_point(typescript-http-eof) diff --git a/src/assets/base.css b/src/assets/base.css index d330b6b..a092f67 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -17,11 +17,12 @@ --vt-c-text-dark-2: rgb(235 235 235 / 64%); /* Главный цвет */ - --main-color: rgba(34, 50, 60, 1); + --main-color: rgb(34 50 60 / 100%); + /* --second-color: rgb(97, 74, 22); */ --second-color: burlywood; - --main-back-color: rgba(240, 240, 240, 1); - --main-back-item-color: rgba(254, 254, 254, 1); + --main-back-color: rgb(240 240 240 / 100%); + --main-back-item-color: rgb(254 254 254 / 100%); } /* semantic color variables for this project */ diff --git a/src/components/HeaderMenu.vue b/src/components/HeaderMenu.vue index 0f282cf..d70977d 100644 --- a/src/components/HeaderMenu.vue +++ b/src/components/HeaderMenu.vue @@ -96,9 +96,7 @@ const openMenu = ref(false) left: 0; width: 100%; height: 70px; - background-color: #222; - padding: 20px; display: flex; justify-content: space-between; diff --git a/src/components/MessagePaper.vue b/src/components/MessagePaper.vue index b021e7e..ec20285 100644 --- a/src/components/MessagePaper.vue +++ b/src/components/MessagePaper.vue @@ -39,7 +39,7 @@ background-image: url("@/assets/images/paper.jpg"); background-size: cover; display: flow-root; - box-shadow: 0px 0 5px black; + box-shadow: 0 0 5px black; } .message-cloud-2, diff --git a/src/components/PlaceBlock.vue b/src/components/PlaceBlock.vue index 44bb97c..f2800f5 100644 --- a/src/components/PlaceBlock.vue +++ b/src/components/PlaceBlock.vue @@ -1,9 +1,10 @@