/*! For license information please see syno-vue-components.min.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("syno-vue-components",["vue"],e):"object"==typeof exports?exports["syno-vue-components"]=e(require("vue")):t["syno-vue-components"]=e(t.Vue)}(window,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/dsm/",i(i.s=277)}([function(t,e,i){var n=i(110),s=i(152)((function(t,e,i){n(t,e,i)}));t.exports=s},function(e,i){e.exports=t},function(t,e,i){var n=i(4),s=i(178),o=i(179),r=Math.max,a=Math.min;t.exports=function(t,e,i){var l,c,u,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var i=l,n=c;return l=c=void 0,f=e,d=t.apply(n,i)}function b(t){return f=t,h=setTimeout(x,e),m?y(t):d}function w(t){var i=t-p;return void 0===p||i>=e||i<0||g&&t-f>=u}function x(){var t=s();if(w(t))return _(t);h=setTimeout(x,function(t){var i=e-(t-p);return g?a(i,u-(t-f)):i}(t))}function _(t){return h=void 0,v&&l?y(t):(l=c=void 0,d)}function S(){var t=s(),i=w(t);if(l=arguments,c=this,p=t,i){if(void 0===h)return b(p);if(g)return clearTimeout(h),h=setTimeout(x,e),y(p)}return void 0===h&&(h=setTimeout(x,e)),d}return e=o(e)||0,n(i)&&(m=!!i.leading,u=(g="maxWait"in i)?r(o(i.maxWait)||0,e):u,v="trailing"in i?!!i.trailing:v),S.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},S.flush=function(){return void 0===h?d:_(s())},S}},function(t,e,i){var n=i(50),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();t.exports=o},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,s=(n=i(1))&&"object"==typeof n&&"default"in n?n.default:n;function o(t){return(o="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 r(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 s=this.$_getTransportIndex(t);if(s>=0){var o=this.transports[i].slice(0);o.splice(s,1),this.transports[i]=o}}},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),p=1,f=s.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(p++)}},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(){h.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){h.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};h.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:r(t),order:this.order};h.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=s.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:h.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){h.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){h.unregisterTarget(e),h.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){h.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],s="function"==typeof n?n(e):i.passengers;return t.concat(s)}),[])}(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)}}),g=0,v=["disabled","name","order","slim","slotProps","tag","to"],y=["multiple","transition"],b=s.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(g++)}},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(h.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=h.targets[e.name];else{var i=e.append;if(i){var n="string"==typeof i?i:"DIV",s=document.createElement(n);t.appendChild(s),t=s}var o=l(this.$props,y);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new m({el:t,parent:this.$parent||this,propsData:o})}}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,v);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=h},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){var i=Array.isArray;t.exports=i},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var o=i(46),r=i(82);s(i(82),e);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},c=function(){function t(t,e,i){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(i=e,e=l),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:l,this.elementCB=null!=i?i:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){var t;this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null!==(t=this.parser)&&void 0!==t?t:null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var i=this.options.xmlMode?o.ElementType.Tag:void 0,n=new r.Element(t,e,void 0,i);this.addNode(n),this.tagStack.push(n)},t.prototype.ontext=function(t){var e=this.options.normalizeWhitespace,i=this.lastNode;if(i&&i.type===o.ElementType.Text)e?i.data=(i.data+t).replace(a," "):i.data+=t;else{e&&(t=t.replace(a," "));var n=new r.Text(t);this.addNode(n),this.lastNode=n}},t.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=t;else{var e=new r.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new r.Text(""),e=new r.NodeWithChildren(o.ElementType.CDATA,[t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var i=new r.ProcessingInstruction(t,e);this.addNode(i)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],i=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),i&&(t.prev=i,i.next=t),t.parent=e,this.lastNode=null},t}();e.DomHandler=c,e.default=c},function(t,e,i){var n=i(121),s=i(126);t.exports=function(t,e){var i=s(t,e);return n(i)?i:void 0}},function(t,e,i){var n=i(13),s=i(122),o=i(123),r=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?s(t):o(t)}},function(t,e,i){var n=i(64),s=i(32);t.exports=function(t,e,i,o){var r=!i;i||(i={});for(var a=-1,l=e.length;++a1),e})),a(t,u(t),i),c&&(i=s(i,7,l));for(var d=e.length;d--;)o(i,e[d]);return i}));t.exports=d},,,,function(t,e,i){var n=i(111),s=i(112),o=i(113),r=i(114),a=i(115);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e,i){var n=i(10),s=i(35),o=i(6),r=Function.prototype,a=Object.prototype,l=r.toString,c=a.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=s(t);if(null===e)return!0;var i=c.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&l.call(i)==u}},function(t,e,i){var n=i(147),s=i(39),o=i(40),r=o&&o.isTypedArray,a=r?s(r):n;t.exports=a},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,i){var n=i(32),s=i(20),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){var r=t[e];o.call(t,e)&&s(r,i)&&(void 0!==i||e in t)||n(t,e,i)}},function(t,e,i){var n=i(149),s=i(37),o=i(7),r=i(38),a=i(66),l=i(62),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var i=o(t),u=!i&&s(t),d=!i&&!u&&r(t),h=!i&&!u&&!d&&l(t),p=i||u||d||h,f=p?n(t.length,String):[],m=f.length;for(var g in t)!e&&!c.call(t,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},function(t,e){var i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t0&&o.has(this.stack[this.stack.length-1]);){var r=this.stack.pop();null===(i=(e=this.cbs).onclosetag)||void 0===i||i.call(e,r)}this.isVoidElement(t)||(this.stack.push(t),h.has(t)?this.foreignContext.push(!0):p.has(t)&&this.foreignContext.push(!1)),null===(s=(n=this.cbs).onopentagname)||void 0===s||s.call(n,t),this.cbs.onopentag&&(this.attribs={})},t.prototype.onopentagend=function(){var t,e;this.endIndex=this.tokenizer.getAbsoluteIndex(),this.attribs&&(null===(e=(t=this.cbs).onopentag)||void 0===e||e.call(t,this.tagname,this.attribs),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},t.prototype.onclosetag=function(t){if(this.updatePosition(1),this.lowerCaseTagNames&&(t=t.toLowerCase()),(h.has(t)||p.has(t))&&this.foreignContext.pop(),this.stack.length&&!this.isVoidElement(t)){var e=this.stack.lastIndexOf(t);if(-1!==e)if(this.cbs.onclosetag)for(e=this.stack.length-e;e--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=e;else"p"!==t||this.options.xmlMode||(this.onopentagname(t),this.closeCurrentTag())}else this.options.xmlMode||"br"!==t&&"p"!==t||(this.onopentagname(t),this.closeCurrentTag())},t.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},t.prototype.closeCurrentTag=function(){var t,e,i=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===i&&(null===(e=(t=this.cbs).onclosetag)||void 0===e||e.call(t,i),this.stack.pop())},t.prototype.onattribname=function(t){this.lowerCaseAttributeNames&&(t=t.toLowerCase()),this.attribname=t},t.prototype.onattribdata=function(t){this.attribvalue+=t},t.prototype.onattribend=function(t){var e,i;null===(i=(e=this.cbs).onattribute)||void 0===i||i.call(e,this.attribname,this.attribvalue,t),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},t.prototype.getInstructionName=function(t){var e=t.search(f),i=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i},t.prototype.ondeclaration=function(t){if(this.cbs.onprocessinginstruction){this.updatePosition(2);var e=this.getInstructionName(t);this.cbs.onprocessinginstruction("!"+e,"!"+t)}},t.prototype.onprocessinginstruction=function(t){if(this.cbs.onprocessinginstruction){this.updatePosition(2);var e=this.getInstructionName(t);this.cbs.onprocessinginstruction("?"+e,"?"+t)}},t.prototype.oncomment=function(t){var e,i,n,s;this.updatePosition(4),null===(i=(e=this.cbs).oncomment)||void 0===i||i.call(e,t),null===(s=(n=this.cbs).oncommentend)||void 0===s||s.call(n)},t.prototype.oncdata=function(t){var e,i,n,s,o,r;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(e=this.cbs).oncdatastart)||void 0===i||i.call(e),null===(s=(n=this.cbs).ontext)||void 0===s||s.call(n,t),null===(r=(o=this.cbs).oncdataend)||void 0===r||r.call(o)):this.oncomment("[CDATA["+t+"]]")},t.prototype.onerror=function(t){var e,i;null===(i=(e=this.cbs).onerror)||void 0===i||i.call(e,t)},t.prototype.onend=function(){var t,e;if(this.cbs.onclosetag)for(var i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i]));null===(e=(t=this.cbs).onend)||void 0===e||e.call(t)},t.prototype.reset=function(){var t,e,i,n;null===(e=(t=this.cbs).onreset)||void 0===e||e.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(n=(i=this.cbs).onparserinit)||void 0===n||n.call(i,this)},t.prototype.parseComplete=function(t){this.reset(),this.end(t)},t.prototype.write=function(t){this.tokenizer.write(t)},t.prototype.end=function(t){this.tokenizer.end(t)},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){this.tokenizer.resume()},t.prototype.parseChunk=function(t){this.write(t)},t.prototype.done=function(t){this.end(t)},t}();e.Parser=m},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(i(81)),o=i(259);function r(t){return 32===t||10===t||9===t||12===t||13===t}function a(t,e,i){var n=t.charCodeAt(0),s=t.toLowerCase().charCodeAt(0);return function(t,o){o===s||o===n?t._state=e:(t._state=i,t._index--)}}var l=a("C",24,16),c=a("D",25,16),u=a("A",26,16),d=a("T",27,16),h=a("A",28,16),p=a("R",35,3),f=a("I",36,3),m=a("P",37,3),g=a("T",38,3),v=a("R",40,1),y=a("I",41,1),b=a("P",42,1),w=a("T",43,1),x=a("Y",45,3),_=a("L",46,3),S=a("E",47,3),C=a("Y",49,1),k=a("L",50,1),T=a("E",51,1),D=a("I",54,3),I=a("T",55,3),$=a("L",56,3),O=a("E",57,3),M=a("I",58,1),E=a("T",59,1),B=a("L",60,1),A=a("E",61,1),P=a("X",66,65),N=function(){function t(t,e){var i;this.cbs=e,this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.trieIndex=0,this.trieCurrent=0,this.trieResult=null,this.trieExcess=0,this.cbs=e,this.xmlMode=!!(null==t?void 0:t.xmlMode),this.decodeEntities=null===(i=null==t?void 0:t.decodeEntities)||void 0===i||i,this.entityTrie=this.xmlMode?o.xmlDecodeTree:o.htmlDecodeTree}return t.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},t.prototype.write=function(t){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=t,this.parse()},t.prototype.end=function(t){this.ended&&this.cbs.onerror(Error(".end() after done!")),t&&this.write(t),this.ended=!0,this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||38!==t||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},t.prototype.isTagStartChar=function(t){return function(t){return t>=97&&t<=122||t>=65&&t<=90}(t)||this.xmlMode&&!r(t)&&47!==t&&62!==t},t.prototype.stateBeforeTagName=function(t){47===t?this._state=5:60===t?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):62===t||1!==this.special||r(t)?this._state=1:33===t?(this._state=15,this.sectionStart=this._index+1):63===t?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(t)?(this._state=this.xmlMode||115!==t&&83!==t?this.xmlMode||116!==t&&84!==t?3:52:32,this.sectionStart=this._index):this._state=1},t.prototype.stateInTagName=function(t){(47===t||62===t||r(t))&&(this.cbs.onopentagname(this.getSection()),this.sectionStart=-1,this._state=8,this.stateBeforeAttributeName(t))},t.prototype.stateBeforeClosingTagName=function(t){r(t)||(62===t?this._state=1:1!==this.special?4===this.special||115!==t&&83!==t?4!==this.special||116!==t&&84!==t?(this._state=1,this.stateText(t)):this._state=53:this._state=33:this.isTagStartChar(t)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},t.prototype.stateInClosingTagName=function(t){(62===t||r(t))&&(this.cbs.onclosetag(this.getSection()),this.sectionStart=-1,this._state=7,this.stateAfterClosingTagName(t))},t.prototype.stateAfterClosingTagName=function(t){62===t&&(this._state=1,this.sectionStart=this._index+1)},t.prototype.stateBeforeAttributeName=function(t){62===t?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):47===t?this._state=4:r(t)||(this._state=9,this.sectionStart=this._index)},t.prototype.stateInSelfClosingTag=function(t){62===t?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):r(t)||(this._state=8,this.stateBeforeAttributeName(t))},t.prototype.stateInAttributeName=function(t){(61===t||47===t||62===t||r(t))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this.stateAfterAttributeName(t))},t.prototype.stateAfterAttributeName=function(t){61===t?this._state=11:47===t||62===t?(this.cbs.onattribend(void 0),this._state=8,this.stateBeforeAttributeName(t)):r(t)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},t.prototype.stateBeforeAttributeValue=function(t){34===t?(this._state=12,this.sectionStart=this._index+1):39===t?(this._state=13,this.sectionStart=this._index+1):r(t)||(this.sectionStart=this._index,this._state=14,this.stateInAttributeValueNoQuotes(t))},t.prototype.handleInAttributeValue=function(t,e){t===e?(this.cbs.onattribdata(this.getSection()),this.sectionStart=-1,this.cbs.onattribend(String.fromCharCode(e)),this._state=8):this.decodeEntities&&38===t&&(this.cbs.onattribdata(this.getSection()),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},t.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,34)},t.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,39)},t.prototype.stateInAttributeValueNoQuotes=function(t){r(t)||62===t?(this.cbs.onattribdata(this.getSection()),this.sectionStart=-1,this.cbs.onattribend(null),this._state=8,this.stateBeforeAttributeName(t)):this.decodeEntities&&38===t&&(this.cbs.onattribdata(this.getSection()),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},t.prototype.stateBeforeDeclaration=function(t){this._state=91===t?23:45===t?18:16},t.prototype.stateInDeclaration=function(t){62===t&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},t.prototype.stateInProcessingInstruction=function(t){62===t&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},t.prototype.stateBeforeComment=function(t){45===t?(this._state=19,this.sectionStart=this._index+1):this._state=16},t.prototype.stateInComment=function(t){45===t&&(this._state=21)},t.prototype.stateInSpecialComment=function(t){62===t&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},t.prototype.stateAfterComment1=function(t){this._state=45===t?22:19},t.prototype.stateAfterComment2=function(t){62===t?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):45!==t&&(this._state=19)},t.prototype.stateBeforeCdata6=function(t){91===t?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this.stateInDeclaration(t))},t.prototype.stateInCdata=function(t){93===t&&(this._state=30)},t.prototype.stateAfterCdata1=function(t){this._state=93===t?31:29},t.prototype.stateAfterCdata2=function(t){62===t?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):93!==t&&(this._state=29)},t.prototype.stateBeforeSpecialS=function(t){99===t||67===t?this._state=34:116===t||84===t?this._state=44:(this._state=3,this.stateInTagName(t))},t.prototype.stateBeforeSpecialSEnd=function(t){2!==this.special||99!==t&&67!==t?3!==this.special||116!==t&&84!==t?this._state=1:this._state=48:this._state=39},t.prototype.stateBeforeSpecialLast=function(t,e){(47===t||62===t||r(t))&&(this.special=e),this._state=3,this.stateInTagName(t)},t.prototype.stateAfterSpecialLast=function(t,e){62===t||r(t)?(this.sectionStart=this._index-e,this.special=1,this._state=6,this.stateInClosingTagName(t)):this._state=1},t.prototype.stateBeforeEntity=function(t){35===t?this._state=63:38===t?(this.emitPartial(this.getSection()),this.sectionStart=this._index):(this._state=64,this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.trieResult=null,this.trieExcess=1,this._index--)},t.prototype.stateInNamedEntity=function(t){this.trieExcess+=1,this.trieIndex=o.determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0?this.emitNamedEntity():(this.trieCurrent=this.entityTrie[this.trieIndex],this.trieCurrent&o.BinTrieFlags.HAS_VALUE&&(this.allowLegacyEntity()||59===t?(this.trieResult=this.trieCurrent&o.BinTrieFlags.MULTI_BYTE?String.fromCharCode(this.entityTrie[++this.trieIndex],this.entityTrie[++this.trieIndex]):String.fromCharCode(this.entityTrie[++this.trieIndex]),this.trieExcess=0):this.trieIndex+=1))},t.prototype.emitNamedEntity=function(){this.trieResult&&this.emitPartial(this.trieResult),this.sectionStart=this._index-this.trieExcess+1,this._state=this.baseState,this._index--},t.prototype.decodeNumericEntity=function(t,e){var i=this.sectionStart+2+(t>>4);if(i!==this._index){var n=this.buffer.substring(i,this._index),o=parseInt(n,t);this.emitPartial(s.default(o)),this.sectionStart=e?this._index+1:this._index}this._state=this.baseState},t.prototype.stateInNumericEntity=function(t){59===t?this.decodeNumericEntity(10,!0):(t<48||t>57)&&(this.allowLegacyEntity()?this.decodeNumericEntity(10,!1):this._state=this.baseState,this._index--)},t.prototype.stateInHexEntity=function(t){59===t?this.decodeNumericEntity(16,!0):(t<97||t>102)&&(t<65||t>70)&&(t<48||t>57)&&(this.allowLegacyEntity()?this.decodeNumericEntity(16,!1):this._state=this.baseState,this._index--)},t.prototype.allowLegacyEntity=function(){return!this.xmlMode&&1===this.baseState},t.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},t.prototype.parse=function(){for(;this._index65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)};e.default=function(t){var e;return t>=55296&&t<=57343||t>1114111?"�":s(null!==(e=n.get(t))&&void 0!==e?e:t)}},function(t,e,i){"use strict";var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(l);e.NodeWithChildren=p;var f=function(t){function e(e){return t.call(this,r.ElementType.Root,e)||this}return s(e,t),e}(p);e.Document=f;var m=function(t){function e(e,i,n,s){void 0===n&&(n=[]),void 0===s&&(s="script"===e?r.ElementType.Script:"style"===e?r.ElementType.Style:r.ElementType.Tag);var o=t.call(this,s,n)||this;return o.name=e,o.attribs=i,o}return s(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var i,n;return{name:e,value:t.attribs[e],namespace:null===(i=t["x-attribsNamespace"])||void 0===i?void 0:i[e],prefix:null===(n=t["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))},enumerable:!1,configurable:!0}),e}(p);function g(t){return r.isTag(t)}function v(t){return t.type===r.ElementType.CDATA}function y(t){return t.type===r.ElementType.Text}function b(t){return t.type===r.ElementType.Comment}function w(t){return t.type===r.ElementType.Directive}function x(t){return t.type===r.ElementType.Root}function _(t,e){var i;if(void 0===e&&(e=!1),y(t))i=new u(t.data);else if(b(t))i=new d(t.data);else if(g(t)){var n=e?S(t.children):[],s=new m(t.name,o({},t.attribs),n);n.forEach((function(t){return t.parent=s})),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]=o({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]=o({},t["x-attribsPrefix"])),i=s}else if(v(t)){n=e?S(t.children):[];var a=new p(r.ElementType.CDATA,n);n.forEach((function(t){return t.parent=a})),i=a}else if(x(t)){n=e?S(t.children):[];var l=new f(n);n.forEach((function(t){return t.parent=l})),t["x-mode"]&&(l["x-mode"]=t["x-mode"]),i=l}else{if(!w(t))throw new Error("Not implemented yet: "+t.type);var c=new h(t.name,t.data);null!=t["x-name"]&&(c["x-name"]=t["x-name"],c["x-publicId"]=t["x-publicId"],c["x-systemId"]=t["x-systemId"]),i=c}return i.startIndex=t.startIndex,i.endIndex=t.endIndex,i}function S(t){for(var e=t.map((function(t){return _(t,!0)})),i=1;i",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.escape=e.encodeHTML=e.encodeXML=void 0;var s=l(n(i(87)).default),o=c(s);e.encodeXML=h(s,o);var r=l(n(i(86)).default),a=c(r);function l(t){return Object.keys(t).sort().reduce((function(e,i){return e[t[i]]="&"+i+";",e}),{})}function c(t){for(var e=[],i=[],n=0,s=Object.keys(t);n0){var u=s(t,c.children,i,o);if(r.push.apply(r,u),(o-=u.length)<=0)break}}return r}e.filter=function(t,e,i,n){return void 0===i&&(i=!0),void 0===n&&(n=1/0),Array.isArray(e)||(e=[e]),s(t,e,i,n)},e.find=s,e.findOneChild=function(t,e){return e.find(t)},e.findOne=function t(e,i,s){void 0===s&&(s=!0);for(var o=null,r=0;r0&&(o=t(e,a.children)))}return o},e.existsOne=function t(e,i){return i.some((function(i){return n.isTag(i)&&(e(i)||i.children.length>0&&t(e,i.children))}))},e.findAll=function(t,e){for(var i,s,o=[],r=e.filter(n.isTag);s=r.shift();){var a=null===(i=s.children)||void 0===i?void 0:i.filter(n.isTag);a&&a.length>0&&r.unshift.apply(r,a),t(s)&&o.push(s)}return o}},function(t,e,i){"use strict";(function(t){var i=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some((function(t,n){return t[0]===e&&(i=n,!0)})),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),n=this.__entries__[i];return n&&n[1]},e.prototype.set=function(e,i){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,n=t(i,e);~n&&i.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i0},t.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;r.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),c=function(t,e){for(var i=0,n=Object.keys(e);i0},t}(),x="undefined"!=typeof WeakMap?new WeakMap:new i,_=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=l.getInstance(),n=new w(e,i,this);x.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){_.prototype[t]=function(){var e;return(e=x.get(this))[t].apply(e,arguments)}}));var S=void 0!==s.ResizeObserver?s.ResizeObserver:_;e.a=S}).call(this,i(31))},function(t,e,i){"use strict";(function(t){function i(){return(i=Object.assign||function(t){for(var e=1;e=o)return t;switch(t){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(i){return"[Circular]"}break;default:return t}})),a=e[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},w={integer:function(t){return w.number(t)&&parseInt(t,10)===t},float:function(t){return w.number(t)&&!w.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"==typeof t&&!w.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(b.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(b.url)},hex:function(t){return"string"==typeof t&&!!t.match(b.hex)}};var x={required:y,whitespace:function(t,e,i,n,s){(/^\s+$/.test(e)||""===e)&&n.push(d(s.messages.whitespace,t.fullField))},type:function(t,e,i,n,s){if(t.required&&void 0===e)y(t,e,i,n,s);else{var o=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?w[o](e)||n.push(d(s.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&n.push(d(s.messages.types[o],t.fullField,t.type))}},range:function(t,e,i,n,s){var o="number"==typeof t.len,r="number"==typeof t.min,a="number"==typeof t.max,l=e,c=null,u="number"==typeof e,h="string"==typeof e,p=Array.isArray(e);if(u?c="number":h?c="string":p&&(c="array"),!c)return!1;p&&(l=e.length),h&&(l=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==t.len&&n.push(d(s.messages[c].len,t.fullField,t.len)):r&&!a&&lt.max?n.push(d(s.messages[c].max,t.fullField,t.max)):r&&a&&(lt.max)&&n.push(d(s.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,i,n,s){t.enum=Array.isArray(t.enum)?t.enum:[],-1===t.enum.indexOf(e)&&n.push(d(s.messages.enum,t.fullField,t.enum.join(", ")))},pattern:function(t,e,i,n,s){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||n.push(d(s.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){new RegExp(t.pattern).test(e)||n.push(d(s.messages.pattern.mismatch,t.fullField,e,t.pattern))}}};function _(t,e,i,n,s){var o=t.type,r=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e,o)&&!t.required)return i();x.required(t,e,n,r,s,o),h(e,o)||x.type(t,e,n,r,s)}i(r)}var S={string:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e,"string")&&!t.required)return i();x.required(t,e,n,o,s,"string"),h(e,"string")||(x.type(t,e,n,o,s),x.range(t,e,n,o,s),x.pattern(t,e,n,o,s),!0===t.whitespace&&x.whitespace(t,e,n,o,s))}i(o)},method:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&x.type(t,e,n,o,s)}i(o)},number:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(""===e&&(e=void 0),h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&(x.type(t,e,n,o,s),x.range(t,e,n,o,s))}i(o)},boolean:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&x.type(t,e,n,o,s)}i(o)},regexp:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),h(e)||x.type(t,e,n,o,s)}i(o)},integer:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&(x.type(t,e,n,o,s),x.range(t,e,n,o,s))}i(o)},float:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&(x.type(t,e,n,o,s),x.range(t,e,n,o,s))}i(o)},array:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e,"array")&&!t.required)return i();x.required(t,e,n,o,s,"array"),h(e,"array")||(x.type(t,e,n,o,s),x.range(t,e,n,o,s))}i(o)},object:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&x.type(t,e,n,o,s)}i(o)},enum:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s),void 0!==e&&x.enum(t,e,n,o,s)}i(o)},pattern:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e,"string")&&!t.required)return i();x.required(t,e,n,o,s),h(e,"string")||x.pattern(t,e,n,o,s)}i(o)},date:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();var r;if(x.required(t,e,n,o,s),!h(e))r="number"==typeof e?new Date(e):e,x.type(t,r,n,o,s),r&&x.range(t,r.getTime(),n,o,s)}i(o)},url:_,hex:_,email:_,required:function(t,e,i,n,s){var o=[],r=Array.isArray(e)?"array":typeof e;x.required(t,e,n,o,s,r),i(o)},any:function(t,e,i,n,s){var o=[];if(t.required||!t.required&&n.hasOwnProperty(t.field)){if(h(e)&&!t.required)return i();x.required(t,e,n,o,s)}i(o)}};function C(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var k=C();function T(t){this.rules=null,this._messages=k,this.define(t)}T.prototype={messages:function(t){return t&&(this._messages=v(C(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof t||Array.isArray(t))throw new Error("Rules must be an object");var e,i;for(e in this.rules={},t)t.hasOwnProperty(e)&&(i=t[e],this.rules[e]=Array.isArray(i)?i:[i])},validate:function(t,e,n){var s=this;void 0===e&&(e={}),void 0===n&&(n=function(){});var o,r,a=t,l=e,c=n;if("function"==typeof l&&(c=l,l={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();if(l.messages){var h=this.messages();h===k&&(h=C()),v(h,l.messages),l.messages=h}else l.messages=this.messages();var p={};(l.keys||Object.keys(this.rules)).forEach((function(e){o=s.rules[e],r=a[e],o.forEach((function(n){var o=n;"function"==typeof o.transform&&(a===t&&(a=i({},a)),r=a[e]=o.transform(r)),(o="function"==typeof o?{validator:o}:i({},o)).validator=s.getValidationMethod(o),o.field=e,o.fullField=o.fullField||e,o.type=s.getType(o),o.validator&&(p[e]=p[e]||[],p[e].push({rule:o,value:r,source:a,field:e}))}))}));var f={};return m(p,l,(function(t,e){var n,s=t.rule,o=!("object"!==s.type&&"array"!==s.type||"object"!=typeof s.fields&&"object"!=typeof s.defaultField);function r(t,e){return i(i({},e),{},{fullField:s.fullField+"."+t})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!l.suppressWarning&&a.length&&T.warning("async-validator:",a),a.length&&s.message&&(a=[].concat(s.message)),a=a.map(g(s)),l.first&&a.length)return f[s.field]=1,e(a);if(o){if(s.required&&!t.value)return s.message?a=[].concat(s.message).map(g(s)):l.error&&(a=[l.error(s,d(l.messages.required,s.field))]),e(a);var c={};if(s.defaultField)for(var u in t.value)t.value.hasOwnProperty(u)&&(c[u]=s.defaultField);for(var h in c=i(i({},c),t.rule.fields))if(c.hasOwnProperty(h)){var p=Array.isArray(c[h])?c[h]:[c[h]];c[h]=p.map(r.bind(null,h))}var m=new T(c);m.messages(l.messages),t.rule.options&&(t.rule.options.messages=l.messages,t.rule.options.error=l.error),m.validate(t.value,t.rule.options||l,(function(t){var i=[];a&&a.length&&i.push.apply(i,a),t&&t.length&&i.push.apply(i,t),e(i.length?i:null)}))}else e(a)}o=o&&(s.required||!s.required&&t.value),s.field=t.field,s.asyncValidator?n=s.asyncValidator(s,t.value,a,t.source,l):s.validator&&(!0===(n=s.validator(s,t.value,a,t.source,l))?a():!1===n?a(s.message||s.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(t){return a(t)}))}),(function(t){!function(t){var e,i,n,s=[],o={};for(e=0;e1?1:o<0?0:o;else{if(isNaN(o))throw new Error("["+n+"]: Invalid color: ("+s.join(",")+")");"hue"===t?this._hue=o<0?o-Math.floor(o):o%1:this["_"+t]=o<0?0:o>1?1:o}}),this)},t[n].propertyNames=s;var a=t[n].prototype;for(var l in["valueOf","hex","hexa","css","cssa"].forEach((function(t){a[t]=a[t]||("RGB"===n?a.hex:function(){return this.rgb()[t]()})})),a.isColor=!0,a.equals=function(t,e){i(e)&&(e=1e-10),t=t[n.toLowerCase()]();for(var o=0;oe)return!1;return!0},a.toJSON=function(){return[n].concat(s.map((function(t){return this["_"+t]}),this))},o)if(o.hasOwnProperty(l)){var c=l.match(/^from(.*)$/);c?t[c[1].toUpperCase()].prototype[n.toLowerCase()]=o[l]:a[l]=o[l]}return a[n.toLowerCase()]=function(){return this},a.toString=function(){return"["+n+" "+s.map((function(t){return this["_"+t]}),this).join(", ")+"]"},s.forEach((function(t){var e="black"===t?"k":t.charAt(0);a[t]=a[e]=function(e,i){return void 0===e?this["_"+t]:i?new this.constructor(s.map((function(i){return this["_"+i]+(t===i?e:0)}),this)):new this.constructor(s.map((function(i){return t===i?e:this["_"+i]}),this))}})),e.forEach((function(t){r(n,t),r(t,n)})),e.push(n),t},t.pluginList=[],t.use=function(e){return-1===t.pluginList.indexOf(e)&&(this.pluginList.push(e),e(t)),t},t.installMethod=function(i,n){return e.forEach((function(e){t[e].prototype[i]=n})),this},t.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var t=(65536*Math.round(255*this._red)+256*Math.round(255*this._green)+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-t.length)+t},hexa:function(){var t=Math.round(255*this._alpha).toString(16);return"#"+"00".substr(0,2-t.length)+t+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}});var r=function(t){t.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var e=function(t){return t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92},i=e(this._red),n=e(this._green),s=e(this._blue);return new t.XYZ(.4124564*i+.3575761*n+.1804375*s,.2126729*i+.7151522*n+.072175*s,.0193339*i+.119192*n+.9503041*s,this._alpha)},rgb:function(){var e=this._x,i=this._y,n=this._z,s=function(t){return t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t};return new t.RGB(s(3.2404542*e+-1.5371385*i+-.4985314*n),s(-.969266*e+1.8760108*i+.041556*n),s(.0556434*e+-.2040259*i+1.0572252*n),this._alpha)},lab:function(){var e=function(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29},i=e(this._x/95.047),n=e(this._y/100),s=e(this._z/108.883);return new t.LAB(116*n-16,500*(i-n),200*(n-s),this._alpha)}})},a=function(t){t.use(r),t.installColorSpace("LAB",["l","a","b","alpha"],{fromRgb:function(){return this.xyz().lab()},rgb:function(){return this.xyz().rgb()},xyz:function(){var e=function(t){var e=Math.pow(t,3);return e>.008856?e:(t-16/116)/7.87},i=(this._l+16)/116,n=this._a/500+i,s=i-this._b/200;return new t.XYZ(95.047*e(n),100*e(i),108.883*e(s),this._alpha)}})},l=function(t){t.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var e,i,n,s=this._hue,o=this._saturation,r=this._value,a=Math.min(5,Math.floor(6*s)),l=6*s-a,c=r*(1-o),u=r*(1-l*o),d=r*(1-(1-l)*o);switch(a){case 0:e=r,i=d,n=c;break;case 1:e=u,i=r,n=c;break;case 2:e=c,i=r,n=d;break;case 3:e=c,i=u,n=r;break;case 4:e=d,i=c,n=r;break;case 5:e=r,i=c,n=u}return new t.RGB(e,i,n,this._alpha)},hsl:function(){var e,i=(2-this._saturation)*this._value,n=this._saturation*this._value,s=i<=1?i:2-i;return e=s<1e-9?0:n/s,new t.HSL(this._hue,e,i/2,this._alpha)},fromRgb:function(){var e,i=this._red,n=this._green,s=this._blue,o=Math.max(i,n,s),r=o-Math.min(i,n,s),a=0===o?0:r/o,l=o;if(0===r)e=0;else switch(o){case i:e=(n-s)/r/6+(ni[t]?n[t]=(e[t]-i[t])/(1-i[t]):e[t]>i[t]?n[t]=(i[t]-e[t])/i[t]:n[t]=0})),n._red>n._green?n._red>n._blue?e._alpha=n._red:e._alpha=n._blue:n._green>n._blue?e._alpha=n._green:e._alpha=n._blue,e._alpha<1e-10||(s.forEach((function(t){e[t]=(e[t]-i[t])/e._alpha+i[t]})),e._alpha*=n._alpha),e}))};return t.use(r).use(a).use(l).use(c).use(u).use(d).use(h).use(p).use(f).use(m).use(g).use(v).use(y).use(b).use(w).use(x).use(_)}()})),s=r(o,"div");function o(t,e,i){var n=document.createElement(t);return n.className=e,i.appendChild(n),n}function r(t){var e=Array.prototype.slice,i=e.apply(arguments,[1]);return function(){return t.apply(null,i.concat(e.apply(arguments)))}}function a(t,e,i){return Math.min(Math.max(t,e),i)}var l={clamp:a,e:o,div:s,partial:r,labelInput:function(t,e,i,n){var r="colorPickerInput"+Math.floor(1001*Math.random()),a=s(t,i);return{label:function(t,e,i){var n=o("label","",e);return n.innerHTML=t,i&&n.setAttribute("for",i),n}(e,a,r),input:function(t,e,i,n){var s=o("input","",e);return s.type=t,i&&(s.maxLength=i),n&&s.setAttribute("id",n),i&&(s.maxLength=i),s}("text",a,n,r)}},X:function(t,e){t.style.left=a(100*e,0,100)+"%"},Y:function(t,e){t.style.top=a(100*e,0,100)+"%"},BG:function(t,e){t.style.background=e}},c={currentColor:function(t){var e=l.div("currentColorContainer",t),i=l.div("currentColor",e);return{change:function(t){l.BG(i,t.cssa())}}},fields:function(t,e,i){var n=i.space,s=i.limit||255,o=i.fix>=0?i.fix:0,r=(""+s).length+o;r=o?r+1:r;var a=n.split(""),c="A"==n[n.length-1];if(n=c?n.slice(0,-1):n,["RGB","HSL","HSV","CMYK"].indexOf(n)<0)return console.warn("Invalid field names",n);var u=l.div("colorFields",t),d=a.map((function(t){t=t.toLowerCase();var e=l.labelInput("color "+t,t,u,r);return e.input.onblur=h,e.input.onkeydown=p,e.input.onkeyup=f,{name:t,e:e}}));function h(){e.done()}function p(t){t.ctrlKey||t.altKey||!/^[a-zA-Z]$/.test(t.key)||t.preventDefault()}function f(){var t=[n];d.forEach((function(e){t.push(e.e.input.value/s)})),c||t.push(e.getAlpha()),e.set(t)}return{change:function(t){d.forEach((function(e){e.e.input.value=(t[e.name]()*s).toFixed(o)}))}}},hex:function(t,e,i){var n=l.labelInput("hex",i.label||"",t,7);return n.input.value="#",n.input.onkeyup=function(t){var i=t.keyCode||t.which,n=t.target.value;n=function(t,e,i){for(var n=t,s=t.length;s1?t[1]:{}):(s=t,o={});var a=s in u.extras?u.extras[s]:null;if(a)for(var l in n=a(r,function(t,e){var i=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t);return i.update=function(){t.update([e])},i}(e,s+i),o))e.on(l,n[l],s)}))}}(e,v,t.extras),m(),v}({e:e,color:n,cbs:t,extras:s})};var e,n};for(var d in u.rgb=u({init:function(t,e,i){var s=n(t).hsv();return this.xy(s,{x:s.saturation(),y:1-s.value()},e,i),this.z(s,s.hue(),e,i),s},xy:function(t,e,i){return l.X(i.pointer,e.x),l.Y(i.pointer,e.y),t.saturation(e.x).value(1-e.y)},z:function(t,e,i,n){return l.Y(n.pointer,e),h(i.background,e),t.hue(e)}}),u.hsl=u({init:function(t,e,i){var s=n(t).hsl();return this.xy(s,{x:s.hue(),y:1-s.saturation()},e,i),this.z(s,1-s.lightness(),e,i),s},xy:function(t,e,i,n){return l.X(i.pointer,e.x),l.Y(i.pointer,e.y),h(n.background,e.x),t.hue(e.x).saturation(1-e.y)},z:function(t,e,i,n){return l.Y(n.pointer,e),t.lightness(1-e)}}),u.extras={},u.registerExtra=function(t,e){t in u.extras&&console.warn('Extra "'+t+'"has been registered already!'),u.extras[t]=e},c)u.registerExtra(d,c[d]);function h(t,e){l.BG(t,new n.HSV(e,1,1).cssa())}function p(t){if(!m(t))return n("#000");if(t.isColor)return t;var e=n(t);return e||(m(t)&&console.warn("Passed invalid color to colorjoe, using black instead"),n("#000"))}function f(t){return"[object Array]"===Object.prototype.toString.call(t)}function m(t){return void 0!==t}function g(t){return"function"==typeof t}function v(t){return t}return u},t.exports=i()}).call(this,i(31))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return s(e,t),e},r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RssHandler=e.DefaultHandler=e.DomUtils=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0;var l=i(79);Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=i(8);function u(t,e){var i=new c.DomHandler(void 0,e);return new l.Parser(i,e).end(t),i.root}Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}}),e.parseDocument=u,e.parseDOM=function(t,e){return u(t,e).children},e.createDomStream=function(t,e,i){var n=new c.DomHandler(t,e,i);return new l.Parser(n,e)};var d=i(80);Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return a(d).default}});var h=o(i(262));e.ElementType=h,r(i(83),e),e.DomUtils=o(i(84));var p=i(83);Object.defineProperty(e,"RssHandler",{enumerable:!0,get:function(){return p.FeedHandler}})},,,,,,,,,,,,function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){var n=i(49),s=i(53),o=i(139),r=i(141),a=i(4),l=i(24),c=i(63);t.exports=function t(e,i,u,d,h){e!==i&&o(i,(function(o,l){if(h||(h=new n),a(o))r(e,i,l,u,t,d,h);else{var p=d?d(c(e,l),o,l+"",e,i,h):void 0;void 0===p&&(p=o),s(e,l,p)}}),l)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,i){var n=i(19),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,i=n(e,t);return!(i<0)&&(i==e.length-1?e.pop():s.call(e,i,1),--this.size,!0)}},function(t,e,i){var n=i(19);t.exports=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}},function(t,e,i){var n=i(19);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,i){var n=i(19);t.exports=function(t,e){var i=this.__data__,s=n(i,t);return s<0?(++this.size,i.push([t,e])):i[s][1]=e,this}},function(t,e,i){var n=i(18);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,i){var n=i(18),s=i(29),o=i(52);t.exports=function(t,e){var i=this.__data__;if(i instanceof n){var r=i.__data__;if(!s||r.length<199)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new o(r)}return i.set(t,e),this.size=i.size,this}},function(t,e,i){var n=i(30),s=i(124),o=i(4),r=i(51),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||s(t))&&(n(t)?h:a).test(r(t))}},function(t,e,i){var n=i(13),s=Object.prototype,o=s.hasOwnProperty,r=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(l){}var s=r.call(t);return n&&(e?t[a]=i:delete t[a]),s}},function(t,e){var i=Object.prototype.toString;t.exports=function(t){return i.call(t)}},function(t,e,i){var n,s=i(125),o=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},function(t,e,i){var n=i(3)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,i){var n=i(128),s=i(18),o=i(29);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},function(t,e,i){var n=i(129),s=i(130),o=i(131),r=i(132),a=i(133);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e1?i[o-1]:void 0,a=o>2?i[2]:void 0;for(r=t.length>3&&"function"==typeof r?(o--,r):void 0,a&&s(i[0],i[1],a)&&(r=o<3?void 0:r,o=1),e=Object(e);++n0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,i){var n=i(20),s=i(23),o=i(66),r=i(4);t.exports=function(t,e,i){if(!r(i))return!1;var a=typeof e;return!!("number"==a?s(i)&&o(e,i.length):"string"==a&&e in i)&&n(i[e],t)}},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){var n=i(7),s=i(25),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!s(t))||(r.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,i){var n=i(172),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,(function(t,i,n,s){e.push(n?s.replace(o,"$1"):i||t)})),e}));t.exports=r},function(t,e,i){var n=i(173);t.exports=function(t){var e=n(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}},function(t,e,i){var n=i(52);function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,s=e?e.apply(this,n):n[0],o=i.cache;if(o.has(s))return o.get(s);var r=t.apply(this,n);return i.cache=o.set(s,r)||o,r};return i.cache=new(s.Cache||n),i}s.Cache=n,t.exports=s},function(t,e,i){var n=i(175);t.exports=function(t){return null==t?"":n(t)}},function(t,e,i){var n=i(13),s=i(71),o=i(7),r=i(25),a=n?n.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return s(e,t)+"";if(r(e))return l?l.call(e):"";var i=e+"";return"0"==i&&1/e==-Infinity?"-0":i}},function(t,e,i){},function(t,e,i){},function(t,e,i){var n=i(3);t.exports=function(){return n.Date.now()}},function(t,e,i){var n=i(4),s=i(25),o=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var i=a.test(t);return i||l.test(t)?c(t.slice(2),i?2:8):r.test(t)?NaN:+t}},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e){var i,n,s=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var t=a(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d1)for(var i=1;is?0:s+e),(i=i>s?s:i)<0&&(i+=s),s=e>i?0:i-e>>>0,e>>>=0;for(var o=Array(s);++n0&&o(u)?i>1?t(u,i-1,o,r,a):n(a,u):r||(a[a.length]=u)}return a}},function(t,e,i){var n=i(13),s=i(37),o=i(7),r=n?n.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||s(t)||!!(r&&t&&t[r])}},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.JUMP_OFFSET_BASE=e.BinTrieFlags=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var s=n(i(260));e.htmlDecodeTree=s.default;var o=n(i(261));e.xmlDecodeTree=o.default;var r,a=n(i(81));function l(t){return function(e,i){for(var n="",s=0,o=0;(o=e.indexOf("&",o))>=0;)if(n+=e.slice(s,o),s=o,o+=1,35!==e.charCodeAt(o)){for(var l=null,u=1,d=0,h=t[d];o=48&&m<=57||16===f&&(32|m)>=97&&(32|m)<=102;);if(p!==o){var g=e.substring(p,o),v=parseInt(g,f);if(59===e.charCodeAt(o))o+=1;else if(i)continue;n+=a.default(v),s=o}}return n+e.slice(s)}}function c(t,i,n,s){if(i<=128)return s===i?n:-1;var o=(i&r.BRANCH_LENGTH)>>8;if(0===o)return-1;if(1===o)return s===t[n]?n+1:-1;var a=i&r.JUMP_TABLE;if(a){var l=s-e.JUMP_OFFSET_BASE-a;return l<0||l>o?-1:t[n+l]-1}for(var c=n,u=c+o-1;c<=u;){var d=c+u>>>1,h=t[d];if(hs))return t[d+o];u=d-1}}return-1}!function(t){t[t.HAS_VALUE=32768]="HAS_VALUE",t[t.BRANCH_LENGTH=32512]="BRANCH_LENGTH",t[t.MULTI_BYTE=128]="MULTI_BYTE",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(r=e.BinTrieFlags||(e.BinTrieFlags={})),e.JUMP_OFFSET_BASE=47,e.determineBranch=c;var u=l(s.default),d=l(o.default);e.decodeHTML=function(t){return u(t,!1)},e.decodeHTMLStrict=function(t){return u(t,!0)},e.decodeXML=function(t){return d(t,!0)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array([14866,60,237,340,721,1312,1562,1654,1838,1957,2183,2239,2301,2958,3037,3893,4123,4298,4330,4801,5191,5395,5752,5903,5943,5972,6050,0,0,0,0,0,0,6135,6565,7422,8183,8738,9242,9503,9938,10189,10573,10637,10715,11950,12246,13539,13950,14445,14533,15364,16514,16980,17390,17763,17849,18036,18125,4096,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,92,100,106,115,122,137,142,151,157,163,167,182,196,204,220,229,108,105,103,33024,198,59,32768,198,80,33024,38,59,32768,38,99,117,116,101,33024,193,59,32768,193,114,101,118,101,59,32768,258,512,105,121,127,134,114,99,33024,194,59,32768,194,59,32768,1040,114,59,32896,55349,56580,114,97,118,101,33024,192,59,32768,192,112,104,97,59,32768,913,97,99,114,59,32768,256,100,59,32768,10835,512,103,112,172,177,111,110,59,32768,260,102,59,32896,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,32768,8289,105,110,103,33024,197,59,32768,197,512,99,115,209,214,114,59,32896,55349,56476,105,103,110,59,32768,8788,105,108,100,101,33024,195,59,32768,195,109,108,33024,196,59,32768,196,2048,97,99,101,102,111,114,115,117,253,278,282,310,315,321,327,332,512,99,114,258,267,107,115,108,97,115,104,59,32768,8726,583,271,274,59,32768,10983,101,100,59,32768,8966,121,59,32768,1041,768,99,114,116,289,296,306,97,117,115,101,59,32768,8757,110,111,117,108,108,105,115,59,32768,8492,97,59,32768,914,114,59,32896,55349,56581,112,102,59,32896,55349,56633,101,118,101,59,32768,728,99,114,59,32768,8492,109,112,101,113,59,32768,8782,3584,72,79,97,99,100,101,102,104,105,108,111,114,115,117,368,373,380,426,461,466,487,491,495,533,593,695,701,707,99,121,59,32768,1063,80,89,33024,169,59,32768,169,768,99,112,121,387,393,419,117,116,101,59,32768,262,512,59,105,398,400,32768,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,32768,8517,108,101,121,115,59,32768,8493,1024,97,101,105,111,435,441,449,454,114,111,110,59,32768,268,100,105,108,33024,199,59,32768,199,114,99,59,32768,264,110,105,110,116,59,32768,8752,111,116,59,32768,266,512,100,110,471,478,105,108,108,97,59,32768,184,116,101,114,68,111,116,59,32768,183,114,59,32768,8493,105,59,32768,935,114,99,108,101,1024,68,77,80,84,508,513,520,526,111,116,59,32768,8857,105,110,117,115,59,32768,8854,108,117,115,59,32768,8853,105,109,101,115,59,32768,8855,111,512,99,115,539,562,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8754,101,67,117,114,108,121,512,68,81,573,586,111,117,98,108,101,81,117,111,116,101,59,32768,8221,117,111,116,101,59,32768,8217,1024,108,110,112,117,602,614,648,664,111,110,512,59,101,609,611,32768,8759,59,32768,10868,768,103,105,116,621,629,634,114,117,101,110,116,59,32768,8801,110,116,59,32768,8751,111,117,114,73,110,116,101,103,114,97,108,59,32768,8750,512,102,114,653,656,59,32768,8450,111,100,117,99,116,59,32768,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8755,111,115,115,59,32768,10799,99,114,59,32896,55349,56478,112,512,59,67,713,715,32768,8915,97,112,59,32768,8781,2816,68,74,83,90,97,99,101,102,105,111,115,743,758,763,768,773,795,809,821,826,910,1295,512,59,111,748,750,32768,8517,116,114,97,104,100,59,32768,10513,99,121,59,32768,1026,99,121,59,32768,1029,99,121,59,32768,1039,768,103,114,115,780,786,790,103,101,114,59,32768,8225,114,59,32768,8609,104,118,59,32768,10980,512,97,121,800,806,114,111,110,59,32768,270,59,32768,1044,108,512,59,116,815,817,32768,8711,97,59,32768,916,114,59,32896,55349,56583,512,97,102,831,897,512,99,109,836,891,114,105,116,105,99,97,108,1024,65,68,71,84,852,859,877,884,99,117,116,101,59,32768,180,111,581,864,867,59,32768,729,98,108,101,65,99,117,116,101,59,32768,733,114,97,118,101,59,32768,96,105,108,100,101,59,32768,732,111,110,100,59,32768,8900,102,101,114,101,110,116,105,97,108,68,59,32768,8518,2113,920,0,0,0,925,946,0,1139,102,59,32896,55349,56635,768,59,68,69,931,933,938,32768,168,111,116,59,32768,8412,113,117,97,108,59,32768,8784,98,108,101,1536,67,68,76,82,85,86,961,978,996,1080,1101,1125,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8751,111,1093,985,0,0,988,59,32768,168,110,65,114,114,111,119,59,32768,8659,512,101,111,1001,1034,102,116,768,65,82,84,1010,1017,1029,114,114,111,119,59,32768,8656,105,103,104,116,65,114,114,111,119,59,32768,8660,101,101,59,32768,10980,110,103,512,76,82,1041,1068,101,102,116,512,65,82,1049,1056,114,114,111,119,59,32768,10232,105,103,104,116,65,114,114,111,119,59,32768,10234,105,103,104,116,65,114,114,111,119,59,32768,10233,105,103,104,116,512,65,84,1089,1096,114,114,111,119,59,32768,8658,101,101,59,32768,8872,112,1042,1108,0,0,1115,114,114,111,119,59,32768,8657,111,119,110,65,114,114,111,119,59,32768,8661,101,114,116,105,99,97,108,66,97,114,59,32768,8741,110,1536,65,66,76,82,84,97,1152,1179,1186,1236,1272,1288,114,114,111,119,768,59,66,85,1163,1165,1170,32768,8595,97,114,59,32768,10515,112,65,114,114,111,119,59,32768,8693,114,101,118,101,59,32768,785,101,102,116,1315,1196,0,1209,0,1220,105,103,104,116,86,101,99,116,111,114,59,32768,10576,101,101,86,101,99,116,111,114,59,32768,10590,101,99,116,111,114,512,59,66,1229,1231,32768,8637,97,114,59,32768,10582,105,103,104,116,805,1245,0,1256,101,101,86,101,99,116,111,114,59,32768,10591,101,99,116,111,114,512,59,66,1265,1267,32768,8641,97,114,59,32768,10583,101,101,512,59,65,1279,1281,32768,8868,114,114,111,119,59,32768,8615,114,114,111,119,59,32768,8659,512,99,116,1300,1305,114,59,32896,55349,56479,114,111,107,59,32768,272,4096,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1344,1348,1354,1363,1386,1391,1396,1405,1413,1460,1475,1483,1514,1527,1531,1538,71,59,32768,330,72,33024,208,59,32768,208,99,117,116,101,33024,201,59,32768,201,768,97,105,121,1370,1376,1383,114,111,110,59,32768,282,114,99,33024,202,59,32768,202,59,32768,1069,111,116,59,32768,278,114,59,32896,55349,56584,114,97,118,101,33024,200,59,32768,200,101,109,101,110,116,59,32768,8712,512,97,112,1418,1423,99,114,59,32768,274,116,121,1060,1431,0,0,1444,109,97,108,108,83,113,117,97,114,101,59,32768,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9643,512,103,112,1465,1470,111,110,59,32768,280,102,59,32896,55349,56636,115,105,108,111,110,59,32768,917,117,512,97,105,1489,1504,108,512,59,84,1495,1497,32768,10869,105,108,100,101,59,32768,8770,108,105,98,114,105,117,109,59,32768,8652,512,99,105,1519,1523,114,59,32768,8496,109,59,32768,10867,97,59,32768,919,109,108,33024,203,59,32768,203,512,105,112,1543,1549,115,116,115,59,32768,8707,111,110,101,110,116,105,97,108,69,59,32768,8519,1280,99,102,105,111,115,1572,1576,1581,1620,1648,121,59,32768,1060,114,59,32896,55349,56585,108,108,101,100,1060,1591,0,0,1604,109,97,108,108,83,113,117,97,114,101,59,32768,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9642,1601,1628,0,1633,0,0,1639,102,59,32896,55349,56637,65,108,108,59,32768,8704,114,105,101,114,116,114,102,59,32768,8497,99,114,59,32768,8497,3072,74,84,97,98,99,100,102,103,111,114,115,116,1678,1683,1688,1701,1708,1729,1734,1739,1742,1748,1828,1834,99,121,59,32768,1027,33024,62,59,32768,62,109,109,97,512,59,100,1696,1698,32768,915,59,32768,988,114,101,118,101,59,32768,286,768,101,105,121,1715,1721,1726,100,105,108,59,32768,290,114,99,59,32768,284,59,32768,1043,111,116,59,32768,288,114,59,32896,55349,56586,59,32768,8921,112,102,59,32896,55349,56638,101,97,116,101,114,1536,69,70,71,76,83,84,1766,1783,1794,1803,1809,1821,113,117,97,108,512,59,76,1775,1777,32768,8805,101,115,115,59,32768,8923,117,108,108,69,113,117,97,108,59,32768,8807,114,101,97,116,101,114,59,32768,10914,101,115,115,59,32768,8823,108,97,110,116,69,113,117,97,108,59,32768,10878,105,108,100,101,59,32768,8819,99,114,59,32896,55349,56482,59,32768,8811,2048,65,97,99,102,105,111,115,117,1854,1861,1874,1880,1884,1897,1919,1934,82,68,99,121,59,32768,1066,512,99,116,1866,1871,101,107,59,32768,711,59,32768,94,105,114,99,59,32768,292,114,59,32768,8460,108,98,101,114,116,83,112,97,99,101,59,32768,8459,833,1902,0,1906,102,59,32768,8461,105,122,111,110,116,97,108,76,105,110,101,59,32768,9472,512,99,116,1924,1928,114,59,32768,8459,114,111,107,59,32768,294,109,112,533,1940,1950,111,119,110,72,117,109,112,59,32768,8782,113,117,97,108,59,32768,8783,3584,69,74,79,97,99,100,102,103,109,110,111,115,116,117,1985,1990,1996,2001,2010,2025,2030,2034,2043,2077,2134,2155,2160,2167,99,121,59,32768,1045,108,105,103,59,32768,306,99,121,59,32768,1025,99,117,116,101,33024,205,59,32768,205,512,105,121,2015,2022,114,99,33024,206,59,32768,206,59,32768,1048,111,116,59,32768,304,114,59,32768,8465,114,97,118,101,33024,204,59,32768,204,768,59,97,112,2050,2052,2070,32768,8465,512,99,103,2057,2061,114,59,32768,298,105,110,97,114,121,73,59,32768,8520,108,105,101,115,59,32768,8658,837,2082,0,2110,512,59,101,2086,2088,32768,8748,512,103,114,2093,2099,114,97,108,59,32768,8747,115,101,99,116,105,111,110,59,32768,8898,105,115,105,98,108,101,512,67,84,2120,2127,111,109,109,97,59,32768,8291,105,109,101,115,59,32768,8290,768,103,112,116,2141,2146,2151,111,110,59,32768,302,102,59,32896,55349,56640,97,59,32768,921,99,114,59,32768,8464,105,108,100,101,59,32768,296,828,2172,0,2177,99,121,59,32768,1030,108,33024,207,59,32768,207,1280,99,102,111,115,117,2193,2206,2211,2217,2232,512,105,121,2198,2203,114,99,59,32768,308,59,32768,1049,114,59,32896,55349,56589,112,102,59,32896,55349,56641,820,2222,0,2227,114,59,32896,55349,56485,114,99,121,59,32768,1032,107,99,121,59,32768,1028,1792,72,74,97,99,102,111,115,2253,2258,2263,2269,2283,2288,2294,99,121,59,32768,1061,99,121,59,32768,1036,112,112,97,59,32768,922,512,101,121,2274,2280,100,105,108,59,32768,310,59,32768,1050,114,59,32896,55349,56590,112,102,59,32896,55349,56642,99,114,59,32896,55349,56486,2816,74,84,97,99,101,102,108,109,111,115,116,2323,2328,2333,2374,2396,2775,2780,2797,2804,2934,2954,99,121,59,32768,1033,33024,60,59,32768,60,1280,99,109,110,112,114,2344,2350,2356,2360,2370,117,116,101,59,32768,313,98,100,97,59,32768,923,103,59,32768,10218,108,97,99,101,116,114,102,59,32768,8466,114,59,32768,8606,768,97,101,121,2381,2387,2393,114,111,110,59,32768,317,100,105,108,59,32768,315,59,32768,1051,512,102,115,2401,2702,116,2560,65,67,68,70,82,84,85,86,97,114,2423,2470,2479,2530,2537,2561,2618,2666,2683,2690,512,110,114,2428,2441,103,108,101,66,114,97,99,107,101,116,59,32768,10216,114,111,119,768,59,66,82,2451,2453,2458,32768,8592,97,114,59,32768,8676,105,103,104,116,65,114,114,111,119,59,32768,8646,101,105,108,105,110,103,59,32768,8968,111,838,2485,0,2498,98,108,101,66,114,97,99,107,101,116,59,32768,10214,110,805,2503,0,2514,101,101,86,101,99,116,111,114,59,32768,10593,101,99,116,111,114,512,59,66,2523,2525,32768,8643,97,114,59,32768,10585,108,111,111,114,59,32768,8970,105,103,104,116,512,65,86,2546,2553,114,114,111,119,59,32768,8596,101,99,116,111,114,59,32768,10574,512,101,114,2566,2591,101,768,59,65,86,2574,2576,2583,32768,8867,114,114,111,119,59,32768,8612,101,99,116,111,114,59,32768,10586,105,97,110,103,108,101,768,59,66,69,2604,2606,2611,32768,8882,97,114,59,32768,10703,113,117,97,108,59,32768,8884,112,768,68,84,86,2626,2638,2649,111,119,110,86,101,99,116,111,114,59,32768,10577,101,101,86,101,99,116,111,114,59,32768,10592,101,99,116,111,114,512,59,66,2659,2661,32768,8639,97,114,59,32768,10584,101,99,116,111,114,512,59,66,2676,2678,32768,8636,97,114,59,32768,10578,114,114,111,119,59,32768,8656,105,103,104,116,97,114,114,111,119,59,32768,8660,115,1536,69,70,71,76,83,84,2716,2730,2741,2750,2756,2768,113,117,97,108,71,114,101,97,116,101,114,59,32768,8922,117,108,108,69,113,117,97,108,59,32768,8806,114,101,97,116,101,114,59,32768,8822,101,115,115,59,32768,10913,108,97,110,116,69,113,117,97,108,59,32768,10877,105,108,100,101,59,32768,8818,114,59,32896,55349,56591,512,59,101,2785,2787,32768,8920,102,116,97,114,114,111,119,59,32768,8666,105,100,111,116,59,32768,319,768,110,112,119,2811,2899,2904,103,1024,76,82,108,114,2821,2848,2860,2887,101,102,116,512,65,82,2829,2836,114,114,111,119,59,32768,10229,105,103,104,116,65,114,114,111,119,59,32768,10231,105,103,104,116,65,114,114,111,119,59,32768,10230,101,102,116,512,97,114,2868,2875,114,114,111,119,59,32768,10232,105,103,104,116,97,114,114,111,119,59,32768,10234,105,103,104,116,97,114,114,111,119,59,32768,10233,102,59,32896,55349,56643,101,114,512,76,82,2911,2922,101,102,116,65,114,114,111,119,59,32768,8601,105,103,104,116,65,114,114,111,119,59,32768,8600,768,99,104,116,2941,2945,2948,114,59,32768,8466,59,32768,8624,114,111,107,59,32768,321,59,32768,8810,2048,97,99,101,102,105,111,115,117,2974,2978,2982,3007,3012,3022,3028,3033,112,59,32768,10501,121,59,32768,1052,512,100,108,2987,2998,105,117,109,83,112,97,99,101,59,32768,8287,108,105,110,116,114,102,59,32768,8499,114,59,32896,55349,56592,110,117,115,80,108,117,115,59,32768,8723,112,102,59,32896,55349,56644,99,114,59,32768,8499,59,32768,924,2304,74,97,99,101,102,111,115,116,117,3055,3060,3067,3089,3201,3206,3874,3880,3889,99,121,59,32768,1034,99,117,116,101,59,32768,323,768,97,101,121,3074,3080,3086,114,111,110,59,32768,327,100,105,108,59,32768,325,59,32768,1053,768,103,115,119,3096,3160,3194,97,116,105,118,101,768,77,84,86,3108,3121,3145,101,100,105,117,109,83,112,97,99,101,59,32768,8203,104,105,512,99,110,3128,3137,107,83,112,97,99,101,59,32768,8203,83,112,97,99,101,59,32768,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,32768,8203,116,101,100,512,71,76,3168,3184,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32768,8811,101,115,115,76,101,115,115,59,32768,8810,76,105,110,101,59,32768,10,114,59,32896,55349,56593,1024,66,110,112,116,3215,3222,3238,3242,114,101,97,107,59,32768,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,32768,160,102,59,32768,8469,3328,59,67,68,69,71,72,76,78,80,82,83,84,86,3269,3271,3293,3312,3352,3430,3455,3551,3589,3625,3678,3821,3861,32768,10988,512,111,117,3276,3286,110,103,114,117,101,110,116,59,32768,8802,112,67,97,112,59,32768,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,32768,8742,768,108,113,120,3319,3327,3345,101,109,101,110,116,59,32768,8713,117,97,108,512,59,84,3335,3337,32768,8800,105,108,100,101,59,32896,8770,824,105,115,116,115,59,32768,8708,114,101,97,116,101,114,1792,59,69,70,71,76,83,84,3373,3375,3382,3394,3404,3410,3423,32768,8815,113,117,97,108,59,32768,8817,117,108,108,69,113,117,97,108,59,32896,8807,824,114,101,97,116,101,114,59,32896,8811,824,101,115,115,59,32768,8825,108,97,110,116,69,113,117,97,108,59,32896,10878,824,105,108,100,101,59,32768,8821,117,109,112,533,3437,3448,111,119,110,72,117,109,112,59,32896,8782,824,113,117,97,108,59,32896,8783,824,101,512,102,115,3461,3492,116,84,114,105,97,110,103,108,101,768,59,66,69,3477,3479,3485,32768,8938,97,114,59,32896,10703,824,113,117,97,108,59,32768,8940,115,1536,59,69,71,76,83,84,3506,3508,3515,3524,3531,3544,32768,8814,113,117,97,108,59,32768,8816,114,101,97,116,101,114,59,32768,8824,101,115,115,59,32896,8810,824,108,97,110,116,69,113,117,97,108,59,32896,10877,824,105,108,100,101,59,32768,8820,101,115,116,101,100,512,71,76,3561,3578,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32896,10914,824,101,115,115,76,101,115,115,59,32896,10913,824,114,101,99,101,100,101,115,768,59,69,83,3603,3605,3613,32768,8832,113,117,97,108,59,32896,10927,824,108,97,110,116,69,113,117,97,108,59,32768,8928,512,101,105,3630,3645,118,101,114,115,101,69,108,101,109,101,110,116,59,32768,8716,103,104,116,84,114,105,97,110,103,108,101,768,59,66,69,3663,3665,3671,32768,8939,97,114,59,32896,10704,824,113,117,97,108,59,32768,8941,512,113,117,3683,3732,117,97,114,101,83,117,512,98,112,3694,3712,115,101,116,512,59,69,3702,3705,32896,8847,824,113,117,97,108,59,32768,8930,101,114,115,101,116,512,59,69,3722,3725,32896,8848,824,113,117,97,108,59,32768,8931,768,98,99,112,3739,3757,3801,115,101,116,512,59,69,3747,3750,32896,8834,8402,113,117,97,108,59,32768,8840,99,101,101,100,115,1024,59,69,83,84,3771,3773,3781,3793,32768,8833,113,117,97,108,59,32896,10928,824,108,97,110,116,69,113,117,97,108,59,32768,8929,105,108,100,101,59,32896,8831,824,101,114,115,101,116,512,59,69,3811,3814,32896,8835,8402,113,117,97,108,59,32768,8841,105,108,100,101,1024,59,69,70,84,3834,3836,3843,3854,32768,8769,113,117,97,108,59,32768,8772,117,108,108,69,113,117,97,108,59,32768,8775,105,108,100,101,59,32768,8777,101,114,116,105,99,97,108,66,97,114,59,32768,8740,99,114,59,32896,55349,56489,105,108,100,101,33024,209,59,32768,209,59,32768,925,3584,69,97,99,100,102,103,109,111,112,114,115,116,117,118,3921,3927,3936,3951,3958,3963,3972,3996,4002,4034,4037,4055,4071,4078,108,105,103,59,32768,338,99,117,116,101,33024,211,59,32768,211,512,105,121,3941,3948,114,99,33024,212,59,32768,212,59,32768,1054,98,108,97,99,59,32768,336,114,59,32896,55349,56594,114,97,118,101,33024,210,59,32768,210,768,97,101,105,3979,3984,3989,99,114,59,32768,332,103,97,59,32768,937,99,114,111,110,59,32768,927,112,102,59,32896,55349,56646,101,110,67,117,114,108,121,512,68,81,4014,4027,111,117,98,108,101,81,117,111,116,101,59,32768,8220,117,111,116,101,59,32768,8216,59,32768,10836,512,99,108,4042,4047,114,59,32896,55349,56490,97,115,104,33024,216,59,32768,216,105,573,4060,4067,100,101,33024,213,59,32768,213,101,115,59,32768,10807,109,108,33024,214,59,32768,214,101,114,512,66,80,4085,4109,512,97,114,4090,4094,114,59,32768,8254,97,99,512,101,107,4101,4104,59,32768,9182,101,116,59,32768,9140,97,114,101,110,116,104,101,115,105,115,59,32768,9180,2304,97,99,102,104,105,108,111,114,115,4141,4150,4154,4159,4163,4166,4176,4198,4284,114,116,105,97,108,68,59,32768,8706,121,59,32768,1055,114,59,32896,55349,56595,105,59,32768,934,59,32768,928,117,115,77,105,110,117,115,59,32768,177,512,105,112,4181,4194,110,99,97,114,101,112,108,97,110,101,59,32768,8460,102,59,32768,8473,1024,59,101,105,111,4207,4209,4251,4256,32768,10939,99,101,100,101,115,1024,59,69,83,84,4223,4225,4232,4244,32768,8826,113,117,97,108,59,32768,10927,108,97,110,116,69,113,117,97,108,59,32768,8828,105,108,100,101,59,32768,8830,109,101,59,32768,8243,512,100,112,4261,4267,117,99,116,59,32768,8719,111,114,116,105,111,110,512,59,97,4278,4280,32768,8759,108,59,32768,8733,512,99,105,4289,4294,114,59,32896,55349,56491,59,32768,936,1024,85,102,111,115,4306,4313,4318,4323,79,84,33024,34,59,32768,34,114,59,32896,55349,56596,112,102,59,32768,8474,99,114,59,32896,55349,56492,3072,66,69,97,99,101,102,104,105,111,114,115,117,4354,4360,4366,4395,4417,4473,4477,4481,4743,4764,4776,4788,97,114,114,59,32768,10512,71,33024,174,59,32768,174,768,99,110,114,4373,4379,4383,117,116,101,59,32768,340,103,59,32768,10219,114,512,59,116,4389,4391,32768,8608,108,59,32768,10518,768,97,101,121,4402,4408,4414,114,111,110,59,32768,344,100,105,108,59,32768,342,59,32768,1056,512,59,118,4422,4424,32768,8476,101,114,115,101,512,69,85,4433,4458,512,108,113,4438,4446,101,109,101,110,116,59,32768,8715,117,105,108,105,98,114,105,117,109,59,32768,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,32768,10607,114,59,32768,8476,111,59,32768,929,103,104,116,2048,65,67,68,70,84,85,86,97,4501,4547,4556,4607,4614,4671,4719,4736,512,110,114,4506,4519,103,108,101,66,114,97,99,107,101,116,59,32768,10217,114,111,119,768,59,66,76,4529,4531,4536,32768,8594,97,114,59,32768,8677,101,102,116,65,114,114,111,119,59,32768,8644,101,105,108,105,110,103,59,32768,8969,111,838,4562,0,4575,98,108,101,66,114,97,99,107,101,116,59,32768,10215,110,805,4580,0,4591,101,101,86,101,99,116,111,114,59,32768,10589,101,99,116,111,114,512,59,66,4600,4602,32768,8642,97,114,59,32768,10581,108,111,111,114,59,32768,8971,512,101,114,4619,4644,101,768,59,65,86,4627,4629,4636,32768,8866,114,114,111,119,59,32768,8614,101,99,116,111,114,59,32768,10587,105,97,110,103,108,101,768,59,66,69,4657,4659,4664,32768,8883,97,114,59,32768,10704,113,117,97,108,59,32768,8885,112,768,68,84,86,4679,4691,4702,111,119,110,86,101,99,116,111,114,59,32768,10575,101,101,86,101,99,116,111,114,59,32768,10588,101,99,116,111,114,512,59,66,4712,4714,32768,8638,97,114,59,32768,10580,101,99,116,111,114,512,59,66,4729,4731,32768,8640,97,114,59,32768,10579,114,114,111,119,59,32768,8658,512,112,117,4748,4752,102,59,32768,8477,110,100,73,109,112,108,105,101,115,59,32768,10608,105,103,104,116,97,114,114,111,119,59,32768,8667,512,99,104,4781,4785,114,59,32768,8475,59,32768,8625,108,101,68,101,108,97,121,101,100,59,32768,10740,3328,72,79,97,99,102,104,105,109,111,113,115,116,117,4827,4842,4849,4856,4889,4894,4949,4955,4967,4973,5059,5065,5070,512,67,99,4832,4838,72,99,121,59,32768,1065,121,59,32768,1064,70,84,99,121,59,32768,1068,99,117,116,101,59,32768,346,1280,59,97,101,105,121,4867,4869,4875,4881,4886,32768,10940,114,111,110,59,32768,352,100,105,108,59,32768,350,114,99,59,32768,348,59,32768,1057,114,59,32896,55349,56598,111,114,116,1024,68,76,82,85,4906,4917,4928,4940,111,119,110,65,114,114,111,119,59,32768,8595,101,102,116,65,114,114,111,119,59,32768,8592,105,103,104,116,65,114,114,111,119,59,32768,8594,112,65,114,114,111,119,59,32768,8593,103,109,97,59,32768,931,97,108,108,67,105,114,99,108,101,59,32768,8728,112,102,59,32896,55349,56650,1091,4979,0,0,4983,116,59,32768,8730,97,114,101,1024,59,73,83,85,4994,4996,5010,5052,32768,9633,110,116,101,114,115,101,99,116,105,111,110,59,32768,8851,117,512,98,112,5016,5033,115,101,116,512,59,69,5024,5026,32768,8847,113,117,97,108,59,32768,8849,101,114,115,101,116,512,59,69,5043,5045,32768,8848,113,117,97,108,59,32768,8850,110,105,111,110,59,32768,8852,99,114,59,32896,55349,56494,97,114,59,32768,8902,1024,98,99,109,112,5079,5102,5155,5158,512,59,115,5084,5086,32768,8912,101,116,512,59,69,5093,5095,32768,8912,113,117,97,108,59,32768,8838,512,99,104,5107,5148,101,101,100,115,1024,59,69,83,84,5120,5122,5129,5141,32768,8827,113,117,97,108,59,32768,10928,108,97,110,116,69,113,117,97,108,59,32768,8829,105,108,100,101,59,32768,8831,84,104,97,116,59,32768,8715,59,32768,8721,768,59,101,115,5165,5167,5185,32768,8913,114,115,101,116,512,59,69,5176,5178,32768,8835,113,117,97,108,59,32768,8839,101,116,59,32768,8913,2816,72,82,83,97,99,102,104,105,111,114,115,5213,5221,5227,5241,5252,5274,5279,5323,5362,5368,5378,79,82,78,33024,222,59,32768,222,65,68,69,59,32768,8482,512,72,99,5232,5237,99,121,59,32768,1035,121,59,32768,1062,512,98,117,5246,5249,59,32768,9,59,32768,932,768,97,101,121,5259,5265,5271,114,111,110,59,32768,356,100,105,108,59,32768,354,59,32768,1058,114,59,32896,55349,56599,512,101,105,5284,5300,835,5289,0,5297,101,102,111,114,101,59,32768,8756,97,59,32768,920,512,99,110,5305,5315,107,83,112,97,99,101,59,32896,8287,8202,83,112,97,99,101,59,32768,8201,108,100,101,1024,59,69,70,84,5335,5337,5344,5355,32768,8764,113,117,97,108,59,32768,8771,117,108,108,69,113,117,97,108,59,32768,8773,105,108,100,101,59,32768,8776,112,102,59,32896,55349,56651,105,112,108,101,68,111,116,59,32768,8411,512,99,116,5383,5388,114,59,32896,55349,56495,114,111,107,59,32768,358,5426,5417,5444,5458,5473,0,5480,5485,0,0,0,0,0,5494,5500,5564,5579,0,5726,5732,5738,5745,512,99,114,5421,5429,117,116,101,33024,218,59,32768,218,114,512,59,111,5435,5437,32768,8607,99,105,114,59,32768,10569,114,820,5449,0,5453,121,59,32768,1038,118,101,59,32768,364,512,105,121,5462,5469,114,99,33024,219,59,32768,219,59,32768,1059,98,108,97,99,59,32768,368,114,59,32896,55349,56600,114,97,118,101,33024,217,59,32768,217,97,99,114,59,32768,362,512,100,105,5504,5548,101,114,512,66,80,5511,5535,512,97,114,5516,5520,114,59,32768,95,97,99,512,101,107,5527,5530,59,32768,9183,101,116,59,32768,9141,97,114,101,110,116,104,101,115,105,115,59,32768,9181,111,110,512,59,80,5555,5557,32768,8899,108,117,115,59,32768,8846,512,103,112,5568,5573,111,110,59,32768,370,102,59,32896,55349,56652,2048,65,68,69,84,97,100,112,115,5595,5624,5635,5648,5664,5671,5682,5712,114,114,111,119,768,59,66,68,5606,5608,5613,32768,8593,97,114,59,32768,10514,111,119,110,65,114,114,111,119,59,32768,8645,111,119,110,65,114,114,111,119,59,32768,8597,113,117,105,108,105,98,114,105,117,109,59,32768,10606,101,101,512,59,65,5655,5657,32768,8869,114,114,111,119,59,32768,8613,114,114,111,119,59,32768,8657,111,119,110,97,114,114,111,119,59,32768,8661,101,114,512,76,82,5689,5700,101,102,116,65,114,114,111,119,59,32768,8598,105,103,104,116,65,114,114,111,119,59,32768,8599,105,512,59,108,5718,5720,32768,978,111,110,59,32768,933,105,110,103,59,32768,366,99,114,59,32896,55349,56496,105,108,100,101,59,32768,360,109,108,33024,220,59,32768,220,2304,68,98,99,100,101,102,111,115,118,5770,5776,5781,5785,5798,5878,5883,5889,5895,97,115,104,59,32768,8875,97,114,59,32768,10987,121,59,32768,1042,97,115,104,512,59,108,5793,5795,32768,8873,59,32768,10982,512,101,114,5803,5806,59,32768,8897,768,98,116,121,5813,5818,5866,97,114,59,32768,8214,512,59,105,5823,5825,32768,8214,99,97,108,1024,66,76,83,84,5837,5842,5848,5859,97,114,59,32768,8739,105,110,101,59,32768,124,101,112,97,114,97,116,111,114,59,32768,10072,105,108,100,101,59,32768,8768,84,104,105,110,83,112,97,99,101,59,32768,8202,114,59,32896,55349,56601,112,102,59,32896,55349,56653,99,114,59,32896,55349,56497,100,97,115,104,59,32768,8874,1280,99,101,102,111,115,5913,5919,5925,5930,5936,105,114,99,59,32768,372,100,103,101,59,32768,8896,114,59,32896,55349,56602,112,102,59,32896,55349,56654,99,114,59,32896,55349,56498,1024,102,105,111,115,5951,5956,5959,5965,114,59,32896,55349,56603,59,32768,926,112,102,59,32896,55349,56655,99,114,59,32896,55349,56499,2304,65,73,85,97,99,102,111,115,117,5990,5995,6e3,6005,6014,6027,6032,6038,6044,99,121,59,32768,1071,99,121,59,32768,1031,99,121,59,32768,1070,99,117,116,101,33024,221,59,32768,221,512,105,121,6019,6024,114,99,59,32768,374,59,32768,1067,114,59,32896,55349,56604,112,102,59,32896,55349,56656,99,114,59,32896,55349,56500,109,108,59,32768,376,2048,72,97,99,100,101,102,111,115,6066,6071,6078,6092,6097,6119,6123,6128,99,121,59,32768,1046,99,117,116,101,59,32768,377,512,97,121,6083,6089,114,111,110,59,32768,381,59,32768,1047,111,116,59,32768,379,835,6102,0,6116,111,87,105,100,116,104,83,112,97,99,101,59,32768,8203,97,59,32768,918,114,59,32768,8488,112,102,59,32768,8484,99,114,59,32896,55349,56501,5938,6159,6168,6175,0,6214,6222,6233,0,0,0,0,6242,6267,6290,6429,6444,0,6495,6503,6531,6540,0,6547,99,117,116,101,33024,225,59,32768,225,114,101,118,101,59,32768,259,1536,59,69,100,105,117,121,6187,6189,6193,6196,6203,6210,32768,8766,59,32896,8766,819,59,32768,8767,114,99,33024,226,59,32768,226,116,101,33024,180,59,32768,180,59,32768,1072,108,105,103,33024,230,59,32768,230,512,59,114,6226,6228,32768,8289,59,32896,55349,56606,114,97,118,101,33024,224,59,32768,224,512,101,112,6246,6261,512,102,112,6251,6257,115,121,109,59,32768,8501,104,59,32768,8501,104,97,59,32768,945,512,97,112,6271,6284,512,99,108,6276,6280,114,59,32768,257,103,59,32768,10815,33024,38,59,32768,38,1077,6295,0,0,6326,1280,59,97,100,115,118,6305,6307,6312,6315,6322,32768,8743,110,100,59,32768,10837,59,32768,10844,108,111,112,101,59,32768,10840,59,32768,10842,1792,59,101,108,109,114,115,122,6340,6342,6345,6349,6391,6410,6422,32768,8736,59,32768,10660,101,59,32768,8736,115,100,512,59,97,6356,6358,32768,8737,2098,6368,6371,6374,6377,6380,6383,6386,6389,59,32768,10664,59,32768,10665,59,32768,10666,59,32768,10667,59,32768,10668,59,32768,10669,59,32768,10670,59,32768,10671,116,512,59,118,6397,6399,32768,8735,98,512,59,100,6405,6407,32768,8894,59,32768,10653,512,112,116,6415,6419,104,59,32768,8738,59,32768,197,97,114,114,59,32768,9084,512,103,112,6433,6438,111,110,59,32768,261,102,59,32896,55349,56658,1792,59,69,97,101,105,111,112,6458,6460,6463,6469,6472,6476,6480,32768,8776,59,32768,10864,99,105,114,59,32768,10863,59,32768,8778,100,59,32768,8779,115,59,32768,39,114,111,120,512,59,101,6488,6490,32768,8776,113,59,32768,8778,105,110,103,33024,229,59,32768,229,768,99,116,121,6509,6514,6517,114,59,32896,55349,56502,59,32768,42,109,112,512,59,101,6524,6526,32768,8776,113,59,32768,8781,105,108,100,101,33024,227,59,32768,227,109,108,33024,228,59,32768,228,512,99,105,6551,6559,111,110,105,110,116,59,32768,8755,110,116,59,32768,10769,4096,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,6597,6602,6673,6688,6701,6707,6768,6773,6891,6898,6999,7023,7309,7316,7334,7383,111,116,59,32768,10989,512,99,114,6607,6652,107,1024,99,101,112,115,6617,6623,6632,6639,111,110,103,59,32768,8780,112,115,105,108,111,110,59,32768,1014,114,105,109,101,59,32768,8245,105,109,512,59,101,6646,6648,32768,8765,113,59,32768,8909,583,6656,6661,101,101,59,32768,8893,101,100,512,59,103,6667,6669,32768,8965,101,59,32768,8965,114,107,512,59,116,6680,6682,32768,9141,98,114,107,59,32768,9142,512,111,121,6693,6698,110,103,59,32768,8780,59,32768,1073,113,117,111,59,32768,8222,1280,99,109,112,114,116,6718,6731,6738,6743,6749,97,117,115,512,59,101,6726,6728,32768,8757,59,32768,8757,112,116,121,118,59,32768,10672,115,105,59,32768,1014,110,111,117,59,32768,8492,768,97,104,119,6756,6759,6762,59,32768,946,59,32768,8502,101,101,110,59,32768,8812,114,59,32896,55349,56607,103,1792,99,111,115,116,117,118,119,6789,6809,6834,6850,6872,6879,6884,768,97,105,117,6796,6800,6805,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,768,100,112,116,6816,6821,6827,111,116,59,32768,10752,108,117,115,59,32768,10753,105,109,101,115,59,32768,10754,1090,6840,0,0,6846,99,117,112,59,32768,10758,97,114,59,32768,9733,114,105,97,110,103,108,101,512,100,117,6862,6868,111,119,110,59,32768,9661,112,59,32768,9651,112,108,117,115,59,32768,10756,101,101,59,32768,8897,101,100,103,101,59,32768,8896,97,114,111,119,59,32768,10509,768,97,107,111,6905,6976,6994,512,99,110,6910,6972,107,768,108,115,116,6918,6927,6935,111,122,101,110,103,101,59,32768,10731,113,117,97,114,101,59,32768,9642,114,105,97,110,103,108,101,1024,59,100,108,114,6951,6953,6959,6965,32768,9652,111,119,110,59,32768,9662,101,102,116,59,32768,9666,105,103,104,116,59,32768,9656,107,59,32768,9251,770,6981,0,6991,771,6985,0,6988,59,32768,9618,59,32768,9617,52,59,32768,9619,99,107,59,32768,9608,512,101,111,7004,7019,512,59,113,7009,7012,32896,61,8421,117,105,118,59,32896,8801,8421,116,59,32768,8976,1024,112,116,119,120,7032,7037,7049,7055,102,59,32896,55349,56659,512,59,116,7042,7044,32768,8869,111,109,59,32768,8869,116,105,101,59,32768,8904,3072,68,72,85,86,98,100,104,109,112,116,117,118,7080,7101,7126,7147,7182,7187,7208,7233,7240,7246,7253,7274,1024,76,82,108,114,7089,7092,7095,7098,59,32768,9559,59,32768,9556,59,32768,9558,59,32768,9555,1280,59,68,85,100,117,7112,7114,7117,7120,7123,32768,9552,59,32768,9574,59,32768,9577,59,32768,9572,59,32768,9575,1024,76,82,108,114,7135,7138,7141,7144,59,32768,9565,59,32768,9562,59,32768,9564,59,32768,9561,1792,59,72,76,82,104,108,114,7162,7164,7167,7170,7173,7176,7179,32768,9553,59,32768,9580,59,32768,9571,59,32768,9568,59,32768,9579,59,32768,9570,59,32768,9567,111,120,59,32768,10697,1024,76,82,108,114,7196,7199,7202,7205,59,32768,9557,59,32768,9554,59,32768,9488,59,32768,9484,1280,59,68,85,100,117,7219,7221,7224,7227,7230,32768,9472,59,32768,9573,59,32768,9576,59,32768,9516,59,32768,9524,105,110,117,115,59,32768,8863,108,117,115,59,32768,8862,105,109,101,115,59,32768,8864,1024,76,82,108,114,7262,7265,7268,7271,59,32768,9563,59,32768,9560,59,32768,9496,59,32768,9492,1792,59,72,76,82,104,108,114,7289,7291,7294,7297,7300,7303,7306,32768,9474,59,32768,9578,59,32768,9569,59,32768,9566,59,32768,9532,59,32768,9508,59,32768,9500,114,105,109,101,59,32768,8245,512,101,118,7321,7326,118,101,59,32768,728,98,97,114,33024,166,59,32768,166,1024,99,101,105,111,7343,7348,7353,7364,114,59,32896,55349,56503,109,105,59,32768,8271,109,512,59,101,7359,7361,32768,8765,59,32768,8909,108,768,59,98,104,7372,7374,7377,32768,92,59,32768,10693,115,117,98,59,32768,10184,573,7387,7399,108,512,59,101,7392,7394,32768,8226,116,59,32768,8226,112,768,59,69,101,7406,7408,7411,32768,8782,59,32768,10926,512,59,113,7416,7418,32768,8783,59,32768,8783,6450,7448,0,7523,7571,7576,7613,0,7618,7647,0,0,7764,0,0,7779,0,0,7899,7914,7949,7955,0,8158,0,8176,768,99,112,114,7454,7460,7509,117,116,101,59,32768,263,1536,59,97,98,99,100,115,7473,7475,7480,7487,7500,7505,32768,8745,110,100,59,32768,10820,114,99,117,112,59,32768,10825,512,97,117,7492,7496,112,59,32768,10827,112,59,32768,10823,111,116,59,32768,10816,59,32896,8745,65024,512,101,111,7514,7518,116,59,32768,8257,110,59,32768,711,1024,97,101,105,117,7531,7544,7552,7557,833,7536,0,7540,115,59,32768,10829,111,110,59,32768,269,100,105,108,33024,231,59,32768,231,114,99,59,32768,265,112,115,512,59,115,7564,7566,32768,10828,109,59,32768,10832,111,116,59,32768,267,768,100,109,110,7582,7589,7596,105,108,33024,184,59,32768,184,112,116,121,118,59,32768,10674,116,33280,162,59,101,7603,7605,32768,162,114,100,111,116,59,32768,183,114,59,32896,55349,56608,768,99,101,105,7624,7628,7643,121,59,32768,1095,99,107,512,59,109,7635,7637,32768,10003,97,114,107,59,32768,10003,59,32768,967,114,1792,59,69,99,101,102,109,115,7662,7664,7667,7742,7745,7752,7757,32768,9675,59,32768,10691,768,59,101,108,7674,7676,7680,32768,710,113,59,32768,8791,101,1074,7687,0,0,7709,114,114,111,119,512,108,114,7695,7701,101,102,116,59,32768,8634,105,103,104,116,59,32768,8635,1280,82,83,97,99,100,7719,7722,7725,7730,7736,59,32768,174,59,32768,9416,115,116,59,32768,8859,105,114,99,59,32768,8858,97,115,104,59,32768,8861,59,32768,8791,110,105,110,116,59,32768,10768,105,100,59,32768,10991,99,105,114,59,32768,10690,117,98,115,512,59,117,7771,7773,32768,9827,105,116,59,32768,9827,1341,7785,7804,7850,0,7871,111,110,512,59,101,7791,7793,32768,58,512,59,113,7798,7800,32768,8788,59,32768,8788,1086,7809,0,0,7820,97,512,59,116,7814,7816,32768,44,59,32768,64,768,59,102,108,7826,7828,7832,32768,8705,110,59,32768,8728,101,512,109,120,7838,7844,101,110,116,59,32768,8705,101,115,59,32768,8450,824,7854,0,7866,512,59,100,7858,7860,32768,8773,111,116,59,32768,10861,110,116,59,32768,8750,768,102,114,121,7877,7881,7886,59,32896,55349,56660,111,100,59,32768,8720,33280,169,59,115,7892,7894,32768,169,114,59,32768,8471,512,97,111,7903,7908,114,114,59,32768,8629,115,115,59,32768,10007,512,99,117,7918,7923,114,59,32896,55349,56504,512,98,112,7928,7938,512,59,101,7933,7935,32768,10959,59,32768,10961,512,59,101,7943,7945,32768,10960,59,32768,10962,100,111,116,59,32768,8943,1792,100,101,108,112,114,118,119,7969,7983,7996,8009,8057,8147,8152,97,114,114,512,108,114,7977,7980,59,32768,10552,59,32768,10549,1089,7989,0,0,7993,114,59,32768,8926,99,59,32768,8927,97,114,114,512,59,112,8004,8006,32768,8630,59,32768,10557,1536,59,98,99,100,111,115,8022,8024,8031,8044,8049,8053,32768,8746,114,99,97,112,59,32768,10824,512,97,117,8036,8040,112,59,32768,10822,112,59,32768,10826,111,116,59,32768,8845,114,59,32768,10821,59,32896,8746,65024,1024,97,108,114,118,8066,8078,8116,8123,114,114,512,59,109,8073,8075,32768,8631,59,32768,10556,121,768,101,118,119,8086,8104,8109,113,1089,8093,0,0,8099,114,101,99,59,32768,8926,117,99,99,59,32768,8927,101,101,59,32768,8910,101,100,103,101,59,32768,8911,101,110,33024,164,59,32768,164,101,97,114,114,111,119,512,108,114,8134,8140,101,102,116,59,32768,8630,105,103,104,116,59,32768,8631,101,101,59,32768,8910,101,100,59,32768,8911,512,99,105,8162,8170,111,110,105,110,116,59,32768,8754,110,116,59,32768,8753,108,99,116,121,59,32768,9005,4864,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8221,8226,8231,8267,8282,8296,8327,8351,8366,8379,8466,8471,8487,8621,8647,8676,8697,8712,8720,114,114,59,32768,8659,97,114,59,32768,10597,1024,103,108,114,115,8240,8246,8252,8256,103,101,114,59,32768,8224,101,116,104,59,32768,8504,114,59,32768,8595,104,512,59,118,8262,8264,32768,8208,59,32768,8867,572,8271,8278,97,114,111,119,59,32768,10511,97,99,59,32768,733,512,97,121,8287,8293,114,111,110,59,32768,271,59,32768,1076,768,59,97,111,8303,8305,8320,32768,8518,512,103,114,8310,8316,103,101,114,59,32768,8225,114,59,32768,8650,116,115,101,113,59,32768,10871,768,103,108,109,8334,8339,8344,33024,176,59,32768,176,116,97,59,32768,948,112,116,121,118,59,32768,10673,512,105,114,8356,8362,115,104,116,59,32768,10623,59,32896,55349,56609,97,114,512,108,114,8373,8376,59,32768,8643,59,32768,8642,1280,97,101,103,115,118,8390,8418,8421,8428,8433,109,768,59,111,115,8398,8400,8415,32768,8900,110,100,512,59,115,8407,8409,32768,8900,117,105,116,59,32768,9830,59,32768,9830,59,32768,168,97,109,109,97,59,32768,989,105,110,59,32768,8946,768,59,105,111,8440,8442,8461,32768,247,100,101,33280,247,59,111,8450,8452,32768,247,110,116,105,109,101,115,59,32768,8903,110,120,59,32768,8903,99,121,59,32768,1106,99,1088,8478,0,0,8483,114,110,59,32768,8990,111,112,59,32768,8973,1280,108,112,116,117,119,8498,8504,8509,8556,8570,108,97,114,59,32768,36,102,59,32896,55349,56661,1280,59,101,109,112,115,8520,8522,8535,8542,8548,32768,729,113,512,59,100,8528,8530,32768,8784,111,116,59,32768,8785,105,110,117,115,59,32768,8760,108,117,115,59,32768,8724,113,117,97,114,101,59,32768,8865,98,108,101,98,97,114,119,101,100,103,101,59,32768,8966,110,768,97,100,104,8578,8585,8597,114,114,111,119,59,32768,8595,111,119,110,97,114,114,111,119,115,59,32768,8650,97,114,112,111,111,110,512,108,114,8608,8614,101,102,116,59,32768,8643,105,103,104,116,59,32768,8642,563,8625,8633,107,97,114,111,119,59,32768,10512,1088,8638,0,0,8643,114,110,59,32768,8991,111,112,59,32768,8972,768,99,111,116,8654,8666,8670,512,114,121,8659,8663,59,32896,55349,56505,59,32768,1109,108,59,32768,10742,114,111,107,59,32768,273,512,100,114,8681,8686,111,116,59,32768,8945,105,512,59,102,8692,8694,32768,9663,59,32768,9662,512,97,104,8702,8707,114,114,59,32768,8693,97,114,59,32768,10607,97,110,103,108,101,59,32768,10662,512,99,105,8725,8729,121,59,32768,1119,103,114,97,114,114,59,32768,10239,4608,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,8774,8788,8807,8844,8849,8852,8866,8895,8929,8977,8989,9004,9046,9136,9151,9171,9184,9199,512,68,111,8779,8784,111,116,59,32768,10871,116,59,32768,8785,512,99,115,8793,8801,117,116,101,33024,233,59,32768,233,116,101,114,59,32768,10862,1024,97,105,111,121,8816,8822,8835,8841,114,111,110,59,32768,283,114,512,59,99,8828,8830,32768,8790,33024,234,59,32768,234,108,111,110,59,32768,8789,59,32768,1101,111,116,59,32768,279,59,32768,8519,512,68,114,8857,8862,111,116,59,32768,8786,59,32896,55349,56610,768,59,114,115,8873,8875,8883,32768,10906,97,118,101,33024,232,59,32768,232,512,59,100,8888,8890,32768,10902,111,116,59,32768,10904,1024,59,105,108,115,8904,8906,8914,8917,32768,10905,110,116,101,114,115,59,32768,9191,59,32768,8467,512,59,100,8922,8924,32768,10901,111,116,59,32768,10903,768,97,112,115,8936,8941,8960,99,114,59,32768,275,116,121,768,59,115,118,8950,8952,8957,32768,8709,101,116,59,32768,8709,59,32768,8709,112,512,49,59,8966,8975,516,8970,8973,59,32768,8196,59,32768,8197,32768,8195,512,103,115,8982,8985,59,32768,331,112,59,32768,8194,512,103,112,8994,8999,111,110,59,32768,281,102,59,32896,55349,56662,768,97,108,115,9011,9023,9028,114,512,59,115,9017,9019,32768,8917,108,59,32768,10723,117,115,59,32768,10865,105,768,59,108,118,9036,9038,9043,32768,949,111,110,59,32768,949,59,32768,1013,1024,99,115,117,118,9055,9071,9099,9128,512,105,111,9060,9065,114,99,59,32768,8790,108,111,110,59,32768,8789,1082,9077,0,0,9081,109,59,32768,8770,97,110,116,512,103,108,9088,9093,116,114,59,32768,10902,101,115,115,59,32768,10901,768,97,101,105,9106,9111,9116,108,115,59,32768,61,115,116,59,32768,8799,118,512,59,68,9122,9124,32768,8801,68,59,32768,10872,112,97,114,115,108,59,32768,10725,512,68,97,9141,9146,111,116,59,32768,8787,114,114,59,32768,10609,768,99,100,105,9158,9162,9167,114,59,32768,8495,111,116,59,32768,8784,109,59,32768,8770,512,97,104,9176,9179,59,32768,951,33024,240,59,32768,240,512,109,114,9189,9195,108,33024,235,59,32768,235,111,59,32768,8364,768,99,105,112,9206,9210,9215,108,59,32768,33,115,116,59,32768,8707,512,101,111,9220,9230,99,116,97,116,105,111,110,59,32768,8496,110,101,110,116,105,97,108,101,59,32768,8519,4914,9262,0,9276,0,9280,9287,0,0,9318,9324,0,9331,0,9352,9357,9386,0,9395,9497,108,108,105,110,103,100,111,116,115,101,113,59,32768,8786,121,59,32768,1092,109,97,108,101,59,32768,9792,768,105,108,114,9293,9299,9313,108,105,103,59,32768,64259,1082,9305,0,0,9309,103,59,32768,64256,105,103,59,32768,64260,59,32896,55349,56611,108,105,103,59,32768,64257,108,105,103,59,32896,102,106,768,97,108,116,9337,9341,9346,116,59,32768,9837,105,103,59,32768,64258,110,115,59,32768,9649,111,102,59,32768,402,833,9361,0,9366,102,59,32896,55349,56663,512,97,107,9370,9375,108,108,59,32768,8704,512,59,118,9380,9382,32768,8916,59,32768,10969,97,114,116,105,110,116,59,32768,10765,512,97,111,9399,9491,512,99,115,9404,9487,1794,9413,9443,9453,9470,9474,0,9484,1795,9421,9426,9429,9434,9437,0,9440,33024,189,59,32768,189,59,32768,8531,33024,188,59,32768,188,59,32768,8533,59,32768,8537,59,32768,8539,772,9447,0,9450,59,32768,8532,59,32768,8534,1285,9459,9464,0,0,9467,33024,190,59,32768,190,59,32768,8535,59,32768,8540,53,59,32768,8536,775,9478,0,9481,59,32768,8538,59,32768,8541,56,59,32768,8542,108,59,32768,8260,119,110,59,32768,8994,99,114,59,32896,55349,56507,4352,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,9537,9547,9575,9582,9595,9600,9679,9684,9694,9700,9705,9725,9773,9779,9785,9810,9917,512,59,108,9542,9544,32768,8807,59,32768,10892,768,99,109,112,9554,9560,9572,117,116,101,59,32768,501,109,97,512,59,100,9567,9569,32768,947,59,32768,989,59,32768,10886,114,101,118,101,59,32768,287,512,105,121,9587,9592,114,99,59,32768,285,59,32768,1075,111,116,59,32768,289,1024,59,108,113,115,9609,9611,9614,9633,32768,8805,59,32768,8923,768,59,113,115,9621,9623,9626,32768,8805,59,32768,8807,108,97,110,116,59,32768,10878,1024,59,99,100,108,9642,9644,9648,9667,32768,10878,99,59,32768,10921,111,116,512,59,111,9655,9657,32768,10880,512,59,108,9662,9664,32768,10882,59,32768,10884,512,59,101,9672,9675,32896,8923,65024,115,59,32768,10900,114,59,32896,55349,56612,512,59,103,9689,9691,32768,8811,59,32768,8921,109,101,108,59,32768,8503,99,121,59,32768,1107,1024,59,69,97,106,9714,9716,9719,9722,32768,8823,59,32768,10898,59,32768,10917,59,32768,10916,1024,69,97,101,115,9734,9737,9751,9768,59,32768,8809,112,512,59,112,9743,9745,32768,10890,114,111,120,59,32768,10890,512,59,113,9756,9758,32768,10888,512,59,113,9763,9765,32768,10888,59,32768,8809,105,109,59,32768,8935,112,102,59,32896,55349,56664,97,118,101,59,32768,96,512,99,105,9790,9794,114,59,32768,8458,109,768,59,101,108,9802,9804,9807,32768,8819,59,32768,10894,59,32768,10896,34304,62,59,99,100,108,113,114,9824,9826,9838,9843,9849,9856,32768,62,512,99,105,9831,9834,59,32768,10919,114,59,32768,10874,111,116,59,32768,8919,80,97,114,59,32768,10645,117,101,115,116,59,32768,10876,1280,97,100,101,108,115,9867,9882,9887,9906,9912,833,9872,0,9879,112,114,111,120,59,32768,10886,114,59,32768,10616,111,116,59,32768,8919,113,512,108,113,9893,9899,101,115,115,59,32768,8923,108,101,115,115,59,32768,10892,101,115,115,59,32768,8823,105,109,59,32768,8819,512,101,110,9922,9932,114,116,110,101,113,113,59,32896,8809,65024,69,59,32896,8809,65024,2560,65,97,98,99,101,102,107,111,115,121,9958,9963,10015,10020,10026,10060,10065,10085,10147,10171,114,114,59,32768,8660,1024,105,108,109,114,9972,9978,9982,9988,114,115,112,59,32768,8202,102,59,32768,189,105,108,116,59,32768,8459,512,100,114,9993,9998,99,121,59,32768,1098,768,59,99,119,10005,10007,10012,32768,8596,105,114,59,32768,10568,59,32768,8621,97,114,59,32768,8463,105,114,99,59,32768,293,768,97,108,114,10033,10048,10054,114,116,115,512,59,117,10041,10043,32768,9829,105,116,59,32768,9829,108,105,112,59,32768,8230,99,111,110,59,32768,8889,114,59,32896,55349,56613,115,512,101,119,10071,10078,97,114,111,119,59,32768,10533,97,114,111,119,59,32768,10534,1280,97,109,111,112,114,10096,10101,10107,10136,10141,114,114,59,32768,8703,116,104,116,59,32768,8763,107,512,108,114,10113,10124,101,102,116,97,114,114,111,119,59,32768,8617,105,103,104,116,97,114,114,111,119,59,32768,8618,102,59,32896,55349,56665,98,97,114,59,32768,8213,768,99,108,116,10154,10159,10165,114,59,32896,55349,56509,97,115,104,59,32768,8463,114,111,107,59,32768,295,512,98,112,10176,10182,117,108,108,59,32768,8259,104,101,110,59,32768,8208,5426,10211,0,10220,0,10239,10255,10267,0,10276,10312,0,0,10318,10371,10458,10485,10491,0,10500,10545,10558,99,117,116,101,33024,237,59,32768,237,768,59,105,121,10226,10228,10235,32768,8291,114,99,33024,238,59,32768,238,59,32768,1080,512,99,120,10243,10247,121,59,32768,1077,99,108,33024,161,59,32768,161,512,102,114,10259,10262,59,32768,8660,59,32896,55349,56614,114,97,118,101,33024,236,59,32768,236,1024,59,105,110,111,10284,10286,10300,10306,32768,8520,512,105,110,10291,10296,110,116,59,32768,10764,116,59,32768,8749,102,105,110,59,32768,10716,116,97,59,32768,8489,108,105,103,59,32768,307,768,97,111,112,10324,10361,10365,768,99,103,116,10331,10335,10357,114,59,32768,299,768,101,108,112,10342,10345,10351,59,32768,8465,105,110,101,59,32768,8464,97,114,116,59,32768,8465,104,59,32768,305,102,59,32768,8887,101,100,59,32768,437,1280,59,99,102,111,116,10381,10383,10389,10403,10409,32768,8712,97,114,101,59,32768,8453,105,110,512,59,116,10396,10398,32768,8734,105,101,59,32768,10717,100,111,116,59,32768,305,1280,59,99,101,108,112,10420,10422,10427,10444,10451,32768,8747,97,108,59,32768,8890,512,103,114,10432,10438,101,114,115,59,32768,8484,99,97,108,59,32768,8890,97,114,104,107,59,32768,10775,114,111,100,59,32768,10812,1024,99,103,112,116,10466,10470,10475,10480,121,59,32768,1105,111,110,59,32768,303,102,59,32896,55349,56666,97,59,32768,953,114,111,100,59,32768,10812,117,101,115,116,33024,191,59,32768,191,512,99,105,10504,10509,114,59,32896,55349,56510,110,1280,59,69,100,115,118,10521,10523,10526,10531,10541,32768,8712,59,32768,8953,111,116,59,32768,8949,512,59,118,10536,10538,32768,8948,59,32768,8947,59,32768,8712,512,59,105,10549,10551,32768,8290,108,100,101,59,32768,297,828,10562,0,10567,99,121,59,32768,1110,108,33024,239,59,32768,239,1536,99,102,109,111,115,117,10585,10598,10603,10609,10615,10630,512,105,121,10590,10595,114,99,59,32768,309,59,32768,1081,114,59,32896,55349,56615,97,116,104,59,32768,567,112,102,59,32896,55349,56667,820,10620,0,10625,114,59,32896,55349,56511,114,99,121,59,32768,1112,107,99,121,59,32768,1108,2048,97,99,102,103,104,106,111,115,10653,10666,10680,10685,10692,10697,10702,10708,112,112,97,512,59,118,10661,10663,32768,954,59,32768,1008,512,101,121,10671,10677,100,105,108,59,32768,311,59,32768,1082,114,59,32896,55349,56616,114,101,101,110,59,32768,312,99,121,59,32768,1093,99,121,59,32768,1116,112,102,59,32896,55349,56668,99,114,59,32896,55349,56512,5888,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,10761,10783,10789,10799,10804,10957,11011,11047,11094,11349,11372,11382,11409,11414,11451,11478,11526,11698,11711,11755,11823,11910,11929,768,97,114,116,10768,10773,10777,114,114,59,32768,8666,114,59,32768,8656,97,105,108,59,32768,10523,97,114,114,59,32768,10510,512,59,103,10794,10796,32768,8806,59,32768,10891,97,114,59,32768,10594,4660,10824,0,10830,0,10838,0,0,0,0,0,10844,10850,0,10867,10870,10877,0,10933,117,116,101,59,32768,314,109,112,116,121,118,59,32768,10676,114,97,110,59,32768,8466,98,100,97,59,32768,955,103,768,59,100,108,10857,10859,10862,32768,10216,59,32768,10641,101,59,32768,10216,59,32768,10885,117,111,33024,171,59,32768,171,114,2048,59,98,102,104,108,112,115,116,10894,10896,10907,10911,10915,10919,10923,10928,32768,8592,512,59,102,10901,10903,32768,8676,115,59,32768,10527,115,59,32768,10525,107,59,32768,8617,112,59,32768,8619,108,59,32768,10553,105,109,59,32768,10611,108,59,32768,8610,768,59,97,101,10939,10941,10946,32768,10923,105,108,59,32768,10521,512,59,115,10951,10953,32768,10925,59,32896,10925,65024,768,97,98,114,10964,10969,10974,114,114,59,32768,10508,114,107,59,32768,10098,512,97,107,10979,10991,99,512,101,107,10985,10988,59,32768,123,59,32768,91,512,101,115,10996,10999,59,32768,10635,108,512,100,117,11005,11008,59,32768,10639,59,32768,10637,1024,97,101,117,121,11020,11026,11040,11044,114,111,110,59,32768,318,512,100,105,11031,11036,105,108,59,32768,316,108,59,32768,8968,98,59,32768,123,59,32768,1083,1024,99,113,114,115,11056,11060,11072,11090,97,59,32768,10550,117,111,512,59,114,11067,11069,32768,8220,59,32768,8222,512,100,117,11077,11083,104,97,114,59,32768,10599,115,104,97,114,59,32768,10571,104,59,32768,8626,1280,59,102,103,113,115,11105,11107,11228,11231,11250,32768,8804,116,1280,97,104,108,114,116,11119,11136,11157,11169,11216,114,114,111,119,512,59,116,11128,11130,32768,8592,97,105,108,59,32768,8610,97,114,112,111,111,110,512,100,117,11147,11153,111,119,110,59,32768,8637,112,59,32768,8636,101,102,116,97,114,114,111,119,115,59,32768,8647,105,103,104,116,768,97,104,115,11180,11194,11204,114,114,111,119,512,59,115,11189,11191,32768,8596,59,32768,8646,97,114,112,111,111,110,115,59,32768,8651,113,117,105,103,97,114,114,111,119,59,32768,8621,104,114,101,101,116,105,109,101,115,59,32768,8907,59,32768,8922,768,59,113,115,11238,11240,11243,32768,8804,59,32768,8806,108,97,110,116,59,32768,10877,1280,59,99,100,103,115,11261,11263,11267,11286,11298,32768,10877,99,59,32768,10920,111,116,512,59,111,11274,11276,32768,10879,512,59,114,11281,11283,32768,10881,59,32768,10883,512,59,101,11291,11294,32896,8922,65024,115,59,32768,10899,1280,97,100,101,103,115,11309,11317,11322,11339,11344,112,112,114,111,120,59,32768,10885,111,116,59,32768,8918,113,512,103,113,11328,11333,116,114,59,32768,8922,103,116,114,59,32768,10891,116,114,59,32768,8822,105,109,59,32768,8818,768,105,108,114,11356,11362,11368,115,104,116,59,32768,10620,111,111,114,59,32768,8970,59,32896,55349,56617,512,59,69,11377,11379,32768,8822,59,32768,10897,562,11386,11405,114,512,100,117,11391,11394,59,32768,8637,512,59,108,11399,11401,32768,8636,59,32768,10602,108,107,59,32768,9604,99,121,59,32768,1113,1280,59,97,99,104,116,11425,11427,11432,11440,11446,32768,8810,114,114,59,32768,8647,111,114,110,101,114,59,32768,8990,97,114,100,59,32768,10603,114,105,59,32768,9722,512,105,111,11456,11462,100,111,116,59,32768,320,117,115,116,512,59,97,11470,11472,32768,9136,99,104,101,59,32768,9136,1024,69,97,101,115,11487,11490,11504,11521,59,32768,8808,112,512,59,112,11496,11498,32768,10889,114,111,120,59,32768,10889,512,59,113,11509,11511,32768,10887,512,59,113,11516,11518,32768,10887,59,32768,8808,105,109,59,32768,8934,2048,97,98,110,111,112,116,119,122,11543,11556,11561,11616,11640,11660,11667,11680,512,110,114,11548,11552,103,59,32768,10220,114,59,32768,8701,114,107,59,32768,10214,103,768,108,109,114,11569,11596,11604,101,102,116,512,97,114,11577,11584,114,114,111,119,59,32768,10229,105,103,104,116,97,114,114,111,119,59,32768,10231,97,112,115,116,111,59,32768,10236,105,103,104,116,97,114,114,111,119,59,32768,10230,112,97,114,114,111,119,512,108,114,11627,11633,101,102,116,59,32768,8619,105,103,104,116,59,32768,8620,768,97,102,108,11647,11651,11655,114,59,32768,10629,59,32896,55349,56669,117,115,59,32768,10797,105,109,101,115,59,32768,10804,562,11671,11676,115,116,59,32768,8727,97,114,59,32768,95,768,59,101,102,11687,11689,11695,32768,9674,110,103,101,59,32768,9674,59,32768,10731,97,114,512,59,108,11705,11707,32768,40,116,59,32768,10643,1280,97,99,104,109,116,11722,11727,11735,11747,11750,114,114,59,32768,8646,111,114,110,101,114,59,32768,8991,97,114,512,59,100,11742,11744,32768,8651,59,32768,10605,59,32768,8206,114,105,59,32768,8895,1536,97,99,104,105,113,116,11768,11774,11779,11782,11798,11817,113,117,111,59,32768,8249,114,59,32896,55349,56513,59,32768,8624,109,768,59,101,103,11790,11792,11795,32768,8818,59,32768,10893,59,32768,10895,512,98,117,11803,11806,59,32768,91,111,512,59,114,11812,11814,32768,8216,59,32768,8218,114,111,107,59,32768,322,34816,60,59,99,100,104,105,108,113,114,11841,11843,11855,11860,11866,11872,11878,11885,32768,60,512,99,105,11848,11851,59,32768,10918,114,59,32768,10873,111,116,59,32768,8918,114,101,101,59,32768,8907,109,101,115,59,32768,8905,97,114,114,59,32768,10614,117,101,115,116,59,32768,10875,512,80,105,11890,11895,97,114,59,32768,10646,768,59,101,102,11902,11904,11907,32768,9667,59,32768,8884,59,32768,9666,114,512,100,117,11916,11923,115,104,97,114,59,32768,10570,104,97,114,59,32768,10598,512,101,110,11934,11944,114,116,110,101,113,113,59,32896,8808,65024,69,59,32896,8808,65024,3584,68,97,99,100,101,102,104,105,108,110,111,112,115,117,11978,11984,12061,12075,12081,12095,12100,12104,12170,12181,12188,12204,12207,12223,68,111,116,59,32768,8762,1024,99,108,112,114,11993,11999,12019,12055,114,33024,175,59,32768,175,512,101,116,12004,12007,59,32768,9794,512,59,101,12012,12014,32768,10016,115,101,59,32768,10016,512,59,115,12024,12026,32768,8614,116,111,1024,59,100,108,117,12037,12039,12045,12051,32768,8614,111,119,110,59,32768,8615,101,102,116,59,32768,8612,112,59,32768,8613,107,101,114,59,32768,9646,512,111,121,12066,12072,109,109,97,59,32768,10793,59,32768,1084,97,115,104,59,32768,8212,97,115,117,114,101,100,97,110,103,108,101,59,32768,8737,114,59,32896,55349,56618,111,59,32768,8487,768,99,100,110,12111,12118,12146,114,111,33024,181,59,32768,181,1024,59,97,99,100,12127,12129,12134,12139,32768,8739,115,116,59,32768,42,105,114,59,32768,10992,111,116,33024,183,59,32768,183,117,115,768,59,98,100,12155,12157,12160,32768,8722,59,32768,8863,512,59,117,12165,12167,32768,8760,59,32768,10794,564,12174,12178,112,59,32768,10971,114,59,32768,8230,112,108,117,115,59,32768,8723,512,100,112,12193,12199,101,108,115,59,32768,8871,102,59,32896,55349,56670,59,32768,8723,512,99,116,12212,12217,114,59,32896,55349,56514,112,111,115,59,32768,8766,768,59,108,109,12230,12232,12240,32768,956,116,105,109,97,112,59,32768,8888,97,112,59,32768,8888,6144,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,12294,12315,12364,12376,12393,12472,12496,12547,12553,12636,12641,12703,12725,12747,12752,12876,12881,12957,13033,13089,13294,13359,13384,13499,512,103,116,12299,12303,59,32896,8921,824,512,59,118,12308,12311,32896,8811,8402,59,32896,8811,824,768,101,108,116,12322,12348,12352,102,116,512,97,114,12329,12336,114,114,111,119,59,32768,8653,105,103,104,116,97,114,114,111,119,59,32768,8654,59,32896,8920,824,512,59,118,12357,12360,32896,8810,8402,59,32896,8810,824,105,103,104,116,97,114,114,111,119,59,32768,8655,512,68,100,12381,12387,97,115,104,59,32768,8879,97,115,104,59,32768,8878,1280,98,99,110,112,116,12404,12409,12415,12420,12452,108,97,59,32768,8711,117,116,101,59,32768,324,103,59,32896,8736,8402,1280,59,69,105,111,112,12431,12433,12437,12442,12446,32768,8777,59,32896,10864,824,100,59,32896,8779,824,115,59,32768,329,114,111,120,59,32768,8777,117,114,512,59,97,12459,12461,32768,9838,108,512,59,115,12467,12469,32768,9838,59,32768,8469,836,12477,0,12483,112,33024,160,59,32768,160,109,112,512,59,101,12489,12492,32896,8782,824,59,32896,8783,824,1280,97,101,111,117,121,12507,12519,12525,12540,12544,833,12512,0,12515,59,32768,10819,111,110,59,32768,328,100,105,108,59,32768,326,110,103,512,59,100,12532,12534,32768,8775,111,116,59,32896,10861,824,112,59,32768,10818,59,32768,1085,97,115,104,59,32768,8211,1792,59,65,97,100,113,115,120,12568,12570,12575,12596,12602,12608,12623,32768,8800,114,114,59,32768,8663,114,512,104,114,12581,12585,107,59,32768,10532,512,59,111,12590,12592,32768,8599,119,59,32768,8599,111,116,59,32896,8784,824,117,105,118,59,32768,8802,512,101,105,12613,12618,97,114,59,32768,10536,109,59,32896,8770,824,105,115,116,512,59,115,12631,12633,32768,8708,59,32768,8708,114,59,32896,55349,56619,1024,69,101,115,116,12650,12654,12688,12693,59,32896,8807,824,768,59,113,115,12661,12663,12684,32768,8817,768,59,113,115,12670,12672,12676,32768,8817,59,32896,8807,824,108,97,110,116,59,32896,10878,824,59,32896,10878,824,105,109,59,32768,8821,512,59,114,12698,12700,32768,8815,59,32768,8815,768,65,97,112,12710,12715,12720,114,114,59,32768,8654,114,114,59,32768,8622,97,114,59,32768,10994,768,59,115,118,12732,12734,12744,32768,8715,512,59,100,12739,12741,32768,8956,59,32768,8954,59,32768,8715,99,121,59,32768,1114,1792,65,69,97,100,101,115,116,12767,12772,12776,12781,12785,12853,12858,114,114,59,32768,8653,59,32896,8806,824,114,114,59,32768,8602,114,59,32768,8229,1024,59,102,113,115,12794,12796,12821,12842,32768,8816,116,512,97,114,12802,12809,114,114,111,119,59,32768,8602,105,103,104,116,97,114,114,111,119,59,32768,8622,768,59,113,115,12828,12830,12834,32768,8816,59,32896,8806,824,108,97,110,116,59,32896,10877,824,512,59,115,12847,12850,32896,10877,824,59,32768,8814,105,109,59,32768,8820,512,59,114,12863,12865,32768,8814,105,512,59,101,12871,12873,32768,8938,59,32768,8940,105,100,59,32768,8740,512,112,116,12886,12891,102,59,32896,55349,56671,33536,172,59,105,110,12899,12901,12936,32768,172,110,1024,59,69,100,118,12911,12913,12917,12923,32768,8713,59,32896,8953,824,111,116,59,32896,8949,824,818,12928,12931,12934,59,32768,8713,59,32768,8951,59,32768,8950,105,512,59,118,12942,12944,32768,8716,818,12949,12952,12955,59,32768,8716,59,32768,8958,59,32768,8957,768,97,111,114,12964,12992,12999,114,1024,59,97,115,116,12974,12976,12983,12988,32768,8742,108,108,101,108,59,32768,8742,108,59,32896,11005,8421,59,32896,8706,824,108,105,110,116,59,32768,10772,768,59,99,101,13006,13008,13013,32768,8832,117,101,59,32768,8928,512,59,99,13018,13021,32896,10927,824,512,59,101,13026,13028,32768,8832,113,59,32896,10927,824,1024,65,97,105,116,13042,13047,13066,13077,114,114,59,32768,8655,114,114,768,59,99,119,13056,13058,13062,32768,8603,59,32896,10547,824,59,32896,8605,824,103,104,116,97,114,114,111,119,59,32768,8603,114,105,512,59,101,13084,13086,32768,8939,59,32768,8941,1792,99,104,105,109,112,113,117,13104,13128,13151,13169,13174,13179,13194,1024,59,99,101,114,13113,13115,13120,13124,32768,8833,117,101,59,32768,8929,59,32896,10928,824,59,32896,55349,56515,111,114,116,1086,13137,0,0,13142,105,100,59,32768,8740,97,114,97,108,108,101,108,59,32768,8742,109,512,59,101,13157,13159,32768,8769,512,59,113,13164,13166,32768,8772,59,32768,8772,105,100,59,32768,8740,97,114,59,32768,8742,115,117,512,98,112,13186,13190,101,59,32768,8930,101,59,32768,8931,768,98,99,112,13201,13241,13254,1024,59,69,101,115,13210,13212,13216,13219,32768,8836,59,32896,10949,824,59,32768,8840,101,116,512,59,101,13226,13229,32896,8834,8402,113,512,59,113,13235,13237,32768,8840,59,32896,10949,824,99,512,59,101,13247,13249,32768,8833,113,59,32896,10928,824,1024,59,69,101,115,13263,13265,13269,13272,32768,8837,59,32896,10950,824,59,32768,8841,101,116,512,59,101,13279,13282,32896,8835,8402,113,512,59,113,13288,13290,32768,8841,59,32896,10950,824,1024,103,105,108,114,13303,13307,13315,13319,108,59,32768,8825,108,100,101,33024,241,59,32768,241,103,59,32768,8824,105,97,110,103,108,101,512,108,114,13330,13344,101,102,116,512,59,101,13338,13340,32768,8938,113,59,32768,8940,105,103,104,116,512,59,101,13353,13355,32768,8939,113,59,32768,8941,512,59,109,13364,13366,32768,957,768,59,101,115,13373,13375,13380,32768,35,114,111,59,32768,8470,112,59,32768,8199,2304,68,72,97,100,103,105,108,114,115,13403,13409,13415,13420,13426,13439,13446,13476,13493,97,115,104,59,32768,8877,97,114,114,59,32768,10500,112,59,32896,8781,8402,97,115,104,59,32768,8876,512,101,116,13431,13435,59,32896,8805,8402,59,32896,62,8402,110,102,105,110,59,32768,10718,768,65,101,116,13453,13458,13462,114,114,59,32768,10498,59,32896,8804,8402,512,59,114,13467,13470,32896,60,8402,105,101,59,32896,8884,8402,512,65,116,13481,13486,114,114,59,32768,10499,114,105,101,59,32896,8885,8402,105,109,59,32896,8764,8402,768,65,97,110,13506,13511,13532,114,114,59,32768,8662,114,512,104,114,13517,13521,107,59,32768,10531,512,59,111,13526,13528,32768,8598,119,59,32768,8598,101,97,114,59,32768,10535,9252,13576,0,0,0,0,0,0,0,0,0,0,0,0,0,13579,0,13596,13617,13653,13659,13673,13695,13708,0,0,13713,13750,0,13788,13794,0,13815,13890,13913,13937,13944,59,32768,9416,512,99,115,13583,13591,117,116,101,33024,243,59,32768,243,116,59,32768,8859,512,105,121,13600,13613,114,512,59,99,13606,13608,32768,8858,33024,244,59,32768,244,59,32768,1086,1280,97,98,105,111,115,13627,13632,13638,13642,13646,115,104,59,32768,8861,108,97,99,59,32768,337,118,59,32768,10808,116,59,32768,8857,111,108,100,59,32768,10684,108,105,103,59,32768,339,512,99,114,13663,13668,105,114,59,32768,10687,59,32896,55349,56620,1600,13680,0,0,13684,0,13692,110,59,32768,731,97,118,101,33024,242,59,32768,242,59,32768,10689,512,98,109,13699,13704,97,114,59,32768,10677,59,32768,937,110,116,59,32768,8750,1024,97,99,105,116,13721,13726,13741,13746,114,114,59,32768,8634,512,105,114,13731,13735,114,59,32768,10686,111,115,115,59,32768,10683,110,101,59,32768,8254,59,32768,10688,768,97,101,105,13756,13761,13766,99,114,59,32768,333,103,97,59,32768,969,768,99,100,110,13773,13779,13782,114,111,110,59,32768,959,59,32768,10678,117,115,59,32768,8854,112,102,59,32896,55349,56672,768,97,101,108,13800,13804,13809,114,59,32768,10679,114,112,59,32768,10681,117,115,59,32768,8853,1792,59,97,100,105,111,115,118,13829,13831,13836,13869,13875,13879,13886,32768,8744,114,114,59,32768,8635,1024,59,101,102,109,13845,13847,13859,13864,32768,10845,114,512,59,111,13853,13855,32768,8500,102,59,32768,8500,33024,170,59,32768,170,33024,186,59,32768,186,103,111,102,59,32768,8886,114,59,32768,10838,108,111,112,101,59,32768,10839,59,32768,10843,768,99,108,111,13896,13900,13908,114,59,32768,8500,97,115,104,33024,248,59,32768,248,108,59,32768,8856,105,573,13917,13924,100,101,33024,245,59,32768,245,101,115,512,59,97,13930,13932,32768,8855,115,59,32768,10806,109,108,33024,246,59,32768,246,98,97,114,59,32768,9021,5426,13972,0,14013,0,14017,14053,0,14058,14086,0,0,14107,14199,0,14202,0,0,14229,14425,0,14438,114,1024,59,97,115,116,13981,13983,13997,14009,32768,8741,33280,182,59,108,13989,13991,32768,182,108,101,108,59,32768,8741,1082,14003,0,0,14007,109,59,32768,10995,59,32768,11005,59,32768,8706,121,59,32768,1087,114,1280,99,105,109,112,116,14028,14033,14038,14043,14046,110,116,59,32768,37,111,100,59,32768,46,105,108,59,32768,8240,59,32768,8869,101,110,107,59,32768,8241,114,59,32896,55349,56621,768,105,109,111,14064,14074,14080,512,59,118,14069,14071,32768,966,59,32768,981,109,97,116,59,32768,8499,110,101,59,32768,9742,768,59,116,118,14092,14094,14103,32768,960,99,104,102,111,114,107,59,32768,8916,59,32768,982,512,97,117,14111,14132,110,512,99,107,14117,14128,107,512,59,104,14123,14125,32768,8463,59,32768,8462,118,59,32768,8463,115,2304,59,97,98,99,100,101,109,115,116,14152,14154,14160,14163,14168,14179,14182,14188,14193,32768,43,99,105,114,59,32768,10787,59,32768,8862,105,114,59,32768,10786,512,111,117,14173,14176,59,32768,8724,59,32768,10789,59,32768,10866,110,33024,177,59,32768,177,105,109,59,32768,10790,119,111,59,32768,10791,59,32768,177,768,105,112,117,14208,14216,14221,110,116,105,110,116,59,32768,10773,102,59,32896,55349,56673,110,100,33024,163,59,32768,163,2560,59,69,97,99,101,105,110,111,115,117,14249,14251,14254,14258,14263,14336,14348,14367,14413,14418,32768,8826,59,32768,10931,112,59,32768,10935,117,101,59,32768,8828,512,59,99,14268,14270,32768,10927,1536,59,97,99,101,110,115,14283,14285,14293,14302,14306,14331,32768,8826,112,112,114,111,120,59,32768,10935,117,114,108,121,101,113,59,32768,8828,113,59,32768,10927,768,97,101,115,14313,14321,14326,112,112,114,111,120,59,32768,10937,113,113,59,32768,10933,105,109,59,32768,8936,105,109,59,32768,8830,109,101,512,59,115,14343,14345,32768,8242,59,32768,8473,768,69,97,115,14355,14358,14362,59,32768,10933,112,59,32768,10937,105,109,59,32768,8936,768,100,102,112,14374,14377,14402,59,32768,8719,768,97,108,115,14384,14390,14396,108,97,114,59,32768,9006,105,110,101,59,32768,8978,117,114,102,59,32768,8979,512,59,116,14407,14409,32768,8733,111,59,32768,8733,105,109,59,32768,8830,114,101,108,59,32768,8880,512,99,105,14429,14434,114,59,32896,55349,56517,59,32768,968,110,99,115,112,59,32768,8200,1536,102,105,111,112,115,117,14457,14462,14467,14473,14480,14486,114,59,32896,55349,56622,110,116,59,32768,10764,112,102,59,32896,55349,56674,114,105,109,101,59,32768,8279,99,114,59,32896,55349,56518,768,97,101,111,14493,14513,14526,116,512,101,105,14499,14508,114,110,105,111,110,115,59,32768,8461,110,116,59,32768,10774,115,116,512,59,101,14520,14522,32768,63,113,59,32768,8799,116,33024,34,59,32768,34,5376,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,14575,14597,14603,14608,14775,14829,14865,14901,14943,14966,15e3,15139,15159,15176,15182,15236,15261,15267,15309,15352,15360,768,97,114,116,14582,14587,14591,114,114,59,32768,8667,114,59,32768,8658,97,105,108,59,32768,10524,97,114,114,59,32768,10511,97,114,59,32768,10596,1792,99,100,101,110,113,114,116,14623,14637,14642,14650,14672,14679,14751,512,101,117,14628,14632,59,32896,8765,817,116,101,59,32768,341,105,99,59,32768,8730,109,112,116,121,118,59,32768,10675,103,1024,59,100,101,108,14660,14662,14665,14668,32768,10217,59,32768,10642,59,32768,10661,101,59,32768,10217,117,111,33024,187,59,32768,187,114,2816,59,97,98,99,102,104,108,112,115,116,119,14703,14705,14709,14720,14723,14727,14731,14735,14739,14744,14748,32768,8594,112,59,32768,10613,512,59,102,14714,14716,32768,8677,115,59,32768,10528,59,32768,10547,115,59,32768,10526,107,59,32768,8618,112,59,32768,8620,108,59,32768,10565,105,109,59,32768,10612,108,59,32768,8611,59,32768,8605,512,97,105,14756,14761,105,108,59,32768,10522,111,512,59,110,14767,14769,32768,8758,97,108,115,59,32768,8474,768,97,98,114,14782,14787,14792,114,114,59,32768,10509,114,107,59,32768,10099,512,97,107,14797,14809,99,512,101,107,14803,14806,59,32768,125,59,32768,93,512,101,115,14814,14817,59,32768,10636,108,512,100,117,14823,14826,59,32768,10638,59,32768,10640,1024,97,101,117,121,14838,14844,14858,14862,114,111,110,59,32768,345,512,100,105,14849,14854,105,108,59,32768,343,108,59,32768,8969,98,59,32768,125,59,32768,1088,1024,99,108,113,115,14874,14878,14885,14897,97,59,32768,10551,100,104,97,114,59,32768,10601,117,111,512,59,114,14892,14894,32768,8221,59,32768,8221,104,59,32768,8627,768,97,99,103,14908,14934,14938,108,1024,59,105,112,115,14918,14920,14925,14931,32768,8476,110,101,59,32768,8475,97,114,116,59,32768,8476,59,32768,8477,116,59,32768,9645,33024,174,59,32768,174,768,105,108,114,14950,14956,14962,115,104,116,59,32768,10621,111,111,114,59,32768,8971,59,32896,55349,56623,512,97,111,14971,14990,114,512,100,117,14977,14980,59,32768,8641,512,59,108,14985,14987,32768,8640,59,32768,10604,512,59,118,14995,14997,32768,961,59,32768,1009,768,103,110,115,15007,15123,15127,104,116,1536,97,104,108,114,115,116,15022,15039,15060,15086,15099,15111,114,114,111,119,512,59,116,15031,15033,32768,8594,97,105,108,59,32768,8611,97,114,112,111,111,110,512,100,117,15050,15056,111,119,110,59,32768,8641,112,59,32768,8640,101,102,116,512,97,104,15068,15076,114,114,111,119,115,59,32768,8644,97,114,112,111,111,110,115,59,32768,8652,105,103,104,116,97,114,114,111,119,115,59,32768,8649,113,117,105,103,97,114,114,111,119,59,32768,8605,104,114,101,101,116,105,109,101,115,59,32768,8908,103,59,32768,730,105,110,103,100,111,116,115,101,113,59,32768,8787,768,97,104,109,15146,15151,15156,114,114,59,32768,8644,97,114,59,32768,8652,59,32768,8207,111,117,115,116,512,59,97,15168,15170,32768,9137,99,104,101,59,32768,9137,109,105,100,59,32768,10990,1024,97,98,112,116,15191,15204,15209,15229,512,110,114,15196,15200,103,59,32768,10221,114,59,32768,8702,114,107,59,32768,10215,768,97,102,108,15216,15220,15224,114,59,32768,10630,59,32896,55349,56675,117,115,59,32768,10798,105,109,101,115,59,32768,10805,512,97,112,15241,15253,114,512,59,103,15247,15249,32768,41,116,59,32768,10644,111,108,105,110,116,59,32768,10770,97,114,114,59,32768,8649,1024,97,99,104,113,15276,15282,15287,15290,113,117,111,59,32768,8250,114,59,32896,55349,56519,59,32768,8625,512,98,117,15295,15298,59,32768,93,111,512,59,114,15304,15306,32768,8217,59,32768,8217,768,104,105,114,15316,15322,15328,114,101,101,59,32768,8908,109,101,115,59,32768,8906,105,1024,59,101,102,108,15338,15340,15343,15346,32768,9657,59,32768,8885,59,32768,9656,116,114,105,59,32768,10702,108,117,104,97,114,59,32768,10600,59,32768,8478,6706,15391,15398,15404,15499,15516,15592,0,15606,15660,0,0,15752,15758,0,15827,15863,15886,16e3,16006,16038,16086,0,16467,0,0,16506,99,117,116,101,59,32768,347,113,117,111,59,32768,8218,2560,59,69,97,99,101,105,110,112,115,121,15424,15426,15429,15441,15446,15458,15463,15482,15490,15495,32768,8827,59,32768,10932,833,15434,0,15437,59,32768,10936,111,110,59,32768,353,117,101,59,32768,8829,512,59,100,15451,15453,32768,10928,105,108,59,32768,351,114,99,59,32768,349,768,69,97,115,15470,15473,15477,59,32768,10934,112,59,32768,10938,105,109,59,32768,8937,111,108,105,110,116,59,32768,10771,105,109,59,32768,8831,59,32768,1089,111,116,768,59,98,101,15507,15509,15512,32768,8901,59,32768,8865,59,32768,10854,1792,65,97,99,109,115,116,120,15530,15535,15556,15562,15566,15572,15587,114,114,59,32768,8664,114,512,104,114,15541,15545,107,59,32768,10533,512,59,111,15550,15552,32768,8600,119,59,32768,8600,116,33024,167,59,32768,167,105,59,32768,59,119,97,114,59,32768,10537,109,512,105,110,15578,15584,110,117,115,59,32768,8726,59,32768,8726,116,59,32768,10038,114,512,59,111,15597,15600,32896,55349,56624,119,110,59,32768,8994,1024,97,99,111,121,15614,15619,15632,15654,114,112,59,32768,9839,512,104,121,15624,15629,99,121,59,32768,1097,59,32768,1096,114,116,1086,15640,0,0,15645,105,100,59,32768,8739,97,114,97,108,108,101,108,59,32768,8741,33024,173,59,32768,173,512,103,109,15664,15681,109,97,768,59,102,118,15673,15675,15678,32768,963,59,32768,962,59,32768,962,2048,59,100,101,103,108,110,112,114,15698,15700,15705,15715,15725,15735,15739,15745,32768,8764,111,116,59,32768,10858,512,59,113,15710,15712,32768,8771,59,32768,8771,512,59,69,15720,15722,32768,10910,59,32768,10912,512,59,69,15730,15732,32768,10909,59,32768,10911,101,59,32768,8774,108,117,115,59,32768,10788,97,114,114,59,32768,10610,97,114,114,59,32768,8592,1024,97,101,105,116,15766,15788,15796,15808,512,108,115,15771,15783,108,115,101,116,109,105,110,117,115,59,32768,8726,104,112,59,32768,10803,112,97,114,115,108,59,32768,10724,512,100,108,15801,15804,59,32768,8739,101,59,32768,8995,512,59,101,15813,15815,32768,10922,512,59,115,15820,15822,32768,10924,59,32896,10924,65024,768,102,108,112,15833,15839,15857,116,99,121,59,32768,1100,512,59,98,15844,15846,32768,47,512,59,97,15851,15853,32768,10692,114,59,32768,9023,102,59,32896,55349,56676,97,512,100,114,15868,15882,101,115,512,59,117,15875,15877,32768,9824,105,116,59,32768,9824,59,32768,8741,768,99,115,117,15892,15921,15977,512,97,117,15897,15909,112,512,59,115,15903,15905,32768,8851,59,32896,8851,65024,112,512,59,115,15915,15917,32768,8852,59,32896,8852,65024,117,512,98,112,15927,15952,768,59,101,115,15934,15936,15939,32768,8847,59,32768,8849,101,116,512,59,101,15946,15948,32768,8847,113,59,32768,8849,768,59,101,115,15959,15961,15964,32768,8848,59,32768,8850,101,116,512,59,101,15971,15973,32768,8848,113,59,32768,8850,768,59,97,102,15984,15986,15996,32768,9633,114,566,15991,15994,59,32768,9633,59,32768,9642,59,32768,9642,97,114,114,59,32768,8594,1024,99,101,109,116,16014,16019,16025,16031,114,59,32896,55349,56520,116,109,110,59,32768,8726,105,108,101,59,32768,8995,97,114,102,59,32768,8902,512,97,114,16042,16053,114,512,59,102,16048,16050,32768,9734,59,32768,9733,512,97,110,16058,16081,105,103,104,116,512,101,112,16067,16076,112,115,105,108,111,110,59,32768,1013,104,105,59,32768,981,115,59,32768,175,1280,98,99,109,110,112,16096,16221,16288,16291,16295,2304,59,69,100,101,109,110,112,114,115,16115,16117,16120,16125,16137,16143,16154,16160,16166,32768,8834,59,32768,10949,111,116,59,32768,10941,512,59,100,16130,16132,32768,8838,111,116,59,32768,10947,117,108,116,59,32768,10945,512,69,101,16148,16151,59,32768,10955,59,32768,8842,108,117,115,59,32768,10943,97,114,114,59,32768,10617,768,101,105,117,16173,16206,16210,116,768,59,101,110,16181,16183,16194,32768,8834,113,512,59,113,16189,16191,32768,8838,59,32768,10949,101,113,512,59,113,16201,16203,32768,8842,59,32768,10955,109,59,32768,10951,512,98,112,16215,16218,59,32768,10965,59,32768,10963,99,1536,59,97,99,101,110,115,16235,16237,16245,16254,16258,16283,32768,8827,112,112,114,111,120,59,32768,10936,117,114,108,121,101,113,59,32768,8829,113,59,32768,10928,768,97,101,115,16265,16273,16278,112,112,114,111,120,59,32768,10938,113,113,59,32768,10934,105,109,59,32768,8937,105,109,59,32768,8831,59,32768,8721,103,59,32768,9834,3328,49,50,51,59,69,100,101,104,108,109,110,112,115,16322,16327,16332,16337,16339,16342,16356,16368,16382,16388,16394,16405,16411,33024,185,59,32768,185,33024,178,59,32768,178,33024,179,59,32768,179,32768,8835,59,32768,10950,512,111,115,16347,16351,116,59,32768,10942,117,98,59,32768,10968,512,59,100,16361,16363,32768,8839,111,116,59,32768,10948,115,512,111,117,16374,16378,108,59,32768,10185,98,59,32768,10967,97,114,114,59,32768,10619,117,108,116,59,32768,10946,512,69,101,16399,16402,59,32768,10956,59,32768,8843,108,117,115,59,32768,10944,768,101,105,117,16418,16451,16455,116,768,59,101,110,16426,16428,16439,32768,8835,113,512,59,113,16434,16436,32768,8839,59,32768,10950,101,113,512,59,113,16446,16448,32768,8843,59,32768,10956,109,59,32768,10952,512,98,112,16460,16463,59,32768,10964,59,32768,10966,768,65,97,110,16473,16478,16499,114,114,59,32768,8665,114,512,104,114,16484,16488,107,59,32768,10534,512,59,111,16493,16495,32768,8601,119,59,32768,8601,119,97,114,59,32768,10538,108,105,103,33024,223,59,32768,223,5938,16538,16552,16557,16579,16584,16591,0,16596,16692,0,0,0,0,0,16731,16780,0,16787,16908,0,0,0,16938,1091,16543,0,0,16549,103,101,116,59,32768,8982,59,32768,964,114,107,59,32768,9140,768,97,101,121,16563,16569,16575,114,111,110,59,32768,357,100,105,108,59,32768,355,59,32768,1090,111,116,59,32768,8411,108,114,101,99,59,32768,8981,114,59,32896,55349,56625,1024,101,105,107,111,16604,16641,16670,16684,835,16609,0,16624,101,512,52,102,16614,16617,59,32768,8756,111,114,101,59,32768,8756,97,768,59,115,118,16631,16633,16638,32768,952,121,109,59,32768,977,59,32768,977,512,99,110,16646,16665,107,512,97,115,16652,16660,112,112,114,111,120,59,32768,8776,105,109,59,32768,8764,115,112,59,32768,8201,512,97,115,16675,16679,112,59,32768,8776,105,109,59,32768,8764,114,110,33024,254,59,32768,254,829,16696,16701,16727,100,101,59,32768,732,101,115,33536,215,59,98,100,16710,16712,16723,32768,215,512,59,97,16717,16719,32768,8864,114,59,32768,10801,59,32768,10800,116,59,32768,8749,768,101,112,115,16737,16741,16775,97,59,32768,10536,1024,59,98,99,102,16750,16752,16757,16762,32768,8868,111,116,59,32768,9014,105,114,59,32768,10993,512,59,111,16767,16770,32896,55349,56677,114,107,59,32768,10970,97,59,32768,10537,114,105,109,101,59,32768,8244,768,97,105,112,16793,16798,16899,100,101,59,32768,8482,1792,97,100,101,109,112,115,116,16813,16868,16873,16876,16883,16889,16893,110,103,108,101,1280,59,100,108,113,114,16828,16830,16836,16850,16853,32768,9653,111,119,110,59,32768,9663,101,102,116,512,59,101,16844,16846,32768,9667,113,59,32768,8884,59,32768,8796,105,103,104,116,512,59,101,16862,16864,32768,9657,113,59,32768,8885,111,116,59,32768,9708,59,32768,8796,105,110,117,115,59,32768,10810,108,117,115,59,32768,10809,98,59,32768,10701,105,109,101,59,32768,10811,101,122,105,117,109,59,32768,9186,768,99,104,116,16914,16926,16931,512,114,121,16919,16923,59,32896,55349,56521,59,32768,1094,99,121,59,32768,1115,114,111,107,59,32768,359,512,105,111,16942,16947,120,116,59,32768,8812,104,101,97,100,512,108,114,16956,16967,101,102,116,97,114,114,111,119,59,32768,8606,105,103,104,116,97,114,114,111,119,59,32768,8608,4608,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,17016,17021,17026,17043,17057,17072,17095,17110,17119,17139,17172,17187,17202,17290,17330,17336,17365,17381,114,114,59,32768,8657,97,114,59,32768,10595,512,99,114,17031,17039,117,116,101,33024,250,59,32768,250,114,59,32768,8593,114,820,17049,0,17053,121,59,32768,1118,118,101,59,32768,365,512,105,121,17062,17069,114,99,33024,251,59,32768,251,59,32768,1091,768,97,98,104,17079,17084,17090,114,114,59,32768,8645,108,97,99,59,32768,369,97,114,59,32768,10606,512,105,114,17100,17106,115,104,116,59,32768,10622,59,32896,55349,56626,114,97,118,101,33024,249,59,32768,249,562,17123,17135,114,512,108,114,17128,17131,59,32768,8639,59,32768,8638,108,107,59,32768,9600,512,99,116,17144,17167,1088,17150,0,0,17163,114,110,512,59,101,17156,17158,32768,8988,114,59,32768,8988,111,112,59,32768,8975,114,105,59,32768,9720,512,97,108,17177,17182,99,114,59,32768,363,33024,168,59,32768,168,512,103,112,17192,17197,111,110,59,32768,371,102,59,32896,55349,56678,1536,97,100,104,108,115,117,17215,17222,17233,17257,17262,17280,114,114,111,119,59,32768,8593,111,119,110,97,114,114,111,119,59,32768,8597,97,114,112,111,111,110,512,108,114,17244,17250,101,102,116,59,32768,8639,105,103,104,116,59,32768,8638,117,115,59,32768,8846,105,768,59,104,108,17270,17272,17275,32768,965,59,32768,978,111,110,59,32768,965,112,97,114,114,111,119,115,59,32768,8648,768,99,105,116,17297,17320,17325,1088,17303,0,0,17316,114,110,512,59,101,17309,17311,32768,8989,114,59,32768,8989,111,112,59,32768,8974,110,103,59,32768,367,114,105,59,32768,9721,99,114,59,32896,55349,56522,768,100,105,114,17343,17348,17354,111,116,59,32768,8944,108,100,101,59,32768,361,105,512,59,102,17360,17362,32768,9653,59,32768,9652,512,97,109,17370,17375,114,114,59,32768,8648,108,33024,252,59,32768,252,97,110,103,108,101,59,32768,10663,3840,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,17420,17425,17437,17443,17613,17617,17623,17667,17672,17678,17693,17699,17705,17711,17754,114,114,59,32768,8661,97,114,512,59,118,17432,17434,32768,10984,59,32768,10985,97,115,104,59,32768,8872,512,110,114,17448,17454,103,114,116,59,32768,10652,1792,101,107,110,112,114,115,116,17469,17478,17485,17494,17515,17526,17578,112,115,105,108,111,110,59,32768,1013,97,112,112,97,59,32768,1008,111,116,104,105,110,103,59,32768,8709,768,104,105,114,17501,17505,17508,105,59,32768,981,59,32768,982,111,112,116,111,59,32768,8733,512,59,104,17520,17522,32768,8597,111,59,32768,1009,512,105,117,17531,17537,103,109,97,59,32768,962,512,98,112,17542,17560,115,101,116,110,101,113,512,59,113,17553,17556,32896,8842,65024,59,32896,10955,65024,115,101,116,110,101,113,512,59,113,17571,17574,32896,8843,65024,59,32896,10956,65024,512,104,114,17583,17589,101,116,97,59,32768,977,105,97,110,103,108,101,512,108,114,17600,17606,101,102,116,59,32768,8882,105,103,104,116,59,32768,8883,121,59,32768,1074,97,115,104,59,32768,8866,768,101,108,114,17630,17648,17654,768,59,98,101,17637,17639,17644,32768,8744,97,114,59,32768,8891,113,59,32768,8794,108,105,112,59,32768,8942,512,98,116,17659,17664,97,114,59,32768,124,59,32768,124,114,59,32896,55349,56627,116,114,105,59,32768,8882,115,117,512,98,112,17685,17689,59,32896,8834,8402,59,32896,8835,8402,112,102,59,32896,55349,56679,114,111,112,59,32768,8733,116,114,105,59,32768,8883,512,99,117,17716,17721,114,59,32896,55349,56523,512,98,112,17726,17740,110,512,69,101,17732,17736,59,32896,10955,65024,59,32896,8842,65024,110,512,69,101,17746,17750,59,32896,10956,65024,59,32896,8843,65024,105,103,122,97,103,59,32768,10650,1792,99,101,102,111,112,114,115,17777,17783,17815,17820,17826,17829,17842,105,114,99,59,32768,373,512,100,105,17788,17809,512,98,103,17793,17798,97,114,59,32768,10847,101,512,59,113,17804,17806,32768,8743,59,32768,8793,101,114,112,59,32768,8472,114,59,32896,55349,56628,112,102,59,32896,55349,56680,59,32768,8472,512,59,101,17834,17836,32768,8768,97,116,104,59,32768,8768,99,114,59,32896,55349,56524,5428,17871,17891,0,17897,0,17902,17917,0,0,17920,17935,17940,17945,0,0,17977,17992,0,18008,18024,18029,768,97,105,117,17877,17881,17886,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,116,114,105,59,32768,9661,114,59,32896,55349,56629,512,65,97,17906,17911,114,114,59,32768,10234,114,114,59,32768,10231,59,32768,958,512,65,97,17924,17929,114,114,59,32768,10232,114,114,59,32768,10229,97,112,59,32768,10236,105,115,59,32768,8955,768,100,112,116,17951,17956,17970,111,116,59,32768,10752,512,102,108,17961,17965,59,32896,55349,56681,117,115,59,32768,10753,105,109,101,59,32768,10754,512,65,97,17981,17986,114,114,59,32768,10233,114,114,59,32768,10230,512,99,113,17996,18001,114,59,32896,55349,56525,99,117,112,59,32768,10758,512,112,116,18012,18018,108,117,115,59,32768,10756,114,105,59,32768,9651,101,101,59,32768,8897,101,100,103,101,59,32768,8896,2048,97,99,101,102,105,111,115,117,18052,18068,18081,18087,18092,18097,18103,18109,99,512,117,121,18058,18065,116,101,33024,253,59,32768,253,59,32768,1103,512,105,121,18073,18078,114,99,59,32768,375,59,32768,1099,110,33024,165,59,32768,165,114,59,32896,55349,56630,99,121,59,32768,1111,112,102,59,32896,55349,56682,99,114,59,32896,55349,56526,512,99,109,18114,18118,121,59,32768,1102,108,33024,255,59,32768,255,2560,97,99,100,101,102,104,105,111,115,119,18145,18152,18166,18171,18186,18191,18196,18204,18210,18216,99,117,116,101,59,32768,378,512,97,121,18157,18163,114,111,110,59,32768,382,59,32768,1079,111,116,59,32768,380,512,101,116,18176,18182,116,114,102,59,32768,8488,97,59,32768,950,114,59,32896,55349,56631,99,121,59,32768,1078,103,114,97,114,114,59,32768,8669,112,102,59,32896,55349,56683,99,114,59,32896,55349,56527,512,106,110,18221,18224,59,32768,8205,106,59,32768,8204])},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array([1024,97,103,108,113,9,23,27,31,1086,15,0,0,19,112,59,32768,38,111,115,59,32768,39,116,59,32768,62,116,59,32768,60,117,111,116,59,32768,34])},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.innerText=e.textContent=e.getText=e.getInnerHTML=e.getOuterHTML=void 0;var s=i(8),o=n(i(264)),r=i(46);function a(t,e){return o.default(t,e)}e.getOuterHTML=a,e.getInnerHTML=function(t,e){return s.hasChildren(t)?t.children.map((function(t){return a(t,e)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):s.isTag(e)?"br"===e.name?"\n":t(e.children):s.isCDATA(e)?t(e.children):s.isText(e)?e.data:""},e.textContent=function t(e){return Array.isArray(e)?e.map(t).join(""):s.isTag(e)||s.isCDATA(e)?t(e.children):s.isText(e)?e.data:""},e.innerText=function t(e){return Array.isArray(e)?e.map(t).join(""):s.hasChildren(e)&&e.type===r.ElementType.Tag||s.isCDATA(e)?t(e.children):s.isText(e)?e.data:""}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i";case a.Comment:return function(t){return"\x3c!--"+t.data+"--\x3e"}(t);case a.CDATA:return function(t){return""}(t);case a.Script:case a.Style:case a.Tag:return function(t,e){var i;"foreign"===e.xmlMode&&(t.name=null!==(i=c.elementNames.get(t.name))&&void 0!==i?i:t.name,t.parent&&f.has(t.parent.name)&&(e=n(n({},e),{xmlMode:!1})));!e.xmlMode&&m.has(t.name)&&(e=n(n({},e),{xmlMode:"foreign"}));var s="<"+t.name,o=function(t,e){if(t)return Object.keys(t).map((function(i){var n,s,o=null!==(n=t[i])&&void 0!==n?n:"";return"foreign"===e.xmlMode&&(i=null!==(s=c.attributeNames.get(i))&&void 0!==s?s:i),e.emptyAttrs||e.xmlMode||""!==o?i+'="'+(!1!==e.decodeEntities?l.encodeXML(o):o.replace(/"/g,"""))+'"':i})).join(" ")}(t.attribs,e);o&&(s+=" "+o);0===t.children.length&&(e.xmlMode?!1!==e.selfClosingTags:e.selfClosingTags&&d.has(t.name))?(e.xmlMode||(s+=" "),s+="/>"):(s+=">",t.children.length>0&&(s+=h(t.children,e)),!e.xmlMode&&d.has(t.name)||(s+=""));return s}(t,e);case a.Text:return function(t,e){var i=t.data||"";!1===e.decodeEntities||!e.xmlMode&&t.parent&&u.has(t.parent.name)||(i=l.encodeXML(i));return i}(t,e)}}e.default=h;var f=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encode=e.decodeStrict=e.decode=void 0;var n=i(85),s=i(88);e.decode=function(t,e){return(!e||e<=0?n.decodeXML:n.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?n.decodeXML:n.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?s.encodeXML:s.encodeHTML)(t)};var o=i(88);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var r=i(85);Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return r.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return r.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return r.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return r.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return r.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return r.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return r.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return r.decodeXML}})},function(t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(i(269));e.default=function(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in s.default&&(t=s.default[t]);var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}},function(t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.attributeNames=e.elementNames=void 0,e.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),e.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prevElementSibling=e.nextElementSibling=e.getName=e.hasAttrib=e.getAttributeValue=e.getSiblings=e.getParent=e.getChildren=void 0;var n=i(8),s=[];function o(t){var e;return null!==(e=t.children)&&void 0!==e?e:s}function r(t){return t.parent||null}e.getChildren=o,e.getParent=r,e.getSiblings=function(t){var e=r(t);if(null!=e)return o(e);for(var i=[t],n=t.prev,s=t.next;null!=n;)i.unshift(n),n=n.prev;for(;null!=s;)i.push(s),s=s.next;return i},e.getAttributeValue=function(t,e){var i;return null===(i=t.attribs)||void 0===i?void 0:i[e]},e.hasAttrib=function(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]},e.getName=function(t){return t.name},e.nextElementSibling=function(t){for(var e=t.next;null!==e&&!n.isTag(e);)e=e.next;return e},e.prevElementSibling=function(t){for(var e=t.prev;null!==e&&!n.isTag(e);)e=e.prev;return e}},function(t,e,i){"use strict";function n(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}}Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.prependChild=e.append=e.appendChild=e.replaceElement=e.removeElement=void 0,e.removeElement=n,e.replaceElement=function(t,e){var i=e.prev=t.prev;i&&(i.next=e);var n=e.next=t.next;n&&(n.prev=e);var s=e.parent=t.parent;if(s){var o=s.children;o[o.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(n(e),e.next=null,e.parent=t,t.children.push(e)>1){var i=t.children[t.children.length-2];i.next=e,e.prev=i}else e.prev=null},e.append=function(t,e){n(e);var i=t.parent,s=t.next;if(e.next=s,e.prev=t,t.next=e,e.parent=i,s){if(s.prev=e,i){var o=i.children;o.splice(o.lastIndexOf(s),0,e)}}else i&&i.children.push(e)},e.prependChild=function(t,e){if(n(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)){var i=t.children[1];i.prev=e,e.next=i}else e.next=null},e.prepend=function(t,e){n(e);var i=t.parent;if(i){var s=i.children;s.splice(s.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=i,e.prev=t.prev,e.next=t,t.prev=e}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getElementsByTagType=e.getElementsByTagName=e.getElementById=e.getElements=e.testElement=void 0;var n=i(8),s=i(89),o={tag_name:function(t){return"function"==typeof t?function(e){return n.isTag(e)&&t(e.name)}:"*"===t?n.isTag:function(e){return n.isTag(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return n.isText(e)&&t(e.data)}:function(e){return n.isText(e)&&e.data===t}}};function r(t,e){return"function"==typeof e?function(i){return n.isTag(i)&&e(i.attribs[t])}:function(i){return n.isTag(i)&&i.attribs[t]===e}}function a(t,e){return function(i){return t(i)||e(i)}}function l(t){var e=Object.keys(t).map((function(e){var i=t[e];return e in o?o[e](i):r(e,i)}));return 0===e.length?null:e.reduce(a)}e.testElement=function(t,e){var i=l(t);return!i||i(e)},e.getElements=function(t,e,i,n){void 0===n&&(n=1/0);var o=l(t);return o?s.filter(o,e,i,n):[]},e.getElementById=function(t,e,i){return void 0===i&&(i=!0),Array.isArray(e)||(e=[e]),s.findOne(r("id",t),e,i)},e.getElementsByTagName=function(t,e,i,n){return void 0===i&&(i=!0),void 0===n&&(n=1/0),s.filter(o.tag_name(t),e,i,n)},e.getElementsByTagType=function(t,e,i,n){return void 0===i&&(i=!0),void 0===n&&(n=1/0),s.filter(o.tag_type(t),e,i,n)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.removeSubsets=void 0;var n=i(8);function s(t,e){var i=[],s=[];if(t===e)return 0;for(var o=n.hasChildren(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(o=n.hasChildren(e)?e:e.parent;o;)s.unshift(o),o=o.parent;for(var r=Math.min(i.length,s.length),a=0;ac.indexOf(d)?l===e?20:4:l===t?10:2}e.removeSubsets=function(t){for(var e=t.length;--e>=0;){var i=t[e];if(e>0&&t.lastIndexOf(i,e-1)>=0)t.splice(e,1);else for(var n=i.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t},e.compareDocumentPosition=s,e.uniqueSort=function(t){return(t=t.filter((function(t,e,i){return!i.includes(t,e+1)}))).sort((function(t,e){var i=s(t,e);return 2&i?-1:4&i?1:0})),t}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n={};i.r(n),i.d(n,"getPropByString",(function(){return c})),i.d(n,"getScroll",(function(){return u})),i.d(n,"getOffset",(function(){return d})),i.d(n,"getOffsetByRect",(function(){return h})),i.d(n,"hasOwn",(function(){return p})),i.d(n,"arrayHas",(function(){return f})),i.d(n,"isString",(function(){return m})),i.d(n,"isFunction",(function(){return g})),i.d(n,"isObject",(function(){return v})),i.d(n,"isBoolean",(function(){return y})),i.d(n,"isNumber",(function(){return b})),i.d(n,"isPlainObject",(function(){return w})),i.d(n,"isDefined",(function(){return x})),i.d(n,"isEmptyString",(function(){return _})),i.d(n,"isNonEmptyString",(function(){return S})),i.d(n,"isElement",(function(){return C})),i.d(n,"isNonEmptyArray",(function(){return k})),i.d(n,"isArray",(function(){return T})),i.d(n,"isVueComponent",(function(){return D})),i.d(n,"isExtendVueComponent",(function(){return I})),i.d(n,"isObjectLike",(function(){return $})),i.d(n,"isDate",(function(){return O})),i.d(n,"isEqual",(function(){return M})),i.d(n,"noop",(function(){return E})),i.d(n,"hasSlot",(function(){return B})),i.d(n,"getPrefixSlots",(function(){return A})),i.d(n,"clampValue",(function(){return P})),i.d(n,"formatString",(function(){return N}));var s={};i.r(s),i.d(s,"matchSelector",(function(){return Lt})),i.d(s,"findParentBySelector",(function(){return Rt})),i.d(s,"intersects",(function(){return Ht})),i.d(s,"intersectWithPoint",(function(){return jt})),i.d(s,"isRectInRect",(function(){return Wt})),i.d(s,"css",(function(){return Vt})),i.d(s,"alignElWithMouse",(function(){return qt})),i.d(s,"on",(function(){return Ut})),i.d(s,"once",(function(){return Yt})),i.d(s,"off",(function(){return Kt})),i.d(s,"focusWithoutScroll",(function(){return Gt})),i.d(s,"isElementOutOfBoundary",(function(){return Xt})),i.d(s,"getPageHeight",(function(){return Zt})),i.d(s,"isRectOverBottom",(function(){return Qt})),i.d(s,"isRectOverTop",(function(){return Jt})),i.d(s,"isRectOverRight",(function(){return te})),i.d(s,"isRectOverLeft",(function(){return ee})),i.d(s,"getFocusElement",(function(){return ie})),i.d(s,"isHidden",(function(){return ne})),i.d(s,"hasClass",(function(){return se})),i.d(s,"addClass",(function(){return oe})),i.d(s,"removeClass",(function(){return re})),i.d(s,"isDefined",(function(){return ae})),i.d(s,"isNumber",(function(){return le})),i.d(s,"isVisible",(function(){return ce})),i.d(s,"createEvent",(function(){return ue})),i.d(s,"raf",(function(){return de})),i.d(s,"htmlDecode",(function(){return he}));i(105),i(106),i(107);var o=i(1),r=i.n(o);let a;function l(){return a||r.a}i(164);function c(t,e){let i=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");for(var n=0,s=i.length;n0}function C(t){return t&&1===t.nodeType&&toString.call(t).indexOf("Element")>-1}function k(t){return Array.isArray(t)&&t.length>0}function T(t){return Array.isArray(t)}function D(t){return w(t)&&(S(t.template)||g(t.render)||S(t.el)||C(t.el)||D(t.extends)||k(t.mixins)&&t.mixins.some((t=>D(t))))}function I(t,e){for(e&&!m(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 $(t){return"object"==typeof t&&null!==t}function O(t){return"[object Date]"===Object.prototype.toString.apply(t)}function M(t,e){if(typeof t!=typeof e)return!1;if(O(t)||O(e))return!(!O(e)||!O(t))&&t.getTime()===e.getTime();if($(t)&&$(e)){let i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(let s of i){if(!e.hasOwnProperty(s))return!1;if(!1===M(t[s],e[s]))return!1}return!0}return t===e}function E(){}function B(t,e){return!(!t.$slots||!t.$slots[e])||!(!t.$scopedSlots||!t.$scopedSlots[e])}function A(t,e){return Object.keys(e).reduce(((e,i)=>(i.startsWith(t)&&e.push({name:i.replace(t,""),exposeName:i}),e)),[])}function P(t,e,i){const n=Math.min(e,i),s=Math.max(e,i);return Math.min(Math.max(t,n),s)}function N(t,...e){return t.replace(/\{(\d+)\}/g,((t,i)=>e[i]))}function F(t){for(let e=0;e=0;e--){var i=t.childNodes[e];if(L(i)||z(i))return!0}return!1}function L(t){return!!function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(t)&&(t&&t.focus&&t.focus(),document.activeElement===t)}i(160);function R(t,e,i,n,s,o,r,a){var l=typeof(t=t||{}).default;"object"!==l&&"function"!==l||(t=t.default);var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),r?(c=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__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):s&&(c=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(t,e){return c.call(e),d(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}var H=R({name:"TrapFocus",props:{selfFocusable:{type:Boolean,default:!1},focusLast:{type:Boolean,default:!1}},methods:{focus(){this.selfFocusable?this.focusTrapper():this.focusLast?this.focusLastDescendantInBody():this.focusFirstDescendantInBody()},focusTrapper(){this.$refs.trapper&&this.$refs.trapper.focus()},focusFirstDescendantInBody(){this.$refs.body&&F(this.$refs.body)},focusLastDescendantInBody(){this.$refs.body&&z(this.$refs.body)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"trapper",attrs:{tabindex:"-1"},on:{focus:t.focus}},[i("div",{staticClass:"v-trap-focus-indicator",attrs:{tabindex:"0"},on:{focus:t.focusLastDescendantInBody}}),t._v(" "),i("div",{ref:"body",staticClass:"v-trap-focus-body"},[t._t("default")],2),t._v(" "),i("div",{staticClass:"v-trap-focus-indicator",attrs:{tabindex:"0"},on:{focus:t.focusFirstDescendantInBody}})])}),[],!1,null,null,null).exports;function j(t,e,i){for(const n of this.$children){n.$options.name===t?n.$emit(...[e].concat(i)):j.apply(n,[t,e].concat([i]))}}function W(t,e,i,n){let s=this.$parent||this.$root;const o=t=>!n||t[n.key]===n.value;for(;s;){if(s.$options.name===t&&o(s))return void s.$emit(...[e].concat(i));s=s.$parent}}var V={methods:{dispatch(t,e,i,n){W.call(this,t,e,i,n)},broadcast(t,e,i){j.call(this,t,e,i)}}};function q(t,e=[]){return{provide(){const i=e.reduce(((t,e)=>(t[e]=this[e],t)),{});return{[t]:{register:this.register,unregister:this.unregister,instance:this,...i}}}}}function U(t){return{inject:{[t]:{default:E}}}}function Y(t){return getComputedStyle(t)}function K(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function G(t){var e=document.createElement("div");return e.className=t,e}var X="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Z(t,e){if(!X)throw new Error("No element matching method supported");return X.call(t,e)}function Q(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function J(t,e){return Array.prototype.filter.call(t.children,(function(t){return Z(t,e)}))}var tt="ps",et="ps__rtl",it={thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},nt={focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}},st={x:null,y:null};function ot(t,e){var i=t.element.classList,n=nt.scrolling(e);i.contains(n)?clearTimeout(st[e]):i.add(n)}function rt(t,e){st[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(nt.scrolling(e))}),t.settings.scrollingThreshold)}var at=function(t){this.element=t,this.handlers={}},lt={isEmpty:{configurable:!0}};at.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},at.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)}))},at.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},lt.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(at.prototype,lt);var ct=function(){this.eventElements=[]};function ut(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 dt(t,e,i,n,s){var o;if(void 0===n&&(n=!0),void 0===s&&(s=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,s){var o=i[0],r=i[1],a=i[2],l=i[3],c=i[4],u=i[5];void 0===n&&(n=!0);void 0===s&&(s=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start");d[a]>t[o]-t[r]-1&&(t.reach[l]="end");e&&(d.dispatchEvent(ut("ps-scroll-"+l)),e<0?d.dispatchEvent(ut("ps-scroll-"+c)):e>0&&d.dispatchEvent(ut("ps-scroll-"+u)),n&&function(t,e){ot(t,e),rt(t,e)}(t,l));t.reach[l]&&(e||s)&&d.dispatchEvent(ut("ps-"+l+"-reach-"+t.reach[l]))}(t,i,o,n,s)}function ht(t){return parseInt(t,10)||0}ct.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new at(t),this.eventElements.push(e)),e},ct.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},ct.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)},ct.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},ct.prototype.once=function(t,e,i){var n=this.eventElement(t),s=function(t){n.unbind(e,s),i(t)};n.bind(e,s)};var pt={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 ft(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)||(J(e,it.rail("x")).forEach((function(t){return Q(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(J(e,it.rail("y")).forEach((function(t){return Q(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;K(e.scrollbarXRail,i);var s={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?s.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:s.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?s.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:s.left=e.scrollbarYLeft+t.scrollLeft;K(e.scrollbarYRail,s),K(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),K(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(nt.active("x")):(e.classList.remove(nt.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(nt.active("y")):(e.classList.remove(nt.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function mt(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 gt(t,e){var i=e[0],n=e[1],s=e[2],o=e[3],r=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=t.element,h=null,p=null,f=null;function m(e){e.touches&&e.touches[0]&&(e[s]=e.touches[0].pageY),d[l]=h+f*(e[s]-p),ot(t,c),ft(t),e.stopPropagation(),e.type.startsWith("touch")&&e.changedTouches.length>1&&e.preventDefault()}function g(){rt(t,c),t[u].classList.remove(nt.clicking),t.event.unbind(t.ownerDocument,"mousemove",m)}function v(e,r){h=d[l],r&&e.touches&&(e[s]=e.touches[0].pageY),p=e[s],f=(t[n]-t[i])/(t[o]-t[a]),r?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",g),e.preventDefault()),t[u].classList.add(nt.clicking),e.stopPropagation()}t.event.bind(t[r],"mousedown",(function(t){v(t)})),t.event.bind(t[r],"touchstart",(function(t){v(t,!0)}))}var vt={"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,ft(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,ft(t),e.stopPropagation()}))},"drag-thumb":function(t){gt(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),gt(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)&&(Z(e,":hover")||Z(t.scrollbarX,":focus")||Z(t.scrollbarY,":focus"))){var n,s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(Z(n=s,"input,[contenteditable]")||Z(n,"select,[contenteditable]")||Z(n,"textarea,[contenteditable]")||Z(n,"button,[contenteditable]"))return}var o=0,r=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:r=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:r=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:r=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:r=t.containerHeight;break;case 34:r=-t.containerHeight;break;case 36:r=t.contentHeight;break;case 35:r=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==r||(e.scrollTop-=r,e.scrollLeft+=o,ft(t),function(i,n){var s=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===s&&n>0||s>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&i<0||o>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,r)&&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),s=n[0],o=n[1];if(!function(t,i,n){if(!pt.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains(it.consuming))return!0;var o=Y(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(i.target,s,o)){var r=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=s*t.settings.wheelSpeed,r=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?e.scrollLeft+=s*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,r=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=s*t.settings.wheelSpeed),ft(t),(r=r||function(i,n){var s=Math.floor(e.scrollTop),o=0===e.scrollTop,r=s+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,l=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(n)>Math.abs(i)?o||r:a||l)||!t.settings.wheelPropagation}(s,o))&&!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(pt.supportsTouch||pt.supportsIePointer){var e=t.element,i={},n=0,s={},o=null;pt.supportsTouch?(t.event.bind(e,"touchstart",c),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",d)):pt.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",c),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",c),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",d)))}function r(i,n){e.scrollTop-=n,e.scrollLeft-=i,ft(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function l(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 c(t){if(l(t)){var e=a(t);i.pageX=e.pageX,i.pageY=e.pageY,n=(new Date).getTime(),null!==o&&clearInterval(o)}}function u(o){if(l(o)){var c=a(o),u={pageX:c.pageX,pageY:c.pageY},d=u.pageX-i.pageX,h=u.pageY-i.pageY;if(function(t,i,n){if(!e.contains(t))return!1;for(var s=t;s&&s!==e;){if(s.classList.contains(it.consuming))return!0;var o=Y(s);if(n&&o.overflowY.match(/(scroll|auto)/)){var r=s.scrollHeight-s.clientHeight;if(r>0&&(s.scrollTop>0&&n<0||s.scrollTop0))return!0}if(i&&o.overflowX.match(/(scroll|auto)/)){var a=s.scrollWidth-s.clientWidth;if(a>0&&(s.scrollLeft>0&&i<0||s.scrollLeft0))return!0}s=s.parentNode}return!1}(o.target,d,h))return;r(d,h),i=u;var p=(new Date).getTime(),f=p-n;f>0&&(s.x=d/f,s.y=h/f,n=p),function(i,n){var s=Math.floor(e.scrollTop),o=e.scrollLeft,r=Math.abs(i),a=Math.abs(n);if(a>r){if(n<0&&s===t.contentHeight-t.containerHeight||n>0&&0===s)return 0===window.scrollY&&n>0&&pt.isChrome}else if(r>a&&(i<0&&o===t.contentWidth-t.containerWidth||i>0&&0===o))return!0;return!0}(d,h)&&o.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){t.isInitialized?clearInterval(o):s.x||s.y?Math.abs(s.x)<.01&&Math.abs(s.y)<.01?clearInterval(o):t.element?(r(30*s.x,30*s.y),s.x*=.8,s.y*=.8):clearInterval(o):clearInterval(o)}),10))}}},yt=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(tt),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 s,o,r=function(){return t.classList.add(nt.focus)},a=function(){return t.classList.remove(nt.focus)};this.isRtl="rtl"===Y(t).direction,!0===this.isRtl&&t.classList.add(et),this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,s=t.scrollLeft<0,t.scrollLeft=o,s),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new ct,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=G(it.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=G(it.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=Y(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=ht(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=ht(l.borderLeftWidth)+ht(l.borderRightWidth),K(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=ht(l.marginLeft)+ht(l.marginRight),K(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=G(it.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=G(it.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=Y(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=ht(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=Y(t);return ht(e.width)+ht(e.paddingLeft)+ht(e.paddingRight)+ht(e.borderLeftWidth)+ht(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=ht(c.borderTopWidth)+ht(c.borderBottomWidth),K(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=ht(c.marginTop)+ht(c.marginBottom),K(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 vt[t](i)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return i.onScroll(t)})),ft(this)};yt.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,K(this.scrollbarXRail,{display:"block"}),K(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=ht(Y(this.scrollbarXRail).marginLeft)+ht(Y(this.scrollbarXRail).marginRight),this.railYMarginHeight=ht(Y(this.scrollbarYRail).marginTop)+ht(Y(this.scrollbarYRail).marginBottom),K(this.scrollbarXRail,{display:"none"}),K(this.scrollbarYRail,{display:"none"}),ft(this),dt(this,"top",0,!1,!0),dt(this,"left",0,!1,!0),K(this.scrollbarXRail,{display:""}),K(this.scrollbarYRail,{display:""}))},yt.prototype.onScroll=function(t){this.isAlive&&(ft(this),dt(this,"top",this.element.scrollTop-this.lastScrollTop),dt(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},yt.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Q(this.scrollbarX),Q(this.scrollbarY),Q(this.scrollbarXRail),Q(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},yt.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var bt=yt,wt=i(90);const xt=function(t){for(let e of t)for(let t of e.target.__syno_resize_listeners__||[])t.fn.apply(t.scope||t.fn,[e])},_t=function(t,e,i){t.__syno_resize_listeners__||(t.__syno_resize_listeners__=[],t.__syno_resize__=new wt.a(xt),t.__syno_resize__.observe(t)),t.__syno_resize_listeners__.push({fn:e,scope:i})},St=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 Ct=i(0),kt=i.n(Ct);i(159);var Tt=R({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 kt()({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(),_t(this.$el,this.handleResize,this),this.isResizeMode&&this.$refs.view&&_t(this.$refs.view,this.handleResize,this)},beforeDestroy(){this.$el&&St(this.$el,this.handleResize),this.isResizeMode&&this.$refs.view&&St(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 bt(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 bt(this.$el,t):this.update()}},purge(){this.ps&&(this.ps.destroy(),this.ps=null)},scrollTo(t,e=10,i=!1){let n=t,s=this.$el,o=getComputedStyle(s),r=s.scrollTop,a=0,l=0;for(;n!==s&&l{let e=0,i=a-r,n=setInterval((()=>{e++,s.scrollTop=r+i*e/3,3===e&&(clearInterval(n),t())}),50)})):(s.scrollTop=a,Promise.resolve())},ensureVisible(t,e=10,i=!1){if(!1===i&&t.scrollIntoViewIfNeeded)return void t.scrollIntoViewIfNeeded(!1);let n,s=t,o=this.$el,r=getComputedStyle(o),a=o.scrollTop,l=a+o.clientHeight,c=0,u=0,d=0;for(;s&&s!==o&&ul&&(d=n-l),0!==d)if(i){let t=0,e=setInterval((()=>{t++,o.scrollTop=a+d*t/3,3===t&&clearInterval(e)}),200)}else o.scrollTop=a+d},resetScrollTop(){this.$el&&(this.$el.scrollTop=0)}}},(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)}),[],!1,null,null,null).exports;const Dt="undefined"==typeof window;let It=!Dt&&"navigator"in window?window.navigator.userAgent.toLowerCase():"node",$t=function(t){return t.test(It)},Ot=Dt?null:document,Mt=Dt?void 0:Ot.documentMode,Et=(!!Dt||Ot.compatMode,$t(/opera/)),Bt=$t(/\bchrome\b/),At=$t(/webkit/),Pt=!Bt&&$t(/safari/),Nt=(Pt&&$t(/applewebkit\/4/),Pt&&$t(/version\/3/),Pt&&$t(/version\/4/),!Et&&$t(/msie/)),Ft=(Nt&&$t(/msie 7/),Nt&&$t(/msie 8/),Nt&&$t(/msie 9/),!At&&$t(/gecko/)),zt=(Ft&&$t(/rv:1\.8/),Ft&&$t(/rv:1\.9/),$t(/windows|win32/),$t(/macintosh|mac os x/));$t(/adobeair/),$t(/linux/),/^https/i.test(Dt?"http":window.location.protocol);function Lt(t,e){let i=null;return i=Element.prototype.matches?Element.prototype.matches:Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i.call(t,e)}function Rt(t,e){if(Element.prototype.closest)return t.closest(e);for(;null!==t&&1===t.nodeType;){if(Lt(t,e))return t;t=t.parentElement||t.parentNode}return null}function Ht(t,e){let i=t.getBoundingClientRect(),n=e.getBoundingClientRect();return!(i.rightn.right||i.bottomn.bottom)}function jt(t,e,i){let n=C(t)?t.getBoundingClientRect():t;return n.right>e&&n.lefti&&n.tope.left&&t.top>e.top&&t.bottom(window.innerHeight||document.documentElement.clientHeight)}function Jt(t){return t.top<0}function te(t){return t.right>(window.innerWidth||document.documentElement.clientWidth)}function ee(t){return t.left<0}function ie(t){return Ft?t.relatedTarget:t.relatedTarget||document.activeElement}function ne(t){return null===t.offsetParent}function se(t,e){return t.classList.contains?t.classList.contains(e):t.className.indexOf(e)>=0}function oe(t,e){if(t.classList.add)for(const i of e.split(" "))t.classList.add(i);else t.className.indexOf(e)<0&&(t.className+=" ".concat(e))}function re(t,e){t.classList.remove?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}function ae(t){return void 0!==t}function le(t){return"number"==typeof t}function ce(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function ue(t){let e;return"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event"),e.initEvent(t,!0,!0)),e}function de(t){return window.requestAnimationFrame?window.requestAnimationFrame(t):setTimeout(t,16)}function he(t){let e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""}i(108);var pe=i(5);var fe=l().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:pe.Wormhole.transports,firstRender:!0,currentClass:this.customClass,currentStyle:this.customStyle}},created(){this.$nextTick((()=>{pe.Wormhole.registerTarget(this.name,this)}))},watch:{ownTransports(){this.$emit("change",this.children().length>0)},name(t,e){pe.Wormhole.unregisterTarget(e),pe.Wormhole.registerTarget(t,this)}},mounted(){this.transition&&this.$nextTick((()=>{this.firstRender=!1}))},beforeDestroy(){pe.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],s="function"==typeof n?n(e):i.passengers;return t.concat(s)}),[])}(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)}});function me(t,e){return e.reduce(((e,i)=>(t.hasOwnProperty(i)&&(e[i]=t[i]),e)),{})}let ge=0;const ve=["disabled","name","order","slim","slotProps","tag","to"],ye=["multiple","transition"];var be=l().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(ge++)},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(pe.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=pe.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=me(this.$props,ye);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 fe({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=me(this.$props,ve);return t(pe.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()}}),we=r.a.extend({mixins:[U("instance")],components:{vPortal:be},props:{popupContainer:{type:Function,default:void 0}},mounted(){},methods:{inFullsizeInstance(){return this.instance&&this.instance.fullsize},getContainerSelector(){let t="body";return Dt?t:(this.popupContainer?t=m(this.popupContainer)?this.popupContainer:this.popupContainer():this.inFullsizeInstance()?t="body":this.$popupContainer&&(t=m(this.$popupContainer)?this.$popupContainer:this.$popupContainer()),document.querySelector(t)?t:"body")},getContainerEl(){return Dt?null:document.querySelector(this.getContainerSelector())},outOfContainer(t){const e=this.getContainerEl();return!Wt(t.getBoundingClientRect(),e&&e.getBoundingClientRect())},outOfContainerHeight(t){const e=this.getContainerEl(),i=t.getBoundingClientRect(),n=e&&e.getBoundingClientRect();return!!n&&(i.topn.bottom)}}});function xe(t){return!!t&&(zt?t.metaKey:t.ctrlKey)}function _e(t){return!!t&&t.shiftKey}function Se(t){return Te(t)}function Ce(t){return t.key?"ArrowUp"===t.key:38===t.keyCode}function ke(t){return t.key?"ArrowDown"===t.key:40===t.keyCode}function Te(t){return t.key?"ArrowLeft"===t.key:37===t.keyCode}function De(t){return t.key?"ArrowRight"===t.key:39===t.keyCode}function Ie(t){return t.key?"Enter"===t.key:13===t.keyCode}i(109);var $e=R({name:"Menu",components:{vPerfectScrollbar:Tt,vTrapFocus:H},mixins:[V,q("menu"),U("menu"),U("sub-menu-item"),U("button"),we],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 x(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&&(b(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 x(t.closeOnSelect)?g(t.closeOnSelect)?t.closeOnSelect():t.closeOnSelect:x(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){Ce(t)?this.activePrevItem():ke(t)?this.activeNextItem():De(t)||Ie(t)?this.items[this.activeIndex]&&this.items[this.activeIndex].hasChildMenu&&this.items[this.activeIndex].openChildMenuWithFocus():Te(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;t0){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(Fe(t[0]),"... (").concat(t[1]," recursive calls)"):Fe(t)))).join("\n")}return"\n\n(found in ".concat(Fe(t),")")}(e):"")}function Fe(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 s=i.__file;if(!n&&s){const t=s.match(/([^/\\]+)\.vue$/);n=t&&t[1]}return(n?"<".concat(n.replace(Oe,(t=>t.toUpperCase())).replace(/[-_]/g,""),">"):"")+(s&&!1!==e?" at ".concat(s):"")}var ze={name:"ButtonDropdown",mixins:[U("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)Pe("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}};const Le="__synoclickoutside__";let Re=[],He=[],je=0;function We(t){He=Re.slice();for(let e of He)e[Le]&&e[Le].documentHandler(t)}function Ve(t,e,i){return function(n={}){let s=[];var o,r;i&&i.context&&(s=function(t,e){const i=t.context,n=e.arg,s=e.modifiers.children;let o=[];if(n&&(g(n)?o.push(n(t,e)):o.push(n)),!i)return o;let r=new Array;for(r.push(i);r.length>0;){const t=r.shift();let e=s?t.$children:[];t.getExtraElements&&(e=e.concat(t.getExtraElements())),o=o.concat(e);for(const i of e)i&&i._isVue&&r.push(i)}return o}(i,e),!n.target||t.contains(n.target)||(o=s,r=n.target,o.some((t=>!!t&&(t.$el?t.$el.contains(r):t.contains(r)))))||(e.expression&&t[Le].methodName&&i.context[t[Le].methodName]?i.context[t[Le].methodName]():t[Le].bindingFn&&t[Le].bindingFn()))}}function qe(t,e,i){Re.push(t),t[Le]={id:++je,documentHandler:Ve(t,e,i),methodName:e.expression,bindingFn:e.value}}function Ue(t){if(t[Le]){for(let e=0;e{We(t)})),Ut(document,"touchstart",(t=>{We(t)})));var Ye={bind(t,e,i){!1!==e.value&&qe(t,e,i)},update(t,e,i){!1!==e.value?t[Le]?(t[Le].documentHandler=Ve(t,e,i),t[Le].methodName=e.expression,t[Le].bindingFn=e.value):qe(t,e,i):Ue(t)},unbind(t){Ue(t)}},Ke=(i(163),R({directives:{clickoutside:Ye},components:{vPortalTarget:fe},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:E},onDeactivate:{type:Function,default:E},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(g(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)}}},(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()}),[],!1,null,null,null).exports);const Ge=!Dt&&(window&&"IntersectionObserver"in window),Xe=function(t){for(let e of t)for(let t of e.target.__syno_intersection_listeners__||[])t.fn.apply(t.scope||t.fn,[e])},Ze=function(t,e,i){Ge&&(t.__syno_intersection_listeners__||(t.__syno_intersection_listeners__=[],t.__syno_intersection__=new IntersectionObserver(Xe),t.__syno_intersection__.observe(t)),t.__syno_intersection_listeners__.push({fn:e,scope:i}))},Qe=function(t,e){Ge&&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))};function Je(t,e){let i=t.currentTarget,n=t.clientX,s=t.clientY;return e._tooltip.attachToElement&&(i=e,n=e.getBoundingClientRect().left,s=e.getBoundingClientRect().top),{target:i,x:n,y:s}}function ti(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 ei(t,e){const i=ti(e);if(!0===i.disable)return i;t._tooltip||si(t,i);for(const n in i)t._tooltip.$set(t._tooltip,n,i[n]);return i}function ii(t,e){const{target:i,x:n,y:s}=Je(t,e);e._tooltip.shouldShow(e)&&(e._tooltip.isActive=!0,document.body.appendChild(e._tooltip.$el),e._tooltip.show(i,n,s))}function ni(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 si(t,e,i){const n=l().extend(Ke);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=>{ii(e,t)},t._tooltip._tooltip_e_hide_cb=()=>{ni(t._tooltip)},t._tooltip._tooltip_e_move_cb=e=>{!function(t,e){const{target:i,x:n,y:s}=Je(t,e);e._tooltip.shouldShow(e)&&(e._tooltip.isActive?e._tooltip.show(i,n,s):ii(t,e))}(e,t)},t._tooltip._tooltip_e_intersection_cb=e=>{e.target!==t||e.isVisible||ni(t._tooltip)},function(t){const e=t._tooltip,i=[];if("hover"===e.triggerAction)Ut(t,"mouseenter",t._tooltip._tooltip_e_show_cb),Ut(t,"mouseleave",t._tooltip._tooltip_e_hide_cb),Ut(t,"mousemove",t._tooltip._tooltip_e_move_cb),i.push((()=>Kt(t,"mouseenter",t._tooltip._tooltip_e_show_cb))),i.push((()=>Kt(t,"mouseleave",t._tooltip._tooltip_e_hide_cb))),i.push((()=>Kt(t,"mousemove",t._tooltip._tooltip_e_move_cb)));else if("click"===e.triggerAction){const n=e=>{t._tooltip._tooltip_e_show_cb(e)},s=t=>{(function(t){return!!t&&(t.code?"Space"===t.code:32===t.keyCode)})(t)&&(e.isActive?e._tooltip_e_hide_cb():e._tooltip_e_show_cb(t),t.preventDefault(),t.stopPropagation())};Ut(t,"click",n),Ut(t,"keydown",s),i.push((()=>Kt(t,"click",n))),i.push((()=>Kt(t,"keydown",s)))}t._tooltip.$on("trigger-show",t._tooltip._tooltip_e_show_cb),t._tooltip.$on("trigger-hide",t._tooltip._tooltip_e_hide_cb),Ze(t,t._tooltip._tooltip_e_intersection_cb),i.push((()=>Qe(t,t._tooltip._tooltip_e_intersection_cb))),t._tooltip_disposed_fns=i}(t)}function oi(t){if(t._tooltip_disposed_fns){for(const e of t._tooltip_disposed_fns)e&&e();delete t._tooltip_disposed_fns}t._tooltip&&(ni(t._tooltip),t._tooltip.$destroy(),t._tooltip=null)}var ri={inserted(t,e,i){r.a.nextTick((()=>{const i=ti(e);!0!==i.disable&&si(t,i)}))},componentUpdated(t,e){r.a.nextTick((()=>{let i=ei(t,e);t._tooltip&&!ce(t)&&ni(t._tooltip),t._tooltip&&!0===i.disable&&oi(t)}))},update(t,e){r.a.nextTick((()=>{let i=ei(t,e);t._tooltip&&!ce(t)&&ni(t._tooltip),t._tooltip&&!0===i.disable&&oi(t)}))},unbind(t){oi(t)}},ai={mixins:[V,U("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()))}}};function li(t){return g(t.isMenu)&&t.isMenu()}function ci(t){return I(t,$e)}var ui=R({name:"Button",directives:{clickoutside:Ye,tooltip:ri},mixins:[V,we,q("button"),ai,U("breakpoint-buttons-group")],props:{type:{type:String,default:"",validator: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:s}=this;const o={};return o[t]=!0,""!==e&&(o["".concat(t,"-").concat(e)]=e),"grey"!==this.color&&(Ee("color","suffix",this),n=this.color),o["".concat(t,"-").concat(n)]=n,o["".concat(t,"-clicked")]=i,o["".concat(t,"-menu-shown")]=this.dropdownShown,o["".concat(t,"-pressed")]=this.pressed,o["".concat(t,"-dropdown")]=this.hasDropdownSlot,o["".concat(t,"-dropdown-shown")]=this.dropdownShown,o["".concat(t,"-disabled")]=this.disabled,s&&(o["".concat(t,"-has-icon")]=!0,o[s]=!0),o},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=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&&(v(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)li(e)&&Be("Please wrap your custom menu up by and remove isMenu function, reference by http://s.syno/vue document"),(li(e)||ci(e))&&this.register(e)},register(t,e=(()=>{})){(ci(t)||li(t)||function(t){return I(t,ze)}(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}}},(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)}),[],!1,null,null,null).exports,di=(i(165),R({name:"ButtonGroup",mixins:[V],props:{activeBtnIndex:{type:Number,default:0}},data:()=>({}),computed:{},created(){this.$on("button.click",(t=>{this.broadcast("Button","button.active",t)}))},async mounted(){await this.$nextTick(),this.updateBtnPressedStatus()},async updated(){await this.$nextTick(),this.updateBtnPressedStatus()},methods:{updateBtnPressedStatus:function(){this.$children.forEach(((t,e)=>{t&&t.setPressed&&t.setPressed(e===this.activeBtnIndex)}))}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"syno-id",rawName:"v-syno-id"}],staticClass:"v-btn-group"},[t._t("default")],2)}),[],!1,null,null,null).exports),hi=(i(166),R({name:"BreakpointButtonsGroup",components:{vButton:ui},mixins:[q("breakpoint-buttons-group")],props:{dense:{type:Boolean,default:!1},menuAlign:{type:String,default:"tr->br"}},data:()=>({buttons:[]}),computed:{wrapperCls(){return{dense:this.dense}},names(){return this.buttons.map((t=>t.name))}},methods:{register(t){this.buttons.push(t)},unregister(t){this.buttons.splice(this.buttons.findIndex((e=>e._uid===t._uid)),1)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"breakpoint-buttons-group",class:t.wrapperCls},[t.$breakpointManager.mobile?t._t("mobile",(function(){return[i("v-button",{staticClass:"more-button",attrs:{type:"styleless","use-breakpoint":!1,"menu-align":t.menuAlign},scopedSlots:t._u([{key:"dropdown",fn:function(){return[i("v-menu",t._l(t.buttons,(function(t){return i("v-menu-item",{key:t._uid,attrs:{title:t.name,disabled:t.disabled},on:{click:t.handleClick}})})),1)]},proxy:!0}],null,!1,1100595166)})]}),{names:t.names}):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.$breakpointManager.mobile,expression:"!$breakpointManager.mobile"}],staticClass:"buttons-container"},[t._t("default")],2)],2)}),[],!1,null,null,null).exports),pi=R({name:"MenuItem",mixins:[V],model:{prop:"selected",event:"selected"},props:{id:{type:String,default:void 0},title:{type:String,default:void 0},desc:{type:String,default:void 0},icon:{type:String,default:void 0},iconType:{type:String,default:void 0},type:{type:String,default:"item"},disabled:{type:Boolean,default:void 0},selected:{type:Boolean,default:!1},closeOnSelect:{type:[Boolean,Function],default:void 0},tooltip:{type:[String,Object],default:()=>{}}},data(){return{isGroupItem:!1,innerSelected:this.selected,innerDisabled:this.disabled||!1,active:!1}},computed:{role(){return"checkbox"===this.type?"checkbox":"select"===this.type?"option":"menuitem"},ariaChecked(){return"checkbox"===this.type&&!!this.selected},ariaSelected(){return"select"===this.type&&!this.selected},showIcon(){const t=this.getIconType();return this.icon||"checkbox"===t||"select"===t},iconCls(){const t=this.getIconType();return["v-icon",{[this.icon]:this.icon,["v-icon--".concat(t)]:"checkbox"===t||"select"===t,"v-checkbox-icon":"checkbox"===t}]},itemCls(){const t=this.getIconType();return["v-menu-item",{"v-menu-item-disabled disabled":this.innerDisabled,"v-checkbox-wrapper v-menu-item-checkbox":"checkbox"===t,"v-menu-item-checkbox-checked checked":"checkbox"===t&&this.innerSelected,"v-menu-item-select":"select"===t,"v-menu-item-select-selected selected":"select"===t&&this.innerSelected,active:this.active}]},activatable(){return!this.innerDisabled},mergedTooltip(){const t=m(this.tooltip)?{content:this.tooltip,overflowOnly:!1}:this.tooltip;return kt()({content:this.desc?"".concat(this.title," ").concat(this.desc):this.title,overflowOnly:()=>this.$refs.text},t)}},watch:{selected(t){this.innerSelected=t},disabled:{handler(t){this.innerDisabled=t},immediate:!0}},created(){"MenuGroup"===this.$parent.$options.name&&(this.isGroupItem=!0),this.dispatch("MenuGroup","item-created",this),this.dispatch("Menu","item-created",this)},beforeDestroy(){this.dispatch("MenuGroup","item-removed",this),this.dispatch("Menu","item-removed",this)},methods:{getIconType(){return x(this.iconType)?this.iconType:this.type},onClick(t){if(this.innerDisabled)return;this.$emit("click",t);const e="item"===this.type||!this.innerSelected;this.isGroupItem?this.dispatch("MenuGroup","select",[this,e]):this.dispatch("Menu","select",[this,e])},setSelected(t){if(t===this.innerSelected)return;let e=this.innerSelected;this.innerSelected=t,"checkbox"!==this.type&&"select"!==this.type||this.dispatch("Menu","change",[this,t,e]),this.$emit("update:selected",t,e),this.$emit("selected",t,e)},setDisabled(t){void 0===this.disabled&&t!==this.innerDisabled&&(this.innerDisabled=t)},onMouseEnter(t){this.dispatch("Menu","item-hover",this)},onMouseLeave(t){this.dispatch("Menu","item-hover-out",this)},activate(){Gt(this.$el),this.active=!0},deactivate(){this.active=!1}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.mergedTooltip,expression:"mergedTooltip"},{name:"syno-id",rawName:"v-syno-id"}],class:t.itemCls,attrs:{role:t.role,"aria-checked":t.ariaChecked,"aria-selected":t.ariaSelected,tabindex:t.activatable?"0":""},on:{click:function(e){return e.preventDefault(),t.onClick(e)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onClick(e))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.onClick(e))}],mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave}},[t._t("default",(function(){return[t.showIcon?i("i",{class:t.iconCls}):t._e(),t._v(" "),i("span",{ref:"text",staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),t.desc?i("span",{ref:"desc",staticClass:"desc"},[t._v(t._s(t.desc))]):t._e()]}))],2)}),[],!1,null,null,null).exports,fi=R({name:"MenuSubmenu",components:{vMenu:$e},mixins:[V,q("sub-menu-item"),U("menu"),we],props:{title:{type:String,default:void 0},desc:{type:String,default:void 0},icon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},width:{type:[Number,String],default:188,validator:t=>"string"!=typeof t||"auto"===t},height:{type:Number,default:void 0},useScrollbar:{type:Boolean,default:!1},zIndex:{type:Number,default:15e3},tooltip:{type:[String,Object],default:()=>{}}},data:()=>({isOpen:!1,subPosX:0,subPosY:0,alignment:"tl->tr",isOver:!1,hasChildMenu:!0,active:!1}),computed:{showIcon(){return this.icon},iconCls(){return["v-icon",{[this.icon]:this.icon}]},titleCls(){return["v-menu-submenu-title",{"v-menu-submenu-disabled":this.disabled}]},itemCls(){return["v-menu-submenu",{"v-menu-submenu-open":this.isOpen,active:this.active}]},activatable(){return!this.disabled},mergedTooltip(){const t=m(this.tooltip)?{content:this.tooltip,overflowOnly:!1}:this.tooltip;return kt()({content:this.desc?"".concat(this.title," ").concat(this.desc):this.title,overflowOnly:()=>this.$refs.text},t)}},watch:{isOpen:{async handler(t){if(!0===t){await this.$nextTick(),this.mountMenu();const[t,e]=this.$alignManager.getAlignToXY(this.$refs.childMenu.$el,this.$el,this.alignment,[0,0],!0,!0,this.getContainerEl());this.subPosX=t,this.subPosY=e,await this.$nextTick(),this.$refs.childMenu.tryConstrain([this.subPosX,this.subPosY]),this.$emit("reposition-done")}else this.unmountMenu()}},isOver:{handler(t){!1===t&&this.tryCloseMenu()}}},created(){this.dispatch("Menu","item-created",this)},mounted(){this.menu.register(this)},beforeDestroy(){this.unmountMenu()},methods:{register(t){t.$options.parentMenuItem=this},unregister(t){delete t.$options.parentMenuItem},canClose(){return this.$refs.childMenu?!this.isOver&&this.$refs.childMenu.canClose():!this.isOver},tryCloseMenu(){setTimeout((()=>{!this.isOver&&this.$refs.childMenu&&this.$refs.childMenu.canClose&&this.$refs.childMenu.canClose()&&(this.isOpen=!1,this.$options.parentMenu&&this.$options.parentMenu.tryCloseMenu())}),0)},closeMenu(){this.$refs.childMenu&&this.$refs.childMenu.closeMenu(),this.isOpen=!1},async openChildMenu(){return this.isOver=!0,this.disabled||(this.isOpen=!0),await this.$nextTick()},async openChildMenuWithFocus(){await this.openChildMenu(),this.$on("reposition-done",(()=>{Gt(this.$refs.childMenu.$refs.menu.$el)}))},closeChildMenu(){this.isOver=!1},mountMenu(){this.getContainerEl().appendChild(this.$refs.childMenu.$el)},unmountMenu(){this.$refs.childMenu&&this.getContainerEl().removeChild(this.$refs.childMenu.$el)},onMouseEnter(t){this.dispatch("Menu","item-hover",this),this.openChildMenu()},onMouseLeave(t){this.dispatch("Menu","item-hover-out",this)},activate(){this.$el.focus(),this.active=!0},deactivate(){this.active=!1,this.closeChildMenu()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.mergedTooltip,expression:"mergedTooltip"},{name:"syno-id",rawName:"v-syno-id"}],class:t.itemCls,attrs:{tabindex:"0"},on:{mouseenter:t.onMouseEnter,mouseleave:t.onMouseLeave}},[i("div",{ref:"title-wrapper",class:t.titleCls},[t._t("title",(function(){return[t.showIcon?i("i",{class:t.iconCls}):t._e(),t._v(" "),i("span",{ref:"text",staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),t.desc?i("span",{ref:"desc",staticClass:"desc"},[t._v(t._s(t.desc))]):t._e()]}))],2),t._v(" "),t.isOpen?i("v-menu",{ref:"childMenu",attrs:{"is-open":t.isOpen,"parent-menuitem":this,position:[t.subPosX,t.subPosY],alignment:t.alignment,width:t.width,height:t.height,"use-scrollbar":t.useScrollbar,"is-root":!1,"z-index":t.zIndex,"syno-id":t.synoId+"-child-menu"},on:{"update:isOpen":function(e){t.isOpen=e},"update:is-open":function(e){t.isOpen=e}}},[t._t("default")],2):t._e()],1)}),[],!1,null,null,null).exports,mi=R({name:"MenuGroup",mixins:[V],props:{title:{type:String,default:void 0},singleSelect:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:()=>({items:[]}),computed:{groupCls(){return["v-menu-group",{"v-menu-group-disabled":this.disabled}]}},watch:{disabled(t){this.setDisableAll(t)}},created(){this.$on("item-created",(t=>{t.setDisabled(this.disabled),this.items.push(t)})),this.$on("select",((t,e)=>{this.singleSelect?(this.onSingleSelect(t),this.dispatch("Menu","select",[t,!0])):this.dispatch("Menu","select",[t,e])})),this.dispatch("Menu","group-created",this)},methods:{onSingleSelect(t){for(let e of this.items)e!==t?e.setSelected(!1):e.setSelected(!0)},setDisableAll(t){for(let e of this.items)e.setDisabled&&e.setDisabled(t)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.groupCls},[t._t("title",(function(){return[t.title?i("div",{staticClass:"v-menu-group-title"},[t._v(t._s(t.title))]):t._e()]})),t._v(" "),t._t("default")],2)}),[],!1,null,null,null).exports,gi=R({name:"MenuDivider"},(function(){var t=this.$createElement;return(this._self._c||t)("div",{directives:[{name:"syno-id",rawName:"v-syno-id"}],staticClass:"v-menu-item-divider"})}),[],!1,null,null,null).exports;var vi={beforeCreate(){this.$i18n?this._i18n=this.$i18n:this._i18n=function(t,e){let i="";return Dt||(window&&window._T&&(i=window._T(t,e)),(_(n=i)||!x(n))&&(i="".concat(t,":").concat(e))),i;var n}}},yi=(i(162),R({name:"SpinIcon"},(function(t,e){return(0,e._c)("div",{staticClass:"v-spin-icon",class:e.data.class,style:e.data.style},[e._m(0)])}),[function(t,e){var i=e._c;return i("i",[i("i")])}],!0,null,null,null).exports);i(161);var bi=R({name:"Pagination",components:{SpinIcon:yi},directives:{tooltip:ri},mixins:[vi],props:{value:{type:Number,default:1},total:{type:[Number,String],default:0},switchPage:{type:Boolean,default:!0},pageShiftUnit:{type:Number,default:5},pageSize:{type:Number,default:10},showTotal:{type:Boolean,default:!0},hideRefreshBtn:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},itemsPerPage:{type:[Boolean,Array],default:!1},mode:{type:String,default:"normal",validator:t=>["normal","less"].includes(t)},hasFirstBtn:{type:Boolean,default:!0},hasLastBtn:{type:Boolean,default:!0},hasNext:{type:Boolean,default:void 0},hasPrev:{type:Boolean,default:void 0},endless:{type:Boolean,default:!1}},data(){return{current:this.value,prefixCls:"v-pagination",activeBtn:void 0}},computed:{currentPageShiftUnit(){return this.lessMode?1:this.pageShiftUnit},prevBtnClass(){return[this.prefixCls+"-prev",{disabled:!this._hasPrev(),single:1===this.currentPageShiftUnit}]},nextBtnClass(){return[this.prefixCls+"-next",{disabled:!this._hasNext(),single:1===this.currentPageShiftUnit}]},prevLabel(){return this._i18n("uicommon","pre_x_pages").replace("{0}",this.currentPageShiftUnit)},nextLabel(){return this._i18n("uicommon","next_x_pages").replace("{0}",this.currentPageShiftUnit)},wrapperCls(){return[this.prefixCls,{less:this.lessMode}]},lessMode(){return"less"===this.mode},currentPageSize:{get(){return this.pageSize},set(t){t!==this.pageSize&&(this.$emit("input",1),this.$emit("update:pageSize",t))}},allPages(){return Math.ceil(this.total/this.pageSize)},pageList(){if(this.lessMode)return[this.current];const t=[],e=this.pageLeft,i=this.pageRight;for(let n=e;n<=i;n++)t.push(n);return t},pageLeft(){return this.allPages<5?1:this.current-2},pageRight(){return this.allPages<5?this.allPages:this.current+2},totalText(){return"".concat(this.total," ").concat(this._i18n("uicommon","items"))}},watch:{current(t){this.$emit("input",t),this.$emit("change",t)},value(){this.current=this.value}},created(){},methods:{getPageButtonClass(t){return[this.prefixCls+"-item",this.prefixCls+"-item-"+t,this.current==t?this.prefixCls+"-item-active":"",this._outOfRange(t)?this.prefixCls+"-item-ghost":""]},async _handleChange(t){this.$emit("change-page",{pageNum:t}),t=Math.max(t,1),this.endless||(t=Math.min(t,this.allPages)),this._isValid(t)&&(this.current=t,await this.$nextTick(),this.$refs.page[t-this.pageLeft]&&this.$refs.page[t-this.pageLeft].focus())},_handleRefresh(){this.$emit("refresh")},_prev(){this._hasPrev()&&this._handleChange(this.current-this.currentPageShiftUnit)},_first(){this._handleChange(1)},_last(){this._handleChange(this.allPages)},_next(){this._hasNext()&&this._handleChange(this.current+this.currentPageShiftUnit)},_hasPrev(){return x(this.hasPrev)?this.hasPrev:this.current>1},_hasNext(){return x(this.hasNext)?this.hasNext:!!this.endless||this.currentthis.allPages},async activateBtnByArrowKeydown(t){["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),["ArrowUp","ArrowLeft"].includes(t.key)&&await this.setActiveBtnToLeft(),["ArrowDown","ArrowRight"].includes(t.key)&&await this.setActiveBtnToRight(),this.focusActiveBtn())},async setActiveBtnToLeft(){await this.$nextTick();const t=[this.$refs.firstBtn,this.$refs.prevBtn,...this.$refs.page,this.$refs.nextBtn,this.$refs.lastBtn].filter((t=>0===t.tabIndex));let e=t.indexOf(this.activeBtn);-1===e&&(e=t.length);const i=Math.max(0,e-1);this.activeBtn=t[i]},async setActiveBtnToRight(){await this.$nextTick();const t=[this.$refs.firstBtn,this.$refs.prevBtn,...this.$refs.page,this.$refs.nextBtn,this.$refs.lastBtn].filter((t=>0===t.tabIndex)),e=t.indexOf(this.activeBtn),i=Math.min(e+1,t.length-1);this.activeBtn=t[i]},focusActiveBtn(){this.activeBtn&&this.activeBtn.focus()}}},(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},[i("div",{class:t.prefixCls+"-left"},[t.switchPage?i("ul",{staticClass:"left-paging",on:{keydown:t.activateBtnByArrowKeydown}},[t.hasFirstBtn?i("li",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t._i18n("extlang","firstpage"),expression:"_i18n('extlang', 'firstpage')"}],ref:"firstBtn",class:[t.prefixCls+"-first",t._hasPrev()?"":"disabled"],attrs:{role:"button",tabindex:t._hasPrev()?0:-1,"aria-label":t._i18n("extlang","firstpage"),"syno-id":t.synoId+"-pagination-first"},on:{focus:function(e){t.activeBtn=t.$refs.firstBtn},click:function(e){return t._first()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t._first())}}}):t._e(),t._v(" "),i("li",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.prevLabel,expression:"prevLabel"}],ref:"prevBtn",class:t.prevBtnClass,attrs:{role:"button",tabindex:t._hasPrev()?0:-1,"aria-label":t.prevLabel,"syno-id":t.synoId+"-pagination-prev"},on:{focus:function(e){t.activeBtn=t.$refs.prevBtn},click:function(e){return t._prev()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t._prev())}}}),t._v(" "),t._l(t.pageList,(function(e,n){return i("li",{key:e+"-"+n,ref:"page",refInFor:!0,class:t.getPageButtonClass(e),attrs:{tabindex:t._outOfRange(e)?-1:0,role:"button","aria-pressed":t.current==e,"aria-label":t._i18n("uicommon","goto_page").replace("{0}",e),"syno-id":t.synoId+"-pagination-"+n},on:{focus:function(e){t.activeBtn=t.$refs.page[n]},click:function(i){return t._handleChange(e)},keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t._handleChange(e))}}},[t._v("\n "+t._s(t._outOfRange(e)?"":e)+"\n ")])})),t._v(" "),i("li",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.nextLabel,expression:"nextLabel"}],ref:"nextBtn",class:t.nextBtnClass,attrs:{role:"button",tabindex:t._hasNext()?0:-1,"aria-label":t.nextLabel,"syno-id":t.synoId+"-pagination-next"},on:{focus:function(e){t.activeBtn=t.$refs.nextBtn},click:function(e){return t._next()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t._next())}}}),t._v(" "),t.hasLastBtn&&!t.endless?i("li",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t._i18n("extlang","lastpage"),expression:"_i18n('extlang', 'lastpage')"}],ref:"lastBtn",class:[t.prefixCls+"-last",t._hasNext()?"":"disabled"],attrs:{role:"button",tabindex:t._hasNext()?0:-1,"aria-label":t._i18n("extlang","lastpage"),"syno-id":t.synoId+"-pagination-last"},on:{focus:function(e){t.activeBtn=t.$refs.lastBtn},click:function(e){return t._last()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t._last())}}}):t._e()],2):t._e()]),t._v(" "),t._t("right-wrapper",(function(){return[i("div",{class:t.prefixCls+"-right"},[t.itemsPerPage?i("div",{staticClass:"items-per-page-wrapper"},[i("span",{staticClass:"items-per-page-text"},[t._v("\n "+t._s(t._i18n("common","items_perpage"))+"\n ")]),t._v(" "),i("v-single-select",{attrs:{width:98,options:t.itemsPerPage},model:{value:t.currentPageSize,callback:function(e){t.currentPageSize=e},expression:"currentPageSize"}})],1):t._e(),t._v(" "),t._t("right"),t._v(" "),t.showTotal&&!t.endless?t._t("total",(function(){return[i("div",{class:t.prefixCls+"-total"},[t._v(t._s(t.totalText))])]})):t._e(),t._v(" "),t.loading?i("spin-icon"):i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideRefreshBtn,expression:"!hideRefreshBtn"}],class:t.prefixCls+"-refresh",attrs:{role:"button",tabindex:"0","aria-label":t._i18n("common","refresh"),"syno-id":t.synoId+"-pagination-refresh"},on:{click:function(e){return t._handleRefresh()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t._handleRefresh())}}})],2)]}))],2)}),[],!1,null,null,null).exports,wi=R({name:"SpinInner",components:{SpinIcon:yi},props:{prefix:{type:String,default:"v-spin"},tip:{type:String,default:void 0},showIcon:{type:Boolean,default:!0}},computed:{textClasses(){return["".concat(this.prefix,"-text"),{"has-icon":this.showIcon}]},wrapClasses(){return[this.prefix]}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapClasses},[i("div",{class:t.textClasses},[t._t("default",(function(){return[t._v(t._s(t.tip))]}))],2),t._v(" "),t.showIcon?t._t("icon",(function(){return[i("spin-icon")]})):t._e()],2)}),[],!1,null,null,null).exports,xi=(i(176),i(177),R({name:"Spin",components:{vSpinInner:wi},props:{type:{type:String,default:"circle"},maskStyle:{type:Object,default:()=>{}},onlyMask:{type:Boolean,default:!1},spinning:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},delay:{type:Number,default:0},size:{type:String,default:void 0},tip:{type:String,default:void 0},showIcon:{type:Boolean,default:!0}},data:()=>({prefix:"v-spin",delayedShow:!1}),computed:{wrapperClass(){return["".concat(this.prefix,"-wrapper"),this.type]}},watch:{spinning(t,e){!0===t&&(this.delayedShow=!1,this.delayedTimeout())}},mounted(){this.delayedTimeout()},methods:{delayedTimeout(){this.delay>0?setTimeout((()=>{this.delayedShow=!0}),this.delay):this.delayedShow=!0},getSpinInnerSlots(){return A("inner-",this.$scopedSlots)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapperClass},["circle"===t.type?[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mask&&t.delayedShow&&t.spinning,expression:"mask && delayedShow && spinning"}],class:t.prefix+"-wrapper-masking",style:t.maskStyle}),t._v(" "),t._t("default"),t._v(" "),t.delayedShow&&t.spinning&&!t.onlyMask?[t._t("spin-inner",(function(){return[i("v-spin-inner",{attrs:{tip:t.tip,prefix:t.prefix,delay:t.delay,"show-icon":t.showIcon},scopedSlots:t._u([t._l(t.getSpinInnerSlots(),(function(e){var i=e.name,n=e.exposeName;return{key:i,fn:function(e){return[t._t(n,null,null,e)]}}}))],null,!0)})]}))]:t._e()]:"large-dots"===t.type?[i("div",{staticClass:"loader-inner"})]:t._e()],2)}),[],!1,null,null,null).exports),_i=i(2),Si=i.n(_i);const Ci="function"==typeof Map?new Map:function(){const t=[],e=[];return{has:e=>t.indexOf(e)>-1,get:i=>e[t.indexOf(i)],set(i,n){-1===t.indexOf(i)&&(t.push(i),e.push(n))},delete(i){const n=t.indexOf(i);n>-1&&(t.splice(n,1),e.splice(n,1))}}}();function ki(t){if(!t||!t.nodeName||"TEXTAREA"!==t.nodeName||Ci.has(t))return;let e=null,i=null,n=null;function s(){if(0===t.scrollHeight)return;const n=function(t){const e=[];for(;t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),s=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+e+"px",i=t.clientWidth,n.forEach((t=>{t.node.scrollTop=t.scrollTop})),s&&(document.documentElement.scrollTop=s)}function o(){s();const e=Math.round(parseFloat(t.style.height)),i=window.getComputedStyle(t,null);var o="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):t.offsetHeight;if(o{t.clientWidth!==i&&o()},a=(e=>{window.removeEventListener("resize",r,!1),t.removeEventListener("input",o,!1),t.removeEventListener("keyup",o,!1),t.removeEventListener("autosize:destroy",a,!1),t.removeEventListener("autosize:update",o,!1),Object.keys(e).forEach((i=>{t.style[i]=e[i]})),Ci.delete(t)}).bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",a,!1),window.addEventListener("resize",r,!1),t.addEventListener("keyup",o,!1),t.addEventListener("autosize:update",o,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",Ci.set(t,{destroy:a,update:o}),function(){const i=window.getComputedStyle(t,null);"vertical"===i.resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),e="content-box"===i.boxSizing?-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),isNaN(e)&&(e=0),o()}()}function Ti(t){const e=Ci.get(t);e&&e.destroy()}function Di(t){const e=Ci.get(t);e&&e.update()}let Ii=null;Dt?(Ii=t=>t,Ii.destroy=t=>t,Ii.update=t=>t):(Ii=(t,e)=>(t&&Array.prototype.forEach.call(t.length?t:[t],(t=>ki(t))),t),Ii.destroy=t=>(t&&Array.prototype.forEach.call(t.length?t:[t],Ti),t),Ii.update=t=>(t&&Array.prototype.forEach.call(t.length?t:[t],Di),t));var $i=Ii;let Oi=0;var Mi={beforeCreate(){this.uuid=Oi.toString(),Oi++}};i(180);var Ei=R({name:"Input",components:{vPerfectScrollbar:Tt},mixins:[V,Mi,ai],inheritAttrs:!1,props:{type:{type:String,default:"text"},id:{type:String,default(){return"syno-".concat(this.uuid)}},value:{type:[String,Number],default:void 0},placeholder:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},strengthChecker:{type:Function,default:null},mask:{type:[RegExp,Function],default:null},numberOnly:{type:Boolean,default:!1},defaultShowStrengthChecker:{type:Boolean,default:!1},maxlength:{type:Number,default:void 0},readonly:{type:Boolean,default:!1},focusClass:{type:[Boolean,String],default:"focused"},disableHoverStyle:{type:Boolean,default:!1},fitContainer:{type:Boolean,default:!0},autocomplete:{type:String,default:"off"},showPasswordVisibilityIcon:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1}},data(){return{composing:!1,prefixCls:"v-textfield",currentValue:void 0===this.value||null===this.value?"":this.value,isFocused:!1,isInvalid:!1,showStrength:this.defaultShowStrengthChecker,strength:"weak",strengthText:"",maskPassword:!0}},computed:{inputType(){return"password"===this.type?this.maskPassword?"password":"text":this.type},wrapperCls(){return["".concat(this.prefixCls,"-wrapper"),{[this.focusClass]:!!this.focusClass&&this.isFocused,"disabled-hover":this.disableHoverStyle,disabled:this.disabled,invalid:this.isInvalid,"has-suffix-icon":this.hasSuffixIcon,["suffix-icon-cnt-".concat(this.suffixIconCount)]:this.hasSuffixIcon}]},inputWrapperCls(){return["".concat(this.prefixCls,"-input-wrapper"),{password:"password"===this.type,"mask-password":this.maskPassword}]},textareaWrapperCls(){return["".concat(this.prefixCls,"-textarea-wrapper"),{"auto-size":this.autosize},{"fit-container":this.fitContainer}]},inputCls(){return["textarea"===this.type?"".concat(this.prefixCls,"-textarea"):"".concat(this.prefixCls,"-input"),{"fit-container":this.fitContainer}]},strengthCheckerCls(){return["".concat(this.prefixCls,"-strength"),"".concat(this.strength)]},isPasswordType(){return"password"===this.type},showClear(){return this.clearable&&this.currentValue},showPasswordIcon(){return this.isPasswordType&&this.showPasswordVisibilityIcon},hasSuffixIcon(){return this.showClear||this.showPasswordIcon},suffixIconCount(){let t=0;return this.showClear&&t++,this.showPasswordIcon&&t++,t},suffixIconsCls:()=>({})},watch:{async value(t){this.currentValue=t,this.strengthChecker&&this.checkStrength()}},async mounted(){await this.$nextTick(),"textarea"===this.type&&(this.autosize?$i(this.$refs.textarea):this.updateTextFieldHeight())},methods:{onMouseDown(t){const e=this.$refs.ps.$el,i=t.clientY,n=t.offsetY,s=e.clientHeight-t.offsetY;let o;const r=t=>{let r=t.clientY>i?1:-1,a=Math.abs(t.clientY-i),l=0;1===r&&a>=s?l=a-s:-1===r&&a>=n&&(l=n-a),l*=1,e.scrollTop+=l,o&&window.clearInterval(o),o=window.setInterval((()=>{e.scrollTop+=l}),100)};Yt(document,"mouseup",(t=>{Kt(document,"mousemove",r),window.clearInterval(o)})),Ut(document,"mousemove",r)},onCompositionStart(){this.composing=!0},onCompositionEnd(t){this.composing=!1,this.onInput(t)},updateTextFieldHeight(){if(this.$refs.textarea){const t=this.$refs.textarea.scrollTop;Vt(this.$refs["fake-textarea"],"height","".concat(this.$refs.textarea.scrollHeight,"px")),this.$refs.ps.update(),this.$refs.ps.$el.scrollTop=t}},onScroll(){this.$refs.textarea&&this.$refs.ps&&(this.$refs.textarea.scrollTop=this.$refs.ps.$el.scrollTop)},setFocus(t={}){(this.$refs.input||this.$refs.textarea).focus(t)},setBlur(){(this.$refs.input||this.$refs.textarea).blur()},selectText(){(this.$refs.input||this.$refs.textarea).select()},setInputValue(t){this.$refs.input&&(this.$refs.input.value=t)},onMouseWheel(t){const e=t.deltaY;this.$refs.ps&&this.$refs.ps.$el&&(this.$refs.ps.$el.scrollTop+=e)},onInput(t){if(!0===this.composing)return;let e=t.target.value;(this.mask||this.numberOnly)&&(e=this.filterMaskValue(e),this.setInputValue(e)),this.$emit("input",e),this.checkStrength()},onFocus(){this.isFocused=!0,this.selectOnFocus&&this.selectInput(),this.$emit("focus",this)},selectInput(){("textarea"===this.type?this.$refs.textarea:this.$refs.input).select()},onBlur(t){this.isFocused=!1,this.$emit("blur",this,t)},checkStrength:Si()((function(){this.strengthChecker&&this.strengthChecker(this.currentValue).then((({strength:t,strengthText:e})=>{this.strength=t,this.strengthText=e,this.showStrength=!0,this.$emit("strengthcheckershow",this)}))}),250),filterMaskValue(t){if(this.mask&&(t=g(this.mask)?this.mask(t):t.replace(this.mask,"")),this.numberOnly){let e="-"===t.substr(0,1);t=e?"-"+t.substr(1).replace(/[^\d]/g,"").replace(/^0*/,""):t.replace(/[^\d]/g,"").replace(/^0*/,"")}return t},onPaste(){this.$emit("paste",event),"textarea"!==this.type||this.autosize||this.updateTextFieldHeight()},onKeyUp(t){"textarea"!==this.type||this.autosize||this.updateTextFieldHeight(),this.$emit("keyup",t)},onKeyDown(t){this.$emit("keydown",t)},onClickVisibilityIcon(){this.disabled||(this.maskPassword=!this.maskPassword)},async onClear(){this.disabled||(this.$emit("input",""),await this.$nextTick(),this.updateTextFieldHeight(),this.setFocus())},copyValue(){return("textarea"===this.type?this.$refs.textarea:this.$refs.input).select(),document.execCommand("Copy")},cutValue(){return("textarea"===this.type?this.$refs.textarea:this.$refs.input).select(),document.execCommand("Cut")}}},(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},["textarea"===t.type?i("div",{class:t.textareaWrapperCls},[i("v-perfect-scrollbar",{ref:"ps",attrs:{"has-padding":""},on:{scroll:t.onScroll}},[i("div",{ref:"fake-textarea",staticClass:"fake-textarea"})]),t._v(" "),"textarea"===t.type?i("textarea",t._b({ref:"textarea",class:t.inputCls,style:{maxHeight:t.autosize&&t.autosize.maxRows?18*t.autosize.maxRows+10+"px":"auto"},attrs:{id:t.id,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,maxlength:t.maxlength,rows:t.autosize&&t.autosize.minRows?t.autosize.minRows:2},domProps:{value:t.currentValue},on:{input:t.onInput,compositionstart:t.onCompositionStart,compositionend:t.onCompositionEnd,keyup:t.onKeyUp,keydown:t.onKeyDown,paste:t.onPaste,"autosize:updated":t.updateTextFieldHeight,mousewheel:function(e){return e.stopPropagation(),t.onMouseWheel.apply(null,arguments)},mousedown:t.onMouseDown,blur:t.onBlur,focus:t.onFocus}},"textarea",t.$attrs,!1)):t._e(),t._v(" "),t.hasSuffixIcon?i("span",{staticClass:"suffix-icons"},[t.showClear?i("i",{staticClass:"clear-icon",on:{click:t.onClear}}):t._e(),t._v(" "),t.showPasswordIcon?i("i",{staticClass:"password-icon",on:{click:t.onClickVisibilityIcon}}):t._e()]):t._e()],1):i("div",{class:t.inputWrapperCls},[i("input",t._b({ref:"input",class:t.inputCls,attrs:{id:t.id,type:t.inputType,placeholder:t.placeholder,disabled:t.disabled,autocomplete:t.autocomplete,readonly:t.readonly,maxlength:t.maxlength,"aria-describedby":t.strengthChecker&&t.id+"-strength"},domProps:{value:t.currentValue},on:{input:t.onInput,compositionstart:t.onCompositionStart,compositionend:t.onCompositionEnd,keyup:t.onKeyUp,keydown:t.onKeyDown,paste:t.onPaste,blur:t.onBlur,focus:t.onFocus}},"input",t.$attrs,!1)),t._v(" "),t.hasSuffixIcon?i("span",{staticClass:"suffix-icons"},[t.showClear?i("i",{staticClass:"clear-icon",on:{click:t.onClear}}):t._e(),t._v(" "),t.showPasswordIcon?i("i",{staticClass:"password-icon",on:{click:t.onClickVisibilityIcon}}):t._e()]):t._e()]),t._v(" "),t.strengthChecker?[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showStrength,expression:"showStrength"}],class:t.strengthCheckerCls,attrs:{id:t.id+"-strength"}},[i("div",{staticClass:"strength-block block-1"}),t._v(" "),i("div",{staticClass:"strength-block block-2"}),t._v(" "),i("div",{staticClass:"strength-block block-3"}),t._v(" "),i("div",{staticClass:"strength-text"},[t._v(t._s(t.strengthText))])])]:t._e()],2)}),[],!1,null,null,null).exports,Bi=R({name:"InputGroup",props:{size:{type:String,default:"process"},compact:{type:Boolean,default:!1}},computed:{wrapClasses(){return["ant-input-group",{"ant-input-group-sm":"small"===this.size},{"ant-input-group-lg":"large"===this.size},{"ant-input-group-compact":!0===this.compact}]}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapClasses},[t._t("default")],2)}),[],!1,null,null,null).exports;i(73);var Ai=R({name:"Select",directives:{clickoutside:Ye,tooltip:ri},components:{vPerfectScrollbar:Tt},mixins:[V,Mi,vi,ai,we],props:{selectOnClick:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},valueField:{type:String,default:"value"},displayField:{type:String,default:"label"},notFoundText:{type:String,default:function(){return this._i18n("search","no_search_result")}},align:{type:String,default:"tl->bl"},filter:{type:Function,default:void 0},maxHeight:{type:Number,default:200},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},hideTrigger:{type:Boolean,default:!1},value:{type:[Number,String,Boolean,Array],default(){return this.multiple?[]:""}},placeholder:{type:String,default:""},search:{type:Boolean,default:!1},filtered:{type:Boolean,default:!1},advanced:{type:Boolean,default:!1},useDefaultAdvanced:{type:Boolean,default:!0},minSearchChar:{type:Number,default:1},getSearchParams:{type:Function,default:t=>t},searchField:{type:String,default:"query"},apiObj:{type:Object,default:null},root:{type:String,default:""},options:{type:[Function,Array],default:()=>[]},position:{type:String,default:"absolute"},loadingText:{type:String,default:function(){return this._i18n("uicommon","searching")}},remote:{type:Boolean,default:!1},getToolTipContent:{type:Function,default:function(t){return t[this.displayField]}},customDropdownCls:{type:String,default:""},customAdvanceCls:{type:String,default:""},dropdownWidth:{type:String,default:void 0},id:{type:String,default(){return"syno-".concat(this.uuid)}},readonly:{type:[Boolean,String],default:!1},name:{type:String,default:""},width:{type:[Number,String],default:250},height:{type:[Number,String],default:"auto"},preventDropdownCloseFn:{type:Function,default:void 0},preventAdvanceCloseFn:{type:Function,default:void 0},advancedAlign:{type:String,default:"left"},dropdownOffset:{type:Array,default:()=>[0,0]}},data(){return{prefix:"v-select",isFocused:!1,isPressed:!1,inputVal:"",currentOptions:[],advancedStyle:{},dropdownStyle:{},found:!1,show:!1,showAdvanced:!1,loading:!1,dropdownUlStyle:{},dropdownHeight:0,activeIndex:-1,dropItemNodeList:[],focusIndex:-1,wrapStyle:this.multiple?{width:"string"==typeof this.width?this.width:"".concat(this.width,"px"),height:"string"==typeof this.height?this.height:"".concat(this.height,"px")}:{width:"string"==typeof this.width?this.width:"".concat(this.width,"px")}}},computed:{ariaActivedescendant(){if(this.activeIndex<0||this.currentOptions.length<=this.activeIndex)return"";const t=this.currentOptions[this.activeIndex][this.valueField];return"".concat(this.synoId,"-option-").concat(t)},ariaLabelledbyOfMultipleInput(){if(!this.value.length)return"";return this.value.map((t=>this.getId(t,"selected"))).join(" ")},isInputValEmpty(){return"number"!=typeof this.inputVal&&!this.inputVal},inputCls(){return"".concat(this.prefix,"-input")},wrapCls(){return["".concat(this.prefix,"-wrapper"),{"v-multiselect-wrapper":this.multiple},{"has-search-icon":this.search},{"is-advanced":this.advanced},{disabled:this.disabled},{focused:this.isFocused},{pressed:this.show||this.advanced&&this.showAdvanced},{readonly:this.readonly}]},dropdownCls(){return["".concat(this.prefix,"-dropdown"),"".concat(this.prefix,"-dropdown-placement-bottomLeft"),this.customDropdownCls]},advanceCls(){return["".concat(this.prefix,"-advanced"),this.customAdvanceCls]},clearIconCls(){return["".concat(this.prefix,"-clear-icon"),{"hide-trigger":this.hideTrigger}]},visibleOptions(){return this.currentOptions.filter((t=>!!this.isDivider(t)||t.show))},searchIconCls(){return["".concat(this.prefix,"-search-icon"),{normal:!this.filtered&&!this.advanced},{textfilter:this.filtered&&!this.advanced},{advanced:!this.filtered&&this.advanced},{"advanced-textfilter":this.filtered&&this.advanced}]},showClear(){const t=this.multiple&&this.value.length>0||!this.multiple&&!this.isInputValEmpty;return this.allowClear&&t}},watch:{inputVal(t){this.$options.handleInputValDebounced(t)},value(t){this.multiple?this.updateOptVisibility():this.isMounted&&this.updateInputValWithOptions(!0)},options(t){Array.isArray(t)&&(this.currentOptions=t.map(this.mapOptionToVisible),this.updateInputValWithOptions())},show:{async handler(t){if(!0===t){let t=this.$el.getBoundingClientRect(),e={top:this.$el.clientTop,left:this.$el.clientLeft};await this.$nextTick(),this.setPositionWithElInfo(t,e)}},immediate:!0},showAdvanced:{async handler(t){if(!0===t){let t=this.$el.getBoundingClientRect(),e={top:this.$el.clientTop,left:this.$el.clientLeft};await this.$nextTick(),this.mountAdvancedSlot(),this.setAdvancedMenuPosition(t,e)}else this.unmountAdvancedSlot()},immediate:!0}},async created(){this.$options.handleInputValDebounced=Si()((t=>{this.handleInputVal(t)}),250),this.search||await this.loadData(),this.currentOptions.forEach((t=>{if(t.irremovable&&this.value.indexOf(t.value)<0)throw'Option "'.concat(t.label,'" is irremovable but not been selected.')}))},mounted(){this.updateDefaultActiveIndex(),window.addEventListener("resize",this.setPosition),document.addEventListener("wheel",this.setPosition),this.isMounted=!0},beforeDestroy(){this.unmountDropdownMenu(),this.unmountAdvancedSlot(),window.removeEventListener("resize",this.setPosition),document.removeEventListener("wheel",this.setPosition),this._measureEl&&document.body.removeChild(this._measureEl)},methods:{handleInputVal(t){if(!this.multiple&&!this.isEmpty(this.value)){let e=this.currentOptions.find((t=>t[this.valueField]===this.value));if(e&&e[this.displayField]===t)return}this.$emit("beforesearch",t),this.$emit("input-val",t),this.clearSelection(),this.search?t&&t.length>=this.minSearchChar?this.doSearch(t):(this.currentOptions=[],this.closeDropdown()):t?(this.found=!1,this.currentOptions.forEach((e=>{if(this.isDivider(e))return;const i=this.filter?this.filter(e):e[this.displayField].includes(t);let n=this.multiple?i&&!this.isOptSelected(e[this.valueField]):i;n&&(this.found=!0),n!==e.show&&this.$set(e,"show",i)})),this.multiple||this.$emit("input","")):(this.currentOptions.forEach((t=>{if(this.isDivider(t))return;let e=!this.multiple||!this.isOptSelected(t[this.valueField]);t.show!==e&&this.$set(t,"show",e)})),this.multiple||this.$emit("input",""))},getExtraElements(){return[this.$refs.dropdown,this.$refs.advanced,...this.$children].filter((t=>!!t))},clickOutside(){this.show=!1,this.showAdvanced=!1},async onClickSearchIcon(){this.$emit("click-search-icon"),this.advanced&&(this.$refs.input.focus(),this.toggleAdvancedMenu(),await this.$nextTick(),this.getContainerEl().contains(this.$refs.advanced)&&this.$refs.advanced.focus())},toggleAdvancedMenu(){this.showAdvanced=!this.showAdvanced},isEmpty:t=>void 0===t,createMeasureEl(){let t=document.createElement("span"),e=window.getComputedStyle(this.$refs.input,null),{fontSize:i,fontFamily:n,fontStyle:s,fontWeight:o,lineHeight:r,letterSpacing:a,textTransform:l}=e;return Object.assign(t.style,{fontSize:i,fontFamily:n,fontStyle:s,fontWeight:o,lineHeight:r,letterSpacing:a,textTransform:l,position:"absolute",top:"-10000px",left:"-10000px",display:"inline-block"}),document.body.appendChild(t),t},getMeasureEl(){return this._measureEl=this._measureEl||this.createMeasureEl(),this._measureEl},autoSize(){if(!this.multiple)return;let t=this.getMeasureEl();t.innerText=this.inputVal;let e=t.offsetWidth;this.$refs.input.style.width="".concat(e+15,"px"),t.innerText=""},updateDefaultActiveIndex(){if(!this.multiple){let t=this.currentOptions.find((t=>this.value===t[this.valueField]));this.activeIndex=t?this.currentOptions.indexOf(t):-1}},sendLoadRequest(t){return this.loading=!0,synowebapi.promises.request(t).then(this.processLoadData).catch(this.processLoadDataFailed)},processLoadData(t){if(!t)throw"no resp";let e=t;this.root&&(e=c(e,this.root)),this.currentOptions=e.map(this.mapOptionToVisible),this.updateDefaultActiveIndex(),this.$emit("dataloaded",this.currentOptions.slice()),this.loading=!1,this.updateInputValWithOptions()},processLoadDataFailed(){this.currentOptions=[],this.$emit("dataloadfailed"),this.$emit("dataloaded",this.currentOptions.slice()),this.loading=!1},updateInputValWithOptions(t=!1){if(!this.multiple){if(!t){const t=this.currentOptions.some((t=>this.value===t[this.valueField])),e=!this.isInputValEmpty&&!t;if(this.isEmpty(this.value)||this.remote||e)return}this.inputVal=(this.currentOptions.find((t=>this.value===t[this.valueField]))||{[this.displayField]:this.value})[this.displayField]}},isDivider:t=>"string"==typeof t&&"-"===t,mapOptionToVisible(t){return this.isDivider(t)||(t.show=!this.multiple||(this.value||[]).indexOf(t[this.valueField])<0),t},loadData(t){if(Array.isArray(this.options))this.currentOptions=this.options.map(this.mapOptionToVisible),this.updateInputValWithOptions();else if(!1===this.remote)this.options().then((t=>{this.currentOptions=t.map(this.mapOptionToVisible)})).then(this.updateInputValWithOptions);else if(this.apiObj){let e=Object.assign({},this.apiObj.params),{api:i,version:n,method:s}=this.apiObj;t=t||{},e={...e,...t},this.sendLoadRequest({api:i,method:s,version:n,params:e})}else this.loading=!0,this.options().then(this.processLoadData).catch(this.processLoadDataFailed)},doSearch(t){let e={};if(e[this.searchField]=t,e=this.getSearchParams(e),this.currentOptions=[],this.apiObj){Object.assign(e,this.apiObj.params);let{api:t,version:i,method:n}=this.apiObj;this.sendLoadRequest({api:t,method:n,version:i,params:e})}else this.options(e).then(this.processLoadData).catch(this.processLoadDataFailed)},getId(t,e){return this.id+"-"+e+"-"+t},getSynoId(t,e){return this.synoId+"-"+e+"-"+t},isOptSelected(t){return this.multiple?this.value.indexOf(t)>-1:this.value===t},updateOptVisibility(){this.multiple&&this.currentOptions.forEach((t=>{this.isDivider(t)||(t.show=!this.isOptSelected(t[this.valueField]))}))},getText(t){let e=t,i=this.currentOptions.find((e=>e[this.valueField]===t));return i&&(e=i[this.displayField]),e},isOptRemovable(t){const e=this.currentOptions.find((e=>e.value===t));return!e||!e.irremovable},onClickInput(){this.toggleDropdown()},onClick:function(){this.$refs.input.focus(),this.toggleDropdown()},getOption(t){return this.currentOptions.find((e=>t===e[this.valueField]))},getDropdownHeight(){this.dropdownHeight=parseFloat(getComputedStyle(this.$refs.dropdown,null).height)},mountDropdownMenu(){this.$refs.dropdown.style.position=this.position,this.getContainerEl().appendChild(this.$refs.dropdown)},unmountDropdownMenu(){this.$refs.dropdown&&this.getContainerEl().removeChild(this.$refs.dropdown)},mountAdvancedSlot(){this.$refs.advanced.style.position=this.position,this.getContainerEl().appendChild(this.$refs.advanced),Gt(this.$refs.advanced)},unmountAdvancedSlot(){this.$refs.advanced&&this.getContainerEl().removeChild(this.$refs.advanced)},async setPosition(){if(!this.$el)return;let t={top:this.$el.clientTop,left:this.$el.clientLeft};return this.setPositionWithElInfo(this.$el.getBoundingClientRect(),t)},async setPositionWithElInfo(t,e){if(!this.$refs.dropdown)return;const i=h(t,0,this.getContainerEl());this.dropdownUlStyle={maxHeight:"".concat(this.maxHeight-16,"px")},this.dropdownStyle={width:this.dropdownWidth||"".concat(i.right-i.left,"px"),maxHeight:"".concat(this.maxHeight,"px")},await this.$nextTick();const[n,s]=this.$alignManager.getAlignToXY(this.$refs.dropdown,this.$el,this.align,this.dropdownOffset,!0,!0,this.getContainerEl());await this.$nextTick(),this.dropdownStyle={top:"".concat(s,"px"),left:"".concat(n,"px"),width:this.dropdownWidth||"".concat(i.right-i.left,"px"),maxHeight:"".concat(this.maxHeight,"px")},this.dropItemNodeList=this.$refs.dropDownMenu.querySelectorAll("li")},setAdvancedMenuPosition(t,e){if(!this.$el)return;const[i,n]=this.$alignManager.getAlignToXY(this.$refs.advanced,this.$el,this.align,[0,0],!0,!0,this.getContainerEl());this.advancedStyle={top:"".concat(n,"px"),left:"".concat(i,"px")}},getTip(){return{content:this.inputVal,delay:300,overflowOnly:!0}},getOptionsTip(t){return{content:this.getToolTipContent(t),delay:300,bgOpacity:1,offset:[25,25],attachToElement:!0,disabled:!this.hasTooltip}},closeDropdown(t){t&&t instanceof Event&&this.advanced&&this.$refs.advanced.contains(t.target)||(this.preventDropdownCloseFn&&this.preventDropdownCloseFn(t)||(this.show=!1),this.preventAdvanceCloseFn&&this.preventAdvanceCloseFn(t)||(this.showAdvanced=!1))},openDropdown(){this.canListOpen()&&(this.show=!0)},toggleDropdown(){this.disabled||(this.canListOpen()?this.show=!this.show:this.show=!1)},updateActiveIndex(t){this.activeIndex=t},clear(){this.multiple?this.$emit("input",[]):this.select(-1),this.inputVal=""},onEnter(){if(-1!==this.activeIndex&&this.visibleOptions.length||this.isInputValEmpty){const t=this.currentOptions[this.activeIndex];t&&t.show&&this.select(this.activeIndex)}else{let t=-1;this.currentOptions.some(((e,i)=>(t=i,e[this.displayField]===this.inputVal)))&&this.select(t)}},canListOpen(){return!(this.search&&this.inputVal.length=0||(this.show||this.openDropdown(),this.autoSize()),this.$emit("keyup",t)},onEsc(){this.show&&this.closeDropdown()},focusValue(t){this.multiple&&(this.focusIndex=t,document.getElementById(this.getSynoId(this.value[t],"selected")).focus())},onLeft(){this.isInputValEmpty||this.value.length>0&&this.focusValue(this.value.length-1)},onRight(){this.isInputValEmpty||this.value.length>0&&this.focusValue(0)},onUp(){this.show?this.handleInputMove(0):this.openDropdown()},onDown(){this.show?this.handleInputMove(1):this.openDropdown()},onDelete(t,e=0){let i=this.value;t+e>=0&&i.length&&""===this.inputVal&&(this.removeItem(i[t+e]),this.$nextTick((()=>{t>=0&&this.value.length>t?document.getElementById(this.getSynoId(this.value[t],"selected")).focus():this.$refs.input.focus()})))},handleFocusMove(t=1){let e=this.focusIndex+t;e<0||e>this.value.length-1?this.$refs.input.focus():this.focusIndex!=e&&this.focusValue(e)},handleInputMove(t=1){const e=[...this.currentOptions],i=e.findIndex((t=>t.show));e.reverse();const n=e.findIndex((t=>t.show)),s=-1===n?-1:e.length-1-n;if(t)for(;this.activeIndexi&&!this.currentOptions[--this.activeIndex].show;);const o=this.dropItemNodeList[this.activeIndex];o&&o.scrollIntoView(!1)},clearSelection(){this.activeIndex=-1},removeItem(t){if(!this.multiple||!this.isOptRemovable(t))return;let e=this.value.indexOf(t);if(e>-1){let t=[].concat(this.value);t.splice(e,1),this.$emit("input",t),this.show&&this.$nextTick((()=>{this.setPosition()}))}},handleSelectInSingle(t){let e=this.currentOptions,i=e[t];if(i&&(this.isDivider(i)||i.disabled))return;let n=e.find((t=>t[this.valueField]===this.value));if(e.indexOf(n)===t)return;let s=t>-1?i[this.valueField]:"";this.inputVal=t>-1?i[this.displayField]:"",this.$emit("input",s),this.$emit("select",i),this.$emit("selectionchange",s)},handleSelectInMultiple(t){let e=this.currentOptions[t];if(this.value.indexOf(e[this.valueField])>-1)return;let i=[].concat(this.value);i.push(e[this.valueField]),this.$emit("input",i),this.$emit("select",e),this.$emit("selectionchange",i),this.clearSelection(),this.inputVal=""},onClickOption(t,e){!1!==t.selectable&&this.select(e)},select(t){this.multiple?this.handleSelectInMultiple(t):this.handleSelectInSingle(t),this.closeDropdown(),this.$refs.input.focus()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside.children",value:t.clickOutside,expression:"clickOutside",modifiers:{children:!0}},{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapCls,style:t.wrapStyle,on:{click:t.onClick}},[i("div",{staticClass:"input-wrapper"},[t.search?[t._t("search-icon",(function(){return[i("span",{ref:"searchIcon",class:t.searchIconCls,on:{click:function(e){return e.stopPropagation(),t.onClickSearchIcon.apply(null,arguments)}}})]}))]:t._e(),t._v(" "),t.multiple?[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.value.length&&t.isInputValEmpty,expression:"!value.length && isInputValEmpty"}],staticClass:"v-multiselect-placeholder",staticStyle:{"user-select":"none"},attrs:{unselectable:"unselectable"}},[t._v(t._s(t.placeholder))]),t._v(" "),i("v-perfect-scrollbar",[i("div",{staticClass:"v-multiselect-ct"},[i("ul",[t._l(t.value,(function(e,n){return i("li",{key:e,staticClass:"v-multiselect-item-wrapper",attrs:{id:t.getId(e,"selected"),"syno-id":t.getSynoId(e,"selected"),unselectable:"unselectable",title:t.getText(e)},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.handleFocusMove(-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.stopPropagation(),t.handleFocusMove(-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.stopPropagation(),t.handleFocusMove(1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.stopPropagation(),t.handleFocusMove(1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:t.onDelete(n,0)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"backspace",void 0,e.key,void 0)?null:t.onDelete(n,-1)}]}},[i("div",{staticClass:"v-multiselect-item-label"},[t._v(t._s(t.getText(e)))]),t._v(" "),t.isOptRemovable(e)?i("span",{staticClass:"v-multiselect-item-remove",on:{click:function(i){return i.stopPropagation(),t.removeItem(e)}}}):t._e()])})),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.inputVal,expression:"inputVal"}],ref:"input",staticClass:"v-multiselect-input",attrs:{id:t.id,readonly:t.readonly,autocomplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":t.ariaLabelledbyOfMultipleInput,"aria-activedescendant":t.ariaActivedescendant,"aria-expanded":t.show},domProps:{value:t.inputVal},on:{focus:t.onFocus,blur:t.onBlur,keyup:t.onKeyUp,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"backspace",void 0,e.key,void 0)?null:t.onDelete(t.value.length,-1)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onEsc.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onEnter.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.onUp.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.onDown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onLeft.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.onRight.apply(null,arguments)}],input:function(e){e.target.composing||(t.inputVal=e.target.value)}}})],2)])])]:[i("input",{directives:[{name:"model",rawName:"v-model",value:t.inputVal,expression:"inputVal"},{name:"tooltip",rawName:"v-tooltip",value:t.getTip(),expression:"getTip()"}],ref:"input",class:t.inputCls,attrs:{id:t.id,"syno-id":t.synoId+"-input",type:"text",name:t.name,role:"combobox",readonly:t.readonly,disabled:t.disabled,placeholder:t.placeholder,autocomplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":t.ariaActivedescendant,"aria-expanded":t.show},domProps:{value:t.inputVal},on:{focus:t.onFocus,blur:t.onBlur,click:function(e){return e.stopPropagation(),t.toggleDropdown.apply(null,arguments)},keyup:t.onKeyUp,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onEnter.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onUp.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onDown.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onEsc.apply(null,arguments)}],input:function(e){e.target.composing||(t.inputVal=e.target.value)}}})],t._v(" "),t._t("clear-icon",(function(){return[t.showClear?i("span",{class:t.clearIconCls,attrs:{unselectable:"unselectable"},on:{click:function(e){return e.stopPropagation(),t.clear.apply(null,arguments)}}}):t._e()]})),t._v(" "),t.hideTrigger?t._e():[t._t("dropdown-icon",(function(){return[i("span",{ref:"dropdownIcon",class:t.prefix+"-dropdown-icon"})]}))]],2),t._v(" "),t.advanced&&t.showAdvanced?[t.useDefaultAdvanced?i("div",{ref:"advanced",class:t.advanceCls,style:t.advancedStyle,attrs:{"syno-id":t.synoId+"-advanced-menu",tabindex:"-1"}},[t._t("advanced-menu")],2):t._t("advanced-menu")]:t._e(),t._v(" "),t.show?i("v-portal",{attrs:{"mount-to":t.getContainerSelector(),"target-style":t.dropdownStyle}},[i("div",{ref:"dropdown",class:t.dropdownCls,attrs:{id:t.synoId+"-dropdown-menu","syno-id":t.synoId+"-dropdown-menu",tabindex:"-1"}},[t.$slots["top-actions"]||t.$scopedSlots["top-actions"]?i("div",{on:{mouseenter:function(e){return t.clearSelection()}}},[t._t("top-actions",null,{actionClass:t.prefix+"-dropdown-menu-item action",activatedActionClass:"activated",disabledActionClass:"disabled"}),t._v(" "),i("div",{staticClass:"v-select-dropdown-divider"})],2):t._e(),t._v(" "),i("v-perfect-scrollbar",[i("ul",{ref:"dropDownMenu",class:t.prefix+"-dropdown-menu",style:t.dropdownUlStyle,attrs:{role:"listbox"}},[t._t("before-options"),t._v(" "),t.loading?i("li",{class:t.prefix+"-dropdown-loading-text",staticStyle:{"user-select":"none"},attrs:{unselectable:"unselectable",role:"menuitem","aria-selected":"false"}},[t._v(t._s(t.loadingText))]):[t._t("notfound-item",(function(){return[t.isInputValEmpty||!t.remote||t.currentOptions.length?t._e():i("li",{staticClass:"v-select-dropdown-menu-item v-select-dropdown-menu-item-disabled",staticStyle:{"user-select":"none"},attrs:{unselectable:"unselectable",role:"menuitem","aria-selected":"false"}},[t._v(t._s(t.notFoundText))]),t._v(" "),t.isInputValEmpty||t.remote||t.found||t.visibleOptions.length?t._e():i("li",{staticClass:"v-select-dropdown-menu-item v-select-dropdown-menu-item-disabled",staticStyle:{"user-select":"none"},attrs:{unselectable:"unselectable",role:"menuitem","aria-selected":"false"}},[t._v(t._s(t.notFoundText))])]})),t._v(" "),t._l(t.currentOptions,(function(e,n){var s;return["-"===e?[i("div",{key:e,class:t.prefix+"-dropdown-divider"})]:[i("li",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"option.show"},{name:"tooltip",rawName:"v-tooltip",value:t.getOptionsTip(e),expression:"getOptionsTip(option)"}],key:e[t.valueField],class:[t.prefix+"-dropdown-menu-item",(s={activated:t.activeIndex===n},s[e.class]=!!e.class,s.unselectable=!1===e.selectable,s)],staticStyle:{"user-select":"none"},attrs:{id:t.synoId+"-option-"+e[t.valueField],"syno-id":t.synoId+"-option-"+e[t.valueField],unselectable:"unselectable",role:"option","aria-selected":n===t.activeIndex},on:{click:function(i){return t.onClickOption(e,n)},mouseenter:function(e){return t.updateActiveIndex(n)}}},[t._t("inner-option",(function(){return[t._v(t._s(e[t.displayField]))]}),{option:e})],2)]]}))],t._v(" "),t._t("after-options")],2)]),t._v(" "),t.$slots["bottom-actions"]||t.$scopedSlots["bottom-actions"]?i("div",{on:{mouseenter:function(e){return t.clearSelection()}}},[i("div",{staticClass:"v-select-dropdown-divider"}),t._v(" "),t._t("bottom-actions",null,{actionClass:t.prefix+"-dropdown-menu-item action",activatedActionClass:"activated",disabledActionClass:"disabled"})],2):t._e()],1)]):t._e()],2)}),[],!1,null,null,null).exports,Pi=R({name:"SelectInput",directives:{tooltip:ri},props:{clearIconCls:{type:Array,default:()=>[]},allowClear:{type:Boolean,default:!1},allowEdit:{type:Boolean,default:!1},value:{type:String,default:""},inputTooltip:{type:Object,default:()=>({disabled:!0})},clearable:{type:Boolean,default:!1},hideTrigger:{type:Boolean,default:void 0},placeholder:{type:String,default:""},inputAttrs:{type:Object,default:()=>{}},openDropdown:{type:Function,default:E},toggleDropdown:{type:Function,default:E},closeDropdown:{type:Function,default:E},advanced:{type:Boolean,default:!1},displayField:{type:String,default:"label"},valueField:{type:String,default:"value"},triggerQueryAction:{type:String,default:"all"},autoOpenDropdownCharCount:{type:Number,default:-1},toggleDropdownOnClick:{type:Boolean,default:!0},mode:{type:String,default:"normal"},selectedOption:{type:Object,default:()=>({})},displayTextFormat:{type:Object,default:()=>({key:void 0,group:"{group}:{option}",option:"{option}",delimiter:","})},displayMode:{type:String,default:"none",validator:t=>["text","none"].includes(t)},groupOptions:{type:Object,default:()=>({})}},data:()=>({focused:!1}),computed:{textDisplayCls(){return["v-select2-text-display","v-select2-input",{placeholder:this.showPlaceholder}]},showPlaceholder(){return!this.display},display(){let{group:t,option:e,key:i}=this.displayTextFormat;const n=this.selectedOption;if(!n)return"";x(i)||(i=this.displayField);let s="";return n.inGroup?(s=t.replace("{group}",this.groupOptions[n.inGroup][i]),s=s.replace("{option}",n[i])):s=e.replace("{option}",n[i]),s},isTextDisplayMode(){return"text"===this.displayMode},isLabelDisplayMode(){return"label"===this.displayMode},isNoneDisplayMode(){return"none"===this.displayMode}},methods:{canOpenDropdown(t){return!(-1!==this.autoOpenDropdownCharCount&&this.autoOpenDropdownCharCount>this.getInputEl().value.length)},getInputEl(){return this.$refs.input},onInput(t){this.canOpenDropdown()?this.openDropdown("keyword"):this.closeDropdown(),this.$emit("input",t.target.value)},onKeyDown(t){this.advanced||(Ie(t)?(this.$emit("key-enter"),t.preventDefault()):!function(t){return t.key?"Escape"===t.key:27===t.keyCode}(t)?Ce(t)?(this.$emit("key-up"),t.preventDefault()):ke(t)&&(this.$emit("key-down"),t.preventDefault()):(this.$emit("key-esc"),this.closeDropdown()))},onClick(){this.toggleDropdownOnClick&&this.toggleDropdown(this.triggerQueryAction)},focus(){this.$refs.input.focus()},selectInput(){this.$refs.input&&this.$refs.input.select&&this.$refs.input.select()},onFocus(t){this.focused=!0,this.$emit("focus",t)},onBlur(t){this.focused=!1,this.$emit("blur",t)},onClear(t){this.$emit("clear"),this.focus(),t.preventDefault()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"input-wrapper"},[i("div",{ref:"icon",staticClass:"v-select2-icon",on:{click:function(e){return e.stopPropagation(),t.$emit("click-icon")}}},[t._t("icon")],2),t._v(" "),i("ul",{staticClass:"v-select-ul-wrap"},[t.isTextDisplayMode?i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{overflowOnly:!0,content:t.display},expression:"{ overflowOnly: true, content: display }"}],ref:"input",staticClass:"v-select2-text-display v-select2-input",class:t.textDisplayCls,attrs:{"data-placeholder":t.placeholder}},[t._v("\n "+t._s(t.showPlaceholder?t.placeholder:t.display)+"\n ")]):t.isNoneDisplayMode?i("input",t._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:t.inputTooltip,expression:"inputTooltip"}],ref:"input",staticClass:"v-select2-input",attrs:{placeholder:t.placeholder},domProps:{value:t.value},on:{input:t.onInput,focus:t.onFocus,blur:t.onBlur,keydown:function(e){return e.stopPropagation(),t.onKeyDown.apply(null,arguments)},click:function(e){return e.stopPropagation(),t.onClick.apply(null,arguments)}}},"input",t.inputAttrs,!1)):t._e()]),t._v(" "),t._t("clear-icon",(function(){return[t.allowClear&&t.focused?i("span",{class:t.clearIconCls,attrs:{unselectable:"unselectable"},on:{mousedown:function(e){return e.stopPropagation(),t.onClear.apply(null,arguments)}}}):t._e()]})),t._v(" "),t.hideTrigger?t._e():[t._t("dropdown-icon",(function(){return[i("span",{ref:"dropdownIcon",staticClass:"v-select2-dropdown-icon"})]}))],t._v(" "),t._t("right")],2)}),[],!1,null,null,null).exports,Ni=R({name:"SelectBaseOption",directives:{tooltip:ri},props:{id:{type:String,default:void 0},option:{type:Object,default:()=>({})},display:{type:String,default:void 0},value:{type:[Number,String,Boolean],default:void 0},selectable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},activated:{type:Boolean,default:!1},customClass:{type:[Array,Object,String],default:void 0},isSelected:{type:Boolean,default:void 0},tooltip:{type:[Boolean,Object],default:!1},active:{type:Function,default:E},hover:{type:Function,default:E},hoverOut:{type:Function,default:E},toggle:{type:Function,default:E}},computed:{innerCls(){return["v-select2-dropdown-menu-item",this.customClass?this.customClass:"",{unselectable:!1===this.selectable,disabled:this.disabled,activated:this.activated,"is-selected":this.isSelected,"has-icon":!!this.option.icon}]},mergedTooltip(){if(!1===this.tooltip)return!1;const t=Object.assign({},this.tooltip);return!0===t.overflowOnly&&(t.overflowOnly=()=>this.$refs.text),t}},methods:{onClick(t){this.active(),this.$emit("active",t),this.$emit("click",t)},onHover(t){this.hover(),this.$emit("hover",t),this.$emit("mouseenter",t)},onHoverOut(t){this.hoverOut(),this.$emit("hover-out",t),this.$emit("mouseleave",t)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.mergedTooltip,expression:"mergedTooltip"}],class:t.innerCls,staticStyle:{"user-select":"none"},attrs:{id:t.id,"syno-id":t.synoId+"-option-"+t.value,unselectable:"unselectable",role:"option","aria-selected":t.activated},on:{click:t.onClick,mouseenter:t.onHover,mouseleave:t.onHoverOut}},[t._t("inner-option",(function(){return[t.option.icon?i("i",{staticClass:"item-icon",class:t.option.icon}):t._e(),t._v(" "),i("span",{ref:"text",staticClass:"option-text"},[t._v("\n "+t._s(t.display)+"\n ")]),t._v(" "),t.option.desc?i("span",{staticClass:"item-desc"},[t._v("\n "+t._s(t.option.desc)+"\n ")]):t._e()]}),{option:t.option})],2)}),[],!1,null,null,null).exports,Fi=R({name:"SelectDividerOption",extends:Ni,methods:{}},(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"v-select2-dropdown-divider"})}),[],!1,null,null,null).exports,zi=R({name:"SelectGroupOption",extends:Ni,props:{},computed:{innerCls(){return["v-select2-dropdown-menu-item-group-label",{unselectable:!1===this.selectable,[this.customClass]:!!this.customClass}]}},methods:{}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("li",{class:t.innerCls},[t._v("\n "+t._s(t.display)+"\n")])}),[],!1,null,null,null).exports;var Li=function({components:t=[]}={},e){return{install:function i(n,s={}){if(!i.installed){if(t=T(t)?t:[t])for(const e of t)n.component("".concat("v").concat(e.name),e);null==e||e(n,s)}}}};Li({components:[Tt]});const Ri=Li({},((t,e)=>{t.prototype.$scrollbar=e}));var Hi=Tt,ji={name:"VirtualScrollbar",extends:Hi,props:{itemSize:{type:Number,default:void 0},total:{type:Number,default:0},bufferSize:{type:Number,default:200}},data:()=>({bufferStart:0,bufferEnd:0,virtualTotalSize:0,visibleStart:0,visibleEnd:0}),watch:{total(){this.$nextTick((()=>this.updateVisible()))},bufferSize(){this.$nextTick((()=>this.updateVisible()))},itemSize(){this.$nextTick((()=>this.updateVisible()))}},computed:{offsetHeight(){return this.visibleStart*+this.itemSize},offsetStyle(){return{transform:"translateY(".concat(this.offsetHeight,"px"),position:"static"}},innerStyle(){return{height:this.virtualTotalSize+"px",top:0,left:0,width:"1px",position:"absolute"}}},created(){this.$_scrollTop=void 0},mounted(){this.$nextTick((()=>{Ze(this.$el,this.onVisibleChanged)}))},beforeDestroy(){Qe(this.$el,this.onVisibleChanged)},methods:{onVisibleChanged(t){(t.isVisible||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height)&&(this.handleScroll({checkScrollSticky:!1}),this.$emit("visible"),this.$nextTick((()=>{this.ps.update()})))},getBuffer(t){let e=t-this.bufferSize;return e<0&&(e=0),{bufferStart:e,bufferEnd:e+this.$el.clientHeight+2*this.bufferSize}},findAnchor(t,e){let i=0,n=0,s=0;return i=Math.max(Math.min(~~(t/+this.itemSize),this.total),0),n=Math.max(Math.min(~~(e/+this.itemSize),this.total),0),s=this.total*+this.itemSize,{start:i,end:n,total:s}},getVisibleItems(t,e){return this.bufferStart=t,this.bufferEnd=e,this.findAnchor(this.bufferStart,this.bufferEnd)},isScrollSticky(t,e){return t>=this.$_scrollTop&&e>=this.visibleStart*+this.itemSize||t<=this.$_scrollTop&&e<=(this.visibleStart-1)*+this.itemSize},handleScroll({checkScrollSticky:t=!0}={}){const e=this.$el.scrollTop,{bufferStart:i,bufferEnd:n}=this.getBuffer(e);if(!t||this.isScrollSticky(e,i)){const{start:t,end:e,total:s}=this.getVisibleItems(i,n);this.renderVisibleItems(t,e,s)}this.$_scrollTop=e},updateVisible(){this.handleScroll()},renderVisibleItems(t,e,i){this.visibleStart=t,this.visibleEnd=e,this.virtualTotalSize=i},handleEvents(t){"scroll"===t.type&&this.handleScroll(),Hi.methods.handleEvents.apply(this,arguments)},genFakeElement(){return this.$createElement("div",{style:this.innerStyle})},genSlots(){return this.$createElement("div",{class:this.prefixCls+"-virtual-wrapper",style:this.offsetStyle},this.$scopedSlots.default({start:this.visibleStart,end:this.visibleEnd}))},scrollToIndex(t){const e=this.itemSize*t;this.$el.scrollTop=e,this.handleScroll()},ensureVisible(t,e=10,i=!1){if(!1===i&&t.scrollIntoViewIfNeeded)return void t.scrollIntoViewIfNeeded(!1);let n,s=t,o=this.$el,r=getComputedStyle(o),a=o.scrollTop,l=a+o.clientHeight,c=0,u=0,d=0;for(c+=this.offsetHeight;s&&s!==o&&ul&&(d=n-l),0!==d)if(i){let t=0,e=setInterval((()=>{t++,o.scrollTop=a+d*t/3,3===t&&clearInterval(e)}),200)}else o.scrollTop=a+d}},render(t){return t("div",{class:this.prefixCls,on:{psScrollX:this.handleEvents,psScrollY:this.handleEvents,psScrollUp:this.handleEvents,psScrollDown:this.handleEvents,psScrollLeft:this.handleEvents,psScrollRight:this.handleEvents,psXReachStart:this.handleEvents,psXReachEnd:this.handleEvents,psYReachStart:this.handleEvents,psYReachEnd:this.handleEvents,scroll:this.handleEvents,"~mouseover":this.update}},[this.genSlots(),this.genFakeElement()])}},Wi=R({name:"SelectDropdown",components:{vBaseOption:Ni,vDividerOption:Fi,SpinIcon:yi,vGroupOption:zi,scrollbar:{functional:!0,props:{virtual:{type:Boolean,default:!1}},render:(t,e)=>t(e.props.virtual?ji:Tt,e.data,e.children)}},mixins:[Mi],props:{virtualScrollbar:{type:Boolean,default:!1},virtualItemHeight:{type:Number,default:28},virtualBufferSize:{type:Number,default:200},options:{type:Array,default:()=>[]},advanced:{type:Boolean,default:!1},dropdownCls:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},maxHeight:{type:[Number,String],default:200},dropdownStyles:{type:Object,default:()=>{}},notFoundText:{type:String,default:function(){return this._i18n("search","no_search_result")}},value:{type:[Array,Number,String,Boolean],default:""},displayField:{type:String,default:"label"},valueField:{type:String,default:"value"},getOptionTooltip:{type:Function,required:!0},loadingText:{type:String,default:void 0},useOptionSlot:{type:Boolean,default:void 0},showNotFound:{type:Boolean,default:!0},defaultOption:{type:Object,default:()=>Ni}},data(){let t=0;return Array.isArray(this.value)||(t=this.findActiveIndexByValue(this.value),-1===t&&(t=0)),{activeIndex:t,visible:!1}},computed:{dropdownMenuWrapperStyle(){return this.virtualScrollbar?{visibility:this.visible?"visible":"hidden"}:{}},hasTopActionsSlot(){return!(!this.$slots["top-actions"]&&!this.$scopedSlots["top-actions"])},hasBottomActionsSlot(){return!(!this.$slots["bottom-actions"]&&!this.$scopedSlots["bottom-actions"])},listStyles(){return{maxHeight:b(this.maxHeight)?"".concat(this.maxHeight-16,"px"):this.maxHeight}}},watch:{options(){this.virtualScrollbar&&this.$nextTick((()=>this.resetScroll()));!1===this.moveActiveIndex("none")&&this.moveActiveIndex("none",0)},loading(){this.virtualScrollbar&&this.$nextTick((()=>this.$refs.scrollbar.updateVisible()))},activeIndex:{handler(t){this.$nextTick((()=>{this.$emit("hover-index",t)}))},immediate:!0}},mounted(){this.$on("shown",this.onShown)},beforeDestroy(){this.$off("shown",this.onShown)},methods:{onShown(){this.virtualScrollbar||this.moveActiveIndex("none")},onScrollbarVisible(){this.$emit("scrollbar-visible"),this.$nextTick((()=>{this.visible=!0,this.moveActiveIndex("none")}))},getVisibleOptions(t,e){let i=this.options.map(((t,e)=>({index:e,option:t})));return this.virtualScrollbar&&(i=i.slice(t,e)),i},getExtraElements(){return[...this.$children]},closeDropdown(){this.$emit("close-dropdown")},clearSelection(){this.activeIndex=-1},useSlot(t){return x(t.useSlot)?t.useSlot:this.useOptionSlot},getOptionClass:t=>({[t.class]:!!t.class,"child-item":t.child}),isOptionSelectable(t){const e=this.options[t];return!!e&&("-"!==e&&("group-label"!==e.type&&(!x(e.selectable)||e.selectable)))},isOptionSelected(t){return Array.isArray(this.value)?this.value.includes(t[this.valueField]):t[this.valueField]===this.value},findActiveIndexByValue(t){return this.options.findIndex((e=>e[this.valueField]===t))},setActiveIndex(t,{ensureVisible:e=!0}={}){t<0||t>=this.options.length||(this.activeIndex=t,e&&this.$nextTick((()=>this.ensureActiveIndexVisible())))},moveActiveIndex(t,e=this.activeIndex){if("up"===t){for(let i=e-1;i>=0;i--)if(this.isOptionSelectable(i))return this.setActiveIndex(i)}else if("down"===t){for(let i=e+1,n=this.options.length;ie[this.valueField]===t))},getActiveIndex(){return this.activeIndex<0||this.options.length<=this.activeIndex?-1:this.activeIndex},getActiveOptionAria(){const t=this.getActiveOption();return t?this.getOptionId(t):""},getActiveOption(){return this.activeIndex<0||this.options.length<=this.activeIndex?null:this.options[this.activeIndex]},onHoverOption(t){this.activeIndex=t},onClickOption(t,e){-1!==e?!1!==t.selectable&&this.$emit("select",e,t):this.clearSelection()},onToggleOption(t,e){-1!==e?!1!==t.selectable&&this.$emit("toggle",e,t):this.clearSelection()},focus(){this.$refs.dropdown.focus()},resetScroll(){this.$refs.scrollbar&&(this.$refs.scrollbar.resetScrollTop(),this.$refs.scrollbar.update())},getOptionId(t){return"".concat(this.uuid,"-option-").concat(t[this.valueField])}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"dropdown",staticClass:"v-select2-dropdown-menu-wrapper",style:t.dropdownMenuWrapperStyle,attrs:{tabindex:-1}},[t._t("dropdown",(function(){return[i("div",{class:t.dropdownCls,attrs:{"syno-id":t.synoId+"-dropdown-menu"}},[t.hasTopActionsSlot?i("div",{on:{mouseenter:function(e){return t.clearSelection()}}},[t._t("top-actions")],2):t._e(),t._v(" "),i("scrollbar",{ref:"scrollbar",attrs:{virtual:t.virtualScrollbar,"item-size":t.virtualItemHeight,total:t.options.length,"buffer-size":t.virtualBufferSize},on:{visible:t.onScrollbarVisible},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.start,s=e.end;return[i("ul",{ref:"dropDownMenu",staticClass:"v-select2-dropdown-menu",style:t.listStyles,attrs:{role:"listbox"}},[t._t("before-options"),t._v(" "),t.loading?i("li",{staticClass:"v-select2-dropdown-loading-text",staticStyle:{"user-select":"none"},attrs:{unselectable:"unselectable",role:"menuitem","aria-selected":"false"}},[i("spin-icon"),t._v("\n "+t._s(t.loadingText)+"\n ")],1):[!t.showNotFound||t.options&&0!==t.options.length?t._e():[t._t("notfound-item",(function(){return[i("li",{staticClass:"v-select2-dropdown-menu-item v-select2-dropdown-menu-item-disabled not-found",staticStyle:{"user-select":"none"},attrs:{unselectable:"unselectable",role:"menuitem","aria-selected":"false"}},[t._v("\n "+t._s(t.notFoundText)+"\n ")])]}))],t._v(" "),t._l(t.getVisibleOptions(n,s),(function(e){var n=e.option,s=e.index;return[t.useSlot(n)?[t._t("option",null,{option:n,id:t.getOptionId(n),synoId:t.synoId+"-option-"+n[t.valueField],value:n[t.valueField],disabled:n.disabled,activated:s===t.activeIndex,customClass:t.getOptionClass(n),isSelected:t.isOptionSelected(n),tooltip:t.getOptionTooltip(n),active:function(){return t.onClickOption(n,s)},hover:function(){return t.onHoverOption(s)}})]:"-"===n?[i("v-divider-option",{key:"option-divider-"+s})]:"group-label"===n.type?[i("v-group-option",{key:n[t.displayField],attrs:{display:n[t.displayField]}})]:[i(t.defaultOption,{key:n[t.valueField],ref:"option-"+s,refInFor:!0,tag:"component",attrs:{option:n,"syno-id":t.synoId,id:t.getOptionId(n),value:n[t.valueField],display:n[t.displayField],disabled:n.disabled,activated:s===t.activeIndex,"custom-class":t.getOptionClass(n),selectable:t.isOptionSelectable(s),"is-selected":t.isOptionSelected(n),tooltip:t.getOptionTooltip(n),active:function(){return t.onClickOption(n,s)},toggle:function(){return t.onToggleOption(n,s)},hover:function(){return t.onHoverOption(s)}},scopedSlots:t._u([{key:"inner-option",fn:function(e){var i=e.option;return[t._t("inner-option",null,{option:i})]}}],null,!0)})]]}))],t._v(" "),t._t("after-options")],2)]}}],null,!0)}),t._v(" "),t.hasBottomActionsSlot?i("div",{on:{mouseenter:function(e){return t.clearSelection()}}},[t._t("bottom-actions")],2):t._e()],1)]}),{cls:"v-select2-advanced",options:t.options})],2)}),[],!1,null,null,null).exports,Vi=(i(181),R({name:"BaseSelect",directives:{clickoutside:Ye,tooltip:ri},components:{vSelectInput:Pi,vSelectDropdown:Wi},mixins:[V,Mi,vi,ai,we],props:{value:{type:[Array,Number,String,Boolean],default:void 0},id:{type:String,default(){return"syno-".concat(this.uuid)}},name:{type:String,default:""},width:{type:[Number,String],default:250},maxHeight:{type:[Number,String],default:200},dropdownWidth:{type:String,default:void 0},dropdownOffset:{type:Array,default:()=>[0,1]},customDropdownCls:{type:String,default:""},disabled:{type:Boolean,default:!1},filter:{type:Function,default:void 0},search:{type:Function,default:void 0},align:{type:String,default:"tl->bl"},minSearchChar:{type:[Number,String],default:1},loadingText:{type:String,default:function(){return this._i18n("uicommon","searching")}},notFoundText:{type:String,default:function(){return this._i18n("search","no_search_result")}},tooltip:{type:Boolean,default:!1},mapOptionToTooltip:{type:Function,default:null},shouldMenuClose:{type:Function,default:()=>!0},options:{type:[Object,Array],default:()=>[]},clearable:{type:Boolean,default:!1},editable:{type:Boolean,default:void 0},hideTrigger:{type:Boolean,default:void 0},position:{type:String,default:"absolute"},displayField:{type:String,default:"label"},valueField:{type:String,default:"value"},closeOnSelect:{type:Boolean,default:!0},placeholder:{type:String,default:""},nullValue:{type:[String,Array],default:null},inputScrollable:{type:Boolean,default:!1},inputTooltip:{type:Object,default:()=>({disabled:!0})},useOptionSlot:{type:Boolean,default:void 0},triggerQueryAction:{type:String,default:"all"},caseSensitive:{type:Boolean,default:!1},virtualScrollbar:{type:Boolean,default:!1},virtualItemHeight:{type:Number,default:28},virtualBufferSize:{type:Number,default:200},showNotFound:{type:Boolean,default:!0},showDropdown:{type:Boolean,default:!0},displayTextFormat:{type:Object,default(){return{group:"{group}:{option}",option:"{option}",delimiter:this._i18n("common","comma")}}},displayMode:{type:String,default:"none",validator:t=>["label","text","none"].includes(t)}},data:()=>({activeDescendant:null,isFocused:!1,dropdownStyle:{},loading:!1,show:!1,dropItemNodeList:[],display:"",currentQueryAction:"all",visibleOptions:[],searchOptions:[]}),computed:{mergedDisplayTextFormat(){return kt()({group:"{group}:{option}",option:"{option}",delimiter:this._i18n("common","comma")},this.displayTextFormat)},currentOptions(){return this.isSearchMode?this.transformGroupOptions(this.searchOptions):this.transformGroupOptions(this.options)},allowClear(){return this.clearable&&!!this.display},allowEdit(){return x(this.editable)?this.editable:!(!this.search&&!this.filter)},_hideTrigger(){return x(this.hideTrigger)?this.hideTrigger:!(!this.search&&!this.filter)},advanced(){return!!this.hasIcon&&!(!this.$slots.dropdown&&!this.$scopedSlots.dropdown)},icon(){return!(!this.$slots.icon&&!this.$scopedSlots.icon)},hasIcon(){return this.search||this.filter||this.icon},inputAttrs(){return{id:this.id,disabled:this.disabled,readonly:!this.allowEdit,autocomplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":this.activeDescendant,"aria-expanded":this.show}},wrapCls(){return[{"v-select2-wrapper":!0},{"has-icon":this.hasIcon},{"is-advanced":this.advanced&&!this.icon},{disabled:this.disabled},{focused:this.isFocused},{pressed:this.show},{readonly:!this.allowEdit},{"allow-clear":this.allowClear},{"hide-trigger":this.hideTrigger||this.search}]},dropdownCls(){return["v-select2-dropdown","v-select2-dropdown-placement-bottomLeft",this.customDropdownCls]},clearIconCls(){return["v-select2-clear-icon",{"hide-trigger":this._hideTrigger}]},searchIconCls(){return[{disabled:!this.hasIcon},{normal:this.search},{textfilter:this.filter},{advanced:this.advanced},{"advanced-textfilter":this.filter&&this.advanced}]},isActive(){return this.show||this.isFocused},selectedOption(){return this.currentOptions.find((t=>t[this.valueField]===this.value))},isSearchMode(){return this.search&&!this.advanced},autoOpenDropdownCharCount(){return this.isSearchMode?+this.minSearchChar:-1},inputMode(){return this.search?"search":"normal"},groupOptions(){return this.currentOptions.reduce(((t,e)=>("group-label"===e.type&&(t[e[this.valueField]]=e),t)),{})}},watch:{options:{handler(t){this.isSearchMode&&(this.searchOptions=t)},immediate:!0},currentOptions(t){this.doQuery(this.currentQueryAction)},display(t){this.currentQueryAction="keyword",this.doQuery(this.currentQueryAction),this.$emit("display-changed",t)},show:{async handler(t){t?this.$emit("dropdown-shown"):this.$emit("dropdown-hidden"),await this.repositionMenu(),await this.$nextTick(),this.$refs.dropdown&&this.$refs.dropdown.$emit("shown")},immediate:!0},isActive:{handler(t){this.$emit("is-active",t)}}},created(){this._searchingDebounce=Si()(this.searching,250)},mounted(){this._unregister=this.listenResizeAndWheelOnMounted()},beforeDestroy(){this._unregister()},methods:{transformGroupOptions(t){if(v(t)){let e=[];for(let i in t)t.hasOwnProperty(i)&&(e.push({type:"group-label",[this.valueField]:i,[this.displayField]:i}),e=e.concat(t[i].options.map((t=>({...t,child:!0,inGroup:i})))));return e}return t},setLoading(t){this.loading=t},isEmptyStateValue(t){return Array.isArray(this.nullValue)&&this.nullValue.includes(t)||this.nullValue===t},getOptionTooltip(t={}){let e=this.mapOptionToTooltip?this.mapOptionToTooltip(t):t[this.displayField];return m(e)&&(e={content:e}),{delay:300,bgOpacity:1,offset:[25,25],attachToElement:!0,overflowOnly:!0,...e}},getValidOptions(){return this.currentOptions.filter((t=>!0!==t.hide))},getVisibleOptions(t="all"){if(this.filter)return this.filter(this.display,this.currentOptions,t);let e=Object.create(null),i=0,n=this.currentOptions.filter((n=>{if(n.hide)return!1;if("-"===n)return!0;let s=!1;if(!this.search&&this.allowEdit&&this.display&&"group-label"!==n.type||(s=!0),"keyword"===t){let t=n[this.displayField],e=this.display;this.caseSensitive||(t=t.toUpperCase(),e=e.toUpperCase()),t.includes(e)&&(s=!0)}else"all"===t&&(s=!0);return g(n.filter)&&(s=n.filter(this.display,n,i,{query:t})),s&&(i++,n.inGroup&&(e[n.inGroup]=!0)),s}));return n=n.filter((t=>"group-label"!==t.type||!!e[t[this.valueField]])),this.filterLegalDividerOption(n)},doQuery(t="all"){this.visibleOptions=this.getVisibleOptions(t),this.repositionMenu()},register(t,e=(()=>{})){e(this)},unregister(t,e=(()=>{})){e(this)},filterLegalDividerOption(t){let e=null,i=!1,n=[];for(let s=0;s{window.removeEventListener("resize",this.repositionMenu),document.removeEventListener("wheel",this.repositionMenu)}},doSearch(t){!this.search||t.length{this.loading=!0;const e=await this.search(t);e&&(this.searchOptions=e),this.loading=!1}))},async repositionMenu(){if(await this.$nextTick(),!this.$el||!this.$refs.dropdown||!this.$refs.dropdown.$el)return;if(!this.show)return;const t=this.getContainerEl(),e=this.$el.getBoundingClientRect(),i=(this.$el.clientTop,this.$el.clientLeft,h(e,0,t));this.dropdownStyle={width:this.dropdownWidth||"".concat(i.right-i.left,"px"),maxHeight:b(this.maxHeight)?"".concat(this.maxHeight,"px"):this.maxHeight},await this.$nextTick();const[n,s]=this.$alignManager.getAlignToXY(this.$refs.dropdown.$el,this.$el,this.align,this.dropdownOffset,!0,!0,t);await this.$nextTick(),this.dropdownStyle={top:"".concat(s,"px"),left:"".concat(n,"px"),width:this.dropdownWidth||"".concat(i.right-i.left,"px"),maxHeight:b(this.maxHeight)?"".concat(this.maxHeight,"px"):this.maxHeight}},focusInput(){this.$refs.input&&this.$refs.input.focus()},onClick(){this._hideTrigger||(this.$refs.input.focus(),this.toggleDropdown(this.triggerQueryAction))},openDropdown(t){return!this.show&&(t&&(this.currentQueryAction=t),this.doQuery(this.currentQueryAction),this.show=!0,!0)},closeDropdown(){this.show&&(this.shouldMenuClose&&!this.shouldMenuClose()||(this.show=!1,this.$emit("close-dropdown")))},toggleDropdown(t){this.disabled||(this.allowEdit&&this.$refs.input.getInputEl().focus(),this.show?this.closeDropdown():this.openDropdown(t))},onClickIcon(){this.$emit("click-icon"),this.advanced&&this.toggleDropdown(this.triggerQueryAction)},onEnter(){if(this.$refs.dropdown){const t=this.$refs.dropdown.getActiveIndex();this.select(t)}},onArrow(t=""){this.advanced||(this.openDropdown(),this.$refs.dropdown&&this.$refs.dropdown.moveActiveIndex(t))},clear(){this.display="";const t=this.findOptions(this.display);this.$emit("clear"),this.$emit("input",t&&t[this.valueField])},canCloseOnSelect(t){return x(t.closeOnSelect)?t.closeOnSelect:this.closeOnSelect},select(t=-1){if(t<0||this.visibleOptions.length<=t)return;const e=this.visibleOptions[t];this.$emit("internal-select",t),this.$emit("select",e),this.canCloseOnSelect(e)&&(this.closeDropdown(),this.$refs.input.focus())},onScrollbarVisible(){this.repositionMenu()},onHoverIndexChanged(){this.activeDescendant=this.$refs.dropdown&&this.$refs.dropdown.getActiveOptionAria()},inDataTableBehavior(){this.$el.addEventListener("mousedown",(t=>{t.stopPropagation(),We(t)})),this.$el.addEventListener("keydown",(t=>t.stopPropagation()))}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside.children",value:t.clickOutside,expression:"clickOutside",modifiers:{children:!0}},{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapCls,style:t.wrapStyles,on:{click:t.onClick}},[t._t("input",(function(){return[i("v-select-input",{ref:"input",attrs:{"input-tooltip":t.inputTooltip,placeholder:t.placeholder,"input-attrs":t.inputAttrs,"open-dropdown":t.openDropdown,"toggle-dropdown":t.toggleDropdown,"close-dropdown":t.closeDropdown,advanced:t.advanced,"clear-icon-cls":t.clearIconCls,"allow-clear":t.allowClear,"hide-trigger":t._hideTrigger,"display-field":t.displayField,"value-field":t.valueField,"trigger-query-action":t.triggerQueryAction,"auto-open-dropdown-char-count":t.autoOpenDropdownCharCount,"toggle-dropdown-on-click":!t.isSearchMode},on:{"click-icon":t.onClickIcon,clear:t.clear,"key-up":function(e){return t.onArrow("up")},"key-down":function(e){return t.onArrow("down")},"key-enter":t.onEnter,focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1}},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon",(function(){return[i("i",{class:t.searchIconCls})]}))]},proxy:!0},{key:"right",fn:function(){return[t._t("input-right")]},proxy:!0}],null,!0),model:{value:t.display,callback:function(e){t.display=e},expression:"display"}})]}),{hasIcon:t.hasIcon,searchIconCls:t.searchIconCls}),t._v(" "),t.show&&t.showDropdown?i("v-portal",{attrs:{"mount-to":t.getContainerSelector(),"target-style":t.dropdownStyle}},[i("v-select-dropdown",{ref:"dropdown",attrs:{options:t.visibleOptions,"use-option-slot":t.useOptionSlot,advanced:t.advanced,"dropdown-cls":t.dropdownCls,loading:t.loading,"loading-text":t.loadingText,"max-height":t.maxHeight,"not-found-text":t.notFoundText,value:t.value,"value-field":t.valueField,"display-field":t.displayField,"get-option-tooltip":t.getOptionTooltip,"virtual-scrollbar":t.virtualScrollbar,"virtual-item-height":t.virtualItemHeight,"virtual-buffer-size":t.virtualBufferSize,"show-not-found":t.showNotFound,"default-option":t.defaultOption},on:{"close-dropdown":t.closeDropdown,"hover-index":t.onHoverIndexChanged,select:t.select,"scrollbar-visible":t.onScrollbarVisible},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)],1):t._e()],2)}),[],!1,null,null,null).exports);function qi(t){return void 0!==t&&""!==t}var Ui=R({name:"SingleSelect",extends:Vi,props:{forceSelection:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!0},displayMode:{type:String,default:"none",validator:t=>["text","none"].includes(t)}},data:()=>({lastSelectedOption:void 0,defaultOption:Ni}),computed:{selectedOption(){return this.isEmptyStateValue(this.value)?null:this.currentOptions.find((t=>qi(this.value)&&t[this.valueField]===this.value))},wrapStyles(){return{width:m(this.width)?this.width:"".concat(this.width,"px")}}},watch:{display(t){this.doSearch(t)},currentOptions:{immediate:!0,handler(){const t=this.selectedOption;t&&!this.search&&(this.display=t[this.displayField])}},value:{immediate:!0,handler(t){if(!x(t)&&this.clearable&&this.tryRememberLastSelectedOption(null),this.isEmptyStateValue(t))return this.$emit("input",null),this.display="",void this.tryRememberLastSelectedOption(null);qi(t)&&this.$refs.dropdown&&this.$refs.dropdown.setActiveIndexByValue(t);const e=this.selectedOption;this.tryRememberLastSelectedOption(e),e&&(this.display=e[this.displayField])}}},methods:{findOptions(t){return this.getValidOptions().filter((t=>"group-label"!==t.type)).find((e=>t&&e[this.displayField]===t))},tryRememberLastSelectedOption(t){this.lastSelectedOption=t},handleForceSelection(t){return(""!==this.display||!this.clearable)&&(!t&&(this.lastSelectedOption?this.display=this.lastSelectedOption[this.displayField]:this.display="",!0))},onBlur(t){const e=ie(t);if(this.isFocused=!1,this.$refs.dropdown&&this.$refs.dropdown.$el.contains(e)||this.$el.contains(e))return;if(this.selectedOption&&this.display===this.selectedOption[this.displayField])return;const i=this.findOptions(this.display);this.forceSelection?!1===this.handleForceSelection(i)&&this.$emit("input",i&&i[this.valueField]):this.$emit("input",i&&i[this.valueField])},select(t=-1){if(t<0||this.visibleOptions.length<=t)return;if(this.selectedOptionIndex===t)return;const e=this.visibleOptions[t];"-"===e||e.disabled||(this.display=e[this.displayField],this.$emit("input",e[this.valueField]),Vi.methods.select.apply(this,arguments))},openDropdown(t){const e=this.selectOnFocus&&!this.inputAttrs.readonly;Vi.methods.openDropdown.apply(this,arguments)&&e&&"all"===t&&this.$refs.input.selectInput()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside.children",value:t.clickOutside,expression:"clickOutside",modifiers:{children:!0}},{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapCls,style:t.wrapStyles,on:{click:t.onClick}},[t._t("input",(function(){return[i("v-select-input",{ref:"input",attrs:{"input-tooltip":t.inputTooltip,placeholder:t.placeholder,"selected-option":t.selectedOption,"input-attrs":t.inputAttrs,"open-dropdown":t.openDropdown,"toggle-dropdown":t.toggleDropdown,"close-dropdown":t.closeDropdown,advanced:t.advanced,"clear-icon-cls":t.clearIconCls,"allow-clear":t.allowClear,"hide-trigger":t._hideTrigger,"display-field":t.displayField,"value-field":t.valueField,"trigger-query-action":t.triggerQueryAction,"auto-open-dropdown-char-count":t.autoOpenDropdownCharCount,"toggle-dropdown-on-click":!t.isSearchMode,"display-mode":t.displayMode,"display-text-format":t.mergedDisplayTextFormat,"group-options":t.groupOptions},on:{"click-icon":t.onClickIcon,clear:t.clear,"key-up":function(e){return t.onArrow("up")},"key-down":function(e){return t.onArrow("down")},"key-enter":t.onEnter,focus:function(e){t.isFocused=!0},blur:t.onBlur},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon",(function(){return[i("i",{class:t.searchIconCls})]}))]},proxy:!0},{key:"right",fn:function(){return[t._t("input-right")]},proxy:!0}],null,!0),model:{value:t.display,callback:function(e){t.display=e},expression:"display"}})]}),{hasIcon:t.hasIcon,searchIconCls:t.searchIconCls}),t._v(" "),t.show&&t.showDropdown?i("v-portal",{attrs:{"mount-to":t.getContainerSelector(),"target-style":t.dropdownStyle}},[i("v-select-dropdown",{ref:"dropdown",attrs:{options:t.visibleOptions,"use-option-slot":t.useOptionSlot,advanced:t.advanced,"dropdown-cls":t.dropdownCls,loading:t.loading,"loading-text":t.loadingText,"max-height":t.maxHeight,"not-found-text":t.notFoundText,value:t.value,"value-field":t.valueField,"display-field":t.displayField,"get-option-tooltip":t.getOptionTooltip,"virtual-scrollbar":t.virtualScrollbar,"virtual-item-height":t.virtualItemHeight,"virtual-buffer-size":t.virtualBufferSize,"show-not-found":t.showNotFound,"default-option":t.defaultOption},on:{"close-dropdown":t.closeDropdown,"hover-index":t.onHoverIndexChanged,select:t.select,"scrollbar-visible":t.onScrollbarVisible},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)],1):t._e()],2)}),[],!1,null,null,null).exports;function Yi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}function Ki({toggle:t="toggleItem",selectRange:e="selectItemsRange",select:i="selectItem",getItemValue:n="getItemValue",isItemDisabled:s="isItemDisabled",itemsKey:o="selectedItems"}={}){return{data:()=>({lastSelectIndex:-1,lastSelectRangeIndex:-1,[o]:new Set}),methods:{clearSelection(){this[o]=new Set},resetSelectIndex(){this.lastSelectIndex=this.lastSelectRangeIndex=-1},addSelectedItem(t){const e=this[n](t);if(this[s](t))return!1;this[o].add(e)},removeSelectedItem(t){const e=this[n](t);this[o].delete(e)},isItemSelected(t){const e=this[n](t);return this[o].has(e)},selectItemsRange(t,e,i,{keepSelection:n=!1}={}){n||this.clearSelection();const s=P(Math.min(t,e),0,i.length-1),r=P(Math.max(t,e),0,i.length-1);for(let o=s;o<=r;o++)this.addSelectedItem(i[o]);return this[o]=new Set(this[o]),this.lastSelectRangeIndex=e,!0},onClickItem(n,s,o,r=xe(n),a){return _e(n)&&-1!==this.lastSelectIndex?this[e](r?this.lastSelectRangeIndex:this.lastSelectIndex,s,{keepSelection:r},a):r?this[t](o,s,a):this[i](o,s,a)},toggleItem(t,e){const i=this[n](t);return this.isItemSelected(t)?this[o].delete(i):this.addSelectedItem(t),this.lastSelectIndex=this.lastSelectRangeIndex=e,this[o]=new Set(this[o]),!0},selectItem(t,e){if(this[s](t))return!1;const i=this[n](t);return this[o]=new Set([i]),this.lastSelectIndex=this.lastSelectRangeIndex=e,!0}}}}var Gi=R({name:"MultipleSelectInput",components:{vPerfectScrollbar:Tt},extends:Pi,mixins:[Ki({toggle:"toggleLabel",selectRange:"selectRange",select:"selectLabel",getItemValue:"getLabelValue",isItemDisabled:"isDisabled",itemsKey:"selectedLabels"})],props:{selectedOptions:{type:Array,default:()=>[]},getOptionTooltip:{type:Function,required:!0},allowInvalidLabel:{type:Boolean,default:!1},groupOptions:{type:Object,default:()=>({})},displayMode:{type:String,default:"label",validator:t=>["label","text","none"].includes(t)},displayText:{type:[String,Boolean],default:!1}},data:()=>({}),computed:{textDisplayCls(){return["v-select2-text-display",{placeholder:this.showPlaceholder}]},display(){if(this.displayText)return this.displayText;let{group:t,option:e,delimiter:i,key:n}=this.displayTextFormat;return x(n)||(n=this.displayField),this.selectedOptions.map((i=>{let s="";return i.inGroup?(s=t.replace("{group}",this.groupOptions[i.inGroup][n]),s=s.replace("{option}",i[n])):s=e.replace("{option}",i[n]),s})).join(i)}},watch:{placeholder(t){this.resizeInput()}},mounted(){this.isTextDisplayMode||(this._destroyMeasureElement=this.createMeasureElement())},beforeDestroy(){this._destroyMeasureElement&&this._destroyMeasureElement()},methods:{itemWrapperClasses(t){return["v-multiselect-item-wrapper",{"v-multiselect-item-disabled":this.isDisabled(t),"v-multiselect-item-invalid":this.isInvalid(t),selected:this.isSelected(t),[t.labelCls]:!!t.labelCls,"has-icon":this.hasOptionIcon(t)}]},isDisabled(t){return t&&x(t.irremovable)?(Ee("irremovable","disabled",this),t&&!0===t.irremovable):t&&!0===t.disabled},hasOptionIcon:t=>t&&!!t.labelIcon,isInvalid:t=>t&&!0===t.invalid,isSelected(t){return this.isItemSelected(t)},removeOption(t){let e=this.isInvalid(t)?t.id:t[this.valueField];return this.remove(e)},remove(t){const e=this.selectedOptions;Array.isArray(t)||(t=[t]);const i=e.filter((e=>!!this.isDisabled(e)||(!this.isInvalid(e)||!t.includes(e.id))&&!t.includes(e[this.valueField])));this.$emit("item-removed",t,i),this.$emit("reposition-menu")},onKeyDown(t){const e=this.$refs.input,i=this.selectedOptions;this.resizeInput(),this.onBackspace(t),Se(t)&&0===e.selectionStart&&i.length>0&&(this.resetSelectIndex(),this.selectPrevLabel(),this.$refs["label-wrapper"]&&this.$refs["label-wrapper"].focus()),Pi.methods.onKeyDown.apply(this,arguments)},onDelete(t){"Delete"===t.key&&this.selectedLabels.size>0&&(this.remove(Array.from(this.selectedLabels)),this.selectPrevLabel())},onBackspace(t){if("Backspace"!==t.key)return;if(this.value)return;if(this.selectedLabels.size>0)return this.remove(Array.from(this.selectedLabels)),void this.selectPrevLabel();const e=this.selectedOptions;e.length>0&&this.removeOption(e[e.length-1])},getOptionKey(t){return t.invalid?t.id:t[this.valueField]},createMeasureElement(){const t=this.$refs.input;this._measureEl=document.createElement("span");const{fontSize:e,fontFamily:i,fontStyle:n,fontWeight:s,lineHeight:o,letterSpacing:r,textTransform:a}=Vt(t);this._measureEl.style={...this._measureEl.style,fontSize:e,fontFamily:i,fontStyle:n,fontWeight:s,lineHeight:o,letterSpacing:r,textTransform:a,position:"absolute",top:"-10000px",left:"-10000px",display:"inline-block"},document.body.appendChild(this._measureEl);return()=>{document.body.removeChild(this._measureEl)}},resizeInput(){if(this.isTextDisplayMode)return;const t=this.$refs.input;if(""!==this.placeholder)return Vt(t,"width",""),void(this._measureEl.innerText="");this._measureEl.innerText=this.value;Vt(t,"width",this._measureEl.offsetWidth+15),this._measureEl.innerText=""},onLabelWrapperKeyDown(t){this.onBackspace(t),this.onDelete(t),this.onSelectLabelByKeyboard(t)},onSelectLabelByKeyboard(t){if(!Se(t)&&!function(t){return De(t)}(t))return;const e=this.selectedOptions,i=Se(t)?-1:1,n=Se(t)?"selectPrevLabel":"selectNextLabel";if(-1===this.lastSelectIndex&&e.length>0)this.selectLabel(e[e.length-1],e.length-1);else if(_e(t)){const t=P(this.lastSelectRangeIndex+i,0,e.length-1);this.selectRange(this.lastSelectIndex,t)}else this[n]()},selectPrevLabel({addSelect:t=!1}={}){const e=this.selectedOptions;for(let i=(-1!==this.lastSelectIndex?this.lastSelectIndex:e.length)-1;i>=0;i--){if(t?this.addSelectedLabel(e[i]):this.selectLabel(e[i],i))return this.selectedLabels=new Set(this.selectedLabels),void(this.lastSelectIndex=this.lastSelectRangeIndex=i)}},selectNextLabel({addSelect:t=!1}={}){const e=this.selectedOptions;for(let i=this.lastSelectIndex+1;i[]},hideSelected:{type:Boolean,default:!1},height:{type:[Number,String],default:"auto"},clearable:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!1},allowInvalidLabel:{type:Boolean,default:!1},displayMode:{type:String,default:"label",validator:t=>["label","text"].includes(t)},displayText:{type:[String,Boolean],default:!1}},data:()=>({defaultOption:Xi}),computed:{selectedOptions(){return this.value.reduce(((t,e)=>{const i=this.getOptionByValue(e);return i?t.push(i):this.allowInvalidLabel&&t.push({id:Yi(),invalid:!0,value:e,label:e}),t}),[])},wrapCls(){return["v-select2-wrapper","v-multiselect-wrapper",{"has-icon":this.hasIcon},{"is-advanced":this.advanced&&!this.icon},{disabled:this.disabled},{focused:this.isFocused},{pressed:this.show},{readonly:!this.allowEdit}]},wrapStyles(){return{width:"string"==typeof this.width?this.width:"".concat(this.width,"px"),height:"string"==typeof this.height?this.height:"".concat(this.height,"px")}},inputAttrs(){return{id:this.id,disabled:this.disabled,readonly:!this.allowEdit,autocomplete:"off",class:{"full-width":0===this.value.length},type:"text",name:this.name,placeholder:this.placeholder,role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":this.value.map((t=>"".concat(this.id,"-selected-").concat(t))).join(" ")}},allowClear(){const t=this.selectedOptions.reduce(((t,e)=>(e.irremovable||e.disabled||t++,t)),0);return this.clearable&&(!!this.display||t>0)},_placeholder(){return 0===this.value.length?this.placeholder:""}},watch:{value(){this.closeOnSelect||(this.visibleOptions=this.getVisibleOptions())}},mounted(){},beforeDestroy(){},methods:{getVisibleOptions(t="all"){if(this.filter)return this.filter(this.display,this.currentOptions,t);let e=Object.create(null),i=0,n=this.currentOptions.filter((n=>{if(n.hide)return!1;if("-"===n)return!0;if(this.hideSelected&&this.value.indexOf(n[this.valueField])>=0)return!1;let s=!1;"group-label"===n.type&&(s=!0),this.display||(s=!0);let o=n[this.displayField],r=this.display;return this.caseSensitive||(o=o.toUpperCase(),r=r.toUpperCase()),o.includes(r)&&(s=!0),g(n.filter)&&(s=n.filter(this.display,n,i,{query:t})),s&&(i++,n.inGroup&&(e[n.inGroup]=!0)),s}));return n=n.filter((t=>"group-label"!==t.type||!!e[t[this.valueField]])),this.filterLegalDividerOption(n)},getOptionByValue(t){return this.currentOptions.find((e=>e[this.valueField]===t))},onEnter(){if(this.$refs.dropdown){const t=this.$refs.dropdown.getActiveIndex();if(-1!==t)this.select(t);else if(this.display&&this.allowInvalidLabel){const t=[...this.value,this.display];this.display="",this.$emit("input",t)}}},select(t=-1){if(t<0||this.visibleOptions.length<=t)return;const e=this.visibleOptions[t];if("-"===e||e.disabled)return;if(this.value.some((t=>t===e[this.valueField])))return void this.toggle(t,e);this.display="";const i=[...this.value,e[this.valueField]];this.$emit("input",i),Vi.methods.select.apply(this,arguments),this.repositionMenu()},removeSelect(t){this.value.splice(t,1),this.$emit("input",this.value)},toggle(t=-1,e){if("-"===e||e.disabled)return;this.display="";const i=this.value.findIndex((t=>e[this.valueField]===t));-1===i?this.select(t):this.removeSelect(i)},isOptionSelected(t){return this.value.includes(t[this.valueField])},clear(){this.display="";const t=this.selectedOptions.reduce(((t,e)=>((e.irremovable||e.disabled)&&t.push(e[this.valueField]),t)),[]);this.$emit("input",t),this.$emit("clear")},onItemRemoved(t,e){this.$emit("input",e.map((t=>t[this.valueField]))),this.$emit("item-removed",t,e)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside.children",value:t.clickOutside,expression:"clickOutside",modifiers:{children:!0}},{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapCls,style:t.wrapStyles,on:{click:t.toggleDropdown}},[t._t("input",(function(){return[i("v-multiple-select-input",{ref:"input",attrs:{"input-tooltip":t.inputTooltip,placeholder:t._placeholder,"input-attrs":t.inputAttrs,"open-dropdown":t.openDropdown,"toggle-dropdown":t.toggleDropdown,"close-dropdown":t.closeDropdown,advanced:t.advanced,"selected-options":t.selectedOptions,"display-field":t.displayField,"value-field":t.valueField,"clear-icon-cls":t.clearIconCls,"allow-clear":t.allowClear,"hide-trigger":t._hideTrigger,"get-option-tooltip":t.getOptionTooltip,"trigger-query-action":t.triggerQueryAction,"display-mode":t.displayMode,"display-text-format":t.mergedDisplayTextFormat,"group-options":t.groupOptions,"display-text":t.displayText},on:{"click-icon":t.onClickIcon,"item-removed":t.onItemRemoved,clear:t.clear,"key-up":function(e){return t.onArrow("up")},"key-down":function(e){return t.onArrow("down")},"key-enter":t.onEnter,"reposition-menu":t.repositionMenu},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon",(function(){return[i("i",{class:t.searchIconCls})]}))]},proxy:!0},{key:"right",fn:function(){return[t._t("input-right")]},proxy:!0},{key:"pre-label",fn:function(){return[t._t("pre-label")]},proxy:!0}],null,!0),model:{value:t.display,callback:function(e){t.display=e},expression:"display"}})]}),{hasIcon:t.hasIcon,searchIconCls:t.searchIconCls}),t._v(" "),t.show&&t.showDropdown?i("v-portal",{attrs:{"mount-to":t.getContainerSelector(),"target-style":t.dropdownStyle}},[i("v-select-dropdown",{ref:"dropdown",attrs:{options:t.visibleOptions,advanced:t.advanced,"dropdown-cls":t.dropdownCls,loading:t.loading,"loading-text":t.loadingText,"max-height":t.maxHeight,"not-found-text":t.notFoundText,value:t.value,"display-field":t.displayField,"value-field":t.valueField,"get-option-tooltip":t.getOptionTooltip,"virtual-scrollbar":t.virtualScrollbar,"virtual-item-height":t.virtualItemHeight,"virtual-buffer-size":t.virtualBufferSize,"show-not-found":t.showNotFound,"default-option":t.defaultOption},on:{"close-dropdown":t.closeDropdown,select:t.select,toggle:t.toggle,"scrollbar-visible":t.onScrollbarVisible},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)],1):t._e()],2)}),[],!1,null,null,null).exports,Qi=R({name:"SelectActionOption",extends:Ni,props:{customActiveBehavior:{type:Boolean,default:!1}},data:()=>({isActive:!1}),computed:{innerCls(){const t=this.customActiveBehavior?this.activated:this.isActive;return["v-select2-dropdown-menu-item action",{unselectable:!1===this.selectable,disabled:this.disabled,activated:t,[this.customClass]:!!this.customClass,"is-selected":this.isSelected}]}},methods:{onHover(){this.isActive=!0},onMouseOut(){this.isActive=!1},onClick(){this.$emit("click")}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.innerCls,on:{mouseenter:t.onHover,mouseleave:t.onMouseOut,click:t.onClick}},[t._t("inner-option",(function(){return[t._v("\n "+t._s(t.display)+"\n ")]}),{option:t.option})],2)}),[],!1,null,null,null).exports,Ji=R({name:"TabFooter",components:{vButton:ui},mixins:[vi],props:{confirmText:{type:String,default:function(){return this._i18n("common","save")}},cancelText:{type:String,default:function(){return this._i18n("common","cancel")}}},data:()=>({prefix:"v-tabs-footer"}),computed:{},mounted(){},methods:{onClickCancel(){this.$emit("cancel")},onClickConfirm(){this.$emit("confirm")}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"syno-id",rawName:"v-syno-id"}],staticClass:"default pull-right"},[i("v-button",{attrs:{"syno-id":t.synoId+"-cancel",type:"footbar",suffix:"cancel"},on:{click:t.onClickCancel}},[t._v(t._s(t.cancelText)+" ")]),t._v(" "),i("v-button",{attrs:{"syno-id":t.synoId+"-apply",type:"footbar",suffix:"main"},on:{click:t.onClickConfirm}},[t._v(t._s(t.confirmText))])],1)}),[],!1,null,null,null).exports,tn={computed:{styleVersionCls(){return"v"+this.styleVersion}},props:{styleVersion:{default:7,type:Number}}},en=i(26),nn=i.n(en);const sn={window:{modal:{},"page-list-app":{},app:{},wizard:{},none:{}},panel:{overview:{},content:{},none:{}},tabs:{overview:{},content:{},none:{}},tree:{basic:{},navigation:{},selector:{},none:{}},"module-list":{panel:{},toolbar:{},none:{}},card:{regular:{},compact:{}},"tab-body":{},"tab-fbar":{},"tab-tbar":{},content:{},"panel-body":{},"panel-fbar":{},form:{},"data-table":{},wizard:{basic:{},none:{}},"wizard-step-container":{},fieldset:{},"fieldset-body":{},others:{},none:{}};class on{constructor({graph:t={},keepOriginalGraph:e=!0}={}){this.cached=new Map,this.graph=e?kt()({"tree.navigation":[{filter:/^tree\.navigation/,styles:{"layout-padding":"8px 0 6px 12px"}}],"tree.selector":[{filter:/^tree\.selector/,styles:{"layout-padding":"7px"}}],"module-list.panel":[{filter:/^module-list\.panel/,styles:{"layout-padding":"16px 12px 6px 12px"}}],"module-list.toolbar":[{filter:/^module-list\.toolbar/,styles:{"layout-padding":"16px 12px 6px 12px"}}],fieldset:[{filter:/^fieldset/,styles:{"layout-padding":"8px 0 0 0"}},{filter:/^fieldset\[0\]/,styles:{"layout-padding":"0 0 0 0"}}],"fieldset-body":[{filter:/^fieldset => fieldset-body/,styles:{"layout-padding":"8px 0 0 0"}},{filter:/^form => fieldset => fieldset-body/,styles:{"layout-padding":"8px 8px 8px 8px"}}],form:[{filter:/^fieldset => fieldset-body => form/,styles:{"layout-padding":"0px 8px 8px 8px"}},{filter:/^tab-body => content => form/,styles:{"layout-padding":"0 8px 0 8px"}},{filter:/^tab-body => form/,styles:{"layout-padding":"8px 8px 0 8px"}},{filter:/^tab-body => content => form\[\d+\]:has\(fieldset\)/,styles:{"layout-padding":"0"}},{filter:/^tab-body => form\[\d+\]:has\(fieldset\)/,styles:{"layout-padding":"8px 0px 0 0px"}},{filter:/^tab-body => panel.content => panel-body => => form\[\d+\]:has\(\)/,styles:{"layout-padding":"0 8px 0 8px"}},{filter:/^tab-body => panel.content => panel-body => content => form\[\d+\]:has\(\)/,styles:{"layout-padding":"0 8px 0 8px"}}],content:[{filter:/^tab-body => content/,styles:{"layout-padding":"8px 0 0 0","layout-height":"100%"}},{filter:/^tab-body => panel.content => panel-body => content/,styles:{"layout-padding":"8px 0 0 0","layout-height":"100%"}},{filter:/^panel.content => panel-body => content/,styles:{"layout-height":"100%"}}],"panel-body":[{filter:/^window\.(modal|app|page-list-app) => tabs\.(content|overview) => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 20px 6px 20px","layout-height":"100%"}},{filter:/^tabs\.(content|overview) => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 0 0 0"}},{filter:/^window\.page-list-app => panel.overview => panel-body/,styles:{"layout-padding":"16px 20px 16px 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => panel.content => panel-body/,styles:{"layout-padding":"16px 16px 6px 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => panel.content => panel-body/,styles:{"layout-padding":"16px 20px 6px 20px","layout-margin":"0 0 0 0"}}],"panel-fbar":[{filter:/^window\.page-list-app => panel.content => panel-fbar/,styles:{"layout-margin":"0 16px"}}],"wizard-step-container":[{filter:/^wizard\.basic => wizard-step-container/,styles:{"layout-padding":"24px 40px 0 40px","layout-height":"100%"}}],"tab-tbar":[{filter:/^window\.(page-list-app|modal|app) => tabs.overview => tab-tbar/,styles:{"layout-padding":"16px 20px 0 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => tabs.content => tab-tbar/,styles:{"layout-padding":"16px 16px 0 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => tabs.content => tab-tbar/,styles:{"layout-padding":"16px 20px 0 20px","layout-margin":"0 0 0 0"}}],"tab-body":[{filter:/^window\.(page-list-app|modal|app) => tabs.overview => tab-body/,styles:{"layout-padding":"4px 20px 6px 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => tabs.content => tab-body/,styles:{"layout-padding":"4px 16px 6px 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => tabs.content => tab-body/,styles:{"layout-padding":"4px 20px 6px 20px","layout-margin":"0 0 0 0"}},{filter:/^tabs.content => tab-body\[\d+\]:has\(panel\.content\)/,styles:{"layout-padding":"4px 0 0 0","layout-margin":"0 0 0 0"},priority:2}],"tab-fbar":[{filter:/^window\.page-list-app => tabs\.overview => tab-fbar/,styles:{"layout-margin":"0 20px"}},{filter:/^window\.page-list-app => tabs\.content => tab-fbar/,styles:{"layout-margin":"0 16px"}}],commons:[{filter:/^window\.(page-list-app|modal|app) => panel\.(overview|content)\[\d+\]:has(.*)$/,styles:{"layout-height":"100%"}},{filter:/^tab-body => panel\.(overview|content)\[\d+\]:has(.*)$/,styles:{"layout-height":"100%"}}]},t):t}addPath(t,e){this.graph[t]=e}getLayoutData(t){let e=[],i={styles:{},priority:-1},n=[],s=t;const o=Array.from(new Set(t.children.map((t=>t.type)))).join(",");for(e.push("".concat(t.type,"[").concat(t.getSiblingIndex(),"]:has(").concat(o,")")),n.push("".concat(t.type,"[").concat(t.getSiblingIndex(),"]:has(").concat(o,")")),t=t.parent;t;)e.unshift(t.type),n.push(e.join(" => ")),t=t.parent;const r=n.join(",");if(s.targetPaths=n,this.cached.has(r))return this.cached.get(r);const a=[...this.graph.commons||[],...this.graph[s.type]||[]];for(const l of n)for(const t of a)t.priority||(t.priority=1),t.filter.test(l)&&t.priority>=i.priority&&(i=kt()(i,t));return this.cached.set(r,i),i}}const rn=Li({},((t,e={})=>{t.prototype.$layoutManager=new on(e)}));i(169);var an=R({name:"Layout",mixins:[q("layout"),U("layout")],props:{tag:{type:String,default:"div"},type:{type:String,default:"none",validator:function(t){return!!nn()(sn,t)}},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)}},undefined,undefined,!1,null,null,null).exports,ln=(i(168),R({name:"Tabs",components:{tabFooter:Ji,vLayout:an},mixins:[V,vi,tn,U("info-board")],model:{prop:"activeTabKey",event:"change"},props:{activeTabKey:{type:String,default:void 0},type:{type:String,default:"line"},size:{type:String,default:void 0},hasFbar:{type:Boolean,default:!0},confirmText:{type:String,default:function(){return this._i18n("common","save")}},cancelText:{type:String,default:function(){return this._i18n("common","cancel")}},layoutType:{type:String,default:"content",validator:t=>["content","overview","none"].includes(t)}},data(){return{prefixCls:"v-tabs",activatedTabKey:this.activeTabKey||0,activeIndex:0,tabs:[],inInfoBoard:!1}},computed:{tabPrefixCls(){return"".concat(this.prefixCls,"-tab")},navPrefixCls(){return"".concat(this.prefixCls,"-nav")},inkBarPrefixCls(){return"".concat(this.prefixCls,"-ink-bar")},contentPrefixCls(){return"".concat(this.prefixCls,"-content")},tabsCls(){return[this.styleVersionCls,this.prefixCls]},navContainerCls(){return["".concat(this.navPrefixCls,"-container")]}},watch:{activeTabKey(t){this.activatedTabKey=t,this.updateActiveIndex(t)},activatedTabKey(t){this.$emit("change",t)},activeIndex(t){this.$emit("index-change",t)}},created(){this.$on("tabs.tabPropChange",(t=>{for(const e of this.tabs)if(e.tabKey===t.tabKey){for(const[i,n]of Object.entries(t.props))this.$set(e,i,n);break}}))},mounted(){this.updateTabs(),this["info-board"]&&(this.inInfoBoard=!0)},updated(){},methods:{getTabHeaderCls(t,e){const i=this.tabPrefixCls;return[i,{[i+"-active"]:e==this.activeIndex,[i+"-disabled"]:t.disabled,[i+"-hidden"]:t.hidden}]},updateTabs(){const t=[];let e=0;const i=this.$refs.body;for(const n of i.$children)"TabPane"==n.$options.name&&(t.push({tab:n.tab,tabKey:n.tabKey||e,disabled:n.disabled,hidden:n.hidden}),this.activatedTabKey===n.tabKey&&(this.activeIndex=e,this.broadcast("TabPane","tabPane.activeTabKey",this.activatedTabKey)),e++);this.$set(this,"tabs",t)},getActiveTab(){for(const t of this.$children)if("TabPane"==t.$options.name&&t.tabKey===this.activatedTabKey)return t},selectTab(t){this.activeIndex=t,this.activatedTabKey=this.tabs[t].tabKey,this.broadcast("TabPane","tabPane.activeTabKey",this.activatedTabKey),this.$emit("tab-click",this.activatedTabKey)},updateActiveIndex(t){for(let e=0;e({prefix:"v-tabs-tabpane",selected:!1}),computed:{wrapCls(){return[this.prefix]}},watch:{hidden(t){this.dispatch("Tabs","tabs.tabPropChange",{tabKey:this.tabKey,props:{hidden:t}})},disabled(t){this.dispatch("Tabs","tabs.tabPropChange",{tabKey:this.tabKey,props:{disabled:t}})},tab(t){this.dispatch("Tabs","tabs.tabPropChange",{tabKey:this.tabKey,props:{tab:t}})}},mounted(){this.$on("tabPane.activeTabKey",(t=>{this.selected=t===this.tabKey})),this.disabled&&this.dispatch("Tabs","tabs.disabledItem",{tabKey:this.tabKey,disabled:this.disabled})},methods:{hasScrollBodySlot(){return B(this,"scroll-body")},hasContentBodySlot(){return B(this,"content-body")}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.selected,expression:"selected"},{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapCls,attrs:{role:"tabpanel","aria-hidden":!t.selected,id:"tab-pane-"+t.tabKey,"aria-labelledby":"tab-"+t.tabKey}},[t._t("default"),t._v(" "),t.hasScrollBodySlot()?i("v-perfect-scrollbar",[i("v-layout",{attrs:{type:"content"}},[t._t("scroll-body")],2)],1):t._e(),t._v(" "),t.hasContentBodySlot()?i("v-layout",{attrs:{type:"content"}},[t._t("content-body")],2):t._e()],2)}),[],!1,null,null,null).exports,un={name:"SlideUpDown",props:{expand:{type:Boolean,default:!1},duration:{type:Number,default:240},tag:{type:String,default:"div"}},render(t){return t(this.tag,{style:this.style,ref:"wrapper",attrs:{"aria-hidden":!this.expand},directives:[{name:"syno-id"}],on:{transitionend:this.onTransitionEnd}},this.$slots.default)},data:()=>({prefix:"v-slide-up-down",style:{},inTransition:!1}),mounted(){this.doLayout(this.expand,!1)},watch:{expand(t,e){this.inTransition?this.$emit("update:expand",e):this.doLayout(t,!0)}},methods:{async setHeight(t,e,i){this.style={height:t},i&&await this.$nextTick(),this.forceRelayout=this.$refs.wrapper.scrollHeight,this.style={height:e,overflow:"hidden","transition-property":"height","transition-timing-function":"ease","transition-duration":this.duration+"ms"},t===e&&this.onTransitionEnd()},onTransitionEnd(){this.inTransition&&(this.inTransition=!1),this.expand?(this.style={},this.$emit("expand")):(this.style={height:"0px",overflow:"hidden"},this.$emit("collapse"))},doLayout(t,e=!0){e&&(this.inTransition=!0),t?(this.$emit("before-expand"),e?this.setHeight("0px","".concat(this.$refs.wrapper.scrollHeight,"px"),!0):this.setHeight("0px","auto",!1)):(this.$emit("before-collapse"),this.setHeight("".concat(this.$refs.wrapper.scrollHeight,"px"),"0px",e))}}};Li({components:[un]});var dn=un,hn=(i(187),R({name:"Fieldset",components:{vSlideUpDown:dn,vLayout:an},props:{prefixCls:{type:String,default:"v-fieldset"},collapsible:{type:Boolean,default:!0},collapseIcon:{type:String,default:"right",validator:t=>["right","left","none"].includes(t)},collapsed:{type:Boolean,default:!1},title:{type:String,default:""},titleHtml:{type:String,default:void 0}},data(){return{isCollapsed:this.collapsed}},computed:{fieldsetCls(){return[this.prefixCls,{collapsible:this.collapsible,collapsed:this.isCollapsed}]}},methods:{onTitleClick(){this.collapsible&&(this.isCollapsed=!this.isCollapsed,this.$emit("collapsestatechange",this.isCollapsed))},onBeforeEnter(t){this.$emit("beforebodyenter",t)},onAfterEnter(t){this.$emit("afterbodyenter",t)},onBeforeLeave(t){this.$emit("beforebodyleave",t)},onAfterLeave(t){this.$emit("afterbodyleave",t)}}},(function(){var t,e=this,i=e.$createElement,n=e._self._c||i;return n("v-layout",{class:e.fieldsetCls,attrs:{role:"group","aria-label":e.title,tabindex:"0",type:"fieldset"}},[n("div",{class:(t={},t[e.prefixCls+"-title-wrapper"]=!0,t[e.prefixCls+"-collapse-icon-left"]="left"===e.collapseIcon,t),on:{click:e.onTitleClick}},[e.collapsible&&"none"!==e.collapseIcon?n("div",{class:e.prefixCls+"-collapse-icon"}):e._e(),e._v(" "),e._t("title",(function(){return[e.titleHtml?n("div",{class:e.prefixCls+"-title",domProps:{innerHTML:e._s(e.titleHtml)}}):n("div",{class:e.prefixCls+"-title"},[e._v(e._s(e.title))])]}))],2),e._v(" "),n("v-slide-up-down",{attrs:{"syno-id":e.prefixCls+"-slide-up-down",expand:!e.isCollapsed}},[n("v-layout",{ref:"body",class:e.prefixCls+"-body",attrs:{type:"fieldset-body"}},[e._t("default")],2)],1)],1)}),[],!1,null,null,null).exports),pn=(i(193),i(14)),fn=i.n(pn);i(225);Li({components:[ui,di,ze,hi]});var mn=ui,gn=(i(183),R({name:"Checkbox",mixins:[V,Mi,ai],props:{stopPropagation:{type:Boolean,default:!1},value:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default(){return"syno-".concat(this.uuid)}},ariaLabelledby:{type:String,default(){return this.id}},name:{type:String,default:void 0}},data:()=>({prefixCls:"v-checkbox",isFocused:!1}),computed:{wrapperCls(){return["".concat(this.prefixCls,"-wrapper"),{"group-item":this.parentIsGroup,checked:!this.indeterminate&&!0===this.value,indeterminate:this.indeterminate,disabled:this.disabled,focused:this.isFocused}]}},methods:{onChange(t){const e=!!this.indeterminate||!this.value;this.$emit("input",e),this.$emit("change",e,t)},onFocus(){this.isFocused=!0,this.$emit("focus",this)},onBlur(){this.isFocused=!1,this.$emit("blur",this)},onIconClick(t){this.stopPropagation&&t.stopPropagation(),this.disabled||this.onChange(t)}}},(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},[i("div",{class:t.prefixCls+"-icon",on:{click:t.onIconClick}}),t._v(" "),i("input",{ref:"input",class:t.prefixCls+"-input",attrs:{type:"checkbox",role:"checkbox","aria-checked":t.value?"true":"false","aria-labelledby":t.ariaLabelledby,disabled:t.disabled,id:t.id,name:t.name},domProps:{value:t.value,checked:t.value},on:{focus:t.onFocus,blur:t.onBlur,change:t.onChange}}),t._v(" "),i("label",{class:t.prefixCls+"-label",attrs:{for:t.id}},[t._t("default")],2)])}),[],!1,null,null,null).exports);Li({components:[gn]});var vn=gn;function yn(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function bn(t){yn(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function wn(t){yn(1,arguments);var e=bn(t),i=e.getFullYear(),n=e.getMonth(),s=new Date(0);return s.setFullYear(i,n+1,0),s.setHours(0,0,0,0),s.getDate()}function xn(t){var e=t.getDate();if(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t.getDate()!=e){for(var i=1,n=Cn(t,"h",i);n.getDate()!=e;n=Cn(t,"h",++i));t.setDate(e),t.setHours(n.getHours())}return t}function _n(t){return new Date(t.getTime())}function Sn(t){return xn(_n(t))}function Cn(t,e,i){let n=_n(t);if(!e||0===i)return n;switch(e.toLowerCase()){case"d":n.setDate(t.getDate()+i);break;case"mo":let e=t.getDate();e>28&&(e=Math.min(e,function(t){return new Date(t.getFullYear(),t.getMonth(),wn(t))}(Cn(function(t){return new Date(t.getFullYear(),t.getMonth(),1)}(t),"mo",i)).getDate())),n.setDate(e),n.setMonth(t.getMonth()+i);break;case"y":n.setFullYear(t.getFullYear()+i);break;case"h":n.setHours(t.getHours()+i)}return n}function kn(t,e,i){return!(e&&t.getTime()i.getTime())}var Tn=R({name:"DatePickerMenu",components:{vButton:mn,vSingleSelect:Ui,vCheckbox:vn,vTrapFocus:H,vMenu:$e,vMenuItem:pi},directives:{clickoutside:Ye},mixins:[vi,U("date-picker")],props:{value:{type:Date,default:void 0},isOpen:{type:Boolean,default:!1},timeChecked:{type:Boolean,default:!1},enableHour24:{type:Boolean,default:!1},timeOptional:{type:Boolean,default:!0},todayText:{type:String,default:void 0},resetText:{type:String,default:void 0},addTimeText:{type:String,default:void 0},clearText:{type:String,default:void 0},allowBlank:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},maxTime:{type:Date,default:void 0},minTime:{type:Date,default:void 0},yearsRange:{type:Array,default:void 0,validator:t=>!t||2===t.length&&(!!t.every((t=>Number.isInteger(t)))&&!(t[0]>t[1]))},startWeekDay:{type:Number,default:0},showResetButton:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showTodayButton:{type:Boolean,default:!0},dateDots:{type:Array,default:()=>[]}},data(){return{showYear:!1,showMonth:!1,originalValue:this.value instanceof Date?_n(this.value):void 0,activeDate:this.value instanceof Date?_n(this.value):new Date}},computed:{prefix:()=>"v-dt",ariaLabelledby(){const t=Sn(this.activeDate);return"date-".concat(t.getTime())},ariaLabelLastMonth(){const t=this.getAriaLabelMonthBtnFromOffset(-1);return"".concat(this.$i18n("common","last_month")," ").concat(t)},ariaLabelNextMonth(){const t=this.getAriaLabelMonthBtnFromOffset(1);return"".concat(this.$i18n("common","next_month")," ").concat(t)},_minTime(){const t=[],e=new Date(-1e4,0,0);if(t.push(e),this.yearsRange){const e=new Date(this.yearsRange[0],0,1);t.push(e)}if(this.minTime){const e=Sn(this.minTime);t.push(e)}return new Date(Math.max(...t))},_maxTime(){const t=[],e=new Date(1e4,0,0);if(t.push(e),this.yearsRange){const e=new Date(this.yearsRange[1]+1,0,0);t.push(e)}if(this.maxTime){let e=Sn(this.maxTime);e=Cn(e,"d",1),e.setMilliseconds(-1),t.push(e)}return new Date(Math.min(...t))},isTodayInRange(){return kn(this.today,this._minTime,this._maxTime)},givenYears(){return this.yearsRange?new Array(this.yearsRange[1]-this.yearsRange[0]+1).fill(0).map(((t,e)=>e)).map((t=>this.yearsRange[0]+t)).map((t=>({year:t,text:t}))):null},defaultYears(){const t=this.activeDate.getFullYear();return new Array(11).fill(0).map(((t,e)=>e-5)).map((e=>t+e)).map((t=>({year:t,text:t})))},years(){return this.givenYears||this.defaultYears},months(){return[{text:this._i18n("extlang","jan"),month:1},{text:this._i18n("extlang","feb"),month:2},{text:this._i18n("extlang","mar"),month:3},{text:this._i18n("extlang","apr"),month:4},{text:this._i18n("extlang","may"),month:5},{text:this._i18n("extlang","jun"),month:6},{text:this._i18n("extlang","jul"),month:7},{text:this._i18n("extlang","aug"),month:8},{text:this._i18n("extlang","sep"),month:9},{text:this._i18n("extlang","oct"),month:10},{text:this._i18n("extlang","nov"),month:11},{text:this._i18n("extlang","dec"),month:12}]},week(){const t=this._i18n("uicommon","schedule_abbre_sun").substr(0,1),e=this._i18n("uicommon","schedule_abbre_mon").substr(0,1),i=this._i18n("uicommon","schedule_abbre_tue").substr(0,1),n=this._i18n("uicommon","schedule_abbre_wed").substr(0,1),s=this._i18n("uicommon","schedule_abbre_thu").substr(0,1),o=this._i18n("uicommon","schedule_abbre_fri").substr(0,1),r=this._i18n("uicommon","schedule_abbre_sat").substr(0,1);return 6===this.startWeekDay?[r,t,e,i,n,s,o]:1===this.startWeekDay?[e,i,n,s,o,r,t]:[t,e,i,n,s,o,r]},dates(){const t=[];let e=xn(new Date),i=Sn(this.value||this.activeDate),n=Sn(this.activeDate),s=_n(n);s.setDate(1);let o=s.getDay(),r=_n(n);r.setDate(wn(n));let a=(o-this.startWeekDay+7)%7,l=864e5,c=new Date(s.getTime()-a*l).getTime(),u=0;for(let d=0;d<6;d++)for(let o=0;o<7;o++){let o=new Date(c+u*l),a="",d=o.getTime()===n.getTime(),h=kn(o,this._minTime,this._maxTime),p=o.getTime()===i.getTime(),f=o.getTime()===e.getTime(),m=o.getTime()>=s.getTime()&&o.getTime()<=r.getTime();a+=d?"active ":"",a+=h?"enabled ":"disabled ",a+=p?"selected ":"",a+=f?"today ":"",a+=m?"":"other-month";let g={time:o.getTime(),text:o.getDate(),status:a};t.push(g),u++}return t},today(){return this.getDateTimeByOnlyDate(xn(new Date))},hourOptions(){return this.enableHour24?new Array(24).fill(0).map(((t,e)=>({label:"".concat(e),value:e}))):new Array(12).fill(0).map(((t,e)=>({label:"".concat(e+1),value:(e+1)%12})))},minuteOptions:()=>new Array(60).fill(0).map(((t,e)=>({label:"".concat(e).padStart(2,"0"),value:e}))),ampmOptions:()=>[{label:"AM",value:"am"},{label:"PM",value:"pm"}],maxHour24or12(){return this.enableHour24?24:12},activeHour:{get(){return this.value?this.value.getHours()%this.maxHour24or12:0},set(t){const e=Sn(this.activeDate),i=this.enableHour24||"am"===this.activeAmPm?t:t+12;e.setHours(i),this._emitDate(e)}},activeMinute:{get(){return this.value?this.value.getMinutes():0},set(t){const e=_n(this.activeDate);e.setMinutes(t),this._emitDate(e)}},activeAmPm:{get(){return this.value?this.value.getHours()<12?"am":"pm":"am"},set(t){if(this.enableHour24)return;const e=_n(this.activeDate),i="am"===t?this.activeHour:this.activeHour+12;e.setHours(i),this._emitDate(e)}},yearActiveIndex(){return this.years.findIndex((t=>this.activeDate.getFullYear()===t.year))},monthActiveIndex(){return this.activeDate.getMonth()},hasResetButton(){return!this.allowBlank&&this.showTime&&this.showResetButton},hasClearButton(){return this.allowBlank&&this.showClearButton},dotsSet(){return new Set(this.dateDots.map((t=>xn(t).getTime())))}},watch:{isOpen:{handler(t){!0===t?this.mountToContainer():this.closeDropdowns()},immediate:!0},originalValue:{immediate:!0,handler(t){t&&(t.setMilliseconds(0),t.setSeconds(0),this.showTime||xn(t))}},value:{immediate:!0,handler(t){const e=new Date,i=t||e;this.activeDate=this.showTime?i:Sn(i)}}},methods:{_emitDate(t){let e=t;e&&(this.maxTime&&(e=ethis.minTime?e:this.minTime),this.showTime||(e=Sn(e))),this.$emit("input",e),this.$emit("change",e)},focusDatePickerTable(){this.$refs.datePicker.focus()},getExtraElements(){return[this.$refs.hourSelect,this.$refs.minuteSelect,this.$refs.ampmSelect,this.$refs.yearMenu,this.$refs.monthMenu]},umountFromContainer(){const t=this.getContainerEl();t&&t.removeChild(this.$el)},closeDropdowns(){this.showYear=!1,this.showMonth=!1},tryClose(){this.showTime||this.close()},close(){this.$emit("update:isOpen",!1)},getAriaLabelMonthBtnFromOffset(t=0){const e=Cn(this.activeDate,"mo",t),i=this.months[e.getMonth()].text,n=e.getFullYear();return"".concat(n," ").concat(i)},getLongDateString(t={}){const e=this.activeDate.getFullYear(),i=this.months[this.activeDate.getMonth()].text,n=t.text;return"".concat(e," ").concat(i," ").concat(n)},getDateSynoId(t){let e=this.dates[t].time;return"".concat(this.synoId,"-").concat(e)},getDateTimeByOnlyDate(t=new Date){if(!this.showTime)return t;const e=this.enableHour24||"am"===this.activeAmPm?this.activeHour:this.activeHour+12;return t.setHours(e),t.setMinutes(this.activeMinute),t.setSeconds(0),t.setMilliseconds(0),t},onYearSelect(t){this.selectYear(t)},onMonthSelect(t){this.selectMonth(t)},toggleYearPicker(t){t.target===this.$refs.yearBtn&&(t.stopPropagation(),this.showYear=!this.showYear)},toggleMonthPicker(t){t.target===this.$refs.monthBtn&&(t.stopPropagation(),this.showMonth=!this.showMonth)},async onPrevMonthClick(){this.changeMonth(-1),await this.$nextTick(),this.$refs.prevMonthBtn.focus()},async onNextMonthClick(){this.changeMonth(1),await this.$nextTick(),this.$refs.nextMonthBtn.focus()},selectYear(t=0){if(isNaN(t))return;let e=_n(this.activeDate);e.setFullYear(t),this.activeDate=e},selectMonth(t=0){if(isNaN(t))return;let e=_n(this.activeDate);e.setMonth(t-1),this.activeDate=e},selectDateByItem(t={}){if(this.closeDropdowns(),!kn(new Date(t.time),this._minTime,this._maxTime)||this.value&&_n(this.value).getTime()===t.time)return;const e=this.getDateTimeByOnlyDate(new Date(t.time));this._emitDate(e),this.$emit("select-date",e),this.tryClose()},selectActiveDateAndClose(){this._emitDate(this.activeDate),this.tryClose()},selectToday(){this.isTodayInRange&&this._emitDate(this.getDateTimeByOnlyDate(xn(new Date)))},changeDate(t=0){this.activeDate=Cn(this.activeDate,"d",t)},changeMonth(t=0){this.activeDate=Cn(this.activeDate,"mo",t)},changeYear(t=0){const e=_n(this.activeDate);e.setFullYear(this.activeDate.getFullYear()+t),this.activeDate=e},resetValue(){let t=this.originalValue?_n(this.originalValue):void 0;this._emitDate(t)},clearValue(){this._emitDate(void 0),this.close()},hasDot(t){return this.dotsSet.has(t)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-trap-focus",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:[t.prefix+"-dropdown","v-select-dropdown"],on:{mousedown:function(t){return t.preventDefault()}}},[i("div",{class:t.prefix+"-date-panel"},[i("div",{class:t.prefix+"-header"},[i("div",{ref:"yearBtn",class:[t.prefix+"-year-picker",{expanded:t.showYear}],attrs:{role:"button",tabindex:"0","aria-haspopup":"listbox"},on:{click:function(e){return t.toggleYearPicker(e)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.toggleYearPicker(e))}}},[t._v("\n "+t._s(t.activeDate.getFullYear())+"\n "),t._v(" "),i("v-menu",{key:t.activeDate.getFullYear(),ref:"yearMenu",class:[t.prefix+"-inner-panel","year-panel"],attrs:{"syno-id":t.synoId+"-year-menu","use-scrollbar":"","close-on-select":"",height:212,width:"auto","auto-focus":t.yearActiveIndex,position:[-2,26],"is-open":t.showYear},on:{"update:isOpen":function(e){t.showYear=e},"update:is-open":function(e){t.showYear=e},"item-select":t.onYearSelect,"menu-close":function(e){t.$refs.yearBtn&&t.$refs.yearBtn.focus()}}},t._l(t.years,(function(e){return i("v-menu-item",{key:e.year,attrs:{title:e.text.toString(),"syno-id":e.year.toString()},on:{click:function(i){return t.onYearSelect(e.year)}}})})),1)],1),t._v(" "),i("div",{ref:"monthBtn",class:[t.prefix+"-month-picker",{expanded:t.showMonth}],attrs:{role:"button",tabindex:"0","aria-haspopup":"listbox"},on:{click:function(e){return t.toggleMonthPicker(e)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.toggleMonthPicker(e))}}},[t._v("\n "+t._s(t.months[t.activeDate.getMonth()].text)+"\n "),i("v-menu",{ref:"monthMenu",class:[t.prefix+"-inner-panel","month-panel"],attrs:{"syno-id":t.synoId+"-month-menu","use-scrollbar":"","close-on-select":"",height:212,width:"auto","auto-focus":t.monthActiveIndex,position:[-2,26],"is-open":t.showMonth},on:{"update:isOpen":function(e){t.showMonth=e},"update:is-open":function(e){t.showMonth=e},"menu-close":function(e){t.$refs.monthBtn&&t.$refs.monthBtn.focus()}}},t._l(t.months,(function(e){return i("v-menu-item",{key:e.month,attrs:{title:e.text.toString(),"syno-id":e.month.toString()},on:{click:function(i){return t.onMonthSelect(e.month)}}})})),1)],1),t._v(" "),i("div",{key:"prev-month-"+t.activeDate.getMonth(),ref:"prevMonthBtn",class:t.prefix+"-prev-month-btn",attrs:{role:"button",tabindex:"0","aria-label":t.ariaLabelLastMonth},on:{click:t.onPrevMonthClick,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onPrevMonthClick.apply(null,arguments))}}}),t._v(" "),i("div",{key:"next-month-"+t.activeDate.getMonth(),ref:"nextMonthBtn",class:t.prefix+"-next-month-btn",attrs:{role:"button",tabindex:"0","aria-label":t.ariaLabelNextMonth},on:{click:t.onNextMonthClick,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.onNextMonthClick.apply(null,arguments))}}})]),t._v(" "),i("div",{class:t.prefix+"-body"},[i("table",{ref:"datePicker",class:t.prefix+"-table",attrs:{cellspacing:"0",role:"grid",tabindex:"0","aria-labelledby":t.ariaLabelledby},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||"button"in e&&0!==e.button?null:(e.preventDefault(),t.changeDate(-1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||"button"in e&&2!==e.button?null:(e.preventDefault(),t.changeDate(1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.changeDate(-7))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.changeDate(7))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.ctrlKey?"button"in e&&0!==e.button?null:(e.preventDefault(),t.changeMonth(e,-1)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])?null:e.ctrlKey?"button"in e&&2!==e.button?null:(e.preventDefault(),t.changeMonth(e,1)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:e.ctrlKey?(e.preventDefault(),e.stopPropagation(),t.changeYear(-1)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:e.ctrlKey?(e.preventDefault(),e.stopPropagation(),t.changeYear(1)):null}],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),e.stopPropagation(),t.selectActiveDateAndClose())}}},[i("thead",[i("tr",t._l(t.week,(function(e,n){return i("th",{key:n,class:t.prefix+"-column-header",attrs:{"syno-id":t.synoId+"-"+e}},[i("span",{class:t.prefix+"-column-header-inner"},[t._v(t._s(e))])])})),0)]),t._v(" "),i("tbody",{class:t.prefix+"-tbody"},t._l(6,(function(e){return i("tr",{key:e},[t.dates.length>0?t._l(7,(function(n){return i("td",{key:"date-"+t.dates[7*(e-1)+n-1].time,class:t.prefix+"-cell",attrs:{title:t.dates[7*(e-1)+n-1].title},on:{click:function(i){t.selectDateByItem(t.dates[7*(e-1)+n-1])}}},[t._t("date-"+e+"-"+n,(function(){return[i("div",{class:[t.prefix+"-date",t.dates[7*(e-1)+n-1].status],attrs:{id:"date-"+t.dates[7*(e-1)+n-1].time,"syno-id":t.getDateSynoId(7*(e-1)+n-1),"aria-label":t.getLongDateString(t.dates[7*(e-1)+n-1])}},[t.hasDot(t.dates[7*(e-1)+n-1].time)?i("i",{staticClass:"dot"}):t._e(),t._v("\n "+t._s(t.dates[7*(e-1)+n-1].text)+"\n ")])]}))],2)})):t._e()],2)})),0)])])]),t._v(" "),i("div",{class:t.prefix+"-footer"},[i("div",{staticClass:"button-wrapper"},[i("div",{staticClass:"left"},[t.showTodayButton?i("v-button",{attrs:{"syno-id":t.synoId+"-today-btn","active-form-item":!1,disabled:!t.isTodayInRange},on:{click:function(e){return e.stopPropagation(),t.selectToday(e)}}},[t._v(t._s(t.todayText||t._i18n("extlang","todayText")))]):t._e()],1),t._v(" "),i("div",{staticClass:"right"},[t.hasResetButton?i("v-button",{attrs:{"syno-id":t.synoId+"-reset-btn","active-form-item":!1},on:{click:function(e){return e.stopPropagation(),t.resetValue(e)}}},[t._v(t._s(t.resetText||t._i18n("common","reset")))]):t.hasClearButton?i("v-button",{attrs:{"syno-id":t.synoId+"-clear-btn","active-form-item":!1},on:{click:function(e){return e.stopPropagation(),t.clearValue(e)}}},[t._v(t._s(t.clearText||t._i18n("common","clean")))]):t._e()],1)]),t._v(" "),t.showTime?i("div",{class:t.prefix+"-time-wrapper"},[t.timeOptional?i("v-checkbox",{attrs:{"active-form-item":!1,"syno-id":t.synoId+"-time-checkbox",value:t.timeChecked},on:{input:function(e){return t.$emit("update:timeChecked",e)}}},[t._v(t._s(t.addTimeText||t._i18n("uicommon","add_time")))]):t._e(),t._v(" "),i("div",{class:t.prefix+"-select-wrapper"},[i("v-single-select",{ref:"hourSelect",attrs:{"syno-id":t.synoId+"-hour-select","active-form-item":!1,name:"hour",editable:"",options:t.hourOptions,"force-selection":"",disabled:t.timeOptional&&!t.timeChecked,"custom-dropdown-cls":t.prefix+"-inner-select-menu"},model:{value:t.activeHour,callback:function(e){t.activeHour=e},expression:"activeHour"}}),t._v(" "),i("div",{staticClass:"separator"},[t._v(":")]),t._v(" "),i("v-single-select",{ref:"minuteSelect",attrs:{"syno-id":t.synoId+"-min-select","active-form-item":!1,name:"minute",editable:"","force-selection":"",options:t.minuteOptions,disabled:t.timeOptional&&!t.timeChecked,"custom-dropdown-cls":t.prefix+"-inner-select-menu"},model:{value:t.activeMinute,callback:function(e){t.activeMinute=e},expression:"activeMinute"}}),t._v(" "),t.enableHour24?t._e():[i("div",{staticClass:"separator"}),t._v(" "),i("v-single-select",{ref:"ampmSelect",attrs:{"syno-id":t.synoId+"-ampm-select",name:"ampm",readonly:"true",options:t.ampmOptions,disabled:t.timeOptional&&!t.timeChecked,"custom-dropdown-cls":t.prefix+"-inner-select-menu","active-form-item":!1},model:{value:t.activeAmPm,callback:function(e){t.activeAmPm=e},expression:"activeAmPm"}})]],2)],1):t._e()])])}),[],!1,null,null,null).exports;const Dn=["m/d/Y","d/m/Y","Y-m-d","d.m.Y","d-m-Y"];function In(t){return t=(t=(t=(t=(t=(t=(t=t.replace(/m/g,"MM")).replace(/d/g,"dd")).replace(/Y/g,"yyyy")).replace(/h/g,"hh")).replace(/H/g,"kk")).replace(/i/g,"mm")).replace(/a/g,"aaa")}var $n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function On(t){return function(e){var i=e||{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Mn={date:On({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:On({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:On({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},En={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Bn(t){return function(e,i){var n,s=i||{};if("formatting"===(s.context?String(s.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=s.width?String(s.width):o;n=t.formattingValues[r]||t.formattingValues[o]}else{var a=t.defaultWidth,l=s.width?String(s.width):t.defaultWidth;n=t.values[l]||t.values[a]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function An(t){return function(e,i){var n=String(e),s=i||{},o=s.width,r=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],a=n.match(r);if(!a)return null;var l,c=a[0],u=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(u)?function(t,e){for(var i=0;i0?"in "+n:n+" ago":n},formatLong:Mn,formatRelative:function(t,e,i,n){return En[t]},localize:{ordinalNumber:function(t,e){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Bn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Bn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Bn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Bn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Bn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Pn={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var i=String(t),n=e||{},s=i.match(Pn.matchPattern);if(!s)return null;var o=s[0],r=i.match(Pn.parsePattern);if(!r)return null;var a=Pn.valueCallback?Pn.valueCallback(r[0]):r[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:i.slice(o.length)}}),era:An({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:An({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:An({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:An({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:An({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fn(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function zn(t,e){yn(2,arguments);var i=bn(t).getTime(),n=Fn(e);return new Date(i+n)}function Ln(t,e){yn(2,arguments);var i=Fn(e);return zn(t,-i)}function Rn(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e=e||{})e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Hn(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function jn(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var Wn={p:jn,P:function(t,e){var i,n=t.match(/(P+)(p+)?/),s=n[1],o=n[2];if(!o)return Hn(t,e);switch(s){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",Hn(s,e)).replace("{{time}}",jn(o,e))}};function Vn(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var qn=["D","DD"],Un=["YY","YYYY"];function Yn(t){return-1!==qn.indexOf(t)}function Kn(t){return-1!==Un.indexOf(t)}function Gn(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}function Xn(t,e){yn(1,arguments);var i=e||{},n=i.locale,s=n&&n.options&&n.options.weekStartsOn,o=null==s?0:Fn(s),r=null==i.weekStartsOn?o:Fn(i.weekStartsOn);if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=bn(t),l=a.getUTCDay(),c=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(n+1,0,l),c.setUTCHours(0,0,0,0);var u=Xn(c,e),d=new Date(0);d.setUTCFullYear(n,0,l),d.setUTCHours(0,0,0,0);var h=Xn(d,e);return i.getTime()>=u.getTime()?n+1:i.getTime()>=h.getTime()?n:n-1}function Qn(t,e,i){yn(2,arguments);var n=i||{},s=n.locale,o=s&&s.options&&s.options.weekStartsOn,r=null==o?0:Fn(o),a=null==n.weekStartsOn?r:Fn(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=bn(t),c=Fn(e),u=l.getUTCDay(),d=c%7,h=(d+7)%7,p=(h=s.getTime()?i+1:e.getTime()>=r.getTime()?i:i-1}function es(t){yn(1,arguments);var e=ts(t),i=new Date(0);i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0);var n=Jn(i);return n}var is=6048e5;function ns(t){yn(1,arguments);var e=bn(t),i=Jn(e).getTime()-es(e).getTime();return Math.round(i/is)+1}function ss(t,e){yn(1,arguments);var i=e||{},n=i.locale,s=n&&n.options&&n.options.firstWeekContainsDate,o=null==s?1:Fn(s),r=null==i.firstWeekContainsDate?o:Fn(i.firstWeekContainsDate),a=Zn(t,e),l=new Date(0);l.setUTCFullYear(a,0,r),l.setUTCHours(0,0,0,0);var c=Xn(l,e);return c}var os=6048e5;function rs(t,e){yn(1,arguments);var i=bn(t),n=Xn(i,e).getTime()-ss(i,e).getTime();return Math.round(n/os)+1}var as=/^(1[0-2]|0?\d)/,ls=/^(3[0-1]|[0-2]?\d)/,cs=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,us=/^(5[0-3]|[0-4]?\d)/,ds=/^(2[0-3]|[0-1]?\d)/,hs=/^(2[0-4]|[0-1]?\d)/,ps=/^(1[0-1]|0?\d)/,fs=/^(1[0-2]|0?\d)/,ms=/^[0-5]?\d/,gs=/^[0-5]?\d/,vs=/^\d/,ys=/^\d{1,2}/,bs=/^\d{1,3}/,ws=/^\d{1,4}/,xs=/^-?\d+/,_s=/^-?\d/,Ss=/^-?\d{1,2}/,Cs=/^-?\d{1,3}/,ks=/^-?\d{1,4}/,Ts=/^([+-])(\d{2})(\d{2})?|Z/,Ds=/^([+-])(\d{2})(\d{2})|Z/,Is=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,$s=/^([+-])(\d{2}):(\d{2})|Z/,Os=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Ms(t,e,i){var n=e.match(t);if(!n)return null;var s=parseInt(n[0],10);return{value:i?i(s):s,rest:e.slice(n[0].length)}}function Es(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function Bs(t,e){return Ms(xs,t,e)}function As(t,e,i){switch(t){case 1:return Ms(vs,e,i);case 2:return Ms(ys,e,i);case 3:return Ms(bs,e,i);case 4:return Ms(ws,e,i);default:return Ms(new RegExp("^\\d{1,"+t+"}"),e,i)}}function Ps(t,e,i){switch(t){case 1:return Ms(_s,e,i);case 2:return Ms(Ss,e,i);case 3:return Ms(Cs,e,i);case 4:return Ms(ks,e,i);default:return Ms(new RegExp("^-?\\d{1,"+t+"}"),e,i)}}function Ns(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Fs(t,e){var i,n=e>0,s=n?e:1-e;if(s<=50)i=t||100;else{var o=s+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}var zs=[31,28,31,30,31,30,31,31,30,31,30,31],Ls=[31,29,31,30,31,30,31,31,30,31,30,31];function Rs(t){return t%400==0||t%4==0&&t%100!=0}var Hs={G:{priority:140,parse:function(t,e,i,n){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}},set:function(t,e,i,n){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,i,n){var s=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return As(4,t,s);case"yo":return i.ordinalNumber(t,{unit:"year",valueCallback:s});default:return As(e.length,t,s)}},validate:function(t,e,i){return e.isTwoDigitYear||e.year>0},set:function(t,e,i,n){var s=t.getUTCFullYear();if(i.isTwoDigitYear){var o=Fs(i.year,s);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var r="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,i,n){var s=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return As(4,t,s);case"Yo":return i.ordinalNumber(t,{unit:"year",valueCallback:s});default:return As(e.length,t,s)}},validate:function(t,e,i){return e.isTwoDigitYear||e.year>0},set:function(t,e,i,n){var s=Zn(t,n);if(i.isTwoDigitYear){var o=Fs(i.year,s);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Xn(t,n)}var r="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(r,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Xn(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,i,n){return Ps("R"===e?4:e.length,t)},set:function(t,e,i,n){var s=new Date(0);return s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0),Jn(s)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,i,n){return Ps("u"===e?4:e.length,t)},set:function(t,e,i,n){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,i,n){switch(e){case"Q":case"QQ":return As(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=1&&e<=4},set:function(t,e,i,n){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,i,n){switch(e){case"q":case"qq":return As(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=1&&e<=4},set:function(t,e,i,n){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,i,n){var s=function(t){return t-1};switch(e){case"M":return Ms(as,t,s);case"MM":return As(2,t,s);case"Mo":return i.ordinalNumber(t,{unit:"month",valueCallback:s});case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i,n){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,i,n){var s=function(t){return t-1};switch(e){case"L":return Ms(as,t,s);case"LL":return As(2,t,s);case"Lo":return i.ordinalNumber(t,{unit:"month",valueCallback:s});case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i,n){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,i,n){switch(e){case"w":return Ms(us,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=53},set:function(t,e,i,n){return Xn(function(t,e,i){yn(2,arguments);var n=bn(t),s=Fn(e),o=rs(n,i)-s;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,i,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,i,n){switch(e){case"I":return Ms(us,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=53},set:function(t,e,i,n){return Jn(function(t,e){yn(2,arguments);var i=bn(t),n=Fn(e),s=ns(i)-n;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,i,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,i,n){switch(e){case"d":return Ms(ls,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return As(e.length,t)}},validate:function(t,e,i){var n=Rs(t.getUTCFullYear()),s=t.getUTCMonth();return n?e>=1&&e<=Ls[s]:e>=1&&e<=zs[s]},set:function(t,e,i,n){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,i,n){switch(e){case"D":case"DD":return Ms(cs,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return As(e.length,t)}},validate:function(t,e,i){return Rs(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,i,n){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,i,n){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i,n){return(t=Qn(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,i,n){var s=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return As(e.length,t,s);case"eo":return i.ordinalNumber(t,{unit:"day",valueCallback:s});case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i,n){return(t=Qn(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,i,n){var s=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return As(e.length,t,s);case"co":return i.ordinalNumber(t,{unit:"day",valueCallback:s});case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i,n){return(t=Qn(t,i,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,i,n){var s=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return As(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return i.day(t,{width:"abbreviated",context:"formatting",valueCallback:s})||i.day(t,{width:"short",context:"formatting",valueCallback:s})||i.day(t,{width:"narrow",context:"formatting",valueCallback:s});case"iiiii":return i.day(t,{width:"narrow",context:"formatting",valueCallback:s});case"iiiiii":return i.day(t,{width:"short",context:"formatting",valueCallback:s})||i.day(t,{width:"narrow",context:"formatting",valueCallback:s});case"iiii":default:return i.day(t,{width:"wide",context:"formatting",valueCallback:s})||i.day(t,{width:"abbreviated",context:"formatting",valueCallback:s})||i.day(t,{width:"short",context:"formatting",valueCallback:s})||i.day(t,{width:"narrow",context:"formatting",valueCallback:s})}},validate:function(t,e,i){return e>=1&&e<=7},set:function(t,e,i,n){return(t=function(t,e){yn(2,arguments);var i=Fn(e);i%7==0&&(i-=7);var n=1,s=bn(t),o=s.getUTCDay(),r=((i%7+7)%7=1&&e<=12},set:function(t,e,i,n){var s=t.getUTCHours()>=12;return s&&i<12?t.setUTCHours(i+12,0,0,0):s||12!==i?t.setUTCHours(i,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,i,n){switch(e){case"H":return Ms(ds,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=23},set:function(t,e,i,n){return t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,i,n){switch(e){case"K":return Ms(ps,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i,n){return t.getUTCHours()>=12&&i<12?t.setUTCHours(i+12,0,0,0):t.setUTCHours(i,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,i,n){switch(e){case"k":return Ms(hs,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=24},set:function(t,e,i,n){var s=i<=24?i%24:i;return t.setUTCHours(s,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,i,n){switch(e){case"m":return Ms(ms,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=59},set:function(t,e,i,n){return t.setUTCMinutes(i,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,i,n){switch(e){case"s":return Ms(gs,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return As(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=59},set:function(t,e,i,n){return t.setUTCSeconds(i,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,i,n){return As(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,i,n){return t.setUTCMilliseconds(i),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,i,n){switch(e){case"X":return Es(Ts,t);case"XX":return Es(Ds,t);case"XXXX":return Es(Is,t);case"XXXXX":return Es(Os,t);case"XXX":default:return Es($s,t)}},set:function(t,e,i,n){return e.timestampIsSet?t:new Date(t.getTime()-i)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,i,n){switch(e){case"x":return Es(Ts,t);case"xx":return Es(Ds,t);case"xxxx":return Es(Is,t);case"xxxxx":return Es(Os,t);case"xxx":default:return Es($s,t)}},set:function(t,e,i,n){return e.timestampIsSet?t:new Date(t.getTime()-i)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,i,n){return Bs(t)},set:function(t,e,i,n){return[new Date(1e3*i),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,i,n){return Bs(t)},set:function(t,e,i,n){return[new Date(i),{timestampIsSet:!0}]},incompatibleTokens:"*"}},js=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ws=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vs=/^'([^]*?)'?$/,qs=/''/g,Us=/\S/,Ys=/[a-zA-Z]/;function Ks(t,e,i,n){yn(3,arguments);var s=String(t),o=String(e),r=n||{},a=r.locale||Nn;if(!a.match)throw new RangeError("locale must contain match property");var l=a.options&&a.options.firstWeekContainsDate,c=null==l?1:Fn(l),u=null==r.firstWeekContainsDate?c:Fn(r.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=a.options&&a.options.weekStartsOn,h=null==d?0:Fn(d),p=null==r.weekStartsOn?h:Fn(r.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===s?bn(i):new Date(NaN);var f,m={firstWeekContainsDate:u,weekStartsOn:p,locale:a},g=[{priority:10,subPriority:-1,set:Gs,index:0}],v=o.match(Ws).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Wn[e])(t,a.formatLong,m):t})).join("").match(js),y=[];for(f=0;f0&&Us.test(s))return new Date(NaN);var D=g.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return g.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),I=bn(i);if(isNaN(I))return new Date(NaN);var $=Ln(I,Vn(I)),O={};for(f=0;f0?i:1-i;return Js("yy"===e?n%100:n,e.length)},M:function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Js(i+1,2)},d:function(t,e){return Js(t.getUTCDate(),e.length)},a:function(t,e){var i=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return"am"===i?"a.m.":"p.m."}},h:function(t,e){return Js(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Js(t.getUTCHours(),e.length)},m:function(t,e){return Js(t.getUTCMinutes(),e.length)},s:function(t,e){return Js(t.getUTCSeconds(),e.length)},S:function(t,e){var i=e.length,n=t.getUTCMilliseconds();return Js(Math.floor(n*Math.pow(10,i-3)),e.length)}},eo=864e5;var io="midnight",no="noon",so="morning",oo="afternoon",ro="evening",ao="night";function lo(t,e){var i=t>0?"-":"+",n=Math.abs(t),s=Math.floor(n/60),o=n%60;if(0===o)return i+String(s);var r=e||"";return i+String(s)+r+Js(o,2)}function co(t,e){return t%60==0?(t>0?"-":"+")+Js(Math.abs(t)/60,2):uo(t,e)}function uo(t,e){var i=e||"",n=t>0?"-":"+",s=Math.abs(t);return n+Js(Math.floor(s/60),2)+i+Js(s%60,2)}var ho={G:function(t,e,i){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var n=t.getUTCFullYear(),s=n>0?n:1-n;return i.ordinalNumber(s,{unit:"year"})}return to.y(t,e)},Y:function(t,e,i,n){var s=Zn(t,n),o=s>0?s:1-s;return"YY"===e?Js(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):Js(o,e.length)},R:function(t,e){return Js(ts(t),e.length)},u:function(t,e){return Js(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Js(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,i){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Js(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,i){var n=t.getUTCMonth();switch(e){case"M":case"MM":return to.M(t,e);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,i){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return Js(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){var s=rs(t,n);return"wo"===e?i.ordinalNumber(s,{unit:"week"}):Js(s,e.length)},I:function(t,e,i){var n=ns(t);return"Io"===e?i.ordinalNumber(n,{unit:"week"}):Js(n,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):to.d(t,e)},D:function(t,e,i){var n=function(t){yn(1,arguments);var e=bn(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),s=i-n;return Math.floor(s/eo)+1}(t);return"Do"===e?i.ordinalNumber(n,{unit:"dayOfYear"}):Js(n,e.length)},E:function(t,e,i){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){var s=t.getUTCDay(),o=(s-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return Js(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(s,{width:"short",context:"formatting"});case"eeee":default:return i.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){var s=t.getUTCDay(),o=(s-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return Js(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(s,{width:"narrow",context:"standalone"});case"cccccc":return i.day(s,{width:"short",context:"standalone"});case"cccc":default:return i.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,i){var n=t.getUTCDay(),s=0===n?7:n;switch(e){case"i":return String(s);case"ii":return Js(s,e.length);case"io":return i.ordinalNumber(s,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});case"iiii":default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,i){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){var n,s=t.getUTCHours();switch(n=12===s?no:0===s?io:s/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,i){var n,s=t.getUTCHours();switch(n=s>=17?ro:s>=12?oo:s>=4?so:ao,e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return to.h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):to.H(t,e)},K:function(t,e,i){var n=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(n,{unit:"hour"}):Js(n,e.length)},k:function(t,e,i){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?i.ordinalNumber(n,{unit:"hour"}):Js(n,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):to.m(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):to.s(t,e)},S:function(t,e){return to.S(t,e)},X:function(t,e,i,n){var s=(n._originalDate||t).getTimezoneOffset();if(0===s)return"Z";switch(e){case"X":return co(s);case"XXXX":case"XX":return uo(s);case"XXXXX":case"XXX":default:return uo(s,":")}},x:function(t,e,i,n){var s=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return co(s);case"xxxx":case"xx":return uo(s);case"xxxxx":case"xxx":default:return uo(s,":")}},O:function(t,e,i,n){var s=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+lo(s,":");case"OOOO":default:return"GMT"+uo(s,":")}},z:function(t,e,i,n){var s=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+lo(s,":");case"zzzz":default:return"GMT"+uo(s,":")}},t:function(t,e,i,n){var s=n._originalDate||t;return Js(Math.floor(s.getTime()/1e3),e.length)},T:function(t,e,i,n){return Js((n._originalDate||t).getTime(),e.length)}},po=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fo=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mo=/^'([^]*?)'?$/,go=/''/g,vo=/[a-zA-Z]/;function yo(t,e,i){yn(2,arguments);var n=String(e),s=i||{},o=s.locale||Nn,r=o.options&&o.options.firstWeekContainsDate,a=null==r?1:Fn(r),l=null==s.firstWeekContainsDate?a:Fn(s.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,u=null==c?0:Fn(c),d=null==s.weekStartsOn?u:Fn(s.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var h=bn(t);if(!Zs(h))throw new RangeError("Invalid time value");var p=Vn(h),f=Ln(h,p),m={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:h},g=n.match(fo).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Wn[e])(t,o.formatLong,m):t})).join("").match(po).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return bo(i);var r=ho[n];if(r)return!s.useAdditionalWeekYearTokens&&Kn(i)&&Gn(i,e,t),!s.useAdditionalDayOfYearTokens&&Yn(i)&&Gn(i,e,t),r(f,i,o.localize,m);if(n.match(vo))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("");return g}function bo(t){return t.match(mo)[1].replace(go,"'")}function wo(t,e,i){return xo(t,e)+" "+function(t,e){if(!(t instanceof Date))throw"need to be Date Object";const i=In(e);return yo(t,i)}(t,i)}function xo(t,e){if(!(t instanceof Date))throw"need to be Date Object";return yo(t,In(e))}var _o=R({name:"DatePicker",directives:{clickoutside:Ye},components:{vDatePickerMenu:Tn},mixins:[vi,ai,q("date-picker"),we],props:{...fn()(Tn.props,["isOpen","timeChecked"]),value:{type:Date,default:void 0},timeOptional:{type:Boolean,default:!0},showTime:{type:Boolean,default:!1},defaultTimeChecked:{type:Boolean,default:!1},placeholder:{type:String,default:()=>""},dateFormat:{type:String,default:Dn[0]},timeFormat:{type:String,default:"h:i a"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},name:{type:String,default:void 0},align:{type:String,default:"tl->bl"},dropdownOffset:{type:Array,default:()=>[0,0]},showResetButton:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showTodayButton:{type:Boolean,default:!0},dateDots:{type:Array,default:()=>[]}},data(){return{show:!1,isFocused:!1,timeChecked:this.defaultTimeChecked,style:{left:"",top:""},label:void 0,validateByField:{event:"text-changed"}}},computed:{prefix:()=>"v-dt",isTimeVisible(){return this.showTime&&(this.timeOptional&&this.timeChecked||!this.timeOptional)},wrapCls(){let t=this.prefix;return["".concat(t,"-picker v-select-wrapper"),{disabled:this.disabled},{focused:this.isFocused},{pressed:this.show}]}},watch:{show:{handler(t){!0===t?this.mountMenu():this.$refs.input&&this.$refs.input.focus()},immediate:!0},value:{handler(t){this.updateLabel()},immediate:!0},isTimeVisible:{handler(t){this.updateLabel()},immediate:!0},dateFormat:{handler(t){this.updateLabel()}},timeFormat:{handler(t){this.updateLabel()}}},mounted(){this.editable&&this.showTime&&Pe("Cannot set `editable` with `showTime` together, this is violate ux guideline",this),window.addEventListener("resize",this.resize)},beforeDestroy(){window.removeEventListener("resize",this.resize)},methods:{onClick(){this.editable||this.toggleDialog()},updateLabel(){this.value?this.label=this.isTimeVisible?wo(this.value,this.dateFormat,this.timeFormat):xo(this.value,this.dateFormat):this.label=""},getExtraElements(){return[this.$refs.dropdown]},selectInput(){this.$refs.input&&this.$refs.input.select()},async mountMenu(){await this.$nextTick(),await this.reposition(),this.$refs.dropdown.focusDatePickerTable()},async resize(){await this.reposition()},async reposition(){if(!this.$refs.dropdown)return;const[t,e]=this.$alignManager.getAlignToXY(this.$refs.dropdown.$el,this.$el,this.align,this.dropdownOffset,!0,!0,this.getContainerEl());return this.style.left="".concat(t,"px"),this.style.top="".concat(e,"px"),await this.$nextTick()},toggleDialog(){this.show?this.closeDialog():this.openDialog()},openDialog(){this.show=!0},closeDialog(){this.show=!1},updateDialogOpenState(t){this.show=t},onInput(t){this.show&&this.closeDialog(),this.$emit("text-changed",t)},register(t,e=(()=>{})){e(this)},unregister(t,e=(()=>{})){e(this)},parseString(t){return function(t,e="",i=""){const n=i?"".concat(e," ").concat(i):e;return!!Qs(t,e,i)&&Ks(t,In(n),new Date)}(t,this.dateFormat,this.isTimeVisible?this.timeFormat:void 0)},onBlur(t){const e=ie(t);this.isFocused=!1;let i=null;this.$refs.dropdown&&this.$refs.dropdown.$el.contains(e)||this.$el.contains(e)||!this.$refs.input||this.label&&(i=this.parseString(this.label),!1===i)||(this.$emit("input",i),this.$emit("change",i))},validate(t){const e=this.$refs.input&&this.$refs.input.value;if(!e){if(this.allowBlank)return;throw{errors:[{message:N(this._i18n("extlang","fieldblank"),this.$refs.input.value,this.dateFormat)}]}}if(!Qs(e,this.dateFormat,this.isTimeVisible?this.timeFormat:void 0))throw{errors:[{message:N(this._i18n("extlang","invaliddate"),this.$refs.input.value,this.dateFormat)}]}}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside.children",value:t.closeDialog,expression:"closeDialog",modifiers:{children:!0}}],class:t.wrapCls},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.label,expression:"label"},{name:"syno-id",rawName:"v-syno-id"}],ref:"input",class:[t.prefix,t.prefix+"-input","v-select-input"],attrs:{disabled:t.disabled,readonly:!t.editable,name:t.name,placeholder:t.placeholder},domProps:{value:t.label},on:{click:t.onClick,input:[function(e){e.target.composing||(t.label=e.target.value)},t.onInput],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.toggleDialog())},focus:function(e){t.isFocused=!0},blur:t.onBlur}}),t._v(" "),i("span",{ref:"icon",class:[t.prefix+"-dropdown-icon","v-select-dropdown-icon"],on:{click:function(e){!t.disabled&&t.toggleDialog()}}}),t._v(" "),t.show?i("v-portal",{attrs:{"mount-to":t.getContainerSelector(),"target-style":t.style}},[i("v-date-picker-menu",{ref:"dropdown",attrs:{"syno-id":t.synoId+"-menu","time-checked":t.timeChecked,"enable-hour24":t.enableHour24,"time-optional":t.timeOptional,"today-text":t.todayText,"reset-text":t.resetText,"add-time-text":t.addTimeText,"clear-text":t.clearText,"allow-blank":t.allowBlank,"show-time":t.showTime,"max-time":t.maxTime,"min-time":t.minTime,"years-range":t.yearsRange,value:t.value,"show-clear-button":t.showClearButton,"show-reset-button":t.showResetButton,"show-today-button":t.showTodayButton,"date-dots":t.dateDots},on:{"update:timeChecked":function(e){t.timeChecked=e},"update:time-checked":function(e){t.timeChecked=e},input:function(e){return t.$emit("input",e)},change:function(e){return t.$emit("change",e)},"select-date":function(e){return t.$emit("select-date",e)},"update:isOpen":t.updateDialogOpenState},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e.preventDefault(),t.closeDialog.apply(null,arguments))}}})],1):t._e()],1)}),[],!1,null,null,null).exports;const So=["#000000","#5B0F00","#A62929","#B35900","#7F6000","#00802B","#115BA6","#1C4587","#543D99","#8C2A6C","#2E3236","#85200C","#E04343","#E67300","#BF9000","#009933","#1470CC","#1155CC","#7052CC","#CC3D9C","#7A8086","#A61C00","#ED4747","#FA7D00","#F1C232","#00B23B","#177EE5","#4176CC","#7E5CE5","#E545B0","#BAC0C6","#CC4125","#FA8282","#FA9C3E","#FFD966","#4DBF73","#499DF2","#6399F7","#A18AE6","#E67EC3","#DCE2E8","#DD7E6B","#FFB2B2","#FFB973","#FFE599","#70E096","#99CEFF","#94B9F7","#CEBFFF","#FFA6E0","#FFFFFF","#E6B8AF","#FFCCCC","#FFD9B2","#FFF2CC","#C4F5D4","#CCE6FF","#C9DAF8","#E2D9FF","#FFD9F2"];var Co=R({name:"ColorPickerDropdown",components:{vTrapFocus:H},mixins:[vi],props:{customDropdownCls:{type:String,default:""},options:{type:Array,default:()=>So.map((t=>({color:t,custom:!1})))},customOptions:{type:Array,default:()=>[]},hasCustom:{type:Boolean,default:!0}},data:()=>({activeIndex:-1}),computed:{dropdownCls(){return["v-select-dropdown","v-color-picker-dropdown","v-select-dropdown-placement-bottomLeft",this.customDropdownCls]},colorWrapperCls(){return["default-color-wrapper",{"has-custom":this.hasCustom}]}},watch:{},methods:{colorItemCls(t){return["color-item",{activated:this.activeIndex===t}]},colorBlockStyle:t=>({"user-select":"none","background-color":t.color}),closeDropdown(t){this.$emit("close-dropdown",t)},reset(){this.$emit("reset")},arrowSelect(t){const e=((0===t?this.activeIndex-1:this.activeIndex+1)+this.options.length)%this.options.length;this.select(e,this.options[e])},select(t,e){this.$emit("select",t,e)},onClickCustom(){this.$emit("show-custom")},focus(){this.$refs.dropdownTrapFocus.focus()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"dropdown",class:t.dropdownCls,staticStyle:{overflow:"hidden"},attrs:{"syno-id":t.synoId+"-dropdown-menu"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.closeDropdown.apply(null,arguments)}}},[i("v-trap-focus",{ref:"dropdownTrapFocus"},[i("div",{staticClass:"reset-button-wrapper"},[i("button",{staticClass:"reset color-picker-button",attrs:{"syno-id":t.synoId+"-reset-btn"},on:{click:function(e){return t.reset()}}},[t._v(t._s(t._i18n("common","reset")))])]),t._v(" "),i("ul",{staticClass:"default-color-wrapper",attrs:{role:"menu",tabindex:"0","aria-activedescendant":"option-"+t.activeIndex},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.arrowSelect(0))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.arrowSelect(0))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.arrowSelect(1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.preventDefault(),t.arrowSelect(1))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.closeDropdown.apply(null,arguments)}]}},[t._l(t.options,(function(e,n){return[e.custom?t._e():i("li",{key:n,class:t.colorItemCls(n),attrs:{"syno-id":t.synoId+"-option-"+e.color,id:"options-"+n,role:"menuitem","aria-selected":"false"},on:{click:function(i){return t.select(n,e)}}},[i("div",{staticClass:"color-block",style:t.colorBlockStyle(e)})])]}))],2),t._v(" "),t.hasCustom?i("div",{staticClass:"custom-button-wrapper"},[i("button",{staticClass:"custom color-picker-button",attrs:{"syno-id":t.synoId+"-custom-btn"},on:{click:function(e){return t.onClickCustom()}}},[t._v(t._s(t._i18n("common","custom")))])]):t._e(),t._v(" "),t.customOptions.length>0?i("ul",{staticClass:"custom-color-wrapper"},[t._l(t.options,(function(e,n){return[e.custom?i("li",{key:n,class:t.colorItemCls(n),attrs:{"syno-id":t.synoId+"-option-"+e.color,role:"menuitem","aria-selected":"false"},on:{click:function(i){return t.select(n,e)}}},[i("div",{staticClass:"color-block",style:t.colorBlockStyle(e)})]):t._e()]}))],2):t._e()])],1)}),[],!1,null,null,null).exports,ko=(i(188),R({name:"ColorPicker",components:{vColorPickerDropdown:Co},directives:{clickoutside:Ye},mixins:[V,Mi,vi,ai,we],props:{align:{type:String,default:"tl->bl"},disabled:{type:Boolean,default:!1},value:{type:String,default:""},customDropdownCls:{type:String,default:""},options:{type:Array,default:()=>["#000000","#5B0F00","#A62929","#B35900","#7F6000","#00802B","#115BA6","#1C4587","#543D99","#8C2A6C","#2E3236","#85200C","#E04343","#E67300","#BF9000","#009933","#1470CC","#1155CC","#7052CC","#CC3D9C","#7A8086","#A61C00","#ED4747","#FA7D00","#F1C232","#00B23B","#177EE5","#4176CC","#7E5CE5","#E545B0","#BAC0C6","#CC4125","#FA8282","#FA9C3E","#FFD966","#4DBF73","#499DF2","#6399F7","#A18AE6","#E67EC3","#DCE2E8","#DD7E6B","#FFB2B2","#FFB973","#FFE599","#70E096","#99CEFF","#94B9F7","#CEBFFF","#FFA6E0","#FFFFFF","#E6B8AF","#FFCCCC","#FFD9B2","#FFF2CC","#C4F5D4","#CCE6FF","#C9DAF8","#E2D9FF","#FFD9F2"]},customOptions:{type:Array,default:()=>[]},position:{type:String,default:"absolute"},dropdownWidth:{type:String,default:"234px"},id:{type:String,default(){return"syno-".concat(this.uuid)}},name:{type:String,default:""},hasCustom:{type:Boolean,default:!0}},data:()=>({prefix:"v-select",orgValue:"",isFocused:!1,found:!1,show:!1,dropdownStyle:{top:"0",left:"0"},dropdownUlStyle:{},container:null,activeIndex:-1}),computed:{allOptions(){let t=this.options||[],e=this.customOptions||[];return e.length>30&&(e=e.slice(0,30)),t.map((t=>({color:t,custom:!1}))).concat((e||[]).map((t=>({color:t,custom:!0}))))},wrapCls(){return["".concat(this.prefix,"-wrapper v-color-picker-wrapper"),{disabled:this.disabled},{focused:this.isFocused},{readonly:this.readonly}]},dropdownCls(){return["".concat(this.prefix,"-dropdown"),"v-color-picker-dropdown","".concat(this.prefix,"-dropdown-placement-bottomLeft"),this.customDropdownCls]},iconStyle(){return{backgroundColor:this.value||"#FFFFFF"}}},watch:{show:{async handler(t){await this.$nextTick(),!0===t?(await this.$nextTick(),this.setPosition(),this.$refs.dropdown.focus()):this.$refs.colorPickerBtn&&this.$refs.colorPickerBtn.focus()}}},mounted(){this.activeIndex=this.value?this.allOptions.findIndex((t=>t.color===this.value)):-1,this.orgValue=this.value||"",window.addEventListener("resize",this.setPosition)},beforeDestroy(){window.removeEventListener("resize",this.setPosition)},methods:{getExtraElements(){return[this.$refs.dropdown].filter((t=>!!t))},clickOutside(){this.show=!1},reset(){this.$emit("input",this.orgValue)},showCustom(){this.show=!1,this.$emit("showcustom")},setPosition(){if(!this.$el||!this.$refs.dropdown)return;const[t,e]=this.$alignManager.getAlignToXY(this.$refs.dropdown.$el,this.$el,this.align,[0,0],!0,!0,this.getContainerEl());this.dropdownStyle.left="".concat(t,"px"),this.dropdownStyle.top="".concat(e,"px"),this.dropdownUlStyle={maxHeight:"".concat(this.maxHeight-16,"px")}},showDropdown(){this.show=!0},closeDropdown(t){t&&t instanceof Event&&this.$refs.dropdown.contains(t.target)||(this.show=!1)},toggleDropdown(){this.disabled||(this.show?this.closeDropdown():this.showDropdown())},updateActiveIndex(t){this.activeIndex=t},clear(){this.select(-1)},clearSelection(){this.activeIndex=-1},select(t,e){const i=e?e.color:"";this.$emit("input",i)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.clickOutside,expression:"clickOutside"}],ref:"colorPickerBtn",class:t.wrapCls,attrs:{tabindex:"0",role:"combobox","aria-haspopup":"true","aria-expanded":t.show?"false":"true"},on:{click:t.toggleDropdown,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.showDropdown.apply(null,arguments))},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.showDropdown.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.showDropdown.apply(null,arguments))}]}},[i("span",{directives:[{name:"syno-id",rawName:"v-syno-id"}],ref:"colorIcon",class:t.prefix+"-color-icon",style:t.iconStyle,attrs:{name:t.name}}),t._v(" "),i("span",{ref:"dropdownIcon",class:t.prefix+"-dropdown-icon"}),t._v(" "),t.show?i("v-portal",{attrs:{"target-style":t.dropdownStyle,"mount-to":t.getContainerSelector()}},[i("v-color-picker-dropdown",{ref:"dropdown",attrs:{"has-custom":t.hasCustom,options:t.allOptions,"custom-options":t.customOptions},on:{select:t.select,"close-dropdown":t.closeDropdown,reset:t.reset,"show-custom":t.showCustom}})],1):t._e()],1)}),[],!1,null,null,null).exports);Li({components:[xi,wi,yi]});var To=xi,Do=(i(191),R({name:"StatusBar",components:{SpinIcon:yi},directives:{tooltip:ri},mixins:[vi],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}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"v-status-bar",class:t.stateBarCls},[i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{overflowOnly:!0,content:t.currentText},expression:"{ overflowOnly: true, content: currentText }"}],staticClass:"status-text"},["loading"!==t.state?i("div",{staticClass:"status-icon"}):i("spin-icon",{staticClass:"status-icon"}),t._v("\n "+t._s(t.currentText)+"\n ")],1)])])}),[],!1,null,null,null).exports),Io=(i(192),R({name:"Toolbar",data:()=>({})},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-toolbar"},[t._t("default"),t._v(" "),i("div",{staticClass:"right-wrapper"},[t._t("right")],2)],2)}),[],!1,null,null,null).exports),$o=(i(190),R({name:"Panel",components:{vButton:mn,vSpin:To,vStatusBar:Do,vLayout:an,vToolbar:Io,vPerfectScrollbar:Tt},mixins:[vi],props:{loadingText:{type:String,default:function(){return this._i18n("common","loading")}},hasTbar:{type:Boolean,default:!1},hasFbar:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},successText:{type:String,default:function(){return this._i18n("common","setting_applied")}},errorText:{type:String,default:function(){return this._i18n("common","error_system")}},showStatusBar:{type:Boolean,default:!1},autoHideStatusBar:{type:Boolean,default:!0},autoHideTimer:{type:Number,default:5e3},statusBarState:{type:String,default:"loading"},loadingType:{type:String,default:"spin"},cancel:{type:Function,default:()=>{}},cancelBtnDisabled:{type:Boolean,default:!1},confirm:{type:Function,default:()=>{}},confirmBtnDisabled:{type:Boolean,default:!1},useDefaultTBar:{type:Boolean,default:!0},tbarBorder:{type:Boolean,default:!1},cancelText:{type:String,default:void 0},confirmText:{type:String,default:void 0},fluidFooter:{type:Boolean,default:!0},layoutType:{type:String,default:"content",validator:t=>["content","overview","none"].includes(t)}},data:()=>({prefixCls:"v-panel"}),computed:{bodyWrapper:()=>({"flex-bug":Pt}),tbarCls(){return["tbar-wrapper",{"default-tbar":this.useDefaultTBar},{"tbar-has-border":this.tbarBorder}]},fbarCls(){return[{"fbar-wrapper":!0},{"fbar-wrapper--fluid":this.fluidFooter}]},isSpinType(){return"spin"===this.loadingType},panelBodyStyle(){return{"--panel-in-tabs-padding-top":this.hasTbar?"8px":"0"}}},watch:{statusBarState(t){this.delayHideStatusBar()},showStatusBar(t){this.delayHideStatusBar()}},methods:{hasScrollBodySlot(){return B(this,"scroll-body")},hasContentBodySlot(){return B(this,"content-body")},delayHideStatusBar(){this.autoHideStatusBar&&"loading"!==this.statusBarState&&window.setTimeout((()=>{this.$emit("update:showStatusBar",!1)}),this.autoHideTimer)}}},(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,attrs:{type:"panel."+t.layoutType}},[i("v-spin",{class:t.prefixCls+"-wrapper",attrs:{tip:t.loadingText,spinning:t.loading,"only-mask":!t.isSpinType}},[i("template",{slot:"spin-inner"},[t._t("spin-inner")],2),t._v(" "),i("v-layout",{staticClass:"layout-body-wrapper",style:t.panelBodyStyle,attrs:{type:"panel-body","custom-layout-styles":{"layout-padding-top":"--svc-panel-layout-padding-top"}}},[t._t("tbar-wrapper",(function(){return[t.hasTbar?i("v-toolbar",{class:t.tbarCls,scopedSlots:t._u([{key:"right",fn:function(){return[t._t("tbar-right")]},proxy:!0}],null,!0)},[t._t("tbar")],2):t._e()]})),t._v(" "),i("div",{staticClass:"body-wrapper",class:t.bodyWrapper},[t._t("body"),t._v(" "),t.hasScrollBodySlot()?i("v-perfect-scrollbar",[i("v-layout",{attrs:{type:t.hasTbar?"none":"content"}},[t._t("scroll-body")],2)],1):t._e(),t._v(" "),t.hasContentBodySlot()?i("v-layout",{attrs:{type:t.hasTbar?"none":"content"}},[t._t("content-body")],2):t._e()],2)],2),t._v(" "),t.hasFbar?i("v-layout",{class:t.fbarCls,attrs:{type:"panel-fbar"}},["statusbar"===t.loadingType?t._t("status-bar",(function(){return[i("v-status-bar",{attrs:{state:t.statusBarState,show:t.showStatusBar,"success-text":t.successText,"error-text":t.errorText,"loading-text":t.loadingText}})]})):t._e(),t._v(" "),t._t("fbar",(function(){return[i("div",{staticClass:"default pull-right"},[i("v-button",{attrs:{"syno-id":t.synoId+"-fbar-cancel",type:"footbar",suffix:"cancel",disabled:t.cancelBtnDisabled},on:{click:t.cancel}},[t._v(t._s(t.cancelText||t._i18n("common","cancel")))]),t._v(" "),i("v-button",{attrs:{"syno-id":t.synoId+"-fbar-commit",type:"footbar",suffix:"main",disabled:t.confirmBtnDisabled},on:{click:t.confirm}},[t._v(t._s(t.confirmText||t._i18n("common","commit")))])],1)]}))],2):t._e()],2)],1)}),[],!1,null,null,null).exports);Li({components:[$o,Do]});var Oo=$o,Mo=i(92),Eo=i.n(Mo),Bo=(i(189),R({name:"ColorCustomPanel",components:{vPanel:Oo},mixins:[V,Mi],props:{id:{type:String,default(){return"syno-".concat(this.uuid)}},initial:{type:String,default:"#FF0000"},colorjoyStyle:{type:Object,default:()=>({width:"436px",height:"281px"})}},data(){return{prefixCls:"v-color-custom-panel",currentColor:this.initial,joe:null}},mounted(){this.$nextTick((()=>{Eo.a.rgb(this.$refs.joe,this.initial,["currentColor",["fields",{space:"RGB",limit:255,fix:0}],"hex"]).on("done",(t=>this.currentColor=t.hex().toUpperCase()))}))},methods:{confirm(){this.$emit("colorselected",this.currentColor)},cancel(){this.$emit("colorselectcanceled")}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-panel",{class:t.prefixCls,attrs:{confirm:t.confirm,cancel:t.cancel,"fluid-footer":!0,"syno-id":t.synoId}},[i("template",{slot:"body"},[i("div",{staticClass:"v-colorjoe-wrapper",style:t.colorjoyStyle},[i("div",{ref:"joe",attrs:{id:t.id}})])])],2)}),[],!1,null,null,null).exports),Ao=R({name:"ColorCustomWindow",components:{vColorCustomPanel:Bo},mixins:[vi],props:{},data:()=>({}),mounted(){},methods:{onCancel(){this.$refs.window.close()},onColorSelected(t){this.$emit("color-selected",t)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-modal-window",{ref:"window",attrs:{title:t._i18n("personal_settings","customize_color"),width:"436",height:"auto","show-close":!1,"show-maximize":!1,resizable:!1,"show-minimize":!1,"syno-id":t.synoId}},[i("v-color-custom-panel",{attrs:{"syno-id":t.synoId+"-panel"},on:{colorselected:t.onColorSelected,colorselectcanceled:t.onCancel}})],1)}),[],!1,null,null,null).exports,Po=(i(182),R({name:"Radio",mixins:[V,Mi,U("radio-group")],props:{stopPropagation:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:""},disabled:{type:Boolean,default:!1},id:{type:String,default(){return"syno-".concat(this.uuid)}},name:{type:String,default:""}},data:()=>({prefixCls:"v-radio",isGroup:!1,isFocused:!1}),computed:{wrapperCls(){return["".concat(this.prefixCls,"-wrapper"),{checked:this.isChecked,disabled:this.isDisabled,focused:this.isFocused}]},model:{get(){return this.isGroup?this.$options.group.value:this.value},set(t){this.isGroup?this.$options.group.change(t):this.$emit("input",t)}},isChecked(){return this.isGroup?this.model===this.value:this.value},isDisabled(){return this.isGroup&&this.$options.group.disabled||this.disabled}},watch:{isDisabled(t){this.$emit("update:disbled",t)},isChecked(t){this.$emit("change",this.value),this.$emit("input",this.value),this.dispatch("RadioGroup","radio.change",[this.value])}},mounted(){this["radio-group"]&&(this["radio-group"].register(this),this.isGroup=!0)},beforeDestroy(){this["radio-group"]&&this["radio-group"].unregister(this)},methods:{onFocus(){this.isFocused=!0,this.$emit("focus",this)},onBlur(){this.isFocused=!1,this.$emit("blur",this)},onIconClick(t){this.stopPropagation&&t.stopPropagation(),this.disabled||(this.$emit("click",t,this),this.model!==this.value&&(this.model=this.value))},setDisabled(t){this.isDisabled=t},setValue(t){this.model=t}}},(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},[i("div",{class:t.prefixCls+"-icon",on:{click:t.onIconClick}}),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],class:t.prefixCls+"-input",attrs:{type:"radio",id:t.id,disabled:t.isDisabled,name:t.name,tabindex:t.isChecked?0:-1,"aria-checked":t.isChecked?"true":"false"},domProps:{value:t.value,checked:t._q(t.model,t.value)},on:{focus:t.onFocus,blur:t.onBlur,change:function(e){t.model=t.value}}}),t._v(" "),i("label",{class:t.prefixCls+"-label",attrs:{for:t.id}},[t._t("default")],2)])}),[],!1,null,null,null).exports),No=R({name:"RadioGroup",components:{vRadio:Po},mixins:[V,Mi,ai,q("radio-group")],props:{type:{type:String,default:"radio"},value:{type:[String,Number,Boolean],default:""},data:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},size:{type:String,default:""},name:{type:String,default(){return"syno-".concat(this.uuid)}}},data:()=>({prefixCls:"v-radio-group",hasSlot:!1,selectValue:"",model:""}),computed:{ariaLabelledby(){const t=this.data.find((t=>t.value===this.value));return t&&this.getRadioId(t.value)},wrapperCls(){return[this.prefixCls]}},mounted(){this.$slots&&this.$slots.default&&(this.hasSlot=!0)},created(){if(this.model=this.value,this.disabled)for(const t of this.data)t.disabled=!0},methods:{register(t){t.$options.group=this},unregister(t){delete t.$options.group},change(t){this.model=t,this.$emit("input",t),this.$emit("change",t)},getRadioSynoId(t){return"".concat(this.synoId,"-").concat(t)},getRadioId(t){return"".concat(this.uuid,"-").concat(t)}}},(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,attrs:{role:"radiogroup","aria-labelledby":t.ariaLabelledby}},[t._t("default"),t._v(" "),t.hasSlot?t._e():t._l(t.data,(function(e){return i("v-radio",{key:t.getRadioId(e.value),attrs:{"syno-id":t.getRadioSynoId(e.value),id:t.getRadioId(e.value),disabled:e.disabled,value:e.value,name:t.name}},[t._v("\n "+t._s(e.text)+"\n ")])}))],2)}),[],!1,null,null,null).exports,Fo=(i(167),R({name:"Card",mixins:[],props:{layoutType:{type:String,default:"regular"},title:{type:String,default:void 0}},data:()=>({}),computed:{},watch:{},created(){},mounted(){},beforeDestroy(){},methods:{}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-layout",{staticClass:"v-card-wrapper",attrs:{type:"card."+t.layoutType}},[i("div",{staticClass:"v-card-header"},[i("div",{staticClass:"v-card-title"},[t._t("title",(function(){return[t._v("\n "+t._s(t.title)+"\n ")]}))],2),t._v(" "),i("div",{staticClass:"actions-wrapper"},[t._t("header-actions")],2)]),t._v(" "),i("div",{staticClass:"v-card-body"},[t._t("body")],2)])}),[],!1,null,null,null).exports),zo=(i(184),R({name:"Form",components:{vLayout:an},mixins:[q("form")],props:{model:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},direction:{type:String,default:"horizontal"},validateMessageDisplayMode:{type:String,validator:t=>["popup","text"].includes(t),default:"popup"}},data:()=>({prefix:"v-form",fields:[]}),computed:{wrapClasses(){return{[this.prefix]:!0,["".concat(this.prefix,"-").concat(this.direction)]:!0}}},watch:{async rules(){await this.validate()}},created(){this.$on("form.addField",(t=>{t&&this.fields.push(t)})),this.$on("form.removeField",(t=>{t.prop&&this.fields.splice(this.fields.indexOf(t),1)}))},methods:{register(t,e=(()=>{})){e(this)},unregister(t,e=(()=>{})){e(this)},onSubmit(t){this.$emit("submit",t)},findField(t){if(!t)return null;for(let e of this.fields)if(e.prop===t)return e;return null},resetFields(){this.$options["data-table"]&&this.$options["data-table"].resetField(),this.fields.forEach((t=>{t.resetField()}))},async validate(t,{autoScroll:e=!0}={}){const i=(await Promise.all(this.fields.map((async e=>({error:await e.validate(t),field:e}))))).find((t=>t.error));return e&&i&&i.field&&(i.field.ensureVisible(),i.field.showPopup()),!i},async validateField(t){const e=this.fields.filter((e=>e.prop===t))[0];if(!e)throw new Error("must call validateField with valid prop string!");await e.validate("")},isDirty(){if(this.$options["data-table"]&&this.$options["data-table"].isDirty())return!0;for(const t of this.fields)if(t.isDirty)return!0;return!1},commit(){this.$options["data-table"]&&this.$options["data-table"].commit(),this.fields.forEach((t=>{t.commit()}))}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-layout",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:t.wrapClasses,attrs:{tag:"form",type:"form"},nativeOn:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[t._t("default")],2)}),[],!1,null,null,null).exports),Lo=i(91);i(185);var Ro=R({name:"Popup",mixins:[we],props:{disable:{type:Boolean,default:!1},type:{type:String,default:"info"},content:{type:String,default:""},tippyOptions:{type:Object,default:()=>({})}},data:()=>({isShow:!1}),computed:{tippyOpts(){let t={content:this.content,trigger:"mouseenter",theme:"syno-vue-components syno-vue-components-".concat(this.type),placement:"top-start",arrow:!0,interactive:!0,appendTo:()=>this.getContainerEl()};return t=Object.assign(t,this.tippyOptions),t.popperOptions={modifiers:[{name:"applyArrow",enabled:!0,phase:"write",fn({state:t}){const{arrow:e}=t.elements;if(e&&("top-start"===t.placement||"bottom-start"===t.placement)){let i=12;const n=t.modifiersData.arrow;n.x<12&&(i=n.x),Vt(e,"transform","translate(".concat(i,"px, 0)"))}}}]},t}},watch:{disable:{handler(t){this.$nextTick((()=>{t?this.disablePopup():this.enablePopup()}))},immediate:!0}},methods:{showPopup(){if(!this.$refs.popup)return;const t=this.$refs.popup._tippy;!0!==t.state.isVisible&&t.show()},hidePopup(){if(!this.$refs.popup)return;const t=this.$refs.popup._tippy;!0===t.state.isVisible&&t.hide()},enablePopup(){if(!this.$refs.popup)return;let t=this.$refs.popup._tippy;t&&!0!==t.state.isEnabled&&t.enable()},disablePopup(){if(!this.$refs.popup)return;let t=this.$refs.popup._tippy;t&&(!0===t.state.isVisible&&t.hide(),!0===t.state.isEnabled&&t.disable())}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"popup",rawName:"v-popup",value:t.tippyOpts,expression:"tippyOpts"}],ref:"popup"},[t._t("default")],2)}),[],!1,null,null,null).exports,Ho=Ro,jo=R({name:"FormItem",components:{vPopup:Ho},mixins:[vi,V,U("data-table"),q("form-item"),U("form-multiple-item")],props:{prop:{type:String,default:void 0},label:{type:String,default:void 0},disableLabel:{type:Boolean,default:!1},validateDisabledField:{type:Boolean,default:!1},disableValidation:{type:Boolean,default:!1},hideValidateMessage:{type:Boolean,default:!1},hideValidateStatusCls:{type:Boolean,default:!1},hasFeedback:{type:Boolean,default:!1},rules:{type:[Object,Array],default:void 0},help:{type:String,default:void 0},validateStatus:{type:String,default:void 0},immediateValidate:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},hideLabel:{type:Boolean,default:!1},textonly:{type:Boolean,default:!1},indent:{type:[Number,String],default:0},validateDebouncedTimer:{type:Number,default:250},registerKey:{type:String,default:void 0},validateMessageDisplayMode:{type:String,validator:t=>["popup","text","form"].includes(t),default:"form"}},data(){return{formPrefix:"v-form",prefixCls:"v-form-item",validateState:this.validateStatus,validateMessage:this.help,fieldDisabled:!1,validator:{},initialValue:void 0,fieldValue:void 0,tippyOptions:{delay:[600,10],placement:"top-start"},labelFor:"",isComposite:!1}},computed:{itemCls(){return[this.prefixCls,{["".concat(this.prefixCls,"-with-help")]:this.validateMessage,["".concat(this.prefixCls,"-indent-").concat(+this.indent)]:+this.indent&&!this.shouldIndentLabel}]},labelCls(){return["".concat(this.prefixCls,"-label"),{["".concat(this.prefixCls,"-label-hide")]:this.hideLabel},{["".concat(this.prefixCls,"-indent-").concat(+this.indent)]:+this.indent&&this.shouldIndentLabel},{disabled:this.isFieldDisabled||this.disableLabel}]},controlCls(){const t={error:"has-error",warning:"has-warning",success:"has-success",validating:"is-validating"}[this.validateState];return["".concat(this.prefixCls,"-control"),{"has-feedback":this.hasFeedback},{[t]:t&&!this.hideValidateStatusCls},{"v-form-displayfield":this.textonly},this.direction]},form(){let t=this.$parent;for(;t&&"Form"!==t.$options.name;)t=t.$parent;return t},shouldIndentLabel(){return!(!+this.indent||!this.label||this.hideLabel||this.isComposite)},isFieldDisabled(){return!!this.fieldDisabled},shouldValidate(){return!this.disableValidation&&!(!this.validateDisabledField&&this.isFieldDisabled)},isPopupDisabled(){return!(x(this.validateMessage)&&""!==this.validateMessage)||this.hideValidateMessage||!this.shouldValidate||this.validateMessageTextMode},isDirty(){if(!this["data-table"])return!M(this.initialValue,this.fieldValue)},validateMessageTextMode(){return"text"==this.currentValidateDisdplayMode},currentValidateDisdplayMode(){return"form"!==this.validateMessageDisplayMode?this.validateMessageDisplayMode:this.form&&this.form.validateMessageDisplayMode?this.form.validateMessageDisplayMode:"popup"}},watch:{help(t){this.validateMessage=t,this.validateState=t?"error":""},validateStatus(t){this.validateState=t}},created(){this.$on("form.register",this.onFieldRegister),this.$on("form.unregister",this.onFieldUnregister),this.validateDebounced=Si()(((t,...e)=>{this.validate(t,...e)}),this.validateDebouncedTimer)},mounted(){this.dispatch("Form","form.addField",[this]),this["form-multiple-item"]&&(this.isComposite=this["form-multiple-item"].isComposite,this["form-multiple-item"].register(this))},beforeDestroy(){this.dispatch("Form","form.removeField",[this]),this["form-multiple-item"]&&this["form-multiple-item"].unregister(this)},methods:{async showPopup(t){this.validateDebounced&&this.validateDebounced.cancel(),this.$refs.popup&&(this.setInvalid(t,"error"),await this.$nextTick(),this.$refs.popup.showPopup())},hidePopup(){this.validateDebounced&&this.validateDebounced.cancel(),this.$refs.popup&&this.$refs.popup.hidePopup()},async validate(t,e={}){let i={},n=null,s={},o=null;if(this.validateDebounced&&this.validateDebounced.cancel(),this.validateState="",o=this.getFilteredRule(t),!this.$options.field||!this.$options.field.validateByField){if(!this.prop)return this.validateMessage="",this.validateMessage;if(!o||0===o.length||!this.shouldValidate)return this.validateMessage="",this.validateMessage}this.validateState="validating",i[this.prop]=o,n=new Lo.a(i),n.messages({required:()=>this._i18n("extlang","fieldblank")}),s[this.prop]=this.fieldValue;try{this.$options.field&&this.$options.field.validateByField&&await(this.$options.field&&this.$options.field.validate&&this.$options.field.validate(e&&e.event)),await n.validate(s,{firstFields:!0}),this.validateState="success",this.validateMessage=""}catch({errors:r}){r&&(this.validateState="error",this.validateMessage=r[0].message)}return this.validateMessage},resetField(){this.validateState="",this.validateMessage="",this["data-table"]||this.$options.field&&this.$options.field.$emit("input",this.initialValue)},commit(){this["data-table"]||(this.initialValue=this.fieldValue)},getRules(){let t=this.form&&this.form.rules;const e=this.rules;return t=t?t[this.prop]:[],[].concat(e||t||[])},getFilteredRule(t){return this.getRules().filter((e=>!x(t)||!e.trigger||-1!==e.trigger.indexOf(t)))},setInvalid(t,e){this.validateState=e||"error",x(t)&&(this.validateMessage=t)},ensureVisible(){this.$el&&this.$el.scrollIntoViewIfNeeded&&this.$el.scrollIntoViewIfNeeded(!1)},resetInvalid(){this.validateState="",this.validateMessage=""},watchField(t){const e=t.$options.model&&t.$options.model.prop||"value";this.$options.field=t,this.labelFor=t.id,this.initialValue=this.fieldValue=t[e];let i=[];i.push(t.$watch(e,this.onFieldChange,{immediate:!0})),i.push(t.$watch("disabled",this.onFieldDisable,{immediate:!0})),i.push(t.$watch(e,this.onFieldShouldValidate,{immediate:this.immediateValidate})),i.push(t.$watch("disabled",(t=>{t&&this.onFieldShouldValidate()}),{immediate:this.immediateValidate})),this.$options.unwatchers=i,t.$on("blur",this.onFieldBlur),t.$on("keyup",this.onFieldKeyUp),t.validateByField&&t.$on(t.validateByField.event,this.onFieldCustomEvent)},unwatchField(t){if(t.$off("blur",this.onFieldBlur),t.$off("keyup",this.onFieldKeyUp),t.validateByField&&t.$off(t.validateByField.event,this.onFieldCustomEvent),this.$options.unwatchers){for(const t of this.$options.unwatchers)t();this.$options.unwatchers=null}},onFieldRegister(t,e){(e||this.registerKey)&&this.registerKey!==e||(this.$options.field&&this.onFieldUnregister(this.$options.field),this.watchField(t))},onFieldUnregister(t,e){(e||this.registerKey)&&this.registerKey!==e||(this.unwatchField(t),this.$options.field=null)},onFieldCustomEvent(t){return this.validateDebounced("",{triggerByField:!0,event:t})},onFieldBlur(){return this.validateDebounced("blur")},onFieldKeyUp(){},onFieldShouldValidate(t){return this.validateDebounced("change")},onFieldDisable(t){this.fieldDisabled=t},onFieldChange(t){this.fieldValue=t},register(t,e=(()=>{})){e(this)},unregister(t,e=(()=>{})){e(this)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.itemCls},[t._t("before"),t._v(" "),t.hideLabel||t.isComposite?t._e():i("div",{class:t.labelCls},[t._t("label",(function(){return[t._t("label-before"),t._v(" "),t.label?i("label",{attrs:{for:t.labelFor},domProps:{textContent:t._s(t.label)}}):t._e(),t._v(" "),t._t("label-after")]}),{label:t.label,for:t.labelFor})],2),t._v(" "),i("div",{staticClass:"v-form-item-input"},[i("div",{class:t.controlCls},[i("v-popup",{ref:"popup",attrs:{type:"error",disable:t.isPopupDisabled,content:t.validateMessage,"tippy-options":t.tippyOptions}},[t._t("default")],2)],1),t._v(" "),t._t("status",(function(){return[t.validateMessageTextMode?i("div",{staticClass:"validate-message"},[t._v("\n "+t._s(t.validateMessage)+"\n ")]):t._e()]}))],2),t._v(" "),t._t("after")],2)}),[],!1,null,null,null).exports,Wo=R({name:"FormMultipleItem",mixins:[q("form-multiple-item",["isComposite"])],props:{label:{type:String,default:void 0},disableLabel:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},marginSize:{type:String,default:"small"},indent:{type:Number,default:0}},data:()=>({prefixCls:"v-form",isComposite:!0,fields:[]}),computed:{itemsCls(){return["".concat(this.prefixCls,"-multi-item"),{small:"small"===this.marginSize,large:"large"===this.marginSize,none:"none"===this.marginSize}]},itemsWrapperCls(){return"".concat(this.prefixCls,"-multi-item-wrapper")},wrapperCls(){return"".concat(this.prefixCls,"-multi-wrapper")},labelCls(){return["".concat(this.prefixCls,"-item-label"),{["".concat(this.prefixCls,"-item-label-hide")]:this.hideLabel},{["".concat(this.prefixCls,"-item-indent-").concat(this.indent)]:this.indent&&this.shouldIndentLabel},{disabled:this.isDisabled()||this.disableLabel}]},shouldIndentLabel(){return!(!this.indent||!this.label||this.hideLabel)}},methods:{register(t){this.fields=this.fields||[],this.fields.push(t)},unregister(t){this.fields.splice(this.fields.indexOf(t),1)},isDirty(){return this.fields.some((t=>t.isDirty))},isDisabled(){return this.fields.every((t=>t.isFieldDisabled))}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapperCls},[t.hideLabel?t._e():i("div",{class:t.labelCls},[t.label?i("label",{domProps:{textContent:t._s(t.label)}}):t._e()]),i("div",{class:t.itemsWrapperCls},[i("div",{class:t.itemsCls},[t._t("default")],2)])])}),[],!1,null,null,null).exports;function Vo(t){return y(t.disableSort)?t.disableSort:!!t.action}const qo=/(\d+)%/;function Uo(t,e){const i=+t.el.dataset.width,n=i+e,s=t.getMinWidth();return n<=s&&(e=-(i-s)),e}function Yo(t,e){const i=+t.el.dataset.width;return Math.ceil(i+e)}function Ko(t,e){t.el.dataset.width=e}function Go(t,e){let i=t.findIndex((t=>t.id===e))+1,n=t[i];for(;n&&!0===n.data.hide;)n=t[++i];return n}function Xo(t,e={visible:!1,noFixed:!1,omitColumns:[]}){return t.filter((t=>(!e.visible||!t.data.hide)&&((!e.noFixed||!t.data.width)&&(!e.omitColumns||!e.omitColumns.includes(t.id)))))}function Zo(t,e={onlyVisible:!1,noFixedColumns:!1,omitColumns:[]}){return(t=Xo(t,{visible:e.onlyVisible,noFixed:e.noFixedColumns,omitColumns:e.omitColumns})).reduce(((t,e)=>t+=e.getCurrentWidth()),0)}function Qo(t,e){let i=t.getCurrentWidth(),n=1;e<0&&(n=-1,e=Math.abs(e));const s=Math.floor(i+n*Math.floor(e*i)),o=t.getMinWidth();return Ko(t,Math.max(o,s)),o>s?o-s:0}function Jo(t,e){let i=qo.exec(t);return i&&i[1]?Math.floor(e*+i[1]/100):+t}var tr={data:()=>({colsData:{}}),mounted(){this.$_container=this.takeContainer(),this.$_resizeLeftMarker=this.createResizeIndicator(this.$_container),this.$_resizeRightMarker=this.createResizeIndicator(this.$_container),this.$_resizeIndicator=this.createResizeIndicator(this.$_container)},beforeDestroy(){this.removeResizeIndicator(this.$_container,this.$_resizeLeftMarker),this.removeResizeIndicator(this.$_container,this.$_resizeRightMarker),this.removeResizeIndicator(this.$_container,this.$_resizeIndicator)},methods:{adjustResizeIndicatorStyleByMouseMoveEvent(t,e,i){const n=this.$_cols,s=this.$_container.getBoundingClientRect(),o=Go(n,i.id),r=function(t,e){let i=t.findIndex((t=>t.id===e))-1,n=t[i];for(;n&&!0===n.data.hide;)n=t[--i];return n}(n,i.id),a=r&&r.headerEl?r.headerEl.getBoundingClientRect().right-s.left:0,l=o&&o.headerEl?o.headerEl.getBoundingClientRect().right-s.left:s.width,c=o.getMinWidth(),u=a+i.getMinWidth(),d=l-c,h=Math.min(Math.max(u,t.clientX-s.left),d);function p(t,e){t.style.left="".concat(e,"px"),re(t,"col-resizable-indicator--hidden")}p(this.$_resizeLeftMarker,a),p(this.$_resizeRightMarker,l),p(this.$_resizeIndicator,h)},removeResizeIndicator(t,e){e&&t.removeChild(e)},createResizeIndicator(t){const e=document.createElement("div");return oe(e,"col-resizable-indicator"),oe(e,"col-resizable-indicator--hidden"),t.appendChild(e),e},takeCols(){let t=[...this.$refs["header-col-group"].querySelectorAll("col")];const e=[...this.$refs.theader.querySelectorAll("th")].reduce(((t,e)=>(t[e.getAttribute("name")]=e,t)),{}),i=this.currentColumns.reduce(((t,e)=>(t[e[this.fieldInfo.columnKey]]=e,t)),{}),n=this;t=t.map((t=>({id:t.getAttribute("name"),el:t,headerEl:e[t.getAttribute("name")],data:i[t.getAttribute("name")],getWidth(t){const e=Jo(this.data.defaultWidth,t);return Jo(this.data.width,t)||e||this.headerEl.clientWidth||100},getCurrentWidth(){return+this.el.dataset.width||100},getMinWidth(){const{action:t,tip:e,title:i,field:s,minWidth:o}=this.data,r=n.groupInfo;if(r.action&&r.actionField===s)return 84;let a=0;return se(this.headerEl,"is-draggable")&&se(this.headerEl,"cell-first")&&(a+=16),se(this.headerEl,"last-th-cell")&&(a+=17),o?(a+=o,a):(i&&(a+=24),t&&(a+=28),e&&(a+=26),Vo(this.data)||(a+=12),a+16)},canResize:!1})));const s=t.reduce(((t,e)=>(t[e.id]=e,t)),{});return{cols:t,colsMap:s}},takeContainer(){return this.$refs.container},applyColsWidth(t,e){for(const i of t)if(i.el){let t=i.getWidth(e);t0&&this.applyColsWidth(e,s);let o=Zo(e,this.currentColumns);(t.forceFit||o!==this.$options.tableWidth||t.containerWidth)&&function(t,e,i,n={omitFixedColumns:!1,omitColumns:[]}){let s=Zo(t,{onlyVisible:!0}),o=Zo(t,{onlyVisible:!0,noFixedColumns:n.omitFixedColumns,omitColumns:n.omitColumns}),r=s-o,a=function(t,e,i){return(i-t)/e}(s,o,i),l=Xo(t,{visible:!0,noFixed:n.omitFixedColumns,omitColumns:n.omitColumns});if(0===i||i0?a+=a>0?t/i:-t/i:c.push(d.id)}if(u=n.omitColumns&&n.omitColumns.length>=1?n.omitColumns:[],u=u.concat(c),s=Zo(t,{onlyVisible:!0}),s>i){let t=s-i;for(const i of u){const n=e[i];if(n&&t>0){let e=t,i=+n.el.dataset.width-e;const s=n.getMinWidth();s>i&&(i=s,e=s-+n.el.dataset.width),t-=e,Ko(n,i)}}}else if(s0?1:0))),t>0&&t--}}}(e,i,s,{omitFixedColumns:t.applyHeadersWidth,omitColumns:t.omitColumns}),this.renderColumns(e,t),this.$options.tableWidth=Zo(e,this.currentColumns),this.$refs.scrollbar&&this.$refs.scrollbar.update(),this.$_cols=e,this.$_colsMap=i},fixContainerWidth(){let t=this.takeContainer();Vt(t,"width",t.clientWidth)},autoContainerWidth(){Vt(this.takeContainer(),"width","auto")},onHeaderCellMouseMove(t,e,i){t._isGroup&&t._subColumns.length>0&&(e=t._subColumns[t._subColumns.length-1][this.fieldInfo.columnKey]);let n=i.target;for(;n&&"TH"!==n.tagName;)n=n.parentNode;const s=this.$_colsMap[e];n.getBoundingClientRect().right-i.pageX<10?(Vt(n,"cursor","col-resize"),n._canResize=!0,s.canResize=!0):(Vt(n,"cursor",""),n._canResize=!1,s.canResize=!1)},onHeaderCellMouseDown(t,e,i,n){t._isGroup&&t._subColumns.length>0&&(e=t._subColumns[t._subColumns.length-1][this.fieldInfo.columnKey]);const s=this.$_colsMap[e];if(!s.canResize)return;s.headerEl._resizing=!0,n.stopPropagation(),document.onselectstart=()=>!1,document.ondragstart=()=>!1;let o={startX:n.clientX,dragging:!0,diff:0};const r=t=>{t.stopPropagation(),o.dragging&&(o.diff=Math.ceil(t.clientX-o.startX),this.adjustResizeIndicatorStyleByMouseMoveEvent(t,i,s))};Yt(document,"mouseup",(t=>{t.stopPropagation(),o.dragging=!1,Kt(document,"mousemove",r);let i=Go(this.$_cols,e),n=Uo(s,o.diff);n=-Uo(i,-n);let a=Yo(s,n),l=Yo(i,-n);Ko(s,a),Ko(i,l),this.renderColumn(s),this.renderColumn(i),oe(this.$_resizeIndicator,"col-resizable-indicator--hidden"),oe(this.$_resizeLeftMarker,"col-resizable-indicator--hidden"),oe(this.$_resizeRightMarker,"col-resizable-indicator--hidden"),document.onselectstart=null,document.ondragstart=null,delete s.headerEl._resizing,this.$emit("column-resize",this.colsData)})),Ut(document,"mousemove",r)},renderColumn(t){t.el.setAttribute("width",t.el.dataset.width),this.$set(this.colsData,t.id,t.el.dataset.width)},renderColumns(t,e){e.applyHeadersWidth||0!==Object.keys(this.colsData).length||Pe("should apply headers width before render it. or you will get wrong width on col");for(let i of t)this.renderColumn(i)}}};function er(t,e,i){t[e]?i[e]=t[e]:i[e]||(i[e]=function(){})}const ir=.1;class nr{constructor(t,e={},i={}){this.id=Yi(),this.el=t,this.payload=i,this.isOver=e.isOver,this.applyOpts(e),this.__synoDD=!0,this.isTarget=!0,this.isNotifyTarget=!0,this.order=x(e.order)?e.order:10}applyOpts(t){t.extDDGroup&&window.Ext&&window.Ext.dd.DDM.regDragDrop(this,t.extDDGroup),er(t,"notifyEnter",this),er(t,"notifyDrop",this),er(t,"notifyOver",this),er(t,"notifyOut",this),er(t,"notifyValidDrop",this),er(t,"notifyInvalidDrop",this)}isLocked(){return!1}getEl(){return this.el}}class sr{constructor(t,e={},i={}){this.boundMouseDown=this.handleMouseDown.bind(this),this.el=t,this.manager=null,this.isDragging=!1,this.isEnteringZone=!1,this.enteredZone=null,this.targetZones=[],this.applyOpts(e),this.payload=i,this.autoScrollElement=!!x(e.autoScrollElement)&&e.autoScrollElement}setAutoScrollElement(t){this.autoScrollElement=t}applyOpts(t){er(t,"onDragEnter",this),er(t,"onDragOver",this),er(t,"onDragOut",this),er(t,"onDrag",this),er(t,"onBeforeDrag",this),er(t,"onBeforeDrop",this),er(t,"onBeforeDragOut",this),er(t,"onBeforeDragOver",this),er(t,"onBeforeDragEnter",this),er(t,"onDrop",this),er(t,"onValidDrop",this),er(t,"onInvalidDrop",this),er(t,"startDrag",this),er(t,"endDrag",this),this.getTargetEl=t.getTargetEl,this.getTargetContent=t.getTargetContent,this._alignOffset={x:t.offsetX||20,y:t.offsetY||20},this._ghostCls=t.ghostCls||"x-dd-drag-proxy",this.validStatusCls=t.validGhostCls||"dd-valid",this.invalidStatusCls=t.invalidGhostCls||"dd-invalid"}isDraggable(){return this.el._markDraggable}get alignOffset(){return this._alignOffset}set ghostCls(t){this._ghostCls=t}get ghostCls(){return this._ghostCls}getValidStatusCls(){return this.validStatusCls}getInvalidStatusCls(){return this.invalidStatusCls}set el(t){this._el&&(Kt(this._el,"mousedown",this.boundMouseDown),delete this._el._markDraggable,delete this._el._ddTarget),t&&(t._markDraggable=!0,t._ddTarget=this,Ut(t,"mousedown",this.boundMouseDown)),this._el=t}get el(){return this._el}addMetaProp(t,e){this._meta||(this._meta={}),this._meta[t]=e}getMetaProp(t){return this._meta?this._meta[t]:null}handleMouseDown(t){if(0===t.button&&!0!==this.isDragging)return this.manager.handleMouseDown(t,this)}registerDragZones(t){Array.isArray(t)||(t=[t]);for(const e of t)this.registerDragZone(e)}registerDragZone(t){this.isDragZoneRegistered(t)||(this.targetZones.push(t),this.targetZones=this.targetZones.sort(((t,e)=>e.order-t.order)),!0===this.isDragging&&this.manager.cacheDragZones(this))}isDragZoneRegistered(t){return this.targetZones.includes(t)}unregisterDragZones(t){Array.isArray(t)||(t=[t]);for(const e of t)this.unregisterDragZone(e)}unregisterDragZone(t){const e=this.targetZones.indexOf(t);e>-1&&this.targetZones.splice(e,1),!0===this.isDragging&&this.manager.cacheDragZones(this)}getTargetZones(){return this.targetZones}purge(){this.off("mousedown",this.boundMouseDown),this.manager=null,delete this.el._markDraggable,delete this.el._ddTarget,this._el=null}_startDrag(t,e){this.isDragging=!0,this.startDrag(t,e,this),this.el.__isDragging=!0}beforeEndDrag(){}_endDrag(){this.isDragging=!1,this.endDrag(this),setTimeout((()=>{this.el&&(this.el.__isDragging=!1)}),0)}_onDragEnter(t,e){if(this.isEnteringZone)return;if(this.isEnteringZone=!0,this.enteredZone=e,!1===this.onBeforeDragEnter(t,e))return!1;const i=this.onDragEnter(t,e,this);!1!==i&&this.manager.updateGhostCls(i)}_onDragOut(t,e){if(this.isEnteringZone=!1,this.enteredZone=null,!1===this.onBeforeDragOut(t,e))return!1;const i=this.onDragOut(t,e,this);!1!==i&&this.manager.updateGhostCls(i)}_onDragOver(t,e){if(!1===this.onBeforeDragOver(t,e))return!1;const i=this.onDragOver(t,e,this);!1!==i&&this.manager.updateGhostCls(i)}_onDrag(t){if(this.autoScrollElement){let e=["none","none"],i=[0,0];this._keepScrolling&&(window.clearInterval(this._keepScrolling),this._keepScrolling=null);const n=(t,e)=>{"left"===t[0]?this.autoScrollElement.scrollLeft-=e[0]*ir:"right"===t[0]&&(this.autoScrollElement.scrollLeft+=e[0]*ir),"top"===t[1]?this.autoScrollElement.scrollTop-=e[1]*ir:"bottom"===t[1]&&(this.autoScrollElement.scrollTop+=e[1]*ir)},s=(t,e)=>{this._keepScrolling=window.setInterval((()=>{n(t,e)}),100),n(t,e)},o=this.autoScrollElement.getBoundingClientRect();t.clientXo.right&&(i[0]=Math.abs(t.clientX-o.right),e[0]="right"),t.clientYo.bottom&&(i[1]=Math.abs(t.clientY-o.bottom),e[1]="bottom"),s(e,i)}this.onDrag(t,this)}_onDrop(t,e){this._keepScrolling&&(window.clearInterval(this._keepScrolling),this._keepScrolling=null),!1!==this.onBeforeDrop(t)&&(this.onDrop(t,e,this),this.isEnteringZone?(this.onValidDrop(t,this.enteredZone,this),this.enteredZone.notifyValidDrop(t,this.enteredZone,this)):(this.onInvalidDrop(t,e,this),e&&e.notifyInvalidDrop(t,e,this)),this.isEnteringZone=!1)}onBeforeDrop(){}onBeforeDragOut(){}onBeforeDragOver(){}onBeforeDragEnter(){}onBeforeDrag(t,e){}on(t,e){return Ut(this.el,t,e)}off(t,e){return Kt(this.el,t,e)}}class or{constructor(){Dt||(this.landedTarget=null,this.startX=null,this.startY=null,this.startThreshold=10,this.currentDragTarget=null,this.preEnterZone=null,Ut(document,"mousemove",this.handleMouseMove.bind(this)),Ut(document,"mouseup",this.handleMouseUp.bind(this)),this.createGhost(),this._ghostStatusCls="",this._cacheDragZonesRects=[])}isDraggable(t){return t.isDraggable()}hideGhost(){Vt(this.ghostEl,"display","none"),this._ghostStatusCls=""}unhideGhost(){Vt(this.ghostEl,"display","block")}setGhostClass(t){this.ghostEl&&(this.ghostEl.className="",oe(this.ghostEl,t.ghostCls),oe(this.ghostEl,"v-dd-ghost"))}cacheDragZones(t){const e=t.getTargetZones();this._cacheDragZonesRects=[];for(const i of e)this._cacheDragZonesRects.push(i.el.getBoundingClientRect());return this._cacheDragZonesRects}updateValidGhostCls(){this.currentDragTarget&&this.updateGhostCls(this.currentDragTarget.getValidStatusCls())}updateInvalidGhostCls(){this.currentDragTarget&&this.updateGhostCls(this.currentDragTarget.getInvalidStatusCls())}updateGhostCls(t){t!==this._ghostStatusCls&&""!==t&&x(t)&&(""!==this._ghostStatusCls&&re(this.ghostEl,this._ghostStatusCls),oe(this.ghostEl,t),this._ghostStatusCls=t)}createGhost(){if(this.ghostEl)return;let t=document.body,e=document.createElement("div");return Vt(e,"position","absolute"),Vt(e,"cursor","move"),Vt(e,"zIndex","999999"),Vt(e,"backgroundColor","white"),t.insertBefore(e,t.firstChild),this.ghostEl=e,this.ghostEl}destroyDragTarget(t){t.purge()}registerDragTarget(t){t.manager=this}validateTarget(t,e,i){return!(i!==e.getTarget().id&&!e.within(i))||(this.getProxy().setStatus(this.dropNotAllowed),!1)}isOverDragZones(t){if(!this.ghostEl)return;let e=this.currentDragTarget.getTargetZones();if(e){for(let[i,n]of this._cacheDragZonesRects.entries()){const s=e[i];if(s.isOver&&s.isOver(t,n,this.currentDragTarget))return s;if(jt(n,t.clientX,t.clientY)&&s.el.contains(t.target))return s}return null}}handleMouseMove(t){if(!this.currentDragTarget)return!0;if(Math.max(Math.abs(t.pageX-this.startX),Math.abs(t.pageY-this.startY)){t.prototype.$DragZone=nr,t.prototype.$DragDropTarget=sr,t.prototype.$ddm=new or}));function ar(t,e,i){this.rowDraggableStates.isDragging=!0,this.rowDraggableStates.draggingIndex=i.payload.index}function lr(t){this.rowDraggableStates.isDragging=!1,this.rowDraggableStates.draggingIndex=-1}function cr(t){let e=Rt(document.elementFromPoint(t.clientX,t.clientY),"tr");if(!e)return;let i=e.rowIndex;const n=this.isItemDraggable(this.current[i]);this.rowDraggableStates.landedIndex=n?i:-1}function ur(){let t=this.rowDraggableStates.draggingIndex,e=this.rowDraggableStates.landedIndex;-1!==t&&-1!==e&&(this.current=function(t,e,i){let n=t[e],s=t.slice();return n?(i>e?(s.splice(i+1,0,n),s.splice(e,1)):(s.splice(i,0,n),s.splice(e+1,1)),s):s}(this.current,t,e),this.$emit("reorder",{data:this.current}))}var dr={mounted(){},data:()=>({rowDraggableStates:{isDragging:!1,draggingIndex:-1,landedIndex:-1}}),methods:{getLandedClass(t){if(!this.rowDraggableStates)return[];let e=this.rowDraggableStates.draggingIndex,i=this.rowDraggableStates.landedIndex,n=["is-landed"];return!1===this.rowDraggableStates.isDragging||this.rowDraggableStates.landedIndex!==t||-1===this.rowDraggableStates.landedIndex?[]:(i>=e?n.push("landed-down"):n.push("landed-up"),n)},getDraggingClass(t){return this.rowDraggableStates&&!1!==this.rowDraggableStates.isDragging&&this.rowDraggableStates.draggingIndex===t?["is-dragging"]:[]},buildDraggableCols(){let t=this.$refs.content&&[...this.$refs.content.querySelectorAll("table")];if(!t)return;let e=this.currentVisible.length,i=new nr(t[0]);for(let n=0;n\n
\n
\n \n \n ').concat(e.innerHTML,"\n \n
\n
\n
\n ")}.bind(this)},{index:n});t.registerDragZone(i),this.$ddm.registerDragTarget(t)}}}}};const hr=[-4,-9];function pr(t,e){if(e.el._resizing||e.el._canResize)return!1}function fr(t,e,i){this.colDraggableStates.isDragging=!0,this.colDraggableStates.draggingIndex=i.payload.index,this.colDraggableStates.draggingKey=i.payload.key,this.$_topMoveableIndicator=xr(document.body,"top"),this.$_bottomMoveableIndicator=xr(document.body,"bottom")}function mr(t){this.colDraggableStates={isDragging:!1,draggingIndex:-1,landedIndex:-1,draggingKey:null,landedKey:null},function(t){for(const e of t)e&&e.parentNode&&e.parentNode.removeChild(e)}([this.$_topMoveableIndicator,this.$_bottomMoveableIndicator])}function gr(t,e){const i=e?re:oe;for(const n of t)i(n,"col-moveable-indicator--hidden")}function vr(t,e,i="top",n){let{top:s,right:o,left:r,bottom:a}=t.getBoundingClientRect();const[l,c]=this.$alignManager.getScroll(document.body);let u=0;t.getAttribute("is-group")&&(u=20),r=("before"===n?r:o)+hr[0]+l,s=("top"===i?s:a+e.offsetWidth+u)+hr[1]+c,Vt(e,"left","".concat(r,"px")),Vt(e,"top","".concat(s,"px"))}function yr(t){let e=Rt(document.elementFromPoint(t.clientX,t.clientY),"th");if(!e||!e._markDraggable)return;let i="before",n=e.cellIndex,s=e;const{width:o}=e.getBoundingClientRect();if(function(t,e){const{x:i,y:n}=e.getBoundingClientRect();return[t.pageX-i,t.pageY-n]}(t,e)[0]>o/2){i="after";const t=function(t,e,i){let n=t.findIndex((t=>t[i]===e)),s=t[++n];for(;s&&br(s);)s=t[++n];return{col:s,index:n}}(this.columns,e.getAttribute("name"),this.fieldInfo.columnKey);t.col?(e=this.$options.headersMap[t.col[this.fieldInfo.columnKey]],n=t.index):(e=null,n=t.index)}if(this.colDraggableStates.landedIndex=n,this.colDraggableStates.position=i,this.colDraggableStates.landedKey=e?e.getAttribute("name"):"n/a",this.colDraggableStates.draggingKey===this.colDraggableStates.landedKey)return gr([this.$_topMoveableIndicator,this.$_bottomMoveableIndicator],!1),!1;gr([this.$_topMoveableIndicator,this.$_bottomMoveableIndicator],!0),vr.call(this,s,this.$_topMoveableIndicator,"top",i),vr.call(this,s,this.$_bottomMoveableIndicator,"bottom",i)}function br(t){return t.hide||t.groupKey}function wr(){let{draggingIndex:t,landedIndex:e,draggingKey:i,landedKey:n}=this.colDraggableStates;if(-1===t||-1===e)return;const s=this.columns.findIndex((t=>t[this.fieldInfo.columnKey]===i));let o=-1;o=e===this.columns.length?e:this.columns.findIndex((t=>t[this.fieldInfo.columnKey]===n));let r=this.columns.slice();r=function(t,e,i){let n=t[e],s=t.slice(),o=e;return n?(s.splice(i,0,n),i({colDraggableStates:{isDragging:!1,draggingIndex:-1,landedIndex:-1}}),methods:{removeMoveableColsDD(){if(this.$options.moveableDD){for(const t of this.$options.moveableDD)t.purge();this.$options.moveableDD=[]}},buildMoveableCols(){this.removeMoveableColsDD(),this.$options.moveableDD=this.$options.moveableDD||[];const t=this.$refs.theader;if(!t)return;let e=this.isGroupHeadMode?this.firstColumnRow:this.currentVisibleColumns,i=e.length,n=new nr(t);this.$options.headersMap=[...this.$refs.theader.querySelectorAll("th")].reduce(((t,e)=>(t[e.getAttribute("name")]=e,t)),{});for(let s=0;s\n
\n
\n '.concat(i.innerText,"\n
\n ")}.bind(this)},{index:s,key:t[this.fieldInfo.columnKey]});o.registerDragZone(n),this.$ddm.registerDragTarget(o),this.$options.moveableDD.push(o)}}}};function Sr(t,e){return t>=0&&t({hoverIndex:null}),watch:{hoverIndex(t,e){de((()=>{let i=this.$refs["row-".concat(t)],n=this.$refs["row-".concat(e)];this.groupTable&&(i=this.$refs.groupNode.$refs["row-".concat(t)],n=this.$refs.groupNode.$refs["row-".concat(e)]),this.toggleHoverRow("row-hover",i,n),this.toggleHoverRow("row-hover",this.$refs["expandable-row-".concat(t)],this.$refs["expandable-row-".concat(e)])}))}},methods:{toggleHoverRow(t,e,i){e=e&&e[0],(i=i&&i[0])&&re(i,t),e&&oe(e,t)},ensureRowVisible(t,e=!1){if(this.virtualScroll)return;const i=this.$refs["row-".concat(t)];i&&i[0]&&this.$refs.scrollbar.ensureVisible(i[0],10,e)},getItemValue:t=>t.index,selectRowItem({index:t}){return this.selectRow(t)},toggleRow(t,e){return this.toggleItem(t,e)},selectRow(t,{ensureRowVisible:e=!0}={}){return e&&this.ensureRowVisible(t),this.selectItem({index:t},t)},selectPrevRow(){Sr(this.lastSelectIndex-1,this.current)&&this.selectRow(this.lastSelectIndex-1)},selectNextRow(){Sr(this.lastSelectIndex+1,this.current)&&this.selectRow(this.lastSelectIndex-1)},defaultSelect(){if(T(this.defaultSelected))for(const t of this.defaultSelected)this.clickRow(t,null,{forceKeepSelection:!0});else for(let t=0,e=this.current.length;t{this.toggleHoverRow("row-hover",this.$refs["row-".concat(this.hoverIndex)],null),this.toggleHoverRow("row-hover",this.$refs["expandable-row-".concat(this.hoverIndex)],null)}))),s},getRow(t){if(le(t))return this.current?this.current[t]:null;if(m(t)){const[e,i]=t.split(":"),n=this.categories.find((t=>t.key===e));return n?n.items[i]:null}return null},getRows(t){return t.map((t=>this.getRow(t)))},unselectCategory(t){if(this.multipleSelected){for(const[e]of t.items.entries()){const i="".concat(t.key,":").concat(e);this.selectIndexes.delete(i)}this.selectIndexes=new Set(this.selectIndexes)}},selectCategory(t){if(this.multipleSelected){for(const[e]of t.items.entries()){const i="".concat(t.key,":").concat(e);this.selectIndexes.add(i)}this.selectIndexes=new Set(this.selectIndexes)}},selectAll(){if(this.multipleSelected)if(this.groupTable){let t=[];for(const e of this.categories)t=t.concat(e.items.reduce(((t,i,n)=>{const s="".concat(e.key,":").concat(n);return this.isRowSelectable(s)&&t.push(s),t}),[]));this.selectIndexes=new Set(t)}else this.selectIndexes=new Set(this.current.reduce(((t,e,i)=>(this.isRowSelectable(i)&&t.push(i),t)),[]))},selectRange(t,e,{keepSelection:i=!1}={}){i||this.clearSelection();let n="addSelectedItem";if(this.isActionableSelectionMode&&this.isItemSelected({index:e})&&(n="removeSelectedItem"),this.groupTable){const i=this.categories;let[s,o]=t.split(":"),[r,a]=e.split(":"),l=i.findIndex((t=>t.key===s)),c=i.findIndex((t=>t.key===r));o=Number(o),a=Number(a);const u=l===c?oi[l].items.length-1&&(l+=1,o=0),s=i[l].key,d="".concat(s,":").concat(o);this.isRowSelectable(d)&&this[n]({index:d})}else if(t=e;s--)this.isRowSelectable(s)&&this[n]({index:s});return this.selectIndexes=new Set(this.selectIndexes),this.lastSelectRangeIndex=e,!0},hoverRow(t){this.hoverIndex=t},getSelectedRowClass(t){return this.isItemSelected({index:t})?["row-selected"]:[]},getRowClass(t,e){let i={"row-disabled":this.isItemDisabled&&this.isItemDisabled(e)},n=this.customRowClasses||[];if(e[this.fieldInfo.rowInfo]&&e[this.fieldInfo.rowInfo].customClasses){const t=e[this.fieldInfo.rowInfo].customClasses;(Array.isArray(t)||m(t))&&(n=n.concat(t))}return["row",i].concat(n).concat(this.getSelectedRowClass(t))},isRowUnselectable({index:t}){return!this.isRowSelectable(t)},isRowSelectable(t){let e=this.getRow(t);return!e||(!e[this.fieldInfo.rowInfo]||!e[this.fieldInfo.rowInfo].unselectable)}}};Li({components:[bi]});var kr=bi,Tr=R({name:"TreeNode",components:{vSlideUpDown:dn},props:{node:{type:Object,required:!0},columns:{type:Array,required:!0},index:{type:Number,required:!0},level:{type:Number,required:!0},defaultExpand:{type:Boolean,default:!1}},data(){return{prefix:"v-table-tree-node",currentExpand:this.defaultExpand||this.node.expanded||!1}},computed:{expandable(){return!this.node.leaf&&this.node.children}},methods:{toggle(){this.expandable&&(this.currentExpand=!this.currentExpand)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.prefix+"-ct"},[i("table",{class:t.prefix+"-table"},[i("tr",t._l(t.columns,(function(e,n){return i("td",{key:n,attrs:{"syno-id":t.synoId+"-td-"+n}},[t._t("td",(function(){return[i("div",{staticClass:"cell-content"},[0===n?i("span",{class:"cell-indent-"+t.level}):t._e(),t._v(" "),0===n?i("span",{staticClass:"cell-expandable",class:{show:t.expandable,expand:t.currentExpand,collapse:!t.currentExpand},on:{click:function(e){return t.toggle()}}}):t._e(),t._v(" "),i("span",{staticClass:"cell-text"},[(e.fn||e.field)&&e.fn?[t._v("\n "+t._s(e.fn(t.node,this))+"\n ")]:[t._v("\n "+t._s(t.node[e.field])+"\n ")]],2)])]}),{content:t.node[e.field],column:e,index:t.index,cindex:n,node:t.node})],2)})),0)]),t._v(" "),i("v-slide-up-down",{attrs:{expand:t.currentExpand,"syno-id":t.synoId+"-slide-up-down"}},[i("div",{staticClass:"tree-child"},[t._l(t.node.children,(function(e,n){return[!t.node.leaf&&t.node.children?i("tree-node",{key:n,attrs:{node:e,columns:t.columns,index:n,level:t.level+1,"syno-id":t.synoId+"-"+n}}):t._e()]}))],2)])],1)}),[],!1,null,null,null).exports,Dr={name:"vDataTableColGroup",functional:!0,props:{columns:{type:Array,default:()=>[],required:!0},columnIdField:{type:String,default:void 0,required:!0},followHeadColGroup:{type:Boolean,default:!1},colsData:{type:Object,default:()=>{}}},render:(t,e)=>t("colgroup",e.data,e.props.columns.map((i=>{const n=i[e.props.columnIdField];return t("col",{attrs:{name:n,width:!!e.props.followHeadColGroup&&e.props.colsData[n]},key:i[e.props.columnIdField]})})))},Ir={name:"Expansion",props:{expand:{type:Boolean,default:!1},active:{type:Boolean,default:!1},duration:{type:Number,default:240}},render(){const t=this.$slots.default;if(!t||!t.length)return;if(t.length>1)return void Pe("basic expansion component should only handle one child");return t[0]},data:()=>({}),mounted(){this.$nextTick((()=>{this.doLayout(!1),Ut(this.$el,"transitionend",this.onTransitionEnd)}))},beforeDestroy(){},watch:{expand(){this.active&&this.doLayout(!0)}},methods:{setHeight(t,e,i){i&&(Vt(this.$el,"height",t),Vt(this.$el,"transition","height ease ".concat(this.duration,"ms")),this.forceRelayout=this.$el.scrollHeight),Vt(this.$el,"height",e)},onTransitionEnd(t){this.expand?this.$emit("expand"):this.$emit("collapse")},doLayout(t=!0){const e=this.$el.scrollHeight;this.$nextTick((()=>{if(t){Vt(this.$el,"height","auto");const t=this.$el.scrollHeight;this.setHeight("".concat(e,"px"),"".concat(t,"px"),!0)}else this.setHeight("".concat(e,"px"),"auto",!1)}))}}};function $r(t,e){return"enable"===e.props.action||"checkbox"===e.props.action?t(gn,{props:{synoId:e.props.synoId,value:e.props.value,stopPropagation:!0,disabled:e.props.isActionDisabled},on:{change:e.listeners["action-change"]}}):"radio"===e.props.action?t(Po,{props:{synoId:e.props.synoId,value:e.props.value,stopPropagation:!0,disabled:e.props.isActionDisabled},on:{click:e.listeners["action-change"]}}):null}function Or(t,e){return t(Ir,{props:{active:e.props.expandable,expand:e.props.expand}},[Mr(t,e)])}function Mr(t,e){const i=[];e.props.showExpandIcon&&i.push(t("div",{staticClass:"expand-icon",class:e.props.expandIconCls,on:{click:t=>{t.stopPropagation(),e.listeners["toggle-expand"]&&e.listeners["toggle-expand"]()}}}));const n=e.props.action?function(t,e){return t("div",{staticClass:"cell action-cell",directives:[{name:"tooltip",value:e.props.tooltip}]},[$r(t,e)])}(t,e):function(t,e){const i=[];if(e.props.expandable&&e.props.expand){const t=e.props.hasExpandSlot?e.props.expandSlot:"basic-expand-default";e.scopedSlots[t]&&i.push(e.scopedSlots[t]({row:e.props.item,data:e.props.value}))}else{const n=e.scopedSlots[e.props.fieldSlot]?e.scopedSlots[e.props.fieldSlot]({data:e.props.value,row:e.props.item,update:e.props.updateItem}):function(t,e){return e.props.getHtml?t("div",{staticClass:"html-content",domProps:{innerHTML:e.props.getHtml(e.props.item)}}):e.props.useFieldSlot?e.scopedSlots.td({fieldKey:e.props.fieldKey,content:e.props.value,column:e.props.column,item:e.props.item,index:e.props.index,cindex:e.props.cindex}):e.props.contentFn?e.props.contentFn(e.props.item):e.props.value}(t,e);i.push(n)}return t("div",{staticClass:"cell content-cell",directives:[{name:"tooltip",value:e.props.tooltip}]},i)}(t,e);return i.push(n),e.props.hasHoverAction&&e.scopedSlots["row-hover-action"]&&i.push(function(t,e){return t("div",{class:e.props.hoverActionCls},e.scopedSlots["row-hover-action"]({item:e.props.item,activate:e.props.hoverActionActivate,deactivate:e.props.hoverActionDeactivate}))}(t,e)),t("div",{staticClass:"inner-cell"},i)}var Er={functional:!0,props:{column:{type:Object,default:()=>{}},value:{type:[String,Number,Boolean,Object,Array],default:void 0},item:{type:Object,default:()=>{}},fieldKey:{type:String,default:void 0},index:{type:Number,default:0},cindex:{type:Number,default:0},expandable:{type:Boolean,default:!1},hasExpandSlot:{type:Boolean,default:!1},expandSlot:{type:String,default:void 0},expand:{type:Boolean,default:!1},expandIconCls:{type:Object,default:()=>{}},showExpandIcon:{type:Boolean,default:!1},action:{type:String,default:void 0},isActionDisabled:{type:Boolean,default:!1},tooltip:{type:[String,Boolean,Object],default:void 0},useFieldSlot:{type:Boolean,default:!1},fieldSlot:{type:String,default:void 0},contentFn:{type:Function,default:void 0},getHtml:{type:Function,default:void 0},hoverActionCls:{type:[Object,Array],default:()=>{}},hoverActionActivate:{type:Function,default:void 0},hoverActionDeactivate:{type:Function,default:void 0},hasHoverAction:{type:Boolean,default:!1},updateItem:{type:Function,default:void 0},hidden:{type:Boolean,default:!1}},render:(t,e)=>function(t,e){let i=[];return e.props.hidden||(i=[e.props.expandable?Or(t,e):Mr(t,e)]),t("td",{...e.data,attrs:{"syno-id":e.props.synoId,...e.data.attrs}},i)}(t,e)};var Br=R({name:"GroupNode",components:{vTableCell:Er,vSlideUpDown:un,vColGroup:Dr},directives:{tooltip:ri},mixins:[U("data-table")],props:{categories:{type:Array,default:()=>[]},groupInfo:{type:Object,default:()=>{}},fieldInfo:{type:Object,default:()=>({itemKey:"id",rowInfo:"_rowInfo"})}},data:()=>({actionSortDirection:"ASC",prefix:"v-table-group-node",categoryExpandRecord:{},$_categories:[]}),computed:{table(){return this["data-table"].instance},rowClass(){return[{"with-border":this.groupInfo.rowBorder}]},containerClass(){return["".concat(this.prefix,"-ct"),{expandable:this.groupInfo.expandable}]},titleClass(){return["".concat(this.prefix,"-group-title"),{"with-border":this.groupInfo.titleBorder,expandable:this.groupInfo.expandable}]},tableClass(){return[{["".concat(this.prefix,"-table")]:!0}]},currentCategories:{set(t){for(const e of t)this.categoryExpandRecord.hasOwnProperty(e.key)||this.$set(this.categoryExpandRecord,e.key,this.groupInfo.defaultExpand);for(const e of t)for(const t of this.table.currentVisibleColumns)t.field===this.groupInfo.actionField&&this.setCategoryEnableState(t,e);this.$data.$_categories=t.sort(this.getCategoriesSortFn())},get(t){return this.$data.$_categories}}},watch:{categories:{handler(t){this.currentCategories=t.slice()},immediate:!0}},created(){this.$options.activeIndexes={}},methods:{getCategoriesSortFn(){return this.table.sortColumn&&this.table.sortColumn.field===this.groupInfo.actionField?(t,e)=>{let i=t.enableIndeterminate?1:t.enableState?2:0,n=e.enableIndeterminate?1:e.enableState?2:0;if(i!==n){if("DESC"===this.table.sortColumn.sort)return is.items.length-1&&(n+=1,o=0,s=this.currentCategories[n]):(n=0,s=this.currentCategories[n]),this.setActiveCellWithFocus(t,s,n,o,r)},getSlideUpDown(t){return this.$refs["slideUpDown-".concat(t)][0]},toggleCategory(t){if(!1===this.groupInfo.expandable)return;const e=this.getSlideUpDown(t);if(e&&e.inTransition)return;let i=this.categoryExpandRecord[t]||!1;i=!i,this.$set(this.categoryExpandRecord,t,i)},itemAction(t,e,i,n,s,o){return this.groupInfo.actionField===s.field&&this.$nextTick((()=>this.setCategoryEnableState(s,o))),this.table.itemAction(t,e,i,n,s,o)},setCategoriesEnableState(t){for(const e of this.categories)this.setCategoryEnableState(t,e)},setCategoryEnableState(t,e){if(this.groupInfo.actionField!==t.field)return;let i=!1,n=!1;const s=Object.entries(e.items);if(s){for(let[o,r]of s)this.table.isActionDisabled(r,t)||this.table.isActionHidden(r,t)||(!0===this.table.getCellValue(t.field,r,o,e.key)?i=!0:n=!0);i&&n?e.enableIndeterminate=!0:i?(e.enableState=!0,e.enableIndeterminate=!1):(e.enableState=!1,e.enableIndeterminate=!1)}},categoryAction(t){const e=!t.enableState,i=this.table.getColumnByField(this.groupInfo.actionField);if(this.$set(t,"enableState",e),this.$set(t,"enableIndeterminate",!1),"_selection_mode"===i[this.table.fieldInfo.columnKey]&&(e?this.table.selectCategory(t):this.table.unselectCategory(t)),t&&t.items)for(const n of t.items)this.table.isActionDisabled(n,i)||this.table.isActionHidden(n,i)||(n[this.groupInfo.actionField]=e);this.table.setHeadState(i),this.$emit("category-action",{column:i,category:t,enableState:e})},getContentCellClasses(t,e,i,n){let s=this.table.getContentCellClasses(t,e,i,n);return"left"!==(e.align||"left")||e.action||0!==i||s.push("group-indent"),s}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.containerClass},t._l(t.currentCategories,(function(e,n){return i("div",{key:e.key,class:t.prefix+"-group"},[i("div",{class:t.titleClass,on:{click:function(i){return t.toggleCategory(e.key)}}},[t.groupInfo.expandable?i("span",{staticClass:"arrow",class:{expand:!0===t.categoryExpandRecord[e.key]},attrs:{"syno-id":t.synoId+"-group-"+e.key+"-arrow"}}):t._e(),t._v(" "),"enable"===t.groupInfo.action?i("v-checkbox",{attrs:{"syno-id":t.synoId+"-group-checkbox",value:e.enableState,indeterminate:e.enableIndeterminate,"stop-propagation":""},on:{change:function(i){return t.categoryAction(e)}}}):t._e(),t._v(" "),i("span",{staticClass:"content"},[t._t("group-title",(function(){return[t._v("\n "+t._s(e.key)+"\n ")]}),{category:e})],2)],1),t._v(" "),i("v-slide-up-down",{ref:"slideUpDown-"+e.key,refInFor:!0,class:t.prefix+"-table-wrapper",attrs:{expand:!0===t.categoryExpandRecord[e.key],"syno-id":t.synoId+"-group-"+e.key+"-slideUpDown"}},[i("table",{class:t.tableClass,on:{mouseleave:t.table.onMouseLeave}},[i("v-col-group",{ref:"body-col-group",refInFor:!0,attrs:{columns:t.table.isGroupHeadMode?t.table.flattenColumns:t.table.currentVisibleColumns,"column-id-field":t.table.fieldInfo.columnKey,"cols-data":t.table.colsData,"follow-head-col-group":""}}),t._v(" "),i("tbody",[t._l(e.items,(function(s,o){return[i("tr",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.table.getRowTooltip(s),expression:"table.getRowTooltip(item)"}],key:e.key+":"+o,ref:"row-"+e.key+":"+o,refInFor:!0,class:t.table.getRowClass(e.key+":"+o,s).concat(t.rowClass),attrs:{"syno-id":t.synoId+"-tr-"+o},on:{click:function(i){return t.table.clickRow(e.key+":"+o,i)},dblclick:function(i){return t.table.rowDblClick(e.key+":"+o,s,i)},mouseover:function(i){return t.table.hoverRow(e.key+":"+o)}}},t._l(t.table.isGroupHeadMode?t.table.flattenColumns:t.table.currentVisibleColumns,(function(r,a){return i("v-table-cell",{key:r[t.table.fieldInfo.columnKey],ref:"cell-"+n+"-"+o+"-"+a,refInFor:!0,class:t.getContentCellClasses(o,r,a,s),attrs:{role:"cell","syno-id":t.synoId+"-td-"+s[t.table.fieldInfo.rowKey]+"-"+r[t.table.fieldInfo.columnKey],value:t.table.getCellValue(r.field,s,o,e.key),item:s,tabindex:"-1","aria-colindex":a+1,"field-key":r.fieldKey,index:o,cindex:a,expandable:t.table.isBasicExpandable,"has-expand-slot":t.table.hasBasicExpandSlot(r),"expand-slot":t.table.getBasicExpandSlot(r),expand:t.table.expandState[s[t.table.fieldInfo.rowKey]],"expand-icon-cls":t.table.getRowExpandIconCls(s),"show-expand-icon":t.table.expandable&&r[t.table.fieldInfo.columnKey]===t.table.firstVisibleColumnId,action:r.action,"is-action-disabled":t.table.isActionDisabled(s,r),tooltip:t.table.getCellTooltip(r,s),"use-field-slot":r.useSlot||!r.fn&&!r.field,"field-slot":t.table.getFieldSlotName(r),"content-fn":r.fn,"get-html":r.getHtml,"hover-action-cls":t.table.rowHoverActionCls(s[t.table.fieldInfo.rowKey]),"hover-action-activate":t.table.activateHoverAction(s),"hover-action-deactivate":t.table.deactivateHoverAction(s),"has-hover-action":t.table.isLastVisibleCell(r),"update-item":t.table.updateItem(o,r.field),column:r,hidden:t.table.getCellHidden(r,s)},on:{focus:function(i){return t.setActiveCell(i,e,n,o,a)},click:function(e){return t.table.onCellClick(s,r,o,a,e)},contextmenu:function(e){return t.table.onCellContextMenu(s,r,o,a,e)},"action-change":function(i,n){return t.itemAction(i,n,o,s,r,e)},"toggle-expand":function(e){return t.table.toggleRowExpand(s)}},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)})),1)]}))],2)],1)])],1)})),0)}),[],!1,null,null,null).exports,Ar=i(27),Pr=i.n(Ar);var Nr={props:{virtualScroll:{type:Boolean,default:!1},virtualRowHeight:{type:[Number,String],default:29},bufferSize:{type:Number,default:200}},created(){this.$_scrollTop=void 0,this.$options.handleScrollDebounced=Si()(this.handleScroll,10)},mounted(){this.virtualScroll&&Ze(this.$el,this.onVisibleChanged)},beforeDestroy(){this.virtualScroll&&Qe(this.$el,this.onVisibleChanged)},data:()=>({bufferStart:0,bufferEnd:0,cachedSizes:{},virtualTotalSize:0,visibleStart:0,visibleEnd:0}),watch:{current(){this.$refs.scrollbar&&this.virtualScroll&&this.handleScroll({checkScrollSticky:!1})}},computed:{tableOffsetStyle(){return this.virtualScroll?this.autoRowHeight?(this.visibleStart=P(this.visibleStart,0,this.sizes.length-1),{transform:"translateY(".concat(this.sizes[this.visibleStart].acc,"px)")}):{transform:"translateY(".concat(this.visibleStart*+this.virtualRowHeight,"px")}:{}},virtualBodyStyle(){return{height:this.virtualTotalSize+"px",top:0,left:0,width:"1px",position:"absolute"}},sizes(){let t=0;return this.autoRowHeight?this.current.reduce(((e,i)=>(e.push({item:i,acc:t}),t+=this.cachedSizes[i[this.fieldInfo.rowKey]]||+this.virtualRowHeight,e)),[]):[]}},methods:{onVisibleChanged(t){(t.isVisible||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height)&&(this.handleScroll({checkScrollSticky:!1}),this.$nextTick((()=>{this.buildCols({applyHeadersWidth:!0,forceFit:!0})})))},findAnchor(t,e){let i,n=0,s=0,o=0;if(this.autoRowHeight){if(this.sizes.length>0){for(n=Math.max(Math.min(function(t,e){let i=0,n=e.length;for(;ithis.$_scrollTop&&e>=i.acc||tthis.$_scrollTop&&e>=this.visibleStart*+this.virtualRowHeight||t{this.$nextTick((()=>{for(let t=this.visibleStart;t({})},forceSimple:{type:Boolean,default:!1},portalName:{type:String,default:()=>"whitetip-"+String(Math.round(1e7*Math.random()))},size:{type:String,default:"normal",validator:t=>["normal","small"].includes(t)},transitionTime:{type:Array,default:()=>[500,100]},triggerAction:{type:String,default:"hover",validator:t=>["hover","click"].includes(t)},hasPadding:{type:Boolean,default:!0}},data:()=>({isFieldDisabled:void 0}),computed:{currentDisabled(){return this.disabled||this.isFieldDisabled},hasSlot(){return this.$slots.default},whiteTipCls(){return{"v-whitetip-wrapper":!0,disabled:this.currentDisabled,[this.size]:!0}}},created(){this._unregister=this.registerFormItemOnCreated()},beforeDestroy(){this._unregister()},updated(){},methods:{hideTooltip(){var t,e,i;null===(t=this.$refs.tooltip)||void 0===t||null===(e=t._tooltip)||void 0===e||null===(i=e._tooltip_e_hide_cb)||void 0===i||i.call(e)},onActivate(){this.$emit("activate")},onDeactivate(){this.$emit("deactivate")},tipOpts(){let t={content:this.content,cls:"v-whitetip-tooltip text-tip",delay:this.delay,bgOpacity:1,offset:[25,25],attachToElement:!0,interactive:!0,onActivate:this.onActivate,onDeactivate:this.onDeactivate,transitionTime:this.transitionTime,triggerAction:this.triggerAction};return this.hasSlot&&(this.forceSimple||(t.cls="v-whitetip-tooltip complex-tip"),t.usePortal=!0,t.portalName=this.portalName),!1===this.hasPadding&&(t.cls="v-whitetip-tooltip no-padding"),Object.assign(t,this.tooltipOptions),t},registerFormItemOnCreated(){if(!this["form-item"])return E;let t;return this["form-item"].register(this,(e=>{t=e.$watch("isFieldDisabled",(t=>this.isFieldDisabled=t),{immediate:!0})})),()=>{t(),this["form-item"].unregister(this)}}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.tipOpts(),expression:"tipOpts()"}],ref:"tooltip",class:t.whiteTipCls,attrs:{tabindex:"-1"}},[t._t("custom",(function(){return[i("span",{staticClass:"v-whitetip-icon"})]}),{disabled:t.currentDisabled}),t._v(" "),i("v-portal",{attrs:{name:t.portalName,to:t.portalName,"has-portal-target":""}},[t._t("default")],2)],2)}),[],!1,null,null,null).exports),zr=R({components:{vCheckbox:gn,vWhitetip:Fr},props:{columnKey:{type:[String,Number],default:Yi()},column:{type:Object,default:()=>{}},synoId:{type:String,default:""},tooltip:{type:[Boolean,String],default:!1},cindex:{type:Number,default:-1},isActionDisabled:{type:Boolean,default:!1},disableSort:{type:Boolean,default:!1}},methods:{getHeaderTip:t=>m(t.tip)?t.tip:"",getHeaderTipSlotName(t){const e=t.field||t.fieldKey;return"".concat(e,".tip")}}},(function(t,e){var i=e._c;return i("th",e._g(e._b({directives:[{name:"tooltip",rawName:"v-tooltip",value:e.props.tooltip,expression:"props.tooltip"}],ref:e.data.ref,class:e.data.class,attrs:{name:e.props.columnKey,"syno-id":e.props.synoId,role:"columnheader",tabindex:"-1","aria-sort":("ASC"===e.props.column.sort?"ascending":"DESC"===e.props.column.sort&&"descending")||"none","aria-colindex":e.props.cindex+1}},"th",e.data.attrs,!1),e.listeners),[i("div",{staticClass:"inner-cell"},[e.props.column.action?i("div",{staticClass:"action-cell cell",on:{click:e.listeners.sort}},["enable"===e.props.column.action||"checkbox"===e.props.column.action?[i(e.$options.components.vCheckbox,{tag:"component",attrs:{"syno-id":e.props.synoId+"-head-action",value:e.props.column.enableState,indeterminate:e.props.column.enableIndeterminate,disabled:e.props.isActionDisabled,"stop-propagation":""},on:{change:e.listeners["action-change"]}}),e._v(" "),e.props.column.title?i("span",{staticClass:"cell-title"},[e._v(e._s(e.props.column.title))]):e._e(),e._v(" "),e.props.disableSort?e._e():[i("span",{class:"v-table-column-sorter "+("ASC"===e.props.column.sort?"up":"down")})]]:e._e(),e._v(" "),e.props.column.tip?i(e.$options.components.vWhitetip,{tag:"component",attrs:{size:"small",content:e.$options.methods.getHeaderTip(e.props.column)}},[e._t(e.$options.methods.getHeaderTipSlotName(e.props.column))],2):e._e()],2):i("div",{staticClass:"head-cell cell",on:{click:e.listeners.sort}},[e._t("th",(function(){return[i("span",{staticClass:"cell-title"},[e._v(e._s(e.props.column.title))])]}),{title:e.props.column.title,column:e.props.column,cindex:e.props.cindex}),e._v(" "),e.props.disableSort?e._e():[i("span",{class:"v-table-column-sorter "+("ASC"===e.props.column.sort?"up":"down")})],e._v(" "),e.props.column.tip?i(e.$options.components.vWhitetip,{tag:"component",attrs:{size:"small",content:e.$options.methods.getHeaderTip(e.props.column)}},[e._t(e.$options.methods.getHeaderTipSlotName(e.props.column))],2):e._e()],2)])])}),[],!0,null,null,null).exports;i(226);const Lr="local",Rr="custom",Hr="sticky",jr="hover",Wr="_selection_mode";var Vr=R({name:"DataTable",components:{vTableCell:Er,vTableHeaderCell:zr,vPagination:kr,vSpin:xi,vTreeNode:Tr,vGroupNode:Br,vButton:ui,vPerfectScrollbar:Tt,vMenu:$e,vMenuItem:pi,vColGroup:Dr,vSlideUpDown:un},directives:{tooltip:ri},mixins:[dr,_r,tr,Cr,vi,q("data-table"),U("form"),Nr],props:{expandable:{type:[Boolean,Object],default:!1},customRowClasses:{type:Array,default:()=>[]},enableHdMenu:{type:[Boolean,String],default:!0},loadingText:{type:String,default:function(){return this._i18n("common","loading")}},data:{type:Function,default:void 0},isDraggable:{type:Boolean,default:!1},total:{type:Number,default:void 0},currentData:{type:Array,default:()=>[]},columns:{type:Array,required:!0},pagination:{type:Boolean,default:!1},showPagingBar:{type:[Boolean,String],default:!0},hideRefreshBtn:{type:Boolean,default:!1},responseParamsName:{type:Object,default:()=>({total:"total",results:"items"})},treeTable:{type:Boolean,default:!1},autoRowHeight:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},groupTable:{type:Boolean,default:!1},groupInfo:{type:Object,default:()=>({})},treeOption:{type:Object,default:()=>({})},pageNum:{type:Number,default:1},pageSize:{type:Number,default:10},itemsPerPage:{type:[Boolean,Array],default:!1},emptyText:{type:String,default:void 0},sortInfoKey:{type:Object,default:()=>({by:"sort_by",order:"sort_direction"})},autoScrollVisibleWhenSort:{type:Boolean,default:!0},sortMethod:{type:String,default:Lr},isLocalSort:{type:Boolean,default:!0},isCustomSort:{type:Boolean,default:!1},localSortFunc:{type:Function,default:null},minColumns:{type:[Number,String],default:3},scrollbarOptions:{type:Object,default:()=>({})},fieldInfo:{type:Object,default:()=>({columnKey:"_id",itemKey:"id",rowInfo:"_rowInfo",rowKey:"_key",expandableKey:"_expandableKey"})},columnMoveable:{type:Boolean,default:!1},selectionMode:{type:String,default:"normal",validator:t=>-1!==["normal","checkbox","radio"].indexOf(t)},selectionModeColumn:{type:Object,default:()=>({})},loadingType:{type:String,default:"spin",validator:t=>-1!==["spin","refresh"].indexOf(t)},beforeSort:{type:Function,default:E},beforeRefresh:{type:Function,default:E},beforeSwitchPage:{type:Function,default:E},defaultSelected:{type:[Boolean,Array],default:!1},hasCover:{type:Boolean,default:!1}},data(){return{currentTotal:this.total,prefix:"v-table",defaultCurrent:1,currentLoading:!1,sortInfo:{},sortColumn:null,currentPageNum:this.pageNum,currentPageSize:null,paramsName:{},categories:[],categoriesMap:{},activeHoverActionRows:new Set,currentColumns:[],selectionActionColumn:null,$_current:[],$_initData:void 0,$_hasData:!1,minVisible:0,maxVisible:0,containerStyle:{width:"100%"},expandState:{},firstColumnRow:[],secondColumnRow:[],flattenColumns:[]}},computed:{tableHeaderCls(){return["".concat(this.prefix,"-header"),{"group-header":this.hasGroupHeader}]},isBasicExpandable(){return y(this.expandable)?this.expandable:v(this.expandable)&&"basic"===this.expandable.type},isAdvanceExpandable(){return v(this.expandable)&&"advance"===this.expandable.type},shouldShowPagingBar(){return!0===this.showPagingBar},isGroupHeadMode(){return this.currentVisibleColumns.some((t=>"group"===t.type))},hasGroupHeader(){return!!this.isGroupHeadMode&&this.firstColumnRow.some((t=>t._isGroup))},currentVisibleColumns(){return this.currentColumns.filter((t=>!t.hide))},lastVisibleColumnId(){const t=t=>t.length<=0?null:t[t.length-1];if(this.isGroupHeadMode){let e=[];const i=t(this.firstColumnRow);return e.push(i[this.fieldInfo.columnKey]),i._subColumns&&e.push(t(i._subColumns)[this.fieldInfo.columnKey]),e}return[t(this.currentVisibleColumns)[this.fieldInfo.columnKey]]},firstVisibleColumnId(){const t=this.currentVisibleColumns;return t.length<=0?null:t[0][this.fieldInfo.columnKey]},firstNonActionVisibleColumnId(){const t=this.currentVisibleColumns;if(t.length<=0)return null;for(let e=0,i=t.length;e!t.hideMenuItem&&"group"!==t.type))},tableCls(){return[this.prefix,{"hide-header":this.hideHeader,"show-cover-bottom-border":"border-cover"===this.showPagingBar}]},current:{get:function(){return this.$data.$_current||[]},set:function(t){if(this.$data.$_current=t,t){this.isActionableSelectionMode&&this.clearSelectedRows(),!0===this.groupTable&&this.groupingCategory(t),this.expandable&&this.setDefaultRowExpand(t),this.$nextTick((()=>{this.buildCols({applyHeadersWidth:!0}),this.isDraggable&&this.buildDraggableCols()}));for(let t of this.currentColumns)t.action&&this.setHeadState(t)}}},currentVisible(){let t=this.current.map(((t,e)=>({index:e,item:t})));if(this.virtualScroll){return t.slice(this.visibleStart,this.visibleEnd)}return t},activeColumns(){return this.currentColumns.filter((t=>!t.hide))},isAllColumnHide(){return 0===this.currentVisibleColumns.length},mergeGroupInfo(){return Object.assign({defaultExpand:!0,rowBorder:!0,titleBorder:!0,expandable:!0,sortCategoryFn:(t,e)=>te?1:0},this.groupInfo)},isEmpty(){return this.currentTotal<=0},isHdMenuShowInStickyMode(){return!0===this.enableHdMenu||this.enableHdMenu===Hr},isHdMenuShowInHoverMode(){return this.enableHdMenu===jr},isActionableSelectionMode(){return"checkbox"===this.selectionMode||"radio"===this.selectionMode},indentExpandCellCount(){const t=this.currentVisibleColumns;let e,i=0;for(i=0,e=t.length;i{this.buildCols({applyHeadersWidth:!0,forceFit:!0}),this.isDraggable&&this.buildDraggableCols()}))},columns:{immediate:!0,handler(t){this.setCurrentColumns(t)}},selectionMode:{handler(t){this.setCurrentColumns(this.columns)}},selectionModeColumn:{handler(t){this.setCurrentColumns(this.columns)}},currentVisibleColumns:{immediate:!0,handler(t){this.columnMoveable&&this.$nextTick((()=>{this.buildMoveableCols()})),this.isGroupHeadMode&&this.convertGroupColumns()}},isGroupHeadMode:{handler(t){this.secondColumnRow=[],this.flattenColumns=[],t&&this.convertGroupColumns()}},total(t){this.setTotal(t)},currentData:{immediate:!0,handler(t){this.setData(t),x(this.total)||this.setTotal(t.length),this.sort()}}},created(){this.$options.activeIndexes={row:-1,col:0},this.paramsName=Object.assign({},{total:"total",results:"items"},this.responseParamsName),this.getSortInfo(),this.loadData()},async mounted(){this.form&&this.form.register(this,(t=>{this.$options.form=t,t.$options["data-table"]=this})),this.listenRowSelection(),await this.$nextTick(),this.isDraggable&&this.buildDraggableCols(),this.columnMoveable&&this.buildMoveableCols(),_t(this.$el,this.updateContainerWidth,this)},updated(){},beforeDestroy(){this.form&&this.form.unregister(this,(t=>{delete this.$options.form,delete t.$options["data-table"]})),St(this.$el,this.updateContainerWidth)},methods:{isColumnDisableSort:t=>Vo(t),setCurrentColumns(t){this.currentColumns=t.slice();for(let e of this.currentColumns)e[this.fieldInfo.columnKey]=e[this.fieldInfo.columnKey]||Yi(),e.sort&&(this.sortColumn=e),e.action&&this.groupTable&&(e.disableSort=!0);this.isActionableSelectionMode&&(this.selectionActionColumn=kt()({[this.fieldInfo.columnKey]:Wr,action:this.selectionMode,field:Wr,width:44,align:"center",disableSort:!0,hideMenuItem:!0},this.selectionModeColumn),this.currentColumns.splice(0,0,this.selectionActionColumn)),this.$nextTick((()=>{this.buildCols({applyHeadersWidth:!0})}))},getFlattenColumns:t=>t.reduce(((t,e)=>(e._isGroup?t=t.concat(e._subColumns):t.push(e),t)),[]),getSecondColumns:t=>t.reduce(((t,e)=>(e._isGroup&&(t=t.concat(e._subColumns)),t)),[]),convertGroupColumns(){if(!this.isGroupHeadMode)return;let t=Object.create(null);this.$options.groupColumns=this.$options.groupColumns||this.currentColumns.reduce(((t,e)=>(("group"===e.type||e.field)&&(t[e.field]=e),t)),{});const e=this.currentVisibleColumns.reduce(((e,i)=>{if("group"===i.type){let n=t[i.field]||(t[i.field]={[this.fieldInfo.columnKey]:i.field,_isGroup:!0,_subColumns:[],disableSort:!0,align:"center",_rowSpan:1,_colSpan:0});Object.assign(n,i),e.push(n)}else if(i.groupKey){let e=t[i.groupKey]||(t[i.groupKey]={[this.fieldInfo.columnKey]:i.groupKey,_subColumns:[],disableSort:!0,_isGroup:!0,align:"center",_rowSpan:1,_colSpan:0});e._subColumns.push(i),e._colSpan++}else e.push({_isGroup:!1,...i,_colSpan:1,_rowSpan:2});return e}),[]);this.firstColumnRow=e.filter((t=>"group"!==t.type||0!==t._subColumns.length)),this.secondColumnRow=this.getSecondColumns(this.firstColumnRow),this.flattenColumns=this.getFlattenColumns(this.firstColumnRow)},isHeadActionDisabled(t){return this.current.every((e=>!(!this.isActionHidden(e,t)&&!this.isActionDisabled(e,t))))},getFieldSlotName:t=>t.field||t.fieldKey,getBasicExpandSlot(t){return"basic-expand-".concat(this.getFieldSlotName(t))},hasBasicExpandSlot(t){return B(this,this.getBasicExpandSlot(t))},getAdvanceExpandSlot(t){return"".concat(t[this.fieldInfo.expandableKey])},hasAdvanceExpandSlot(t){return!!t[this.fieldInfo.expandableKey]&&B(this,this.getAdvanceExpandSlot(t))},register(t,e=(()=>{})){e(this)},unregister(t,e=(()=>{})){e(this)},isDirty(){const t=this.current.map((t=>fn()(t,[this.fieldInfo.rowKey,this.fieldInfo.rowInfo])));return!M(this.$data.$_initData,t)},async updateContainerWidth(t){if(t.contentRect.width>0){const e=Math.floor(t.contentRect.width);this.containerStyle={width:"".concat(e,"px")},await this.$nextTick(),this.buildCols({applyHeadersWidth:!0,containerWidth:e})}},listenRowSelection(){this.$watch("selectIndexes",(t=>{this.rowSelectionChange(t)}))},localSort(){this.$data.$_hasData&&this.sortColumn&&this.sortColumn.sort&&(this.sortData(this.current),this.sortData(this.$data.$_initData),this.$emit("local-sorted",{sortColumn:this.sortColumn,sortInfo:this.sortInfo,sortedData:this.current}))},sortData(t){if(!this.sortColumn||!this.sortColumn.sort)return;const e=this.sortColumn,i=(this.localSortFunc?this.localSortFunc(e):null)||((t,i)=>{let n,s;if(e.fn)n=e.fn(t),s=e.fn(i);else if(e.getHtml)n=e.getHtml(t),s=e.getHtml(i);else if(this.groupTable){const o=this.categoriesMap[t[this.groupInfo.category]]||[],r=this.categoriesMap[i[this.groupInfo.category]]||[];n=this.getCellValue(e.field,t,o.indexOf(t),t[this.groupInfo.category]),s=this.getCellValue(e.field,i,r.indexOf(i),i[this.groupInfo.category])}else n=this.getCellValue(e.field,t,this.current.indexOf(t)),s=this.getCellValue(e.field,i,this.current.indexOf(i));if(n!==s){if("DESC"===e.sort)return ni(t,e)))},saveSelections(){this.storeSelections={lastSelectionItem:this.getRow(this.lastSelectIndex),selectionItems:Array.from(this.selectIndexes).map((t=>this.getRow(t)))}},restoreSelections(){const{selectionItem:t,lastSelectionItem:e,selectionItems:i}=this.storeSelections;this.mappingSelectionByKey(t,e,i,this.autoScrollVisibleWhenSort)},mappingSelectionByKey(t,e,i,n){this.lastSelectIndex=this.restoreSelectionByKey(e),this.selectIndexes=new Set(i.map((t=>this.restoreSelectionByKey(t)))),this.selectIndexes.delete(-1),-1!==this.selectIndex&&n&&this.ensureRowVisible(this.selectIndex)},restoreSelectionByKey(t){if(!t)return-1;if(this.groupTable){const e=(this.categoriesMap[t[this.groupInfo.category]]||[]).findIndex((e=>{if(e)return e[this.fieldInfo.rowKey]===t[this.fieldInfo.rowKey]}));return"".concat(t[this.groupInfo.category],":").concat(e)}return this.current.findIndex((e=>{if(e)return e[this.fieldInfo.rowKey]===t[this.fieldInfo.rowKey]}))},deprecatedSort(t){Ee("isCustomSort and isLocalSort","sortMethod",this),!0===this.isCustomSort?this.$emit("sort",{sortColumn:this.sortColumn,sortInfo:this.sortInfo}):this.isLocalSort?this.localSort():this.loadData()},sort(t){if(!(t&&this.isColumnDisableSort(t)||(t&&this.isDraggable&&Pe("is-draggable combined with sort may cause error, maybe you dont need sort",this),!1===this.beforeSort({column:t,isDirty:this.isDirty()})))){if(this.setCurrentSort(t),this.saveSelections(),!0===this.isCustomSort||!1===this.isLocalSort)return this.deprecatedSort(t);this.sortMethod===Rr&&t?this.$emit("sort",{sortColumn:this.sortColumn,sortInfo:this.sortInfo}):this.sortMethod===Lr?this.localSort():this.loadData(),!0===this.groupTable&&this.groupingCategory(this.current),this.restoreSelections()}},setCurrentSort(t){if(!t)return;let e="ASC";for(const i of this.currentColumns)t!==i&&this.$set(i,"sort",null);switch(t.sort){case"ASC":e="DESC";break;default:e="ASC"}this.$set(t,"sort",e),this.sortInfo[this.sortInfoKey.by]=t.field,this.sortInfo[this.sortInfoKey.order]=e,this.sortColumn=t},getSortInfo(){for(const t of this.currentColumns)"string"==typeof t.sort&&(this.sortInfo[this.sortInfoKey.by]=t.field,this.sortInfo[this.sortInfoKey.order]=t.sort);return this.sortInfo},getHeaderTooltip:t=>!!t.headerTooltip&&t.title,setLoading(t){this.currentLoading=t},commit(){const t=this.current.map((t=>fn()(t,[this.fieldInfo.rowKey,this.fieldInfo.rowInfo])));this.$data.$_initData=Pr()(t)},resetField(){this.$emit("update:currentData",Pr()(this.$data.$_initData)),this.$options.form&&this.$options.form.validate()},loadData(){if(!this.data)return;this.setLoading(!0);const t=Object.assign({},this.sortInfo);t.start=0,t.offset=(this.currentPageNum-1)*this.currentPageSize,t.limit=this.currentPageSize;this.data(t).then((t=>{if(!t)return this.currentLoading=!1,void this.clearSelectedRows();const e={items:[],total:-1};this.paramsName.results&&(e.items=c(t,this.paramsName.results)),this.paramsName.total&&(e.total=c(t,this.paramsName.total)),e.total=e.total||e.items.length,this.setData(e.items,e.total),this.setTotal(e.total),this.$emit("dataloaded",this.current.slice()),this.clearSelectedRows(),this.setLoading(!1)})).catch((t=>{Pe(t),this.setLoading(!1)}))},groupingCategory(t){const e=Object.create(null);for(let n of t){const t=n[this.groupInfo.category];e[t]||(e[t]=[]),e[t].push(n)}const i=Object.keys(e);this.categoriesMap=e,this.categories=i.map((t=>({key:t,enableState:!1,enableIndeterminate:!1,items:e[t]})))},headAction(t){let e=!t.enableState;if(this.$set(t,"enableState",e),this.$set(t,"enableIndeterminate",!1),this.current)if(t[this.fieldInfo.columnKey]===Wr)e?this.selectAll():this.clearSelectedRows();else for(let i of this.current)this.isActionDisabled(i,t)||this.isActionHidden(i,t)||(i[t.field]=e);if(this.groupTable)for(const i of this.categories)this.$refs.groupNode&&this.$refs.groupNode.setCategoryEnableState(t,i);this.$emit("head-action",{column:t})},setHeadState(t){let e,i=!1,n=!1;if(this.groupTable?e=this.categories.reduce(((t,e,i)=>t=t.concat(e.items.map(((t,i)=>["".concat(e.key,":").concat(i),t])))),[]):this.current&&(e=this.current.entries()),e){for(let[s,o]of e)this.isActionDisabled(o,t)||this.isActionHidden(o,t)||(!0===this.getCellValue(t.field,o,s)?i=!0:n=!0);i&&n?this.$set(t,"enableIndeterminate",!0):i?(this.$set(t,"enableState",!0),this.$set(t,"enableIndeterminate",!1)):(this.$set(t,"enableState",!1),this.$set(t,"enableIndeterminate",!1))}},toggleColumnDisplayState(t,e){if(this.fixContainerWidth(),this.$set(t,"hide",!e),this.$emit("column-display",{column:t,state:e}),this.isAllColumnHide)return this.$set(t,"hide",!1),void this.$emit("column-display",{column:t,state:!1});this.$nextTick((()=>{this.buildCols({applyHeadersWidth:!0,forceFit:!0,omitColumns:[t[this.fieldInfo.columnKey]]}),this.autoContainerWidth()}))},itemAction(t,e,i,n,s,o){i=o?"".concat(o.key,":").concat(i):i,s[this.fieldInfo.columnKey]===Wr?(this.clickRow(i,e),this.$nextTick((()=>{this.setHeadState(s)}))):(n[s.field]=!n[s.field],this.setHeadState(s)),this.$emit("action",{index:i,row:n,column:s,category:o})},rowDblClick(t,e,i){this.$emit("rowdblclick",t,e,i)},rowSelectionChange(t){t=Array.from(t),this.$emit("selected-change",{indexes:t,rows:this.getRows(t)}),this.multipleSelected&&this.$nextTick((()=>{this.selectionActionColumn&&(this.setHeadState(this.selectionActionColumn),this.groupTable&&this.$refs.groupNode&&this.$refs.groupNode.setCategoriesEnableState(this.selectionActionColumn))}))},getRowClasses(t,e){let i=[];return this.getRowClass&&(i=i.concat(this.getRowClass(t,e))),this.getDraggingClass&&(i=i.concat(this.getDraggingClass(t))),this.getLandedClass&&(i=i.concat(this.getLandedClass(t))),this.isAdvanceExpandable&&i.push("advance"),this.expandState[e[this.fieldInfo.rowKey]]&&i.push("expanded"),i},getAdvanceExpandedRowClasses(t,e){return[{"row-disabled":this.isItemDisabled&&this.isItemDisabled(e),expanded:this.expandState[e[this.fieldInfo.rowKey]]}].concat(this.getSelectedRowClass(t))},getCellClasses(t,e,i,n){let s=[];return 0===i&&s.push("cell-first"),this.isDraggable&&(s.push("is-draggable"),n&&n[this.fieldInfo.rowInfo]&&!1===n[this.fieldInfo.rowInfo].draggable&&s.push("disable-drag")),e.align&&s.push("cell-".concat(e.align||"left")),e.textSelectable&&s.push("text-selectable"),s},isLastVisibleCell(t){return this.lastVisibleColumnId.includes(t[this.fieldInfo.columnKey])},isLastVisibleGroupSecondRowCell(t){return this.firstColumnRow.some((e=>!!e._subColumns&&e._subColumns[e._subColumns.length-1].field===t.field))},getHeaderCellClasses(t,e){let i=this.getCellClasses(-1,t,e);if(i.push(t.className),this.isLastVisibleCell(t)&&i.push("last-th-cell"),this.isColumnDisableSort(t)&&i.push("disable-sort"),t.sort&&i.push("sorting"),t._isGroup)i.push("group");else if(t.groupKey){this.isLastVisibleGroupSecondRowCell(t)&&i.push("last-th-visible-sec-row-cell")}return i},hasExpandIcon(t){return this.expandable&&t[this.fieldInfo.columnKey]===this.firstNonActionVisibleColumnId},getContentCellClasses(t,e,i,n){let s=this.getCellClasses(t,e,i,n);if(this.isLastVisibleCell(e)&&s.push("last-td-cell"),this.hasExpandIcon(e)&&s.push("has-expand-icon"),n[this.fieldInfo.rowInfo]&&n[this.fieldInfo.rowInfo].customClasses){const t=n[this.fieldInfo.rowInfo].customClasses;v(t)&&t[e.field||e.fieldKey]&&(s=s.concat(t[e.field||e.fieldKey]))}return s},refresh(){!1!==this.beforeRefresh({isDirty:this.isDirty()})&&(this.$refs.scrollbar&&this.$refs.scrollbar.$el&&(this.$refs.scrollbar.$el.scrollTop=0),this.$emit("refresh"),this.form&&this.resetField(),this.data&&this.loadData())},reload(){1===this.currentPageNum?this.loadData():this.currentPageNum=1},onMouseLeave(){this.hoverIndex=null},setTotal(t){this.currentTotal=t},setData(t=[]){this.$data.$_hasData=!0,t=t.slice(),x(this.$data.$_initData)||(this.$data.$_initData=Pr()(t));for(const e of t)e[this.fieldInfo.rowKey]=e[this.fieldInfo.itemKey]||Yi();this.current=t,this.hoverIndex>=this.current.length&&(this.hoverIndex=null),this.defaultSelected&&!this.isEmpty&&this.$nextTick((()=>this.defaultSelect()))},updateScrollVisible(){this.virtualScroll&&this.$options.handleScrollDebounced()},onCellClick(t,e,i,n,s){this.$emit("cell-click",t,e,i,n,s)},onCellContextMenu(t,e,i,n){this.$emit("cell-contextmenu",t,e,i,n,event)},getHeaderCell(t){return this.$refs["header-".concat(t)]},getCell(t,e){const i=this.$refs["cell-".concat(t,"-").concat(e)];return i&&i[0]},focusActiveCell(){const{row:t,col:e}=this.$options.activeIndexes;if(t<-1||this.current.length<=t)return!1;if(e<0||this.currentColumns.length<=e)return!1;let i;return i=-1===t?this.getHeaderCell(e):this.getCell(t,e),i&&i.focus(),i===document.activeElement},setActiveCell(t,e=-2,i=-1){let n=null;return!(e<-1||this.current.length<=e)&&(n=-1===e?this.getHeaderCell(i):this.getCell(e,i),!(i<0||this.currentColumns.length<=i)&&(this.$options.activeIndexes.prevCell&&this.$options.activeIndexes.prevCell.setAttribute("tabindex","-1"),n&&n.setAttribute("tabindex","0"),this.$options.activeIndexes={row:e,col:i,prevCell:n},!0))},setActiveCellWithFocus(t,e=-2,i=-1){if(this.setActiveCell(t,e,i))return this.clickRow(e,t),this.focusActiveCell(t)},selectCellByKeydown(t){if(this.groupTable)return void(this.$refs.groupNode&&this.$refs.groupNode.selectCellByKeydown(t));if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key))return;const{row:e,col:i}=this.$options.activeIndexes;return t.preventDefault(),"ArrowUp"===t.key?this.setActiveCellWithFocus(t,e-1,i):"ArrowDown"===t.key?this.setActiveCellWithFocus(t,e+1,i):"ArrowLeft"===t.key?this.setActiveCellWithFocus(t,e,i-1):"ArrowRight"===t.key?this.setActiveCellWithFocus(t,e,i+1):void 0},isItemDraggable(t){return!t[this.fieldInfo.rowInfo]||!1!==t[this.fieldInfo.rowInfo].draggable},getRowTooltip(t){return!!(this.isItemDisabled(t)&&t[this.fieldInfo.rowInfo]&&t[this.fieldInfo.rowInfo].disabledTooltip)&&t[this.fieldInfo.rowInfo].disabledTooltip},isItemDisabled(t){return t[this.fieldInfo.rowInfo]&&!0===t[this.fieldInfo.rowInfo].disabled},isActionDisabled(t,e){if(e[this.fieldInfo.columnKey]===Wr)return t[this.fieldInfo.rowInfo]&&t[this.fieldInfo.rowInfo].unselectable;let i;return i=v(t.disabled)?t.disabled[e.field]:t.disabled,this.isItemDisabled(t)||i},isActionHidden:(t,e)=>!!v(t.hidden)&&t.hidden[e.field],updateItem(t,e){return i=>{this.current[t][e]=i}},activateHoverAction(t){return()=>{this.activeHoverActionRows.add(t[this.fieldInfo.rowKey]),this.activeHoverActionRows=new Set(this.activeHoverActionRows)}},deactivateHoverAction(t){return()=>{this.activeHoverActionRows.delete(t[this.fieldInfo.rowKey]),this.activeHoverActionRows=new Set(this.activeHoverActionRows)}},rowHoverActionCls(t){return["row-hover-action",{"keep-activate":this.activeHoverActionRows.has(t)}]},getHeaderTip:t=>m(t.tip)?t.tip:"",getHeaderTipSlotName(t){const e=t.field||t.fieldKey;return"".concat(e,".tip")},showHeaderTip:t=>!!t.tip,getPaginationPrefixSlot(){return A("pagination-",this.$scopedSlots)},getRowExpandIconCls(t){return{expanded:this.expandState[t[this.fieldInfo.rowKey]]}},setDefaultRowExpand(t){for(const e of t)e[this.fieldInfo.rowInfo]&&e[this.fieldInfo.rowInfo].defaultExpand&&this.setRowExpand(e,!0)},setRowExpand(t,e){this.$set(this.expandState,t[this.fieldInfo.rowKey],e)},toggleRowExpand(t){const e=this.expandState[t[this.fieldInfo.rowKey]];this.setRowExpand(t,!e)},getCellHidden(t,e){if(v(e.hidden))return e.hidden[t.field]},getCellValue(t,e,i,n){return t===Wr?(i=n?"".concat(n,":").concat(i):i,this.selectIndexes.has(i)):e[t]},getCellTooltip(t,e){return!(!t.tooltip||t.useSlot||this.isItemDisabled(e))&&(g(t.tooltip)?t.tooltip.apply(this,[e]):t.fn?t.fn(e,this):e[t.field])},setCurrentPageNum(t){!1!==this.beforeSwitchPage({pageNumber:t,pageSize:this.currentPageSize,isDirty:this.isDirty()})&&(this.currentPageNum=t,this.$emit("switch-page",{pageNumber:t,pageSize:this.currentPageSize}))},getColumnByField(t){return this.currentVisibleColumns.find((e=>e.field===t))}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-spin",{class:t.prefix+"-wrapper",attrs:{tip:t.loadingText,spinning:"spin"===t.loadingType&&t.currentLoading}},[i("template",{slot:"spin-inner"},[t._t("spin-inner")],2),t._v(" "),t.hasCover?i("div",{staticClass:"cover-wrapper"},[t._t("cover")],2):t._e(),t._v(" "),i("div",{directives:[{name:"syno-id",rawName:"v-syno-id"}],ref:"container",class:t.tableCls,style:t.containerStyle,attrs:{role:"grid","aria-rowcount":t.current.length,"aria-colcount":t.currentColumns.length},on:{keydown:t.selectCellByKeydown}},[i("div",{ref:"table-header",class:t.tableHeaderCls},[i("table",{ref:"theader",attrs:{"syno-id":t.synoId+"-header",role:"none"}},[i("v-col-group",{ref:"header-col-group",attrs:{columns:t.isGroupHeadMode?t.flattenColumns:t.currentVisibleColumns,"column-id-field":t.fieldInfo.columnKey}}),t._v(" "),i("thead",{class:t.prefix+"-thead",attrs:{role:"none"}},[i("tr",{staticClass:"row",class:t.hasGroupHeader?"first-column-row":"",attrs:{role:"row"}},[t._l(t.isGroupHeadMode?t.firstColumnRow:t.currentVisibleColumns,(function(e,n){return[e.hide?t._e():i("v-table-header-cell",{key:e[t.fieldInfo.columnKey],ref:"header-"+n,refInFor:!0,class:t.getHeaderCellClasses(e,n),attrs:{"column-key":e[t.fieldInfo.columnKey],column:e,cindex:n,"syno-id":t.synoId+"-th-"+n,colspan:t.isGroupHeadMode?e._colSpan:1,rowspan:t.isGroupHeadMode?e._rowSpan:1,tooltip:t.getHeaderTooltip(e),"is-group":e._isGroup,"is-action-disabled":t.isHeadActionDisabled(e),"disable-sort":t.isColumnDisableSort(e)},on:{"action-change":function(i){return t.headAction(e)},sort:function(i){return t.sort(e)},focus:function(e){return t.setActiveCell(e,-1,n)},mousedown:function(i){return t.onHeaderCellMouseDown(e,""+e[t.fieldInfo.columnKey],n,i)},mousemove:function(i){return t.onHeaderCellMouseMove(e,""+e[t.fieldInfo.columnKey],i)}},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)]}))],2),t._v(" "),t.isGroupHeadMode&&t.secondColumnRow.length>0?i("tr",{staticClass:"second-column-row",attrs:{role:"row"}},[t._l(t.secondColumnRow,(function(e,n){return[e.hide?t._e():i("v-table-header-cell",{key:e[t.fieldInfo.columnKey],class:t.getHeaderCellClasses(e,n),attrs:{"column-key":e[t.fieldInfo.columnKey],column:e,cindex:n,"syno-id":t.synoId+"-th-"+n,colspan:t.isGroupHeadMode?e._colSpan:1,rowspan:t.isGroupHeadMode?e._rowSpan:1,tooltip:t.getHeaderTooltip(e),"is-action-disabled":t.isHeadActionDisabled(e),"disable-sort":t.isColumnDisableSort(e)},on:{"action-change":function(i){return t.headAction(e)},sort:function(i){return t.sort(e)},focus:function(e){return t.setActiveCell(e,-1,n)},mousedown:function(i){return t.onHeaderCellMouseDown(e,""+e[t.fieldInfo.columnKey],n,i)},mousemove:function(i){return t.onHeaderCellMouseMove(e,""+e[t.fieldInfo.columnKey],i)}},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)]}))],2):t._e()])],1),t._v(" "),i("div",{staticClass:"hd-menu-btn-wrapper"},[t.isHdMenuShowInStickyMode?i("v-button",{class:t.prefix+"-header-hd-menu",attrs:{"syno-id":t.synoId+"-show-menu","menu-align":"tr->br",type:"styleless","dropdown-offset":[2,0]},scopedSlots:t._u([{key:"default",fn:function(){return[i("i",{staticClass:"hd-menu-icon"})]},proxy:!0},{key:"dropdown",fn:function(e){return[i("v-menu",{staticClass:"v-table__menu",attrs:{"is-open":e.menuShow,width:"auto","syno-id":t.synoId+"-menu"}},t._l(t.hdMenuItems,(function(e){return i("v-menu-item",{key:e[t.fieldInfo.columnKey],attrs:{title:e.title?e.title:"",type:"checkbox",selected:!e.hide,"syno-id":t.synoId+"-menu-item"},on:{"update:selected":function(i){return t.toggleColumnDisplayState(e,i)}}})})),1)]}}],null,!1,713270289)}):t._e()],1)]),t._v(" "),i("v-perfect-scrollbar",{ref:"scrollbar",attrs:{options:t.scrollbarOptions},on:{"ps-scroll-y":t.updateScrollVisible}},[i("div",{ref:"content",class:t.contentClass},[t.isEmpty?i("div",{class:t.prefix+"-empty-body"},[t._t("empty-area",(function(){return[t.showEmptyText?i("div",{staticClass:"empty-wrapper"},[t._v("\n "+t._s(t.emptyText)+"\n ")]):t._e()]}))],2):t.treeTable?i("div",{class:t.prefix+"-tree-body"},t._l(t.current,(function(e,n){return i("v-tree-node",{key:n,ref:"treeRoot",refInFor:!0,attrs:{"syno-id":t.synoId+"-tn-"+n,level:0,node:e,index:n,columns:t.currentColumns}})})),1):t.groupTable?i("div",{class:t.prefix+"-body"},[i("v-group-node",{ref:"groupNode",attrs:{"syno-id":t.synoId+"-gn","multiple-selected":t.multipleSelected,categories:t.categories,columns:t.currentColumns,"group-info":t.mergeGroupInfo},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)],1):i("div",{class:t.prefix+"-body"},[i("table",{ref:"tbody",style:t.tableOffsetStyle,attrs:{role:"none"},on:{mouseleave:t.onMouseLeave}},[i("v-col-group",{ref:"body-col-group",attrs:{columns:t.isGroupHeadMode?t.flattenColumns:t.currentVisibleColumns,"column-id-field":t.fieldInfo.columnKey,"cols-data":t.colsData,"follow-head-col-group":""}}),t._v(" "),i("tbody",{directives:[{name:"show",rawName:"v-show",value:!t.isEmpty,expression:"!isEmpty"}],class:t.prefix+"-tbody",attrs:{role:"none"}},[t._l(t.currentVisible,(function(e){var n=e.item,s=e.index;return[i("tr",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.getRowTooltip(n),expression:"getRowTooltip(item)"}],key:n[t.fieldInfo.rowKey],ref:"row-"+s,refInFor:!0,class:t.getRowClasses(s,n),attrs:{"syno-id":t.synoId+"-tr-"+s,role:"row","aria-rowindex":s+1},on:{mouseover:function(e){return t.hoverRow(s)},click:function(e){return t.clickRow(s,e)},dblclick:function(e){return t.rowDblClick(s,n,e)}}},t._l(t.isGroupHeadMode?t.flattenColumns:t.currentVisibleColumns,(function(e,o){return i("v-table-cell",{key:e[t.fieldInfo.columnKey],ref:"cell-"+s+"-"+o,refInFor:!0,class:t.getContentCellClasses(s,e,o,n),attrs:{role:"cell","syno-id":t.synoId+"-td-"+n[t.fieldInfo.rowKey]+"-"+e[t.fieldInfo.columnKey],value:t.getCellValue(e.field,n,s),item:n,tabindex:"-1","aria-colindex":o+1,"field-key":e.fieldKey,index:s,cindex:o,expandable:t.isBasicExpandable,"has-expand-slot":t.hasBasicExpandSlot(e),"expand-slot":t.getBasicExpandSlot(e),expand:t.expandState[n[t.fieldInfo.rowKey]],"expand-icon-cls":t.getRowExpandIconCls(n),"show-expand-icon":t.hasExpandIcon(e),action:e.action,"is-action-disabled":t.isActionDisabled(n,e),tooltip:t.getCellTooltip(e,n),"use-field-slot":e.useSlot||!e.fn&&!e.field,"field-slot":t.getFieldSlotName(e),"content-fn":e.fn,"get-html":e.getHtml,"hover-action-cls":t.rowHoverActionCls(n[t.fieldInfo.rowKey]),"hover-action-activate":t.activateHoverAction(n),"hover-action-deactivate":t.deactivateHoverAction(n),"has-hover-action":t.isLastVisibleCell(e),"update-item":t.updateItem(s,e.field),column:e,hidden:t.getCellHidden(e,n)},on:{focus:function(e){return t.setActiveCell(e,s,o)},click:function(i){return t.onCellClick(n,e,s,o,i)},contextmenu:function(i){return t.onCellContextMenu(n,e,s,o,i)},"action-change":function(i,o){return t.itemAction(i,o,s,n,e)},"toggle-expand":function(e){return t.toggleRowExpand(n)}},scopedSlots:t._u([t._l(t.$scopedSlots,(function(e,i){return{key:i,fn:function(e){return[t._t(i,null,null,e)]}}}))],null,!0)},[t._l(t.$slots,(function(e,i){return t._t(i,null,{slot:i})}))],2)})),1),t._v(" "),t.isAdvanceExpandable?i("tr",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.getRowTooltip(n),expression:"getRowTooltip(item)"}],key:n[t.fieldInfo.rowKey]+"-expandable",ref:"expandable-row-"+s,refInFor:!0,staticClass:"expandable-row",class:t.getAdvanceExpandedRowClasses(s,n),on:{click:function(e){return t.clickRow(s,e)},mouseover:function(e){return t.hoverRow(s)}}},[t._l(t.indentExpandCellCount,(function(t){return i("td",{key:t,staticClass:"indent-cell"})})),t._v(" "),i("td",{staticClass:"expandable-cell",attrs:{colspan:t.currentVisibleColumns.length-t.indentExpandCellCount}},[i("v-slide-up-down",{attrs:{expand:t.expandState[n[t.fieldInfo.rowKey]]}},[i("div",{staticClass:"expandable-slide-up-down"},[t.hasAdvanceExpandSlot(n)?t._t(t.getAdvanceExpandSlot(n),null,{item:n}):t._t("advance-expand-default",null,{item:n})],2)])],1)],2):t._e()]}))],2)],1),t._v(" "),t.virtualScroll?i("div",{style:t.virtualBodyStyle}):t._e()])])])],1),t._v(" "),i("v-pagination",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowPagingBar,expression:"shouldShowPagingBar"}],attrs:{value:t.currentPageNum,total:t.currentTotal,"page-size":t.currentPageSize,"items-per-page":t.itemsPerPage,"switch-page":t.pagination,"hide-refresh-btn":t.hideRefreshBtn,loading:"refresh"===t.loadingType&&t.currentLoading,"syno-id":t.synoId+"-paging"},on:{input:t.setCurrentPageNum,"update:pageSize":function(e){t.currentPageSize=e},"update:page-size":function(e){t.currentPageSize=e},refresh:function(e){return t.refresh()}},scopedSlots:t._u([t._l(t.getPaginationPrefixSlot(),(function(e){var i=e.name,n=e.exposeName;return{key:i,fn:function(e){return[t._t(n,null,null,e)]}}}))],null,!0)})],2)}),[],!1,null,null,null).exports,qr=(i(229),{name:"SlideUpDownTransition",render(t){return t("transition",{on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},this.$slots.default)},methods:{onBeforeEnter(t){oe(t,"slide-up-down-transition"),t.dataset||(t.dataset={}),t.dataset.overflow=Vt(t,"overflow"),t.dataset.paddingTop=t.dataset.paddingTop?t.dataset.paddingTop:Vt(t,"padding-top"),t.dataset.paddingBottom=t.dataset.paddingBottom?t.dataset.paddingBottom:Vt(t,"padding-bottom"),this.reflow=t.scrollHeight,Vt(t,"height",0),Vt(t,"padding-top",0),Vt(t,"padding-bottom",0),this.reflow=t.scrollHeight},onEnter(t){0!==t.scrollHeight?Vt(t,"height","".concat(t.scrollHeight,"px")):Vt(t,"height",""),Vt(t,"padding-top",t.dataset.paddingTop),Vt(t,"padding-bottom",t.dataset.paddingBottom),Vt(t,"overflow","hidden")},onAfterEnter(t){re(t,"slide-up-down-transition"),Vt(t,"height",""),t.removeAttribute("data-padding-top"),t.removeAttribute("data-padding-bottom")},onBeforeLeave(t){t.dataset||(t.dataset={}),Vt(t,"height","".concat(t.scrollHeight,"px")),t.dataset.overflow=Vt(t,"overflow"),t.dataset.paddingTop=t.dataset.paddingTop?t.dataset.paddingTop:Vt(t,"padding-top"),t.dataset.paddingBottom=t.dataset.paddingBottom?t.dataset.paddingBottom:Vt(t,"padding-bottom"),Vt(t,"overflow","hidden")},onLeave(t){0!==t.scrollHeight&&(oe(t,"slide-up-down-transition"),Vt(t,"height","0"),Vt(t,"padding-top","0"),Vt(t,"padding-bottom","0"))},onAfterLeave(t){re(t,"slide-up-down-transition"),Vt(t,"height",""),Vt(t,"padding-top",t.dataset.paddingTop),Vt(t,"padding-bottom",t.dataset.paddingBottom),Vt(t,"overflow",t.dataset.overflow),t.removeAttribute("data-padding-top"),t.removeAttribute("data-padding-bottom"),t.removeAttribute("overflow")}}}),Ur=(i(228),{props:{checkbox:{type:Boolean,default:!1}},mixins:[V],mounted(){this.$on("checked-up",(t=>{const e=this.getNodePath(this.currentData,t[this.paramsInfo.id]);if(0===e.length)return;const[{node:i}]=e;this.updateCheckedStateByNode(i),this.dispatch("TreePanel","checked-up",i)})),this.$on("checked-down",(t=>{t.indeterminate||!t[this.paramsInfo.children]||this.currentData.length<1||this.getNodePath(t[this.paramsInfo.children],this.currentData[0][this.paramsInfo.id]).length<1||(this.updateAllCheckedState(t),this.broadcast("TreePanel","checked-down",[t]))}))},methods:{prepareCheckboxData(){if(this.checkbox){for(let t of this.currentData)t.checked||t.indeterminate?(this.$set(t,"checked",t.checked||!1),this.$set(t,"indeterminate",t.indeterminate||!1)):this.parent&&!1===this.parent.indeterminate&&!0===this.parent.checked?(this.$set(t,"checked",!0),this.$set(t,"indeterminate",!1)):(this.parent&&!1===this.parent.indeterminate&&this.parent.checked,this.$set(t,"checked",!1),this.$set(t,"indeterminate",!1));this.currentData.length>0&&this.dispatch("TreePanel","checked-up",[this.currentData[0]])}},checkNodeByKeyup(t){0===this.indentLevel&&this.setCheckedByNodeId(this.currentSelectedId)},setCheckedByNodeId(t){const e=this.currentData.findIndex((e=>e[this.paramsInfo.id]===t)),i=this.currentData[e];if(e>=0){let t=!i.checked;i.indeterminate&&(t=!0),this.checkByClick(i,t)}else this.broadcast("TreePanel","set-node-checked",[t])},checkByClick(t,e=!0){this.checkbox&&(t.checked=e,t.indeterminate=!1,this.emitCheckedState(t),this.dispatch("TreePanel","checked-up",[t]),this.broadcast("TreePanel","checked-down",[t]))},emitCheckedState(t){if(0!==this.indentLevel)return this.$emit("internal-checked",t);this.$emit("checked",{path:this.getNodePath(this.currentData,t[this.paramsInfo.id]),checked:t.checked,indeterminate:t.indeterminate,node:t})},updateCheckedStateByNode(t){if(t&&t[this.paramsInfo.children]&&(t.indeterminate=!0,!t[this.paramsInfo.children].some((t=>t.indeterminate))))return t[this.paramsInfo.children].every((t=>t.checked))?(t.checked=!0,void(t.indeterminate=!1)):t[this.paramsInfo.children].every((t=>!t.checked))?(t.checked=!1,void(t.indeterminate=!1)):void 0},updateAllCheckedState(t){for(let e of this.currentData)e.checked=t.checked,e.indeterminate=t.indeterminate}}}),Yr={name:"DragZone",render(){return this.$slots.default},props:{payload:{type:Object,default:()=>{}},dragProps:{type:Object,default:()=>{}}},computed:{mergedDragProps(){return kt()({notifyEnter:(...t)=>{this.$emit("enter",...t)},notifyDrop:(...t)=>{this.$emit("drop",...t)},notifyOver:(...t)=>{this.$emit("over",...t)},notifyOut:(...t)=>{this.$emit("out",...t)},notifyValidDrop:(...t)=>{this.$emit("valid-drop",...t)},notifyInvalidDrop:(...t)=>{this.$emit("invalid-drop",...t)},order:10},this.dragProps)}},mounted(){this.createDragZone()},beforeDestroy(){this.removeDragZone()},methods:{createDragZone(){this.$options.dragZone=new this.$DragZone(this.$el,this.mergedDragProps,this.payload)},removeDragZone(){delete this.$options.dragZoom},getDragZone(){return this.$options.dragZone}}},Kr={name:"DragTarget",render(){return this.$slots.default},props:{payload:{type:Object,default:()=>{}},dragProps:{type:Object,default:()=>{}}},computed:{mergedDragProps(){return kt()({onDragEnter:(...t)=>{this.$emit("drag-enter",...t)},onDragOver:(...t)=>{this.$emit("drag-over",...t)},onDragOut:(...t)=>{this.$emit("drag-out",...t)},onDrag:(...t)=>{this.$emit("drag",...t)},onBeforeDrag:(...t)=>{this.$emit("before-drag",...t)},onBeforeDrop:(...t)=>{this.$emit("before-drop",...t)},onBeforeDragOut:(...t)=>{this.$emit("before-drag-out",...t)},onBeforeDragOver:(...t)=>{this.$emit("before-drag-over",...t)},onBeforeDragEnter:(...t)=>{this.$emit("before-drag-enter",...t)},onDrop:(...t)=>{this.$emit("drop",...t)},onValidDrop:(...t)=>{this.$emit("valid-drop",...t)},onInvalidDrop:(...t)=>{this.$emit("invalid-drop",...t)},startDrag:(...t)=>{this.$emit("start-drag",...t)},endDrag:(...t)=>{this.$emit("end-drag",...t)},ghostCls:"v-dd-target",getTargetContent:()=>this.$el.outerHTML},this.dragProps)}},async mounted(){this.createDDTarget()},beforeDestroy(){this.removeDDTarget()},methods:{getDragTarget(){return this.$options.ddTarget},createDDTarget(){this.$el&&(this.$options.ddTarget=new this.$DragDropTarget(this.$el,this.mergedDragProps,this.payload),this.$ddm.registerDragTarget(this.$options.ddTarget))},removeDDTarget(){this.$options.ddTarget&&(this.$ddm.destroyDragTarget(this.$options.ddTarget),delete this.$options.ddTarget)},registerDragZone(t){const e=t.getDragZone();this.$options.ddTarget.registerDragZone(e)},setAutoScrollElement(t){this.$options.ddTarget.setAutoScrollElement(t)}}};function Gr(t){return{functional:!0,props:{wrap:{type:Boolean,default:!1}},render:(e,i)=>i.props.wrap?e(t,i.data,i.children):i.children}}const Xr={TOP:Symbol("INSERT_TOP"),BOTTOM:Symbol("INSERT_BOTTOM"),INNER:Symbol("INSERT_INNER")},Zr={TOP:Symbol("DRAGGING_TOP"),BOTTOM:Symbol("DRAGGING_BOTTOM"),INNER:Symbol("DRAGGING_INNER"),NONE:Symbol("DRAGGING_NONE")};function Qr(t){return!1!==t.selectable&&!t.disabled}var Jr=R({name:"TreePanel",components:{vSlideUpDownTransition:qr,vCheckbox:vn,vSpinIcon:yi,withScrollbar:Gr(Tt),withDragZone:Gr(Yr),withDragTarget:Gr(Kr)},directives:{tooltip:ri},mixins:[V,Ur,we],props:{showScrollbar:{type:Boolean,default:!0},isModule:{type:Boolean,default:!1},prefixCls:{type:String,default:"v-tree-panel"},level:{type:String,default:"0"},indentLevel:{type:Number,default:0},data:{type:Array,default:()=>[]},paramsInfo:{type:Object,default:()=>({title:"title",children:"children",id:"id",customClass:"customClass"})},expandOnSelect:{type:Boolean,default:!1},asyncExpandFunc:{type:Function,default:void 0},selectedId:{type:String,default:void 0},horizontalScroll:{type:Boolean,default:!1},draggable:{type:[Boolean,String],default:!1,validator:t=>!m(t)||["append-only","full"].includes(t)},getDraggingProps:{type:Function,default:()=>({})},parent:{type:Object,default:()=>null},validateDrop:{type:Function,default:E},validateDrag:{type:Function,default:E},dragging:{type:Boolean,default:!1}},data:()=>({_currentData:[],expandedIndex:void 0,currentSelectedId:void 0,currentDragging:!1}),computed:{perfectScrollbarCls(){return["".concat(this.prefixCls,"-ps"),{"horizontal-scroll":this.isRoot&&this.horizontalScroll}]},isRoot(){return"0"===this.level},treeCls(){return this.isRoot?[this.prefixCls,{"horizontal-scroll":this.horizontalScroll,"v-module":this.isModule,dragging:this.currentDragging}]:["".concat(this.prefixCls,"-child-tree"),{"v-module-child-tree":this.isModule}]},currentData:{set(t){this.$data._currentData=t,this.preHandleData()},get(){return this.$data._currentData}},flattenNodes(){if(!this.isRoot)return null;let t=[],e=[];for(let i=this.currentData.length-1;i>=0;i--)e.push(this.currentData[i]);for(;e.length>0;){const i=e.pop(),n=i[this.paramsInfo.children]||[];t.push(i);for(let t=n.length-1;t>=0;t--)e.push(n[t])}return t},displayedNodes(){if(!this.isRoot)return null;function t(e){return!e._parentNode||e._parentNode.expanded&&t(e._parentNode)}return this.flattenNodes.reduce(((e,i)=>(t(i)&&Qr(i)&&e.push(i),e)),[])},nodesMap(){return this.flattenNodes.reduce(((t,e)=>(t[e[this.paramsInfo.id]]=e,t)),{})},indentClass(){return["".concat(this.prefixCls,"-indent-").concat(this.indentLevel),"".concat(this.prefixCls,"-indent")]},indentStyle(){return{"--indent":this.indentLevel}}},watch:{dragging:{handler(t){this.currentDragging=t},immediate:!0},draggable(t){t&&this.updateDragTargets()},selectedId:{handler(){this.currentSelectedId=this.selectedId},immediate:!0},data:{handler(){this.currentData=this.data},immediate:!0},currentData:{handler(t){this.draggable&&this.updateDragTargets()}}},mounted(){this.preHandleData(),this.$on("node-clicked",(t=>{if("0"!==this.level)return this.dispatch("TreePanel","node-clicked",t);this.$emit("clicked",t)})),this.$on("node-selected",(t=>{if("0"!==this.level)return this.dispatch("TreePanel","node-selected",t);this.currentSelectedId=t.id,this.$emit("selected",this.getSelectedNodes())})),["node-expanded","node-collapsed"].forEach((t=>{this.$on(t,(e=>{if("0"!==this.level)return this.dispatch("TreePanel",t,e);this.$emit("node-expanded"===t?"expanded":"collapsed",e)}))})),this.$on("cancel-selected",(t=>{this.broadcast("TreePanel","cancel-selected",t),this!==t.origin&&this.cancelSelectState()})),this.$on("set-node-expanded",((t,e)=>{this.setExpandByNodeId(t,e)})),this.$on("set-node-checked",(t=>{this.setCheckedByNodeId(t)})),this.$nextTick((()=>{this.updateDragTargets()}))},beforeDestroy(){["node-clicked","node-selected","node-expanded","node-collapsed","cancel-selected"].forEach((t=>this.$off(t)))},methods:{getRootTree(){if(this.isRoot)return this.$options.rootTreePanel=this;if(this.$options.rootTreePanel)return this.$options.rootTreePanel;let t=this.$parent;for(;t;){if("TreePanel"===t.$options.name)return this.$options.rootTreePanel=t.getRootTree();t=t.$parent}},hasIndicator:(t,e)=>"top"===e?t._draggingTo===Zr.TOP&&t._showIndicator:t._draggingTo===Zr.BOTTOM&&t._showIndicator,getDragInfo(t){const e=t.clientX,i=t.clientY,n=Rt(document.elementFromPoint(e,i),"li.".concat(this.prefixCls,"-node"));if(!n)return!1;const s=n.getBoundingClientRect(),o=this.nodesMap[n.getAttribute("node-id")],r=[e-s.x,i-s.y];let a;return a="append-only"===this.draggable?Xr.INNER:r[1]>s.height-3?Xr.BOTTOM:r[1]<3?Xr.TOP:Xr.INNER,{type:a,el:n,node:o}},onDrag(t,e){if(!this.isRoot)return this.getRootTree().onDrag(t,e);this.currentDragging=!0;const i=this.nodesMap[e.el.getAttribute("node-id")];i&&(i._dragging=!0)},onValidDrop(t,e,i){if(!this.isRoot)return this.getRootTree().onValidDrop(t,e,i);const n=this.nodesMap[i.el.getAttribute("node-id")],s=this.getDragInfo(t);if(!this.isValidDrag(s,n))return;const o=Xr.TOP?"top":Xr.BOTTOM?"bottom":Xr.INNER;if(!1===this.validateDrop({type:o,draggingNode:n,landedNode:s.node}))return;const r=n._parentNode?n._parentNode[this.paramsInfo.children]:this.currentData,a=s.node._parentNode?s.node._parentNode[this.paramsInfo.children]:this.currentData,l=r.findIndex((t=>t[this.paramsInfo.id]===n[this.paramsInfo.id]));if(r.splice(l,1),n._parentNode&&(n._parentNode.isLeaf=n._parentNode.length<=0),s.type===Xr.INNER)s.node[this.paramsInfo.children]=s.node[this.paramsInfo.children]||[],s.node[this.paramsInfo.children].push(n),(s.node.isLeaf||!s.node.children||s.node.children.length<=0)&&this.$set(s.node,"expanded",!0),s.node.isLeaf=s.node[this.paramsInfo.children].length<=0;else if(s.type===Xr.TOP){const t=a.findIndex((t=>t[this.paramsInfo.id]===s.node[this.paramsInfo.id]));a.splice(t,0,n)}else if(s.type===Xr.BOTTOM){const t=a.findIndex((t=>t[this.paramsInfo.id]===s.node[this.paramsInfo.id]));a.splice(t+1,0,n)}this.$emit("update:data",this.currentData),this.$emit("drop",{draggingNode:n,type:o,landedNode:s.node})},onDrop(t,e,i){if(!this.isRoot)return this.getRootTree().onDrop(t,e,i);this.currentDragging=!1;const n=this.nodesMap[i.el.getAttribute("node-id")];n&&(n._dragging=!1),this._autoExpandTimer&&window.clearTimeout(this._autoExpandTimer),this._showIndicatorTimer&&window.clearTimeout(this._showIndicatorTimer),this._prevLandedNode&&(this._prevLandedNode._draggingTo=Zr.NONE)},isValidDrag(t,e){return!(!t||function(t,e){let i=t._parentNode;for(;i;){if(i===e)return!0;i=i._parentNode}return!1}(t.node,e)||t.type===Xr.INNER&&(!1===t.node.canAppend||t.node===e)||t.node[this.paramsInfo.id]===e[this.paramsInfo.id])},onDragOver(t,e,i){if(!this.isRoot)return this.getRootTree().onDragOver(t,e,i);const n=this.nodesMap[i.el.getAttribute("node-id")],s=this.getDragInfo(t),o=Xr.TOP?"top":Xr.BOTTOM?"bottom":Xr.INNER;return!s||this._prevLandedType===s.type&&this._prevLandedNode[this.paramsInfo.id]===s.node[this.paramsInfo.id]?this._prevLandedStatus:(this._autoExpandTimer&&window.clearTimeout(this._autoExpandTimer),this._showIndicatorTimer&&window.clearTimeout(this._showIndicatorTimer),this._prevLandedNode&&(this._prevLandedNode._draggingTo=Zr.NONE),this._prevLandedType=s.type,this._prevLandedNode=s.node,!1===this.validateDrag({type:o,draggingNode:n,landedNode:s.node})?(this._prevLandedStatus=i.getInvalidStatusCls(),i.getInvalidStatusCls()):this.isValidDrag(s,n)?(this._prevLandedStatus=i.getValidStatusCls(),void(s.type===Xr.INNER?(s.node._draggingTo=Zr.INNER,this._autoExpandTimer=window.setTimeout((()=>{s.node.expanded=!0}),600)):s.type===Xr.TOP?(s.node._draggingTo=Zr.TOP,s.node._showIndicator=!1,this._showIndicatorTimer=window.setTimeout((()=>{s.node._showIndicator=!0}),0)):s.type===Xr.BOTTOM&&(s.node._draggingTo=Zr.BOTTOM,s.node._showIndicator=!1,this._showIndicatorTimer=window.setTimeout((()=>{s.node._showIndicator=!0}),0)))):(this._prevLandedStatus=i.getInvalidStatusCls(),i.getInvalidStatusCls()))},getDragProps(t){return kt()({getTargetContent:this.getDragGhost(t),onDragOver:this.onDragOver,ghostCls:"v-tree-panel-dd"},this.getDraggingProps(t))},getDragGhost(t){return()=>{let e='
');return this.$refs["".concat(this.getItemKey(t),"-icon")]&&(e+=this.$refs["".concat(this.getItemKey(t),"-icon")][0].outerHTML),this.$refs["".concat(this.getItemKey(t),"-text")]&&(e+=this.$refs["".concat(this.getItemKey(t),"-text")][0].outerHTML),e+="
",e}},async updateDragTargets(){await this.$nextTick();const t=this.getRootTree();if(this.$refs.dragTargets&&t)for(const e of this.$refs.dragTargets)t.getPsRoot()&&e.setAutoScrollElement(t.getPsRoot().$el),e.registerDragZone(t.getDragZoneRef())},getPsRoot(){return this.$refs["ps-root"]},getDragZoneRef(){return this.$refs.dragZone},getTip(t){return v(t.tip)?t.tip:{content:t.tip||t[this.paramsInfo.title],overflowOnly:!0}},getItemKey(t){return t[this.paramsInfo.id]},getSynoId(t,e=""){let i=t[this.paramsInfo.id]||t[this.paramsInfo.title];return i=i.replace(/\s/g,"").toLowerCase(),e?"".concat(this.synoId,"-").concat(e,"-").concat(i):"".concat(this.synoId,"-").concat(i)},getNodeCls(t){return["".concat(this.prefixCls,"-node"),{[t[this.paramsInfo.customClass]]:!!t[this.paramsInfo.customClass]}]},hasIcon:t=>t.icon||t.iconCls,getIconCls(t){let e="".concat(this.prefixCls,"-icon");return t.iconCls&&(e+=" ".concat(t.iconCls)),e},getIconStyle(t){let e={};return"number"==typeof t.iconSize&&(e.backgroundSize="".concat(t.iconSize,"px")),"string"==typeof t.icon&&(e.backgroundImage="url(".concat(t.icon,")")),e},selectHandleCls(t){t[this.paramsInfo.id]||console.warn("".concat(this.paramsInfo.id," property of item is required"));let e=["".concat(this.prefixCls,"-node-wrapper"),{["".concat(this.prefixCls,"-dragging-inner")]:t._draggingTo===Zr.INNER,["".concat(this.prefixCls,"-dragging")]:t._dragging,["".concat(this.prefixCls,"-node-selected")]:this.currentSelectedId===t[this.paramsInfo.id],["".concat(this.prefixCls,"-disabled")]:t.disabled}];return t.cls&&e.push(t.cls),e},preHandleData(){for(let[t,e]of this.currentData.entries())this.$set(e,"level","".concat(this.level,"-").concat(t)),this.$set(e,"_draggingTo",Zr.NONE),this.$set(e,"_showIndicator",!1),this.$set(e,"_dragging",!1),this.$set(e,"_loading",!1),e._parentNode=this.parent,this.asyncExpandFunc?this.$set(e,"isLeaf",!1):(this.$set(e,"isLeaf",!0),e[this.paramsInfo.children]&&e[this.paramsInfo.children].length>0&&this.$set(e,"isLeaf",!1));this.prepareCheckboxData()},hasChildren(t){return Array.isArray(t[this.paramsInfo.children])&&t[this.paramsInfo.children].length>0},async fetchChild(t,e=!1){if((!this.hasChildren(t)||!1!==e)&&this.asyncExpandFunc){this.$set(t,"_loading",!0);const e=await this.asyncExpandFunc(t);this.$set(t,this.paramsInfo.children,e),this.$set(t,"_loading",!1),await this.$nextTick()}},getChildTree(t){const e=this.getNodePath(this.currentData,t);if(!e.length)return!1;let i=this;for(const n of e.slice(0,-1)){const t=n.index;i=i.$refs["childBranch-".concat(t)]&&i.$refs["childBranch-".concat(t)][0]}return i},getNodeEl(t){const e=this.getNodePath(this.currentData,t);if(!e.length)return!1;let i=this;for(const[n,s]of e.entries())i=n===e.length-1?i.$refs.node[s.index]:i.$refs["childBranch-".concat(s.index)]&&i.$refs["childBranch-".concat(s.index)][0];return i},async fetchChildByPath(t,e=!1){return this.fetchChild(this.currentData[t],e)},async setExpand(t,e,i=!1){if(!1===this.currentData[t].expandable)return;const n=this.currentData[t].expanded;this.expandedIndex=t,!0===e?(await this.fetchChild(this.currentData[t],i),!0!==n&&this.$nextTick((()=>{this.$set(this.currentData[this.expandedIndex],"expanded",!0)}))):!1!==n&&this.$nextTick((()=>{this.$set(this.currentData[this.expandedIndex],"expanded",!1)}))},toggleExpand(t){if(!1===this.currentData[t].expandable)return;const e=!this.currentData[t].expanded;return this.setExpand(t,e)},bubbleEvent(t,e){this.isRoot?this.$emit(t,e):this.dispatch("TreePanel",t,e)},async setSelect(t){if(this.bubbleEvent("node-clicked",{origin:this,id:this.currentData[t][this.paramsInfo.id]}),this.currentData[t][this.paramsInfo.id]===this.currentSelectedId||!Qr(this.currentData[t]))return;this.bubbleEvent("node-selected",{origin:this,status:!0,id:this.currentData[t][this.paramsInfo.id]}),this.expandOnSelect&&await this.toggleExpand(t)},getNodes(t,e){t=t||this.currentData;let i=[];for(const n of t){let t=!0;for(const[i,s]of Object.entries(e))if(n[i]!==s){t=!1;break}t&&i.push(n),n[this.paramsInfo.children]&&n[this.paramsInfo.children].length&&(i=i.concat(this.getNodes(n[this.paramsInfo.children],e)))}return i},getSelectedNodes(t){t=t||this.currentData;for(const e of t){if(e[this.paramsInfo.id]===this.currentSelectedId)return[e];if(e[this.paramsInfo.children]){const t=this.getSelectedNodes(e[this.paramsInfo.children]);if(t.length>0)return t}}return[]},getNodePath(t,e){t=t||this.currentData;let i=[],n=[];for(let s=0;s0||o[this.paramsInfo.id]===e){i=n,i.unshift({node:o,index:s});break}}return i},async updateNode(t,e){let i=this.getNodePath(this.currentData,t);if(!i.length)return!1;let n=this;for(let[s,o]of i.entries()){const t=o.index;if(s===i.length-1)return void(await n.fetchChildByPath(o.index,e));n.data[o.index].expanded||await n.setExpand(o.index,!0,!0),n=n.$refs["childBranch-".concat(t)][0]}},async expandNode(t,e=!1,i=!1){let n=this.getNodePath(this.currentData,t);if(!n.length)return!1;let s=this;for(let[o,r]of n.entries()){const t=r.index;o===n.length-1?await s.setExpand(r.index,!0,i):s.data[r.index].expanded||await s.setExpand(r.index,!0,e),s=s.$refs["childBranch-".concat(t)][0]}},async selectNode(t,e=!1,i=!1){let n=this.getNodePath(this.currentData,t);if(!n.length)return!1;let s,o=this;const r=[];for(let[a,l]of n.entries()){if(s=l.index,a===n.length-1)return await o.setSelect(l.index),void(i&&(await Promise.all(r),this.$refs["ps-root"].ensureVisible(o.$refs.node[l.index])));o.data[l.index].expanded||(await o.setExpand(l.index,!0,e),i&&r.push(new Promise((t=>{o.$refs["slideUpDown-".concat(l.index)][0].$once("expand",t)})))),o=o.$refs["childBranch-".concat(s)][0]}},setExpandByNodeId(t,e=!0){const i=this.currentData.findIndex((e=>e[this.paramsInfo.id]===t));i>-1?this.setExpand(i,e):this.broadcast("TreePanel","set-node-expanded",[t,e])},selectPrevNode(){let t=this.displayedNodes.findIndex((t=>t[this.paramsInfo.id]===this.currentSelectedId));for(;--t>=0&&!Qr(this.displayedNodes[t]););this.selectNodeByIndex(t)},selectNextNode(){let t=this.displayedNodes.findIndex((t=>t[this.paramsInfo.id]===this.currentSelectedId));for(;++t{}},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?ta(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?ta(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?ta(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?ta(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?ta(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?ta(this.customButtonsGroup.next.disabled,t):e},startButtonText(){let t=this.$options.currentStep;return this.customButtonsGroup&&this.customButtonsGroup.start&&this.customButtonsGroup.start.text?ta(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?ta(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?ta(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 e of this.$options.unwatchers)e&&e();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])}}},(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)])}),[],!1,null,null,null).exports;let ia=Dt?null:window.Ext,na=Dt?null:window.SYNO;var sa={async mounted(){ia&&ia.EventManager&&ia.EventManager.onWindowResize(this.onWindowResize,this),await this.$nextTick(),this.focus()},beforeDestroy(){ia&&ia.EventManager&&ia.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||E,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,...nn()(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,ia&&t instanceof ia.Window)return t.getTopWin();return t},getMountEl(){let t=this.getTopWin();return ia&&t instanceof ia.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=ia&&i instanceof ia.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());na&&na.SDS&&na.SDS.StatusNotifier&&na.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}}}};i(233);function oa(t,e,i,n){let s=e-t;return i+s{}}},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=oa(this.startX,e,this.currentWidth,this.minWidth):"w"===this.horizontal&&(this.diffX=oa(e,this.startX,this.currentWidth,this.minWidth),this.left=this.startLeft-this.diffX),"s"===this.vertical?this.diffY=oa(this.startY,i,this.currentHeight,this.minHeight):"n"===this.vertical&&(this.diffY=oa(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,Yt(document,"mouseup",(()=>{this.mouseUp(),Kt(document,"mousemove",this.$options.mouseMove)})),Ut(document,"mousemove",this.$options.mouseMove)}}},(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()])}),[],!1,null,null,null).exports;i(234);function aa(t,e){return e-t}var la=R({name:"Draggable",mixins:[U("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,Ut(this.$options.headerEl,"mousedown",this.$options.mouseDown))},beforeDestroy(){this.$options.headerEl&&Kt(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=aa(this.startX,e),this.diffY=aa(this.startY,i);let n=this.startTop+this.diffY,s=this.startLeft+this.diffX;n<=this.constrainRect.top&&(this.diffY=this.constrainRect.top-this.startTop,n=this.constrainRect.top),Vt(this.$refs.ghost,"top","".concat(n,"px")),Vt(this.$refs.ghost,"left","".concat(s,"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,Yt(document,"mouseup",(()=>{this.mouseUp(),Kt(document,"mousemove",this.$options.mouseMove)})),Ut(document,"mousemove",this.$options.mouseMove))}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isDragging?i("div",{ref:"ghost",class:t.ghostCls,style:t.ghostStyle}):t._e()}),[],!1,null,null,null).exports,ca=(i(235),R({name:"WindowHeaderToolWrapper",props:{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},maximized:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1}},methods:{}},(function(t,e){var i=e._c;return i("div",{class:["window-header-tool-wrapper",e.props.darkTheme?"dark":"light"]},[e.props.showFullscreen?i("div",{staticClass:"tool fullscreen",on:{click:e.listeners.fullscreen}}):e._e(),e._v(" "),e.props.showHelp?i("div",{staticClass:"tool help",on:{click:e.listeners.help}}):e._e(),e._v(" "),e.props.showMinimize?i("div",{staticClass:"tool minimize",on:{click:e.listeners.minimize}}):e._e(),e._v(" "),e.props.showMaximize&&e.props.maximized?i("div",{staticClass:"tool restore",on:{click:e.listeners.restore}}):e._e(),e._v(" "),e.props.showMaximize&&!e.props.maximized?i("div",{staticClass:"tool maximize",on:{click:e.listeners.maximize}}):e._e(),e._v(" "),e.props.showClose?i("div",{staticClass:"tool close",on:{click:e.listeners.close}}):e._e()])}),[],!0,null,null,null).exports),ua=R({name:"WindowHeader",components:{vWindowHeaderToolWrapper:ca},mixins:[V],props:{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},iconUrl:{type:String,default:void 0},title:{type:String,default:void 0},maximized:{type:Boolean,default:!1},showAppIcon:{type:Boolean,default:!0},isModalized:{type:Boolean,default:!1},isWizard:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},data:()=>({prefixCls:"v-window-header"}),computed:{wrapperCls(){return["".concat(this.prefixCls,"-wrapper"),{"modal-win":this.isModalized,"wizard-win":this.isWizard,draggable:this.draggable}]},iconStyle(){let t={};return this.iconUrl&&(t.backgroundImage="url(".concat(this.iconUrl,")")),t}},mounted(){},methods:{onDblClick(){this.maximized?this.$emit("restore"):this.$emit("maximize")}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapperCls,on:{dblclick:t.onDblClick}},[t.showAppIcon?i("div",{staticClass:"app-icon",style:t.iconStyle}):t._e(),i("div",{class:t.prefixCls+"-text"},[i("div",{class:t.prefixCls+"-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t._t("sub-title")],2),t._v(" "),i("v-window-header-tool-wrapper",{attrs:{"dark-theme":t.darkTheme,"show-fullscreen":t.showFullscreen,"show-help":t.showHelp,"show-minimize":t.showMinimize,"show-maximize":t.showMaximize,"show-close":t.showClose,maximized:t.maximized},on:{fullscreen:function(e){return t.$emit("fullscreen")},help:function(e){return t.$emit("help")},minimize:function(e){return t.$emit("minimize")},restore:function(e){return t.$emit("restore")},maximize:function(e){return t.$emit("maximize")},close:function(e){return t.$emit("close")}}})],1)}),[],!1,null,null,null).exports;i(236);const da=["top","bottom"];var ha=R({name:"Toast",mixins:[V,vi,we],props:{alignment:{type:String,default:void 0,validator:t=>da.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:E},text:{type:String,default:""},actionBtnText:{type:String,default:""},actionBtnCls:{type:String,default:""},textCls:{type:String,default:""},onClickActionBtn:{type:Function,default:E},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 da[0]:this.align="t->t";break;case da[1]:this.align="b->b"}}}},mounted(){let t=this.delay;!1!==t&&(y(t)?t=3e3: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=!y(e.constrainMode)||e.constrainMode,n=!y(e.absoluteMode)||e.absoluteMode,s=this.$alignManager.getAlignToXY(this.$el,t,this.align,this.offset,i,n,this.getContainerEl());this.top=s[1],this.left=s[0]}}},(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()])}),[],!1,null,null,null).exports;const pa=function(t,e,i){const n="undefined"!=typeof window&&window.Vue?window.Vue:r.a;let s;e.parent&&(s=e.parent,delete e.parent);const o=n.extend(ha),a=document.createElement("div");t.appendChild(a);const l=new o({parent:s,el:a,propsData:e});return l.doAlign(t,i),l},fa=Li({components:[ha]},(t=>{t.prototype.$getToastBox=pa}));const ma=Dt?null:window.SYNO;i(232);function ga(t){if(t){if(I(t,"ModalWindow"))return t;for(let e of t.$children){let t=ga(e);if(t)return t}}}function va(t,e){t.removeModalWindow(e),t.unmask(),e.owner=null}let ya=Dt?null:window.SYNO,ba=Dt?null:window.Ext;var wa=R({name:"Window",components:{vResizable:ra,vDraggable:la,vWindowHeader:ua,vTrapFocus:H,vSpin:xi,vLayout:an},mixins:[V,sa,vi,Mi,q("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:E},beforeMinimize:{type:Function,default:E},beforeMaximize:{type:Function,default:E},maximizeHook:{type:Function,default:E},minimizeHook:{type:Function,default:E},restoreHook:{type:Function,default:E},fullscreenHook:{type:Function,default:E},closeHook:{type:Function,default:E},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:Dt?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":Pt,"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(Dt)return null;let e=document.body;return ma&&ma.SDS&&ma.SDS.Desktop&&ma.SDS.Desktop.$el&&ma.SDS.Desktop.$el?e=ma.SDS.Desktop.$el:t.isActive()&&(e=t.getContainerEl()),e}(this.$windowManager);if(!t)return;const{top:e,left:i,bottom:n,right:s}=t.getBoundingClientRect();return{top:e,left:i,bottom:n,right:s}},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(){ya&&ya.SDS&&ya.SDS.WindowMgr?this.$options.manager=ya.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.autoHeight=!1,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||(y(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"),ya&&ya.SDS&&ya.SDS.StatusNotifier&&ya.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,ya&&ya.SDS&&ya.SDS.TaskBar?this.top=ya.SDS.TaskBar.height():this.top=0,this.fitContainer(),this.maximized=!0,ya&&ya.SDS&&ya.SDS.StatusNotifier&&ya.SDS.StatusNotifier.fireEvent("windowBeforeMaximize",this),this.$emit("maximize")))},getFullHeight({withinTaskbar:t=!1}={}){const e=document.body.getBoundingClientRect();return!t&&ya&&ya.SDS&&ya.SDS.TaskBar?e.height-ya.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,ya&&ya.SDS&&ya.SDS.StatusNotifier&&ya.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=le(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(ba&&t instanceof ba.Window)return t.owner=this,this.openExtWindow(t);if(t._isVue)n=i=t,this.getMountEl().appendChild(t.$el);else{let s=document.createElement("div");i=new t({propsData:e}),this.getMountEl().appendChild(s),i.$mount(s),n=ga(i)}if(!n)throw new Error("window is not found");return ya&&ya.SDS&&ya.SDS.Desktop&&i&&ya.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",(()=>{va(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",(()=>{va(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:s,bottom:o}=t.getBoundingClientRect(),r=this.currentWidth,a=this.currentHeight;this.autoHeight&&(a=this.$el.getBoundingClientRect().height),this.autoWidth&&(r=this.$el.getBoundingClientRect().width);let l=(n+s)/2,c=(i+o)/2;this.left=l-r/2+e[0],this.top=c-a/2+e[1]},getMsgBox(t,e={},i={}){return!t||D(t)||g(t)||(Ee("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=ya.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=ya.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,s=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(s)},setZIndex(t){this.$refs._window&&Vt(this.$refs._window,"zIndex","".concat(t)),this.$emit("zindex-changed",t)},getZIndex(){return this.$refs._window?Vt(this.$refs._window,"zIndex"):0},getToastBox(t,e={}){e.text=t,pa(this.$el,e,{constrainMode:!1,absoluteMode:!1})},open(){this.opened||(this.opened=!0),this.show()}}},(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)}),[],!1,null,null,null).exports;let xa=Dt?null:window.Ext;var _a=R({name:"ModalWindow",components:{vLayout:an},extends:wa,props:{minimizable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!1},showMaximize:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},maskContainer:{type:[Boolean,Object],default:!0},headerCls:{type:String,default:""},bodyCls:{type:String,default:""},darkTheme:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},layoutType:{type:String,default:"modal"}},data:()=>({modal:!0,hidden:!0,ownerMasked:!1,isExtOwner:!1,ownerMinimizable:!1}),computed:{extendedBodyCls(){return[this.prefixCls+"-body",this.bodyCls]},canMinimize(){return this.minimizable||this.ownerMinimizable}},beforeDestroy(){this.$options.manager&&this.containerMasked&&this.doUnmaskContainer()},methods:{init(){this.maskOwner(),this.hidden=!1,this.$nextTick((()=>{this.alignCenterToOwner(),this.doConstrain()}))},maskOwner(){this.$options.owner?(this.$options.owner.mask(0,null,null,!0),this.ownerMasked=!0):this.$options.manager&&this.maskContainer&&this.doMaskContainer(v(this.maskContainer)?this.maskContainer:void 0)},alignCenterToOwner(){let t;if(this.isExtOwner&&this.$options.owner.el.dom?t=this.$options.owner.el.dom:this.$options.owner&&this.$options.owner.$el&&(t=this.$options.owner.$el),t)return this.alignCenterToElement(t)},setOwner(t){xa&&t instanceof xa.Window&&(this.isExtOwner=!0),this.ownerMinimizable=t.minimizable,this.$options.owner=t},hideFromOwner(){return!!this.$options.owner&&(this.isExtOwner?this.$options.owner&&this.$options.owner.modalWin&&this.$options.owner.modalWin.remove(this):this.$options.owner&&this.$options.owner.removeModalWindow(this),this.ownerMasked&&(this.$options.owner.unmask(!0),this.ownerMasked=!1),!0)},async doClose(){this.hideFromOwner()&&(this.$options.owner=null),await wa.methods.doClose.apply(this,arguments)},hasOwnerWin:function(t){let e=this;for(;e;){if(e===t)return!0;e=e._isVue?e.$options.owner:e.owner}return!1},setZIndex(t){wa.methods.setZIndex.apply(this,arguments)}}},(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},nativeOn:{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)}}},[t._t("fullsize-window-mask"),t._v(" "),t.showHeader?i("v-window-header",t._b({ref:"header",class:t.headerCls,attrs:{"is-modalized":"","show-app-icon":!1,"dark-theme":t.darkTheme},on:{close:t.onClose,minimize:t.onMinimize,maximize:t.onMaximize,fullscreen:t.onFullscreen,restore:t.onRestore}},"v-window-header",t.headerProps,!1)):t._e(),t._v(" "),i("v-trap-focus",{ref:"trapFocus",class:t.extendedBodyCls},[i("div",{staticClass:"v-trap-focus-indicator",attrs:{tabindex:"0",role:"dialog","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()],2)}),[],!1,null,null,null).exports,Sa=(i(231),R({name:"WizardWindow",components:{vSpin:To},extends:_a,props:{id:{type:String,default:function(){return this.uuid}},width:{type:[String,Number],default:480},minWidth:{type:[String,Number],default:420},height:{type:[String,Number],default:"auto"},showClose:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!1},maximizable:{type:Boolean,default:!1}},data:()=>({subTitle:void 0,subTitleOpacity:0}),computed:{windowCls(){return[this.prefixCls,"v-wizard-window",{"active-win":this.active},{"deactive-win":!this.active},{"no-shadow":this.noShadow}]},subTitleStyle(){return{opacity:this.subTitleOpacity}}},mounted(){this.$on("wizard.currentStep",(t=>{this.subTitle=t.headline,this.focus()})),this.$on("wizard.stepScroll",(t=>{this.onStepScrolled(t)}))},methods:{onStepScrolled(t){this.subTitleOpacity=t?Math.min(t,56)/56:0},clearStatusBusy(){this.clearStatus()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{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,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",attrs:{"is-modalized":"","is-wizard":"","show-app-icon":!1,"dark-theme":""},on:{close:t.onClose},scopedSlots:t._u([{key:"sub-title",fn:function(){return[i("div",{staticClass:"sub-wrapper",style:t.subTitleStyle,attrs:{id:t.id+"-subtitle"}},[t._v("\n "+t._s(" - "+t.subTitle)+"\n ")])]},proxy:!0}])},"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:"dialog","aria-label":t.currentTitle,"aria-describedby":t.id+"-subtitle"}}),t._v(" "),t._t("default")],2),t._v(" "),t.draggable?i("v-draggable",{attrs:{"prefix-cls":"v-wizard-window","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)}),[],!1,null,null,null).exports),Ca=(i(230),R({name:"Wizard",components:{wizardFooter:ea,perfectScrollbar:Hi,vLayout:an},mixins:[V,vi],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":Pt})},watch:{activateStepKey(t,e){this.broadcast("WizardStep","wizard.activateStepKey",this.activateStepKey)},activeStepKey(t,e){this.activateStepKey=this.activeStepKey}},mounted(){this.$parent&&I(this.$parent,Sa)&&(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 i of this.$options.currentStepsUnWatchers)i();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)}}},(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)}),[],!1,null,null,null).exports),ka=R({name:"WizardStep",components:{rootComponent:{functional:!0,props:{showTransition:{type:[Boolean,Object],default:!1}},render(t,e){if(e.props.showTransition){return t("transition",{props:y(e.props.showTransition)?{name:"fade"}:e.props.showTransition},e.children)}return e.children}}},mixins:[V],props:{type:{type:String,default:"normal",validator:function(t){return-1!==["normal","welcome"].indexOf(t)}},showTransition:{type:[Boolean,Object],default:!1},stepKey:{type:String,default:void 0},nextStepKey:{type:String,default:void 0},headline:{type:String,default:void 0},preEnterNextStep:{type:Function,default:void 0},preEnterPreviousStep:{type:Function,default:void 0},postEnterNextStep:{type:Function,default:void 0},postEnterPreviousStep:{type:Function,default:void 0},finished:{type:Function,default:void 0},showFooter:{type:Boolean,default:!0}},data:()=>({prefixCls:"v-wizard-step",currentStepKey:null,previousStepKey:null,isActive:!1}),computed:{},mounted(){this.$on("wizard.activateStepKey",((t,e)=>{this.currentStepKey=t,this.currentStepKey===this.stepKey?(this.dispatch("Wizard","step.currentStep",this),this.isActive=!0,this.$emit("activate",this)):this.isActive&&(this.$emit("deactivate",this),this.isActive=!1)}))},methods:{async nextStep(){let t=this.preEnterNextStep;if(t){if(!1===await t())return}this.$nextTick((()=>{this.dispatch("Wizard","step.nextStepKey",this.nextStepKey),t=this.postEnterNextStep,t&&t()}))},async previousStep(){let t=this.preEnterPreviousStep;if(t){if(!1===await t())return}this.$nextTick((()=>{this.dispatch("Wizard","step.previousStepKey",this.previousStepKey),t=this.postEnterPreviousStep,t&&t()}))}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("root-component",{attrs:{"show-transition":t.showTransition}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.currentStepKey===t.stepKey,expression:"currentStepKey === stepKey"},{name:"syno-id",rawName:"v-syno-id"}],class:t.prefixCls},[t._t("default")],2)])}),[],!1,null,null,null).exports;i(237);function Ta(t,e,i){let n=t;const s=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find((t=>g(n[t])));if(!g(n[s]))return!1;do{if(n[s](e))return!0;if(n===i)return!1;n=n.parentNode}while(n);return!1}const Da={start:"touchstart",move:"touchmove",stop:"touchend"},Ia={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},$a={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let Oa={start:"mousedown",move:"mousemove",stop:"mouseup"};var Ma=R({replace:!0,name:"DraggableResizable",props:{debug:{type:Boolean,default:!1},className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"v-handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:Number,default:200,validator:t=>t>0},h:{type:Number,default:200,validator:t=>t>0},minWidth:{type:Number,default:0,validator:t=>t>=0},minHeight:{type:Number,default:0,validator:t=>t>=0},maxWidth:{type:Number,default:null,validator:t=>t>=0},maxHeight:{type:Number,default:null,validator:t=>t>=0},x:{type:Number,default:0,validator:t=>"number"==typeof t},y:{type:Number,default:0,validator:t=>"number"==typeof t},z:{type:[String,Number],default:"auto",validator:t=>"string"==typeof t?"auto"===t:t>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:t=>{const e=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(t.filter((t=>e.has(t)))).size===t.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:t=>["x","y","both"].includes(t)},grid:{type:Array,default:()=>[1,1]},parent:{type:[Boolean,String],default:!1},onDragStart:{type:Function,default:null},onResizeStart:{type:Function,default:null}},data:function(){return{rawWidth:this.w,rawHeight:this.h,rawLeft:this.x,rawTop:this.y,rawRight:null,rawBottom:null,left:this.x,top:this.y,right:null,bottom:null,aspectFactor:this.w/this.h,parentWidth:null,parentHeight:null,minW:this.minWidth,minH:this.minHeight,maxW:this.maxWidth,maxH:this.maxHeight,handle:null,enabled:this.active,resizing:!1,dragging:!1,zIndex:this.z}},computed:{style(){let t={top:"".concat(this.top,"px"),left:"".concat(this.left,"px"),zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?Ia:$a};return this.draggable&&(t.position="absolute"),this.resizable&&this.actualHandles.forEach((e=>{(e.includes("b")||e.includes("t"))&&(t.height="".concat(this.height,"px")),(e.includes("l")||e.includes("r"))&&(t.width="".concat(this.width,"px"))})),t},actualHandles(){return this.resizable?this.handles:[]},width(){return this.parentWidth-this.left-this.right},height(){return this.parentHeight-this.top-this.bottom},resizingOnX(){return Boolean(this.handle)&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return Boolean(this.handle)&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return Boolean(this.handle)&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(t){this.enabled=t,t?this.$emit("activated"):this.$emit("deactivated")},z(t){(t>=0||"auto"===t)&&(this.zIndex=t)},rawLeft(t){const e=this.bounds,i=this.aspectFactor,n=this.lockAspectRatio,s=this.left,o=this.top;null!==e.minLeft&&t0&&t<=this.width&&(this.minW=t)},minHeight(t){t>0&&t<=this.height&&(this.minH=t)},maxWidth(t){this.maxW=t},maxHeight(t){this.maxH=t},w(){if(this.resizing||this.dragging)return;this.parent&&(this.bounds=this.calcResizeLimits());const t=this.width-this.w;t%this.grid[0]==0&&(this.rawRight=this.right+t)},h(){if(this.resizing||this.dragging)return;this.parent&&(this.bounds=this.calcResizeLimits());const t=this.height-this.h;t%this.grid[1]==0&&(this.rawBottom=this.bottom+t)}},created:function(){this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1),[this.parentWidth,this.parentHeight]=this.getParentSize(),this.rawRight=this.parentWidth-this.rawWidth-this.rawLeft,this.rawBottom=this.parentHeight-this.rawHeight-this.rawTop,document.body.addEventListener("mousedown",this.deselect),document.body.addEventListener("touchend",this.deselect),document.body.addEventListener("touchcancel",this.deselect),window.addEventListener("resize",this.checkParentSize),this.$on("parent:resize",this.checkParentSize)},beforeDestroy:function(){document.body.removeEventListener("mousedown",this.deselect),document.body.removeEventListener("touchstart",this.handleUp),document.body.removeEventListener("mousemove",this.move),document.body.removeEventListener("touchmove",this.move),document.body.removeEventListener("mouseup",this.handleUp),document.body.removeEventListener("tochend",this.deselect),document.body.removeEventListener("touchcancel",this.deselect),window.removeEventListener("resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0,top:0,left:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[t,e]=this.getParentSize(),i=this.parentWidth-t,n=this.parentHeight-e;this.rawRight-=i,this.rawBottom-=n,this.parentWidth=t,this.parentHeight=e}},getParentSize(){const t=this.parent;if(!0===t){const t=this.$el.parentNode,e=window.getComputedStyle(t,null);let i=parseInt(e.getPropertyValue("width"),10),n=parseInt(e.getPropertyValue("height"),10);return i=isNaN(i)?t.offsetWidth:i,n=isNaN(n)?t.offsetHeight:n,[i,n]}if("string"==typeof t){const e=document.querySelector(t);if(!(e instanceof HTMLElement))throw new Error("The selector ".concat(t," does not match any element"));return[e.offsetWidth,e.offsetHeight]}return[null,null]},elementTouchDown(t){Oa=Da,this.elementDown(t)},elementDown(t){const e=t.target||t.srcElement;if(this.$el.contains(e)){if(this.onDragStart&&!1===this.onDragStart(t))return;if(this.dragHandle&&!Ta(e,this.dragHandle,this.$el)||this.dragCancel&&Ta(e,this.dragCancel,this.$el))return;this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragging=!0),this.mouseClickPosition.mouseX=t.touches?t.touches[0].pageX:t.pageX,this.mouseClickPosition.mouseY=t.touches?t.touches[0].pageY:t.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),document.body.addEventListener(Oa.move,this.move),document.body.addEventListener(Oa.stop,this.handleUp)}},calcDragLimits(){return{minLeft:(this.parentWidth+this.left)%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:(this.parentWidth+this.right)%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:(this.parentHeight+this.top)%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:(this.parentHeight+this.bottom)%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(t){const e=t.target||t.srcElement,i=new RegExp(this.className+"-([trmbl]{2})","");this.$el.contains(e)||i.test(e.className)||(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),document.body.removeEventListener(Oa.move,this.handleMove))},handleTouchDown(t,e){Oa=Da,this.handleDown(t,e)},handleDown(t,e){this.onResizeStart&&!1===this.onResizeStart(t,e)||(e.stopPropagation&&e.stopPropagation(),this.lockAspectRatio&&!t.includes("m")?this.handle="m"+t.substring(1):this.handle=t,this.resizing=!0,this.mouseClickPosition.mouseX=e.touches?e.touches[0].pageX:e.pageX,this.mouseClickPosition.mouseY=e.touches?e.touches[0].pageY:e.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),document.body.addEventListener(Oa.move,this.handleMove),document.body.addEventListener(Oa.stop,this.handleUp))},calcResizeLimits(){let t=this.minW,e=this.minH,i=this.maxW,n=this.maxH;const s=this.aspectFactor,[o,r]=this.grid,a=this.width,l=this.height,c=this.left,u=this.top,d=this.right,h=this.bottom;this.lockAspectRatio&&(t/e>s?e=t/s:t=s*e,i&&n?(i=Math.min(i,s*n),n=Math.min(n,i/s)):i?n=i/s:n&&(i=s*n)),i-=i%o,n-=n%r;const p={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(p.minLeft=(this.parentWidth+c)%o,p.maxLeft=c+Math.floor((a-t)/o)*o,p.minTop=(this.parentHeight+u)%r,p.maxTop=u+Math.floor((l-e)/r)*r,p.minRight=(this.parentWidth+d)%o,p.maxRight=d+Math.floor((a-t)/o)*o,p.minBottom=(this.parentHeight+h)%r,p.maxBottom=h+Math.floor((l-e)/r)*r,i&&(p.minLeft=Math.max(p.minLeft,this.parentWidth-d-i),p.minRight=Math.max(p.minRight,this.parentWidth-c-i)),n&&(p.minTop=Math.max(p.minTop,this.parentHeight-h-n),p.minBottom=Math.max(p.minBottom,this.parentHeight-u-n)),this.lockAspectRatio&&(p.minLeft=Math.max(p.minLeft,c-u*s),p.minTop=Math.max(p.minTop,u-c/s),p.minRight=Math.max(p.minRight,d-h*s),p.minBottom=Math.max(p.minBottom,h-d/s))):(p.minLeft=null,p.maxLeft=c+Math.floor((a-t)/o)*o,p.minTop=null,p.maxTop=u+Math.floor((l-e)/r)*r,p.minRight=null,p.maxRight=d+Math.floor((a-t)/o)*o,p.minBottom=null,p.maxBottom=h+Math.floor((l-e)/r)*r,i&&(p.minLeft=-(d+i),p.minRight=-(c+i)),n&&(p.minTop=-(h+n),p.minBottom=-(u+n)),this.lockAspectRatio&&i&&n&&(p.minLeft=Math.min(p.minLeft,-(d+i)),p.minTop=Math.min(p.minTop,-(n+h)),p.minRight=Math.min(p.minRight,-c-i),p.minBottom=Math.min(p.minBottom,-u-n))),p},move(t){this.resizing?this.handleMove(t):this.dragging&&this.elementMove(t)},elementMove(t){const e=this.axis,i=this.mouseClickPosition,n=e&&"y"!==e?i.mouseX-(t.touches?t.touches[0].pageX:t.pageX):0,s=e&&"x"!==e?i.mouseY-(t.touches?t.touches[0].pageY:t.pageY):0,[o,r]=this.snapToGrid(this.grid,n,s);(o||r)&&(this.rawTop=i.top-r,this.rawBottom=i.bottom+r,this.rawLeft=i.left-o,this.rawRight=i.right+o,this.$emit("dragging",this.left,this.top))},handleMove(t){const e=this.handle,i=this.mouseClickPosition,n=i.mouseX-(t.touches?t.touches[0].pageX:t.pageX),s=i.mouseY-(t.touches?t.touches[0].pageY:t.pageY),[o,r]=this.snapToGrid(this.grid,n,s);(o||r)&&(e.includes("b")?this.rawBottom=i.bottom+r:e.includes("t")&&(this.rawTop=i.top-r),e.includes("r")?this.rawRight=i.right+o:e.includes("l")&&(this.rawLeft=i.left-o),this.$emit("resizing",this.left,this.top,this.width,this.height))},handleUp(t){this.handle=null,this.resetBoundsAndMouseState(),this.rawTop=this.top,this.rawBottom=this.bottom,this.rawLeft=this.left,this.rawRight=this.right,this.resizing&&(this.resizing=!1,this.$emit("resizestop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragstop",this.left,this.top)),document.body.removeEventListener(Oa.move,this.handleMove)},snapToGrid:(t,e,i)=>[Math.round(e/t[0])*t[0],Math.round(i/t[1])*t[1]]}},(function(){var t,e=this,i=e.$createElement,n=e._self._c||i;return n("div",{directives:[{name:"syno-id",rawName:"v-syno-id"}],class:[(t={},t[e.classNameActive]=e.enabled,t[e.classNameDragging]=e.dragging,t[e.classNameResizing]=e.resizing,t[e.classNameDraggable]=e.draggable,t[e.classNameResizable]=e.resizable,t),e.className],style:e.style,on:{mousedown:e.elementDown,touchstart:e.elementTouchDown}},[e._l(e.actualHandles,(function(t){return n("div",{key:t,class:[e.classNameHandle,e.classNameHandle+"-"+t],style:{display:e.enabled?"block":"none"},on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.handleDown(t,i)},touchstart:function(i){return i.stopPropagation(),i.preventDefault(),e.handleTouchDown(t,i)}}},[e._t(t)],2)})),e._v(" "),e._t("default")],2)}),[],!1,null,null,null).exports;i(238);var Ea=R({name:"ScheduleTable",mixins:[V,ai],props:{prefix:{type:String,default:"v-schedule"},options:{type:Array,required:!0,default:()=>[]},splitMinute:{type:Number,default:60,validator:t=>60===t||30===t||15===t},value:{type:String,validator:t=>!!t&&t.length%168==0,default(){const t=168*Math.floor(60/this.splitMinute);return Array(t).join("1")}},optionsCountPerRow:{type:Number,default:3},optionsMaxWidth:{type:[String,Number],default:"1fr"}},data(){return{btnWrapperWidth:"100%",selected:0,days:[this.$i18n("uicommon","schedule_abbre_sun"),this.$i18n("uicommon","schedule_abbre_mon"),this.$i18n("uicommon","schedule_abbre_tue"),this.$i18n("uicommon","schedule_abbre_wed"),this.$i18n("uicommon","schedule_abbre_thu"),this.$i18n("uicommon","schedule_abbre_fri"),this.$i18n("uicommon","schedule_abbre_sat")],hours:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],hoverHour:-1,hoverDay:-1,hoverAll:!1,dragRange:[[-1,-1],[-1,-1]],isDragging:!1}},computed:{numbersOfHour(){return[...Array(Math.floor(60/this.splitMinute))].map(((t,e)=>e))},headCls(){return["split-".concat(this.splitMinute)]},btnWrapperStyle(){return{"grid-template-columns":"repeat(".concat(this.optionsCountPerRow,", minmax(0, ").concat(this.optionsMaxWidth,"))"),width:this.btnWrapperWidth}}},created(){this.$options.applyDragRange=Si()(this._applyDragRange,100)},mounted(){this.$nextTick((()=>{_t(this.$refs.table,this.updateBtnWrapperWidth,this)}))},beforeDestroy(){this.$el&&St(this.$refs.table,this.updateBtnWrapperWidth)},methods:{updateBtnWrapperWidth(t){t.contentRect.width>0&&(this.btnWrapperWidth="".concat(t.contentRect.width,"px"))},scheduleBtnStyle(t){return this.checkIsBuildinColor(t.color)?{}:{backgroundColor:t.color}},scheduleBtnCls(t,e){return{["".concat(this.prefix,"-btn-icon")]:!0,["".concat(this.prefix,"-btn-icon-clear")]:t.clear,["".concat(this.prefix,"-btn-icon-pressed")]:e===this.selected,["".concat(this.prefix,"-btn-icon-disabled")]:t.disabled,["".concat(this.prefix,"-btn-icon--").concat(t.color)]:this.checkIsBuildinColor(t.color)}},getIndex(t,e,i){return(24*t+e)*this.numbersOfHour.length+i},getCustomCellSlot(t,e,i){return this.getItem(t,e,i).customCellSlot},cellCls(t,e,i){const n=this.getItem(t,e,i);if(n)return["body-cell","cell-option","split-".concat(this.splitMinute),{"split-cell":i>0,"cell-option--clear":n.clear,["cell-option--".concat(n.color)]:this.checkIsBuildinColor(n.color),"row-col-over":this.hoverHour===e||this.hoverDay===t||this.isInDragZone(t,e,i)||this.hoverAll}]},cellStyles(t,e,i){const n=this.getItem(t,e,i);return this.checkIsBuildinColor(n.color)?{}:{backgroundColor:n.color}},getItem(t,e,i){const n=this.getIndex(t,e,i),s=this.value.charAt(n);return this.options[s]||this.options[0]},checkIsBuildinColor:t=>["blue","green","orange","red","yellow"].includes(t),onScheduleBtnSelect(t,e){this.selected=t,this.$emit("selected",{index:t,option:e})},onMouseLeaveAll(t){this.hoverAll=!1},onMouseOverAll(t){this.hoverAll=!0},onMouseOverHeadCell(t){this.hoverHour=t},onMouseLeaveHeadCell(t){this.hoverHour===t&&(this.hoverHour=-1)},selectHeadCell(t){let e=this.value.split("");const i=this.numbersOfHour.length,n=this.days.length;for(let s=0;st.hasAttribute("day")&&t.hasAttribute("hour")&&t.hasAttribute("hour-split-index"),isInDragZone(t,e,i){if(!this.isDragging)return!1;const{x:n,y:s}=this.getCoordinate(t,e,i),{startX:o,startY:r,endX:a,endY:l}=this.getDragRange();return n>=o&&n<=a&&s>=r&&s<=l},getCoordinate(t,e,i){return{x:e*this.numbersOfHour.length+i,y:t}},getCellIndex(t){const e=+t.getAttribute("day"),i=+t.getAttribute("hour"),n=+t.getAttribute("hour-split-index");return this.getCoordinate(e,i,n)},onMouseDown(t){this.isDragging=!0,this.updateDragZone(t,[0,1])},updateDragZone(t,e=[0]){let i=t.target;if(!this.canDragCell(i)||!this.isDragging)return;let{x:n,y:s}=this.getCellIndex(i);for(let o=0;o({}),computed:{wrapCls(){return["v-expandable-item","item-wrap",{"item-expanded":this.expanded},{"item-collapsed":!this.expanded}]},iconCls(){return["item-icon",this.icon]},statusIcon(){return["item-status-icon",this.statusIconCls]},toggleCls(){return["item-toggle",{"item-toggle-expanded":this.expanded}]}},methods:{toggleItem(){this.expandable&&this.$emit("change",!this.expanded)},getDescTip(){return!!this.enableDescTip&&(this.descTip||this.desc)},getTitleTip(){return!!this.enableTitleTip&&(this.titleTip||this.title)},getStatusTip(){return!!this.enableStatusTip&&(this.summaryStatusTip||this.summaryStatus)}}},(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.wrapCls},[i("div",{staticClass:"item-summary"},[i("div",{class:t.iconCls}),t._v(" "),i("div",{class:t.statusIconCls}),t._v(" "),i("div",[i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.getTitleTip(),expression:"getTitleTip()"}],staticClass:"item-title",domProps:{innerHTML:t._s(t.title)}}),i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.getDescTip(),expression:"getDescTip()"}],staticClass:"item-desc",domProps:{innerHTML:t._s(t.desc)}}),t._v(" "),i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.getStatusTip(),expression:"getStatusTip()"}],staticClass:"item-status",domProps:{innerHTML:t._s(t.summaryStatus)}})]),t._v(" "),t._t("toggle-icon",(function(){return[i("div",{class:t.toggleCls,on:{click:t.toggleItem}},[i("div",{staticClass:"item-toggle-img"})])]})),t._v(" "),t._t("additional-info")],2),t._v(" "),i("div",{staticStyle:{overflow:"hidden"}},[i("v-slide-up-down",{attrs:{"syno-id":t.synoId+"-slide-up-down",expand:t.expanded}},[i("div",{ref:"detail"},[t._t("detail")],2)])],1)])}),[],!1,null,null,null).exports),Aa=(i(240),R({name:"DataView",components:{vPerfectScrollbar:Hi},props:{items:{type:Array,default:()=>[]},idProperty:{type:String,default:"id"},singleSelect:{type:Boolean,default:!0}},data(){return{prefix:"v-data-view",selectedIndex:this.singleSelect?-1:[],lastSelectIndex:-1}},computed:{},created(){this.items.forEach(((t,e)=>{void 0===t[this.idProperty]&&(t[this.idProperty]=e)}))},methods:{onContextMenu(t,e,i){this.$emit("contextmenu",t,e,i)},onKeyDown(t){switch(t.code||t.which||t.keyCode){case"ArrowUp":case"ArrowLeft":case 37:case 38:t.preventDefault(),t.stopPropagation(),this.selectPrev(t.shiftKey);break;case"ArrowRight":case"ArrowDown":case 39:case 40:t.preventDefault(),t.stopPropagation(),this.selectNext(t.shiftKey)}},unselect(t){if(this.singleSelect)this.selectedIndex=-1;else{let e=this.selectedIndex.indexOf(t);e>-1&&this.selectedIndex.splice(e,1)}this.lastSelectIndex=-1},select(t,e,{ensureRowVisible:i=!0}={}){this.singleSelect?this.selectedIndex=t:e?this.isIndexInSelected(t)||this.selectedIndex.push(t):this.selectedIndex=[t],this.lastSelectIndex=t,i&&this.ensureItemVisible(t)},selectPrev(t){t=t&&!this.singleSelect;let e=this.lastSelectIndex-1;if(!(e<0))if(t){let t=this.selectedIndex.length>0?this.selectedIndex[0]:e;this.selectRange(t,e)}else this.select(e,t)},selectNext(t){t=t&&!this.singleSelect;let e=this.lastSelectIndex+1;if(!(e>this.items.length-1))if(t){let t=this.selectedIndex.length>0?this.selectedIndex[0]:e;this.selectRange(t,e)}else this.select(e,t)},getItemCls(t){return["".concat(this.prefix,"-item-wrap"),{["".concat(this.prefix,"-item-selected")]:this.isIndexInSelected(t)}]},toggleSelectItem(t,e){this.isIndexInSelected(t)?this.unselect(t):this.select(t,e)},selectRange(t,e,i){let n=Math.max(t,e),s=Math.min(t,e);if(n>this.items.length-1||s<0)throw"wrong range to select";if(i||(this.selectedIndex=[]),t=e;o--)this.isIndexInSelected(o)||this.selectedIndex.push(o);this.lastSelectIndex=e,this.ensureItemVisible(e)},isIndexInSelected(t){return this.singleSelect?this.selectedIndex===t:this.selectedIndex.indexOf(t)>-1},onItemClick(t,e){const i=zt?t.metaKey:t.ctrlKey;this.singleSelect?i?this.toggleSelectItem(e):this.select(e):t.shiftKey?this.lastSelectIndex>-1?this.selectRange(this.lastSelectIndex,e,!0):this.select(e):i?this.toggleSelectItem(e,!0):this.select(e),this.$emit("selectionchange",this.selectedIndex)},ensureItemVisible(t){if(t<0||t>this.items.length)throw"wrong index: ".concat(t);let e=this.$el.getElementsByClassName("".concat(this.prefix,"-item-wrap"))[t];this.$refs.scrollbar.ensureVisible(e)}}},(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.prefix},[t._t("outer-spin"),t._v(" "),t._t("before"),t._v(" "),i("div",{class:t.prefix+"-body"},[i("v-perfect-scrollbar",{ref:"scrollbar"},[t._t("inner-spin"),t._v(" "),i("div",{ref:"content",attrs:{tabindex:"-1"},on:{keydown:function(e){return t.onKeyDown(e)}}},[t._l(t.items,(function(e,n){return[i("div",{key:e[t.idProperty],class:t.getItemCls(n),attrs:{"syno-id":t.synoId+"-"+n},on:{click:function(e){return t.onItemClick(e,n)},contextmenu:function(i){return t.onContextMenu(e,n,i)}}},[t._t("item",null,{item:e,index:n})],2)]}))],2)],2)],1),t._v(" "),t._t("after")],2)}),[],!1,null,null,null).exports),Pa=(i(241),R({name:"Slider",props:{disabled:{type:Boolean},min:{type:[Number,String],required:!0},max:{type:[Number,String],required:!0},step:{type:[Number,String],default:1},value:{type:Number,required:!0}},data:()=>({mousedown:!1,mousemove:!1}),computed:{sliderStyle(){const t=Math.max(this.min,Math.min(this.value,this.max)),e=(t-this.min)/(this.max-this.min)*100;return{"--value":'"'.concat(t,'"'),"--percent":"".concat(e,"%")}},sliderClass(){return{"v-slider":!0,"v-slider-disabled":this.disabled,"v-slider-dragging":this.dragging}},dragging:{get(){return this.mousedown&&this.mousemove},set(t){this.mousedown=t,this.mousemove=t}}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.sliderClass,style:t.sliderStyle},[t._m(0),t._v(" "),i("input",{staticClass:"v-slider-input",attrs:{type:"range",disabled:t.disabled,min:t.min,max:t.max,step:t.step},domProps:{value:t.value},on:{mousedown:function(){return t.mousedown=!0},mousemove:function(){return t.mousedown?t.dragging=!0:void 0},mouseup:function(){return t.dragging=!1},touchmove:function(e){return e.stopPropagation(),function(){return t.dragging=!0}.apply(null,arguments)},touchend:function(e){return e.stopPropagation(),function(){return t.dragging=!1}.apply(null,arguments)},input:function(e){return t.$emit("input",+e.target.value)}}})])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-slider-line"},[e("div",{staticClass:"v-slider-thumb"})])}],!1,null,null,null).exports);var Na={name:"AppInstance",mixins:[q("instance",["fullsize"])],render(){return this.$slots.default},props:{shouldLaunch:{type:Function,default:void 0},canOpen:{type:Function,default:void 0},fullsize:{type:Boolean,default:!1},className:{type:String,default:void 0,required:!0}},data:()=>({windowState:void 0,fromRestore:void 0,autoStart:void 0,autoCenter:void 0,isMainApp:!1,notifyMsg:!0,initialized:!1,trayItem:void 0,appTrayItemName:void 0}),created(){this.id=this._uid},mounted(){this.register(),this.shouldLaunch&&!1===this.shouldLaunch()&&this.$destroy()},beforeDestroy(){!0===this.fullsize&&SYNO.SDS.StatusNotifier.fireEvent("fullsizeappdestroy"),this.$options.jsConfig&&!0===this.$options.jsConfig.upgradeApp&&SYNO.SDS.StatusNotifier.fireEvent("upgradeappdestroy"),this.$options.taskButton&&(this.$options.taskButton.destroy(),this.$options.taskButton=null),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),this.$options.items=null,this.$options.window=null,this.$options.trayItem=null,this.$options.appItem=null,this.unregister()},methods:{destroy(){this.$destroy()},getJsConfig(){return this.$options.jsConfig},init(t,e){this.initialized||(_S&&_S("standalone")&&(this.isMainApp=this.$options.jsConfig.jsID===_S("standaloneAppName")),this.addWindowItem(t,e),this.addTrayItem(t),this.addAppItem(t),this.initialized=!0)},shouldNotifyMsg(){return this.notifyMsg},addWindowItem(t,e){this.$options.window=(t=>{for(const e of t)if(I(e,"AppWindow"))return e})(this.$children),this.$options.window&&(this.addItem(this.$options.window),this.$options.window.setParams(Object.assign({appInstance:this,fromRestore:t.fromRestore,autoStart:t.autoStart,autoCenter:t.autoCenter},t.windowState||{}),e))},addTrayItem(t){if(!this.$options.trayItem&&this.appTrayItemName&&Ext){let e=Ext.getClassByName(this.appTrayItemName);this.$options.trayItem=new e(Ext.apply({appInstance:this})),this.addItem(this.$options.trayItem),this.$options.trayItem.open(t)}},addAppItem(t){if(!this.$options.appItem&&this.appItemName&&Ext){let e=Ext.getClassByName(this.appItemName);this.$options.appItem=new e(Ext.apply({appInstance:this})),this.addItem(this.$options.appItem),this.$options.appItem.open(t)}},addItem(t){t instanceof Vue&&(t.$options.instance=this),this.$options.items=this.$options.items||[],this.$options.items.push(t)},removeItem(t){t.$options.instance=null,this.$options.items=this.$options.items||[];let e=this.$options.items.indexOf(t);-1!==e&&this.$options.items.splice(e,1),this.checkAlive()},checkAlive(){this.$options.items&&0!==this.$options.items.length||this.$destroy()},register(){this.$options.jsConfig=SYNO.SDS.Config.FnMap[this.className].config,SYNO.SDS.AppMgr&&SYNO.SDS.AppMgr.register(this)},unregister(){SYNO.SDS.AppMgr&&SYNO.SDS.AppMgr.unregister(this)},setTaskButton(t){this.$options.taskButton=t},beforeInit({taskButton:t}){this.setTaskButton(t)},setParams(t){this.windowState=t.windowState,this.fromRestore=t.fromRestore,this.autoStart=t.autoStart,this.autoCenter=t.autoCenter,this.initialized||this.init(t,this.$options.jsConfig)},getUserSettings(t){if(SYNO.SDS.UserSettings)return SYNO.SDS.UserSettings.getProperty(this.getJsConfig().jsID,t)},setUserSettings(t,e){if(SYNO.SDS.UserSettings)return SYNO.SDS.UserSettings.setProperty(this.getJsConfig().jsID,t,e)},getStateParam(){let t={windowState:{}};return this.$options.window?(t=Object.assign(t,{windowState:this.$options.window.getStateParam()},this.$options.window.openConfig),t):t},async open(t){if(!this.initialized){if(this.canOpen){if(!(await this.canOpen()))return void this.$destroy()}this.setParams(t)}const e=this.$options.items||[];for(const i of e)i.open&&i.open()},setOpenParam(t){this.$emit("openparamchanged",this,t)}}},Fa=(i(242),R({name:"AppWindowHeader",components:{vWindowHeaderToolWrapper:ca},extends:ua,props:{isStandalone:{type:Boolean,default:!1}},data:()=>({user:"",showLogout:!1,showBanner:!0}),computed:{wrapperCls(){return["".concat(this.prefixCls,"-wrapper"),{standalone:this.isStandalone,"modal-win":this.isModalized,"wizard-win":this.isWizard,draggable:this.draggable}]}},mounted(){window._S&&(this.user=_S("user"),this.showLogout=_S("rewrite_mode")&&this.showHelp,this.showBanner=!this.isStandalone||"true"!==_S("remove_banner"))},methods:{onLogout(){SYNO.SDS.StatusNotifier.fireEvent("logout"),window.onbeforeunload=SYNO.SDS.onBasicBeforeUnload;try{SYNO.SDS.Utils.Logout.action()}catch(t){}}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showBanner?i("div",{class:t.wrapperCls,on:{dblclick:t.onDblClick}},[t.showAppIcon?i("div",{staticClass:"app-icon",style:t.iconStyle}):t._e(),i("div",{class:t.prefixCls+"-text"},[i("div",{class:t.prefixCls+"-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t._t("sub-title")],2),t._v(" "),t.isStandalone?i("v-button",{staticClass:"user-menu-btn",attrs:{type:"dropdown","menu-align":"tr->br","syno-id":t.synoId+"-user-menu-btn"}},[t._v("\n "+t._s(t.user)+"\n "),i("template",{slot:"dropdown"},[t.showLogout||t.showHelp?i("v-menu",{attrs:{width:"auto","syno-id":t.synoId+"-user-menu"}},[t.showLogout?i("v-menu-item",{attrs:{title:t.$i18n("common","logout"),"syno-id":t.synoId+"-user-menu-logout"},on:{click:t.onLogout}}):t._e(),t._v(" "),t.showHelp?i("v-menu-item",{attrs:{title:t.$i18n("common","alt_help"),"syno-id":t.synoId+"-user-menu-help"},on:{click:function(e){return t.$emit("help")}}}):t._e()],1):t._e()],1)],2):t._e(),t._v(" "),i("v-window-header-tool-wrapper",{attrs:{"dark-theme":t.darkTheme,"show-fullscreen":t.showFullscreen,"show-help":t.showHelp,"show-minimize":t.showMinimize,"show-maximize":t.showMaximize,"show-close":t.showClose,maximized:t.maximized},on:{fullscreen:function(e){return t.$emit("fullscreen")},help:function(e){return t.$emit("help")},minimize:function(e){return t.$emit("minimize")},restore:function(e){return t.$emit("restore")},maximize:function(e){return t.$emit("maximize")},close:function(e){return t.$emit("close")}}})],1):t._e()}),[],!1,null,null,null).exports);var za=R({name:"AppWindow",components:{vAppWindowHeader:Fa,vLayout:an},extends:wa,props:{defaultMaximized:{type:Boolean,default:!1},showHelp:{type:Boolean,default:!0},windowName:{type:String,default:void 0},toggleMinimizable:{type:Boolean,default:!0},hasTaskButton:{type:Boolean,default:!0},layoutType:{type:String,default:"app"},maskContainer:{type:[Boolean,Object],default:!1}},data:()=>({moveDirty:!1,resizeDirty:!1,autoRestoreSizePos:!0,isStandaloneMainWindow:!1}),computed:{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,isStandalone:this.isStandaloneMainWindow}}},beforeDestroy(){this.$options.taskButton&&(this.$options.taskButton.destroy(),this.$options.taskButton=null),this.$options.manager&&this.containerMasked&&this.doUnmaskContainer(),!this.$root||this.$root===this||this.inline||this.isComponentType||this.$root.$destroy()},methods:{getInstance(){return this.$options.instance},getJsID(){let t=this.getInstance();if(t)return t.$options.jsConfig.jsID},init(t,e){if(this.initialized)return;var i;this.isStandaloneMainWindow=(i=this.$options.instance,!!_S&&_S("standalone")&&i&&i.isMainApp),this.isStandalone=_S&&_S("standalone"),this.isMobile=_S&&_S("isMobile");const n=!this.isStandalone&&this.getInstance()&&(!0===t.autoStart||!0!==t.fromRestore&&!1!==t.autoRestoreSizePos&&!1!==e.autoRestoreSizePos);e.alwaysCenter?this.$options.manager.centerWindow(this,{withOffset:!0}):n&&this.applyRestoreSizePos(),this.$options.jsConfig=e,this.$options.title=t.title||e.title,this.$options.autoStart=t.autoStart,!1!==this.toggleMinimizable&&(this.iconUrl=this.getSmallIcon()),!1!==t.autoCenter?this.centerItIfOutOfBound():this.constrainXYInBound(),this.isStandaloneMainWindow&&this.applyStandaloneSettings(),this.isMobile&&this.applyMobileSettings(),this.initTaskButton(),this.currentTitle=SYNO.SDS.UIString.GetLocalizedString(this.$options.title,this.getJsID()),this.hidden=!1,this.initialized=!0,this.maskContainer&&this.doMaskContainer(v(this.maskContainer)?this.maskContainer:void 0),this.$nextTick((()=>{this.doConstrain()}))},constrainXYInBound(){this.top<0?this.top=0:this.top+this.currentHeight>this.constrainRect.bottom&&(this.top=this.constrainRect.bottom-this.currentHeight),this.left<0?this.left=0:this.left+this.currentWidth>this.constrainRect.right&&(this.left=this.constrainRect.right-this.currentWidth)},centerItIfOutOfBound(){let t={top:this.top,left:this.left,bottom:this.top+this.currentHeight,right:this.left+this.currentWidth};this.$options.manager&&function(t,e){return t.lefte.right||t.tope.bottom}(t,this.constrainRect)&&this.$options.manager.centerWindow(this)},initTaskButton(){!0!==this.getInstance().getJsConfig().hideTaskBtn&&!_S("standalone")&&this.toggleMinimizable&&this.hasTaskButton&&(this.$options.taskButton=this.getInstance().$options.taskButton,this.$options.taskButton&&(this.$options.taskButton.init(this),this.$options.taskButton.setState("deactive")))},setParams(t,e){this.autoRestoreSizePos=ae(t.autoRestoreSizePos)?t.autoRestoreSizePos:this.autoRestoreSizePos,this.initialized||this.init(t,e)},applyStandaloneSettings(){this.onMaximize()},applyMobileSettings(){this.onMaximize()},getSmallIcon(t){const e=this.$options.jsConfig.icon||this.$options.jsConfig.icon_16;if(!e||!SYNO.SDS.UIFeatures.IconSizeManager)return;let i,n=this.$options.jsConfig.jsBaseURL+"/"+e;i=t?"FavHeader":this.isStandalone?"StandaloneHeader":"Header";let s=SYNO.SDS.UIFeatures.IconSizeManager.getIconPath(n,i);return this.$options.jsConfig.version&&(s="".concat(s,"&app_version=").concat(this.$options.jsConfig.version)),s},async onClose({forceClose:t=!1,payload:e={}}={}){return!this.isStandalone&&(!1!==await wa.methods.onClose.apply(this,arguments)&&void 0)},async doClose(){const t=this.$options.instance;await wa.methods.doClose.apply(this,arguments),t&&t.removeItem(this)},updateTaskButton(t){this.$options.taskButton&&this.$options.taskButton.updateActionState(t)},getSizeAndPosition(){let t={};if(this.maximized){const{width:e,height:i,top:n,left:s}=this.restoreProps;t={width:e,height:i,top:n,left:s}}else t={left:this.left,top:this.top,width:this.currentWidth,height:this.currentHeight};return t},saveRestoreData(){let t=this.getInstance().getUserSettings("restoreSizePos"),e=Object.assign(this.getSizeAndPosition(),{fromRestore:!0,maximized:this.maximized});t&&(this.moveDirty?this.moveDirty=!1:(t.pageX&&(e.top=t.top),t.pageY&&(e.left=t.left)),this.resizeDirty?this.resizeDirty=!1:(t.width&&(e.width=t.width),t.height&&(e.height=t.height))),this.getInstance().setUserSettings("restoreSizePos",e)},applyRestoreSizePos(){let t=this.getInstance().getUserSettings("restoreSizePos")||{};return ae(this.minWidth)&&ae(t.width)&&t.width<+this.minWidth&&(t.width=+this.minWidth),ae(this.minHeight)&&ae(t.height)&&t.height<+this.minHeight&&(t.height=+this.minHeight),this.resizable&&(t.width&&(this.currentWidth=t.width),t.height&&(this.currentHeight=t.height)),this.getInstance().fullsize?this.onFullsize():!ae(t.maximized)&&this.defaultMaximized||ae(t.maximized)&&t.maximized?(this.onMaximize(),this.restoreProps={...t}):t.top&&t.left&&(this.top=t.top,this.left=t.left),t},onDragEnd(){wa.methods.onDragEnd.apply(this,arguments),this.moveDirty=!0,this.saveRestoreData()},onResizeEnd(){wa.methods.onResizeEnd.apply(this,arguments),this.resizeDirty=!0,this.saveRestoreData()},onMaximize(){this.updateTaskButton("maximize"),wa.methods.onMaximize.apply(this,arguments)},onMinimize(){_S("standalone")||this.minimizable&&(this.updateTaskButton("minimize"),wa.methods.onMinimize.apply(this,arguments))},onRestore(){this.updateTaskButton("restore"),wa.methods.onRestore.apply(this,arguments)},doMaximize(){wa.methods.doMaximize.apply(this,arguments),this.saveRestoreData()},doMinimize(){wa.methods.doMinimize.apply(this,arguments),this.saveRestoreData()},doRestore(){wa.methods.doRestore.apply(this,arguments),this.saveRestoreData()},onHelp(){let t=this.getJsID(),e=this.helpParams;Ext.isString(e)&&e.length&&(t+=":"+e),_S("standalone")?SYNO.SDS.WindowLaunch("SYNO.SDS.HelpBrowser.Application",{topic:t}):SYNO.SDS.AppLaunch("SYNO.SDS.HelpBrowser.Application",{topic:t},!1)}}},(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},nativeOn:{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-app-window-header",t._b({ref:"header",attrs:{"syno-id":t.synoId+"-header"},on:{close:t.onClose,minimize:t.doMinimize,maximize:t.doMaximize,fullscreen:t.doFullscreen,restore:t.doRestore,help:t.onHelp}},"v-app-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)}),[],!1,null,null,null).exports;Li({components:[an,Io]});var La=an,Ra=(i(244),R({name:"ModuleList",components:{vPerfectScrollbar:Tt},mixins:[q("module-list")],props:{value:{type:String,default:void 0},beforeSelect:{type:Function,default:E}},data:()=>({prefixCls:"v-module-list",options:[]}),methods:{async onOptionSelected(t,e){if(!1===await this.beforeSelect(t,this.value))return!1;this.targetOption=e,this.$emit("input",t),this.$emit("selected",t)},register(t,e=(()=>{})){t.$on("selected",this.onOptionSelected),this.options.push(t),e(this)},unregister(t,e=(()=>{})){t.$off("selected",this.onOptionSelected),this.options=this.options.filter((e=>e._uid!==t._uid)),e(this)},onArrowKeydown(t){const e=[...this.$el.querySelectorAll(".module-item-option")];let i=e.findIndex((t=>t===this.targetOption.$el));if(-1===i)return;i=P(i+(Ce(t)?-1:ke(t)?1:0),0,e.length-1),e[i].focus()}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.prefixCls,on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onArrowKeydown.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onArrowKeydown.apply(null,arguments))}]}},[i("v-perfect-scrollbar",[t._t("default")],2)],1)}),[],!1,null,null,null).exports),Ha=(i(243),R({name:"PageListAppWindow",components:{vModuleList:Ra,vLayout:La},extends:za,mixins:[q("page-list-app-window")],props:{module:{type:String,default:void 0},layoutType:{type:String,default:"page-list-app"},moduleListLayoutType:{type:String,default:"panel"}},data:()=>({selectedVal:void 0}),computed:{windowCls(){return[this.prefixCls,"v-page-list-app-window",{"active-win":this.active},{"deactive-win":!this.active},{"no-shadow":this.noShadow}]}},watch:{module:{handler(t){this.selectedVal=t},immediate:!0},selectedVal(t){this.$emit("selected-module",t)}},created(){this.$on("module.changed",(t=>{this.currentModule=t}))},beforeDestroy(){this.$off("module.changed")},methods:{async onPageListAppWindowBeforeClose(){return!this.currentModule||!1!==await this.currentModule.canLeave()||(this.currentModule.customLeaveLostChangeDialog?this.customLeaveLostChangeDialog():this.showConfirmLostChangedDialog())},register(t,e=(()=>{})){wa.methods.register.apply(this,arguments),e(this)},unregister(t,e=(()=>{})){wa.methods.unregister.apply(this,arguments),e(this)},async onClose({forceClose:t=!1,payload:e={}}={}){return!this.isStandalone&&(!1!==await this.onPageListAppWindowBeforeClose()&&(!1!==await wa.methods.onClose.apply(this,arguments)&&void 0))},async onBeforeSelectModule(t,e){return!this.currentModule||!1!==await this.currentModule.canLeave()||this.showConfirmLostChangedDialog()},async showConfirmLostChangedDialog(){const t=await this.getMsgBox().confirmLostChange();return"dont_save"===t?(await this.currentModule.confirmDontSave(),!0):"save"===t&&(await this.currentModule.confirmSave(),!0)}}},(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:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onClose.apply(null,arguments)}},nativeOn:{mousedown:function(e){return t.toFront(this)}}},[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(" "),i("v-layout",{staticClass:"module-list-layout",attrs:{type:"module-list."+t.moduleListLayoutType}},[i("v-module-list",{attrs:{"before-select":t.onBeforeSelectModule},model:{value:t.selectedVal,callback:function(e){t.selectedVal=e},expression:"selectedVal"}},[t._t("module-options")],2)],1),t._v(" "),i("div",{staticClass:"container"},[t._t("default")],2)],1),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)}),[],!1,null,null,null).exports),ja=R({name:"PageListModule",mixins:[U("page-list-app-window")],props:{value:{type:String,default:void 0,required:!0},canLeave:{type:Function,default:E},customLeaveLostChangeDialog:{type:Function,default:void 0},confirmSave:{type:Function,default:E},confirmDontSave:{type:Function,default:E},confirmCancel:{type:Function,default:E}},data:()=>({innerCls:"page-list-module",activated:!1}),mounted(){this.$options.unwatchers=[],this["page-list-app-window"]&&this["page-list-app-window"].register(this,(t=>{this.$options.appWindow=t,this.$options.unwatchers.push(t.$watch("selectedVal",this.onCurrentModuleChanged,{immediate:!0}))}))},beforeDestroy(){if(this["module-list"]){this["module-list"].unregister(this);for(const t of this.$options.unwatchers)t();delete this.$options.appWindow}},methods:{onCurrentModuleChanged(t){this.activated=this.value===t,this.activated?(this.$options.appWindow.$emit("module.changed",this),this.$emit("activated")):this.$emit("deactivated")}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.activated?i("div",{class:t.innerCls},[t._t("default")],2):t._e()}),[],!1,null,null,null).exports,Wa=R({name:"AppWizardWindow",extends:za,props:{id:{type:String,default:function(){return this.uuid}},width:{type:[String,Number],default:480},minWidth:{type:[String,Number],default:420},height:{type:[String,Number],default:"auto"},showClose:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!1},maximizable:{type:Boolean,default:!1},showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!1},showMaximize:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},layoutType:{type:String,default:"wizard"}},data:()=>({subTitle:void 0,subTitleOpacity:0}),computed:{windowCls(){return[this.prefixCls,"v-wizard-window",{"active-win":this.active,"deactive-win":!this.active,"no-shadow":this.noShadow,"is-safari":Pt,"auto-height":this.autoHeight}]},subTitleStyle(){return{opacity:this.subTitleOpacity}}},mounted(){this.$on("wizard.currentStep",(t=>{this.subTitle=t.headline,this.focus()})),this.$on("wizard.stepScroll",(t=>{this.onStepScrolled(t)}))},methods:{onStepScrolled(t){this.subTitleOpacity=t?Math.min(t,56)/56:0},clearStatusBusy(){this.clearStatus()}}},(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},nativeOn:{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",attrs:{"is-modalized":"","is-wizard":"","show-app-icon":!1,"dark-theme":""},on:{close:t.onClose},scopedSlots:t._u([{key:"sub-title",fn:function(){return[i("div",{staticClass:"sub-wrapper",style:t.subTitleStyle,attrs:{id:t.id+"-subtitle"}},[t._v("\n "+t._s(" - "+t.subTitle)+"\n ")])]},proxy:!0}])},"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.draggable?i("v-draggable",{attrs:{"prefix-cls":"v-wizard-window","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)}),[],!1,null,null,null).exports,Va=(i(245),R({name:"ProgressBar",props:{title:{type:String,default:""},percentText:{type:String,default:""},percent:{type:[String,Number],default:0},info:{type:String,default:""},paused:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wait:{type:Boolean,default:!1},waitOpts:{type:Object,default:()=>({interval:100,increment:10})}},data:()=>({waitPercent:0,waitCount:0}),computed:{titleTip(){return{overflowOnly:!0,content:this.title}},progressOuterClass(){return{disabled:this.disabled}},progressPercentClass(){return{"progress-bar-inner":!0,paused:this.paused,"progress-bar-inner--waiting":this.wait,"progress-bar-inner--full":this.wait?parseInt(this.waitPercent,10)>=100:parseInt(this.percent,10)>=100}},progressPercentStyle(){return this.wait?{width:"".concat(P(+this.waitPercent,0,100),"%")}:{width:"".concat(P(+this.percent,0,100),"%")}}},watch:{wait(t){t?this.startWaitTimer():this.stopWaitTimer()}},created(){this.wait&&this.startWaitTimer()},methods:{startWaitTimer(){this.waitTimer||(this.waitTimer=setInterval(this.incrementPercent.bind(this),this.waitOpts.interval))},stopWaitTimer(){this.waitTimer&&(clearTimeout(this.waitTimer),this.waitCount=0)},incrementPercent(){let t=this.waitOpts.increment||10,e=this.waitCount-1;this.waitPercent=100/t*((e+t)%t+1),this.waitCount++}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"progress-wrapper"},[i("div",{staticClass:"progress-title-wrapper"},[i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.titleTip,expression:"titleTip"}],staticClass:"progress-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("div",{staticClass:"progress-percent"},[t._v("\n "+t._s(t.percentText)+"\n ")])]),t._v(" "),i("div",{staticClass:"progress-bar-outer",class:t.progressOuterClass},[i("div",{class:t.progressPercentClass,style:t.progressPercentStyle})]),t._v(" "),i("div",{staticClass:"progress-info"},[t._v("\n "+t._s(t.info)+"\n ")])])}),[],!1,null,null,null).exports);i(246);function qa(t,e,i){if(g(t)){var n=t.apply(i,[]);n&&n.then&&g(n.then)||(n=Promise.resolve()),n.then(function(t){g(e)&&e.apply(i,[])}.bind(i)).catch(function(t){}.bind(i))}else SYNO.Debug.error("Callback should be callable")}var Ua=R({name:"MessageBoxWindow",components:{vProgressBar:Va,vTrapFocus:H,vPanel:$o,vButton:ui,vInput:Ei,vForm:zo,vFormItem:jo},extends:_a,mixins:[vi],props:{loadingType:{type:String,default:"statusbar"},width:{type:[String,Number],default:480},minWidth:{type:[String,Number],default:420},height:{type:[String,Number],default:"auto"},doConfirm:{type:Function,default:void 0},doCancel:{type:Function,default:void 0},doLeftCustom:{type:Function,default:void 0},resizable:{type:Boolean,default:!1}},data:function(){return{showStatusBar:!1,loading:!1,errorText:void 0,inputPassword:"",statusBarState:"loading",dialogTitle:"",dialogContent:"",prompt:void 0,callbackFn:E,callbackScope:this,iconCls:void 0,isHtmlContent:!1,buttons:{leftCustom:{type:"footbar",text:void 0,suffix:"cancel"},cancel:{type:"footbar",text:this._i18n("common","cancel"),suffix:"cancel"},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},messageType:"normal",currentProgress:{percent:void 0,percentText:void 0,info:void 0,title:void 0},resolveFunc:void 0,rejectFunc:void 0,useHtml:void 0,opts:{}}},computed:{isPasswordType(){return"password"===this.messageType},isProgressType(){return"progress"===this.messageType},windowCls(){return[this.prefixCls,this.customCls,"v-message-box-window",{"active-win":this.active,"deactive-win":!this.active,"no-shadow":this.noShadow,"is-safari":Pt,"auto-height":this.autoHeight}]},hasIcon(){return!!this.iconCls},dialogIconWrapperCls(){return["dialog-icon-wrapper",this.iconCls?this.iconCls:""]},dialogIconCls(){return["dialog-icon",this.iconCls?this.iconCls:""]},panelCls(){return["message-box","password"===this.messageType?"is-password":""]},panelBodyCls(){return["message-box-body",this.iconCls?"has-icon":"",this.dialogTitle?"has-title":"","password"===this.messageType?"is-password":""]},progressWrapperCls:()=>["progress-wrapper"],progressPercentClass(){return{"progress-bar-inner":!0,"progress-bar-inner--full":parseInt(this.currentProgress.percent,10)>=100}},progressPercentStyle(){return{width:"".concat(this.currentProgress.percent,"%")}}},beforeDestroy(){this.$options.maskEl&&(this.$options.maskEl.parentNode.removeChild(this.$options.maskEl),this.$options.maskEl=null)},methods:{async doClose(){const t=this.$options.owner;t&&(t.$options.messageBox=null),this.hideFromOwner()&&(this.$options.owner=null),await _a.methods.doClose.apply(this,arguments)},onLeftCustomButton(){this.doLeftCustom?this.doLeftCustom().then((t=>{this.resolveFunc(t)})):this.resolveFunc("leftCustom")},onCancelButton(){this.doCancel?this.doCancel().then((t=>{this.resolveFunc(t)})):(this.resolveFunc("cancel"),this.onClose())},onConfirmButton(){if(this.doConfirm)this.doConfirm().then((t=>{this.resolveFunc(t)}));else{if("password"===this.messageType)return this.onPasswordConfirm();this.resolveFunc("confirm"),this.onClose()}},onArrowKeydown(t){if(!t)return;const e=[this.$refs.leftCustomBtn,this.$refs.cancelBtn,this.$refs.confirmBtn].filter((t=>t)).filter((t=>t.$el));if(0===e.length)return;const i="ArrowLeft"===t.key?-1:"ArrowRight"===t.key?1:0,n=e.findIndex((e=>e.$el===t.target));e[Math.min(Math.max(0,n+i),e.length-1)].$el.focus()},setStatus(t="loading",e){"clear"===t?this.loading=!1:"loading"===t?(this.loading=!0,this.statusBarState="loading",this.showStatusBar=!0):"error"===t&&(this.statusBarState="error",this.showStatusBar=!0,this.errorText=e)},onPasswordConfirm(){if(!synowebapi)throw new Error("need synowebapi to send reqeust");return this.setStatus("loading"),synowebapi.promises.request({api:"SYNO.Core.User.PasswordConfirm",method:"auth",version:"1",encryption:["password"],params:{password:this.inputPassword}}).then((t=>{this.resolveFunc("confirm"),this.onClose()})).catch((t=>{this.setStatus("error",SYNO.API.Errors.core[t.code])})).finally((()=>{this.setStatus("clear")}))},showMessage(t){this.opts=t,this.isHtmlContent=t.isHtmlContent,this.currentTitle=t.title,this.dialogTitle=t.title,this.dialogContent=t.msg,this.iconCls=t.iconCls,this.currentProgress=t.progress,this.messageType=t.type,t.width&&(this.currentWidth=t.width),t.height&&(this.currentHeight=t.height),this.useHtml=t.useHtml,this.buttons=kt()({leftCustom:{type:"footbar",text:void 0,suffix:"cancel"},cancel:{type:"footbar",text:this._i18n("common","cancel"),suffix:"cancel"},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},t.buttons)},actionDefer(){return new Promise(((t,e)=>{this.resolveFunc=t,this.rejectFunc=e}))},alert(t,e,i,n={}){return i=i||{leftCustom:{text:null},cancel:{text:null},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},this.showMessage(Object.assign({title:t,msg:e,type:"normal",buttons:i},n)),this.$nextTick((()=>{this.alignCenterToOwner()})),this.actionDefer()},confirm(t,e,i,n={}){return i=kt()({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},i),this.$nextTick((()=>{this.alignCenterToOwner()})),this.showMessage(Object.assign({title:t,msg:e,type:"normal",buttons:i},n)),this.actionDefer()},async confirmLostChange(t="",e="",i={},n={}){const s=await this.confirm(t,e||this._i18n("common","confirm_lostchange_without_save"),{leftCustom:{text:this._i18n("common","dont_save"),type:"footbar"},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","save"),suffix:"main",type:"footbar"}},n);return"leftCustom"===s?(this.onClose(),"dont_save"):"confirm"===s?"save":"cancel"===s?"cancel":s},confirmDelete(t,e,i,n={}){return i=kt()({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","delete"),suffix:"red",type:"footbar"}},i),this.$nextTick((()=>{this.alignCenterToOwner()})),this.showMessage(Object.assign({title:t,msg:e,iconCls:"alarm",type:"normal",buttons:i},n)),this.actionDefer()},progress(t,e,i,n,s,o={}){return this.updateProgress(t,e,i,n,s,o),this.$nextTick((()=>{this.alignCenterToOwner()})),this.actionDefer()},wait(t,e,i,n={}){return i=kt()({leftCustom:{text:null},cancel:{text:null},confirm:{text:null}},i),this.showMessage(Object.assign({progress:{title:t,info:e,wait:!0},buttons:i,type:"progress"},n)),this.actionDefer()},updateProgress(t,e,i,n,s,o={}){e=+e,e=Math.min(100,e),e=Math.max(0,e),n="".concat(e,"%")||!1,s=kt()({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","hide"),suffix:"main",type:"footbar"}},s),this.showMessage(Object.assign({progress:{title:t,percentText:n,percent:e,info:i},buttons:s,type:"progress"},o))},password(t,e,i,n={}){return t=t||this._i18n("common","enter_password_to_continue"),e=e||this._i18n("common","enter_user_password"),i=kt()({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","submit"),suffix:"red",type:"footbar"}},i),this.showMessage(Object.assign({title:t,msg:e,type:"password",buttons:i},n)),this.$nextTick((()=>{this.alignCenterToOwner()})),this.actionDefer()},setZIndex(t){this.$options.maskEl&&Vt(this.$options.maskEl,"zIndex","".concat(t-1)),_a.methods.setZIndex.apply(this,arguments)},async confirmLostChangePromise(t,e,i,n,s){let o,r={};if(g(t))o=t;else{if(!v(t))return void SYNO.Debug.error("func should be object(for promise) or function(for callback)");r=t}let a=r.save,l=r.dontSave,c=r.cancel,u=r.confirmText;i=i||E,n=n||E,s=s||E;let d=await this.confirm("",u||this._i18n("common","confirm_lostchange_without_save"),{leftCustom:{text:this._i18n("common","dont_save"),type:"footbar"},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","save"),suffix:"main",type:"footbar"}});"leftCustom"===d&&this.onClose(),g(o)?o.apply(e):(g(i)&&i.apply(e,[]),"confirm"===d?qa(a,n,e):"cancel"===d?qa(c,s,e):"leftCustom"===d&&qa(l,n,e))}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{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,on:{mousedown:function(e){return t.toFront(this)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.onArrowKeydown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:t.onArrowKeydown.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onClose.apply(null,arguments)}]}},[t.isPasswordType?i("v-window-header",t._b({ref:"header",attrs:{"is-modalized":"","show-app-icon":!1},on:{close:t.onClose,minimize:t.onMinimize,maximize:t.onMaximize,fullscreen:t.onFullscreen,restore:t.onRestore}},"v-window-header",t.headerProps,!1)):t._e(),t._v(" "),i("v-trap-focus",{ref:"trapFocus",attrs:{"focus-last":""}},[i("div",{staticClass:"v-trap-focus-indicator",attrs:{tabindex:"0",role:"alertdialog","aria-label":t.currentTitle||t.dialogContent}}),t._v(" "),i("v-panel",{class:t.panelCls,attrs:{"show-status-bar":t.showStatusBar,loading:t.loading,"loading-type":t.loadingType,"status-bar-state":t.statusBarState,"error-text":t.errorText,"syno-id":t.synoId+"-panel"},on:{"update:showStatusBar":function(e){t.showStatusBar=e},"update:show-status-bar":function(e){t.showStatusBar=e}},scopedSlots:t._u([{key:"body",fn:function(){return[t.isPasswordType?i("div",{staticClass:"password-wrapper"},[t.useHtml?i("div",{staticClass:"password-desc"},[i("div",{domProps:{innerHTML:t._s(t.dialogContent)}})]):i("div",{staticClass:"password-desc"},[t._v("\n "+t._s(t.dialogContent)+"\n ")]),t._v(" "),i("v-form",{attrs:{"syno-id":t.synoId+"-password-form"}},[i("v-form-item",{attrs:{label:t._i18n("common","password"),"syno-id":t.synoId+"-password-form-item"}},[i("v-input",{attrs:{name:"password",type:"password","syno-id":t.synoId+"-password-form-input"},model:{value:t.inputPassword,callback:function(e){t.inputPassword=e},expression:"inputPassword"}})],1)],1)],1):t.isProgressType?i("v-progress-bar",{attrs:{title:t.currentProgress.title,"percent-text":t.currentProgress.percentText,percent:t.currentProgress.percent,info:t.currentProgress.info,wait:t.currentProgress.wait}}):i("div",{class:t.panelBodyCls},[t.hasIcon?i("div",{class:t.dialogIconWrapperCls},[i("div",{class:t.dialogIconCls})]):t._e(),t._v(" "),t._t("title",(function(){return[t.dialogTitle?i("div",{staticClass:"dialog-title"},[t._v("\n "+t._s(t.dialogTitle)+"\n ")]):t._e()]}),{title:t.dialogTitle,opts:t.opts}),t._v(" "),t._t("content",(function(){return[t.useHtml||t.isHtmlContent?i("div",{staticClass:"dialog-content",domProps:{innerHTML:t._s(t.dialogContent)}}):t.dialogContent?i("div",{staticClass:"dialog-content"},[t._v("\n "+t._s(t.dialogContent)+"\n ")]):t._e()]}),{content:t.dialogContent,opts:t.opts})],2)]},proxy:!0},{key:"fbar",fn:function(){return[t._t("footbar",(function(){return[t.buttons.leftCustom.text?i("div",{staticClass:"default pull-left"},[i("v-button",t._b({ref:"leftCustomBtn",attrs:{"syno-id":t.synoId+"-fbar-cancel"},on:{click:t.onLeftCustomButton}},"v-button",t.buttons.leftCustom,!1),[t._v(t._s(t.buttons.leftCustom.text))])],1):t._e(),t._v(" "),i("div",{staticClass:"default pull-right"},[t.buttons.cancel.text?i("v-button",t._b({ref:"cancelBtn",attrs:{"syno-id":t.synoId+"-fbar-cancel"},on:{click:t.onCancelButton}},"v-button",t.buttons.cancel,!1),[t._v(t._s(t.buttons.cancel.text))]):t._e(),t._v(" "),t.buttons.confirm.text?i("v-button",t._b({ref:"confirmBtn",attrs:{"syno-id":t.synoId+"-fbar-commit"},on:{click:t.onConfirmButton}},"v-button",t.buttons.confirm,!1),[t._v(t._s(t.buttons.confirm.text))]):t._e()],1)]}),{buttons:t.buttons,opts:t.opts})]},proxy:!0}],null,!0)})],1),t._v(" "),t.isPasswordType?i("v-draggable",{attrs:{"window-property":t.windowProperty},on:{dragging:t.setDragging,"drag-end":t.onDragEnd}}):t._e()],1)}),[],!1,null,null,null).exports,Ya=(i(276),R({name:"AboutWindow",components:{vModalWindow:_a},mixins:[vi],props:{name:{type:String,default:""},customName:{type:Array,default:null},desc:{type:String,default:""},icon:{type:String,default:""},copyrightYear:{type:String,default:""},tosUrl:{type:String,default:"https://www.synology.com/company/legal"},privacyUrl:{type:String,default:"https://www.synology.com/company/legal/privacy"},isBeta:{type:Boolean,default:!1},swapNameAndDesc:{type:Boolean,default:!1},theme:{type:Object,default:()=>({dark:!1,customBgColor:""})}},data:()=>({clsPrefix:"v-about-window"}),computed:{windowCls(){return[this.clsPrefix,this.theme.dark?"dark-theme":"light-theme"]},windowStyle(){const t={};return this.theme.customBgColor&&(t.backgroundColor=this.theme.customBgColor),t},nameAndDescCls(){return["name-and-desc",{swap:this.swapNameAndDesc}]},title(){return this.customName?this.customName[0]:this.name},label(){return this.customName?this.customName[1]:""}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-modal-window",{class:t.windowCls,style:t.windowStyle,attrs:{"syno-id":t.synoId,"show-close":"",draggable:!1,width:"auto",height:"auto","header-cls":t.clsPrefix+"-header","body-cls":t.clsPrefix+"-body","dark-theme":t.theme.dark}},[i("template",{slot:"fullsize-window-mask"},[i("div",{class:t.clsPrefix+"-mask"})]),t._v(" "),i("div",{class:t.clsPrefix+"-body-wrapper"},[i("div",{staticClass:"content-top"},[i("div",{staticClass:"content-row icon",style:{backgroundImage:"url("+t.icon+")"}}),t._v(" "),i("div",{class:t.nameAndDescCls},[i("div",{staticClass:"content-row name"},[t._v("\n "+t._s(t.title)+"\n "),""!==t.label?i("div",{staticClass:"label"},[t._v(t._s(t.label))]):t._e(),t._v(" "),t.isBeta?i("div",{staticClass:"beta-tag"}):t._e()]),t._v(" "),t.desc?i("div",{staticClass:"content-row desc"},[t._v("\n "+t._s(t.desc)+"\n ")]):t._e()])]),t._v(" "),i("div",{staticClass:"divider"}),t._v(" "),i("div",{staticClass:"content-bottom"},[i("div",{staticClass:"content-row links"},[i("a",{staticClass:"terms",attrs:{href:t.tosUrl,target:"_blank"}},[t._v(t._s(t._i18n("common","terms_of_service")))]),t._v(" "),i("a",{staticClass:"privacy",attrs:{href:t.privacyUrl,target:"_blank"}},[t._v(t._s(t._i18n("common","privacy_statements")))])]),t._v(" "),i("div",{staticClass:"content-row copyright"},[t._v("\n "+t._s(t._i18n("copyright","copyright").replace("{0}",t.copyrightYear))+"\n ")])])])],2)}),[],!1,null,null,null).exports);const Ka=Li({components:[Ua]},(t=>{t.prototype.$messageWindow=t.extend(Ua)})),Ga=Li({components:[Ya]},(t=>{t.prototype.$aboutWindow=t.extend(Ya)}));Li({components:[Ua,_a,Sa,Ya,ua,ca,ra]});function Xa(t){return t.includes(" ")}const Za="[",Qa="]",Ja=new RegExp("\\".concat(Za,"(.*)\\").concat(Qa)),tl=", ";class el{constructor(t){this.type="block",this.text=t,this.decorator='{}',this.currentIndex=-1,this.withQuote=!1}static trimQuote(t){return t.startsWith('"')&&(t=t.slice(1)),t.endsWith('"')&&(t=t.slice(0,t.length-1)),t}static toHtml(t,e){return'').concat(t,"")}static serialize(t,e){return encodeURI(JSON.stringify({value:Array.isArray(e)?JSON.stringify(e):e,text:encodeURIComponent(t)}))}static deserialize(t){let e=JSON.parse(decodeURI(t));return e.text&&(e.text=decodeURIComponent(e.text)),e}toDSL(){return this.text||""}getType(){return this.type}length(){return this.withQuote?this.finalizeText().length+2:this.finalizeText()?this.finalizeText().length:0}shouldHaveQuote(){return!this.isMultipleTexts()&&Xa(this.text)}finalizeText(){return this.text}isMultipleTexts(){return Ja.test(this.text)}getMultipleTexts({trim:t=!0,withQuote:e=!0}={}){let i=this.text.replace(Ja,"$1").split(tl);return t&&(i=i.filter((t=>t))),e||(i=i.map((t=>t.replace(/"/g,"")))),i}toMultipleTexts(t,e=!0){return e?"".concat(Za).concat(t.join(tl)).concat(Qa):t.join(tl)}findMultipleTextIndex(t){const e=this.getMultipleTexts({trim:!1});let i=-1,n=Za.length;for(const[s,o]of e.entries())if(i=n,n+=o.length+tl.length,n>t)return[s,t-i];return[0,-1]}getValue(){return this.value}pureText(){return this.text}format(){if(this.isMultipleTexts()){const t=this.getMultipleTexts();this.text=this.toMultipleTexts(t)}return!0}getDecoratedHtml(){let t=this.finalizeText().replace(/\s/g," ");return t=this.withQuote?this.decorator.replace(/{}/,""".concat(t,""")):this.decorator.replace(/{}/,t),t.replace(/{serialize}/,el.serialize(this.finalizeText(),this.value))}getPreviousNonEmptyBlock(){let t=this.prevBlock;for(;t;){if("empty"!==t.getType())return t;t=t.prevBlock}return null}getNextNonEmptyBlock(){let t=this.nextBlock;for(;t;){if("empty"!==t.getType())return t;t=t.nextBlock}return null}}class il extends el{constructor(t){super(t),Array.isArray(t)&&(this.text=this.toMultipleTexts(t)),this.type="unknown"}}const nl=["(",")"];function sl(t){return t instanceof rl&&t.isOpen()}function ol(t){return t instanceof rl&&t.isClose()}class rl extends el{constructor(t){super(t),this.decorator='{}',this.type="bracket",this.value=this.text}isOpen(){return"("===this.text}isClose(){return")"===this.text}}const al=["and","or"];class ll extends el{constructor(t){super(t),this.decorator='{}',this.type="conjunction",this.value=t}isAnd(){return"and"===this.text}isOr(){return"or"===this.text}}class cl extends el{constructor(t,e){super(t),this.decorator='{}',this.type="category",e?(this.value=e.value||t,this.categoryProp=e):this.value=t}}class ul extends el{constructor(t,e,i){super(t),this.decorator='{}',this.relativeCategory=e,this.type="operator",i?(this.value=i.value||t,this.operatorProp=i):this.value=t}isValidValueBlock(t,e="title"){if("number"===this.validValueType)return!!le(t.pureText())&&t.pureText();if("string"===this.validValueType)return!!m(t.pureText())&&t.pureText();if("date"===this.validValueType)return!!(this.validValueInfo&&this.validValueInfo.dateFormat&&Dn.includes(this.validValueInfo.dateFormat)&&Qs(t.pureText(),this.validValueInfo.dateFormat))&&t.pureText();if("array"===this.validValueType){if(this.validValueInfo&&this.validValueInfo.validValues){const i=this.validValueInfo.validValues.find((i=>"title"===e?i.title===t.pureText():"value"===e?i.value===t.value:"both"===e?i.title===t.pureText()&&i.value===t.value:void 0));return i||!1}return!0}if("function"===this.validValueType){if(!0===this.validValueInfo.validFunc(t))return t.pureText()}else if("multiple"===this.validValueType&&this.validValueInfo&&this.validValueInfo.validValues){const i=t.getValue(),n=("title"===e||"both"===e?t.getMultipleTexts({withQuote:!1}):i).reduce(((t,n,s)=>{if(!1===t)return t;const o=this.validValueInfo.validValues.find((t=>{if("both"===e){const e=i[s];return t.title===n&&t.value===e}return"value"===e?t.value===n:t.title===n}));return!!o&&(t.push(o),t)}),[]);return!(!Array.isArray(n)||!n.length)&&n}return!1}setValidValueTypes(t){Array.isArray(t)?(this.validValueType="array",this.validValueInfo={validValues:t.slice()}):g(t)?(this.validValueType="function",this.validValueInfo={validFunc:t}):v(t)?(this.validValueType=t.type,this.validValueInfo=t.info,this.validValueInfo&&t.info.validValues&&!Array.isArray(t.info.validValues)&&(this.validValueInfo.validValues=t.info.validValues)):this.validValueType=t}needListValueType(){return"array"===this.validValueType||"multiple"===this.validValueType}needDateValueType(){return"date"===this.validValueType}}class dl extends el{constructor(t,e){super(t),this.decorator='{}',this.type="value",this.relativeOperator=e,this.relativeCategory=e.relativeCategory}toText(t){return m(t)?t:Array.isArray(t)?this.toMultipleTexts(t.map((t=>Xa(t.title)?""".concat(t.title,"""):t.title))):t.title}setValue(t){m(t)?this.value=t:Array.isArray(t)?(this.valueCases=t,this.value=t.map((t=>t.value))):(this.valueCase=t,this.value=t.value)}}function hl(t,e){return e.title.startsWith(t)}class pl{constructor(t,e,i){this.selection=t,this.categories=e,this.info=i}setCategories(t){this.categories=t}getCategoryTitles(t){return t=el.trimQuote(t),this.categories.reduce(((e,i)=>{if(i.hint&&!1===i.hint.show)return e;const n=i.hint&&i.hint.searchFunc?i.hint.searchFunc(t,i):hl(t,i);if(!1===n)return e;const s=b(n)?n:i.hint&&i.hint.priority?i.hint.priority:10;return e.push({display:i.title,value:i.value,prompt:i.hint&&i.hint.prompt,useSlot:i.hint&&i.hint.useSlot,priority:s,blockType:"category",grouping:i.hint&&i.hint.grouping,hintObj:i.hint}),e}),[])}getBracketsTitles(t,e){return function(t){return"open"===t?["("]:"close"===t?[")"]:nl}(e).reduce(((e,i)=>(i.startsWith(t)&&e.push({display:i,value:i,blockType:"bracket"}),e)),[])}getOperatorTitles(t,e){return t=el.trimQuote(t),e.validOperators?e.validOperators.reduce(((e,i)=>{const n=i.hint&&i.hint.searchFunc?i.hint.searchFunc(t,i):hl(t,i);if(!1===n)return e;const s=b(n)?n:i.hint&&i.hint.priority?i.hint.priority:10;return e.push({display:i.title,value:i.value,prompt:i.hint&&i.hint.prompt,useSlot:i.hint&&i.hint.useSlot,priority:s,blockType:"operator",autoPatch:i.autoPatch,grouping:i.hint&&i.hint.grouping,hintObj:i.hint}),e}),[]):[]}getValueTitles(t,e){return t=el.trimQuote(t),e&&e.needListValueType()&&e.validValueInfo&&e.validValueInfo.validValues?e.validValueInfo.validValues.reduce(((e,i)=>{const n=i.hint&&i.hint.searchFunc?i.hint.searchFunc(t,i):hl(t,i);if(!1===n)return e;const s=b(n)?n:i.hint&&i.hint.priority?i.hint.priority:10;return e.push({display:i.title,value:i.value,prompt:i.hint&&i.hint.prompt,useSlot:i.hint&&i.hint.useSlot,priority:s,blockType:"value",grouping:i.hint&&i.hint.grouping,hintObj:i.hint}),e}),[]):[]}getValueDate(){return new Date}getConjunctionTitles(t){return al.reduce(((e,i)=>(i.startsWith(t)&&e.push({display:i,value:i,blockType:"conjunction"}),e)),[])}genCategoryHint(t){return t.type="list",t.showHint=!0,t.data.titles=t.data.titles.concat(this.getCategoryTitles(t.prefixText)),t}genBracketHint(t,e){return t.type="list",t.showHint=!0,t.data.titles=t.data.titles.concat(this.getBracketsTitles(t.prefixText,e)),t}genOperatorHint(t){return t.type="list",t.showHint=!0,t.prevBlock instanceof cl&&(t.data.titles=t.data.titles.concat(this.getOperatorTitles(t.prefixText,t.prevBlock))),t}genValueHint(t){return t.type="list",t.showHint=!0,t.prevBlock instanceof ul&&(t.prevBlock.needListValueType()?(t.type="multiple"===t.prevBlock.validValueType?"multiple":"list",t.data.titles=t.data.titles.concat(this.getValueTitles(t.prefixText,t.prevBlock))):t.prevBlock.needDateValueType()&&(t.type="date",t.data.date={current:this.getValueDate(),dateFormat:t.prevBlock.validValueInfo.dateFormat})),t}genConjunctionHint(t){return t.type="list",t.showHint=!0,t.data.titles=t.data.titles.concat(this.getConjunctionTitles(t.prefixText)),t}hasOpenBracket(t){return t.some((t=>t instanceof rl&&t.isOpen()))}needCloseBracket(t){let e=new Array;for(const i of t)i instanceof rl&&(i.isOpen()?e.push(i):i.isClose()&&e.length>0&&e.pop());return e.length>0}shouldHint(t){const e=this.selection.getCurrentBlockInfo(t)[0];let i={showHint:!1,type:"list",prefixText:"",searchTitle:"Search Criteria",block:void 0,data:{titles:[]}};if(e&&e.block){const t=e.block,n=e.overlappedBlock,s=t.getPreviousNonEmptyBlock();if(i.block=t,t.isMultipleTexts()){const n=t.getMultipleTexts(),[s,o]=t.findMultipleTextIndex(e.offset),r=n[s];i.prefixText=r?r.substring(0,o):"",i.type="multiple"}else i.prefixText=t.pureText().substr(0,e.offset).trim();if(i.prevBlock=s,"conjunction"===t.getType()||n&&"conjunction"===n.getType())return this.genConjunctionHint(i);(null===s||"block"===s.getType()||s instanceof ll||s instanceof rl&&s.isOpen())&&(i=this.genCategoryHint(i)),s instanceof cl&&(i=this.genOperatorHint(i)),s instanceof ul&&(i=this.genValueHint(i)),(s instanceof dl||s instanceof rl&&s.isClose())&&(i=this.genCategoryHint(i))}else i=this.genCategoryHint(i);return this.info.limit&&i.data.titles.length>this.info.limit&&(i.limit={showHint:!0,num:this.info.limit}),i}}class fl extends el{constructor(t){super(t),this.type="empty"}shouldHaveQuote(){return!1}getDecoratedHtml(){return this.text?this.text.replace(/\s/g," "):""}}fl.HTMLToken=" ";const ml="|";class gl{constructor(t){this.el=t,this.saveRange={start:0,end:0}}getCursorRect(){const t=this.getNative();return t&&t.getBoundingClientRect()}getNative(){if(Dt)return null;if(document.activeElement!==this.el)return null;let t=this.getSelection();return t&&t.rangeCount?t.getRangeAt(0):null}getSelection(){return window.getSelection()}getRange(){const t=this.getNative();if(!t)return{start:0,end:0,collapsed:!0};const e=t.cloneRange();e.selectNodeContents(this.el),e.setEnd(t.startContainer,t.startOffset);const i=e.toString().length;return{start:i,end:i+t.toString().length,collapsed:this.getSelection().isCollapsed}}findBlockTextIndex(t,e){let i=0;for(const[n,s]of t.entries()){if(s===e)return{start:i,end:i+s.length(),blockIndex:n};i+=s.length()}return{start:-1,end:-1,blockIndex:-1}}getCurrentBlockInfo(t){const e=this.getRange();let i=0,n=0,s=[];for(const[o,r]of t.entries()){const a=o+1=r.length()?a:null}):i<=e.end&&e.end<=n&&s.push({block:r,offset:e.end-i,covered:!1,overlappedBlock:e.start-i>=r.length()?a:null}),i=n}return s}save(){this.saveRange=this.getRange()}restore(){return this.setCaretPos(this.saveRange.start,this.saveRange.end)}setCaretPosByRange(t){this.setCaretPos(t.start,t.end)}setCaretPos(t,e){let i=0,n=document.createRange();n.setStart(this.el,0),n.collapse(!0);let s,o=[this.el],r=!1,a=!1;for(;!a&&(s=o.pop());)if(s.nodeType==Node.TEXT_NODE){let o=i+s.textContent.length;!r&&t>=i&&t<=o&&(n.setStart(s,t-i),r=!0),r&&e>=i&&e<=o&&(n.setEnd(s,e-i),a=!0),i=o}else{let t=s.childNodes.length;for(;t--;)o.push(s.childNodes[t])}let l=window.getSelection();l.removeAllRanges(),l.addRange(n)}replaceTextByBlocks(t,e,i,n,s,o,r){let a=(e.textContent||"").length,l=-1,c=n.length,u=-1;for(const m of i){const t=m.block;if(t){let{start:e,end:i,blockIndex:s}=this.findBlockTextIndex(n,t);a=Math.min(a,e),l=Math.max(l,i),c=Math.min(c,s),u=Math.max(u,s)}}const d=n.slice(0,c),h=n.slice(u+1),p=d.map((t=>t.getDecoratedHtml())).join(""),f=h.map((t=>t.getDecoratedHtml())).join("");let g=p;if(d.length>0&&"empty"!==d[d.length-1].getType()&&(g+=fl.HTMLToken),"multiple"===o){const e=i[0],n=e.block;if(n.isMultipleTexts()){const[i]=n.findMultipleTextIndex(e.offset),s=n.getMultipleTexts({trim:!1}),o=s.length-1;let a=n.getValue()||[];a[i]=r,s[i]=t+(i!==o?ml:""),g+=el.toHtml(Za+n.toMultipleTexts(s,!1)+(i===o?"".concat(tl).concat(ml):"")+Qa,a)}else g+=el.toHtml("".concat(Za).concat(t).concat(tl).concat(ml).concat(Qa),[r])}else g+=t,g+=fl.HTMLToken+((t=>{if(!m(s)||!t||!t.block)return!1;const e=t.block.getNextNonEmptyBlock();return!e||!e.text})(i[0])?s:ml)+f,h.length>0&&"empty"!==h[0].getType()&&(g+=fl.HTMLToken);const v=he(g).indexOf(ml);return{html:g.replace(ml,""),caretPos:v}}}class vl{constructor(){this.undoCommands=[],this.redoCommands=[]}pushCommand(t){this.undoCommands.push(t),this.redoCommands=[]}undo(t=1){for(;t--;){let t=this.undoCommands.pop();if(!t)return;t.unExecute(),this.redoCommands.push(t)}}redo(t=1){for(;t--;){let t=this.redoCommands.pop();if(!t)return;t.execute(),this.undoCommands.push(t)}}}class yl{constructor(t,e,i,n,s){this.oldVal=e,this.newVal=i,this.oldRange=n,this.newRange=s,this.vueInst=t}execute(){this.vueInst.blocks=this.newVal,this.vueInst.applyBlocks(),this.vueInst.selection.setCaretPosByRange(this.newRange)}unExecute(){this.vueInst.blocks=this.oldVal,this.vueInst.applyBlocks(),this.vueInst.selection.setCaretPosByRange(this.oldRange)}}const bl=[33,0];function wl(t){return t.replace(/\u00a0/g," ")}var xl=r.a.extend({name:"SearchContent",components:{vPerfectScrollbar:Tt},directives:{},mixins:[],props:{text:{type:String,default:""},value:{type:Array,default:()=>[]},fetchOperators:{type:Function},fetchValueTypes:{type:Function},categories:{type:Array,default:[]},placeholder:{type:String,default:""},dslProcessor:{type:Object,default:null},blockFactory:{type:Object},groupingInfo:{type:Object},hintInfo:{type:Object},validateMessage:{type:String,default:""},validator:{type:Function,default:void 0}},data:()=>({cls:"v-search",blocks:[],prevBlocks:[],commandMgr:new vl,selection:null,prevRange:null,hintHandler:null,onStateChangedDebounce:null,onValidateDebounced:null,operators:[],isLock:!1}),watch:{hintInfo(t){this.hintHandler&&(this.hintHandler.info=t)},text:{async handler(t){Dt||(await this.$nextTick(),this.$refs.text.innerText=t,this.onSync())},immediate:!0},value:{async handler(t){t&&this.setBlocks(t)}},categories(t){this.hintHandler&&this.hintHandler.setCategories(t)}},created(){this.onStateChangedDebounce=Si()(this.onStateChanged,30),this.onValidateDebounced=Si()(this.onValidate,250)},async mounted(){await this.$nextTick(),this.selection=new gl(this.$refs.text),this.hintHandler=new pl(this.selection,this.categories,this.hintInfo)},methods:{setBlocks(t){this.blocks=t.slice(),this.applyBlocks(),this.$emit("value",this.blocks),this.onValidateDebounced()},patchMissingBlocks(){this.blocks=this.dslProcessor.patchMissingBlocks(this.blocks),this.$refs.text.innerHTML=this.blockFactory.toHtml(this.blocks),this.onSync({autoRestoreSelection:!1,showHint:!1}),this.onValidateDebounced()},formatBlocks(){for(const t of this.blocks)t.format();this.$refs.text.innerHTML=this.blockFactory.toHtml(this.blocks),this.onSync({autoRestoreSelection:!1,showHint:!1})},insertTextBySuggestion(t){let e=t.blockText||"";return"multiple"===t.replaceStrategy?e=t.blockText||"":t.value&&(e=el.toHtml(t.blockText||"",t.value)),this.insertTextInSelection(e,t.blockType,t.hasQuote,t.replaceStrategy,t.autoPatch,t.value)},insertTextInSelection(t,e,i,n,s=!1,o){this.saveScrollTop(),this.$refs.text.focus(),this.restoreScrollTop(),this.selection.restore();const r=this.selection.getCurrentBlockInfo(this.blocks),{html:a,caretPos:l}=this.selection.replaceTextByBlocks(t,this.$refs.text,r,this.blocks,s,n,o);this.$refs.text.innerHTML=a,this.selection.setCaretPos(l,l),this.onSync()},onSync({autoRestoreSelection:t=!0,showHint:e=!0}={}){this.blocks=this.blockFactory.createBlocks(this.$refs.text),this.selection&&t&&this.selection.save(),this.applyBlocks(),this.selection&&t&&this.selection.restore(),this.hintHandler&&e&&this.$emit("hint",this.hintHandler.shouldHint(this.blocks)),this.$refs.ps&&this.$refs.ps.update(),this.$emit("value",this.blocks),this.$emit("error",!1)},applyBlocks(){this.$refs.text.innerHTML=this.blockFactory.toHtml(this.blocks),this.$emit("text",wl(this.$refs.text.innerText))},onStateChanged(){this.prevRange||(this.prevRange=this.selection.getRange());const t=new yl(this,this.prevBlocks,this.blocks,this.prevRange,this.selection.getRange());this.commandMgr.pushCommand(t),this.prevBlocks=this.blocks,this.prevRange=this.selection.getRange()},onValidate(){if(this.validator){const{hasError:t,message:e}=this.validator(this.dslProcessor.parse(this.blocks));this.$emit("error",t,e)}else this.$emit("error",!this.dslProcessor.parse(this.blocks),this.validateMessage)},onSelectionChange(){this.selection.save(),this.$emit("hint",this.hintHandler.shouldHint(this.blocks))},setCaretPosToEnd(){let t=wl(this.$refs.text.innerText);this.selection.setCaretPos(t.length,t.length)},blur(){this.$el&&this.$el.blur()},getCursorRect(){const t=this.selection.getCursorRect();let e={top:0,left:0};return this.$refs.text&&(e=this.$refs.text.getBoundingClientRect()),{left:Math.max(bl[0],t.left-e.left),top:Math.max(bl[1],t.top-e.top)}},onKeyDown(t){this.isLock||(this.$emit("keydown",t),"z"===t.key.toLowerCase()&&t.ctrlKey&&(t.shiftKey?this.redo():this.undo(),t.preventDefault()))},undo(){this.commandMgr.undo(),this.$emit("value",this.blocks)},redo(){this.commandMgr.redo(),this.$emit("value",this.blocks)},onKeyUp(t){"Escape"!==t.key&&"Enter"!==t.key&&"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&this.onSelectionChange()},onBlur(t){this.$emit("blur",t)},onFocus(t){this.$emit("focus",t)},genContentEditableDiv(){return this.$createElement(Tt,{ref:"ps"},[this.$createElement("div",{staticClass:"v-search-contenteditable",attrs:{contenteditable:!0,spellcheck:!1,placeholder:this.placeholder},ref:"text",on:{compositionstart:t=>{this.isLock=!0},compositionend:t=>{this.isLock=!1,this.onSync(),this.onStateChangedDebounce()},input:t=>{this.isLock||(this.onSync(),this.onStateChangedDebounce())},mouseup:this.onSelectionChange,keydown:this.onKeyDown,keyup:this.onKeyUp,blur:this.onBlur,focus:this.onFocus}})])},getCurrentToken:()=>"",clear(){this.$refs.text.innerText="",this.onSync()},setBrieflyBlocks(t){const e=this.blockFactory.createBlocksByBrieflyBlocks(t);this.setBlocks(e)},getBrieflyBlocks(){return this.blockFactory.toBrieflyBlocks(this.blocks)},saveScrollTop(){this.$options.scrollTop=this.getScrollTop()},restoreScrollTop(){this.$refs.ps&&this.$refs.ps.$el&&this.$options.scrollTop&&(this.$refs.ps.$el.scrollTop=this.$options.scrollTop,this.$options.scrollTop=null)},getScrollTop(){return this.$refs.ps&&this.$refs.ps.$el?this.$refs.ps.$el.scrollTop:0}},render(t){return this.genContentEditableDiv()}});i(251);const _l=/(?:\[[^\[]*\])|(?:\[[^\[\]]*)|(?:[^\s"]+)|(?:"[^"]*")|(?:"[^"]*)|\s+/g;function Sl(t){return t.replace(/\u00a0/g," ").replace(/\n/g,"")}function Cl(t){for(let e=0;e0&&(i.prevBlock=t[e-1]),e2&&t.startsWith('"')&&t.endsWith('"')&&(t=el.trimQuote(t),e=!0),{withQuote:e,text:t}}parseTokens(t){const e=t.match(_l);return e?e.map((t=>{const{withQuote:e,text:i}=this.shouldQuote(t);return{text:i,withQuote:e}})):[]}generateBlocksByTokens(t){return Cl(t.map((t=>{let e=new el(t.text);return e.withQuote=t.withQuote,e.value=t.value,""===t.text.trim()&&(e=new fl(Sl(t.text))),e})))}createBlocksByBrieflyBlocks(t){let e,i=[];for(const n of t){let t;"empty"===n.type?t=this.grammar.transformEmpty():(t="bracket"===n.type?this.grammar.transformBracket(n.value):"conjunction"===n.type?this.grammar.transformConjunction(n.value):"category"===n.type?this.grammar.transformCategory(n.value):"operator"===n.type?this.grammar.transformOperator(n.value,e):"value"===n.type?this.grammar.transformValue(n.value,e):this.grammar.transformBlock(n.value),e=t),t.shouldHaveQuote()&&(t.withQuote=!0),i.push(t)}return i=Cl(i),i}toTokensByElement(t){if(t.dataset.serialize){const e=el.deserialize(t.dataset.serialize);return this.toTokens(t.textContent||"").map((t=>{try{t.value=JSON.parse(e.value),v(t.value)||Array.isArray(t.value)||(t.value=e.value)}catch{t.value=e.value}return t}))}return this.toTokens(t.textContent||"")}toTokens(t){return this.parseTokens(Sl(t))}createTokens(t){let e=[];for(const i of t.childNodes)e=i.nodeType===Node.TEXT_NODE?e.concat(this.toTokens(i.textContent||"")):e.concat(this.toTokensByElement(i));return e}createBlocks(t){const e=this.createTokens(t);let i=this.generateBlocksByTokens(e);return this.grammar.transformBlocks(i)}toHtml(t){return t.map((t=>t.getDecoratedHtml())).join("")}toBrieflyBlocks(t){return t.map((t=>({type:t.getType(),value:t.value||t.text})))}}var Tl=r.a.extend({name:"SuggestionItem",props:{display:{type:String,default:""},value:{type:String,default:""},prompt:{type:String,default:""},selected:{type:Boolean,default:!1},focused:{type:Boolean,default:!1},inGroup:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0}},render(t){return t("li",{staticClass:"v-search-suggestions-item",class:{"v-search-suggestions-item-selected":this.selected,"v-search-suggestions-item-focused":this.focused,unselectable:!this.selectable,"child-item":this.inGroup}},[t("div",{staticClass:"search-suggestion-item-content"},[t("span",{staticClass:"item-display"},this.display),t("span",{staticClass:"item-prompt"},this.prompt)])])}}),Dl=Tl.extend({name:"SuggestionGroupItem",props:{selectable:{type:Boolean,default:!1}},render(t){return t("li",{staticClass:"v-search-suggestions-item group",class:{"v-search-suggestions-item-selected":this.selected,"v-search-suggestions-item-focused":this.focused}},[t("div",{staticClass:"search-suggestion-item-content"},[t("span",{staticClass:"item-display"},this.display),t("span",{staticClass:"item-prompt"},this.prompt)])])}});var Il=r.a.extend({name:"SearchSuggestions",components:{SuggestionItem:Tl,SuggestionGroupItem:Dl,vDatePickerMenu:Tn,vPerfectScrollbar:Tt},directives:{},mixins:[],props:{hint:{type:Object},groupingInfo:{type:Object}},data:()=>({selectedIndex:-1,hidden:!1}),computed:{titleInfos(){return this.hint.data&&this.hint.data.titles&&this.hint.data.titles.length>0?this.hint.data.titles:[]},suggestionItems(){let t=Object.create(null),e=[],i=[];const n=(t,e)=>{let i=t.display,n=!1;return t.display.includes(" ")&&(i=""".concat(t.display,"""),n=!0),{blockType:t.blockType,display:t.display,value:t.value,prompt:t.prompt,useSlot:t.useSlot,autoPatch:t.autoPatch,replaceStrategy:"multiple"===this.hint.type?"multiple":"none",blockText:i,hasQuote:n,isGroup:!1,inGroup:e,selectable:!0,hintObj:t.hintObj}};for(const s of this.titleInfos)s.grouping&&s.grouping.by?(t[s.grouping.by]||(t[s.grouping.by]=[]),t[s.grouping.by].push(s)):e.push(s);for(let[s,o]of this.sortGroupInfos(t,e))if(m(s)){const t=this.getGroupInfo(s);i.push({blockType:"unknown",display:t.display,value:t.value,prompt:t.prompt,useSlot:t.useSlot,hasQuote:!1,isGroup:!0,inGroup:!1,selectable:!1,replaceStrategy:"none",hintObj:t.hintObj}),o=o.sort(((t,e)=>{const i=t.priority||10,n=e.priority||10;return n>i?1:n0||this.showDate)},showDate(){return!(!this.hint||!this.hint.data)&&!!this.hint.data.date},defaultDate(){return this.hint.data.date.current}},watch:{hint(){this.hidden=!1,""!==this.hint.prefixText?this.selectFirstSuggestion():this.clearSelectedIndex()}},created(){},methods:{sortGroupInfos(t,e){const i=e.map((t=>[null,[t]])).concat(Object.entries(t)),n=t=>{if(m(t[0])){const e=this.getGroupInfo(t[0]);return e&&e.priority?e.priority:10}return t[1][0].priority?t[1][0].priority:10};return i.sort(((t,e)=>{let i=n(t);return n(e)-i}))},getGroupInfo(t){return this.groupingInfo[t]},onClick(t){this.selectedIndex=t,this.$emit("select",this.suggestionItems[this.selectedIndex])},genSuggestionItem(t,e){return this.$createElement(Tl,{ref:"item-".concat(t),props:{display:e.display,value:e.value,prompt:e.prompt,selected:this.selectedIndex===t,selectable:e.selectable,inGroup:e.inGroup},nativeOn:{click:()=>this.onClick(t)},key:t})},genSuggestionGroupItem(t,e){return this.$createElement(Dl,{props:{display:e.display,value:e.value,prompt:e.prompt},key:t})},genSuggestionItems(){let t=this.suggestionItems.reduce(((t,e,i)=>{if(!0===e.useSlot&&this.$scopedSlots["suggestion-items"]){const n=this.$scopedSlots["suggestion-items"]({index:i,suggestion:e,onSelect:()=>this.onClick(i),selected:this.selectedIndex===i});n&&(t=t.concat(n))}else{const n=e.isGroup?this.genSuggestionGroupItem(i,e):this.genSuggestionItem(i,e);t.push(n)}return t}),[]);if(this.hint.limit&&this.hint.limit.showHint&&this.$scopedSlots["suggestion-limit-hint"]){const e=this.$scopedSlots["suggestion-limit-hint"]({});e&&(t=t.concat(e))}return t},getSelectedSuggestion(){if(-1!==this.selectedIndex)return this.suggestionItems[this.selectedIndex]},selectNextSuggestion(){const t=this.suggestionItems.length;for(let e=1;e{this.$emit("selectedDate",xo(t,this.hint.data.date.dateFormat),"value")},"update:isOpen":t=>{this.hidden=!t}}})]):t("div",{staticClass:"v-search-suggestions-wrapper",attrs:{tabindex:-1}},[this.hint.searchTitle?t("div",{staticClass:"v-search-search-criteria"},this.hint.searchTitle):null,t("ul",{staticClass:"v-search-suggestions"},[t(Tt,{ref:"ps"},this.genSuggestionItems())])]):t()}});function $l(t){return t instanceof ul||t instanceof ll||t instanceof rl}function Ol(t){return t instanceof cl||t instanceof dl}function Ml(t){return t instanceof ul?3:t instanceof ll?t.isAnd()?2:1:0}class El{constructor(t,e,i){this.unknownBlockBehavior=e,this.defaultConjunction=i,this.grammar=t}patchOperatorBlocks(t){let e=[];for(const i of t){const t=i.getNextNonEmptyBlock();e.push(i),"category"===i.getType()&&t&&"block"===t.getType()&&e.push(new ul(i.validOperators[0].title,i))}return e=Cl(e),e=this.grammar.transformBlocks(e),e}patchConjunctionBlocks(t){let e=[];for(const i of t){const t=i.getNextNonEmptyBlock();e.push(i),("value"===i.getType()&&t&&"category"===t.getType()||"bracket"===i.getType()&&i.isClose()&&t&&"category"===t.getType())&&e.push(new ll(this.defaultConjunction.conjunctionType))}return e=Cl(e),e=this.grammar.transformBlocks(e),e}patchMissingBlocks(t){return t=this.patchOperatorBlocks(t),t=function(t){let e=[];for(const i of t){const t=i.prevBlock;"empty"!==i.getType()&&t&&"empty"!==t.getType()&&e.push(new fl(" ")),e.push(i)}return t.length>0&&"empty"!==t[t.length-1].getType()&&e.push(new fl(" ")),e=Cl(e),e}(t=Cl(t=this.patchConjunctionBlocks(t)))}translateUnknownBlocks(t){let e=[];for(const i of t)if("block"===i.getType()){const t=new cl(this.unknownBlockBehavior.category),n=new ul(this.unknownBlockBehavior.operator,t),s=new dl(i.text,n),o=new ll(this.unknownBlockBehavior.conjunction),r=i.getPreviousNonEmptyBlock(),a=i.getNextNonEmptyBlock();r&&(r instanceof dl||r instanceof rl)&&e.push(o),e.push(t,n,s),a&&(a instanceof cl||a instanceof rl||"block"===a.getType())&&e.push(o)}else e.push(i);return e}parse(t,e=!0){let i=[];if(t=this.grammar.verifyClause(t),e&&(t=this.translateUnknownBlocks(t)),0===(t=this.toPostfix(t)).length)return{};for(const n of t)if($l(n)){if(i.length<2)return!1;const t=i.pop(),e=i.pop(),s=t.block,o=e.block;if(n instanceof ll&&(Ol(s)||Ol(o)))return!1;if(n instanceof ul&&($l(s)||$l(o)))return!1;let r={block:n,right:t,left:e};i.push(r)}else if(Ol(n)){let t={block:n};i.push(t)}return!(1!==i.length||!$l(i[0].block))&&i[0]}toPostfix(t){let e=[],i=[];for(const n of t)if(!(n instanceof fl))if(sl(n))e.push(n);else if(ol(n)){for(;e.length>0&&!sl(e[e.length-1]);){const t=e.pop();i.push(t)}e.pop()}else if(n instanceof ul||n instanceof ll){for(;e.length>0&&Ml(e[e.length-1])>=Ml(n);){const t=e.pop();i.push(t)}e.push(n)}else i.push(n);for(;e.length>0;){let t=e.pop();i.push(t)}return i}}function Bl(t,e,i="title"){return e.find((e=>e.condition?e.condition(t):"title"===i?e.title===t.pureText():"value"===i?e.value===t.getValue():"both"===i?e.title===t.pureText()&&e.value===t.getValue():void 0))}function Al(t,e,i="title"){return e.find((e=>"title"===i?e.title===t.pureText():"value"===i?e.value===t.getValue():"both"===i?e.title===t.pureText()&&e.value===t.getValue():void 0))}function Pl(t){return al.some((e=>e===t))}function Nl(t){return"("===t}function Fl(t,e){const i=e.prevBlock,n=e.nextBlock;i&&(i.nextBlock=t),n&&(n.prevBlock=t),t.nextBlock=n,t.prevBlock=i,t.currentIndex=e.currentIndex,t.withQuote=e.withQuote}class zl{constructor(t,e,i){this.categories=t||[],this.fetchValueTypes=i,this.fetchOperators=e}setCategories(t){this.categories=t}transformBlock(t){return new el(t)}transformEmpty(){return new fl(" ")}transformCategory(t){const e=new el("");e.value=t;const i=Bl(e,this.categories,"value");if(i){let t=new cl(i.title,i);return t.validOperators=this.fetchOperators(t),t}return new il(t)}transformOperator(t,e){if("category"!==e.getType())return new il(t);const i=new el("");i.value=t;const n=Al(i,e.validOperators,"value");return n?new ul(n.title,e,n):new il(t)}transformValue(t,e){if("operator"!==e.getType())return new il(t);const i=e;i.setValidValueTypes(this.fetchValueTypes(i));const n=new dl(t,i);n.value=t;const s=i.isValidValueBlock(n,"value");return!1!==s?(n.setValue(s),n.text=n.toText(s),n):new il(t)}transformBracket(t){return new rl(t)}transformConjunction(t){return new ll(t)}transformValues(t){for(let e of t){let i=e.getNextNonEmptyBlock();if(e instanceof ul&&(e.setValidValueTypes(this.fetchValueTypes(e)),i&&("block"===i.getType()||i instanceof cl))){const n=e.isValidValueBlock(i,i.value?"both":"title");!1!==n&&(t[i.currentIndex]=new dl(i.text,e),t[i.currentIndex].setValue(n),Fl(t[i.currentIndex],i))}}return t}transformOperators(t){for(let e=0;e0)){const e=Al(n,i.validOperators,n.value?"both":"title");e&&(t[n.currentIndex]=new ul(n.text,i,e),Fl(t[n.currentIndex],n))}}return t}transformConjunctions(t){for(let e=0;e[]},unknownBlockBehavior:{type:Object,default:()=>({conjunction:"and",operator:"=",category:"keyword"})},autoPatch:{type:[Object,Boolean],default:!0},autoFormat:{type:[Object,Boolean],default:!0},defaultConjunction:{type:Object,default:()=>({conjunctionType:"and"})},categories:{type:Array,default:()=>[]},fetchOperators:{type:Function},fetchValueTypes:{type:Function},placeholder:{type:String,default:""},groupingInfo:{type:Object},hintInfo:{type:Object,default:()=>({limit:!1})}},data:()=>({cls:"v-search",suggestionPos:[0,0],hint:{},dslProcessor:null,grammar:null,blockFactory:null,hasBlocks:!1,hasError:!1,currentValidateMessage:"",isSearching:!1}),computed:{searchClass(){return[this.cls,{"has-error":this.hasError}]},suggestionStyle(){return{left:"".concat(this.suggestionPos[0],"px"),top:"".concat(this.suggestionPos[1],"px")}},isPopupDisabled(){return!this.hasError||!this.currentValidateMessage},tippyOptions:()=>({delay:[600,10],placement:"top-start"})},watch:{categories(t){this.grammar&&this.grammar.setCategories(t)}},mounted(){this.grammar=new zl(this.categories,this.fetchOperators,this.fetchValueTypes),this.dslProcessor=new El(this.grammar,this.unknownBlockBehavior,this.defaultConjunction),this.blockFactory=new kl(this.grammar)},methods:{genSuggestions(){return this.$createElement(be,{props:{targetClass:"search-dropdown",mountTo:this.getContainerSelector(),targetStyle:this.suggestionStyle}},[this.$createElement(Il,{props:{hint:this.hint,groupingInfo:this.groupingInfo},ref:"suggestions",scopedSlots:this.$scopedSlots,on:{select:this.onSelectSuggestion,selectedDate:this.onSelectSuggestionDate}})])},genClearIcon(){return this.hasBlocks?this.$createElement("span",{attrs:{unselectable:"unselectable"},staticClass:"search-clear-icon",on:{click:this.onClickClearIcon}}):null},genRightSlots(){return this.$slots.right},onSelectSuggestion(t){t&&(this.$refs.content.insertTextBySuggestion(t),this.$refs.suggestions.selectFirstSuggestion())},onSelectSuggestionDate(t,e){t&&this.$refs.content.insertTextInSelection(t,e,!1,"none")},onClickClearIcon(){this.$refs.content.clear(),this.$emit("clear")},async onHint(t){this.hint=t,await this.$nextTick(),this.alignSuggestion()},alignSuggestion(){if(Dt)return;const t=this.$refs.content,e=this.$refs.suggestions;if(!(e.showSuggestion&&t&&e&&t.$el&&e.$el))return;const i=t.getCursorRect(),n=this.$alignManager.getAlignToXY(e.$el,t.$el,"tl->bl",[i.left,0],!0,!0,this.getContainerEl());this.suggestionPos=n},onKeyDown(t){if(this.$refs.suggestions){const e=this.$refs.suggestions;if("ArrowUp"===t.key)e.selectPrevSuggestion(),t.preventDefault();else if("ArrowDown"===t.key)e.selectNextSuggestion(),t.preventDefault();else if("Enter"===t.key){const i=e.getSelectedSuggestion();e.showSuggestion&&i?this.onSelectSuggestion(i):this.onSearch(t),t.preventDefault()}else"Escape"===t.key&&e.hide()}},setValue(t){this.$refs.content.setBlocks(t)},validate(){return this.$refs.content.onValidateDebounced()},formatBlocks(t="blur"){let e=!1;if(e=y(this.autoFormat)?this.autoFormat:this.autoFormat[t],e){return this.$refs.content.formatBlocks()}},patchMissingBlocks(t="blur"){let e=!1;if(e=y(this.autoPatch)?this.autoPatch:this.autoPatch[t],e){return this.$refs.content.patchMissingBlocks()}},async onSearch(t){this.isSearching=!0;const e=this.$refs.content,i=this.$refs.suggestions;this.patchMissingBlocks("search"),this.formatBlocks("search"),await this.$nextTick(),e.setCaretPosToEnd(),e.blur(),i.hide(),this.$emit("search",this.dslProcessor.parse(e.blocks),t),this.validate(),window.setTimeout((()=>{this.isSearching=!1}))},onBlocksChange(t){this.$emit("value",this.dslProcessor.parse(t),t),this.hasBlocks=t.length>0},onClickOutside(){this.$refs.suggestions.hide()},getExtraElements(){return this.$children},onContentBlur(t){if(this.isSearching)return;const e=ie(t),i=this.$refs.suggestions;e&&i&&i.$el&&i.$el.contains(e)||(this.patchMissingBlocks("blur"),this.formatBlocks("blur")),this.$emit("blur")},getBrieflyBlocks(){return this.$refs.content.getBrieflyBlocks()},setBrieflyBlocks(t){this.$refs.content.setBrieflyBlocks(t)}},render(t){return t("div",{class:this.searchClass,directives:[{name:"clickoutside",value:this.onClickOutside}]},[t("div",{staticClass:"".concat(this.cls,"-icon")}),t(Ro,{staticClass:"".concat(this.cls,"-popup"),props:{type:"error",tippyOptions:this.tippyOptions,disable:this.isPopupDisabled,content:this.currentValidateMessage}},[t(xl,{props:{text:this.text,value:this.value,categories:this.categories,fetchOperators:this.fetchOperators,fetchValueTypes:this.fetchValueTypes,placeholder:this.placeholder,dslProcessor:this.dslProcessor,blockFactory:this.blockFactory,grammar:this.grammar,groupingInfo:this.groupingInfo,hintInfo:this.hintInfo,validator:this.validator,validateMessage:this.validateMessage},ref:"content",on:{hint:this.onHint,value:this.onBlocksChange,keydown:this.onKeyDown,error:(t,e)=>{this.$emit("error",t,e),this.hasError=t,this.currentValidateMessage=e},text:t=>this.$emit("text",t),blur:this.onContentBlur,focus:t=>this.$emit("focus",t)}})]),this.genSuggestions(),this.genClearIcon(),this.genRightSlots()])}});const Rl={x:10,y:10},Hl={x:30,y:30},jl=Dt?null:window.Ext;function Wl(t){if(t){if(I(t,_a))return t;for(let e of t.$children){let t=Wl(e);if(t)return t}}}class Vl{constructor(t,e,i){Dt||(this.localVue=t,e instanceof HTMLElement?this._containerEl=e:m(e)&&(this._containerSel=e),this.zseed=9e3,this.front=null,this.offsetX=Rl.x,this.offsetY=Rl.y,this.windowList=[],this.minimizedComps=[],this.windowsMap=Object.create(null),this.maskList=[],this.bindActivateLast=this.activateLast.bind(this),this.sortWindows=this.sortWindows.bind(this),this.centeredWindowCount=0,this.centerOffsets=i.centerOffsets||[20,20])}get(t){return m(t)?this.windowsMap[t]:t}getOffsetDefault(){return Rl}getOffsetGap(){return Hl}bringToFront(t){let e;if((t=this.get(t.id)).lastClick=(new Date).getTime(),this.front&&t.id===this.front.id)return!1;for(;t&&(e=(t=this.get(t.id)).component,t.lastAccess=(new Date).getTime(),!e.isModalized||e.isModalized());)t=e._isVue?e.$options.owner:t.owner;return this.orderWindows(),!0}sendToBack(t){this.get(t).lastAccess=-(new Date).getTime(),this.orderWindows()}orderWindows(){this.windowList.sort(this.sortWindows),this.windowList.forEach(((t,e)=>{t.component&&!t.component.hidden&&t.component.setZIndex(this.zseed+10*e)})),this.maskList.forEach((t=>{const e=this.windowList.filter((e=>t.triggeredBy.includes(e.id)));if(0===e.length)return;const i=e.reduce(((t,e)=>Math.min(t,e.component.getZIndex())),e[0].component.getZIndex());Vt(t.el,"z-index","".concat(i-1))})),this.activateLast()}activateLast(){let t;for(let e=this.windowList.length-1;e>=0;--e)if(t=this.windowList[e],t.component&&!t.component.hidden){if(t.component.isSkipActive&&t.component.isSkipActive())continue;return this.setActiveWin(this.windowList[e]),this.windowList[e]}this.setActiveWin(null)}setActiveWin(t){if(t!==this.front&&(this.front&&this.front.component.setActive(!1),this.front=t,t)){const e=t.component;if(!e._isVue){const t=[...e.modalWin||[],...e.siblingWin||[]];for(const e of t)e&&e.hideForMinimize&&(delete e.hideForMinimize,e.show())}this.bringToFront(t),e.setActive(!0)}}getLastAccess(t){if(t)return(t=this.get(t.id)).lastAccess||0}getGroupWinAccessTime(t){if(!(t=this.get(t.id)))return 0;const e=(t.component._isVue?t.component.$options.modalWins:t.component.modalWin)||[];return[t.component,...e].reduce(((t,e)=>Math.max(t,this.getLastAccess(e))),0)}sortWindows(t,e){t=this.get(t.id),e=this.get(e.id);const i=t.component,n=e.component,s=i.getTopWin?i.getTopWin():i,o=n.getTopWin?n.getTopWin():n,r=i.isModalized&&i.isModalized()?1:0,a=n.isModalized&&n.isModalized()?1:0,l=i.isAlwaysOnTop&&i.isAlwaysOnTop()?1:0,c=n.isAlwaysOnTop&&n.isAlwaysOnTop()?1:0,u=i.isAlwaysOnBottom&&i.isAlwaysOnBottom()?1:0,d=n.isAlwaysOnBottom&&n.isAlwaysOnBottom()?1:0;return this.get(s.id)?this.get(o.id)?u!==d?d?1:-1:l!==c?c?-1:1:s!==o?this.getGroupWinAccessTime(s)t*this.centeredWindowCount))),i._isVue?i.alignCenterToElement(this.getContainerEl(),n):jl&&i.alignTo(jl.get(this.getContainerEl()),"c-c",n),this.centeredWindowCount++}cascadeOverlap(t){let e;e=t.container?t.container.getSize():t.getSize();const i=this.offsetX+t.getWidth(),n=this.offsetY+t.getHeight();i>e.width&&n>e.height?this.offsetX=this.offsetY=10:i>e.width?(10===this.offsetX&&(this.offsetY=10),this.offsetX=10):n>e.height&&(this.offsetX+=Hl.x,this.offsetY=10),t.setPosition(this.offsetX,this.offsetY),this.offsetX+=Hl.x,this.offsetY+=Hl.y}register(t){this.windowsMap[t.id]&&this.unregister(t),jl&&t instanceof jl.Window&&(t.manager=this);const e={id:t.id,lastClick:null,lastAccess:null,component:t};if(this.windowsMap[t.id]=e,this.windowList.push(e),t.on?t.on("hide",this.activateLast,this):t._isVue&&t.$on("hide",this.bindActivateLast),t.fromRestore||t.isModalized&&t.isModalized()||this.cascadeOverlap(t),t.autoStart&&t.maximized&&t.appInstance){const{x:e,y:i,pageX:n,pageY:s}=t.appInstance.getRestoreSizePos();ae(e)||ae(i)||ae(n)||ae(s)||this.cascadeOverlap(t)}}unregister(t){t.manager&&delete t.manager,t.un?t.un("hide",this.activateLast,this):t._isVue&&t.$off("hide",this.bindActivateLast),this.windowList=this.windowList.filter((e=>e.id!==t.id)),this.minimizedComps=this.minimizedComps.filter((e=>e.id!==t.id)),delete this.windowsMap[t.id]}isActive(){return!!this.getContainerEl()}setZIndex(t){this.zseed=t}setContainerEl(t){t instanceof HTMLElement?this._containerEl=t:m(t)&&(this._containerSel=t)}getContainerEl(){return this._containerEl||(this._containerEl=document.querySelector(this._containerSel)),this._containerEl}openModalWindow(t,e={},i={}){let n=document.createElement("div"),s=new t({propsData:e=kt()({maskContainer:{containerEl:i.containerEl,sharedMask:i.sharedMask}},e)});(i&&i.containerEl||this.getContainerEl()).appendChild(n),s.$mount(n);let o=Wl(s);if(!o)throw new Error("window is not found");return o.init(),r.a.nextTick((()=>{o.alignCenterToElement&&o.alignCenterToElement(this.getContainerEl())})),function(t,e){e.top&&(t.top=e.top),e.left&&(t.left=e.left)}(o,e),{window:o,component:s}}getMsgBox(t,e={},i={}){return(t=t||this.localVue.prototype.$messageWindow)||Ae("you need to set first parameter as vue component for open it, if you want to used default one, please import vMessageBoxWindowPlugin when you are in tree-shaking mode"),this.openModalWindow(t,e,i).window}getSameContainerMask(t){return this.maskList.find((e=>e.containerEl===t))}maskContainer(t,{sharedMask:e=!1,containerEl:i=null}={}){let n;i=i||this.getContainerEl(),e&&this.maskList.length>0&&(i&&(n=this.getSameContainerMask(i)),n=n||this.maskList[this.maskList.length-1],n&&n.triggeredBy.push(t)),n||(n={id:"".concat(t,"-container-mask"),triggeredBy:[t],el:document.createElement("div"),containerEl:i},oe(n.el,"v-window-container-mask"),Vt(n.el,"height","100%"),Vt(n.el,"width","100%"),Vt(n.el,"position","absolute"),Vt(n.el,"top","0px"),Vt(n.el,"background-color","rgba(0,0,0,0.5)"),i.appendChild(n.el),this.maskList.push(n)),this.orderWindows()}unmaskContainer(t){const e=this.maskList.findIndex((e=>e.triggeredBy.includes(t)));if(e<0)return;const i=this.maskList[e];i.triggeredBy=i.triggeredBy.filter((e=>e!==t)),0===i.triggeredBy.length&&(i.containerEl.removeChild(i.el),this.maskList.splice(e,1),this.orderWindows())}getActive(){return this.front&&this.front.component}getBy(t,e){let i=[];const n=this.windowList;for(let s=n.length-1;s>=0;--s){let o=n[s].component;!1!==t.call(e||o,o)&&i.push(o)}return i}each(t,e){const i=this.windowList;for(let n of i)if(i[n]&&"function"!=typeof i[n]&&!1===t.call(e||[n],this.list[n].component))return}getActiveAppWindow(){let t=this.getActive();for(;t;){if(t instanceof SYNO.SDS.AppWindow)return t;if(t._isVue&&I(t,za))return t;t=t._isVue?t.$options.owner:t.owner}return t}hideAll(){for(let t of this.windowList)t&&!g(t)&&t.isVisible()&&t.hide()}toggleAllWin(){this.toggleAllWinMinimize()}toggleAllWinMinimize(){let t=[];for(const e of this.windowList){const i=e.component;i.isVisible()&&(!1===i.toggleMinimizable?i.close():t.push(i))}if(t.length){for(const e of t)e.minimize&&e.minimize();this.minimizedComps=t}else if(this.minimizedComps.length){Promise.all(this.minimizedComps.map((t=>new Promise((e=>{t.show(void 0,e,this)}))))).then((()=>{const t=(new Date).getTime();for(const[e,i]of this.minimizedComps.entries()){this.get(i.id).lastAccess=t+e}this.orderWindows()}))}}getMaximizeAppWindowCount(t){return this.windowList.reduce((function(e,i){const n=i.component;return t&&t.id&&i.id&&t.id===i.id?e:(n._isVue||n instanceof SYNO.SDS.AppWindow)&&n.isVisible()&&!0===n.maximized?e+1:e}),0)}}const ql=Li({},((t,e={})=>{t.prototype.$windowManager=new Vl(t,e.desktopEl,e)}));function Ul(t){return"hidden"===Vt(t,"overflow")}class Yl{constructor(){Dt||(this.doc=document.documentElement,this.body=document.body,this.win=window,Ul(this.doc)||Ul(this.body)||Ae("html or body should have overflow hidden, or it will make alignment offset glitch."))}getViewportWidth(){return this.body.clientWidth}getViewportHeight(){return this.body.clientHeight}getScroll(t){return t===this.doc||t===this.body?[window.pageXOffset||this.body.scrollLeft||0,window.pageYOffset||this.body.scrollTop||0]:[t.scrollLeft,t.scrollTop]}getConstrainToXY(t,e,i={left:0,top:0,right:0,bottom:0}){let n,s,o=0,r=0;if(!t||!e)return!1;if(t==this.doc||t===document.body?(n=this.getViewportWidth(),s=this.getViewportHeight()):(n=t.clientWidth,s=t.clientHeight),!n||!s)return!1;let a=e.scrollLeft,l=e.scrollTop;o+=i.left+a,r+=i.top+l,n-=i.right,s-=i.bottom;let c=o+n,u=r+s,d=e.getBoundingClientRect(),h=d.x,p=d.y,f=e.offsetWidth,m=e.offsetHeight,g=!1;return hu&&(p=u-m,g=!0),h+f>c&&(h=c-f,g=!0),p([a-z]+)?$/);if(0===a.length)throw new Error("anchor should be xx->xx or xx->");const l=this.getAnchorXY(t,a[1],!1,r),c=this.getAnchorXY(e,a[2],o,r),u=Array.isArray(t)?{width:0,height:0}:t.getBoundingClientRect(),d=Array.isArray(e)?{left:c[0],right:c[0],top:c[1],bottom:c[1]}:e.getBoundingClientRect(),{width:h,height:p}=u,f=a[1]?a[1].charAt(1):"",m=a[1]?a[1].charAt(0):"",g=a[2]?a[2].charAt(1):"",v=a[2]?a[2].charAt(0):"";let y,b;if(r===this.body)y=this.getViewportWidth(),b=this.getViewportHeight();else{const t=r.getBoundingClientRect();y=t.width,b=t.height}const w=o?[r.offsetLeft,r.offsetTop]:[0,0];let x=c[0]-l[0]+n[0]-w[0],_=c[1]-l[1]+n[1]-w[1];if(s){const t=this.getScroll(r),e="r"===f&&"l"===g||"l"===f&&"r"===g,i="t"===m&&"b"===v||"b"===m&&"t"===v;x+h>y+t[0]&&(x=e?d.left-u.width+t[0]-n[0]:y+t[0]-Math.ceil(h)),xb+t[1]&&(_=i?d.top-u.height+t[1]-n[1]:b+t[1]-Math.ceil(p)),_{t.prototype.$alignManager=new Yl}));class Gl{constructor(t){Dt||(this.current="",this.mobile=!1,this.mobileBreakpoint="xxs",this.threshold=kt()({xxl:1920,xl:1680,lg:1440,md:1280,sm:1024,xs:768},t.threshold),this.breakpointPriority={xxs:0,xs:1,sm:2,md:3,lg:4,xl:5,xxl:6},this.onResizeBounced=Si()(this.onResize),window.addEventListener("resize",this.onResizeBounced.bind(this),{passive:!0}),this.update())}getClientWidth(){return Dt?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}update(){const t=this.getClientWidth();let e="xxs";for(const[i,n]of Object.entries(this.threshold))if(t>n){e=i;break}this.current=e,this.mobile=this.breakpointPriority[this.current]<=this.breakpointPriority[this.mobileBreakpoint]}onResize(){this.update()}}const Xl=Li({},((t,e={})=>{t.prototype.$breakpointManager=t.observable(new Gl(e))}));i(247);var Zl=R({name:"FileButton",components:{vButton:ui,vInput:Ei},mixins:[V,vi,ai],model:{prop:"fileName",event:"change"},props:{buttonOnly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},fileName:{type:String,default:void 0},accept:{type:String,default:""}},data:()=>({prefixCls:"v-file-btn"}),computed:{fileButtonWrapperCls(){return[this.prefixCls,{"button-only":this.buttonOnly}]}},watch:{},created(){},mounted(){},beforeDestroy(){},methods:{getFile(){const t=this.getFileList();return t?t[0]:null},getFileList(){return this._files},onClick(){this.$refs.fileInput.click()},onFileChange(t){let e=t.target.value;this._files=[...t.target.files],this.$refs.fileInput.value=null,this.$emit("change",e.replace(/^C:\\fakepath\\/gi,""))}}},(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.fileButtonWrapperCls},[t.buttonOnly?t._e():i("v-input",{staticClass:"file-textfield",attrs:{name:"file-button",disabled:"",placeholder:"",value:t.fileName,"syno-id":t.synoId+"-input"}}),t._v(" "),i("input",{ref:"fileInput",staticClass:"file-input",attrs:{type:"file",accept:t.accept},on:{change:t.onFileChange}}),t._v(" "),i("v-button",{attrs:{disabled:t.disabled,"syno-id":t.synoId+"-btn"},on:{click:t.onClick}},[t._v("\n "+t._s(t._i18n("uicommon","browse"))+"\n ")])],1)}),[],!1,null,null,null).exports;const Ql=Li({},(t=>{t.directive("clickoutside",Ye)}));const Jl=Li({},(t=>{t.directive("tooltip",ri)}));var tc={inserted(t,e,i){i.componentInstance&&W.call(i.componentInstance,"FormItem","form.register",i.componentInstance)},unbind(t,e,i){i.componentInstance&&W.call(i.componentInstance,"FormItem","form.unregister",i.componentInstance)}};const ec=Li({},(t=>{t.directive("form-component",tc)}));var ic={inserted(t,e){const i=g(e.value)?e.value:E;Ut(t,"touchstart",(e=>{const n=window.setTimeout((()=>{i(e)}),500);Ut(t,"touchmove",(()=>{window.clearTimeout(n)})),Yt(t,"touchend",(()=>{window.clearTimeout(n)}))}))},unbind(t){Kt(t,"touchstart")}};const nc=Li({},(t=>{t.directive("long-press",ic)}));function sc(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function oc(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function rc(t){var e=oc(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ac(t){return t instanceof oc(t).Element||t instanceof Element}function lc(t){return t instanceof oc(t).HTMLElement||t instanceof HTMLElement}function cc(t){return t?(t.nodeName||"").toLowerCase():null}function uc(t){return((ac(t)?t.ownerDocument:t.document)||window.document).documentElement}function dc(t){return sc(uc(t)).left+rc(t).scrollLeft}function hc(t){return oc(t).getComputedStyle(t)}function pc(t){var e=hc(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function fc(t,e,i){void 0===i&&(i=!1);var n,s,o=uc(e),r=sc(t),a=lc(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==cc(e)||pc(o))&&(l=(n=e)!==oc(n)&&lc(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:rc(n)),lc(e)?((c=sc(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=dc(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}function mc(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function gc(t){return"html"===cc(t)?t:t.assignedSlot||t.parentNode||t.host||uc(t)}function vc(t){return["html","body","#document"].indexOf(cc(t))>=0?t.ownerDocument.body:lc(t)&&pc(t)?t:vc(gc(t))}function yc(t,e){void 0===e&&(e=[]);var i=vc(t),n="body"===cc(i),s=oc(i),o=n?[s].concat(s.visualViewport||[],pc(i)?i:[]):i,r=e.concat(o);return n?r:r.concat(yc(gc(o)))}function bc(t){return["table","td","th"].indexOf(cc(t))>=0}function wc(t){if(!lc(t)||"fixed"===hc(t).position)return null;var e=t.offsetParent;if(e){var i=uc(e);if("body"===cc(e)&&"static"===hc(e).position&&"static"!==hc(i).position)return i}return e}function xc(t){for(var e=oc(t),i=wc(t);i&&bc(i)&&"static"===hc(i).position;)i=wc(i);return i&&"body"===cc(i)&&"static"===hc(i).position?e:i||function(t){for(var e=gc(t);lc(e)&&["html","body"].indexOf(cc(e))<0;){var i=hc(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var _c="top",Sc="bottom",Cc="right",kc="left",Tc="auto",Dc=[_c,Sc,Cc,kc],Ic="start",$c="end",Oc="viewport",Mc="popper",Ec=Dc.reduce((function(t,e){return t.concat([e+"-"+Ic,e+"-"+$c])}),[]),Bc=[].concat(Dc,[Tc]).reduce((function(t,e){return t.concat([e,e+"-"+Ic,e+"-"+$c])}),[]),Ac=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Pc(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var Nc={placement:"bottom",modifiers:[],strategy:"absolute"};function Fc(){for(var t=arguments.length,e=new Array(t),i=0;i=0?"x":"y"}function Wc(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?Rc(s):null,r=s?Hc(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case _c:e={x:a,y:i.y-n.height};break;case Sc:e={x:a,y:i.y+i.height};break;case Cc:e={x:i.x+i.width,y:l};break;case kc:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?jc(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case Ic:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case $c:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}var Vc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qc(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.offsets,r=t.position,a=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(o),u=c.x,d=c.y,h=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),f=kc,m=_c,g=window;if(l){var v=xc(i);v===oc(i)&&(v=uc(i)),s===_c&&(m=Sc,d-=v.clientHeight-n.height,d*=a?1:-1),s===kc&&(f=Cc,u-=v.clientWidth-n.width,u*=a?1:-1)}var y,b=Object.assign({position:r},l&&Vc);return a?Object.assign(Object.assign({},b),{},((y={})[m]=p?"0":"",y[f]=h?"0":"",y.transform=(g.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",y)):Object.assign(Object.assign({},b),{},((e={})[m]=p?d+"px":"",e[f]=h?u+"px":"",e.transform="",e))}var Uc={left:"right",right:"left",bottom:"top",top:"bottom"};function Yc(t){return t.replace(/left|right|bottom|top/g,(function(t){return Uc[t]}))}var Kc={start:"end",end:"start"};function Gc(t){return t.replace(/start|end/g,(function(t){return Kc[t]}))}function Xc(t,e){var i,n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&((i=n)instanceof oc(i).ShadowRoot||i instanceof ShadowRoot)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Zc(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Qc(t,e){return e===Oc?Zc(function(t){var e=oc(t),i=uc(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+dc(t),y:a}}(t)):lc(e)?function(t){var e=sc(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Zc(function(t){var e=uc(t),i=rc(t),n=t.ownerDocument.body,s=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+dc(t),a=-i.scrollTop;return"rtl"===hc(n||e).direction&&(r+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:r,y:a}}(uc(t)))}function Jc(t,e,i){var n="clippingParents"===e?function(t){var e=yc(gc(t)),i=["absolute","fixed"].indexOf(hc(t).position)>=0&&lc(t)?xc(t):t;return ac(i)?e.filter((function(t){return ac(t)&&Xc(t,i)&&"body"!==cc(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=Qc(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),Qc(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function tu(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function eu(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function iu(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?"clippingParents":o,a=i.rootBoundary,l=void 0===a?Oc:a,c=i.elementContext,u=void 0===c?Mc:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,m=tu("number"!=typeof f?f:eu(f,Dc)),g=u===Mc?"reference":Mc,v=t.elements.reference,y=t.rects.popper,b=t.elements[h?g:u],w=Jc(ac(b)?b:b.contextElement||uc(t.elements.popper),r,l),x=sc(v),_=Wc({reference:x,element:y,strategy:"absolute",placement:s}),S=Zc(Object.assign(Object.assign({},y),_)),C=u===Mc?S:x,k={top:w.top-C.top+m.top,bottom:C.bottom-w.bottom+m.bottom,left:w.left-C.left+m.left,right:C.right-w.right+m.right},T=t.modifiersData.offset;if(u===Mc&&T){var D=T[s];Object.keys(k).forEach((function(t){var e=[Cc,Sc].indexOf(t)>=0?1:-1,i=[_c,Sc].indexOf(t)>=0?"y":"x";k[t]+=D[i]*e}))}return k}function nu(t,e,i){return Math.max(t,Math.min(e,i))}function su(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ou(t){return[_c,Cc,Sc,kc].some((function(e){return t[e]>=0}))}var ru=zc({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=oc(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,Lc)})),a&&l.addEventListener("resize",i.update,Lc),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Lc)})),a&&l.removeEventListener("resize",i.update,Lc)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Wc({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a={placement:Rc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),qc(Object.assign(Object.assign({},a),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),qc(Object.assign(Object.assign({},a),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];lc(s)&&cc(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});lc(n)&&cc(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=Bc.reduce((function(t,i){return t[i]=function(t,e,i){var n=Rc(t),s=[kc,_c].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[kc,Cc].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=e.options.placement,v=Rc(g),y=l||(v===g||!f?[Yc(g)]:function(t){if(Rc(t)===Tc)return[];var e=Yc(t);return[Gc(t),e,Gc(e)]}(g)),b=[g].concat(y).reduce((function(t,i){return t.concat(Rc(i)===Tc?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Bc:l,u=Hc(n),d=u?a?Ec:Ec.filter((function(t){return Hc(t)===u})):Dc,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=iu(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[Rc(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),w=e.rects.reference,x=e.rects.popper,_=new Map,S=!0,C=b[0],k=0;k=0,O=$?"width":"height",M=iu(e,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),E=$?I?Cc:kc:I?Sc:_c;w[O]>x[O]&&(E=Yc(E));var B=Yc(E),A=[];if(o&&A.push(M[D]<=0),a&&A.push(M[E]<=0,M[B]<=0),A.every((function(t){return t}))){C=T,S=!1;break}_.set(T,A)}if(S)for(var P=function(t){var e=b.find((function(e){var i=_.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},N=f?3:1;N>0;N--){if("break"===P(N))break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,m=void 0===f?0:f,g=iu(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Rc(e.placement),y=Hc(e.placement),b=!y,w=jc(v),x="x"===w?"y":"x",_=e.modifiersData.popperOffsets,S=e.rects.reference,C=e.rects.popper,k="function"==typeof m?m(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):m,T={x:0,y:0};if(_){if(o){var D="y"===w?_c:kc,I="y"===w?Sc:Cc,$="y"===w?"height":"width",O=_[w],M=_[w]+g[D],E=_[w]-g[I],B=p?-C[$]/2:0,A=y===Ic?S[$]:C[$],P=y===Ic?-C[$]:-S[$],N=e.elements.arrow,F=p&&N?mc(N):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},L=z[D],R=z[I],H=nu(0,S[$],F[$]),j=b?S[$]/2-B-H-L-k:A-H-L-k,W=b?-S[$]/2+B+H+R+k:P+H+R+k,V=e.elements.arrow&&xc(e.elements.arrow),q=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,U=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,Y=_[w]+j-U-q,K=_[w]+W-U,G=nu(p?Math.min(M,Y):M,O,p?Math.max(E,K):E);_[w]=G,T[w]=G-O}if(a){var X="x"===w?_c:kc,Z="x"===w?Sc:Cc,Q=_[x],J=nu(Q+g[X],Q,Q-g[Z]);_[x]=J,T[x]=J-Q}e.modifiersData[n]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=i.elements.arrow,o=i.modifiersData.popperOffsets,r=Rc(i.placement),a=jc(r),l=[kc,Cc].indexOf(r)>=0?"height":"width";if(s&&o){var c=i.modifiersData[n+"#persistent"].padding,u=mc(s),d="y"===a?_c:kc,h="y"===a?Sc:Cc,p=i.rects.reference[l]+i.rects.reference[a]-o[a]-i.rects.popper[l],f=o[a]-i.rects.reference[a],m=xc(s),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,v=p/2-f/2,y=c[d],b=g-u[l]-c[h],w=g/2-u[l]/2+v,x=nu(y,w,b),_=a;i.modifiersData[n]=((e={})[_]=x,e.centerOffset=x-w,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,s=i.element,o=void 0===s?"[data-popper-arrow]":s,r=i.padding,a=void 0===r?0:r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&Xc(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[n+"#persistent"]={padding:tu("number"!=typeof a?a:eu(a,Dc))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=iu(e,{elementContext:"reference"}),a=iu(e,{altBoundary:!0}),l=su(r,n),c=su(a,s,o),u=ou(l),d=ou(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),au="tippy-content",lu="tippy-backdrop",cu="tippy-arrow",uu="tippy-svg-arrow",du={passive:!0,capture:!0};function hu(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function pu(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function fu(t,e){return"function"==typeof t?t.apply(void 0,e):t}function mu(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function gu(t){return[].concat(t)}function vu(t,e){-1===t.indexOf(e)&&t.push(e)}function yu(t){return t.split("-")[0]}function bu(t){return[].slice.call(t)}function wu(){return document.createElement("div")}function xu(t){return["Element","Fragment"].some((function(e){return pu(t,e)}))}function _u(t){return pu(t,"MouseEvent")}function Su(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function Cu(t){return xu(t)?[t]:function(t){return pu(t,"NodeList")}(t)?bu(t):Array.isArray(t)?t:bu(document.querySelectorAll(t))}function ku(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Tu(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function Du(t){var e=gu(t)[0];return e&&e.ownerDocument||document}function Iu(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}var $u={isTouch:!1},Ou=0;function Mu(){$u.isTouch||($u.isTouch=!0,window.performance&&document.addEventListener("mousemove",Eu))}function Eu(){var t=performance.now();t-Ou<20&&($u.isTouch=!1,document.removeEventListener("mousemove",Eu)),Ou=t}function Bu(){var t=document.activeElement;if(Su(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Au="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Pu=/MSIE |Trident\//.test(Au);var Nu={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Fu=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Nu,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),zu=Object.keys(Fu);function Lu(t){var e=(t.plugins||[]).reduce((function(e,i){var n=i.name,s=i.defaultValue;return n&&(e[n]=void 0!==t[n]?t[n]:s),e}),{});return Object.assign({},t,{},e)}function Ru(t,e){var i=Object.assign({},e,{content:fu(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Lu(Object.assign({},Fu,{plugins:e}))):zu).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(s){e[i]=n}return e}),{})}(t,e.plugins));return i.aria=Object.assign({},Fu.aria,{},i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}function Hu(t,e){t.innerHTML=e}function ju(t){var e=wu();return!0===t?e.className=cu:(e.className=uu,xu(t)?e.appendChild(t):Hu(e,t)),e}function Wu(t,e){xu(e.content)?(Hu(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Hu(t,e.content):t.textContent=e.content)}function Vu(t){var e=t.firstElementChild,i=bu(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(au)})),arrow:i.find((function(t){return t.classList.contains(cu)||t.classList.contains(uu)})),backdrop:i.find((function(t){return t.classList.contains(lu)}))}}function qu(t){var e=wu(),i=wu();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=wu();function s(i,n){var s=Vu(e),o=s.box,r=s.content,a=s.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Wu(r,t.props),n.arrow?a?i.arrow!==n.arrow&&(o.removeChild(a),o.appendChild(ju(n.arrow))):o.appendChild(ju(n.arrow)):a&&o.removeChild(a)}return n.className=au,n.setAttribute("data-state","hidden"),Wu(n,t.props),e.appendChild(i),i.appendChild(n),s(t.props,t.props),{popper:e,onUpdate:s}}qu.$$tippy=!0;var Uu=1,Yu=[],Ku=[];function Gu(t,e){var i,n,s,o,r,a,l,c,u,d=Ru(t,Object.assign({},Fu,{},Lu((i=e,Object.keys(i).reduce((function(t,e){return void 0!==i[e]&&(t[e]=i[e]),t}),{}))))),h=!1,p=!1,f=!1,m=!1,g=[],v=mu(K,d.interactiveDebounce),y=Uu++,b=(u=d.plugins).filter((function(t,e){return u.indexOf(t)===e})),w={id:y,reference:t,popper:wu(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(s),cancelAnimationFrame(o)},setProps:function(e){0;if(w.state.isDestroyed)return;A("onBeforeUpdate",[w,e]),U();var i=w.props,n=Ru(t,Object.assign({},w.props,{},e,{ignoreAttributes:!0}));w.props=n,q(),i.interactiveDebounce!==n.interactiveDebounce&&(F(),v=mu(K,n.interactiveDebounce));i.triggerTarget&&!n.triggerTarget?gu(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded");N(),B(),S&&S(i,n);w.popperInstance&&(Q(),tt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));A("onAfterUpdate",[w,e])},setContent:function(t){w.setProps({content:t})},show:function(){0;var t=w.state.isVisible,e=w.state.isDestroyed,i=!w.state.isEnabled,n=$u.isTouch&&!w.props.touch,s=hu(w.props.duration,0,Fu.duration);if(t||e||i||n)return;if($().hasAttribute("disabled"))return;if(A("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,I()&&(_.style.visibility="visible");B(),H(),w.state.isMounted||(_.style.transition="none");if(I()){var o=M(),r=o.box,a=o.content;ku([r,a],0)}l=function(){if(w.state.isVisible&&!m){if(m=!0,_.offsetHeight,_.style.transition=w.props.moveTransition,I()&&w.props.animation){var t=M(),e=t.box,i=t.content;ku([e,i],s),Tu([e,i],"visible")}P(),N(),vu(Ku,w),w.state.isMounted=!0,A("onMount",[w]),w.props.animation&&I()&&function(t,e){W(t,e)}(s,(function(){w.state.isShown=!0,A("onShown",[w])}))}},function(){var t,e=w.props.appendTo,i=$();t=w.props.interactive&&e===Fu.appendTo||"parent"===e?i.parentNode:fu(e,[i]);t.contains(_)||t.appendChild(_);Q(),!1}()},hide:function(){0;var t=!w.state.isVisible,e=w.state.isDestroyed,i=!w.state.isEnabled,n=hu(w.props.duration,1,Fu.duration);if(t||e||i)return;if(A("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,h=!1,I()&&(_.style.visibility="hidden");if(F(),j(),B(),I()){var s=M(),o=s.box,r=s.content;w.props.animation&&(ku([o,r],n),Tu([o,r],"hidden"))}P(),N(),w.props.animation?I()&&function(t,e){W(t,(function(){!w.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&e()}))}(n,w.unmount):w.unmount()},hideWithInteractivity:function(t){0;O().addEventListener("mousemove",v),vu(Yu,v),v(t)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){0;w.state.isVisible&&w.hide();if(!w.state.isMounted)return;J(),tt().forEach((function(t){t._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);Ku=Ku.filter((function(t){return t!==w})),w.state.isMounted=!1,A("onHidden",[w])},destroy:function(){0;if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),U(),delete t._tippy,w.state.isDestroyed=!0,A("onDestroy",[w])}};if(!d.render)return w;var x=d.render(w),_=x.popper,S=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+w.id,w.popper=_,t._tippy=w,_._tippy=w;var C=b.map((function(t){return t.fn(w)})),k=t.hasAttribute("aria-expanded");return q(),N(),B(),A("onCreate",[w]),d.showOnCreate&&et(),_.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(t){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(O().addEventListener("mousemove",v),v(t))})),w;function T(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function D(){return"hold"===T()[0]}function I(){var t;return!!(null==(t=w.props.render)?void 0:t.$$tippy)}function $(){return c||t}function O(){var t=$().parentNode;return t?Du(t):document}function M(){return Vu(_)}function E(t){return w.state.isMounted&&!w.state.isVisible||$u.isTouch||r&&"focus"===r.type?0:hu(w.props.delay,t?0:1,Fu.delay)}function B(){_.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",_.style.zIndex=""+w.props.zIndex}function A(t,e,i){var n;(void 0===i&&(i=!0),C.forEach((function(i){i[t]&&i[t].apply(void 0,e)})),i)&&(n=w.props)[t].apply(n,e)}function P(){var e=w.props.aria;if(e.content){var i="aria-"+e.content,n=_.id;gu(w.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(w.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var s=e&&e.replace(n,"").trim();s?t.setAttribute(i,s):t.removeAttribute(i)}}))}}function N(){!k&&w.props.aria.expanded&&gu(w.props.triggerTarget||t).forEach((function(t){w.props.interactive?t.setAttribute("aria-expanded",w.state.isVisible&&t===$()?"true":"false"):t.removeAttribute("aria-expanded")}))}function F(){O().removeEventListener("mousemove",v),Yu=Yu.filter((function(t){return t!==v}))}function z(t){if(!($u.isTouch&&(f||"mousedown"===t.type)||w.props.interactive&&_.contains(t.target))){if($().contains(t.target)){if($u.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else A("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),p=!0,setTimeout((function(){p=!1})),w.state.isMounted||j())}}function L(){f=!0}function R(){f=!1}function H(){var t=O();t.addEventListener("mousedown",z,!0),t.addEventListener("touchend",z,du),t.addEventListener("touchstart",R,du),t.addEventListener("touchmove",L,du)}function j(){var t=O();t.removeEventListener("mousedown",z,!0),t.removeEventListener("touchend",z,du),t.removeEventListener("touchstart",R,du),t.removeEventListener("touchmove",L,du)}function W(t,e){var i=M().box;function n(t){t.target===i&&(Iu(i,"remove",n),e())}if(0===t)return e();Iu(i,"remove",a),Iu(i,"add",n),a=n}function V(e,i,n){void 0===n&&(n=!1),gu(w.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function q(){var t;D()&&(V("touchstart",Y,{passive:!0}),V("touchend",G,{passive:!0})),(t=w.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(V(t,Y),t){case"mouseenter":V("mouseleave",G);break;case"focus":V(Pu?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function U(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,s=t.options;e.removeEventListener(i,n,s)})),g=[]}function Y(t){var e,i=!1;if(w.state.isEnabled&&!Z(t)&&!p){var n="focus"===(null==(e=r)?void 0:e.type);r=t,c=t.currentTarget,N(),!w.state.isVisible&&_u(t)&&Yu.forEach((function(e){return e(t)})),"click"===t.type&&(w.props.trigger.indexOf("mouseenter")<0||h)&&!1!==w.props.hideOnClick&&w.state.isVisible?i=!0:et(t),"click"===t.type&&(h=!i),i&&!n&&it(t)}}function K(t){var e=t.target,i=$().contains(e)||_.contains(e);"mousemove"===t.type&&i||function(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,s=t.popperState,o=t.props.interactiveBorder,r=yu(s.placement),a=s.modifiersData.offset;if(!a)return!0;var l="bottom"===r?a.top.y:0,c="top"===r?a.bottom.y:0,u="right"===r?a.left.x:0,d="left"===r?a.right.x:0,h=e.top-n+l>o,p=n-e.bottom-c>o,f=e.left-i+u>o,m=i-e.right-d>o;return h||p||f||m}))}(tt().concat(_).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:d}:null})).filter(Boolean),t)&&(F(),it(t))}function G(t){Z(t)||w.props.trigger.indexOf("click")>=0&&h||(w.props.interactive?w.hideWithInteractivity(t):it(t))}function X(t){w.props.trigger.indexOf("focusin")<0&&t.target!==$()||w.props.interactive&&t.relatedTarget&&_.contains(t.relatedTarget)||it(t)}function Z(t){return!!$u.isTouch&&D()!==t.type.indexOf("touch")>=0}function Q(){J();var e=w.props,i=e.popperOptions,n=e.placement,s=e.offset,o=e.getReferenceClientRect,r=e.moveTransition,a=I()?Vu(_).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||$()}:t,u=[{name:"offset",options:{offset:s}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(I()){var i=M().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];I()&&a&&u.push({name:"arrow",options:{element:a,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),w.popperInstance=ru(c,_,Object.assign({},i,{placement:n,onFirstUpdate:l,modifiers:u}))}function J(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function tt(){return bu(_.querySelectorAll("[data-tippy-root]"))}function et(t){w.clearDelayTimeouts(),t&&A("onTrigger",[w,t]),H();var e=E(!0),i=T(),s=i[0],o=i[1];$u.isTouch&&"hold"===s&&o&&(e=o),e?n=setTimeout((function(){w.show()}),e):w.show()}function it(t){if(w.clearDelayTimeouts(),A("onUntrigger",[w,t]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=E(!1);e?s=setTimeout((function(){w.state.isVisible&&w.hide()}),e):o=requestAnimationFrame((function(){w.hide()}))}}else j()}}function Xu(t,e){void 0===e&&(e={});var i=Fu.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Mu,du),window.addEventListener("blur",Bu);var n=Object.assign({},e,{plugins:i}),s=Cu(t).reduce((function(t,e){var i=e&&Gu(e,n);return i&&t.push(i),t}),[]);return xu(t)?s[0]:s}Xu.defaultProps=Fu,Xu.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Fu[e]=t[e]}))},Xu.currentInput=$u;Xu.setDefaultProps({render:qu});var Zu=Xu;i(248);function Qu(t,e,i,n){const s=i.data&&i.data.on||i.componentOptions&&i.componentOptions.listeners;let o=e.value||{};o=Object.assign({showOnCreate:o.show},o),s&&s.shown&&(o.onShown=function(){s.shown.fns(t,i)}),s&&s.show&&(o.onShow=function(){s.show.fns(t,i)}),s&&s.hidden&&(o.onHidden=function(){s.hidden.fns(t,i)}),s&&s.hide&&(o.onHide=function(){s.hide.fns(t,i)}),o.content||!t._tippy?(t._tippy?t._tippy.setProps(o):Zu(t,o),n.nextTick((()=>{s&&s.init&&s.init.fns(t._tippy,t)}))):t._tippy.hide()}const Ju=Li({components:[Ho]},(t=>{t.directive("popup",function(t){return{inserted(e,i,n){Qu(e,i,n,t)},unbind(t){t._tippy&&t._tippy.destroy()},componentUpdated(e,i,n){const s=i.value||{},o=i.oldValue||{};e._tippy&&JSON.stringify(s)!==JSON.stringify(o)&&t.nextTick((()=>{Qu(e,i,n,t)}))}}}(t))}));i(249);var td=R({name:"Notification",props:{activeDuration:{type:Number,default:5e3},title:{type:String,default:""},body:{type:String,default:""},onClose:{type:Function,default:void 0}},data:()=>({isShow:!1,isLeave:!1,visible:"visible"}),computed:{containerStyle(){return{visibility:this.visible}},panelCls(){return{show:this.isShow,leave:this.isLeave}}},beforeMount(){SYNO.SDS.StatusNotifier.on("taskBarPanelShow",this.close,this)},mounted(){this.$refs.panel.style.top="".concat(-1*this.getHeight()-6,"px")},beforeDestroy(){if(SYNO.SDS.StatusNotifier.un("taskBarPanelShow",this.close,this),this.$el){const t=this.$el.parentNode;t&&(t.removeChild(this.$el),this.$el=null)}},methods:{onClickMessage(t){SYNO.SDS.Utils.Notify.BindEvent(t)},onClickClose(){this.onClose&&this.onClose(),SYNO.SDS._SystemTrayMsgMgr.unregister(this)},getHeight(){if(this.$el){let t="none"===this.$el.style.display;return Math.max(this.$el.offsetHeight,t?0:this.$el.clientHeight)||0}},setTop(t){this.$el&&(this.$el.style.top="".concat(t,"px"))},show(){SYNO.SDS._SystemTrayMsgMgr.register(this)},close(){this.isLeave=!0,setTimeout((()=>{SYNO.SDS._SystemTrayMsgMgr.unregister(this)}),500)},_show(){this.isShow=!0,this.activeDuration>0&&setTimeout((()=>{this.close()}),this.activeDuration)},setVisible(t){this.visible=t?"visible":"hidden"}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-notification-container",style:t.containerStyle},[i("div",{ref:"panel",staticClass:"v-notification-panel",class:t.panelCls},[i("span",{staticClass:"close-btn",on:{click:t.onClickClose}}),t._v(" "),t._t("wrapper",(function(){return[t._t("icon"),t._v(" "),i("div",{staticClass:"v-notification-wrapper"},[i("div",{staticClass:"v-notification-title",domProps:{innerHTML:t._s(t.title)}}),t._v(" "),t._t("body",(function(){return[i("div",{staticClass:"v-notification-body",domProps:{innerHTML:t._s(t.body)},on:{click:t.onClickMessage}})]}))],2),t._v(" "),t._t("footer")]}))],2)])}),[],!1,null,null,null).exports;const ed={cht:{common:{reset:"重置",custom:"自訂",loading:"載入中...",clean:"清除",no_item:"沒有項目",create:"新增",items_perpage:"每頁顯示數",refresh:"重新整理",cancel:"取消",commit:"套用",setting_applied:"已套用變更。",error_system:"無法執行此操作。請重新登入 _OSNAME_ 並再試一次。",comma:"、",save:"儲存",close:"關閉",terms_of_service:"服務條款",privacy_statements:"隱私權聲明",password:"密碼",apply:"確定",confirm_lostchange_without_save:"變更尚未儲存,您要先儲存再離開嗎?",dont_save:"不要儲存",delete:"刪除",hide:"隱藏",enter_password_to_continue:"輸入密碼",enter_user_password:"請輸入您的 _OSNAME_ 帳戶密碼來繼續。",submit:"送出",skip:"略過",start:"開始",back:"上一步",next:"下一步"},personal_settings:{customize_color:"自訂顏色"},extlang:{todayText:"今天",jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月",fieldblank:"此欄位為必填。",invaliddate:"{0} 不是一個有效的日期。請使用此格式輸入日期:{1}",firstpage:"第一頁",lastpage:"最終頁"},uicommon:{add_time:"加入時間",schedule_abbre_sun:"日",schedule_abbre_mon:"一",schedule_abbre_tue:"二",schedule_abbre_wed:"三",schedule_abbre_thu:"四",schedule_abbre_fri:"五",schedule_abbre_sat:"六",browse:"瀏覽",goto_page:"前往第 {0} 頁",pre_x_pages:"前 {0} 頁",next_x_pages:"後 {0} 頁",items:"個項目",schedule_sun:"週日",schedule_mon:"週一",schedule_tue:"週二",schedule_wed:"週三",schedule_thu:"週四",schedule_fri:"週五",schedule_sat:"週六",schedule_daily:"每天",schedule_weekend:"假日",schedule_weekdays:"平日",searching:"搜尋中..."},search:{no_search_result:"找不到符合的項目。"},copyright:{copyright:"© {0} 群暉科技股份有限公司 所有權利均予保留。"}},enu:{common:{reset:"Reset",custom:"Custom",loading:"Loading...",clean:"Clear",no_item:"No items",create:"Create",items_perpage:"Items per page",refresh:"Refresh",cancel:"Cancel",commit:"Apply",setting_applied:"Changes applied.",error_system:"Unable to perform this operation. Please sign in to _OSNAME_ and try again.",comma:", ",save:"Save",close:"Close",terms_of_service:"Terms of Service",privacy_statements:"Privacy Statement",password:"Password",apply:"OK",confirm_lostchange_without_save:"Changes are not saved. Do you want to save and leave?",dont_save:"Don't Save",delete:"Delete",hide:"Hide",enter_password_to_continue:"Enter Password",enter_user_password:"Please enter the password of your _OSNAME_ account to continue.",submit:"Submit",skip:"Skip",start:"Start",back:"Back",next:"Next"},personal_settings:{customize_color:"Customize color"},extlang:{todayText:"Today",jan:"January",feb:"February",mar:"March",apr:"April",may:"May",jun:"June",jul:"July",aug:"August",sep:"September",oct:"October",nov:"November",dec:"December",fieldblank:"This field is required.",invaliddate:"{0} is not a valid date. Please enter a date using the format {1}",firstpage:"First Page",lastpage:"Last Page"},uicommon:{add_time:"Add time",schedule_abbre_sun:"Sun",schedule_abbre_mon:"Mon",schedule_abbre_tue:"Tue",schedule_abbre_wed:"Wed",schedule_abbre_thu:"Thu",schedule_abbre_fri:"Fri",schedule_abbre_sat:"Sat",browse:"Browse",goto_page:"Go to Page {0}",pre_x_pages:"Previous {0} pages",next_x_pages:"Next {0} pages",items:"items",schedule_sun:"Sunday",schedule_mon:"Monday",schedule_tue:"Tuesday",schedule_wed:"Wednesday",schedule_thu:"Thursday",schedule_fri:"Friday",schedule_sat:"Saturday",schedule_daily:"Daily",schedule_weekend:"Weekend",schedule_weekdays:"Weekdays",searching:"Searching..."},search:{no_search_result:"No match found."},copyright:{copyright:"Copyright © {0} Synology Inc. All rights reserved."}},csy:{common:{reset:"Obnovit",custom:"Vlastní",loading:"Načítání...",clean:"Vymazat",no_item:"Žádné položky",create:"Vytvořit",items_perpage:"Počet položek na stránku",refresh:"Aktualizovat",cancel:"Storno",commit:"Použít",setting_applied:"Změny se použily.",error_system:"Tuto operaci nelze provést. Přihlaste se do systému _OSNAME_ a zkuste to znovu.",comma:", ",save:"Uložit",close:"Zavřít",terms_of_service:"Podmínky služby",privacy_statements:"Prohlášení o zásadách ochrany osobních údajů",password:"Heslo",apply:"OK",confirm_lostchange_without_save:"Změny nejsou uloženy. Chcete změny uložit a aplikaci opustit?",dont_save:"Neukládat",delete:"Odstranit",hide:"Skrýt",enter_password_to_continue:"Zadejte heslo",enter_user_password:"Chcete-li pokračovat, zadejte heslo vašeho účtu _OSNAME_.",submit:"Odeslat",skip:"Přeskočit",start:"Spustit",back:"Zpět",next:"Další"},personal_settings:{customize_color:"Vlastní nastavení barev"},extlang:{todayText:"Dnes",jan:"Leden",feb:"Únor",mar:"Březen",apr:"Duben",may:"Květen",jun:"Červen",jul:"Červenec",aug:"Srpen",sep:"Září",oct:"Říjen",nov:"Listopad",dec:"Prosinec",fieldblank:"Toto pole je vyžadováno.",invaliddate:"{0} není platný datum. Zadejte datum pomocí formátu {1}",firstpage:"První stránka",lastpage:"Poslední stránka"},uicommon:{add_time:"Přidat čas",schedule_abbre_sun:"Ne",schedule_abbre_mon:"Po",schedule_abbre_tue:"Út",schedule_abbre_wed:"St",schedule_abbre_thu:"Čt",schedule_abbre_fri:"Pá",schedule_abbre_sat:"So",browse:"Procházet",goto_page:"Přejít na stránku {0}",pre_x_pages:"Předchozích {0} stran",next_x_pages:"Dalších {0} stran",items:"položek",schedule_sun:"Neděle",schedule_mon:"Pondělí",schedule_tue:"Úterý",schedule_wed:"Středa",schedule_thu:"Čtvrtek",schedule_fri:"Pátek",schedule_sat:"Sobota",schedule_daily:"Denně",schedule_weekend:"Víkend",schedule_weekdays:"Pracovní dny",searching:"Hledání..."},search:{no_search_result:"Nebyla nalezena žádná shoda."},copyright:{copyright:"Copyright © {0} Synology Inc. Všechna práva vyhrazena."}},jpn:{common:{reset:"リセット",custom:"カスタム",loading:"ロード中...",clean:"クリア",no_item:"アイテムなし",create:"作成",items_perpage:"項目/ページ",refresh:"最新の情報に更新",cancel:"キャンセル",commit:"適用",setting_applied:"変更を適用しました。",error_system:"この操作は実行できません。_OSNAME_ にサイン インし、再試行してください。",comma:"、",save:"保存",close:"閉じる",terms_of_service:"使用規約",privacy_statements:"プライバシーに関する声明",password:"パスワード",apply:"OK",confirm_lostchange_without_save:"変更が保存されていません。保存して終了しますか?",dont_save:"保存しない",delete:"削除",hide:"非表示",enter_password_to_continue:"パスワードの入力",enter_user_password:"続行するには、_OSNAME_ アカウントのパスワードを入力してください。",submit:"送信",skip:"スキップ",start:"起動",back:"戻る",next:"次へ"},personal_settings:{customize_color:"色をカスタマイズ"},extlang:{todayText:"本日",jan:"1月",feb:"2月",mar:"3月",apr:"4月",may:"5月",jun:"6月",jul:"7月",aug:"8月",sep:"9月",oct:"10月",nov:"11月",dec:"12月",fieldblank:"必須フィールド",invaliddate:"{0} は有効な日付ではありません。{1} のフォーマットで日付を入力してください。",firstpage:"最初のページ",lastpage:"最後のページ"},uicommon:{add_time:"時間を追加",schedule_abbre_sun:"日",schedule_abbre_mon:"月",schedule_abbre_tue:"火",schedule_abbre_wed:"水",schedule_abbre_thu:"木",schedule_abbre_fri:"金",schedule_abbre_sat:"土",browse:"参照",goto_page:" {0} ページに進んでください",pre_x_pages:"前の {0} ページ",next_x_pages:"次の {0} ページ",items:"アイテム",schedule_sun:"日曜日",schedule_mon:"月曜日",schedule_tue:"火曜日",schedule_wed:"水曜日",schedule_thu:"木曜日",schedule_fri:"金曜日",schedule_sat:"土曜日",schedule_daily:"毎日",schedule_weekend:"ウィークエンド",schedule_weekdays:"平日",searching:"検索中..."},search:{no_search_result:"一致する結果はありません。"},copyright:{copyright:"Copyright © {0} Synology Inc. 全著作権所有。"}},fre:{common:{reset:"Réinitialiser",custom:"Personnalisé",loading:"Chargement...",clean:"Effacer",no_item:"Aucun élément",create:"Créer",items_perpage:"Articles par page",refresh:"Actualiser",cancel:"Annuler",commit:"Appliquer",setting_applied:"Modifications appliquées.",error_system:"Impossible d'effectuer cette opération. Veuillez vous connecter à _OSNAME_, puis réessayez.",comma:", ",save:"Sauvegarder",close:"Fermer",terms_of_service:"Conditions d'utilisation",privacy_statements:"Politique de confidentialité",password:"Mot de passe",apply:"OK",confirm_lostchange_without_save:"Les modifications n'ont pas été enregistrées. Voulez-vous enregistrer et quitter ?",dont_save:"Ne pas enregistrer",delete:"Supprimer",hide:"Masquer",enter_password_to_continue:"Entrez le mot de passe",enter_user_password:"Veuillez saisir le mot de passe de votre compte _OSNAME_ pour continuer.",submit:"Soumettre",skip:"Ignorer",start:"Démarrer",back:"Retour",next:"Suivant"},personal_settings:{customize_color:"Couleur personnalisée"},extlang:{todayText:"De nos jours",jan:"Janvier",feb:"Février",mar:"Mars",apr:"Avril",may:"Mai",jun:"Juin",jul:"Juillet",aug:"Août",sep:"Septembre",oct:"Octobre",nov:"Novembre",dec:"Décembre",fieldblank:"Ce champ est requis.",invaliddate:"{0} n’est pas une date valide. Entrez une date utilisant le format {1}",firstpage:"Première page",lastpage:"Dernière page"},uicommon:{add_time:"Heure d'ajout",schedule_abbre_sun:"Dim",schedule_abbre_mon:"Lun",schedule_abbre_tue:"Mar",schedule_abbre_wed:"Mer",schedule_abbre_thu:"Jeu",schedule_abbre_fri:"Ven",schedule_abbre_sat:"Sam",browse:"Parcourir",goto_page:"Accéder à la page {0}",pre_x_pages:"{0} pages précédentes ",next_x_pages:"{0} prochaines pages",items:"éléments",schedule_sun:"Dimanche",schedule_mon:"Lundi",schedule_tue:"Mardi",schedule_wed:"Mercredi",schedule_thu:"Jeudi",schedule_fri:"Vendredi",schedule_sat:"Samedi",schedule_daily:"Quotidienne",schedule_weekend:"Week-end",schedule_weekdays:"Jours de la semaine",searching:"Recherche..."},search:{no_search_result:"Aucun résultat."},copyright:{copyright:"Copyright © {0} Synology Inc. Tous droits réservés."}},ger:{common:{reset:"Zurücksetzen",custom:"Benutzerdefiniert",loading:"Wird geladen...",clean:"Löschen",no_item:"Keine Elemente",create:"Erstellen",items_perpage:"Elemente pro Seite ",refresh:"Aktualisieren",cancel:"Abbrechen",commit:"Übernehmen",setting_applied:"Änderungen übernommen.",error_system:"Dieser Vorgang kann nicht ausgeführt werden. Melden Sie sich bei _OSNAME_ an und versuchen Sie es erneut.",comma:", ",save:"Speichern",close:"Schließen",terms_of_service:"Nutzungsbedingungen ",privacy_statements:"Datenschutzerklärung",password:"Kennwort",apply:"OK",confirm_lostchange_without_save:"Änderungen wurden nicht gespeichert. Möchten Sie speichern und beenden?",dont_save:"Nicht speichern",delete:"Löschen",hide:"Ausblenden",enter_password_to_continue:"Kennwort eingeben",enter_user_password:"Geben Sie das Kennwort Ihres _OSNAME_-Kontos ein, um fortzufahren.",submit:"Senden",skip:"Überspringen",start:"Start",back:"Zurück",next:"Weiter"},personal_settings:{customize_color:"Benutzerdefinierte Farbe"},extlang:{todayText:"Heute",jan:"Januar",feb:"Februar",mar:"März",apr:"April",may:"Mai",jun:"Juni",jul:"Juli",aug:"August",sep:"September",oct:"Oktober",nov:"November",dec:"Dezember",fieldblank:"Pflichtfeld",invaliddate:"{0} ist ein ungültiges Datum. Bitte geben Sie das Datum im Format {1} ein",firstpage:"Erste Seite",lastpage:"Letzte Seite"},uicommon:{add_time:"Zeit hinzufügen",schedule_abbre_sun:"So",schedule_abbre_mon:"Mo",schedule_abbre_tue:"Di",schedule_abbre_wed:"Mi",schedule_abbre_thu:"Do",schedule_abbre_fri:"Fr",schedule_abbre_sat:"Sa",browse:"Durchsuchen",goto_page:"Gehe zu Seite {0}",pre_x_pages:"Vorherige {0} Seiten",next_x_pages:"Nächste {0} Seiten",items:"Elemente",schedule_sun:"Sonntag",schedule_mon:"Montag",schedule_tue:"Dienstag",schedule_wed:"Mittwoch",schedule_thu:"Donnerstag",schedule_fri:"Freitag",schedule_sat:"Samstag",schedule_daily:"Täglich",schedule_weekend:"Wochenende",schedule_weekdays:"Wochentage",searching:"Wird gesucht..."},search:{no_search_result:"Keine Entsprechung gefunden."},copyright:{copyright:"Copyright © {0} Synology Inc. Alle Rechte vorbehalten."}},ita:{common:{reset:"Reimposta",custom:"Personalizzato",loading:"Caricamento...",clean:"Cancella",no_item:"Nessun elemento",create:"Crea",items_perpage:"Elementi per pagina",refresh:"Aggiorna",cancel:"Annulla",commit:"Applica",setting_applied:"Modifiche applicate.",error_system:"Impossibile eseguire questa operazione. Accedere a _OSNAME_ e riprovare.",comma:", ",save:"Salva",close:"Chiudi",terms_of_service:"Termini di servizio",privacy_statements:"Informativa sulla privacy",password:"Password",apply:"OK",confirm_lostchange_without_save:"Le modifiche non sono state salvate. Salvare e uscire?",dont_save:"Non salvare",delete:"Elimina",hide:"Nascondi",enter_password_to_continue:"Inserisci password",enter_user_password:"Inserire la password dell'account _OSNAME_ per continuare.",submit:"Inoltra",skip:"Ignora",start:"Avvio",back:"Indietro",next:"Avanti"},personal_settings:{customize_color:"Personalizza colori"},extlang:{todayText:"Oggi",jan:"Gennaio",feb:"Febbraio",mar:"Marzo",apr:"Aprile",may:"Maggio",jun:"Giugno",jul:"Luglio",aug:"Agosto",sep:"Settembre",oct:"Ottobre",nov:"Novembre",dec:"Dicembre",fieldblank:"Questo campo è necessario.",invaliddate:"{0} non è una data valida. Immettere una data usando il formato {1}",firstpage:"Prima Pagina ",lastpage:"Ultima Pagina "},uicommon:{add_time:"Aggiungi ora",schedule_abbre_sun:"Dom",schedule_abbre_mon:"Lun",schedule_abbre_tue:"Mar",schedule_abbre_wed:"Mer",schedule_abbre_thu:"Gio",schedule_abbre_fri:"Ven",schedule_abbre_sat:"Sab",browse:"Sfoglia",goto_page:"Andare a pagina {0}",pre_x_pages:"Pagine {0} precedenti",next_x_pages:"Pagine {0} successive",items:"elementi",schedule_sun:"Domenica",schedule_mon:"Lunedì",schedule_tue:"Martedì",schedule_wed:"Mercoledì",schedule_thu:"Giovedì",schedule_fri:"Venerdì",schedule_sat:"Sabato",schedule_daily:"Giornaliero",schedule_weekend:"Fine settimana",schedule_weekdays:"Giorni",searching:"Ricerca..."},search:{no_search_result:"Nessuna corrispondenza trovata."},copyright:{copyright:"Copyright © {0} Synology Inc. Tutti i diritti riservati."}},krn:{common:{reset:"재설정",custom:"사용자 지정",loading:"로드 중…",clean:"정리",no_item:"항목 없음",create:"생성",items_perpage:"페이지당 항목 수",refresh:"새로 고침",cancel:"취소",commit:"적용",setting_applied:"변경 사항이 적용되었습니다.",error_system:"이 작업을 수행할 수 없습니다. _OSNAME_에 로그인한 후 다시 시도하십시오.",comma:", ",save:"저장",close:"종료",terms_of_service:"이용 약관",privacy_statements:"개인 정보 보호 방침",password:"패스워드",apply:"확인",confirm_lostchange_without_save:"변경 사항이 저장되지 않았습니다. 저장하고 나가시겠습니까?",dont_save:"저장하지 않음",delete:"삭제",hide:"숨기기",enter_password_to_continue:"패스워드 입력",enter_user_password:"계속하려면 _OSNAME_ 계정의 패스워드를 입력하십시오.",submit:"제출",skip:"건너뛰기",start:"시작",back:"뒤로",next:"다음"},personal_settings:{customize_color:"색상 사용자 지정"},extlang:{todayText:"오늘",jan:"1월",feb:"2월",mar:"3월",apr:"4월",may:"5월",jun:"6월",jul:"7월",aug:"8월",sep:"9월",oct:"10월",nov:"11월",dec:"12월",fieldblank:"이 필드는 필수 필드입니다.",invaliddate:"{0}은(는) 유효한 날짜가 아닙니다. {1} 형식을 사용하여 날짜를 입력하십시오.",firstpage:"첫번째 페이지",lastpage:"마지막 페이지"},uicommon:{add_time:"시간 추가",schedule_abbre_sun:"일",schedule_abbre_mon:"월",schedule_abbre_tue:"화",schedule_abbre_wed:"수",schedule_abbre_thu:"목",schedule_abbre_fri:"금",schedule_abbre_sat:"토",browse:"찾아보기",goto_page:"{0}페이지로 이동",pre_x_pages:"이전 {0} 페이지",next_x_pages:"다음 {0} 페이지",items:"개 항목",schedule_sun:"일요일",schedule_mon:"월요일",schedule_tue:"화요일",schedule_wed:"수요일",schedule_thu:"목요일",schedule_fri:"금요일",schedule_sat:"토요일",schedule_daily:"매일",schedule_weekend:"주말",schedule_weekdays:"요일",searching:"검색 중..."},search:{no_search_result:"일치하는 항목이 없습니다."},copyright:{copyright:"저작권 © {0} Synology Inc. 모든 권리 보유."}},spn:{common:{reset:"Restablecer",custom:"Personalizado",loading:"Cargando...",clean:"Borrar",no_item:"No hay elementos",create:"Crear",items_perpage:"Elementos por página",refresh:"Actualizar",cancel:"Cancelar",commit:"Aplicar",setting_applied:"Cambios aplicados.",error_system:"No se puede realizar esta operación. Inicie sesión en _OSNAME_ y vuelva a intentarlo.",comma:", ",save:"Guardar",close:"Cerrar",terms_of_service:"Condiciones de servicio",privacy_statements:"Declaración de privacidad",password:"Contraseña",apply:"OK",confirm_lostchange_without_save:"No se han guardado los cambios. ¿Desea guardar y salir?",dont_save:"No guardar",delete:"Eliminar",hide:"Ocultar",enter_password_to_continue:"Introducir contraseña",enter_user_password:"Introduzca la contraseña de su cuenta _OSNAME_ para continuar.",submit:"Enviar",skip:"Omitir",start:"Iniciar",back:"Anterior",next:"Siguiente"},personal_settings:{customize_color:"Personalizar color"},extlang:{todayText:"Hoy",jan:"Enero",feb:"Febrero",mar:"Marzo",apr:"Abril",may:"Mayo",jun:"Junio",jul:"Julio",aug:"Agosto",sep:"Septiembre",oct:"Octubre",nov:"Noviembre",dec:"Diciembre",fieldblank:"Este campo es obligatorio.",invaliddate:"{0} no es una fecha válida. Introduzca una fecha utilizando el formato {1}",firstpage:"Primera página",lastpage:"Última página"},uicommon:{add_time:"Agregar hora",schedule_abbre_sun:"Dom",schedule_abbre_mon:"Lun",schedule_abbre_tue:"Mar",schedule_abbre_wed:"Mié",schedule_abbre_thu:"Jue",schedule_abbre_fri:"Vie",schedule_abbre_sat:"Sáb",browse:"Examinar",goto_page:"Ir a la página {0}",pre_x_pages:"{0} páginas anteriores",next_x_pages:"Siguientes {0} páginas",items:"elementos",schedule_sun:"Domingo",schedule_mon:"Lunes",schedule_tue:"Martes",schedule_wed:"Miércoles",schedule_thu:"Jueves",schedule_fri:"Viernes",schedule_sat:"Sábado",schedule_daily:"Cada día",schedule_weekend:"Fin de semana",schedule_weekdays:"Días laborables",searching:"Buscando..."},search:{no_search_result:"No se encuentra ninguna coincidencia."},copyright:{copyright:"Copyright © {0}, Synology Inc. Todos los derechos reservados."}},rus:{common:{reset:"Сброс",custom:"Настройка",loading:"Загрузка...",clean:"Очистить",no_item:"Нет элементов",create:"Создать",items_perpage:"Кол-во элементов на стр.",refresh:"Обновить",cancel:"Отмена",commit:"Применить",setting_applied:"Изменения применены.",error_system:"Не удается выполнить эту операцию. Выполните вход в _OSNAME_ и повторите попытку.",comma:", ",save:"Сохранить",close:"Закрыть",terms_of_service:"Условия использования",privacy_statements:"Положение о конфиденциальности",password:"Пароль",apply:"OK",confirm_lostchange_without_save:"Изменения не сохранены. Сохранить изменения и выйти?",dont_save:"Не сохранять",delete:"Удалить",hide:"Скрыть",enter_password_to_continue:"Введите пароль",enter_user_password:"Введите пароль учетной записи _OSNAME_, чтобы продолжить.",submit:"Отправить",skip:"Пропустить",start:"Пуск",back:"Назад",next:"Далее"},personal_settings:{customize_color:"Настроить цвет"},extlang:{todayText:"Сегодня",jan:"Январь",feb:"Февраль",mar:"Март",apr:"Апрель",may:"Май",jun:"Июнь",jul:"Июль",aug:"Август",sep:"Сентябрь",oct:"Октябрь",nov:"Ноябрь",dec:"Декабрь",fieldblank:"Данное поле должно быть заполнено.",invaliddate:"{0} является недопустимой датой. Введите дату в формате {1}",firstpage:"Первая страница",lastpage:"Последняя страница"},uicommon:{add_time:"Добавить время",schedule_abbre_sun:"Вс",schedule_abbre_mon:"Пн",schedule_abbre_tue:"Вт",schedule_abbre_wed:"Ср",schedule_abbre_thu:"Чт",schedule_abbre_fri:"Пт",schedule_abbre_sat:"Сб",browse:"Обзор",goto_page:"Перейти на страницу {0}",pre_x_pages:"Предыдущие {0} страниц",next_x_pages:"Следующие {0} страниц",items:"элем.",schedule_sun:"Воскресенье",schedule_mon:"Понедельник",schedule_tue:"Вторник",schedule_wed:"Среда",schedule_thu:"Четверг",schedule_fri:"Пятница",schedule_sat:"Суббота",schedule_daily:"Ежедневно",schedule_weekend:"Выходной",schedule_weekdays:"Дни недели",searching:"Поиск..."},search:{no_search_result:"Совпадений не найдено."},copyright:{copyright:"© Synology Inc., {0}. Все права защищены."}},dan:{common:{reset:"Nulstil",custom:"Tilpasset",loading:"Indlæser...",clean:"Ryd",no_item:"Ingen elementer",create:"Opret",items_perpage:"Emner pr. side",refresh:"Opdater",cancel:"Annuller",commit:"Anvend",setting_applied:"Ændringer anvendt.",error_system:"Kan ikke gennemføre denne handling. Log på _OSNAME_, og prøv igen.",comma:", ",save:"Gem",close:"Luk",terms_of_service:"Tjenestevilkår",privacy_statements:"Erklæring om beskyttelse af personlige oplysninger",password:"Adgangskode",apply:"OK",confirm_lostchange_without_save:"Ændringer er ikke gemt. Vil du gemme og forlade?",dont_save:"Gem ikke",delete:"Slet",hide:"Skjul",enter_password_to_continue:"Indtast adgangskode",enter_user_password:"Indtast adgangskoden til din _OSNAME_-konto for at fortsætte.",submit:"Afsend",skip:"Spring over",start:"Start",back:"Tilbage",next:"Næste"},personal_settings:{customize_color:"Tilpas farve"},extlang:{todayText:"I dag",jan:"Januar",feb:"Februar",mar:"Marts",apr:"April",may:"Maj",jun:"Juni",jul:"Juli",aug:"August",sep:"September",oct:"Oktober",nov:"November",dec:"December",fieldblank:"Dette felt er påkrævet.",invaliddate:"{0} er ikke en gyldig dato. Indtast en dato ved hjælp af formatet {1}",firstpage:"Første side",lastpage:"Sidste side"},uicommon:{add_time:"Tilføje tid",schedule_abbre_sun:"Søn",schedule_abbre_mon:"Man",schedule_abbre_tue:"Tir",schedule_abbre_wed:"Ons",schedule_abbre_thu:"Tor",schedule_abbre_fri:"Fre",schedule_abbre_sat:"Lør",browse:"Gennemse",goto_page:"Gå til side {0}",pre_x_pages:"Forrige {0} sider",next_x_pages:"Næste {0} sider",items:"elementer",schedule_sun:"Søndag",schedule_mon:"Mandag",schedule_tue:"Tirsdag",schedule_wed:"Onsdag",schedule_thu:"Torsdag",schedule_fri:"Fredag",schedule_sat:"Lørdag",schedule_daily:"Daglig",schedule_weekend:"Weekend",schedule_weekdays:"Ugedage",searching:"Søger efter..."},search:{no_search_result:"Ingen match fundet."},copyright:{copyright:"Copyright © {0} Synology Inc. Alle rettigheder forbeholdes."}},nor:{common:{reset:"Tilbakestill",custom:"Egendefinert",loading:"Laster...",clean:"Fjern",no_item:"Ingen elementer",create:"Opprett",items_perpage:"Elementer per side",refresh:"Oppdater",cancel:"Avbryt",commit:"Bruk",setting_applied:"Endringer er tatt i bruk.",error_system:"Kan ikke utføre denne handlingen. Logg på _OSNAME_ og prøv igjen.",comma:", ",save:"Lagre",close:"Lukk",terms_of_service:"Vilkår for tjenesten",privacy_statements:"Personvernsmelding",password:"Passord",apply:"OK",confirm_lostchange_without_save:"Endringene er ikke lagret. Vil du lagre og avslutte?",dont_save:"Ikke lagre",delete:"Slett",hide:"Skjul",enter_password_to_continue:"Angi passord",enter_user_password:"Angi passordet for din _OSNAME_-konto for å fortsette.",submit:"Send inn",skip:"Hopp over",start:"Start",back:"Tilbake",next:"Neste"},personal_settings:{customize_color:"Tilpass farge"},extlang:{todayText:"I dag",jan:"Januar",feb:"Februar",mar:"Mars",apr:"April",may:"Mai",jun:"Juni",jul:"Juli",aug:"August",sep:"September",oct:"Oktober",nov:"November",dec:"Desember",fieldblank:"Denne filen er nødvendig.",invaliddate:"{0} er ikke en gyldig dato. Angi en dato med formatet {1}",firstpage:"Første side",lastpage:"Siste side"},uicommon:{add_time:"Legg til tidspunkt",schedule_abbre_sun:"Søn",schedule_abbre_mon:"Man",schedule_abbre_tue:"Tir",schedule_abbre_wed:"Ons",schedule_abbre_thu:"Tor",schedule_abbre_fri:"Fre",schedule_abbre_sat:"Lør",browse:"Bla gjennom",goto_page:"Gå til side {0}",pre_x_pages:"Forrige {0} sider",next_x_pages:"Neste {0} sider",items:"elementer",schedule_sun:"Søndag",schedule_mon:"Mandag",schedule_tue:"Tirsdag",schedule_wed:"Onsdag",schedule_thu:"Torsdag",schedule_fri:"Fredag",schedule_sat:"Lørdag",schedule_daily:"Daglig",schedule_weekend:"Helg",schedule_weekdays:"Ukedager",searching:"Søker..."},search:{no_search_result:"Ingen match ble funnet."},copyright:{copyright:"Copyright © {0} Synology Inc. Med enerett."}},nld:{common:{reset:"Herstellen",custom:"Aangepast",loading:"Bezig met laden…",clean:"Wissen",no_item:"Geen items",create:"Maken",items_perpage:"Onderwerpen per pagina",refresh:"Vernieuwen",cancel:"Annuleren",commit:"Toepassen",setting_applied:"Wijzigingen toegepast.",error_system:"Kan deze bewerking niet uitvoeren. Meld u aan bij _OSNAME_ en probeer het opnieuw.",comma:", ",save:"Opslaan",close:"Sluiten",terms_of_service:"Servicevoorwaarden",privacy_statements:"Privacyverklaring",password:"Wachtwoord",apply:"OK",confirm_lostchange_without_save:"De wijzigingen zijn niet opgeslagen. Opslaan en afsluiten?",dont_save:"Niet opslaan",delete:"Verwijderen",hide:"Verbergen",enter_password_to_continue:"Voer wachtwoord in",enter_user_password:"Voer het wachtwoord in van uw _OSNAME_-account om door te gaan.",submit:"Verzenden",skip:"Overslaan",start:"Starten",back:"Terug",next:"Volgende"},personal_settings:{customize_color:"Kleur aanpassen"},extlang:{todayText:"Vandaag",jan:"Januari",feb:"Februari",mar:"Maart",apr:"April",may:"Mei",jun:"Juni",jul:"Juli",aug:"Augustus",sep:"September",oct:"Oktober",nov:"November",dec:"December",fieldblank:"Dit veld is vereist",invaliddate:"{0} is geen geldige datum. Voer een datum in met de indeling {1}",firstpage:"Eerste pagina",lastpage:"Laatste pagina"},uicommon:{add_time:"Tijd toevoegen",schedule_abbre_sun:"Zon",schedule_abbre_mon:"Ma",schedule_abbre_tue:"Di",schedule_abbre_wed:"Woe",schedule_abbre_thu:"Do",schedule_abbre_fri:"Vrij",schedule_abbre_sat:"Zat",browse:"Bladeren",goto_page:"Ga naar pagina {0}",pre_x_pages:"Vorige {0} pagina's",next_x_pages:"Volgende {0} pagina's",items:"items",schedule_sun:"Zondag",schedule_mon:"Maandag",schedule_tue:"Dinsdag",schedule_wed:"Woensdag",schedule_thu:"Donderdag",schedule_fri:"Vrijdag",schedule_sat:"Zaterdag",schedule_daily:"Dagelijks",schedule_weekend:"Weekend",schedule_weekdays:"Weekdagen",searching:"Bezig met zoeken…"},search:{no_search_result:"Geen overeenkomst gevonden."},copyright:{copyright:"Auteursrechten © {0} Synology Inc. Alle rechten voorbehouden."}},sve:{common:{reset:"Återställ",custom:"Anpassad",loading:"Laddar...",clean:"Rensa",no_item:"Inga objekt",create:"Skapa",items_perpage:"Poster per sida",refresh:"Uppdatera",cancel:"Avbryt",commit:"Tillämpa",setting_applied:"Ändringarna har tillämpats.",error_system:"Det går inte att utföra den här åtgärden. Logga in på _OSNAME_ och försök igen.",comma:", ",save:"Spara",close:"Stäng",terms_of_service:"Användarvillkor",privacy_statements:"Integritetspolicy",password:"Lösenord",apply:"OK",confirm_lostchange_without_save:"Ändringarna sparas inte. Vill du spara och lämna?",dont_save:"Spara inte",delete:"Radera",hide:"Dölj",enter_password_to_continue:"Ange lösenord",enter_user_password:"Vänligen ange lösenordet för ditt _OSNAME_-konto för att fortsätta.",submit:"Skicka",skip:"Hoppa",start:"Starta",back:"Bakåt",next:"Nästa"},personal_settings:{customize_color:"Anpassa färg"},extlang:{todayText:"Idag",jan:"januari",feb:"februari",mar:"mars",apr:"april",may:"maj",jun:"juni",jul:"juli",aug:"augusti",sep:"september",oct:"oktober",nov:"november",dec:"december",fieldblank:"Det här fältet krävs.",invaliddate:"{0} är inte ett giltigt datum. Vänligen ange ett datum med formatet {1}",firstpage:"Första sidan",lastpage:"Sista sidan"},uicommon:{add_time:"Lägg till tid",schedule_abbre_sun:"Sön",schedule_abbre_mon:"Mån ",schedule_abbre_tue:"Tis ",schedule_abbre_wed:"Ons ",schedule_abbre_thu:"Tor",schedule_abbre_fri:"Fre",schedule_abbre_sat:"Lör",browse:"Bläddra",goto_page:"Gå till sidan {0}",pre_x_pages:"Föregående {0} sidor",next_x_pages:"Nästa {0} sidor",items:"objekt",schedule_sun:"Söndag",schedule_mon:"Måndag",schedule_tue:"Tisdag",schedule_wed:"Onsdag",schedule_thu:"Torsdag",schedule_fri:"Fredag",schedule_sat:"Lördag",schedule_daily:"Varje dag",schedule_weekend:"Helg ",schedule_weekdays:"veckodagar",searching:"Söker..."},search:{no_search_result:"Inga träffar."},copyright:{copyright:"Upphovsrätt © {0} Synology Inc. Med ensamrätt."}},plk:{common:{reset:"Resetuj",custom:"Niestandardowy",loading:"Ładowanie…",clean:"Wyczyść",no_item:"Brak elementów",create:"Utwórz",items_perpage:"Pozycji na stronę",refresh:"Odśwież",cancel:"Anuluj",commit:"Zastosuj",setting_applied:"Zastosowano zmiany.",error_system:"Nie można wykonać tej operacji. Zaloguj się do _OSNAME_ i ponów próbę.",comma:", ",save:"Zapisz",close:"Zamknij",terms_of_service:"Warunki świadczenia usługi",privacy_statements:"Oświadczenie o prywatności",password:"Hasło",apply:"OK",confirm_lostchange_without_save:"Zmiany nie zostały zapisane. Czy chcesz zapisać i wyjść?",dont_save:"Nie zapisuj",delete:"Usuń",hide:"Ukryj",enter_password_to_continue:"Wprowadź hasło",enter_user_password:"Wprowadź hasło konta _OSNAME_, aby kontynuować.",submit:"Wyślij",skip:"Pomiń",start:"Uruchom",back:"Wstecz",next:"Następne"},personal_settings:{customize_color:"Dostosuj kolor"},extlang:{todayText:"Dzisiaj",jan:"Styczeń",feb:"Luty",mar:"Marzec",apr:"Kwiecień",may:"Maj",jun:"Czerwiec",jul:"Lipiec",aug:"Sierpień",sep:"Wrzesień",oct:"Październik",nov:"Listopad",dec:"Grudzień",fieldblank:"To pole jest wymagane.",invaliddate:"{0} to nieprawidłowa data. Wprowadź datę w formacie {1}",firstpage:"Pierwsza strona",lastpage:"Ostatnia strona"},uicommon:{add_time:"Dodaj godzinę",schedule_abbre_sun:"Niedz.",schedule_abbre_mon:"Pon",schedule_abbre_tue:"Wt",schedule_abbre_wed:"Śr",schedule_abbre_thu:"Czw.",schedule_abbre_fri:"Pt",schedule_abbre_sat:"Sob.",browse:"Przeglądaj",goto_page:"Przejdź do strony {0}",pre_x_pages:"Poprzednie {0} stron",next_x_pages:"Następne {0} stron",items:"elementy/-ów",schedule_sun:"Niedziela",schedule_mon:"Poniedziałek",schedule_tue:"Wtorek",schedule_wed:"Środa",schedule_thu:"Czwartek",schedule_fri:"Piątek",schedule_sat:"Sobota",schedule_daily:"Codziennie",schedule_weekend:"Weekend",schedule_weekdays:"Dni tygodnia",searching:"Szukanie…"},search:{no_search_result:"Nie znaleziono dopasowania."},copyright:{copyright:"Copyright © {0} Synology Inc. Wszelkie prawa zastrzeżone."}},ptb:{common:{reset:"Redefinir",custom:"Personalização ",loading:"Carregando...",clean:"Limpar",no_item:"Não há itens",create:"Criar",items_perpage:"Itens por página",refresh:"Atualizar",cancel:"Cancelar",commit:"Aplicar",setting_applied:"Alterações aplicadas.",error_system:"Não é possível executar esta operação. Faça login em _OSNAME_ e tente novamente.",comma:", ",save:"Salvar",close:"Fechar",terms_of_service:"Termos de serviço",privacy_statements:"Declaração de privacidade",password:"Senha",apply:"OK",confirm_lostchange_without_save:"As alterações não foram salvas. Deseja salvar e sair?",dont_save:"Não Salvar",delete:"Excluir",hide:"Ocultar",enter_password_to_continue:"Digitar senha",enter_user_password:"Digite a senha da sua conta do _OSNAME_ para continuar.",submit:"Enviar",skip:"Ignorar",start:"Iniciar",back:"Voltar",next:"Avançar"},personal_settings:{customize_color:"Personalizar cor"},extlang:{todayText:"Hoje",jan:"Janeiro",feb:"Fevereiro",mar:"Março",apr:"Abril",may:"Maio",jun:"Junho",jul:"Julho",aug:"Agosto",sep:"Setembro",oct:"Outubro",nov:"Novembro",dec:"Dezembro",fieldblank:"Este campo é obrigatório.",invaliddate:"{0} não é uma data válida. Insira uma data usando o formato {1}",firstpage:"Primeira página",lastpage:"Última página"},uicommon:{add_time:"Adicionar hora",schedule_abbre_sun:"Dom",schedule_abbre_mon:"Seg",schedule_abbre_tue:"Ter",schedule_abbre_wed:"Qua",schedule_abbre_thu:"Qui",schedule_abbre_fri:"Sex",schedule_abbre_sat:"Sáb",browse:"Procurar",goto_page:"Vá para a Página {0}",pre_x_pages:"{0} páginas anteriores",next_x_pages:"{0} páginas seguintes",items:"itens",schedule_sun:"Domingo",schedule_mon:"Segunda-feira",schedule_tue:"Terça-feira",schedule_wed:"Quarta-feira",schedule_thu:"Quinta-feira",schedule_fri:"Sexta-feira",schedule_sat:"Sábado",schedule_daily:"Diariamente",schedule_weekend:"Fim de semana",schedule_weekdays:"Dias da semana",searching:"Pesquisando..."},search:{no_search_result:"Nenhuma combinação encontrada."},copyright:{copyright:"Copyright © {0} Synology Inc. Todos os direitos reservados."}},ptg:{common:{reset:"Repor",custom:"Personalização",loading:"A carregar...",clean:"Limpar",no_item:"Sem itens",create:"Criar",items_perpage:"Itens por página",refresh:"Actualizar",cancel:"Cancelar",commit:"Aplicar",setting_applied:"Alterações aplicadas.",error_system:"Não é possível executar esta operação. Inicie sessão no _OSNAME_ e tente novamente.",comma:", ",save:"Guardar ",close:"Fechar",terms_of_service:"Termos do Serviço",privacy_statements:"Declaração de Privacidade",password:"Palavra-passe",apply:"OK",confirm_lostchange_without_save:"As alterações não foram guardadas. Pretende guardar e sair?",dont_save:"Não Guardar",delete:"Eliminar",hide:"Ocultar",enter_password_to_continue:"Introduza palavra-passe",enter_user_password:"Introduza a palavra-passe da sua conta _OSNAME_ para continuar.",submit:"Submeter",skip:"Avançar",start:"Iniciar",back:"Voltar",next:"Seguinte"},personal_settings:{customize_color:"Personalizar cor"},extlang:{todayText:"Hoje",jan:"Janeiro",feb:"Fevereiro",mar:"Março ",apr:"Abril",may:"Maio",jun:"Junho",jul:"Julho",aug:"Agosto",sep:"Setembro",oct:"Outubro",nov:"Novembro",dec:"Dezembro",fieldblank:"Este campo é necessário.",invaliddate:"{0} não é uma data válida. Introduza uma data utilizando o formato {1}",firstpage:"Primeira página",lastpage:"Última página"},uicommon:{add_time:"Adicionar hora",schedule_abbre_sun:"Dom",schedule_abbre_mon:"Seg",schedule_abbre_tue:"Ter",schedule_abbre_wed:"Qua",schedule_abbre_thu:"Qui",schedule_abbre_fri:"Sex",schedule_abbre_sat:"Sáb",browse:"Pesquisar",goto_page:"Ir para página {0}",pre_x_pages:"{0} páginas anteriores",next_x_pages:"{0} páginas seguintes",items:"itens",schedule_sun:"Domingo",schedule_mon:"Segunda-feira",schedule_tue:"Terça-feira",schedule_wed:"Quarta-feira",schedule_thu:"Quinta-feira",schedule_fri:"Sexta-feira",schedule_sat:"Sábado",schedule_daily:"Diariamente",schedule_weekend:"Fim-de-semana",schedule_weekdays:"Dias da semana",searching:"A procurar…"},search:{no_search_result:"Não foi encontrada nenhuma correspondência."},copyright:{copyright:"Copyright © {0} Synology Inc. Todos os direitos reservados."}},trk:{common:{reset:"Sıfırla",custom:"Özel",loading:"Yükleniyor...",clean:"Temizle",no_item:"Hiçbir öğe yok",create:"Oluştur",items_perpage:"Sayfadaki öğeler",refresh:"Yenile",cancel:"İptal",commit:"Uygula",setting_applied:"Değişiklikler uygulandı.",error_system:"Bu işlem gerçekleştirilemiyor. Lütfen _OSNAME_ üzerinde oturum açın ve tekrar deneyin.",comma:", ",save:"Kaydet",close:"Kapat",terms_of_service:"Hizmet Koşulları",privacy_statements:"Gizlilik Bildirimi",password:"Parola",apply:"Tamam",confirm_lostchange_without_save:"Değişiklikler kaydedilmedi. Kaydetmek ve çıkmak istiyor musunuz?",dont_save:"Kaydetme",delete:"Sil",hide:"Gizle",enter_password_to_continue:"Parolayı Girin",enter_user_password:"Lütfen devam etmek için _OSNAME_ hesabınızın parolasını girin.",submit:"Gönder",skip:"Atla",start:"Başlat",back:"Geri",next:"İleri"},personal_settings:{customize_color:"Rengi özelleştir"},extlang:{todayText:"Bugün",jan:"Ocak",feb:"Şubat",mar:"Mart",apr:"Nisan",may:"Mayıs",jun:"Haziran",jul:"Temmuz",aug:"Ağustos",sep:"Eylül",oct:"Ekim",nov:"Kasım",dec:"Aralık",fieldblank:"Bu alan gereklidir.",invaliddate:"{0} geçerli bir tarih değildir. Lütfen {1} biçimini kullanarak bir tarih girin",firstpage:"İlk Sayfa",lastpage:"Son Sayfa"},uicommon:{add_time:"Zaman ekle",schedule_abbre_sun:"Paz",schedule_abbre_mon:"Pzt",schedule_abbre_tue:"Sal",schedule_abbre_wed:"Çar",schedule_abbre_thu:"Per",schedule_abbre_fri:"Cum",schedule_abbre_sat:"Cts",browse:"Gözat",goto_page:"Sayfa {0}'e git",pre_x_pages:"Önceki {0} sayfa",next_x_pages:"Sonraki {0} sayfa",items:"öğe",schedule_sun:"Pazar",schedule_mon:"Pazartesi",schedule_tue:"Salı",schedule_wed:"Çarşamba",schedule_thu:"Perşembe",schedule_fri:"Cuma",schedule_sat:"Cumartesi",schedule_daily:"Günlük",schedule_weekend:"Hafta sonu",schedule_weekdays:"İş günleri",searching:"Aranıyor..."},search:{no_search_result:"Eşleşme bulunamadı."},copyright:{copyright:"Telif Hakkı © {0} Synology Inc. Tüm hakları saklıdır."}},hun:{common:{reset:"Visszaállít",custom:"Egyedi",loading:"Betöltés...",clean:"Törlés",no_item:"Nincs elem",create:"Létrehozás",items_perpage:"Elem oldalanként",refresh:"Frissítés",cancel:"Mégse",commit:"Alkalmaz",setting_applied:"Módosítások alkalmazva.",error_system:"Nem sikerült végrehajtani ezt a műveletet. Jelentkezzen be a(z) _OSNAME_ rendszerbe, majd próbálja meg újra.",comma:", ",save:"Mentés",close:"Bezárás",terms_of_service:"Szolgáltatási feltételek",privacy_statements:"Adatvédelmi nyilatkozat",password:"Jelszó",apply:"OK",confirm_lostchange_without_save:"A változtatások nincsenek mentve. Mentés és kilépés?",dont_save:"Nincs mentés",delete:"Törlés",hide:"Elrejt",enter_password_to_continue:"Jelszó megadása",enter_user_password:"A folytatáshoz adja meg _OSNAME_-jelszavát.",submit:"Elküld",skip:"Ugrás",start:"Indítás",back:"Vissza",next:"Tovább"},personal_settings:{customize_color:"Szín testreszabása"},extlang:{todayText:"Ma",jan:"Január",feb:"Február",mar:"Március",apr:"Április",may:"Május",jun:"Június",jul:"Július",aug:"Augusztus",sep:"Szeptember",oct:"Október",nov:"November",dec:"December",fieldblank:"A mező kitöltése kötelező.",invaliddate:"{0} nem érvényes dátum. Kérjük, hogy a(z) {1} formátum használatával adjon meg egy dátumot",firstpage:"Első oldal",lastpage:"Utolsó oldal"},uicommon:{add_time:"Időpont hozzáadása",schedule_abbre_sun:"Vas",schedule_abbre_mon:"Hét",schedule_abbre_tue:"Ked",schedule_abbre_wed:"Sze",schedule_abbre_thu:"Csü",schedule_abbre_fri:"Pén",schedule_abbre_sat:"Szo",browse:"Böngészés",goto_page:"Ugrás a következő oldalra: {0}",pre_x_pages:"Előző {0} oldal",next_x_pages:"Következő {0} oldal",items:"elem",schedule_sun:"Vasárnap",schedule_mon:"Hétfő",schedule_tue:"Kedd",schedule_wed:"Szerda",schedule_thu:"Csütörtök",schedule_fri:"Péntek",schedule_sat:"Szombat",schedule_daily:"Napi",schedule_weekend:"Hétvége",schedule_weekdays:"Hétköznap",searching:"Keresés..."},search:{no_search_result:"Nincs találat."},copyright:{copyright:"Copyright © {0} Synology Inc. Minden jog fenntartva."}},chs:{common:{reset:"重置",custom:"自定义",loading:"加载中...",clean:"清除",no_item:"无项目",create:"新增",items_perpage:"每页显示数",refresh:"刷新",cancel:"取消",commit:"应用",setting_applied:"已应用更改。",error_system:"无法执行此操作。请登录 _OSNAME_并再试一次。",comma:"、",save:"保存",close:"关闭",terms_of_service:"服务条款",privacy_statements:"隐私声明",password:"密码",apply:"确定",confirm_lostchange_without_save:"更改未保存。是否要保存并离开?",dont_save:"不要保存",delete:"删除",hide:"隐藏",enter_password_to_continue:"输入密码",enter_user_password:"请输入 _OSNAME_ 帐户密码以继续。",submit:"提交",skip:"跳过",start:"开始",back:"上一步",next:"下一步"},personal_settings:{customize_color:"自定义颜色"},extlang:{todayText:"今天",jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月",fieldblank:"此字段为必填。",invaliddate:"{0} 并非有效日期。请使用格式 {1} 输入日期。",firstpage:"第一页",lastpage:"最终页"},uicommon:{add_time:"添加时间",schedule_abbre_sun:"日",schedule_abbre_mon:"一",schedule_abbre_tue:"二",schedule_abbre_wed:"三",schedule_abbre_thu:"四",schedule_abbre_fri:"五",schedule_abbre_sat:"六",browse:"浏览",goto_page:"前往第 {0} 页",pre_x_pages:"上 {0} 页",next_x_pages:"下 {0} 页",items:"个项目",schedule_sun:"周日",schedule_mon:"周一",schedule_tue:"周二",schedule_wed:"周三",schedule_thu:"周四",schedule_fri:"周五",schedule_sat:"周六",schedule_daily:"每天",schedule_weekend:"假日",schedule_weekdays:"平日",searching:"搜索中..."},search:{no_search_result:"找不到符合的项目。"},copyright:{copyright:"版权所有 © {0} Synology Inc. 保留一切权利。"}},tha:{common:{reset:"รีเซ็ต",custom:"กำหนดเอง",loading:"กำลังโหลด...",clean:"ล้าง",no_item:"ไม่มีรายการ",create:"สร้าง",items_perpage:"รายการต่อหน้า",refresh:"รีเฟรช",cancel:"ยกเลิก",commit:"ปรับใช้",setting_applied:"ใช้การเปลี่ยนแปลงแล้ว",error_system:"ไม่สามารถดำเนินการนี้ได้ โปรดลงชื่อเข้าใช้ _OSNAME_ และลองอีกครั้ง",comma:", ",save:"บันทึก",close:"ปิด",terms_of_service:"ข้อกำหนดการใช้งาน",privacy_statements:"นโยบายข้อมูลส่วนบุคคล",password:"รหัสผ่าน",apply:"ตกลง",confirm_lostchange_without_save:"ยังไม่ได้บันทึกการเปลี่ยนแปลง คุณต้องการบันทึกและออกหรือไม่",dont_save:"ไม่ต้องบันทึก",delete:"ลบ",hide:"ซ่อน",enter_password_to_continue:"ใส่รหัสผ่าน",enter_user_password:"โปรดใส่รหัสผ่านสำหรับบัญชี _OSNAME_ ของคุณเพื่อดำเนินการต่อ",submit:"ส่ง",skip:"ข้าม",start:"เริ่มต้น",back:"ย้อนกลับ",next:"ถัดไป"},personal_settings:{customize_color:"ปรับแต่งสี"},extlang:{todayText:"วันนี้",jan:"มกราคม",feb:"กุมภาพันธ์",mar:"มีนาคม",apr:"เมษายน",may:"พฤษภาคม",jun:"มิถุนายน",jul:"กรกฎาคม",aug:"สิงหาคม",sep:"กันยายน",oct:"ตุลาคม",nov:"พฤศจิกายน",dec:"ธันวาคม",fieldblank:"ต้องใส่ข้อมูลในฟิลด์นี้",invaliddate:"{0} ไม่ใช่วันที่ที่ถูกต้อง โปรดป้อนวันที่โดยใช้รูปแบบ {1}",firstpage:"หน้าแรก",lastpage:"หน้าสุดท้าย"},uicommon:{add_time:"เพิ่มเวลา",schedule_abbre_sun:"อาทิตย์",schedule_abbre_mon:"จันทร์",schedule_abbre_tue:"อังคาร",schedule_abbre_wed:"พุธ",schedule_abbre_thu:"พฤหัสฯ",schedule_abbre_fri:"ศุกร์",schedule_abbre_sat:"เสาร์",browse:"เรียกดู",goto_page:"ไปยังหน้า {0}",pre_x_pages:"{0} หน้าก่อนหน้า",next_x_pages:"{0} หน้าถัดไป",items:"รายการ",schedule_sun:"วันอาทิตย์",schedule_mon:"วันจันทร์",schedule_tue:"วันอังคาร",schedule_wed:"วันพุธ",schedule_thu:"วันพฤหัสบดี",schedule_fri:"วันศุกร์",schedule_sat:"วันเสาร์",schedule_daily:"รายวัน",schedule_weekend:"วันหยุดสุดสัปดาห์",schedule_weekdays:"วันธรรมดา",searching:"กำลังค้นหา..."},search:{no_search_result:"ไม่พบรายการที่ตรงกัน"},copyright:{copyright:"ลิขสิทธิ์ © {0} Synology Inc. สงวนลิขสิทธิ์"}}};function id(t){return _(t)||!x(t)}class nd{constructor(t){this.changeLang(t)}changeLang(t){this.locale=t}getText(t,e){let i="";return Dt||(window._T&&(i=window._T(t,e)),id(i)&&window._JSLIBSTR&&(i=window._JSLIBSTR(t,e))),id(i)&&ed[this.locale]&&ed[this.locale][t]?ed[this.locale][t][e]:i||"".concat(t,":").concat(e)}}const sd=Li({},((t,e={})=>{let i=e.language||"enu";const n=new nd(i);t.prototype.$changeLang=n.changeLang.bind(n),t.prototype.$i18n=n.getText.bind(n)}));i(250);var od=R({name:"EmptyView",components:{vButton:mn},mixins:[vi],props:{iconClass:{type:String,default:""},text:{type:String,default:function(){return this._i18n("common","no_item")}},hideText:{type:Boolean,default:!1},actionText:{type:String,default:function(){return this._i18n("common","create")}},hideAction:{type:Boolean,default:!1},actionBtnSuffix:{type:String,default:"blue"}},methods:{onActionClick(t){this.$emit("action-click",t)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-empty-view"},[i("div",{staticClass:"v-empty-view-box"},[i("div",{class:["v-empty-view-icon",t.iconClass]}),t._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:!t.hideText,expression:"!hideText"}],staticClass:"v-empty-view-text"},[t._t("default",(function(){return[i("span",[t._v(t._s(t.text))])]}))],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideAction,expression:"!hideAction"}],staticClass:"v-empty-view-action"},[t._t("action",(function(){return[i("v-button",{attrs:{"syno-id":t.synoId+"-default-button",suffix:t.actionBtnSuffix},on:{click:t.onActionClick}},[t._v("\n "+t._s(t.actionText)+"\n ")])]}))],2)])])}),[],!1,null,null,null).exports;var rd={bind(t,e,i){},inserted(t,e,i){if(!l().prototype.$synoIdActive)return;if(!1===e.value||!i||!i.context||!1===i.context.useSynoId)return;!function(t,e){if(!t&&/jsDebug=script/.test(window.location.search)){let t="";e.$options.name&&(t+=" ".concat(e.$options.name)),Ae("syno-id required [".concat(t,"]"),e)}}(i.context.synoId,i.context);const n=e.value||i.context.synoId;t.setAttribute("syno-id",n)},update(t,e,i){},unbind(t){}},ad={props:{synoId:{type:String,default:""},useSynoId:{type:Boolean,default:!0}}};const ld=Li({},((t,{active:e=!0})=>{t.prototype.$synoIdActive=e,t.directive("syno-id",rd),e?t.mixin(ad):t.mixin({data:()=>({synoId:""})})}));const cd=Li({},((t,e={})=>{t.prototype.$popupContainer=e.popupContainer}));i(252);var ud=R({name:"Toggle",props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:()=>({prefixCls:"v-toggle"}),computed:{wrapperCls(){return["".concat(this.prefixCls,"-wrapper"),{on:this.value,disabled:this.disabled}]}},methods:{onClick(t){this.disabled||this.$emit("input",!this.value)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapperCls,on:{click:t.onClick}},[i("div",{class:t.prefixCls+"-indicator"})])}),[],!1,null,null,null).exports,dd=(i(253),R({name:"CopyCutField",components:{vInput:Ei,vButton:ui},props:{value:{type:String,default:""},type:{type:String,default:"copy",validator:t=>["copy","cut"].includes(t)},readonly:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data:()=>({prefix:"v-copy-cut-field"}),computed:{_disabled(){return this.disabled||!this.value},wrapperCls(){return["".concat(this.prefix,"-wrapper")]},inputCls(){return["".concat(this.prefix,"-input")]},buttonCls(){return"".concat(this.prefix,"-button ").concat(this.type," ").concat(this._disabled?"disabled":"")}},methods:{onInputValueChange(t){this.$emit("input",t)},onClickButton(){("copy"===this.type?this.$refs.input.copyValue():this.$refs.input.cutValue())?this.$emit("action-success",this.value):this.$emit("action-failed")}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapperCls},[i("v-input",{ref:"input",class:t.inputCls,attrs:{"syno-id":"v-copy-cut-field-input",name:"input",readonly:t.readonly,value:t.value,"fit-container":""},on:{input:t.onInputValueChange}}),t._v(" "),i("v-button",{attrs:{"syno-id":"v-copy-cut-field-button",icon:t.buttonCls,disabled:t._disabled},on:{click:t.onClickButton}})],1)}),[],!1,null,null,null).exports),hd=R({name:"ModuleListOption",mixins:[U("module-list")],props:{display:{type:String,default:""},value:{required:!0,type:String,default:""},beforeSelect:{type:Function,default:E},size:{type:String,default:"normal",validator:function(t){return["normal","small"].includes(t)}}},data:()=>({activated:!1}),computed:{wrapperCls(){return["module-item-option","module-item-option-".concat(this.size),{activated:this.activated}]}},mounted(){this.$options.unwatchers=[],this["module-list"]&&this["module-list"].register(this,(t=>{this.$options.unwatchers.push(t.$watch("value",this.onCurrentSelectedChanged,{immediate:!0}))}))},beforeDestroy(){if(this["module-list"]){this["module-list"].unregister(this);for(const t of this.$options.unwatchers)t()}},methods:{onCurrentSelectedChanged(t){this.activated=t===this.value},async onBeforeSelect(){if(!1===await this.beforeSelect())return!1},async onSelect(){!1!==await this.onBeforeSelect()&&this.$emit("selected",this.value,this)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{class:t.wrapperCls,attrs:{tabindex:"-1"},on:{click:t.onSelect,focus:t.onSelect}},[i("div",{staticClass:"module-item-icon"}),t._v(" "),t._t("text",(function(){return[i("div",{staticClass:"module-item-text"},[t._v("\n "+t._s(t.display)+"\n ")]),t._v(" "),t._t("action")]}))],2)}),[],!1,null,null,null).exports,pd=R({name:"ModuleListSection",mixins:[],props:{display:{type:String,default:""},collapsible:{type:Boolean,default:!0},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsed}},computed:{wrapperCls(){return["module-item-section",{collapsed:this.isCollapsed,collapsible:this.collapsible}]}},mounted(){},beforeDestroy(){},methods:{onExpand(){this.isCollapsed=!this.isCollapsed}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{class:t.wrapperCls},[i("div",{staticClass:"module-item",on:{click:function(e){t.collapsible&&t.onExpand()}}},[t.collapsible?i("div",{staticClass:"module-item-arrow"}):t._e(),t._v(" "),t._t("text",(function(){return[i("div",{staticClass:"module-section-item-text"},[t._v("\n "+t._s(t.display)+"\n ")]),t._v(" "),t._t("action")]}))],2),t._v(" "),i("v-slide-up-down-transition",[t.isCollapsed?t._e():i("div",{staticClass:"module-options"},[t._t("default")],2)])],1)}),[],!1,null,null,null).exports,fd=(i(254),R({name:"AdvancePanelGrid",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("table",{staticClass:"adv-grid"},[i("thead",{staticClass:"adv-grid-thead"},[i("tr",{staticClass:"table-head-row",attrs:{role:"row"}},t._l(t.columns,(function(e,n){return i("th",{key:n,staticClass:"table-head"},[i("div",{staticClass:"head-cell"},[t._v("\n "+t._s(e.title)+"\n ")])])})),0)]),t._v(" "),i("tbody",{staticClass:"adv-grid-body"},t._l(t.data,(function(e,n){return i("tr",{key:n,staticClass:"table-row",attrs:{role:"row"}},t._l(t.columns,(function(n,s){return i("td",{key:s,staticClass:"table-cell"},[i("div",{staticClass:"cell"},[t._v("\n "+t._s(e[n.field])+"\n ")])])})),0)})),0)])}),[],!1,null,null,null).exports),md=(i(255),R({name:"AdvancePanelColumns",props:{columns:{type:Array,default:()=>[]}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"adv-columns"},t._l(t.columns,(function(e,n){return i("div",{key:n,staticClass:"adv-column"},[t._t(e.name)],2)})),0)}),[],!1,null,null,null).exports),gd=(i(256),R({name:"AdvancePanelForm",props:{fields:{type:Array,default:()=>[]}},methods:{getValueCls:t=>({"multiple-line":t.multipleLine})}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"adv-form"},[t._l(t.fields,(function(e){return[i("div",{key:e.name+"-label",staticClass:"adv-form-label"},[t._t(e.name+"-label")],2),t._v(" "),i("div",{key:e.name+"-value",staticClass:"adv-form-value",class:t.getValueCls(e)},[t._t(e.name+"-value")],2)]}))],2)}),[],!1,null,null,null).exports),vd=R({props:{height:{type:[String,Number],default:214},minHeight:{type:[String,Number],default:40},maxHeight:{type:[String,Number],default:1e3},enable:{type:Boolean,default:!1}},data:()=>({}),computed:{indicatorStyle:()=>({top:0,left:0}),indicatorClass(){return{enabled:this.enable}}},mounted(){this.$nextTick((()=>{this.$options.removeListener=this.register()}))},beforeDestroy(){this.$options.removeListener&&this.$options.removeListener()},methods:{createIndicator(t){const{width:e,top:i,left:n}=this.$refs.indicator.getBoundingClientRect(),[s,o]=this.$alignManager.getScroll(document.body),r=document.createElement("div");return Vt(r,"width","".concat(e,"px")),Vt(r,"left","".concat(n+s,"px")),Vt(r,"top","".concat(i+o,"px")),oe(r,"info-board-dragging-indicator"),t.appendChild(r),r},moveIndicator(t,{y:e}){const[,i]=this.$alignManager.getScroll(document.body);Vt(t,"top","".concat(e+i,"px"))},removeIndicator(t){t&&t.parentNode&&t.parentNode.removeChild(t)},register(){let t={start:0,dragging:!1,diff:0},e=null;const i=i=>{i.stopPropagation(),t.dragging&&(t.diff=i.clientY-t.start,t.diff>0?t.diff=Math.min(+this.height-+this.minHeight,t.diff):t.diff=-Math.min(+this.maxHeight-+this.height,Math.abs(t.diff)),this.moveIndicator(e,{y:t.start+t.diff}))},n=n=>{n.stopPropagation(),t.dragging&&(Kt(document,"mousemove",i),this.removeIndicator(e),this.$emit("resize-end",{newHeight:this.height-t.diff})),t.dragging=!1,t.start=0,t.diff=0},s=s=>{this.enable&&(e=this.createIndicator(document.body),s.stopPropagation(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,t.start=s.clientY,t.dragging=!0,Yt(document,"mouseup",n),Ut(document,"mousemove",i))};return Ut(this.$refs.indicator,"mousedown",s),()=>Kt(this.$refs.indicator,"mousedown",s)}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"indicator",staticClass:"info-board-indicator",class:t.indicatorClass,style:t.indicatorStyle},[i("div",{staticClass:"ghost"})])}),[],!1,null,null,null).exports,yd=(i(257),R({name:"InfoBoard",components:{vInfoBoardDraggable:vd},mixins:[q("info-board")],props:{title:{type:String,default:"title"},defaultExpand:{type:Boolean,default:!1},height:{type:[String,Number],default:216},minHeight:{type:[String,Number],default:42},maxHeight:{type:[String,Number],default:1e3},isEmpty:{type:Boolean,default:!1}},data(){return{expand:!1,currentHeight:this.height}},computed:{contentStyle(){return{height:"".concat(this.currentHeight,"px")}},borderClass(){return{expanded:this.expand}}},watch:{defaultExpand:{handler(t){this.expand=t},immediate:!0},height:{handler(t){this.currentHeight=t},immediate:!0}},methods:{onResizeEnd({newHeight:t}){this.currentHeight=t},onToggleExpand(){this.expand=!this.expand}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"info-board-wrapper",class:t.borderClass},[i("v-info-board-draggable",{attrs:{height:t.currentHeight,"min-height":t.minHeight,"max-height":t.maxHeight,enable:t.expand},on:{"resize-end":t.onResizeEnd}}),t._v(" "),i("div",{ref:"title",staticClass:"board-title"},[i("span",{staticClass:"title"},[t._t("title",(function(){return[t._v("\n "+t._s(t.title)+"\n ")]}))],2),t._v(" "),i("i",{staticClass:"expand-icon",on:{click:t.onToggleExpand}})]),t._v(" "),i("v-slide-up-down-transition",[t.expand?i("div",{staticClass:"board-content"},[i("div",{staticClass:"border-content-inner",style:t.contentStyle},[t.isEmpty?i("div",{staticClass:"empty"},[t._t("empty")],2):i("v-perfect-scrollbar",[t._t("default",(function(){return[t._v("\n defualt content\n ")]}))],2)],1)]):t._e()])],1)}),[],!1,null,null,null).exports),bd=(i(258),R({name:"InfoMask",mixins:[],props:{},data:()=>({}),computed:{},watch:{},mounted(){},methods:{}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-info-mask"},[i("div",{staticClass:"info-content-wrapper"},[i("div",{staticClass:"info-content"},[t._t("default")],2)])])}),[],!1,null,null,null).exports),wd=i(93);const xd=["class","style"];var _d=R({name:"RichText",functional:!0,props:{parseTags:{type:Array,default:()=>["br","li","ul","ol","a","span","b","p"]},allowAttrs:{type:Array,default:()=>[]},linkTags:{type:Array,default:()=>["a","span"]},text:{type:String,default:""}},render(t,{props:e,_v:i,listeners:n}){const s=[],o=[];return new wd.Parser({onopentag(i,r){if(!e.parseTags.includes(i))return;const a=s.length>0?s[s.length-1]:null,l=((i,s,o)=>{const r=Object.entries(s).reduce(((t,[i,n])=>((e.allowAttrs.includes(i)||xd.includes(i))&&(t[i]=n),t)),{});return t(i,o?{attrs:r,on:{click:()=>{n["click-link"]&&n["click-link"](s),s["link-id"]&&n["click-link-".concat(s["link-id"])]&&n["click-link-".concat(s["link-id"])](s)}}}:{attrs:r},[])})(i,r,e.linkTags.includes(i));a?a.children.push(l):o.push(l),s.push(l)},ontext(t){const e=s.length>0?s[s.length-1]:null;e?e.children.push(i(t)):o.push(t)},onclosetag(t){e.parseTags.includes(t)&&s.pop()}}).write(e.text),o}},undefined,undefined,!1,null,null,null).exports,Sd=(i(275),R({name:"ScheduleField",components:{vSelectBaseOption:Ni,vSelectDividerOption:Fi},mixins:[vi,ai],props:{value:{type:Array,default:()=>[]},emptyValue:{type:[Boolean,Array],default:()=>[0,1,2,3,4,5,6]},disabled:{type:Boolean,default:!1}},data(){return{actions:["daily","weekend","weekdays"],activated:{daily:!1,weekend:!1,weekdays:!1},days:[{label:this._i18n("uicommon","schedule_sun"),value:0,abbre_label:this._i18n("uicommon","schedule_abbre_sun")},{label:this._i18n("uicommon","schedule_mon"),value:1,abbre_label:this._i18n("uicommon","schedule_abbre_mon")},{label:this._i18n("uicommon","schedule_tue"),value:2,abbre_label:this._i18n("uicommon","schedule_abbre_tue")},{label:this._i18n("uicommon","schedule_wed"),value:3,abbre_label:this._i18n("uicommon","schedule_abbre_wed")},{label:this._i18n("uicommon","schedule_thu"),value:4,abbre_label:this._i18n("uicommon","schedule_abbre_thu")},{label:this._i18n("uicommon","schedule_fri"),value:5,abbre_label:this._i18n("uicommon","schedule_abbre_fri")},{label:this._i18n("uicommon","schedule_sat"),value:6,abbre_label:this._i18n("uicommon","schedule_abbre_sat")}]}},computed:{displayText(){const t=new Set(this.value);if(7===t.size)return this._i18n("uicommon","schedule_daily");if(2===t.size&&t.has(0)&&t.has(6))return this._i18n("uicommon","schedule_weekend");if(5===t.size&&!t.has(0)&&!t.has(6))return this._i18n("uicommon","schedule_weekdays");return this.value.slice().map((t=>this.days[t].abbre_label)).join(this._i18n("common","comma"))}},methods:{onInput(t){this.$emit("input",t.sort())},setActive(t,e){this.activated[t]=e},onActionClick(t){"daily"===t?this.$emit("input",[0,1,2,3,4,5,6]):"weekend"===t?this.$emit("input",[0,6]):this.$emit("input",[1,2,3,4,5])},onCloseDropdown(){if(this.emptyValue&&0===this.value.length){const t=T(this.emptyValue)?this.emptyValue.slice():[0,1,2,3,4,5,6];this.$emit("input",t)}}}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-multiple-select",{staticClass:"schedule-field",attrs:{"syno-id":t.synoId,"display-mode":"text",value:t.value,options:t.days,"display-text":t.displayText,disabled:t.disabled,"active-form-item":!1,"max-height":"none"},on:{input:t.onInput,"close-dropdown":t.onCloseDropdown},scopedSlots:t._u([{key:"top-actions",fn:function(){return[t._l(t.actions,(function(e){return i("v-select-base-option",{key:e,staticClass:"schedule-base-option",attrs:{option:{icon:"schedule"},display:t._i18n("uicommon","schedule_"+e),activated:t.activated[e]},on:{hover:function(i){return t.setActive(e,!0)},"hover-out":function(i){return t.setActive(e,!1)},click:function(i){return t.onActionClick(e)}}})})),t._v(" "),i("v-select-divider-option")]},proxy:!0}])})}),[],!1,null,null,null).exports);i.d(e,"version",(function(){return Cd})),i.d(e,"mixins",(function(){return kd})),i.d(e,"components",(function(){return Td})),i.d(e,"plugins",(function(){return Dd})),i.d(e,"install",(function(){return $d})),i.d(e,"fn",(function(){return n})),i.d(e,"element",(function(){return s}));const Cd="7.3.25",kd={emitter:V,formComponent:ai,hasPopContainer:we,stringKey:vi},Td={vMenu:$e,vMenuItem:pi,vMenuSubmenu:fi,vMenuGroup:mi,vMenuDivider:gi,vPagination:bi,vButton:ui,vButtonGroup:di,vButtonDropdown:ze,vBreakpointButtonsGroup:hi,vCard:Fo,vTabs:ln,vTabPane:cn,vSpin:xi,vSpinInner:wi,vSpinIcon:yi,vInput:Ei,vInputGroup:Bi,vSelect:Ai,vBaseSelect:Vi,vSingleSelect:Ui,vMultipleSelect:Zi,vSelectBaseOption:Ni,vSelectActionOption:Qi,vSelectDividerOption:Fi,vSelectGroupOption:zi,vSelectCheckOption:Xi,vSelectInput:Pi,vMultipleSelectInput:Pi,vRadio:Po,vRadioGroup:No,vCheckbox:gn,vForm:zo,vFormItem:jo,vFormMultipleItem:Wo,vFieldset:hn,vColorPicker:ko,vColorPickerDropdown:Co,vColorCustomWindow:Ao,vColorCustomPanel:Bo,vDatePicker:_o,vDatePickerMenu:Tn,vDataTable:Vr,vPanel:$o,vStatusBar:Do,vTreePanel:Jr,vWizard:Ca,vWizardStep:ka,vPerfectScrollbar:Tt,vPopup:Ro,vWhitetip:Fr,vDraggableResizable:Ma,vScheduleTable:Ea,vExpandableItem:Ba,vDataView:Aa,vSlideUpDown:un,vSlideUpDownTransition:qr,vSlider:Pa,vInstance:Na,vAppWindow:za,vPageListAppWindow:Ha,vPageListModule:ja,vModalWindow:_a,vProgressBar:Va,vMessageBoxWindow:Ua,vWizardWindow:Sa,vWindowHeader:ua,vWindowHeaderToolWrapper:ca,vWindowResizable:ra,vWindowDraggable:la,vFileButton:Zl,vClickoutsidePlugin:Ql,vToastPlugin:fa,vTooltipPlugin:Jl,vFormComponentPlugin:ec,vLongPressPlugin:nc,vPopupPlugin:Ju,vNotification:td,vEmptyView:od,vSearch:Ll,vSuggestionItem:Tl,vPortal:be,vToggle:ud,vCopyCutField:dd,vModuleList:Ra,vModuleListOption:hd,vModuleListSection:pd,vVirtualScrollbar:ji,vAdvancePanelGrid:fd,vAdvancePanelColumns:md,vAdvancePanelForm:gd,vAppWindowHeader:Fa,vAppWizardWindow:Wa,vDragTarget:Kr,vDragZone:Yr,vInfoBoard:yd,vInfoMask:bd,vRichText:_d,vScheduleField:Sd,vLayout:an,vToolbar:Io},Dd={vMessageBoxWindowPlugin:Ka,vAboutWindowPlugin:Ga,DragDropManagerPlugin:rr,WindowManagerPlugin:ql,AlignManagerPlugin:Kl,LayoutManagerPlugin:rn,BreakpointManagerPlugin:Xl,vToastPlugin:fa,i18nPlugin:sd,synoIdPlugin:ld,ScrollbarPlugin:Ri};for(const Od of Object.values(Td)){const t=(Id=Od).options&&Id.options.name?Id.options.name:Id.name;!Od.install&&t&&(Od.props=Od.props||{},Od.install=function(e,i="v"){e.component("".concat(i).concat(t),Od)})}var Id;const $d=function(t,e={}){$d.installed||(a=t,function(t,e){for(const i of Object.values(Td))i.install&&t.use(i,e.prefix)}(t,e),function(t,e={}){const i=!1!==e.useI18n,n=!1!==e.activeSynoId;t.use(Ka,e.messageBoxWindow||{}),t.use(Ga,e.aboutWindow||{}),t.use(rr,e.dragDropManager||{}),t.use(ql,e.windowManager||{}),t.use(Kl,e.alignManager||{}),t.use(rn,e.layoutManager||{}),t.use(Xl,e.breakpointManager||{}),t.use(fa,e.toast||{}),i&&t.use(sd,e.i18n||{}),t.use(ld,{active:n}),t.use(cd,e.popupContainerPlugin||{}),t.use(Ri,e.scrollbarPlugin||{})}(t,e))};e.default={install:$d,version:Cd}}])}));