/*! For license information please see SecureSignInLogin.js.LICENSE.txt */ !function(t){function e(e){for(var i,n,r=e[0],s=e[1],a=0,l=[];a0}function d(t){return t&&1===t.nodeType&&toString.call(t).indexOf("Element")>-1}function p(t){return Array.isArray(t)}function h(t){return function(t){let e,i;return!1!==r(t)&&(e=t.constructor,"function"==typeof e&&(i=e.prototype,!1!==r(i)&&!1!==i.hasOwnProperty("isPrototypeOf")))}(t)&&(u(t.template)||o(t.render)||u(t.el)||d(t.el)||h(t.extends)||function(t){return Array.isArray(t)&&t.length>0}(t.mixins)&&t.mixins.some(t=>h(t)))}function f(t,e){for(e&&!n(e)&&(e=e.name);t;){if("$options"in t&&t.$options.name==e||t.name===e)return!0;if("$options"in t&&t.$options.extends)t=t.$options.extends;else{if(!("extends"in t))return!1;t=t.extends}}return!1}function m(t){return"object"==typeof t&&null!==t}function v(t){return"[object Date]"===Object.prototype.toString.apply(t)}function g(t,e){if(typeof t!=typeof e)return!1;if(v(t)||v(e))return!(!v(e)||!v(t))&&t.getTime()===e.getTime();if(m(t)&&m(e)){let i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(let n of i){if(!e.hasOwnProperty(n))return!1;if(!1===g(t[n],e[n]))return!1}return!0}return t===e}function y(){}function b(t,e){return!(!t.$slots||!t.$slots[e])||!(!t.$scopedSlots||!t.$scopedSlots[e])}function w(t,e){return Object.keys(e).reduce((e,i)=>(i.startsWith(t)&&e.push({name:i.replace(t,""),exposeName:i}),e),[])}},function(t,e,i){"use strict";e.a=function(t,e,i,n,o,r,s,a,l,c){"boolean"!=typeof s&&(l=a,a=s,s=!1);const u="function"==typeof i?i.options:i;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,o&&(u.functional=!0)),n&&(u._scopeId=n),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=d):e&&(d=s?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),d)if(u.functional){const t=u.render;u.render=function(e,i){return d.call(i),t(e,i)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return i}},function(t,e,i){"use strict";i.d(e,"a",(function(){return l})),i.d(e,"b",(function(){return p})),i.d(e,"c",(function(){return o})),i.d(e,"d",(function(){return c})),i.d(e,"e",(function(){return u})),i.d(e,"f",(function(){return n})),i.d(e,"g",(function(){return d})),i.d(e,"h",(function(){return a})),i.d(e,"i",(function(){return r})),i.d(e,"j",(function(){return s}));i(5),i(21),i(0),i(27);function n(t,e){return t.righte.left&&t.top>e.top&&t.bottom(t[e]=this[e],t),{});return{[t]:{register:this.register,unregister:this.unregister,instance:this,...i}}}}}function r(t){return{inject:{[t]:{default:n.o}}}}},function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));const n="undefined"==typeof window},function(t,e,i){var n=i(6),o=i(131),r=i(132),s=i(133),a=i(34),l=i(16),c=l("iterator"),u=l("toStringTag"),d=s.values,p=function(t,e){if(t){if(t[c]!==d)try{a(t,c,d)}catch(e){t[c]=d}if(t[u]||a(t,u,e),o[e])for(var i in s)if(t[i]!==s[i])try{a(t,i,s[i])}catch(e){t[i]=s[i]}}};for(var h in o)p(n[h]&&n[h].prototype,h);p(r,"DOMTokenList")},function(t,e,i){(function(e){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,i(68))},function(t,e,i){"use strict";i(5);function n(t,e,i){for(const o of this.$children){o.$options.name===t?o.$emit(...[e].concat(i)):n.apply(o,[t,e].concat([i]))}}function o(t,e,i,n){let o=this.$parent||this.$root;const r=t=>!n||t[n.key]===n.value;for(;o;){if(o.$options.name===t&&r(o))return void o.$emit(...[e].concat(i));o=o.$parent}}var r={methods:{dispatch(t,e,i,n){o.call(this,t,e,i,n)},broadcast(t,e,i){n.call(this,t,e,i)}}};e.a=r},function(t,e){t.exports=Vue},function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i(5);var n=i(0),o=i(17);function r({components:t=[]}={},e){return{install:function i(r,s={}){if(!i.installed){if(t=Object(n.c)(t)?t:[t])for(const e of t)r.component("".concat(o.a).concat(e.name),e);null==e||e(r,s)}}}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,i){"use strict";var n=i(1),o=(i(5),i(0)),r=i(63),s=i(7),a=i(3),l=i(8),c=i.n(l),u=i(4),d=i(27),p=i(2),h=i(14),f=i(15),m=i(26),v=i(62),g=i(18),y=i(59),b=i.n(y);let w=u.a?null:window.Ext,x=u.a?null:window.SYNO;var _={async mounted(){w&&w.EventManager&&w.EventManager.onWindowResize(this.onWindowResize,this),await this.$nextTick(),this.focus()},beforeDestroy(){w&&w.EventManager&&w.EventManager.removeResizeListener(this.onWindowResize,this)},data:()=>({active:!1}),methods:{async onWindowResize(){this.isFullsize?this.fitContainer({isFullsize:this.isFullsize}):this.maximized?this.fitContainer():this.doConstrain()},isVisible(){return!this.hidden},getTitle(){return this.$options.title},show(t,e,i){e=e||o.o,this.hidden=!1,this.toFront(),this.$once("show",()=>{e.apply(i||this)})},focus(){this.$refs.trapFocus&&this.$refs.trapFocus.focus()},toFront(){let t=this.$options.manager;t&&t.bringToFront(this)&&this.focus()},alignTo(t){},getWidth(){return this.getCurrentWidth()},getHeight(){return this.getCurrentHeight()},setPosition(t,e){this.left=t,this.top=e},getSize(){return{width:this.width,height:this.height}},getGroupWinAccessTime(t){return[this,...b()(this,"$options.modalWins",[])].reduce((e,i)=>{return Math.max(e,(n=i,(t?t(n.id):n._lastAccess)||0));var n},0)},getTopWin(){let t=this;for(;t.$options.owner;)if(t=t.$options.owner,w&&t instanceof w.Window)return t.getTopWin();return t},getMountEl(){let t=this.getTopWin();return w&&t instanceof w.Window?t.el.dom.parentElement:t._isVue&&t.$el.parentElement?t.$el.parentElement:document.querySelector("#sds-desktop")||document.querySelector("body")},setActive(t){this.active=t;let e,i=this.getTopWin();if(e=w&&i instanceof w.Window?i.taskButton:i.$options.taskButton,this.active){e&&e.setState("active");for(let t of this.$options.modalWins)t.hideForMinimize&&(delete t.hideForMinimize,t.show());x&&x.SDS&&x.SDS.StatusNotifier&&x.SDS.StatusNotifier.fireEvent("windowActivate",this)}else e&&e.setState("deactive")},afterShow(){this.$emit("show")},isModalized(){return this.modal},maximize(){return this.onMaximize()},restore(){return this.onRestore()},destroy(){this.$destroy()},close(t){return this.onClose(t)},minimize(){return this.onMinimize()},getEl(){return{dom:this.$el,getSize:this.getSize}}}};function S(t,e,i,n){let o=e-t;return i+o{}}},data:()=>({prefixCls:"v-window-resizable",isResizing:!1,top:void 0,left:void 0,startTop:void 0,startLeft:void 0,width:void 0,height:void 0,currentWidth:void 0,currentHeight:void 0,direction:void 0,startX:void 0,startY:void 0,diffX:void 0,diffY:void 0,minWidth:void 0,minHeight:void 0,maximized:void 0,constrainRect:void 0,resizeHandles:void 0}),computed:{horizontal(){if(this.direction)return-1!==this.direction.indexOf("w")?"w":-1!==this.direction.indexOf("e")?"e":void 0},vertical(){if(this.direction)return-1!==this.direction.indexOf("s")?"s":-1!==this.direction.indexOf("n")?"n":void 0},ghostStyle(){return{top:"".concat(this.top,"px"),left:"".concat(this.left,"px"),width:"".concat(this.currentWidth+this.diffX,"px"),height:"".concat(this.currentHeight+this.diffY,"px")}}},watch:{async isResizing(t){if(await this.$nextTick(),t){const t=this.$options.window.$el.parentNode||document.body;if(!t)return;t.appendChild(this.$refs.ghost)}},windowProperty:{immediate:!0,deep:!0,handler(t){this.top=+t.top,this.left=+t.left,this.width=t.width,this.height=t.height,this.minWidth=+t.minWidth,this.minHeight=+t.minHeight,this.maximized=t.maximized,this.constrainRect=t.constrainRect,this.resizeHandles=t.resizeHandles}}},mounted(){this.$options.mouseMove=this.mouseMove.bind(this),this.$options.mouseUp=this.mouseUp.bind(this),this.window.register(this)},beforeDestroy(){this.window.unregister(this)},methods:{mouseMove(t){let{pageX:e,pageY:i}=t;"e"===this.horizontal?this.diffX=S(this.startX,e,this.currentWidth,this.minWidth):"w"===this.horizontal&&(this.diffX=S(e,this.startX,this.currentWidth,this.minWidth),this.left=this.startLeft-this.diffX),"s"===this.vertical?this.diffY=S(this.startY,i,this.currentHeight,this.minHeight):"n"===this.vertical&&(this.diffY=S(i,this.startY,this.currentHeight,this.minHeight),this.top=this.startTop-this.diffY)},mouseUp(){this.isResizing=!1,this.$emit("resize-end",{top:this.top,left:this.left,width:this.currentWidth+this.diffX,height:this.currentHeight+this.diffY})},mouseDown(t,e){this.currentWidth="auto"===this.width?this.$options.window.getCurrentWidth():+this.width,this.currentHeight="auto"===this.height?this.$options.window.getCurrentHeight():+this.height,this.direction=t,this.isResizing=!0,this.startX=e.pageX,this.startY=e.pageY,this.diffX=this.diffY=0,this.startTop=this.top,this.startLeft=this.left,Object(p.j)(document,"mouseup",()=>{this.mouseUp(),Object(p.h)(document,"mousemove",this.$options.mouseMove)}),Object(p.i)(document,"mousemove",this.$options.mouseMove)}}};var $=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.maximized?t._e():i("div",{class:t.prefixCls},[t.isResizing?i("div",{ref:"ghost",class:t.prefixCls+"-ghost",style:t.ghostStyle}):t._e(),t._v(" "),["all","nw"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-nw",on:{mousedown:function(e){return t.mouseDown("nw",e)}}}):t._e(),t._v(" "),["all","ne"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-ne",on:{mousedown:function(e){return t.mouseDown("ne",e)}}}):t._e(),t._v(" "),["all","sw"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-sw",on:{mousedown:function(e){return t.mouseDown("sw",e)}}}):t._e(),t._v(" "),["all","se"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-se",on:{mousedown:function(e){return t.mouseDown("se",e)}}}):t._e(),t._v(" "),["all","n"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-n",on:{mousedown:function(e){return t.mouseDown("n",e)}}}):t._e(),t._v(" "),["all","s"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-s",on:{mousedown:function(e){return t.mouseDown("s",e)}}}):t._e(),t._v(" "),["all","w"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-w",on:{mousedown:function(e){return t.mouseDown("w",e)}}}):t._e(),t._v(" "),["all","e"].some((function(e){return t.resizeHandles.includes(e)}))?i("div",{class:"handler "+t.prefixCls+"-e",on:{mousedown:function(e){return t.mouseDown("e",e)}}}):t._e()])};$._withStripped=!0;var C=Object(n.a)({render:$,staticRenderFns:[]},void 0,O,void 0,!1,void 0,!1,void 0,void 0,void 0);function T(t,e){return e-t}const k={name:"Draggable",mixins:[Object(a.a)("window")],props:{windowProperty:{type:Object,default:()=>{}},prefixCls:{type:String,default:void 0}},data:()=>({isDragging:!1,top:void 0,left:void 0,startTop:void 0,startLeft:void 0,width:void 0,height:void 0,currentWidth:void 0,currentHeight:void 0,diffX:void 0,diffY:void 0,maximized:void 0,constrainRect:void 0}),computed:{ghostCls(){const t=["v-window-draggable"];return this.prefixCls?t.concat(this.prefixCls):t},ghostStyle(){return{top:"".concat(this.top,"px"),left:"".concat(this.left,"px"),width:"".concat(this.currentWidth,"px"),height:"".concat(this.currentHeight,"px")}}},watch:{windowProperty:{deep:!0,immediate:!0,handler(t){this.top=+t.top,this.left=+t.left,this.width=t.width,this.height=t.height,this.maximized=t.maximized,this.constrainRect=t.constrainRect}},async isDragging(t){if(this.$emit("dragging",t),await this.$nextTick(),t){const t=this.$options.window.$el.parentNode||document.body;if(!t)return;let e=this.$options.headerEl.cloneNode(!0);this.$refs.ghost.appendChild(e),t.appendChild(this.$refs.ghost)}}},async mounted(){this.$options.mouseDown=this.mouseDown.bind(this),this.$options.mouseMove=this.mouseMove.bind(this),this.$options.mouseUp=this.mouseUp.bind(this),this.window.register(this),await this.$nextTick(),this.$options.window&&this.$options.window.$refs.header&&this.$options.window.$refs.header.$el&&(this.$options.headerEl=this.$options.window.$refs.header.$el,Object(p.i)(this.$options.headerEl,"mousedown",this.$options.mouseDown))},beforeDestroy(){this.$options.headerEl&&Object(p.h)(this.$options.headerEl,"mousedown",this.$options.mouseDown),this.window.unregister(this)},methods:{mouseMove(t){let{pageX:e,pageY:i}=t;if(Math.max(Math.abs(e-this.startX),Math.abs(i-this.startY))<5/window.devicePixelRatio)return;this.isDragging||(this.isDragging=!0),this.diffX=T(this.startX,e),this.diffY=T(this.startY,i);let n=this.startTop+this.diffY,o=this.startLeft+this.diffX;n<=this.constrainRect.top&&(this.diffY=this.constrainRect.top-this.startTop,n=this.constrainRect.top),Object(p.c)(this.$refs.ghost,"top","".concat(n,"px")),Object(p.c)(this.$refs.ghost,"left","".concat(o,"px"))},mouseUp(){this.isDragging=!1,this.$emit("drag-end",{top:this.startTop+this.diffY,left:this.startLeft+this.diffX})},mouseDown(t){this.maximized||(this.currentWidth="auto"===this.width?this.$options.window.getCurrentWidth():+this.width,this.currentHeight="auto"===this.height?this.$options.window.getCurrentHeight():+this.height,this.startX=t.pageX,this.startY=t.pageY,this.startTop=this.top,this.startLeft=this.left,this.diffX=this.diffY=0,Object(p.j)(document,"mouseup",()=>{this.mouseUp(),Object(p.h)(document,"mousemove",this.$options.mouseMove)}),Object(p.i)(document,"mousemove",this.$options.mouseMove))}}};var E=function(){var t=this.$createElement,e=this._self._c||t;return this.isDragging?e("div",{ref:"ghost",class:this.ghostCls,style:this.ghostStyle}):this._e()};E._withStripped=!0;var j=Object(n.a)({render:E,staticRenderFns:[]},void 0,k,void 0,!1,void 0,!1,void 0,void 0,void 0),M=i(67),z=i(9),B=i(28);const A=["top","bottom"];const D={name:"Toast",mixins:[s.a,f.a,B.a],props:{alignment:{type:String,default:void 0,validator:t=>A.indexOf(t)>=0},align:{type:String,default:"t->t"},offset:{type:Array,default:()=>[0,18]},showClose:{type:Boolean,default:!1},delay:{type:[Number,String,Boolean],default:3e3},onClick:{type:Function,default:o.o},text:{type:String,default:""},actionBtnText:{type:String,default:""},actionBtnCls:{type:String,default:""},textCls:{type:String,default:""},onClickActionBtn:{type:Function,default:o.o},animateIn:{type:Boolean,default:!1}},data:()=>({prefix:"v-toast",left:0,top:0}),computed:{toastStyle(){return{left:this.left+"px",top:this.top+"px"}},wrapCls(){return[this.prefix,{"animate-in":this.animateIn}]},extendedActionBtnCls(){return["".concat(this.prefix,"-action-btn"),this.actionBtnCls]},extendedTextCls(){return["".concat(this.prefix,"-text"),this.textCls]}},watch:{alignment:{immediate:!0,handler(t){switch(t){case A[0]:this.align="t->t";break;case A[1]:this.align="b->b"}}}},mounted(){let t=this.delay;!1!==t&&(Object(o.d)(t)?t=3e3:Object(o.m)(t)&&(t=+t),setTimeout(()=>this.destroy(),t))},methods:{destroy(){this.$destroy(),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},doAlign(t,e={}){const i=!Object(o.d)(e.constrainMode)||e.constrainMode,n=!Object(o.d)(e.absoluteMode)||e.absoluteMode,r=this.$alignManager.getAlignToXY(this.$el,t,this.align,this.offset,i,n,this.getContainerEl());this.top=r[1],this.left=r[0]}}};var I=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapCls,style:t.toastStyle},[i("div",{class:t.extendedTextCls,on:{click:t.onClick}},[t._v("\n "+t._s(t.text)+"\n ")]),t._v(" "),t.actionBtnText?i("button",{class:t.extendedActionBtnCls,on:{click:t.onClickActionBtn}},[t._v("\n "+t._s(t.actionBtnText)+"\n ")]):t._e(),t._v(" "),t.showClose?i("div",{class:t.prefix+"-close-btn",attrs:{role:"button","aria-label":t._i18n("common","close")},on:{click:t.destroy}}):t._e()])};I._withStripped=!0;var F=Object(n.a)({render:I,staticRenderFns:[]},void 0,D,void 0,!1,void 0,!1,void 0,void 0,void 0);const W=function(t,e,i){const n="undefined"!=typeof window&&window.Vue?window.Vue:c.a;let o;e.parent&&(o=e.parent,delete e.parent);const r=n.extend(F),s=document.createElement("div");t.appendChild(s);const a=new r({parent:o,el:s,propsData:e});return a.doAlign(t,i),a};Object(z.a)({components:[F]},t=>{t.prototype.$getToastBox=W});const P=u.a?null:window.SYNO;function R(t,e){t.removeModalWindow(e),t.unmask(),e.owner=null}let L=u.a?null:window.SYNO,H=u.a?null:window.Ext;const N={name:"Window",components:{vResizable:C,vDraggable:j,vWindowHeader:M.a,vTrapFocus:r.a,vSpin:v.a,vLayout:g.a},mixins:[s.a,_,f.a,m.a,Object(a.b)("window")],props:{id:{type:String,default(){return"syno-".concat(this.uuid)}},inline:{type:Boolean,default:!1},toggleGrayOverlay:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!0},width:{type:[String,Number],default:300},height:{type:[String,Number],default:300},minWidth:{type:[String,Number],default:300},minHeight:{type:[String,Number],default:300},showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!0},showMaximize:{type:Boolean,default:!0},showFullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},beforeClose:{type:Function,default:o.o},beforeMinimize:{type:Function,default:o.o},beforeMaximize:{type:Function,default:o.o},maximizeHook:{type:Function,default:o.o},minimizeHook:{type:Function,default:o.o},restoreHook:{type:Function,default:o.o},fullscreenHook:{type:Function,default:o.o},closeHook:{type:Function,default:o.o},title:{type:String,default:void 0},resizable:{type:Boolean,default:!1},resizeHandles:{type:String,default:"all"},draggable:{type:Boolean,default:!0},helpParams:{type:[String,Object],default:void 0},alwaysOnTop:{type:[Boolean,Function],default:!1},isSkipActive:{type:[Boolean,Function],default:!1},customCls:{type:String,default:""},type:{type:String,validator:t=>["launch","component"].includes(t),default:"launch"},layoutType:{type:String,default:"none"}},data(){return{prefixCls:"v-window",closeDisabled:!1,currentTitle:void 0,initialized:!1,iconUrl:void 0,formalTitle:void 0,top:0,left:0,currentWidth:0,currentHeight:0,dragging:!1,hidden:!0,restoreProps:void 0,maximized:!1,maskLayerNums:0,maskOpacity:void 0,noShadow:!1,autoWidth:!1,autoHeight:!1,opened:!1,isMobile:!1,isStandalone:!1,isFullsize:!1,isStandaloneMainWindow:!1,lastFocusElement:u.a?null:document.activeElement,isMasking:!1,maskText:this._i18n("common","loading"),forceAlwaysOnTop:!1,containerMasked:!1}},computed:{blinkWhenTouched(){return this.maskLayerNums>0},showWindow(){return this.isComponentType||!this.hidden&&!this.dragging},maskInnerCls(){return"".concat(this.prefixCls,"-mask-inner")},maskCls(){return"".concat(this.prefixCls,"-mask")},maskStyle(){return{opacity:this.maskOpacity,backgroundColor:"#FFFFFF"}},windowCls(){return[this.prefixCls,{"active-win":this.active,"deactive-win":!this.active,"no-shadow":this.noShadow,"is-safari":d.c,"auto-height":this.autoHeight}]},headerProps(){return{showHelp:this.showHelp,showFullscreen:this.showFullscreen,showMaximize:!this.isStandaloneMainWindow&&this.showMaximize,showMinimize:!this.isStandalone&&this.showMinimize,showClose:!this.isStandaloneMainWindow&&this.showClose,draggable:this.draggable,iconUrl:this.iconUrl,title:this.currentTitle,maximized:this.maximized}},constrainRect(){const t=function(t){if(u.a)return null;let e=document.body;return P&&P.SDS&&P.SDS.Desktop&&P.SDS.Desktop.$el&&P.SDS.Desktop.$el?e=P.SDS.Desktop.$el:t.isActive()&&(e=t.getContainerEl()),e}(this.$windowManager);if(!t)return;const{top:e,left:i,bottom:n,right:o}=t.getBoundingClientRect();return{top:e,left:i,bottom:n,right:o}},windowProperty(){return{top:this.top,left:this.left,width:this.autoWidth?"auto":this.currentWidth,height:this.autoHeight?"auto":this.currentHeight,minWidth:this.minWidth,minHeight:this.minHeight,maximized:this.maximized,hidden:this.hidden,constrainRect:this.constrainRect,resizeHandles:this.resizeHandles}},windowStyle(){return{position:this.isComponentType?"relative":"absolute",width:!this.maximized&&this.autoWidth?"auto":"".concat(this.currentWidth,"px"),height:!this.maximized&&this.autoHeight?"auto":"".concat(this.currentHeight,"px"),top:"".concat(this.top,"px"),left:"".concat(this.left,"px")}},isComponentType(){return"component"===this.type},canMinimize(){return this.minimizable},isFixSizeMode(){return this.maximized||this.isFullsize||this.hidden}},watch:{title:{immediate:!0,handler(t){this.currentTitle=t}},hidden:{async handler(t){t?this.setActive(!1):(this.setActive(!0),this.toFront(),this.afterShow(),await this.$nextTick(),this.setIntrinsicSize())}},width:{immediate:!0,async handler(t){"auto"===t?(this.autoWidth=!0,await this.$nextTick(),this.setIntrinsicWidth()):(this.currentWidth=+t,this.autoWidth=!1)}},height:{immediate:!0,async handler(t){"auto"===t?(this.autoHeight=!0,await this.$nextTick(),this.setIntrinsicHeight()):(this.currentHeight=+t,this.autoHeight=!1)}}},beforeDestroy(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.$options.manager&&this.$options.manager.unregister(this),this.$options.modalWins=[],this.$options.messageBox=null,!this.$root||this.$root===this||this.inline||this.isComponentType||this.$root.$destroy()},async mounted(){L&&L.SDS&&L.SDS.WindowMgr?this.$options.manager=L.SDS.WindowMgr:this.$windowManager.isActive()&&(this.$options.manager=this.$windowManager),this.$options.manager&&this.$options.manager.register(this),this.$options.modalWins=[],await this.$nextTick(),this.initDraggable()},methods:{setIntrinsicSize(){this.setIntrinsicHeight(),this.setIntrinsicWidth()},setIntrinsicHeight(){this.isFixSizeMode||(this.currentHeight=this.$el.offsetHeight)},setIntrinsicWidth(){this.isFixSizeMode||(this.currentWidth=this.$el.offsetWidth)},doUnmaskContainer(){this.$options.manager.unmaskContainer&&this.$options.manager.unmaskContainer(this.id),this.containerMasked=!1},doMaskContainer(t){this.$options.manager.maskContainer&&this.$options.manager.maskContainer(this.id,t),this.containerMasked=!0},tryConstrainHeight({isFullsize:t=!1}={}){const e=this.getHeight();if("WizardWindow"!==this.$options.name){let i=this.getFullHeight({withinTaskbar:t});it&&(this.currentHeight=t)},doConstrain(){const t=this.$alignManager.getConstrainToXY(this.$el.parentNode,this.$el);t&&this.setPosition(t[0],t[1]),this.tryConstrainHeight({isFullsize:!0})},getCurrentWidth(){return!0===this.autoWidth?this.$el&&this.$el.offsetWidth:this.currentWidth},getCurrentHeight(){return!0===this.autoHeight?this.$el&&this.$el.offsetHeight:this.currentHeight},register(t){t.$options.window=this},unregister(t){delete t.$options.window},setForceAlwaysOnTop(t){this.forceAlwaysOnTop=t},isAlwaysOnTop(){return!!this.forceAlwaysOnTop||(Object(o.d)(this.alwaysOnTop)?this.alwaysOnTop:this.alwaysOnTop())},initDraggable(){this.broadcast("Draggable","window.header",this.$refs.header)},setDragging(t){this.dragging=t},onDragEnd({top:t,left:e}){this.top=t,this.left=e},onResizeEnd({top:t,left:e,width:i,height:n}){this.currentWidth=i,this.currentHeight=n,this.autoWidth=!1,this.autoHeight=!1,this.top=t,this.left=e,this.$emit("resize",{top:t,left:e,width:i,height:n})},async onClose({forceClose:t=!1,payload:e={}}={}){return!1!==this.closable&&((!0===t||!1!==await this.beforeClose())&&void this.doClose({payload:e}))},whenClosed(){return this.$options._closedDefer=this.$options._closedDefer||new Promise((t,e)=>{this.$options._closedResolver=t})},async doClose({payload:t={}}={}){if(this.closeHook(),!1===await this.onMinimize()){this.hidden=!0;for(let t of this.$options.modalWins)t.onMinimize();this.$emit("hide")}this.$emit("close",{payload:t}),this.$options._closedResolver&&this.$options._closedResolver(),this.$destroy()},async onMinimize(){if(this.isStandalone||!this.canMinimize)return!1;if(!1===await this.beforeMinimize())return!1;this.minimizeHook(),this.hidden=!0,this.$emit("hide"),L&&L.SDS&&L.SDS.StatusNotifier&&L.SDS.StatusNotifier.fireEvent("windowMinimize",this);for(let t of this.$options.modalWins)t.hideForMinimize=!0,t.onMinimize()},onFullsize(){this.left=0,this.top=0,this.isFullsize=!0,this.fitContainer({isFullsize:!0})},doMaximize(){this.onMaximize()},doMinimize(){this.onMinimize()},doFullscreen(){this.onFullscreen()},doRestore(){this.onRestore()},onMaximize(){this.maximizable&&!1!==this.beforeMaximize()&&(this.maximizeHook(),this.maximized||(this.restoreProps={width:this.currentWidth,height:this.currentHeight,top:this.top,left:this.left},this.left=0,L&&L.SDS&&L.SDS.TaskBar?this.top=L.SDS.TaskBar.height():this.top=0,this.fitContainer(),this.maximized=!0,L&&L.SDS&&L.SDS.StatusNotifier&&L.SDS.StatusNotifier.fireEvent("windowBeforeMaximize",this),this.$emit("maximize")))},getFullHeight({withinTaskbar:t=!1}={}){const e=document.body.getBoundingClientRect();return!t&&L&&L.SDS&&L.SDS.TaskBar?e.height-L.SDS.TaskBar.height():e.height},async fitContainer({isFullsize:t=!1}={}){let e=document.body.getBoundingClientRect();this.currentWidth=e.width,this.currentHeight=this.getFullHeight({withinTaskbar:t}),await this.$nextTick()},onHelp(){},onRestore(){if(this.isStandalone)return;this.restoreHook();const{width:t,height:e,top:i,left:n}=this.restoreProps;this.currentWidth=t,this.currentHeight=e,this.top=i,this.left=n,this.maximized=!1,L&&L.SDS&&L.SDS.StatusNotifier&&L.SDS.StatusNotifier.fireEvent("windowRestore",this),this.$emit("restore")},onFullscreen(){this.fullscreenHook()},getStateParam:function(){let t={};return(this.maximized||this.hidden)&&(t.maximized=this.maximized,t.minimized=this.hidden),t},setStatus(t,e){this.isMasking=!0,this.maskText=e,this.maskOpacity=t},setStatusBusy(t,e){t=Object(p.e)(t)?t:.4,e=e||this._i18n("common","loading"),this.setStatus(t,e)},clearStatus(){this.isMasking=!1,this.maskText=null},mask(t){this.maskLayerNums++,this.maskOpacity=t,this.maskLayerNums>0&&this.setStatus(t,null,!0)},unmask(){--this.maskLayerNums>0||(this.maskLayerNums=0,this.clearStatus())},onMaskMouseDown(){this.blinkWhenTouched&&this.blinkModalChild()},blinkModalChild(){if(!this.$options.manager)return;this.$options.modalWins.sort(this.$options.manager.sortWindows);let t=this.$options.modalWins[this.$options.modalWins.length-1];t?t.blinkModalChild():this.modal&&(this.toFront(),this.blinkShadow(3))},blinkShadow(t){t<=0||(this.noShadow=!0,window.setTimeout(()=>{this.noShadow=!1,window.setTimeout(()=>{this.blinkShadow(--t)},100)},100))},openWindow(t,e={}){this.lastFocusElement=document.activeElement;let i=null,n=null;if(H&&t instanceof H.Window)return t.owner=this,this.openExtWindow(t);if(t._isVue)n=i=t,this.getMountEl().appendChild(t.$el);else{let r=document.createElement("div");i=new t({propsData:e}),this.getMountEl().appendChild(r),i.$mount(r),n=function t(e){if(e){if(Object(o.i)(e,"ModalWindow"))return e;for(let i of e.$children){let e=t(i);if(e)return e}}}(i)}if(!n)throw new Error("window is not found");return L&&L.SDS&&L.SDS.Desktop&&i&&L.SDS.Desktop.appendChild(i),n.$on("close",()=>{this.lastFocusElement&&this.lastFocusElement.focus()}),this.alwaysOnTop&&n.setForceAlwaysOnTop(!0),n.setOwner(this),n.init(),n.open(),{window:n,component:i}},openExtWindow(t){return this.lastFocusElement=document.activeElement,t.on("beforedestroy",()=>{R(this,t),this.lastFocusElement&&this.lastFocusElement.focus()}),t.on("show",()=>{t.owner=this,this.$options.modalWins.push(t),t.alignTo(this.$el,"c-c"),this.mask(0)}),t.on("hide",()=>{R(this,t),this.lastFocusElement&&this.lastFocusElement.focus()}),t.onOpen(),{window:t}},openModalWindow(t,e={}){this.lastFocusElement=document.activeElement;let i=this.openWindow(t,e);return!0===i.window._isVue&&this.$options.modalWins.push(i.window),i},removeModalWindow(t){let e=this.$options.modalWins.indexOf(t);-1!==e&&this.$options.modalWins.splice(e,1)},alignCenterToElement(t,e=[0,0]){let{top:i,left:n,right:o,bottom:r}=t.getBoundingClientRect(),s=this.currentWidth,a=this.currentHeight;this.autoHeight&&(a=this.$el.getBoundingClientRect().height),this.autoWidth&&(s=this.$el.getBoundingClientRect().width);let l=(n+o)/2,c=(i+r)/2;this.left=l-s/2+e[0],this.top=c-a/2+e[1]},getMsgBox(t,e={},i={}){return!t||Object(o.n)(t)||Object(o.j)(t)||(Object(h.b)("getMsgBox(propsData)","getMsgBox(null, propsData)",this),e=t,t=null),this.$options.messageBox||(t=t||this.$messageWindow,this.$options.messageBox=this.openWindow(t,{synoId:"".concat(this.synoId,"-msgbox"),...e},i).window,this.$options.modalWins.push(this.$options.messageBox)),this.$options.messageBox},showAboutWindow(t={}){let e,i;if(t.className)try{e=L.SDS.Config.FnMap[t.className].config}catch{throw"Failed to get jsConfig of ".concat(t.className)}else e=this.$options.jsConfig;if(!e)throw"Cannot find jsConfig";try{i=L.SDS.UIFeatures.IconSizeManager.getIconPath("".concat(encodeURI(e.jsBaseURL),"/").concat(e.icon||e.icon_32),"desktop")}catch{throw"Failed to get icon path"}const n=window._S,o=this.openWindow(this.$aboutWindow,{name:e.title,customName:Array.isArray(e.customAboutTitle)?e.customAboutTitle:null,icon:i,copyrightYear:e.buildTime?e.buildTime.split("-")[0]:n&&n("builddate")?n("builddate").split("/")[0]:"",desc:t.desc,isBeta:t.isBeta,swapNameAndDesc:t.swapNameAndDesc}).window;this.$options.modalWins.push(o)},setZIndex(t){this.$refs._window&&Object(p.c)(this.$refs._window,"zIndex","".concat(t)),this.$emit("zindex-changed",t)},getZIndex(){return this.$refs._window?Object(p.c)(this.$refs._window,"zIndex"):0},getToastBox(t,e={}){e.text=t,W(this.$el,e,{constrainMode:!1,absoluteMode:!1})},open(){this.opened||(this.opened=!0),this.show()}}};var Y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-layout",{directives:[{name:"show",rawName:"v-show",value:t.showWindow,expression:"showWindow"},{name:"syno-id",rawName:"v-syno-id"}],ref:"_window",class:t.windowCls,style:t.windowStyle,attrs:{type:"window."+t.layoutType},on:{mousedown:function(e){return t.toFront(this)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onClose.apply(null,arguments)}}},[i("v-window-header",t._b({ref:"header",on:{close:t.onClose,minimize:t.doMinimize,maximize:t.doMaximize,fullscreen:t.doFullscreen,restore:t.doRestore,help:t.onHelp}},"v-window-header",t.headerProps,!1)),t._v(" "),i("v-trap-focus",{ref:"trapFocus",class:t.prefixCls+"-body"},[i("div",{staticClass:"v-trap-focus-indicator",attrs:{tabindex:"0",role:"application","aria-label":t.currentTitle}}),t._v(" "),t._t("default")],2),t._v(" "),t.resizable?i("v-resizable",{attrs:{"window-property":t.windowProperty},on:{"resize-end":t.onResizeEnd}}):t._e(),t._v(" "),t.draggable&&!t.isComponentType?i("v-draggable",{attrs:{"window-property":t.windowProperty},on:{dragging:t.setDragging,"drag-end":t.onDragEnd}}):t._e(),t._v(" "),t.isMasking?i("div",{class:t.maskCls,on:{mousedown:t.onMaskMouseDown}},[t.maskText?i("v-spin",{attrs:{tip:t.maskText,spinning:t.isMasking,"mask-style":t.maskStyle}}):t._e()],1):t._e()],1)};Y._withStripped=!0;const V=Object(n.a)({render:Y,staticRenderFns:[]},void 0,N,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=V},function(t,e,i){var n=i(70),o=Function.prototype,r=o.bind,s=o.call,a=n&&r.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){"use strict";i.d(e,"a",(function(){return c})),i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return l}));i(5),i(21);var n=i(90);const o=/(?:^|[-_])(\w)/g;function r(){return/jsDebug=script/.test(window.location.search)||n.a}function s(t,e,i){return a("'".concat(t,"' is deprecated, use '").concat(e,"' instead."),i)}function a(t,e){r()?c("[DEPRECATED] ".concat(t),e):function(t,e,...i){console.warn(u(t,e),...i)}("[DEPRECATED] ".concat(t),e)}function l(t,e,...i){r()&&c("".concat(t),e,...i)}function c(t,e,...i){console.error(u(t,e),...i)}function u(t,e){return"[SynoVueComponents] ".concat(t)+(e?function(t){if(t._isVue&&t.$parent){const e=[];let i=0;for(;t;){if(e.length>0){const n=e[e.length-1];if(n.constructor===t.constructor){i++,t=t.$parent;continue}i>0&&(e[e.length-1]=[n,i],i=0)}e.push(t),t=t.$parent}return"\n\nfound in\n\n"+e.map((t,e)=>"".concat(0===e?"---\x3e ":function(t,e){let i="";for(;e;)e%2==1&&(i+=t),e>1&&(t+=t),e>>=1;return i}(" ",5+2*e)).concat(Array.isArray(t)?"".concat(d(t[0]),"... (").concat(t[1]," recursive calls)"):d(t))).join("\n")}return"\n\n(found in ".concat(d(t),")")}(e):"")}function d(t,e){if(!t)return"";if(t.$root===t)return"";const i="function"==typeof t&&null!=t.cid?t.options:t._isVue?t.$options||t.constructor.options:t;let n=i.name||i._componentTag;const r=i.__file;if(!n&&r){const t=r.match(/([^/\\]+)\.vue$/);n=t&&t[1]}return(n?"<".concat(n.replace(o,t=>t.toUpperCase()).replace(/[-_]/g,""),">"):"")+(r&&!1!==e?" at ".concat(r):"")}},function(t,e,i){"use strict";var n=i(0),o=i(4);var r={beforeCreate(){this.$i18n?this._i18n=this.$i18n:this._i18n=function(t,e){let i="";return o.a||(window&&window._T&&(i=window._T(t,e)),r=i,(Object(n.g)(r)||!Object(n.e)(r))&&(i="".concat(t,":").concat(e))),i;var r}}};e.a=r},function(t,e,i){var n=i(6),o=i(72),r=i(20),s=i(92),a=i(93),l=i(94),c=o("wks"),u=n.Symbol,d=u&&u.for,p=l?u:u&&u.withoutSetter||s;t.exports=function(t){if(!r(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&r(u,t)?c[t]=u[t]:c[t]=l&&d?d(e):p(e)}return c[t]}},function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return a}));var n=i(8),o=i.n(n);let r,s="v";function a(){return r||o.a}},function(t,e,i){"use strict";var n=i(1),o=(i(5),i(21),i(3)),r=i(124);const s={name:"Layout",mixins:[Object(o.b)("layout"),Object(o.a)("layout")],props:{tag:{type:String,default:"div"},type:{type:String,default:"none",validator:r.b},customLayoutStyles:{type:Object,default:()=>({})}},data:()=>({children:[],parent:null,sibling:null}),computed:{currentLayoutStyles(){if(!this.$layoutManager)return{};const{styles:t}=this.$layoutManager.getLayoutData(this);let e={};for(let[i,n]of Object.entries(this.customLayoutStyles))e[n]=t[i];return{"--svc-layout-padding":t["layout-padding"],"--svc-layout-margin":t["layout-margin"],"--svc-layout-height":t["layout-height"],...e}},currentClass(){return"layout-"+this.type.replace(".","-")}},mounted(){this.$layoutManager&&this.layout&&(this.layout.register(this),this.parent=this.layout.instance,this.sibling=this.parent.children)},beforeDestroy(){this.layout&&this.layout.unregister(this)},methods:{register(t){this.children=this.children||[],this.children.push(t)},unregister(t){const e=this.children.findIndex(e=>e._uid===t._uid);this.children.splice(e,1)},getSiblingIndex(){return this.sibling?this.sibling.findIndex(t=>t._uid===this._uid):-1}},render(t){return t(this.tag,{style:this.currentLayoutStyles,staticClass:"v-layout",class:this.currentClass},this.$slots.default)}},a=Object(n.a)({},void 0,s,void 0,void 0,void 0,!1,void 0,void 0,void 0);e.a=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=(n=i(8))&&"object"==typeof n&&"default"in n?n.default:n;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e1&&void 0!==arguments[1]&&arguments[1],i=t.to,n=t.from;if(i&&(n||!1!==e)&&this.transports[i])if(e)this.transports[i]=[];else{var o=this.$_getTransportIndex(t);if(o>=0){var r=this.transports[i].slice(0);r.splice(o,1),this.transports[i]=r}}},registerTarget:function(t,e,i){a&&(this.trackInstances&&!i&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,i){a&&(this.trackInstances&&!i&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,i=t.from;for(var n in this.transports[e])if(this.transports[e][n].from===i)return+n;return-1}}}))(c),h=1,f=o.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(h++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){p.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){p.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};p.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:s(t),order:this.order};p.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],i=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(i,[this.normalizeOwnChildren(e)]):this.slim?t():t(i,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),m=o.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:p.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){p.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){p.unregisterTarget(e),p.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){p.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,i){var n=i.passengers[0],o="function"==typeof n?n(e):i.passengers;return t.concat(o)}),[])}(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),i=this.children(),n=this.transition||this.tag;return e?i[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},i)}}),v=0,g=["disabled","name","order","slim","slotProps","tag","to"],y=["multiple","transition"],b=o.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(v++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!=typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(p.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=p.targets[e.name];else{var i=e.append;if(i){var n="string"==typeof i?i:"DIV",o=document.createElement(n);t.appendChild(o),t=o}var r=l(this.$props,y);r.slim=this.targetSlim,r.tag=this.targetTag,r.slotProps=this.targetSlotProps,r.name=this.to,this.portalTarget=new m({el:t,parent:this.$parent||this,propsData:r})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=l(this.$props,g);return t(f,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var i=this.$scopedSlots.manual({to:this.to});return Array.isArray(i)&&(i=i[0]),i||t()}});var w={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",f),t.component(e.portalTargetName||"PortalTarget",m),t.component(e.MountingPortalName||"MountingPortal",b)}};e.default=w,e.Portal=f,e.PortalTarget=m,e.MountingPortal=b,e.Wormhole=p},function(t,e,i){var n=i(12),o=i(75),r=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},function(t,e,i){"use strict";var n=i(161),o=i(30),r=i(12),s=i(162),a=i(13),l=i(24),c=i(10),u=i(51),d=i(101),p=i(83),h=i(47),f=i(170),m=i(99),v=i(172),g=i(173),y=i(16)("replace"),b=Math.max,w=Math.min,x=r([].concat),_=r([].push),S=r("".indexOf),O=r("".slice),$="$0"==="a".replace(/./,"$0"),C=!!/./[y]&&""===/./[y]("a","$0");s("replace",(function(t,e,i){var r=C?"$":"$0";return[function(t,i){var n=h(this),r=null==t?void 0:m(t,y);return r?o(r,t,n,i):o(e,p(n),t,i)},function(t,o){var s=l(this),a=p(t);if("string"==typeof o&&-1===S(o,r)&&-1===S(o,"$<")){var h=i(e,s,a,o);if(h.done)return h.value}var m=c(o);m||(o=p(o));var y=s.global;if(y){var $=s.unicode;s.lastIndex=0}for(var C=[];;){var T=g(s,a);if(null===T)break;if(_(C,T),!y)break;""===p(T[0])&&(s.lastIndex=f(a,d(s.lastIndex),$))}for(var k,E="",j=0,M=0;M=j&&(E+=O(a,j,B)+W,j=B+z.length)}return E+O(a,j)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!$||C)},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,i){"use strict";var n=i(1),o=(i(5),i(0)),r=i(7),s=i(3),a=(i(8),i(28)),l=i(63),c=i(39),u=i(29);const d={name:"Menu",components:{vPerfectScrollbar:c.a,vTrapFocus:l.a},mixins:[r.a,Object(s.b)("menu"),Object(s.a)("menu"),Object(s.a)("sub-menu-item"),Object(s.a)("button"),a.a],props:{width:{type:[Number,String],default:170,validator:t=>"string"!=typeof t||"auto"===t},alignment:{type:String,default:"tl->tr"},height:{type:Number,default:void 0},useScrollbar:{type:Boolean,default:!1},position:{type:Array,default:()=>[0,0]},isOpen:{type:Boolean,default:!0},isRoot:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:void 0},emitEventOnly:{type:Boolean,default:!1},zIndex:{type:Number,default:15e3},autoFocus:{type:[Boolean,Number],default:!0}},data:()=>({showInButton:!1,activeIndex:0,items:[],groups:[],showIcon:!1,isOver:!1,isOutOfBound:!1,forceScroll:void 0,forceHeight:void 0}),computed:{menuCls(){return["v-menu",{"v-menu-icon-menu":this.showIcon}]},menuStyle(){let t=this.height?"".concat(this.height,"px"):"auto";return Object(o.e)(this.forceHeight)&&(t="".concat(this.forceHeight,"px")),{height:t,width:"string"==typeof this.width?this.width:"".concat(+this.width,"px"),left:"".concat(this.position[0],"px"),top:"".concat(this.position[1],"px"),zIndex:this.zIndex}}},watch:{isOpen:{immediate:!0,async handler(t){!0===t&&(Object(o.k)(this.autoFocus)?(await this.$nextTick(),this.activeItemByIndex(this.autoFocus,{preventScroll:!0})):this.autoFocus&&(await this.$nextTick(),this.tryActiveFirstItem()))}},isOver:{handler(t){this.isRoot||!1===t&&this.tryCloseMenu()}}},created(){this.$options.extraElements=[],this.$on("button.showInButton",t=>{this.showInButton=t}),this.$on("button.constrainMenu",t=>{this.tryConstrain(t)}),this.$on("item-created",t=>{this.items.push(t),(t.icon||"checkbox"===t.type||"select"===t.type)&&(this.showIcon=!0)}),this.$on("item-hover",t=>{const e=this.items.indexOf(t);e>=0&&this.activeItemByIndex(e)}),this.$on("item-hover-out",t=>{this.deactiveItem(t)}),this.$on("item-removed",t=>{this.items=this.items.filter(e=>e!==t)}),this.$on("group-created",t=>{this.groups.push(t)}),this.$on("select",(t,e)=>{this.isRoot?(!1===this.emitEventOnly&&t.setSelected(e),this.$emit("item-select",t,e),this.canCloseOnSelect(t)&&this.closeMenu()):this.dispatch("Menu","select",[t,e])}),this.$on("change",(t,e,i)=>{this.isRoot?this.$emit("item-change",t,e,i):this.dispatch("Menu","change",[t,e,i])})},mounted(){this.isRoot||(this.menu.register(this),this["sub-menu-item"].register(this))},beforeDestroy(){this.isRoot||(this.menu.unregister(this),this["sub-menu-item"].unregister(this))},methods:{canCloseOnSelect(t){return Object(o.e)(t.closeOnSelect)?Object(o.j)(t.closeOnSelect)?t.closeOnSelect():t.closeOnSelect:Object(o.e)(this.closeOnSelect)?this.closeOnSelect:"item"===t.type},canClose(){return this.$options.subMenus?!this.isOver&&this.$options.subMenus.every(t=>t.canClose()):!this.isOver},tryCloseMenu(){this.$options.parentMenuItem&&this.$options.parentMenuItem.tryCloseMenu()},async closeMenu(){if(this.$options.subMenus)for(const t of this.$options.subMenus)await t.closeMenu();this.$emit("update:isOpen",!1),await this.$nextTick(),this.$emit("menu-close")},register(t){if("Menu"===t.$options.name){if(t.isRoot)return;this.$options.subMenus||(this.$options.subMenus=[]),this.$options.subMenus.push(t)}else"MenuSubmenu"===t.$options.name&&(t.alignment=this.alignment,t.$options.parentMenu=this)},unregister(t){if(!this.$options.subMenus)return;const e=this.$options.subMenus.indexOf(t);e>-1&&this.$options.subMenus.splice(e,1)},addExtraElement(t){this.$options.extraElements.push(t)},getExtraElements(){return this.$options.extraElements},withinButtonEl(t){return!!this.showInButton&&this.showInButton.$el.contains(t)},withinSubMenuEl(t){return this.$options.subMenus.some(e=>e.contains(t))},onMouseEnter(){this.isOver=!0,this.$emit("mouseenter")},onMouseLeave(){this.isOver=!1,this.$emit("mouseleave")},async onArrowKeydown(t){Object(u.f)(t)?this.activePrevItem():Object(u.a)(t)?this.activeNextItem():Object(u.d)(t)||Object(u.b)(t)?this.items[this.activeIndex]&&this.items[this.activeIndex].hasChildMenu&&this.items[this.activeIndex].openChildMenuWithFocus():Object(u.c)(t)&&(this.$options.parentMenuItem&&this.$options.parentMenuItem.$el&&this.$options.parentMenuItem.$el.focus(),await this.closeMenu())},tryActiveFirstItem(){for(let t=0,e=this.items.length;t=0;t--)if(this.items[t].activatable)return this.activeItemByIndex(t)},activeNextItem(){if(-1===this.activeIndex)return this.tryActiveFirstItem();for(let t=this.activeIndex+1;t-1!==["","footbar","dropdown","styleless","split"].indexOf(t)},color:{type:String,default:"grey"},suffix:{type:String,default:"grey"},htmlType:{type:String,default:"button"},disabled:{type:Boolean,default:!1},icon:{type:String,default:void 0},menuAlign:{type:String,default:"tl->bl"},tooltip:{type:[Object,String,Boolean],default:!1},dropdownOffset:{type:Array,default:()=>[0,0]},useBreakpoint:{type:Boolean,default:!0},name:{type:String,default:""}},data:()=>({prefixCls:"v-btn",clicked:!1,clickTimer:null,dropdownStyle:{top:"0",left:"0"},hasDropdownSlot:!1,dropdownShown:!1,pressed:!1}),computed:{shouldShowDropdownArrow(){return!this.isStyleless&&(this.hasDropdownSlot||this.isSplitMode)},isStyleless(){return"styleless"===this.type},isSplitMode(){return"split"===this.type},btnClassObj(){let{prefixCls:t,type:e,clicked:i,suffix:n,icon:o}=this;const r={};return r[t]=!0,""!==e&&(r["".concat(t,"-").concat(e)]=e),"grey"!==this.color&&(Object(f.b)("color","suffix",this),n=this.color),r["".concat(t,"-").concat(n)]=n,r["".concat(t,"-clicked")]=i,r["".concat(t,"-menu-shown")]=this.dropdownShown,r["".concat(t,"-pressed")]=this.pressed,r["".concat(t,"-dropdown")]=this.hasDropdownSlot,r["".concat(t,"-dropdown-shown")]=this.dropdownShown,r["".concat(t,"-disabled")]=this.disabled,o&&(r["".concat(t,"-has-icon")]=!0,r[o]=!0),r},ariaLabel(){if(this.icon){return this.getTip()&&this.getTip().content||this.name}return!1}},watch:{dropdownShown:{async handler(t){this.$emit("dropdown-show",t),!0===t&&(await this.$nextTick(),this.setDropdownPos(),this.findMenuLike())},immediate:!0}},created(){this.$on("button.active",this.onBtnActive.bind(this))},mounted(){this["breakpoint-buttons-group"]&&this.useBreakpoint&&this["breakpoint-buttons-group"].register(this),this.hasDropdownSlot=Object(o.b)(this,"dropdown")},beforeDestroy(){this["breakpoint-buttons-group"]&&this.useBreakpoint&&this["breakpoint-buttons-group"].unregister(this),this.clearDropdownItem()},methods:{onClickoutside(){this.dropdownShown=!1},getTip(){return!1!==this.tooltip&&(Object(o.l)(this.tooltip)?this.tooltip:{content:this.tooltip})},setDropdownItem(t){this.clearDropdownItem(),this.$options.dropdownItem=t,this.$options.dropdownItem.addExtraElement&&this.$options.dropdownItem.addExtraElement(this.$el),this.$options.dropdownItem.$on("update:isOpen",t=>{this.dropdownShown=t})},clearDropdownItem(t){this.$options.dropdownItem&&(this.$options.dropdownItem.$off("update:isOpen"),delete this.$options.dropdownItem)},removeDropdownItem(t){t&&this.$options.dropdownItem===t&&(t.$off("update:isOpen"),delete this.$options.dropdownItem)},findMenuLike(){const t=this.$refs.portal.portalTarget.$children;for(const e of t)b(e)&&Object(f.c)("Please wrap your custom menu up by and remove isMenu function, reference by http://s.syno/vue document"),(b(e)||w(e))&&this.register(e)},register(t,e=(()=>{})){(w(t)||b(t)||function(t){return Object(o.i)(t,m.a)}(t))&&(this.setDropdownItem(t),e(this))},unregister(t){this.removeDropdownItem(t)},getExtraElements(){return[this.$el]},async setDropdownStyle(){let t=this.$refs.dropdown.firstChild;if(!t)throw"Don't leave slot content empty";const[e,i]=this.$alignManager.getAlignToXY(t,this.$el,this.menuAlign,this.dropdownOffset,!0,!0,this.getContainerEl());this.dropdownStyle.left="".concat(e,"px"),this.dropdownStyle.top="".concat(i,"px"),await this.$nextTick(),this.broadcast("Menu","button.constrainMenu",[[e,i]])},setDropdownPos(){this.setDropdownStyle()},handleClick(t){this.disabled||(t.stopPropagation(),this.clicked=!0,this.clickTimer&&window.clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>this.clicked=!1,500),this.hasDropdownSlot&&!this.isSplitMode&&(this.dropdownShown=!this.dropdownShown),this.dispatch("ButtonGroup","button.click",this),this.$emit("click",t))},handleDropdownBtnClick(t){this.disabled||this.isSplitMode&&(t.stopPropagation(),this.dropdownShown=!this.dropdownShown,this.$emit("click-dropdown",t))},onBtnActive(t){this.setPressed(t===this)},setPressed(t){this.pressed=t}}};var _=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("button",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:t.btnClassObj,attrs:{type:t.htmlType,"aria-haspopup":t.hasDropdownSlot,"aria-disabled":t.disabled,"aria-label":t.ariaLabel},on:{click:t.handleClick}},[t.$slots&&t.$slots.default?i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.getTip(),expression:"getTip()"}]},[t._t("default")],2):t._e(),t._v(" "),t.shouldShowDropdownArrow?i("div",{class:t.prefixCls+"-dropdown-btn",on:{click:t.handleDropdownBtnClick}}):t._e(),t._v(" "),t.dropdownShown?i("v-portal",{ref:"portal",attrs:{"mount-to":t.getContainerSelector(),"target-style":t.dropdownStyle}},[[i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside.children",value:t.onClickoutside,expression:"onClickoutside",modifiers:{children:!0}}],ref:"dropdown",class:t.prefixCls+"-dropdown"},[t._t("dropdown")],2)]],2):t._e()],1)};_._withStripped=!0;const S=Object(n.a)({render:_,staticRenderFns:[]},void 0,x,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=S},function(t,e,i){var n=i(6),o=i(41),r=n.String,s=n.TypeError;t.exports=function(t){if(o(t))return t;throw s(r(t)+" is not an object")}},function(t,e,i){var n=i(13);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,i){"use strict";let n=0;var o={beforeCreate(){this.uuid=n.toString(),n++}};e.a=o},function(t,e,i){"use strict";i.d(e,"a",(function(){return h})),i.d(e,"b",(function(){return f})),i.d(e,"c",(function(){return d}));var n=i(4);let o=!n.a&&"navigator"in window?window.navigator.userAgent.toLowerCase():"node",r=function(t){return t.test(o)},s=n.a?null:document,a=n.a?void 0:s.documentMode,l=(!!n.a||s.compatMode,r(/opera/)),c=r(/\bchrome\b/),u=r(/webkit/),d=!c&&r(/safari/),p=(d&&r(/applewebkit\/4/),d&&r(/version\/3/),d&&r(/version\/4/),!l&&r(/msie/)),h=(p&&r(/msie 7/),p&&r(/msie 8/),p&&r(/msie 9/),!u&&r(/gecko/)),f=(h&&r(/rv:1\.8/),h&&r(/rv:1\.9/),r(/windows|win32/),r(/macintosh|mac os x/));r(/adobeair/),r(/linux/),/^https/i.test(n.a?"http":window.location.protocol)},function(t,e,i){"use strict";i(5);var n=i(0),o=i(3),r=i(8),s=i.n(r),a=i(4),l=i(2),c=i(46),u=s.a.extend({mixins:[Object(o.a)("instance")],components:{vPortal:c.a},props:{popupContainer:{type:Function,default:void 0}},mounted(){},methods:{inFullsizeInstance(){return this.instance&&this.instance.fullsize},getContainerSelector(){let t="body";return a.a?t:(this.popupContainer?t=Object(n.m)(this.popupContainer)?this.popupContainer:this.popupContainer():this.inFullsizeInstance()?t="body":this.$popupContainer&&(t=Object(n.m)(this.$popupContainer)?this.$popupContainer:this.$popupContainer()),document.querySelector(t)?t:"body")},getContainerEl(){return a.a?null:document.querySelector(this.getContainerSelector())},outOfContainer(t){const e=this.getContainerEl(),i=t.getBoundingClientRect(),n=e&&e.getBoundingClientRect();return!Object(l.f)(i,n)},outOfContainerHeight(t){const e=this.getContainerEl(),i=t.getBoundingClientRect(),n=e&&e.getBoundingClientRect();return!!n&&(i.topn.bottom)}}});e.a=u},function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return s})),i.d(e,"d",(function(){return a})),i.d(e,"e",(function(){return n})),i.d(e,"f",(function(){return o}));i(27);function n(t){return!!t&&(t.code?"Space"===t.code:32===t.keyCode)}function o(t){return t.key?"ArrowUp"===t.key:38===t.keyCode}function r(t){return t.key?"ArrowDown"===t.key:40===t.keyCode}function s(t){return t.key?"ArrowLeft"===t.key:37===t.keyCode}function a(t){return t.key?"ArrowRight"===t.key:39===t.keyCode}function l(t){return t.key?"Enter"===t.key:13===t.keyCode}},function(t,e,i){var n=i(70),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,i){var n=i(110),o="object"==typeof self&&self&&self.Object===Object&&self,r=n||o||Function("return this")();t.exports=r},function(t,e,i){var n=i(174),o=i(230)((function(t,e,i){n(t,e,i)}));t.exports=o},function(t,e,i){var n=i(6),o=i(25),r=i(96),s=i(95),a=i(24),l=i(97),c=n.TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor;e.f=o?s?function(t,e,i){if(a(t),e=l(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&"writable"in i&&!i.writable){var n=d(t,e);n&&n.writable&&(t[e]=i.value,i={configurable:"configurable"in i?i.configurable:n.configurable,enumerable:"enumerable"in i?i.enumerable:n.enumerable,writable:!1})}return u(t,e,i)}:u:function(t,e,i){if(a(t),e=l(e),a(i),r)try{return u(t,e,i)}catch(t){}if("get"in i||"set"in i)throw c("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){var n=i(25),o=i(33),r=i(81);t.exports=n?function(t,e,i){return o.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,i){"use strict";var n=i(17),o=i(19);var r=Object(n.b)().extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:()=>({})},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]},customClass:{type:String,default:""},customStyle:{type:Object,default:()=>({})}},data(){return{transports:o.Wormhole.transports,firstRender:!0,currentClass:this.customClass,currentStyle:this.customStyle}},created(){this.$nextTick(()=>{o.Wormhole.registerTarget(this.name,this)})},watch:{ownTransports(){this.$emit("change",this.children().length>0)},name(t,e){o.Wormhole.unregisterTarget(e),o.Wormhole.registerTarget(t,this)}},mounted(){this.transition&&this.$nextTick(()=>{this.firstRender=!1})},beforeDestroy(){o.Wormhole.unregisterTarget(this.name)},computed:{ownTransports(){const t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers(){return function(t,e={}){return t.reduce((t,i)=>{const n=i.passengers[0],o="function"==typeof n?n(e):i.passengers;return t.concat(o)},[])}(this.ownTransports,this.slotProps)}},methods:{getExtraElements(){return this.$children?this.$children:[]},children(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper(){const t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render(t){const e=this.noWrapper(),i=this.children(),n=this.transition||this.tag;return e?i[0]:this.slim&&!n?t():t(n,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0,[this.currentClass]:!!this.currentClass},style:this.currentStyle},i)}});e.a=r},function(t,e,i){"use strict";var n=i(3),o=i(14),r={name:"ButtonDropdown",mixins:[Object(n.a)("button")],async mounted(){this.button&&(this.button.register(this,t=>{this.$options.button=t}),await this.$nextTick(),this.getDropdownItem())},beforeDestroy(){this.button&&(this.button.unregister(this),this.$options.button=null),this.$options.dropdownItem&&(this.$options.dropdownItem=null)},methods:{getDropdownItem(){if(this.$children.length>1)Object(o.a)("dropdown can only be one item");else if(0===this.$children.length)return;this.$options.dropdownItem=this.$children[0],this.$options.button&&this.$options.button.$el&&this.$options.dropdownItem.addExtraElement&&this.$options.dropdownItem.addExtraElement(this.$options.button.$el),this.$options.dropdownItem.$on("update:isOpen",t=>this.$emit("update:isOpen",t))}},render(){return this.$slots.default}};e.a=r},function(t,e,i){"use strict";var n=i(7),o=i(3),r={mixins:[n.a,Object(o.a)("data-table")],props:{subscribeField:{type:String,default:void 0},activeFormItem:{type:Boolean,default:!0}},data:()=>({validateByField:!1}),mounted(){this.activeFormItem&&(this.subscribeField?this.dispatch("FormItem","form.register",[this,this.subscribeField],{key:"registerKey",value:this.subscribeField}):(this["data-table"]&&this["data-table"].register(this,()=>{this.inDataTableBehavior()}),this.dispatch("FormItem","form.register",[this,this.subscribeField])))},beforeDestroy(){this.activeFormItem&&(this.subscribeField?this.dispatch("FormItem","form.unregister",[this,this.subscribeField],{key:"registerKey",value:this.subscribeField}):this.dispatch("FormItem","form.unregister",[this,this.subscribeField]))},methods:{validate(){},inDataTableBehavior(){this.$el.addEventListener("mousedown",t=>t.stopPropagation()),this.$el.addEventListener("keydown",t=>t.stopPropagation())}}};e.a=r},function(t,e,i){"use strict";var n=i(1);function o(t){return getComputedStyle(t)}function r(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function s(t){var e=document.createElement("div");return e.className=t,e}var a="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function l(t,e){if(!a)throw new Error("No element matching method supported");return a.call(t,e)}function c(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function u(t,e){return Array.prototype.filter.call(t.children,(function(t){return l(t,e)}))}var d="ps",p="ps__rtl",h={thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},f={focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}},m={x:null,y:null};function v(t,e){var i=t.element.classList,n=f.scrolling(e);i.contains(n)?clearTimeout(m[e]):i.add(n)}function g(t,e){m[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(f.scrolling(e))}),t.settings.scrollingThreshold)}var y=function(t){this.element=t,this.handlers={}},b={isEmpty:{configurable:!0}};y.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},y.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter((function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)}))},y.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},b.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(y.prototype,b);var w=function(){this.eventElements=[]};function x(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function _(t,e,i,n,o){var r;if(void 0===n&&(n=!0),void 0===o&&(o=!1),"top"===e)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,o){var r=i[0],s=i[1],a=i[2],l=i[3],c=i[4],u=i[5];void 0===n&&(n=!0);void 0===o&&(o=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start");d[a]>t[r]-t[s]-1&&(t.reach[l]="end");e&&(d.dispatchEvent(x("ps-scroll-"+l)),e<0?d.dispatchEvent(x("ps-scroll-"+c)):e>0&&d.dispatchEvent(x("ps-scroll-"+u)),n&&function(t,e){v(t,e),g(t,e)}(t,l));t.reach[l]&&(e||o)&&d.dispatchEvent(x("ps-"+l+"-reach-"+t.reach[l]))}(t,i,r,n,o)}function S(t){return parseInt(t,10)||0}w.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new y(t),this.eventElements.push(e)),e},w.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},w.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},w.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},w.prototype.once=function(t,e,i){var n=this.eventElement(t),o=function(t){n.unbind(e,o),i(t)};n.bind(e,o)};var O={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function $(t){var e=t.element,i=Math.floor(e.scrollTop),n=e.getBoundingClientRect();t.containerWidth=Math.round(n.width),t.containerHeight=Math.round(n.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(u(e,h.rail("x")).forEach((function(t){return c(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(u(e,h.rail("y")).forEach((function(t){return c(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var i={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?i.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:i.left=t.scrollLeft;e.isScrollbarXUsingBottom?i.bottom=e.scrollbarXBottom-n:i.top=e.scrollbarXTop+n;r(e.scrollbarXRail,i);var o={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?o.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:o.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:o.left=e.scrollbarYLeft+t.scrollLeft;r(e.scrollbarYRail,o),r(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),r(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(f.active("x")):(e.classList.remove(f.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(f.active("y")):(e.classList.remove(f.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function C(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function T(t,e){var i=e[0],n=e[1],o=e[2],r=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=t.element,p=null,h=null,m=null;function y(e){e.touches&&e.touches[0]&&(e[o]=e.touches[0].pageY),d[l]=p+m*(e[o]-h),v(t,c),$(t),e.stopPropagation(),e.type.startsWith("touch")&&e.changedTouches.length>1&&e.preventDefault()}function b(){g(t,c),t[u].classList.remove(f.clicking),t.event.unbind(t.ownerDocument,"mousemove",y)}function w(e,s){p=d[l],s&&e.touches&&(e[o]=e.touches[0].pageY),h=e[o],m=(t[n]-t[i])/(t[r]-t[a]),s?t.event.bind(t.ownerDocument,"touchmove",y):(t.event.bind(t.ownerDocument,"mousemove",y),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[u].classList.add(f.clicking),e.stopPropagation()}t.event.bind(t[s],"mousedown",(function(t){w(t)})),t.event.bind(t[s],"touchstart",(function(t){w(t,!0)}))}var k={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,$(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,$(t),e.stopPropagation()}))},"drag-thumb":function(t){T(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),T(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(l(e,":hover")||l(t.scrollbarX,":focus")||l(t.scrollbarY,":focus"))){var n,o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(l(n=o,"input,[contenteditable]")||l(n,"select,[contenteditable]")||l(n,"textarea,[contenteditable]")||l(n,"button,[contenteditable]"))return}var r=0,s=0;switch(i.which){case 37:r=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:s=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:r=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:s=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:s=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:s=t.containerHeight;break;case 34:s=-t.containerHeight;break;case 36:s=t.contentHeight;break;case 35:s=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==r||t.settings.suppressScrollY&&0!==s||(e.scrollTop-=s,e.scrollLeft+=r,$(t),function(i,n){var o=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===o&&n>0||o>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===r&&i<0||r>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(r,s)&&i.preventDefault())}}))},wheel:function(t){var e=t.element;function i(i){var n=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(i),r=n[0],s=n[1];if(!function(t,i,n){if(!O.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(h.consuming))return!0;var s=o(r);if(n&&s.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&s.overflowX.match(/(scroll|auto)/)){var l=r.scrollWidth-r.clientWidth;if(l>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(i.target,r,s)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?e.scrollTop-=s*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=s*t.settings.wheelSpeed,a=!0):(e.scrollTop-=s*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),$(t),(a=a||function(i,n){var o=Math.floor(e.scrollTop),r=0===e.scrollTop,s=o+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?r||s:a||l)||!t.settings.wheelPropagation}(r,s))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",i)},touch:function(t){if(O.supportsTouch||O.supportsIePointer){var e=t.element,i={},n=0,r={},s=null;O.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",d),t.event.bind(e,"touchend",p)):O.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",d),t.event.bind(e,"pointerup",p)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",d),t.event.bind(e,"MSPointerUp",p)))}function a(i,n){e.scrollTop-=n,e.scrollLeft-=i,$(t)}function l(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(c(t)){var e=l(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==s&&clearInterval(s)}}function d(s){if(c(s)){var u=l(s),d={pageX:u.pageX,pageY:u.pageY},p=d.pageX-i.pageX,f=d.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(h.consuming))return!0;var s=o(r);if(n&&s.overflowY.match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&(r.scrollTop>0&&n<0||r.scrollTop0))return!0}if(i&&s.overflowX.match(/(scroll|auto)/)){var l=r.scrollWidth-r.clientWidth;if(l>0&&(r.scrollLeft>0&&i<0||r.scrollLeft0))return!0}r=r.parentNode}return!1}(s.target,p,f))return;a(p,f),i=d;var m=(new Date).getTime(),v=m-n;v>0&&(r.x=p/v,r.y=f/v,n=m),function(i,n){var o=Math.floor(e.scrollTop),r=e.scrollLeft,s=Math.abs(i),a=Math.abs(n);if(a>s){if(n<0&&o===t.contentHeight-t.containerHeight||n>0&&0===o)return 0===window.scrollY&&n>0&&O.isChrome}else if(s>a&&(i<0&&r===t.contentWidth-t.containerWidth||i>0&&0===r))return!0;return!0}(p,f)&&s.preventDefault()}}function p(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval((function(){t.isInitialized?clearInterval(s):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(s):t.element?(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(s):clearInterval(s)}),10))}}},E=function(t,e){var i=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var n in this.element=t,t.classList.add(d),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[n]=e[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a,l,c=function(){return t.classList.add(f.focus)},u=function(){return t.classList.remove(f.focus)};this.isRtl="rtl"===o(t).direction,!0===this.isRtl&&t.classList.add(p),this.isNegativeScroll=(l=t.scrollLeft,t.scrollLeft=-1,a=t.scrollLeft<0,t.scrollLeft=l,a),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new w,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=s(h.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=s(h.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",c),this.event.bind(this.scrollbarX,"blur",u),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var m=o(this.scrollbarXRail);this.scrollbarXBottom=parseInt(m.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=S(m.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=S(m.borderLeftWidth)+S(m.borderRightWidth),r(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=S(m.marginLeft)+S(m.marginRight),r(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=s(h.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=s(h.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",c),this.event.bind(this.scrollbarY,"blur",u),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var v=o(this.scrollbarYRail);this.scrollbarYRight=parseInt(v.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=S(v.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=o(t);return S(e.width)+S(e.paddingLeft)+S(e.paddingRight)+S(e.borderLeftWidth)+S(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=S(v.borderTopWidth)+S(v.borderBottomWidth),r(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=S(v.marginTop)+S(v.marginBottom),r(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return k[t](i)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return i.onScroll(t)})),$(this)};E.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,r(this.scrollbarXRail,{display:"block"}),r(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=S(o(this.scrollbarXRail).marginLeft)+S(o(this.scrollbarXRail).marginRight),this.railYMarginHeight=S(o(this.scrollbarYRail).marginTop)+S(o(this.scrollbarYRail).marginBottom),r(this.scrollbarXRail,{display:"none"}),r(this.scrollbarYRail,{display:"none"}),$(this),_(this,"top",0,!1,!0),_(this,"left",0,!1,!0),r(this.scrollbarXRail,{display:""}),r(this.scrollbarYRail,{display:""}))},E.prototype.onScroll=function(t){this.isAlive&&($(this),_(this,"top",this.element.scrollTop-this.lastScrollTop),_(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},E.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),c(this.scrollbarX),c(this.scrollbarY),c(this.scrollbarXRail),c(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},E.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var j=E,M=(i(5),i(125));const z=function(t){for(let e of t)for(let t of e.target.__syno_resize_listeners__||[])t.fn.apply(t.scope||t.fn,[e])},B=function(t,e,i){t.__syno_resize_listeners__||(t.__syno_resize_listeners__=[],t.__syno_resize__=new M.a(z),t.__syno_resize__.observe(t)),t.__syno_resize_listeners__.push({fn:e,scope:i})},A=function(t,e){t&&t.__syno_resize_listeners__&&(t.__syno_resize_listeners__=t.__syno_resize_listeners__.filter(t=>e!==t.fn),t.__syno_resize_listeners__.length<=0&&(t.__syno_resize__.disconnect(),t.__syno_resize__=null,t.__syno_resize_listeners__=null))};var D=i(32),I=i.n(D);const F={name:"PerfectScrollbar",props:{active:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},viewTag:{type:String,default:"div"},viewStyle:{type:[String,Array,Object],default:""},viewClass:{type:[String,Array,Object],default:""},updateBy:{type:String,validator:t=>["lifecycle","resize","none"].includes(t),default:"lifecycle"},hasPadding:{type:Boolean,default:!1}},data:()=>({prefixCls:"v-ps"}),computed:{wrapperCls(){return[this.prefixCls,{"auto-scroll":this.mergedOptions.autoScrollMode,"with-padding":this.hasPadding}]},mergedOptions(){return I()({autoScrollMode:!1},this.options)},isResizeMode(){return"resize"===this.updateBy},isLifecycleMode(){return"lifecycle"===this.updateBy}},watch:{active(t){t&&!this.ps?this.init():!t&&this.ps&&this.purge()}},mounted(){this.init(),B(this.$el,this.handleResize,this),this.isResizeMode&&this.$refs.view&&B(this.$refs.view,this.handleResize,this)},beforeDestroy(){this.$el&&A(this.$el,this.handleResize),this.isResizeMode&&this.$refs.view&&A(this.$refs.view,this.handleResize),this.purge()},updated(){this.isLifecycleMode&&this.update()},methods:{handleEvents(t){this.$emit(t.type,t)},handleResize(t){this.update()},update(){this.active&&(!this.ps&&document.body.contains(this.$el)&&(this.ps=new j(this.$el,this.options)),this.ps&&this.ps.update(this.$el))},init(){if(this.active){const t={minScrollbarLength:this.$scrollbar&&this.$scrollbar.minLength||12,...this.options};!this.ps&&document.body.contains(this.$el)?this.ps=new j(this.$el,t):this.update()}},purge(){this.ps&&(this.ps.destroy(),this.ps=null)},scrollTo(t,e=10,i=!1){let n=t,o=this.$el,r=getComputedStyle(o),s=o.scrollTop,a=0,l=0;for(;n!==o&&l{let e=0,i=a-s,n=setInterval(()=>{e++,o.scrollTop=s+i*e/3,3===e&&(clearInterval(n),t())},50)}):(o.scrollTop=a,Promise.resolve())},ensureVisible(t,e=10,i=!1){if(!1===i&&t.scrollIntoViewIfNeeded)return void t.scrollIntoViewIfNeeded(!1);let n,o=t,r=this.$el,s=getComputedStyle(r),a=r.scrollTop,l=a+r.clientHeight,c=0,u=0,d=0;for(;o&&o!==r&&ul&&(d=n-l),0!==d)if(i){let t=0,e=setInterval(()=>{t++,r.scrollTop=a+d*t/3,3===t&&clearInterval(e)},200)}else r.scrollTop=a+d},resetScrollTop(){this.$el&&(this.$el.scrollTop=0)}}};var W=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"ps",class:t.wrapperCls,on:{"ps-scroll-x":t.handleEvents,"ps-scroll-y":t.handleEvents,"ps-scroll-up":t.handleEvents,"ps-scroll-down":t.handleEvents,"ps-scroll-left":t.handleEvents,"ps-scroll-right":t.handleEvents,"ps-y-reach-start":t.handleEvents,"ps-y-reach-end":t.handleEvents,"ps-x-reach-start":t.handleEvents,"ps-x-reach-end":t.handleEvents,"~mouseover":function(e){return t.update.apply(null,arguments)},scroll:t.handleEvents}},[t.isResizeMode?i(t.viewTag,{ref:"view",tag:"component",staticClass:"v-ps-wrapper",class:t.viewClass,style:t.viewStyle},[t._t("default")],2):t._t("default")],2)};W._withStripped=!0;const P=Object(n.a)({render:W,staticRenderFns:[]},void 0,F,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=P},function(t,e,i){"use strict";i(5);var n=i(8),o=i.n(n),r=i(17),s=i(2),a=i(29),l=i(1),c=i(0),u=i(36);const d={directives:{clickoutside:i(60).a},components:{vPortalTarget:u.a},props:{overflowOnly:{type:[Boolean,Function],default:!1},content:{type:String,default:""},isHtml:{type:Boolean,default:!1},delay:{type:Number,default:300},cls:{type:String,default:""},offset:{type:Array,default:()=>[20,20]},align:{type:String,default:"tl->"},bgOpacity:{type:Number,default:1},disabled:{type:Boolean,default:!1},usePortal:{type:Boolean,default:!1},portalName:{type:String,default:""},onActivate:{type:Function,default:c.o},onDeactivate:{type:Function,default:c.o},transitionTime:{type:Array,default:()=>[500,100]},dismissTime:{type:Number,default:500},triggerAction:{type:String,default:"hover",validator:t=>["hover","click"].includes(t)},interactive:{type:Boolean,default:!1}},data:()=>({x:0,y:0,opacity:0,showTooltip:!1,visible:!1,isActive:!1}),computed:{tooltipStyle(){return{left:"".concat(this.x,"px"),top:"".concat(this.y,"px"),opacity:this.opacity,transition:"opacity ".concat(this.transitionTime[0],"ms"),visibility:this.visible?"visible":"hidden"}},tooltipCls(){return[this.cls,"v-tooltip-directive",{"v-tooltip-directive-regular-panel":!this.usePortal,interactive:this.interactive}]}},watch:{disabled(t){t&&this.hide()}},mounted(){},beforeDestroy(){},methods:{onMouseEnter(t){this.interactive&&"hover"===this.triggerAction&&this.$emit("trigger-show",t)},onMouseLeave(t){this.interactive&&"hover"===this.triggerAction&&this.$emit("trigger-hide",t)},onClickoutside(){"click"===this.triggerAction&&this.$emit("trigger-hide")},shouldShow(t){if(this.overflowOnly){let e=t;if(Object(c.j)(this.overflowOnly)&&(e=this.overflowOnly(t)||t),e&&e.offsetWidth>=e.scrollWidth)return!1}return!0},show(t,e,i){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.disabled||(this.onActivate&&this.onActivate(),this.showTooltip=!0,this.$nextTick(()=>{this.showTimeout=setTimeout(async()=>{this.x=0,this.y=0,this.visible=!1,await this.$nextTick();const[t,n]=this.$alignManager.getAlignToXY(this.$el,[e,i],this.align,this.offset);this.x=t,this.y=n,this.visible=!0,this.opacity=this.bgOpacity},this.delay)}))},hide(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.opacity=0,this.hideTimeout=setTimeout(()=>{this.onDeactivate&&this.onDeactivate(),this.showTooltip=!1},this.dismissTime)}}};var p=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showTooltip?i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.onClickoutside,expression:"onClickoutside"}],class:t.tooltipCls,style:t.tooltipStyle,on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave}},[t.usePortal?i("v-portal-target",{attrs:{name:t.portalName,"custom-class":"tip-portal"}}):t.isHtml?i("span",{domProps:{innerHTML:t._s(t.content)}}):i("span",[t._v(t._s(t.content))])],1):t._e()};p._withStripped=!0;var h=Object(l.a)({render:p,staticRenderFns:[]},void 0,d,void 0,!1,void 0,!1,void 0,void 0,void 0);const f=!i(4).a&&(window&&"IntersectionObserver"in window),m=function(t){for(let e of t)for(let t of e.target.__syno_intersection_listeners__||[])t.fn.apply(t.scope||t.fn,[e])};function v(t,e){let i=t.currentTarget,n=t.clientX,o=t.clientY;return e._tooltip.attachToElement&&(i=e,n=e.getBoundingClientRect().left,o=e.getBoundingClientRect().top),{target:i,x:n,y:o}}function g(t){let e={};return"string"==typeof t.value?e.content=t.value:"object"==typeof t.value?e=t.value:"boolean"==typeof t.value&&(e.disable=!0),void 0===e.isHtml&&(e.isHtml=void 0!==t.modifiers.html&&t.modifiers.html),e}function y(t,e){const i=g(e);if(!0===i.disable)return i;t._tooltip||_(t,i);for(const e in i)t._tooltip.$set(t._tooltip,e,i[e]);return i}function b(t,e){const{target:i,x:n,y:o}=v(t,e);e._tooltip.shouldShow(e)&&(e._tooltip.isActive=!0,document.body.appendChild(e._tooltip.$el),e._tooltip.show(i,n,o))}function w(t){t&&(t.isActive=!1,setTimeout(()=>{t&&(t.isActive||(document.body.contains(t.$el)&&document.body.removeChild(t.$el),t.hide()))},t.transitionTime[1]))}function x(t){const e=t._tooltip,i=[];if("hover"===e.triggerAction)Object(s.i)(t,"mouseenter",t._tooltip._tooltip_e_show_cb),Object(s.i)(t,"mouseleave",t._tooltip._tooltip_e_hide_cb),Object(s.i)(t,"mousemove",t._tooltip._tooltip_e_move_cb),i.push(()=>Object(s.h)(t,"mouseenter",t._tooltip._tooltip_e_show_cb)),i.push(()=>Object(s.h)(t,"mouseleave",t._tooltip._tooltip_e_hide_cb)),i.push(()=>Object(s.h)(t,"mousemove",t._tooltip._tooltip_e_move_cb));else if("click"===e.triggerAction){const n=e=>{t._tooltip._tooltip_e_show_cb(e)},o=t=>{Object(a.e)(t)&&(e.isActive?e._tooltip_e_hide_cb():e._tooltip_e_show_cb(t),t.preventDefault(),t.stopPropagation())};Object(s.i)(t,"click",n),Object(s.i)(t,"keydown",o),i.push(()=>Object(s.h)(t,"click",n)),i.push(()=>Object(s.h)(t,"keydown",o))}t._tooltip.$on("trigger-show",t._tooltip._tooltip_e_show_cb),t._tooltip.$on("trigger-hide",t._tooltip._tooltip_e_hide_cb),function(t,e,i){f&&(t.__syno_intersection_listeners__||(t.__syno_intersection_listeners__=[],t.__syno_intersection__=new IntersectionObserver(m),t.__syno_intersection__.observe(t)),t.__syno_intersection_listeners__.push({fn:e,scope:i}))}(t,t._tooltip._tooltip_e_intersection_cb),i.push(()=>function(t,e){f&&t&&t.__syno_intersection_listeners__&&(t.__syno_intersection_listeners__=t.__syno_intersection_listeners__.filter(t=>e!==t.fn),t.__syno_intersection_listeners__.length<=0&&(t.__syno_intersection__.disconnect(),t.__syno_intersection__=null,t.__syno_intersection_listeners__=null))}(t,t._tooltip._tooltip_e_intersection_cb)),t._tooltip_disposed_fns=i}function _(t,e,i){const n=Object(r.b)().extend(h);t._tooltip=new n({propsData:e}),t._tooltip.$mount(),t._tooltip.attachToElement=!1,void 0!==e.attachToElement&&(t._tooltip.attachToElement=e.attachToElement),t._tooltip._tooltip_e_show_cb=e=>{b(e,t)},t._tooltip._tooltip_e_hide_cb=()=>{w(t._tooltip)},t._tooltip._tooltip_e_move_cb=e=>{!function(t,e){const{target:i,x:n,y:o}=v(t,e);e._tooltip.shouldShow(e)&&(e._tooltip.isActive?e._tooltip.show(i,n,o):b(t,e))}(e,t)},t._tooltip._tooltip_e_intersection_cb=e=>{e.target!==t||e.isVisible||w(t._tooltip)},x(t)}function S(t){if(t._tooltip_disposed_fns){for(const e of t._tooltip_disposed_fns)e&&e();delete t._tooltip_disposed_fns}t._tooltip&&(w(t._tooltip),t._tooltip.$destroy(),t._tooltip=null)}var O={inserted(t,e,i){o.a.nextTick(()=>{const i=g(e);!0!==i.disable&&_(t,i)})},componentUpdated(t,e){o.a.nextTick(()=>{let i=y(t,e);t._tooltip&&!Object(s.g)(t)&&w(t._tooltip),t._tooltip&&!0===i.disable&&S(t)})},update(t,e){o.a.nextTick(()=>{let i=y(t,e);t._tooltip&&!Object(s.g)(t)&&w(t._tooltip),t._tooltip&&!0===i.disable&&S(t)})},unbind(t){S(t)}};e.a=O},function(t,e,i){var n=i(10);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,i){var n=i(134),o=i(47);t.exports=function(t){return n(o(t))}},function(t,e,i){var n=i(86),o=i(187),r=i(188),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):r(t)}},function(t,e){var i=Array.isArray;t.exports=i},function(t,e,i){"use strict";var n=i(1),o=(i(5),i(0)),r=i(7),s=(i(8),i(39)),a=i(27),l=i(15),c=i(18),u=(i(21),i(23)),d=i(40);const p={name:"StatusBar",components:{SpinIcon:i(65).a},directives:{tooltip:d.a},mixins:[l.a],props:{state:{type:String,default:""},successText:{type:String,default:function(){return this._i18n("common","setting_applied")}},errorText:{type:String,default:function(){return this._i18n("common","error_system")}},loadingText:{type:String,default:function(){return this._i18n("common","loading")}},text:{type:String,default:void 0},show:{type:Boolean,default:!1},autoHide:{type:Boolean,default:!0}},data:()=>({successState:void 0,errorState:void 0,loadingState:void 0}),computed:{stateBarCls(){return"success"===this.state?"success":"error"===this.state?"error":"loading"},currentText(){return"success"===this.state?this.successText:"error"===this.state?this.errorText:this.loadingText}}};var h=function(){var t=this.$createElement,e=this._self._c||t;return e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:this.show,expression:"show"}],staticClass:"v-status-bar",class:this.stateBarCls},[e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{overflowOnly:!0,content:this.currentText},expression:"{ overflowOnly: true, content: currentText }"}],staticClass:"status-text"},["loading"!==this.state?e("div",{staticClass:"status-icon"}):e("spin-icon",{staticClass:"status-icon"}),this._v("\n "+this._s(this.currentText)+"\n ")],1)])])};h._withStripped=!0;var f=Object(n.a)({render:h,staticRenderFns:[]},void 0,p,void 0,!1,void 0,!1,void 0,void 0,void 0);function m(t,e){return"function"==typeof t?t.call(null,e):t}const v={name:"WizardFooter",components:{vButton:u.a,vStatusBar:f},mixins:[r.a,l.a],props:{nextStepDisabled:{type:Boolean,default:!1},previousStepDisabled:{type:Boolean,default:!1},customButtonsGroup:{type:Object,default:()=>{}},showStatusBar:{type:Boolean,required:!0},statusBarState:{type:String,required:!0},statusBarLoadingText:{type:String,required:!0},statusBarSuccessText:{type:String,required:!0},statusBarErrorText:{type:String,required:!0},showLeftButton:{type:Boolean,default:!1},leftButtonText:{type:String,default:function(){return this._i18n("common","skip")}},leftButtonType:{type:String,default:"footbar"},leftButtonSuffix:{type:String,default:"cancel"},leftButtonCls:{type:String,default:""}},data:()=>({prefixCls:"v-wizard-footer",currentStepType:void 0,currentNextStepKey:void 0,currentPreviousStepKey:void 0}),computed:{wrapperCls(){let t=[this.prefixCls];return this.currentStepType&&t.push(this.currentStepType),t},extendedLeftButtonCls(){return["left-btn",this.leftButtonCls]},showStartButton(){let t=this.$options.currentStep,e=this.currentStepType;return this.customButtonsGroup&&this.customButtonsGroup.start&&void 0!==this.customButtonsGroup.start.show?m(this.customButtonsGroup.start.show,t):!!e&&"welcome"===e},disableStartButton(){let t=this.$options.currentStep,e=this.nextStepDisabled;return this.customButtonsGroup&&this.customButtonsGroup.start&&void 0!==this.customButtonsGroup.start.disabled?m(this.customButtonsGroup.start.disabled,t):e},showBackButton(){let t=this.hasPreviousStep,e=this.$options.currentStep;return this.customButtonsGroup&&this.customButtonsGroup.back&&void 0!==this.customButtonsGroup.back.show?m(this.customButtonsGroup.back.show,e):!0===t},disableBackButton(){let t=this.$options.currentStep,e=this.previousStepDisabled;return this.customButtonsGroup&&this.customButtonsGroup.back&&void 0!==this.customButtonsGroup.back.disabled?m(this.customButtonsGroup.back.disabled,t):e},showNextButton(){let t=this.$options.currentStep,e=this.currentStepType;return this.customButtonsGroup&&this.customButtonsGroup.next&&void 0!==this.customButtonsGroup.next.show?m(this.customButtonsGroup.next.show,t):"normal"===e},disableNextButton(){let t=this.$options.currentStep,e=this.nextStepDisabled;return this.customButtonsGroup&&this.customButtonsGroup.next&&void 0!==this.customButtonsGroup.next.disabled?m(this.customButtonsGroup.next.disabled,t):e},startButtonText(){let t=this.$options.currentStep;return this.customButtonsGroup&&this.customButtonsGroup.start&&this.customButtonsGroup.start.text?m(this.customButtonsGroup.start.text,t):this._i18n("common","start")},backButtonText(){let t=this.$options.currentStep;return this.customButtonsGroup&&this.customButtonsGroup.back&&this.customButtonsGroup.back.text?m(this.customButtonsGroup.back.text,t):this._i18n("common","back")},nextButtonText(){let t=this.$options.currentStep,e=this.nextText;return this.customButtonsGroup&&this.customButtonsGroup.next&&this.customButtonsGroup.next.text?m(this.customButtonsGroup.next.text,t):e},hasNextStep(){return!!this.currentNextStepKey},hasPreviousStep(){return!!this.currentPreviousStepKey},nextText(){return this.hasNextStep?this._i18n("common","next"):this._i18n("common","commit")}},mounted(){this.$options.unwatchers=[],this.$on("wizard.currentStep",t=>{for(const t of this.$options.unwatchers)t&&t();this.currentStepType=t.type,this.currentNextStepKey=t.nextStepKey,this.currentPreviousStepKey=t.previousStepKey,this.$options.unwatchers.push(t.$watch("nextStepKey",t=>{this.currentNextStepKey=t}),t.$watch("previousStepKey",t=>{this.currentPreviousStepKey=t})),this.$options.currentStep=t})},methods:{toPre(){this.dispatch("Wizard","footer.toPreviousStep")},toNext(){!0===this.hasNextStep?this.dispatch("Wizard","footer.toNextStep"):this.dispatch("Wizard","footer.finished")},leftButton(t){this.dispatch("Wizard","footer.leftButton",[t])}}};var g=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapperCls},[t.showStartButton?t._e():i("div",{staticClass:"left-area"},[t.showLeftButton?i("v-button",{class:t.extendedLeftButtonCls,attrs:{"syno-id":t.synoId+"-left-button",type:t.leftButtonType,suffix:t.leftButtonSuffix},on:{click:t.leftButton}},[t._v("\n "+t._s(t.leftButtonText)+"\n ")]):t._e(),t._v(" "),i("v-status-bar",{staticClass:"status-bar",attrs:{show:t.showStatusBar,state:t.statusBarState,"loading-text":t.statusBarLoadingText,"success-text":t.statusBarSuccessText,"error-text":t.statusBarErrorText}})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showStartButton,expression:"showStartButton"}],staticClass:"button-group center"},[i("v-button",{directives:[{name:"show",rawName:"v-show",value:t.showStartButton,expression:"showStartButton"}],attrs:{"syno-id":t.synoId+"-start",type:"footbar",suffix:"main",disabled:t.disableStartButton},on:{click:function(e){return t.toNext()}}},[t._v(t._s(t.startButtonText))])],1),t._v(" "),i("div",{staticClass:"button-group pull-right"},[i("v-button",{directives:[{name:"show",rawName:"v-show",value:t.showBackButton,expression:"showBackButton"}],attrs:{"syno-id":t.synoId+"-back",type:"footbar",suffix:"cancel",disabled:t.disableBackButton},on:{click:function(e){return t.toPre()}}},[t._v(t._s(t.backButtonText))]),t._v(" "),i("v-button",{directives:[{name:"show",rawName:"v-show",value:t.showNextButton,expression:"showNextButton"}],attrs:{"syno-id":t.synoId+"-next",type:"footbar",suffix:"main",disabled:t.disableNextButton},on:{click:function(e){return t.toNext()}}},[t._v(t._s(t.nextButtonText))])],1)])};g._withStripped=!0;var y=Object(n.a)({render:g,staticRenderFns:[]},void 0,v,void 0,!1,void 0,!1,void 0,void 0,void 0),b=i(127);const w={name:"Wizard",components:{wizardFooter:y,perfectScrollbar:s.a,vLayout:c.a},mixins:[r.a,l.a],props:{nextStepDisabled:Boolean,previousStepDisabled:Boolean,activeStepKey:{type:String,default:void 0},customButtonsGroup:{type:Object,default:()=>null},wizardStyle:{type:Object,default:()=>({})},stepCtStyle:{type:Object,default:()=>({})},showStatusBar:{type:Boolean,default:!1},statusBarState:{type:String,default:"loading"},statusBarLoadingText:{type:String,default:function(){return this._i18n("common","loading")}},statusBarSuccessText:{type:String,default:function(){return this._i18n("common","setting_applied")}},statusBarErrorText:{type:String,default:function(){return this._i18n("common","error_system")}},showLeftButton:{type:Boolean,default:!1},leftButtonText:{type:String,default:function(){return this._i18n("common","skip")}},leftButtonType:{type:String,default:"footbar"},leftButtonSuffix:{type:String,default:"cancel"},leftButtonCls:{type:String,default:""},layoutType:{type:String,default:"basic",validator:t=>["basic","none"].includes(t)}},data:()=>({prefixCls:"v-wizard",activateStepKey:null,previousStepKey:null,currentStep:null,headline:null,showFooter:!0,inWizardWindow:!1}),computed:{stepWrapperCls:()=>({"flex-bug":a.c})},watch:{activateStepKey(t,e){this.broadcast("WizardStep","wizard.activateStepKey",this.activateStepKey)},activeStepKey(t,e){this.activateStepKey=this.activeStepKey}},mounted(){this.$parent&&Object(o.i)(this.$parent,b.a)&&(this.inWizardWindow=!0),this.$on("step.nextStepKey",t=>{this.previousStepKey=this.activateStepKey,this.activateStepKey=t}),this.$on("step.previousStepKey",t=>{this.previousStepKey=null,this.activateStepKey=t}),this.$on("step.currentStep",t=>{this.currentStep=t,this.previousStepKey&&(this.currentStep.previousStepKey=this.previousStepKey),this.headline=t.headline,this.handleCurrentStep(t)}),this.$on("footer.toNextStep",()=>{this.currentStep.nextStep()}),this.$on("footer.toPreviousStep",()=>{this.currentStep.previousStep()}),this.$on("footer.finished",()=>{this.currentStep.finished&&this.currentStep.finished()}),this.$on("footer.leftButton",t=>{this.$emit("left-button",t)}),this.activateStepKey=this.activeStepKey},methods:{onStepPropChange(t){return e=>{this[t]=e}},watchStep(t,e){if(this.$options.currentStepsUnWatchers)for(const t of this.$options.currentStepsUnWatchers)t();this.$options.currentStepsUnWatchers=e.map(e=>t.$watch(e,this.onStepPropChange(e),{immediate:!0}))},handleCurrentStep(t){this.broadcast("WizardFooter","wizard.currentStep",t),this.$emit("current-step",this.currentStep),this.dispatch("WizardWindow","wizard.currentStep",t),this.watchStep(this.currentStep,["showFooter","headline"])},handleScrollbar(t){this.$emit("step-scroll",t.target.scrollTop),this.dispatch("WizardWindow","wizard.stepScroll",t.target.scrollTop)}}};var x=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-layout",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:t.prefixCls,style:t.wizardStyle,attrs:{type:"wizard."+t.layoutType}},[i("div",{staticClass:"step-wrap",class:t.stepWrapperCls,style:t.stepCtStyle},[i("perfect-scrollbar",{staticClass:"step-scrollbar",on:{scroll:t.handleScrollbar}},[i("div",{staticClass:"headline-wrap"},[i("div",{staticClass:"headline"},[t._v("\n "+t._s(t.headline)+"\n ")])]),t._v(" "),i("v-layout",{staticClass:"step-container",attrs:{type:"wizard-step-container"}},[t._t("default")],2)],1)],1),t._v(" "),t._t("footer",(function(){return[i("wizard-footer",{directives:[{name:"show",rawName:"v-show",value:t.showFooter,expression:"showFooter"}],attrs:{"custom-buttons-group":t.customButtonsGroup,"syno-id":t.synoId+"-fbar","next-step-disabled":t.nextStepDisabled,"previous-step-disabled":t.previousStepDisabled,"show-status-bar":t.showStatusBar,"status-bar-state":t.statusBarState,"status-bar-loading-text":t.statusBarLoadingText,"status-bar-success-text":t.statusBarSuccessText,"status-bar-error-text":t.statusBarErrorText,"show-left-button":t.showLeftButton,"left-button-text":t.leftButtonText,"left-button-type":t.leftButtonType,"left-button-suffix":t.leftButtonSuffix,"left-button-cls":t.leftButtonCls}})]}))],2)};x._withStripped=!0;const _=Object(n.a)({render:x,staticRenderFns:[]},void 0,w,void 0,!1,void 0,!1,void 0,void 0,void 0);e.a=_},function(t,e,i){"use strict";var n=i(17),o=i(19),r=i(36);function s(t,e){return e.reduce((e,i)=>(t.hasOwnProperty(i)&&(e[i]=t[i]),e),{})}let a=0;const l=["disabled","name","order","slim","slotProps","tag","to"],c=["multiple","transition"];var u=Object(n.b)().extend({name:"Portal",inheritAttrs:!1,props:{hasPortalTarget:{type:Boolean,default:!1},append:{type:[Boolean,String],default:!0},bail:{type:Boolean,default:!1},mountTo:{type:String},disabled:{type:Boolean},name:{type:String,default:()=>"mounted_"+String(a++)},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:()=>({})},tag:{type:String,default:"DIV"},to:{type:String,default:()=>String(Math.round(1e7*Math.random()))},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:()=>({})},targetTag:{type:String,default:"div"},targetClass:{type:String,default:""},targetStyle:{type:Object,default:()=>({})},transition:{type:[String,Object,Function]}},created(){if(this.hasPortalTarget)return;if("undefined"==typeof document)return;let t=document.querySelector(this.mountTo);if(!t)return void console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"));const e=this.$props;if(o.Wormhole.targets[e.name])return void(e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted. Aborting because 'bail: true' is set")):this.portalTarget=o.Wormhole.targets[e.name]);const{append:i}=e;if(i){const e="string"==typeof i?i:"DIV",n=document.createElement(e);t.appendChild(n),t=n}const n=s(this.$props,c);n.slim=this.targetSlim,n.tag=this.targetTag,n.slotProps=this.targetSlotProps,n.name=this.to,n.customStyle=this.targetStyle,n.customClass=this.targetClass,this.portalTarget=new r.a({el:t,parent:this.$parent||this,propsData:n})},watch:{targetStyle(t){this.portalTarget&&(this.portalTarget.currentStyle=t)},targetClass(t){this.portalTarget&&(this.portalTarget.currentClass=t)}},beforeDestroy(){const t=this.portalTarget;if(this.append&&!1===this.hasPortalTarget){const e=t.$el;e.parentNode.removeChild(e)}t&&t.$destroy()},render(t){if(!this.portalTarget&&!1===this.hasPortalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){const e=s(this.$props,l);return t(o.Portal,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}let e=this.$scopedSlots.manual({to:this.to});return Array.isArray(e)&&(e=e[0]),e||t()}});e.a=u},function(t,e,i){var n=i(6).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},function(t,e){t.exports=!1},function(t,e,i){var n=i(6),o=i(10),r=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(n[t]):n[t]&&n[t][e]}},function(t,e,i){var n,o=i(24),r=i(138),s=i(77),a=i(76),l=i(148),c=i(69),u=i(78),d=u("IE_PROTO"),p=function(){},h=function(t){return"