!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.layx=e():t.layx=e()}(window,function(){return(d=[function(t,e,n){(function(d){t.exports=function(){"use strict";var t=function(t){var e=t.id,n=t.viewBox,i=t.content;this.id=e,this.viewBox=n,this.content=i};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};"undefined"!=typeof window?window:void 0!==d||"undefined"!=typeof self&&self;function e(t,e){return t(e={exports:{}},e.exports),e.exports}var o=e(function(t,e){t.exports=function(){function r(t){var e=t&&"object"==typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function s(t,e){var n,i=e&&!0===e.clone;return i&&r(t)?u((n=t,Array.isArray(n)?[]:{}),t,e):t}function a(n,t,i){var o=n.slice();return t.forEach(function(t,e){void 0===o[e]?o[e]=s(t,i):r(t)?o[e]=u(n[e],t,i):-1===n.indexOf(t)&&o.push(s(t,i))}),o}function d(e,n,i){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=s(e[t],i)}),Object.keys(n).forEach(function(t){r(n[t])&&e[t]?o[t]=u(e[t],n[t],i):o[t]=s(n[t],i)}),o}function u(t,e,n){var i=Array.isArray(e),o=n||{arrayMerge:a},r=o.arrayMerge||a;return i?Array.isArray(t)?r(t,e,n):s(e,n):d(t,e,n)}return u.all=function(t,n){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce(function(t,e){return u(t,e,n)})},u}()}),n=e(function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default}),i=n.svg,r=n.xlink,s={};s[i.name]=i.uri,s[r.name]=r.uri;var a=function(t,e){void 0===t&&(t="");var n=o(s,e||{}),i=function(n){return Object.keys(n).map(function(t){var e=n[t].toString().replace(/"/g,""");return t+'="'+e+'"'}).join(" ")}(n);return""};return function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;if(e){return document.importNode(n,true)}return n}(a(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(t)}()}).call(this,n(14))},function(t,e,n){(function(H){t.exports=function(){"use strict";"undefined"!=typeof window?window:void 0!==H||"undefined"!=typeof self&&self;function t(t,e){return t(e={exports:{}},e.exports),e.exports}var a=t(function(t,e){t.exports=function(){function r(t){var e=t&&"object"==typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function s(t,e){var n,i=e&&!0===e.clone;return i&&r(t)?u((n=t,Array.isArray(n)?[]:{}),t,e):t}function a(n,t,i){var o=n.slice();return t.forEach(function(t,e){void 0===o[e]?o[e]=s(t,i):r(t)?o[e]=u(n[e],t,i):-1===n.indexOf(t)&&o.push(s(t,i))}),o}function d(e,n,i){var o={};return r(e)&&Object.keys(e).forEach(function(t){o[t]=s(e[t],i)}),Object.keys(n).forEach(function(t){r(n[t])&&e[t]?o[t]=u(e[t],n[t],i):o[t]=s(n[t],i)}),o}function u(t,e,n){var i=Array.isArray(e),o=n||{arrayMerge:a},r=o.arrayMerge||a;return i?Array.isArray(t)?r(t,e,n):s(e,n):d(t,e,n)}return u.all=function(t,n){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce(function(t,e){return u(t,e,n)})},u}()});var e=t(function(t,e){e.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},t.exports=e.default}),n=e.svg,i=e.xlink,o={};o[n.name]=n.uri,o[i.name]=i.uri;var r,s=function(t,e){void 0===t&&(t="");var n=a(o,e||{}),i=function(n){return Object.keys(n).map(function(t){var e=n[t].toString().replace(/"/g,""");return t+'="'+e+'"'}).join(" ")}(n);return""},d=e.svg,u=e.xlink,p={attrs:(r={style:["position: absolute","width: 0","height: 0"].join("; ")},r[d.name]=d.uri,r[u.name]=u.uri,r)},l=function(t){this.config=a(p,t||{}),this.symbols=[]};l.prototype.add=function(t){var e=this.symbols,n=this.find(t.id);return n?(e[e.indexOf(n)]=t,!1):(e.push(t),!0)},l.prototype.remove=function(t){var e=this.symbols,n=this.find(t);return!!n&&(e.splice(e.indexOf(n),1),n.destroy(),!0)},l.prototype.find=function(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},l.prototype.has=function(t){return null!==this.find(t)},l.prototype.stringify=function(){var t=this.config,e=t.attrs,n=this.symbols.map(function(t){return t.stringify()}).join("");return s(n,e)},l.prototype.toString=function(){return this.stringify()},l.prototype.destroy=function(){this.symbols.forEach(function(t){return t.destroy()})};var c=function(t){var e=t.id,n=t.viewBox,i=t.content;this.id=e,this.viewBox=n,this.content=i};c.prototype.stringify=function(){return this.content},c.prototype.toString=function(){return this.stringify()},c.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var h=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n},f=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"==typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return h(s(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(c),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},w=function(t){return Array.prototype.slice.call(t,0)},v={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},y=function(t){return(t||window.location.href).split("#")[0]},g=function(i){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,e,n){!function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,false,false,e),window.dispatchEvent(n)}(i,{oldUrl:n,newUrl:e})})}])},b=function(t,n){return void 0===n&&(n="linearGradient, radialGradient, pattern"),w(t.querySelectorAll("symbol")).forEach(function(e){w(e.querySelectorAll(n)).forEach(function(t){e.parentNode.insertBefore(t,e)})}),t};var x=e.xlink.uri,_="xlink:href",C=/[{}|\\\^\[\]`"<>]/g;function E(t){return t.replace(C,function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()})}var O,M=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],B=M.map(function(t){return"["+t+"]"}).join(","),I=function(t,e,n,i){var o=E(n),r=E(i),s=t.querySelectorAll(B),a=function(t,o){return w(t).reduce(function(t,e){if(!e.attributes)return t;var n=w(e.attributes),i=o?n.filter(o):n;return t.concat(i)},[])}(s,function(t){var e=t.localName,n=t.value;return-1!==M.indexOf(e)&&-1!==n.indexOf("url("+o)});a.forEach(function(t){return t.value=t.value.replace(new RegExp(function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(o),"g"),r)}),function(t,i,o){w(t).forEach(function(t){var e=t.getAttribute(_);if(e&&0===e.indexOf(i)){var n=e.replace(i,o);t.setAttributeNS(x,_,n)}})}(e,o,r)},S={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},j=function(s){function t(t){var e=this;void 0===t&&(t={}),s.call(this,a(m,t));var n=function(i){return i=i||Object.create(null),{on:function(t,e){(i[t]||(i[t]=[])).push(e)},off:function(t,e){i[t]&&i[t].splice(i[t].indexOf(e)>>>0,1)},emit:function(e,n){(i[e]||[]).map(function(t){t(n)}),(i["*"]||[]).map(function(t){t(e,n)})}}}();this._emitter=n,this.node=null;var i=this.config;if(i.autoConfigure&&this._autoConfigure(t),i.syncUrlsWithBaseTag){var o=document.getElementsByTagName("base")[0].getAttribute("href");n.on(S.MOUNT,function(){return e.updateUrls("#",o)})}var r=this._handleLocationChange.bind(this);this._handleLocationChange=r,i.listenLocationChangeEvent&&window.addEventListener(i.locationChangeEvent,r),i.locationChangeAngularEmitter&&g(i.locationChangeEvent),n.on(S.MOUNT,function(t){i.moveGradientsOutsideSymbol&&b(t)}),n.on(S.SYMBOL_MOUNT,function(t){i.moveGradientsOutsideSymbol&&b(t.parentNode),(v.isIE()||v.isEdge())&&function(t){var e=[];w(t.querySelectorAll("style")).forEach(function(t){t.textContent+="",e.push(t)})}(t)})}s&&(t.__proto__=s),(t.prototype=Object.create(s&&s.prototype)).constructor=t;var e={isMounted:{}};return e.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(t){var e=this.config;void 0===t.syncUrlsWithBaseTag&&(e.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===t.locationChangeAngularEmitter&&(e.locationChangeAngularEmitter="angular"in window),void 0===t.moveGradientsOutsideSymbol&&(e.moveGradientsOutsideSymbol=v.isFirefox())},t.prototype._handleLocationChange=function(t){var e=t.detail,n=e.oldUrl,i=e.newUrl;this.updateUrls(n,i)},t.prototype.add=function(t){var e=s.prototype.add.call(this,t);return this.isMounted&&e&&(t.mount(this.node),this._emitter.emit(S.SYMBOL_MOUNT,t.node)),e},t.prototype.attach=function(t){var e=this,n=this;if(n.isMounted)return n.node;var i="string"==typeof t?document.querySelector(t):t;return n.node=i,this.symbols.forEach(function(t){t.mount(n.node),e._emitter.emit(S.SYMBOL_MOUNT,t.node)}),w(i.querySelectorAll("symbol")).forEach(function(t){var e=f.createFromExistingNode(t);e.node=t,n.add(e)}),this._emitter.emit(S.MOUNT,i),i},t.prototype.destroy=function(){var t=this.config,e=this.symbols,n=this._emitter;e.forEach(function(t){return t.destroy()}),n.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);if(this.isMounted)return this.node;var n="string"==typeof t?document.querySelector(t):t,i=this.render();return this.node=i,e&&n.childNodes[0]?n.insertBefore(i,n.childNodes[0]):n.appendChild(i),this._emitter.emit(S.MOUNT,i),i},t.prototype.render=function(){return h(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return I(this.node,n,y(t)+"#",y(e)+"#"),!0},Object.defineProperties(t.prototype,e),t}(l),A=t(function(t){
/*!
* domready (c) Dustin Diaz 2014 - License MIT
*/
t.exports=function(){var t,e=[],n=document,i=n.documentElement.doScroll,o="DOMContentLoaded",r=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return r||n.addEventListener(o,t=function(){for(n.removeEventListener(o,t),r=1;t=e.shift();)t()}),function(t){r?setTimeout(t,0):e.push(t)}}()}),P="__SVG_SPRITE_NODE__",k="__SVG_SPRITE__";window[k]?O=window[k]:(O=new j({attrs:{id:P}}),window[k]=O);var T=function(){var t=document.getElementById(P);t?O.attach(t):O.mount(document.body,!0)};return document.body?T():A(T),O}()}).call(this,n(14))},function(t,e,n){"use strict";function o(t,i,o){void 0===o&&(o="layx-");for(var e=[],n=3;ninnerWidth&&(u=a-r),void 0!==i?p=i:s+d>innerHeight&&(p=d-s),m.addClasses(this.element,this.app.prefix,"context-menu-bar-active"),m.addStyles(this.element,{zIndex:""+e,top:p+"px",left:u+"px"})}},w.prototype.updateChildrenOffset=function(t,e,n){if(!this.isTopMenu&&e&&e.parentElement&&e.parentElement.parentElement){var i=e.parentElement.parentElement,o=getComputedStyle(i),r=Number(o.width.replace("px","")),s=Number(o.left.replace("px","")),a=Number(o.top.replace("px","")),d=getComputedStyle(e),u=Number(d.width.replace("px","")),p=e.childElementCount*f.default.height,l=f.default.height*n,c=r+s-w.offset,h=a+l-w.offset;r+s+u>innerWidth&&(c=s-u+w.offset),a+l+p>innerHeight&&(h=innerHeight-p-w.offset),m.addClasses(e,this.app.prefix,"context-menu-bar-active"),m.addStyles(e,{top:h+"px",left:c+"px"})}},w.prototype.hideChildren=function(t){this.isTopMenu||m.removeClasses(t,this.app.prefix,"context-menu-bar-active")},w.prototype.createContextMenuButtons=function(t){if(!1!==this.contextMenuButtons){for(var e=Array(),n=0,i=0,o=this.contextMenuButtons;i=innerHeight-50){if(i.containClass(o.salver.element,o.prefix,"salver-bar-keep"))return;o.salver.show()}else{if(!i.containClass(o.salver.element,o.prefix,"salver-bar-keep"))return;o.salver.show(!1)}},this.init()}e.default=u},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||(bp=function(t,e){return(bp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}bp(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),bp;Object.defineProperty(exports,"__esModule",{value:!0});var UIComponent_1=__webpack_require__(6),UIParclose_1=__webpack_require__(19),UIResizeBar_1=__webpack_require__(20),UIToolBar_1=__webpack_require__(22),UIActionButton_1=__webpack_require__(13),UIContextMenuBar_1=__webpack_require__(10),UITopMenuBar_1=__webpack_require__(28),UISalverBar_1=__webpack_require__(30),UIContent_1=__webpack_require__(32),UIStatuBar_1=__webpack_require__(35),ElementHelper=__webpack_require__(2),CastHelper=__webpack_require__(3),TypeHelper=__webpack_require__(5),ExceptionHelper=__webpack_require__(8),StringHelper=__webpack_require__(9),UIWindow=function(_super){function UIWindow(t,e){var n,i,o=_super.call(this,t)||this;return o.zIndex=o.app.zIndex,o.enableAnimated=!1,o.status="normal",o.lastStatus="none",o.flickering=!1,o.width=800,o.height=600,o.maxWidth=innerWidth,o.maxHeight=innerHeight,o.minWidth=200,o.minHeight=200,o.background="#ffffff",o.shadow="rgba(0, 0, 0, 0.3) 1px 1px 24px",o.parclose=!1,o.mode="layer",o.border=null,o.borderRadius=null,o.animate="zoom",o.resizeBar={},o.toolBar={},o.contextMenu=!1,o.topMenu=!1,o.content={},o.statuBar=!1,o.storeStatus=!0,o._element=null,o._flickerShadow=null,o._lastStoreStatus=null,TypeHelper.isStringWithNotEmpty(e.id)||ExceptionHelper.assertId(),o.id=e.id,o.elementId=o.app.prefix+o.id,o.mode=CastHelper.windowModeCast(e.mode,o.mode),o.width=CastHelper.numberCast(e.width,o.width),o.height=CastHelper.numberCast(e.height,o.height),o.maxWidth=Math.min(CastHelper.numberCast(e.maxWidth,o.maxWidth),o.maxWidth),o.maxHeight=Math.min(CastHelper.numberCast(e.maxHeight,o.maxHeight),o.maxHeight),o.minWidth=Math.max(CastHelper.numberCast(e.minWidth,o.minWidth),o.minWidth),o.minHeight=Math.max(CastHelper.numberCast(e.minHeight,o.minHeight),o.minHeight),o.width=Math.max(o.minWidth,o.width),o.width=Math.min(o.maxWidth,o.width),o.height=Math.max(o.minHeight,o.height),o.height=Math.min(o.maxHeight,o.height),n=CastHelper.offsetCast(e.offset,o.width,o.height),o.left=n[0],o.top=n[1],o.background=CastHelper.stringOrBooleanStyleCast(e.background,o.background),o.shadow=CastHelper.stringOrBooleanStyleCast(e.shadow,o.shadow),o.parclose=CastHelper.typeOrBooleanCast(e.parclose,o.parclose,0),i=CastHelper.borderCast(e.border,{width:1,style:"solid",color:"#3baced",radius:4}),o.border=i[0],o.borderRadius=i[1],o.animate=CastHelper.windowAnimateCast(e.animate,o.animate),o.enableAnimated="none"!==o.animate,o.resizeBar=CastHelper.jsonOrBooleanCast(e.resizeBar,o.resizeBar),o.toolBar=CastHelper.jsonOrBooleanCast(e.toolBar,o.toolBar),o.contextMenu=CastHelper.contextMenuButtonsCast(e.contextMenu),o.topMenu=CastHelper.contextMenuButtonsCast(e.topMenu),o.content=CastHelper.jsonOrBooleanCast(e.content,o.content),o.statuBar=CastHelper.jsonOrBooleanCast(e.statuBar,o.statuBar),o.storeStatus=CastHelper.booleanCast(e.storeStatus,o.storeStatus),o}return __extends(UIWindow,_super),Object.defineProperty(UIWindow.prototype,"element",{get:function(){return document.getElementById(this.elementId)},enumerable:!0,configurable:!0}),Object.defineProperty(UIWindow.prototype,"flickerShadow",{get:function(){return this.getFlickerShadow()},enumerable:!0,configurable:!0}),Object.defineProperty(UIWindow.prototype,"lastStoreStatus",{get:function(){var storeStatus=localStorage.getItem(this.app.prefix+this.id);return storeStatus?eval("("+storeStatus+")"):null},set:function(t){localStorage.setItem(this.app.prefix+this.id,JSON.stringify(t))},enumerable:!0,configurable:!0}),UIWindow.prototype.present=function(){var e=this,t=ElementHelper.createFragment(),n=ElementHelper.createElement("div");if(n.id=this.elementId,n.setAttribute("data-window-id",this.id),ElementHelper.addClasses(n,this.app.prefix,"window","window-"+this.mode,"flexbox","flex-column",this.enableAnimated?"animate":"",this.enableAnimated?"animate-"+this.animate+"-show":""),this.readStoreStatus(),ElementHelper.addStyles(n,{zIndex:"layer"===this.mode?""+this.zIndex:null,maxWidth:this.maxWidth+"px",maxHeight:this.maxHeight+"px",minWidth:this.minWidth+"px",minHeight:this.minHeight+"px",width:this.width+"px",height:this.height+"px",top:"layer"===this.mode?this.top+"px":null,left:"layer"===this.mode?this.left+"px":null,background:this.background,border:this.border,borderRadius:this.borderRadius,webkitBorderRadius:this.borderRadius,boxShadow:this.shadow,webkitBoxShadow:this.shadow}),n.addEventListener("mousedown",function(t){e.updateZIndex()},!0),!1!==this.toolBar){var i=new UIToolBar_1.default(this.app,this,this.toolBar),o=i.present();n.appendChild(o),this.setComponent("tool-bar",i)}if(!1!==this.topMenu){var r=new UITopMenuBar_1.default(this.app,this,this.topMenu),s=r.present();n.appendChild(s),this.setComponent("top-menu-bar",r)}if(!1!==this.content){var a=new UIContent_1.default(this.app,this,this.content),d=a.present();n.appendChild(d),this.setComponent("content-container",a)}if(!1!==this.resizeBar){var u=new UIResizeBar_1.default(this.app,this,this.resizeBar),p=u.present();n.appendChild(p),this.setComponent("resize-bar",u)}if(!1!==this.statuBar){var l=new UIStatuBar_1.default(this.app,this,this.statuBar),c=l.present();n.appendChild(c),this.setComponent("statu-bar",l)}if(!1!==this.parclose){var h=new UIParclose_1.default(this.app,this,{opacity:this.parclose}),f=h.present();t.appendChild(f),this.setComponent("parclose",h),this.app.salver&&this.app.salver.parsecloseCount++}if(!1!==this.contextMenu){var m=new UIContextMenuBar_1.default(this.app,this,"window",this.contextMenu),w=m.present();t.appendChild(w),this.setComponent("context-menu-bar",m)}if(this.bindEvent(n),!this.app.salver){var v=new UISalverBar_1.default(this.app),y=v.present();t.appendChild(y),this.app.salver=v}return t.appendChild(n),t},UIWindow.prototype.readStoreStatus=function(){var t=this.lastStoreStatus;this.storeStatus&&(t?(this.width=t.width,this.height=t.height,this.top=t.top,this.left=t.left):this.lastStoreStatus={top:this.top,left:this.left,width:this.width,height:this.height})},UIWindow.prototype.handlerContentByAnimate=function(t){void 0===t&&(t=!0);var e=this.getComponent("content-container");e&&(t?ElementHelper.addClasses(e.element,this.app.prefix,"content-container-fade-out"):ElementHelper.removeClasses(e.element,this.app.prefix,"content-container-fade-out"))},UIWindow.prototype.bindEvent=function(t){var n=this;!1!==this.contextMenu&&t.addEventListener("contextmenu",function(t){t.preventDefault(),t.returnValue=!1;var e=n.getComponent("context-menu-bar");return e&&e.updateOffset(t,n.zIndex+1),!1}),t.addEventListener("animationstart",function(t){n.handlerContentByAnimate()}),t.addEventListener("animationend",function(t){var e=n.element;ElementHelper.removeClasses(e,n.app.prefix,"animate-"+n.animate+"-show","animate-"+n.animate+"-drag-to-normal"),ElementHelper.containClass(e,n.app.prefix,"animate-"+n.animate+"-destroy")&&n.remove(),ElementHelper.containClass(e,n.app.prefix,"animate-"+n.animate+"-to-min")&&n.minimize(),n.handlerContentByAnimate(!1)}),t.addEventListener("transitionend",function(t){ElementHelper.removeClasses(n.element,n.app.prefix,"animate-"+n.animate+"-to-max","animate-"+n.animate+"-to-normal"),n.handlerContentByAnimate(!1)})},UIWindow.prototype.destroy=function(){this.enableAnimated?ElementHelper.addClasses(this.element,this.app.prefix,"animate-"+this.animate+"-destroy"):this.remove()},UIWindow.prototype.remove=function(){"max"===this.status&&ElementHelper.removeClasses(document.body,"z"+this.app.prefix,"body-noscroll");var t=this.getComponent("parclose");t&&(ElementHelper.removeElement(t.element),this.app.salver&&this.app.salver.parsecloseCount--),this.app.salver&&this.app.salver.removeItem();var e=this.app.windows.indexOf(this);this.app.windows.splice(e,1),this.app.window=null,ElementHelper.removeElement(this.element)},UIWindow.prototype.normal=function(t){void 0===t&&(t=!1);var e=this.element;if(e&&e.parentElement&&"normal"!==this.status){this.lastStatus=this.status,this.status="normal",this.handlerContentByAnimate(),ElementHelper.removeClasses(document.body,"z"+this.app.prefix,"body-noscroll"),ElementHelper.addClasses(e,this.app.prefix,this.enableAnimated?!1===t?"animate-"+this.animate+"-to-normal":"animate-"+this.animate+"-drag-to-normal":""),ElementHelper.addStyles(e,{top:this.top+"px",left:this.left+"px",width:this.width+"px",height:this.height+"px",borderRadius:this.borderRadius});var n=this.getComponent("resize-bar");n&&ElementHelper.removeClasses(n.element,this.app.prefix,"resize-bar-disabled");var i=this.getComponent("\n tool-bar\n /action-bar\n /action-buttons");if(i&&0!==i.length){for(var o=0,r=i;othis.window.width/2&ðis.window.width/2&&e>=innerWidth-this.window.width&&(this._left=e-this.window.width/2),this.window.top=o,this.window.left=this._left,this.window.normal(!0))},u.prototype.mouseStar=function(t){this.app.drayLayer.updateZIndex(this.window.zIndex-1),this.content=this.window.getComponent("content-container"),this.content&&this.content.showPenetrate()},u.prototype.mouseMove=function(t){t.preventDefault()},u.prototype.mouseEnd=function(t){},u);function u(t,e,n,i){var o=r.call(this,n)||this;return o.app=t,o.window=e,o.dragMoveOptions=i,o.emerge=10,o._top=0,o._left=0,o._originTop=0,o._originLeft=0,o._lastTime=null,o.content=null,o}e.default=d},function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=n(4),f=n(10),m=n(13),w=n(2),a=n(3),d=(r=s.default,o(v,r),Object.defineProperty(v.prototype,"element",{get:function(){return document.getElementById(""+this.elementId)},enumerable:!0,configurable:!0}),v.prototype.present=function(){var t=w.createFragment();if(!0===this.enable){var e=w.createElement("div");e.setAttribute("data-window-id",this.window.id),e.id=this.elementId,w.addClasses(e,this.app.prefix,"action-bar","flexbox","flex-row"),e.addEventListener("mousedown",function(t){t.preventDefault(),t.stopPropagation()}),e.addEventListener("contextmenu",function(t){return t.preventDefault(),t.stopPropagation(),t.returnValue=!1},!0),this.createActionButtons(e),t.appendChild(e)}return t},v.prototype.zoomActionButtons=function(t){if(!1!==this.items){var e=t<=v.actionButtonZoomWidth,n=this.getComponent("action-buttons");if(n){for(var i=n.slice().reverse(),o=i[0],r=i.slice(1),s=Array(),a=0,d=r=r.reverse();a=parent.innerHeight-50){if(a.containClass(i.app.salver.element,i.app.prefix,"salver-bar-keep"))return;i.app.salver.show()}else{if(!a.containClass(i.app.salver.element,i.app.prefix,"salver-bar-keep"))return;i.app.salver.show(!1)}},i.url=d.stringCast(n),i}e.default=l},function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=n(4),a=n(2),d=n(3),u=n(5),p=(r=s.default,o(l,r),Object.defineProperty(l.prototype,"element",{get:function(){return document.getElementById(""+this.elementId)},enumerable:!0,configurable:!0}),l.prototype.present=function(){var t=a.createFragment(),e=a.createElement("div");if(e.setAttribute("data-window-id",this.window.id),e.id=this.elementId,a.addClasses(e,this.app.prefix,"statu-bar"),a.addStyles(e,{height:this.height+"px",background:""+this.background}),u.isElement(this.content)){var n=this.content.cloneNode(!0);a.addStyles(n,{display:"inherit"}),e.appendChild(n)}else e.innerHTML=this.content;return t.appendChild(e),t},l);function l(t,e,n){var i=r.call(this,t,e)||this;return i.elementId=i.window.elementId+"-statu-bar",i.height=30,i.background="#e5e5e5",i.content="",i._element=null,i.height=d.numberCast(n.height,i.height),i.background=d.stringOrBooleanStyleCast(n.background,i.background),i.content=d.stringOrElementCast(n.content),i}e.default=p},function(t,e,n){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r,s=n(6),a=n(7),d=n(2),u=n(3),p=n(37),l=(r=s.default,o(c,r),Object.defineProperty(c.prototype,"element",{get:function(){return document.getElementById(this.elementId)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"processElement",{get:function(){return this.element?this.element.querySelector("."+this.app.prefix+"notice-process"):null},enumerable:!0,configurable:!0}),c.prototype.present=function(){var t=d.createFragment(),e=d.createElement("div");e.id=this.elementId,d.addClasses(e,this.app.prefix,"notice","animate-d3s","animate-fade-in-right"),d.addStyles(e,{zIndex:""+this.id}),this.bindEvent(e),this.createClose(e);var n=d.createElement("div");d.addClasses(n,this.app.prefix,"notice-container","flexbox","flex-row");var i=d.createElement("div");d.addClasses(i,this.app.prefix,"notice-icon","notice-"+this.type);var o=new a.default(this.app,""+this.type).present();i.appendChild(o),n.appendChild(i);var r=d.createElement("div");return d.addClasses(r,this.app.prefix,"notice-message","flex-item"),this.createTitle(r),this.createContent(r),n.appendChild(r),e.appendChild(n),this.createNoticeTime(e),this.createProcess(e),t.appendChild(e),t},c.prototype.createClose=function(t){var e=this,n=d.createElement("div");d.addClasses(n,this.app.prefix,"notice-close-button","flexbox","flex-center");var i=new a.default(this.app,"destroy").present();n.appendChild(i),n.addEventListener("mousedown",function(t){e.destroy()}),t.appendChild(n)},c.prototype.createTitle=function(t){if(void 0!==this.title){var e=d.createElement("div");d.addClasses(e,this.app.prefix,"notice-title","notice-"+this.type),e.innerText=this.title,t.appendChild(e)}},c.prototype.createContent=function(t){var e=d.createElement("div");d.addClasses(e,this.app.prefix,"notice-content"),e.innerText=this.message,t.appendChild(e)},c.prototype.createNoticeTime=function(t){var e=d.createElement("div");d.addClasses(e,this.app.prefix,"notice-time"),e.innerText=""+p.getDatetime(),t.appendChild(e)},c.prototype.createProcess=function(t){var e=d.createElement("div");d.addClasses(e,this.app.prefix,"notice-process"),t.appendChild(e)},c.prototype.calcTopOffset=function(t){void 0===t&&(t=void 0);var e=c.topOffset;if(0'});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"min",use:"min-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"max",use:"max-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"info",use:"info-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"restore",use:"restore-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"above",use:"above-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"more",use:"more-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"icon",use:"icon-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"right",use:"right-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"about",use:"about-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"success",use:"success-usage",viewBox:"0 0 1025 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"warning",use:"warning-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"error",use:"error-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=n(1),s=n.n(r),a=new o.a({id:"refresh",use:"refresh-usage",viewBox:"0 0 1024 1024",content:''});s.a.add(a);e.default=a}],e={},f.m=d,f.c=e,f.d=function(t,e,n){f.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.t=function(e,t){if(1&t&&(e=f(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(f.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)f.d(n,i,function(t){return e[t]}.bind(null,i));return n},f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,"a",e),e},f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.p="",f(f.s=15)).default;function f(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return d[t].call(n.exports,n,n.exports,f),n.l=!0,n.exports}var d,e});