diff --git a/web/pgadmin/static/css/overrides.css b/web/pgadmin/static/css/overrides.css index 795180b99..200dec8b2 100755 --- a/web/pgadmin/static/css/overrides.css +++ b/web/pgadmin/static/css/overrides.css @@ -300,24 +300,21 @@ iframe { } .obj_properties fieldset > .fieldset-content { - border-radius:5px; - padding: 5px 10px; - width: 99.8%; - margin: 0 0.1%; - border-color: #92AFC8; - border-width: 2px; - border-style: ridge; - background-color: ##D7D8DD; + border-radius:5px; + padding: 5px 10px; + border-color: #92AFC8; + border-width: 2px; + border-style: ridge; } .obj_properties .badge { - display: block; - text-align: left; - cursor: pointer; - margin-bottom: 1px; - background-color: #2C76B4; - border-radius:5px; - padding: 5px 7px; + display: block; + text-align: left; + cursor: pointer; + margin-bottom: 1px; + background-color: #2C76B4; + border-radius:5px; + padding: 5px 7px; } .obj_properties .badge .caret { @@ -343,9 +340,7 @@ iframe { } .obj_properties table { - display: table !important; - width: 98%; - margin: 0.8%; + display: table !important; } .obj_properties table tr { @@ -384,8 +379,8 @@ iframe { } .pg-prop-btn-group button { - padding: 5px; - margin: 2px 5px; + padding: 5px; + margin: 2px 5px; } .pg-prop-btn-group button:not(:first-child):not(:last-child) { @@ -395,8 +390,6 @@ iframe { .pg-prop-content { position: absolute; overflow: auto; - top: 3px; - bottom: 0; padding-bottom: 7px; padding-top: 0; padding-right: 0; @@ -408,7 +401,7 @@ iframe { } .has-pg-prop-btn-group { - top: 43px; + top: 48px; } .pg-prop-content > div { @@ -476,8 +469,8 @@ fieldset[disabled] .form-control { } .backgrid th, .backgrid td { - line-height: 18px; - font-size: 12px; + line-height: 18px; + font-size: 12px; } .backgrid th { @@ -727,74 +720,69 @@ div.inline-tab-panel > ul.nav-tabs > li > a, div.inline-tab-panel > ul.nav-tabs > li > a:active, div.inline-tab-panel > ul.nav-tabs > li > a:hover, div.inline-tab-panel > ul.nav-tabs > li > a:focus { - border-top-left-radius: 5px; - border-top-right-radius: 5px; + border-top-left-radius: 5px; + border-top-right-radius: 5px; } div.inline-tab-panel > ul.nav-tabs > li:first-child > a, div.inline-tab-panel > ul.nav-tabs > li:first-child > a:active, div.inline-tab-panel > ul.nav-tabs > li:first-child > a:hover, div.inline-tab-panel > ul.nav-tabs > li:first-child > a:focus { - border-top-left-radius: 5px; - border-top-right-radius: 5px; - margin-left: 1px; + border-top-left-radius: 5px; + border-top-right-radius: 5px; + margin-left: 1px; } div.inline-tab-panel > ul.tab-content { - padding-left: 5px; padding-right: 5px; border-color: #DDD; - border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; - border-width: 0px 1px 1px 1px; border-bottom-right-radius: 5px; - border-bottom-left-radius: 5px; border-style: solid solid; + padding-left: 5px; padding-right: 5px; border-color: #DDD; + border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; + border-width: 0px 1px 1px 1px; border-bottom-right-radius: 5px; + border-bottom-left-radius: 5px; border-style: solid solid; } div.inline-tab-panel > ul.tab-content > div.tab-pane { - min-height: 150px; padding: 0px !important; + min-height: 150px; padding: 0px !important; } div.inline-tab-panel > ul.tab-content > div.tab-pane > *:first-child { - margin-top: 5px; + margin-top: 5px; } div.inline-tab-panel > ul.tab-content > div.tab-pane > *:last-child { - margin-bottom: 5px; + margin-bottom: 5px; } -.pgadmin-control-error-message -{ - padding-left: 4px; + +.pgadmin-control-error-message{ + padding-left: 4px; } -.btn-group-sm>.btn, .btn-sm -{ - font-size: 11px; - padding: 3px 3px; + +.btn-group-sm>.btn, .btn-sm{ + font-size: 11px; + padding: 3px 3px; } td.edit-cell.editable.sortable.renderable.editor { - outline: 0px; + outline: 0px; } -.privilege_label -{ - font-size: 10px!important; -} -.backgrid th, .backgrid td -{ - padding: 2px; - font-weight: normal!important; -} -.pg-panel-depends-container > table > thead > tr > th { - padding: 2px; +.privilege_label{ + font-size: 10px!important; } -.backgrid th:first-child , .backgrid th:last-child{ - border-left-color: #2C76B4; +.backgrid th, .backgrid td{ + padding: 2px; + font-weight: normal!important; } -.backgrid th:last-child{ - border-right-color: #2C76B4; +.subnode > table.backgrid > thead > tr > th:first-child{ + border-left-color: #2C76B4; } -.select2-container .select2-selection--single .select2-selection__rendered -{ - padding-left: 3px; + +.subnode > table.backgrid > thead > tr > th:last-child{ + border-right-color: #2C76B4; +} +.select2-container .select2-selection--single .select2-selection__rendered{ + padding-left: 5px; } /* Message panel shown on browser tabs */ @@ -908,6 +896,23 @@ ul.nav.nav-tabs { padding-top: 4px; } -.btn-primary{ - margin: 2px 13px !important; +.pg-panel-depends-container >table.backgrid.table-bordered { + border: 0px; } + +.pg-panel-depends-container > table > thead > tr > th { + padding: 2px; + border: 1px solid #ddd; +} + +.pg-panel-depends-container > table > thead > tr > th:first-child { + border-left: 0px; +} + +.pg-panel-depends-container > table > thead > tr > th:last-child { + border-right: 0px; +} + +.btn-primary{ + margin: 2px 13px !important; +} \ No newline at end of file diff --git a/web/pgadmin/static/css/wcDocker/Themes/pgadmin.css b/web/pgadmin/static/css/wcDocker/Themes/pgadmin.css index 51e0461fc..b01f1ae23 100644 --- a/web/pgadmin/static/css/wcDocker/Themes/pgadmin.css +++ b/web/pgadmin/static/css/wcDocker/Themes/pgadmin.css @@ -37,15 +37,24 @@ .wcFrameButton { width: 20px; height: 20px; - border: 2px solid #8A0D0D; - background-color: #A56D6D; + border: 2px solid #9E9E9E; + background-color: #ddd; font-size: 12px; + border-radius: 5px 5px 5px 5px; + margin-right: 2px; } .wcFrameMiniButton { width: 8px; } +.wcFrameButton.wcFrameButtonLeft { + right: 10px; +} +.wcFrameButton.wcFrameButtonRight { + right: 10px; +} + .wcFrameButton:hover { border: 2px solid #CCCCCC; } @@ -263,11 +272,9 @@ } .wcFrameButtonBar { - top: 7px; + top: 5px; right: 5px; - color: white; } - .context-menu-list { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; @@ -313,3 +320,12 @@ font-size: 13px; ul.dropdown-menu > li.menu-item > a > i.wcTabIcon { width: 14px; } + +.wcFrameButton .fa.fa-close { + margin-top: 3.5px; + padding-left: 1px; +} + +span.fa.fa-arrow-left, .fa-arrow-right { + margin-top: 4px; +} diff --git a/web/pgadmin/static/js/wcDocker/README b/web/pgadmin/static/js/wcDocker/README index df04fbdec..bd657c5ce 100644 --- a/web/pgadmin/static/js/wcDocker/README +++ b/web/pgadmin/static/js/wcDocker/README @@ -1,3 +1,4 @@ +16/03/2016 The wcDocker theme frame width has been changed from 6px to 4px. This change has been brought about to keep the width of the frame consistent with the width of the window divider. @@ -35,3 +36,32 @@ index 954d73e..bc64b3b 100755 The same changes have been made to wcDocker-min.js and is not included as the file is tidy formatted. +06/04/2016 +The wcDocker is updated to remove the extra left and the right arrows ( signs ) which are not required for tab navigation. New rules has been added to set the position for each specific navigational buttons ; left & right + +diff --git a/web/pgadmin/static/js/wcDocker/wcDocker.js b/web/pgadmin/static/js/wcDocker/wcDocker.js +index bc64b3b..b4a5193 100755 +--- a/web/pgadmin/static/js/wcDocker/wcDocker.js ++++ b/web/pgadmin/static/js/wcDocker/wcDocker.js +@@ -3392,8 +3392,8 @@ define('wcDocker/frame',[ + this.$tabBar = $('
'); + this.$tabScroll = $('
'); + this.$center = $('
'); +- this.$tabLeft = $('
<
'); +- this.$tabRight = $('
>
'); ++ this.$tabLeft = $('
'); ++ this.$tabRight = $('
'); + this.$close = $('
X
'); + + this.$collapse = $('
C
'); +@@ -5985,8 +5985,8 @@ define('wcDocker/tabframe',[ + this.$tabBar = $('
'); + this.$tabScroll = $('
'); + this.$center = $('
'); +- this.$tabLeft = $('
<
'); +- this.$tabRight = $('
>
'); ++ this.$tabLeft = $('
'); ++ this.$tabRight = $('
'); + this.$close = $('
X
'); + + //this.$maximize = $('
X
'); \ No newline at end of file diff --git a/web/pgadmin/static/js/wcDocker/wcDocker.js b/web/pgadmin/static/js/wcDocker/wcDocker.js index bc64b3b97..7ba9658a7 100755 --- a/web/pgadmin/static/js/wcDocker/wcDocker.js +++ b/web/pgadmin/static/js/wcDocker/wcDocker.js @@ -3392,8 +3392,8 @@ define('wcDocker/frame',[ this.$tabBar = $('
'); this.$tabScroll = $('
'); this.$center = $('
'); - this.$tabLeft = $('
<
'); - this.$tabRight = $('
>
'); + this.$tabLeft = $('
'); + this.$tabRight = $('
'); this.$close = $('
X
'); this.$collapse = $('
C
'); @@ -5985,8 +5985,8 @@ define('wcDocker/tabframe',[ this.$tabBar = $('
'); this.$tabScroll = $('
'); this.$center = $('
'); - this.$tabLeft = $('
<
'); - this.$tabRight = $('
>
'); + this.$tabLeft = $('
'); + this.$tabRight = $('
'); this.$close = $('
X
'); //this.$maximize = $('
X
'); diff --git a/web/pgadmin/static/js/wcDocker/wcDocker.min.js b/web/pgadmin/static/js/wcDocker/wcDocker.min.js index e2b2e7748..690a20edc 100755 --- a/web/pgadmin/static/js/wcDocker/wcDocker.min.js +++ b/web/pgadmin/static/js/wcDocker/wcDocker.min.js @@ -32,11 +32,11 @@ */ !function(){var t,e,a;!function(r){function o(t,e){return g.call(t,e)}function i(t,e){var a,r,o,i,n,s,l,c,h,u,d,f=e&&e.split("/"),p=m.map,b=p&&p["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),n=t.length-1,m.nodeIdCompat&&x.test(t[n])&&(t[n]=t[n].replace(x,"")),t=f.slice(0,f.length-1).concat(t),h=0;h0&&(t.splice(h-1,2),h-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((f||b)&&p){for(a=t.split("/"),h=a.length;h>0;h-=1){if(r=a.slice(0,h).join("/"),f)for(u=f.length;u>0;u-=1)if(o=p[f.slice(0,u).join("/")],o&&(o=o[r])){i=o,s=h;break}if(i)break;!l&&b&&b[r]&&(l=b[r],c=h)}!i&&l&&(i=l,s=c),i&&(a.splice(0,s,i),t=a.join("/"))}return t}function n(t,e){return function(){var a=T.call(arguments,0);return"string"!=typeof a[0]&&1===a.length&&a.push(null),f.apply(r,a.concat([t,e]))}}function s(t){return function(e){return i(e,t)}}function l(t){return function(e){_[t]=e}}function c(t){if(o(v,t)){var e=v[t];delete v[t],w[t]=!0,d.apply(r,e)}if(!o(_,t)&&!o(w,t))throw new Error("No "+t);return _[t]}function h(t){var e,a=t?t.indexOf("!"):-1;return a>-1&&(e=t.substring(0,a),t=t.substring(a+1,t.length)),[e,t]}function u(t){return function(){return m&&m.config&&m.config[t]||{}}}var d,f,p,b,_={},v={},m={},w={},g=Object.prototype.hasOwnProperty,T=[].slice,x=/\.js$/;p=function(t,e){var a,r=h(t),o=r[0];return t=r[1],o&&(o=i(o,e),a=c(o)),o?t=a&&a.normalize?a.normalize(t,s(e)):i(t,e):(t=i(t,e),r=h(t),o=r[0],t=r[1],o&&(a=c(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:a}},b={require:function(t){return n(t)},exports:function(t){var e=_[t];return"undefined"!=typeof e?e:_[t]={}},module:function(t){return{id:t,uri:"",exports:_[t],config:u(t)}}},d=function(t,e,a,i){var s,h,u,d,f,m,g=[],T=typeof a;if(i=i||t,"undefined"===T||"function"===T){for(e=!e.length&&a.length?["require","exports","module"]:e,f=0;f=0;--_)if(c=b[_],c._uniqueId=c._uniqueId||n++,i=c._meta){for(p=i.bases,w=p.length-1;w>0;--w)v=p[w]._uniqueId,d[v]=(d[v]||0)+1;b[_]=p.slice(0)}else b[_]=[c];f={};t:for(;b.length;){for(_=0;_0;--w)if(c=m[w],u=c._meta,t.mix(i,u&&u.ownProps||c[l]),u)for(v in b=u.weaver)p[v]=(+p[v]||0)|b[v];for(v in r)a(u=r[v])?p[v]=+p[v]||0:i[v]=u;return u={bases:m,ownProps:r,weaver:p,chains:{}},m[0]={_meta:u,prototype:i},o(u,i),h=i[s],h._meta=u,h[l]=i,m[0]=h,t._postprocess(h)}function e(t){this.around=t}function a(t){return t&&t.spr instanceof e}function r(t){var e=[];for(var a in t)e.push(a);return e}function o(e,a){var r=e.weaver,o=e.bases,i=e.chains;for(var n in r)a[n]=t._stub(r[n],o,n,i)}var i,n=0,s="constructor",l="prototype",c={};return(i=function(t,e){for(var a in e)t[a]=e[a]})(t,{mix:i,delegate:function(t){return Object.create(t)},allKeys:r,Super:e,superCall:function(e){return t._makeSuper(e)},_makeSuper:function(t,a){var r=function(){};return r.spr=new(a||e)(t),r},_postprocess:function(t){return t},_error:function(t){throw Error("dcl: "+t)},_instantiate:function(t,e,a){var r=t.spr.around(e);return r.ctr=t.ctr,r},_extractChain:function(t,e,r){for(var o,i,n=t.length-1,h=[],u="around"==r;o=t[n];--n)((i=o._meta)?(i=i.ownProps).hasOwnProperty(e)&&(a(i=i[e])?u?i.spr.around:i=i.spr[r]:u):u&&(i=e==s?o:o[l][e])&&i!==c[e])&&(i.ctr=o,h.push(i));return h},_stubChain:function(t){var e,a=t.length;return a?1==a?(e=t[0],function(){e.apply(this,arguments)}):function(){for(var e=0;a>e;++e)t[e].apply(this,arguments)}:0},_stubSuper:function(e,r){for(var o,i=0,n=c[r];o=e[i];++i)n=a(o)?e[i]=t._instantiate(o,n,r):o;return r!=s?n:function(){n.apply(this,arguments)}},_stubChainSuper:function(e,r,o){for(var i,n,l=0,c=0;i=e[l];++l)a(i)&&(n=l-c,e[l]=t._instantiate(i,n?1==n?e[c]:r(e.slice(c,l)):0,o),c=l);return n=l-c,n?1==n&&o!=s?e[c]:r(c?e.slice(c):e):0},_stub:function(e,a,r,o){var i=o[r]=t._extractChain(a,r,"around");return(e?t._stubChainSuper(i,t._stubChain,r):t._stubSuper(i,r))||function(){}}}),t}),function(t){"undefined"!=typeof a?a("dcl/dcl",["./mini"],t):"undefined"!=typeof module?module.exports=t(e("./mini")):dcl=t(dcl)}(function(t){"use strict";function e(){}function a(e){return t._makeSuper(e,i)}function r(t,a,r){var o=t||e,i=a||e,n=r||e,s=function(){var t,e;o.apply(this,arguments);try{t=n.apply(this,arguments)}catch(a){t=a,e=!0}if(i.call(this,arguments,t),e)throw t;return t};return s.advices={before:t,after:a,around:r},s}function o(e){return function(a,r){var o,i=a._meta;i&&(o=+i.weaver[r]||0,o&&o!=e&&t._error("set chaining",r,a,e,o),i.weaver[r]=e)}}var i=t(t.Super,{constructor:function(){this.before=this.around.before,this.after=this.around.after,this.around=this.around.around}});return t.mix(t,{Advice:i,advise:a,before:function(e){return t.advise({before:e})},after:function(e){return t.advise({after:e})},around:t.superCall,chainBefore:o(1),chainAfter:o(2),isInstanceOf:function(t,e){if(t instanceof e)return!0;var a,r=t.constructor._meta;if(r)for(r=r.bases,a=r.length-1;a>=0;--a)if(r[a]===e)return!0;return!1},_stub:function(e,a,o,i){var n=i[o]=t._extractChain(a,o,"around"),s=t._extractChain(a,o,"before").reverse(),l=t._extractChain(a,o,"after");return n=e?t._stubChainSuper(n,1==e?function(e){return t._stubChain(e.reverse())}:t._stubChain,o):t._stubSuper(n,o),s.length||l.length?r(t._stubChain(s),t._stubChain(l),n):n||function(){}}}),t}),a("wcDocker/types",[],function(){var t={};return t.DOCK={MODAL:"modal",FLOAT:"float",TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",STACKED:"stacked"},t.LAYOUT={SIMPLE:"wcLayoutSimple",TABLE:"wcLayoutTable"},t.EVENT={INIT:"panelInit",LOADED:"dockerLoaded",UPDATED:"panelUpdated",VISIBILITY_CHANGED:"panelVisibilityChanged",BEGIN_DOCK:"panelBeginDock",END_DOCK:"panelEndDock",GAIN_FOCUS:"panelGainFocus",LOST_FOCUS:"panelLostFocus",CLOSING:"panelClosing",CLOSED:"panelClosed",PERSISTENT_CLOSED:"panelPersistentClosed",PERSISTENT_OPENED:"panelPersistentOpened",BUTTON:"panelButton",ATTACHED:"panelAttached",DETACHED:"panelDetached",MOVE_STARTED:"panelMoveStarted",MOVE_ENDED:"panelMoveEnded",MOVED:"panelMoved",RESIZE_STARTED:"panelResizeStarted",RESIZE_ENDED:"panelResizeEnded",RESIZED:"panelResized",ORDER_CHANGED:"panelOrderChanged",SCROLLED:"panelScrolled",SAVE_LAYOUT:"layoutSave",RESTORE_LAYOUT:"layoutRestore",CUSTOM_TAB_CHANGED:"customTabChanged",CUSTOM_TAB_CLOSED:"customTabClosed"},t.PANEL_PLACEHOLDER="__wcDockerPlaceholderPanel",t.COLLAPSED="__wcDockerCollapsedPanel",t.ORIENTATION={VERTICAL:!1,HORIZONTAL:!0},t.TAB={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},t}),a("wcDocker/base",["dcl/dcl"],function(t){return t(null,{getOptions:function(){return this._options||this.docker()._options||{}},option:function(t,e){return this.getOptions()[t]||e},instanceOf:function(t,e){return e=e||this,!(!e||-1==e.declaredClass.indexOf(t))},docker:function(t){for(var e=t||this._parent;e&&!e.instanceOf("wcDocker");)e=e._parent;return e},__getClass:function(t){return this.getOptions()[t+"Class"]}})}),a("wcDocker/panel",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcPanel",constructor:function(t,e,a){this.$container=null,this._parent=t,this.$icon=null,this.$title=null,this.$titleText=null,this.$loading=null,this._panelObject=null,this._initialized=!1,this._collapseDirection=void 0,this._type=e,this._title=e,this._titleVisible=!0,this._options=a,this._layout=null,this._buttonList=[],this._actualPos={x:.5,y:.5},this._actualSize={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._moveData={time:-1,timeout:!1,delta:150},this._size={x:-1,y:-1},this._minSize={x:100,y:100},this._maxSize={x:1/0,y:1/0},this._scroll={x:0,y:0},this._scrollable={x:!0,y:!0},this._collapsible=!0,this._overflowVisible=!1,this._moveable=!0,this._closeable=!0,this._resizeVisible=!0,this._isVisible=!1,this._events={},this.__init()},title:function(t){return"undefined"!=typeof t&&(t===!1?(this._titleVisible=!1,this.$titleText.html(this._type)):(this._title=t,this.$titleText.html(t)),this.$icon&&this.$titleText.prepend(this.$icon),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()),this._title},info:function(){return this.docker().panelTypeInfo(this._type)},layout:function(){return this._layout},focus:function(t){var e=this.docker();if(e){e.__focus(this._parent,t);for(var a=0;a"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon "+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},faicon:function(t){this.$icon||(this.$icon=$("
"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon fa fa-fw fa-"+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},scrollable:function(t,e){return"undefined"!=typeof t&&(this._scrollable.x=t?!0:!1,this._scrollable.y=e?!0:!1),{x:this._scrollable.x,y:this._scrollable.y}},scroll:function(t,e,a){return this.$container?("undefined"!=typeof t&&(a?this.$container.parent().stop().animate({scrollLeft:t,scrollTop:e},a):(this.$container.parent().scrollLeft(t),this.$container.parent().scrollTop(e))),{x:this.$container.parent().scrollLeft(),y:this.$container.parent().scrollTop()}):{x:0,y:0}},collapsible:function(t){return"undefined"!=typeof t&&(this._collapsible=t?!0:!1),this._collapsible},overflowVisible:function(t){return"undefined"!=typeof t&&(this._overflowVisible=t?!0:!1),this._overflowVisible},resizeVisible:function(t){return"undefined"!=typeof t&&(this._resizeVisible=t?!0:!1),this._resizeVisible},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t?!0:!1,this.$title.toggleClass("wcNotMoveable",!this._moveable)),this._moveable},closeable:function(t){return"undefined"!=typeof t&&(this._closeable=t?!0:!1,this._parent&&this._parent.__update()),this._closeable},close:function(){var t=this.docker();t&&t.__closePanel(this)},startLoading:function(t,e,a){if(!this.$loading){this.$loading=$('
'),this.$container.append(this.$loading);var r=$('
');"number"!=typeof e&&(e=.4),this.$loading.append(r);var o=$('
');if(this.$loading.append(o),t){var i=$(''+t+"");this.$loading.append(i)}"number"!=typeof a&&(a=1),this.docker().$loading&&(e=0,a=0),r.css("opacity",e),o.css("opacity",a),i&&i.css("opacity",a)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null,e.docker().__testLoadFinished()})}else this.$loading.remove(),this.$loading=null,this.docker().__testLoadFinished()},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)return void(this._events={});if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var a=0;a'),this.$titleText=$("
"+this._title+"
"),this.$title.append(this.$titleText),this._options.hasOwnProperty("title")&&this.title(this._options.title),this._options.icon&&this.icon(this._options.icon),this._options.faicon&&this.faicon(this._options.faicon)},__update:function(){var t=this.docker();if(t&&(this._layout.__update(),this.$container)){if(this._resizeVisible?this._parent.$frame.removeClass("wcHideOnResize"):this._parent.$frame.addClass("wcHideOnResize"),this._initialized)this.__trigger(e.EVENT.UPDATED);else{this._initialized=!0;var a=this;setTimeout(function(){a.__trigger(e.EVENT.INIT),t.__testLoadFinished()},0)}var r=this.$container.width(),o=this.$container.height();(this._actualSize.x!==r||this._actualSize.y!==o)&&(this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta),this.__trigger(e.EVENT.RESIZE_STARTED,{width:this._actualSize.x,height:this._actualSize.y})),this._actualSize.x=r,this._actualSize.y=o,this.__trigger(e.EVENT.RESIZED,{width:this._actualSize.x,height:this._actualSize.y}));var i=this.$container.offset();(this._actualPos.x!==i.left||this._actualPos.y!==i.top)&&(this._moveData.time=new Date,this._moveData.timeout||(this._moveData.timeout=!0,setTimeout(this.__moveEnd.bind(this),this._moveData.delta),this.__trigger(e.EVENT.MOVE_STARTED,{x:this._actualPos.x,y:this._actualPos.y})),this._actualPos.x=i.left,this._actualPos.y=i.top,this.__trigger(e.EVENT.MOVED,{x:this._actualPos.x,y:this._actualPos.y}))}},__resizeEnd:function(){new Date-this._resizeData.timea.x&&t.y>a.y&&t.xa.x&&t.y>a.y&&t.x').css("opacity",0).css("top",t.y+"px").css("left",t.x+"px").css("width",t.w+"px").css("height",t.h+"px"),this._anchorMouse={x:t.x-e.x,y:t.y-e.y},this._rect={x:-this._anchorMouse.x,y:-this._anchorMouse.y,w:t.w,h:t.h},$("body").append(this.$ghost),this.anchor(e,t)},__move:function(t){if(!this._anchor){var e=parseInt(this.$ghost.css("left")),a=parseInt(this.$ghost.css("top"));e=t.x+this._anchorMouse.x,a=t.y+this._anchorMouse.y,this.$ghost.css("left",e+"px"),this.$ghost.css("top",a+"px")}},__rect:function(){return this._rect},__destroy:function(){this.$ghost.stop().animate({opacity:0},{duration:175,complete:function(){$(this).remove()}})}});return a}),a("wcDocker/splitter",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcSplitter",constructor:function(t,e,a){this.$container=$(t),this._parent=e,this._orientation=a,this._pane=[!1,!1],this.$pane=[],this.$bar=null,this._pos=.5,this._posTarget=.5,this._pixelPos=-1,this._findBestPos=!1,this._anim=0,this._boundEvents=[],this.__init(),this.docker()._splitterList.push(this)},initLayouts:function(t,e){var a=t||"wcLayoutTable",r=new(this.docker().__getClass(a))(this.$pane[0],this);a=e||"wcLayoutTable";var o=new(this.docker().__getClass(a))(this.$pane[1],this);this.pane(0,r),this.pane(1,o)},orientation:function(t){return"undefined"==typeof t?this._orientation:void(this._orientation!=t&&(this._orientation=t,this._orientation?this.$bar.removeClass("wcWide").removeClass("wcSplitterBarH").addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.removeClass("wcTall").removeClass("wcSplitterBarV").addClass("wcWide").addClass("wcSplitterBarH"),this.$pane[0].css("top","").css("left","").css("width","").css("height",""),this.$pane[1].css("top","").css("left","").css("width","").css("height",""),this.$bar.css("top","").css("left","").css("width","").css("height",""),this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)))},minSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].minSize&&(t=this._pane[0].minSize()),this._pane[1]&&"function"==typeof this._pane[1].minSize&&(e=this._pane[1].minSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.max(t.y,e.y)):(t.y+=e.y,t.x=Math.max(t.x,e.x)),t):t?t:e?e:!1},maxSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].maxSize&&(t=this._pane[0].maxSize()),this._pane[1]&&"function"==typeof this._pane[1].maxSize&&(e=this._pane[1].maxSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.min(t.y,e.y)):(t.y+=e.y,t.x=Math.min(t.x,e.x)),t):t?t:e?e:!1},pos:function(t){return"undefined"!=typeof t&&(this._pos=this._posTarget=t,this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)),this._posTarget},animPos:function(t,e){this._posTarget=t;var a=this;this.$bar.queue(function(t){a._anim&&clearInterval(a._anim),a._anim=setInterval(function(){a._pos>a._posTarget&&(a._pos-=(a._pos-a._posTarget)/5,a._pos<=a._posTarget+.01&&(a._pos=a._posTarget)),a._pos=a._posTarget-.01&&(a._pos=a._posTarget)),a.__update(),a._pos==a._posTarget&&(e&&e(),t(),clearInterval(a._anim),a._anim=0)},5)}),this.$bar.dequeue()},pane:function(t,e){if(t>=0&&2>t){if("undefined"==typeof e)return this._pane[t];if(e)return this._pane[t]=e,e._parent=this,e.__container(this.$pane[t]),this._pane[0]&&this._pane[1]&&this.__update(),e;this._pane[t]&&(this._pane[t].__container(null),this._pane[t]=!1)}return!1},left:function(t){return this.pane(0,t)},right:function(t){return this.pane(1,t)},top:function(t){return this.pane(0,t)},bottom:function(t){return this.pane(1,t)},scrollable:function(t,e,a){return"undefined"!=typeof e&&this.$pane[t].toggleClass("wcScrollableX",e),"undefined"!=typeof a&&this.$pane[t].toggleClass("wcScrollableY",a),{x:this.$pane[t].hasClass("wcScrollableX"),y:this.$pane[t].hasClass("wcScrollableY")}},destroy:function(t){var e=this.docker();if(e){var a=this.docker()._splitterList.indexOf(this);a>-1&&this.docker()._splitterList.splice(a,1)}void 0===t||t?this.__destroy():this.__container(null)},__init:function(){if(this.$pane.push($('
')),this.$pane.push($('
')),this.$bar=$('
'),this._orientation?this.$bar.addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.addClass("wcWide").addClass("wcSplitterBarH"),this.__container(this.$container),this._parent&&this._parent.instanceOf("wcPanel")){this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.__update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;ta;++a)if(this._pane[a]&&this._pane[a].minSize&&this._pane[a].maxSize&&this._pane[a].maxSize()[t]-this._pane[a].minSize()[t]===0)return!0;return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?(this.$container.append(this.$pane[0]),this.$container.append(this.$pane[1]),this.$container.append(this.$bar)):(this.$pane[0].remove(), -this.$pane[1].remove(),this.$bar.remove()),this.$container)},__removeChild:function(t){if(this._pane[0]===t)this._pane[0]=!1;else{if(this._pane[1]!==t)return;this._pane[1]=!1}t&&(t.__container(null),t._parent=null)},__destroy:function(){for(this._anim&&(clearInterval(this._anim),this._anim=0),this.$bar.clearQueue();this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._pane[0]&&(this._pane[0].__destroy(),this._pane[0]=null),this._pane[1]&&(this._pane[1].__destroy(),this._pane[1]=null),this.__container(null),this._parent=!1}});return r}),a("wcDocker/frame",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a,r){this.$container=$(t),this._parent=a,this._isFloating=r,this.$frame=null,this.$title=null,this.$titleBar=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this.$collapse=null,this.$top=null,this.$bottom=null,this.$left=null,this.$right=null,this.$corner1=null,this.$corner2=null,this.$corner3=null,this.$corner4=null,this.$buttonBar=null,this.$shadower=null,this.$modalBlocker=null,this._titleVisible=!0,this._canScrollTabs=!1,this._tabOrientation=e.TAB.TOP,this._tabScrollPos=0,this._curTab=-1,this._panelList=[],this._buttonList=[],this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._size={x:400,y:400},this._lastSize={x:400,y:400},this._anchorMouse={x:0,y:0},this.__init()},pos:function(t,e,a){var r=this.$container.width(),o=this.$container.height();return"undefined"==typeof t?a?{x:this._pos.x*r,y:this._pos.y*o}:{x:this._pos.x,y:this._pos.y}:void(a?(this._pos.x=t/r,this._pos.y=e/o):(this._pos.x=t,this._pos.y=e))},initSize:function(){for(var t={x:-1,y:-1},e=0;e=e&&this._curTab--,this._panelList[e]._parent===this&&(this._panelList[e].__container(null),this._panelList[e]._parent=null),this._panelList.splice(e,1),t._isVisible=!1;break}return-1===this._curTab&&!this.collapse()&&this._panelList.length&&(this._curTab=0),this.__updateTabs(),this._panelList.length>0},panel:function(t,e){return"undefined"!=typeof t&&(this.isCollapser()&&t===this._curTab&&(this.collapse(),t=-1),t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab!==t&&this.collapse(),this._curTab=t,t>-1&&(this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.expand()),this.__updateTabs(e))),this._curTab>-1&&this._curTab'),this.$title=$('
'),this.$titleBar=$('
'),this.$tabBar=$('
'),this.$tabScroll=$('
'),this.$center=$('
'),this.$tabLeft=$('
<
'),this.$tabRight=$('
>
'),this.$close=$('
X
'),this.$collapse=$('
C
'),this.$buttonBar=$('
'),this.$tabButtonBar=$('
'),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$tabButtonBar),this.$frame.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$buttonBar.append(this.$collapse),this.$frame.append(this.$center),this._isFloating&&(this.$top=$('
').css("top","-4px").css("left","0px").css("right","0px"),this.$bottom=$('
').css("bottom","-4px").css("left","0px").css("right","0px"),this.$left=$('
').css("left","-4px").css("top","0px").css("bottom","0px"),this.$right=$('
').css("right","-4px").css("top","0px").css("bottom","0px"),this.$corner1=$('
').css("top","-4px").css("left","-4px"),this.$corner2=$('
').css("top","-4px").css("right","-4px"),this.$corner3=$('
').css("bottom","-4px").css("right","-4px"),this.$corner4=$('
').css("bottom","-4px").css("left","-4px"),this.$frame.append(this.$top),this.$frame.append(this.$bottom),this.$frame.append(this.$left),this.$frame.append(this.$right),this.$frame.append(this.$corner1),this.$frame.append(this.$corner2),this.$frame.append(this.$corner3),this.$frame.append(this.$corner4)),this.__container(this.$container),this._isFloating&&this.$frame.addClass("wcFloating"),this.$center.scroll(this.__scrolled.bind(this))},__update:function(){var t=this.$container.width(),e=this.$container.height();if(this._isFloating){var a=this._pos.x*t-this._size.x/2,r=this._pos.y*e-this._size.y/2;0>r&&(r=0),a+this._size.x/2<0&&(a=-this._size.x/2),a+this._size.x/2>t&&(a=t-this._size.x/2),r+parseInt(this.$center.css("top"))>e&&(r=e-parseInt(this.$center.css("top"))),this.$frame.css("left",a+"px"),this.$frame.css("top",r+"px"),this.$frame.css("width",this._size.x+"px"),this.$frame.css("height",this._size.y+"px")}(t!==this._lastSize.x||e!==this._lastSize.y)&&(this._lastSize.x=t,this._lastSize.y=e,this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta))),this.__onTabChange()},__resizeEnd:function(){this.__updateTabs(),new Date-this._resizeData.time1||this._isFloating||this.isCollapser();this.isCollapser()?this.$tabBar.addClass("wcNotMoveable"):(this.$titleBar.removeClass("wcNotMoveable"),this.$tabBar.removeClass("wcNotMoveable")),this.$center.children(".wcPanelTabContent").each(function(){$(this).addClass("wcPanelTabContentHidden wcPanelTabUnused")}),this._titleVisible=!0,this.$title.html("");for(var l=0;l'),this.$center.append(u)),c.__container(u),c._parent=this;var d=this._curTab===l;if(c.isVisible()!==d&&r.push({panel:c,isVisible:d}),u.removeClass("wcPanelTabUnused"),d&&(h&&h.addClass("wcPanelTabActive"),u.removeClass("wcPanelTabContentHidden"),this.$title.html(c.title()),c.$icon)){var f=c.$icon.clone();this.$title.prepend(f)}h&&(i=a(h)-n,o.push(i),i+=h.outerWidth())}var p=this.$titleBar,b=0;if(this._titleVisible){switch(this.$frame.parent()||this.$center.css("top",""),this._tabOrientation){case e.TAB.TOP:this.$frame.prepend(this.$tabBar),this.$titleBar.remove(),this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),s?this.$title.remove():this.$tabBar.prepend(this.$title),p=this.$tabBar,this.$center.css("left",0).css("right",0).css("bottom",0),b=this.$center.width();break;case e.TAB.BOTTOM:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("left",0).css("right",0).css("bottom",_)}else this.$tabBar.remove();b=this.$center.width();break;case e.TAB.LEFT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("left",_).css("right",0).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height();break;case e.TAB.RIGHT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("left",0).css("right",_).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height()}s||this.$center.css("left",0).css("right",0).css("bottom",0)}else this.$titleBar.remove(),this.$tabBar.remove(),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",0);if(this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()}),this._titleVisible){var v=this.__onTabChange();if(t)for(var l=0;lm?(this._tabScrollPos=m-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):w-g>T&&(this._tabScrollPos=w-T+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,i>b-v){this._canScrollTabs=this._titleVisible,this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),v+=this.$tabRight.outerWidth(),v+=this.$tabLeft.outerWidth());var x=i-(b-v)/2;if(this._tabScrollPos>x)for(var y=this.$tabScroll.children(),l=0;lx){this._tabScrollPos=i-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast");for(var l=0;l.5&&h.bottom>.95?s=e.DOCK.BOTTOM:h.left<=.05?s=e.DOCK.LEFT:h.right>=.95?s=e.DOCK.RIGHT:h.bottom>.95&&(s=e.DOCK.BOTTOM)}var u="",d="";switch(s){case e.DOCK.LEFT:u="left side.",d="wcCollapseLeft";break;case e.DOCK.RIGHT:u="right side.",d="wcCollapseRight";break;case e.DOCK.BOTTOM:u="bottom.",d="wcCollapseBottom"}if(u){var n=this.$collapse.children("div");n[0].className="fa fa-sign-in",n.addClass(d),n.addClass("wcCollapsible"),this.$collapse.show(),this.$collapse.attr("title","Collapse this panel into the "+u),t+=this.$collapse.outerWidth()}}for(var f=0;f"),_=p.className;b.addClass("wcFrameButton"),p.isTogglable&&(b.addClass("wcFrameButtonToggler"),p.isToggled&&(b.addClass("wcFrameButtonToggled"),_=p.toggleClassName||_)),b.attr("title",p.tip),b.data("name",p.name),b.text(p.text),_&&b.prepend($('
')),this._buttonList.push(b),this.$buttonBar.append(b),t+=b.outerWidth()}}if(this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),a+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth()),this._titleVisible)switch(this.$buttonBar.css("right",""),this._tabOrientation){case e.TAB.RIGHT:this.$buttonBar.css("right",this.$tabBar.height());case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()+this.$tabBar.height());break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width())}r.__update(),this.$center.scrollLeft(r._scroll.x),this.$center.scrollTop(r._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),this.$tabButtonBar.css("min-width",a).css("width",a),this._tabOrientation===e.TAB.TOP?(this.$tabButtonBar.css("right",t),t+a):(this.$tabButtonBar.css("right",0),a)},__scrolled:function(){var t=this.panel();t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop(),t.__trigger(e.EVENT.SCROLLED)},__focus:function(t){if(t){var e=$('
');this.$frame.append(e),e.animate({opacity:1},100).animate({opacity:0},100).animate({opacity:.6},50).animate({opacity:0},50).queue(function(t){e.remove(),t()})}},__move:function(t){var e=this.$container.width(),a=this.$container.height();this._pos.x=(t.x+this._anchorMouse.x)/e,this._pos.y=(t.y+this._anchorMouse.y)/a},__anchorMove:function(t){var e=this.$container.width(),a=this.$container.height();this._anchorMouse.x=this._pos.x*e-t.x,this._anchorMouse.y=this._pos.y*a-t.y},__tabMove:function(t,e){if(t>=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},__checkAnchorDrop:function(t,e,a,r,o,i){var n=this.panel();return n&&n.moveable()?n.layout().__checkAnchorDrop(t,e&&this._tabOrientation,a,!this._isFloating&&!this.isCollapser()&&r,this.$frame,n.moveable()&&n.title(),o,this.isCollapser()?this._tabOrientation:void 0,i):!1},__resize:function(t,e){var a=this.$container.width(),r=this.$container.height(),o=this.$container.offset();e.x-=o.left,e.y-=o.top;for(var i=this.minSize(),n=this.maxSize(),s={x:this._pos.x*a-this._size.x/2,y:this._pos.y*r-this._size.y/2},l=0;ln.y&&(s.y+=this._size.y-n.y,this._size.y=n.y);break;case"bottom":this._size.y=e.y-4-s.y,this._size.yn.y&&(this._size.y=n.y);break;case"left":this._size.x+=s.x-e.x-2,s.x=e.x+2,this._size.xn.x&&(s.x+=this._size.x-n.x,this._size.x=n.x);break;case"right":this._size.x=e.x-4-s.x,this._size.xn.x&&(this._size.x=n.x)}this._pos.x=(s.x+this._size.x/2)/a,this._pos.y=(s.y+this._size.y/2)/r}},__shadow:function(t){if(t)this.$shadower||(this.$shadower=$('
'),this.$frame.append(this.$shadower),this.$shadower.animate({opacity:.5},300));else if(this.$shadower){var e=this;this.$shadower.animate({opacity:0},300).queue(function(t){e.$shadower.remove(),e.$shadower=null,t()})}},__rect:function(){if(this.isCollapser())return this._parent.__rect();var t=this.$frame.offset(),e=this.$frame.width(),a=this.$frame.height();return{x:t.left,y:t.top,w:e,h:a}},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._curTab=-1;for(var t=0;t'),this.__container(this.$container),this._frame=new(this.docker().__getClass("wcFrame"))(this.$frame,this,!1),this._frame.tabOrientation(this._position)},__update:function(t){this.__adjustCollapsedSize(),this._frame.__update()},__adjustCollapsedSize:function(){this._frame._panelList.length?(this._closeSize=this._frame.$tabBar.outerHeight(),this._parent.$bar.removeClass("wcSplitterHidden")):(this._closeSize=0,this._parent.$bar.addClass("wcSplitterHidden"))},__rect:function(){var t=this.$frame.offset(),a=this.$frame.width(),r=this.$frame.height(),o=this._frame.panel();return o&&(this._position===e.DOCK.BOTTOM?(r=o._size.y,a/=3):(a=o._size.x,r/=3)),{x:t.left,y:t.top,w:a,h:r}},__save:function(){var t={};return t.closeSize=this._closeSize,t.frame=this._frame.__save(),t},__restore:function(t,e){this._closeSize=t.closeSize,this._frame.__restore(t.frame,e),this.__adjustCollapsedSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._frame&&(this._frame.__destroy(),this._frame=null),this.__container(null),this._parent=null}});return o}),a("wcDocker/collapser",["dcl/dcl","./types","./splitter","./drawer","./base"],function(t,e,a,r,o){var i=t(o,{declaredClass:"wcCollapser",constructor:function(t,a,r){this.$container=$(t),this.$frame=null,this._position=r,this._parent=a,this._splitter=null,this._drawer=null,this._size=0,this._orientation=this._position===e.DOCK.LEFT||this._position===e.DOCK.RIGHT?e.ORIENTATION.HORIZONTAL:e.ORIENTATION.VERTICAL,this.__init()},collapse:function(t){this._drawer.collapse()},expand:function(){this._drawer.expand()},isExpanded:function(){return this._drawer.isExpanded()},minSize:function(){return{x:this._size,y:this._size}},maxSize:function(){var t=this._orientation===e.ORIENTATION.HORIZONTAL?!0:!1;return{x:t?this._size:1/0,y:t?1/0:this._size}},__init:function(){this.$frame=$('
'),this.__container(this.$container);var t=this.docker();switch(this._splitter=new(this.docker().__getClass("wcSplitter"))(t.$container,this,this._orientation),this._drawer=new(this.docker().__getClass("wcDrawer"))(t.$transition,this._splitter,this._position),this._position){case e.DOCK.LEFT:this._splitter.pane(0,this._drawer),this._splitter.$pane[1].remove(),this._splitter.$pane[0].addClass("wcDrawer"),this._splitter.pos(0);break;case e.DOCK.RIGHT:case e.DOCK.BOTTOM:this._splitter.pane(1,this._drawer),this._splitter.$pane[0].remove(),this._splitter.$pane[1].addClass("wcDrawer"),this._splitter.pos(1)}this._parent.$bar.addClass("wcSplitterHidden")},__update:function(t){this._splitter.__update(),this.__adjustSize()},__adjustSize:function(){this._drawer._frame._panelList.length?this._size=this._drawer._frame.$tabBar.outerHeight():this._size=0},__rect:function(){return this._drawer.__rect()},__save:function(){var t={};return t.size=this._size,t.drawer=this._drawer.__save(),t},__restore:function(t,e){this._size=t.size,this._drawer.__restore(t.drawer,e),this.__adjustSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._splitter&&(this._splitter.__destroy(),this._splitter=null,this._frame=null),this.__container(null),this._parent=null}});return i}),a("wcDocker/layout",["dcl/dcl","./types"],function(t,e){var a=t(null,{declaredClass:"wcLayout",constructor:function(t,e){this.$container=$(t),this._parent=e,this.$elem=null,this.__init()},addItem:function(t){},clear:function(){},scene:function(){return this.$elem},__init:function(){},__update:function(){},__checkAnchorDrop:function(t,a,r,o,i,n,s,l,c){function h(t,e,a){return"number"==typeof t||"string"==typeof t&&-1!==t.indexOf("px",t.length-2)?(t=parseInt(t),{x:t,y:t}):"string"==typeof t&&-1!==t.indexOf("%",t.length-1)?(t=parseInt(t)/100,{x:e*t,y:a*t}):{x:0,y:0}}var u=this._parent.docker(),d=i.outerWidth(),f=i.outerHeight(),p=i.offset(),b=i.find(".wcFrameTitleBar").height();n||(b=0);var _=h(u._options.edgeAnchorSize,u.$container.outerWidth(),u.$container.outerHeight()),v=h(u._options.panelAnchorSize,d,f);if(n){if((!l||l===e.TAB.TOP)&&t.y>=p.top&&t.y<=p.top+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:b-2,loc:e.DOCK.STACKED,tab:e.TAB.TOP,item:this,self:a===e.TAB.TOP||s&&a}),!0;if(u._canOrientTabs){if((!l||l===e.TAB.BOTTOM)&&t.y>=p.top+f-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+f-b-2,w:d,h:b,loc:e.DOCK.STACKED,tab:e.TAB.BOTTOM,item:this,self:a===e.TAB.BOTTOM}),!0;if((!l||l===e.TAB.LEFT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:b-2,h:f,loc:e.DOCK.STACKED,tab:e.TAB.LEFT,item:this,self:a===e.TAB.LEFT}),!0;if((!l||l===e.TAB.RIGHT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left+d-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+d-b-2,y:p.top-2,w:b,h:f,loc:e.DOCK.STACKED,tab:e.TAB.RIGHT,item:this,self:a===e.TAB.RIGHT}),!0}}if(c&&r._outer&&r._inner){var m=r._outer.$container.outerWidth(),w=r._outer.$container.outerHeight(),g=r._outer.$container.offset();if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+b&&t.x<=g.left+b+_.x)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.LEFT,item:r._inner,self:!1}),!0;if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+m-_.x-b&&t.x<=g.left+m-b)return r.anchor(t,{x:g.left+m-m/3-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.RIGHT,item:r._inner,self:!1}),!0;if(t.y>=g.top+b&&t.y<=g.top+b+_.y&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m,h:w/3,loc:e.DOCK.TOP,item:r._inner,self:!1}),!0;if(t.y>=g.top+w-b-_.y&&t.y<=g.top+w-b&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top+w-w/3-2,w:m,h:w/3,loc:e.DOCK.BOTTOM,item:r._inner,self:!1}),!0}if(!o)return!1;if(this._parent&&this._parent.instanceOf("wcPanel")&&this._parent._isPlaceholder)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(f>d){if(t.y>=p.top&&t.y<=p.top+b+v.y&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}if(t.y>=p.top&&t.y<=p.top+f){if(t.x>=p.left&&t.x<=p.left+v.x+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.LEFT,item:this,self:!1}),!0;if(t.x>=p.left+d-v.x-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+.5*d-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.RIGHT,item:this,self:!1}),!0}if(d>=f){if(t.y>=p.top&&t.y<=p.top+v.y+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$elem):this.$elem.remove(),this.$container)},__destroy:function(){this.__container(null),this._parent=null,this.clear(),this.$elem.remove(),this.$elem=null}});return a}),a("wcDocker/layoutsimple",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutSimple",addItem:function(t){this.$elem.append(t)},clear:function(){this.$elem.remove(),this.$elem=null,this.__init()},__init:function(){this.$elem=$('
'),this.__container(this.$container)},__update:function(){}});return r}),a("wcDocker/layouttable",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutTable",addItem:function(t,e,a,r,o){return("undefined"==typeof e||0>e)&&(e=0),("undefined"==typeof a||0>a)&&(a=0),("undefined"==typeof r||0>=r)&&(r=1),("undefined"==typeof o||0>=o)&&(o=1),this.__resizeGrid(e+r-1,a+o-1),(r>1||o>1)&&!this.__mergeGrid(e,a,r,o)?!1:(this._grid[a][e].$el.append($(t)),this.item(e,a))},item:function(t,e){if(e>=this._grid.length)return!1;if(t>=this._grid[e].length)return!1;var a=this,r={$:a._grid[e][t].$el,css:function(o,i){if(a._grid[e][t].$el){if(void 0===i)return a._grid[e][t].$el.css(o);a._grid[e][t].$el.css(o,i)}return r},stretch:function(o,i){return a.itemStretch(t,e,o,i),r}};return r},itemStretch:function(t,e,a,r){var o=this._batchProcess;this._batchProcess=!0,this.__resizeGrid(t,e);var i=this._grid[e][t];return i.x<0||i.y<0?!1:(void 0!==a&&(i.sx=a),void 0!==r&&(i.sy=r),this._batchProcess=o,o||this.__resizeGrid(0,0),!0)},clear:function(){var t=this.showGrid(),e=this.gridSpacing(),a=this.gridAlternate();this.$elem.remove(),this.__init(),this.showGrid(t),this.gridSpacing(e),this.gridAlternate(a),this._grid=[]},startBatch:function(){this._batchProcess=!0},finishBatch:function(){this._batchProcess=!1,this.__resizeGrid(0,0)},showGrid:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGrid",t),this.$elem.hasClass("wcLayoutGrid")},gridSpacing:function(t){return"undefined"!=typeof t&&this.$elem.css("border-spacing",t+"px"),parseInt(this.$elem.css("border-spacing"))},gridAlternate:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGridAlternate",t),this.$elem.hasClass("wcLayoutGridAlternate")},__init:function(){this.$elem=$('
'),this.$elem.append($("")),this._grid=[],this.__container(this.$container)},__update:function(){},__resizeGrid:function(t,e){for(var a=0;e>=a;++a){if(this._grid.length<=a){var r=[];r.$row=$(""),this._grid.push(r)}for(var o=0;t>=o;++o)this._grid[a].length<=o&&this._grid[a].push({$el:$(""),x:0,y:0,sx:"",sy:""})}if(!this._batchProcess){var i=this.$elem.find("tbody");$(".wcDockerTransition").append(i);for(var n=$(""),a=0;ao;++o)for(var i=0;a>i;++i){var n=this._grid[e+o][t+i];if(!n.$el||0!==n.x||0!==n.y)return!1}var n=this._grid[e][t];a>1&&(n.$el.attr("colspan",""+a),n.x=a-1),r>1&&(n.$el.attr("rowspan",""+r), -n.y=r-1);for(var o=0;r>o;++o)for(var i=0;a>i;++i)if(0!==o||0!==i){var n=this._grid[e+o][t+i];n.$el.remove(),n.$el=null,n.x=-i,n.y=-o}return!0}});return r}),a("wcDocker/tabframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcTabFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a){this.$container=$(t),this._parent=a,this.$frame=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this._tabOrientation=e.TAB.TOP,this._canScrollTabs=!1,this._tabScrollPos=0,this._curTab=-1,this._layoutList=[],this._moveable=!0,this._boundEvents=[],this.__init()},update:function(){var t=this.$center.scrollTop();this.__updateTabs(),this.$center.scrollTop(t)},destroy:function(){this.__destroy()},tabCount:function(){return this._layoutList.length},tabOrientation:function(t){return void 0!==t&&this._tabOrientation!==t&&this.docker()._canOrientTabs&&(this._tabOrientation=t,this.__updateTabs(),this.__updateTabs()),this._tabOrientation},addTab:function(t,e,a){var r=a||"wcLayoutTable",o=new(this.docker().__getClass(r))(".wcDockerTransition",this._parent);return o.name=t,o._scrollable={x:!0,y:!0},o._scroll={x:0,y:0},o._closeable=!1,o._overflowVisible=!1,"undefined"==typeof e||-1>=e?this._layoutList.push(o):this._layoutList.splice(e,0,o),-1===this._curTab&&this._layoutList.length&&(this._curTab=0),this.__updateTabs(),o},removeTab:function(t){if(t>-1&&t=t&&(this._curTab--,this._curTab<0&&(this._curTab=0)),this.__updateTabs(),this._parent.__trigger(e.EVENT.CUSTOM_TAB_CLOSED,{obj:this,name:a,index:t}),!0}return!1},tab:function(t,a){if("undefined"!=typeof t&&t>-1&&t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab=t,this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.__updateTabs(a);var r=this._layoutList[this._curTab].name;this._parent.__trigger(e.EVENT.CUSTOM_TAB_CHANGED,{obj:this,name:r,index:t})}return this._curTab},layout:function(t){return t>-1&&t=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t),this._moveable},closeable:function(t,e){if(t>-1&&t-1&&t-1&&t-1&&t-1&&t")),a.$icon.removeClass(),a.$icon.addClass("wcTabIcon "+e)}},faicon:function(t,e){if(t>-1&&t")),a.$icon.removeClass(),a.$icon.addClass("fa fa-fw fa-"+e)}},__init:function(){this.$frame=$('
'),this.$tabBar=$('
'),this.$tabScroll=$('
'),this.$center=$('
'),this.$tabLeft=$('
<
'),this.$tabRight=$('
>
'),this.$close=$('
X
'),this.$buttonBar=$('
'),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$frame.append(this.$center),this.$frame.append(this.$tabBar),this.__container(this.$container),this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;t
'+this._layoutList[n].name+"
");this._moveable&&s.addClass("wcCustomTabMoveable"),this.$tabScroll.append(s),this._layoutList[n].$icon&&s.find("div").prepend(this._layoutList[n].$icon);var l=this.$center.children('.wcPanelTabContent[id="'+n+'"]');l.length||(l=$('
'),this.$center.append(l)),this._layoutList[n].__container(l),this._layoutList[n]._parent=this;var c=this._curTab===n;l.removeClass("wcPanelTabUnused"),c&&(s.addClass("wcPanelTabActive"),l.removeClass("wcPanelTabContentHidden")),o=a(s)-i,r.push(o),o+=s.outerWidth()}var h=0,u=this.$tabBar.height();switch(this._tabOrientation){case e.TAB.TOP:this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),this.$center.css("top",u).css("left",0).css("right",0).css("bottom",0),h=this.$center.width();break;case e.TAB.BOTTOM:this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",u),h=this.$center.width();break;case e.TAB.LEFT:this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("top",0).css("left",u).css("right",0).css("bottom",0),h=this.$center.height();break;case e.TAB.RIGHT:this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("top",0).css("left",0).css("right",u).css("bottom",0),h=this.$center.height()}this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()});var d=this.__onTabChange();if(t)for(var n=0;nf?(this._tabScrollPos=f-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):p-b>_&&(this._tabScrollPos=p-_+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,o>h-d){this._canScrollTabs=!0,this.$buttonBar.append(this.$tabRight),this.$buttonBar.append(this.$tabLeft),d+=this.$tabRight.outerWidth(),d+=this.$tabLeft.outerWidth();var v=o-(h-d)/2;if(this._tabScrollPos>v)for(var m=this.$tabScroll.children(),n=0;nv){this._tabScrollPos=o-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast")},__onTabChange:function(){var t=0,a=this.layout(this._curTab);if(a){this.$center.toggleClass("wcScrollableX",a._scrollable.x),this.$center.toggleClass("wcScrollableY",a._scrollable.y),this.$center.toggleClass("wcOverflowVisible",a._overflowVisible),this.$tabLeft.remove(),this.$tabRight.remove(),a._closeable?(this.$close.show(),t+=this.$close.outerWidth()):this.$close.hide(),this._canScrollTabs&&(this.$tabBar.append(this.$tabRight),this.$tabBar.append(this.$tabLeft),t+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth());var r=this.fitContents(this._curTab);if(r.x){var o=a.scene().outerWidth();(this._tabOrientation===e.TAB.LEFT||this._tabOrientation===e.TAB.RIGHT)&&(o+=this.$tabScroll.height()),this.$container.css("width",o)}else this.$container.css("width","");if(r.y){var i=a.scene().outerHeight();(this._tabOrientation===e.TAB.TOP||this._tabOrientation===e.TAB.BOTTOM)&&(i+=this.$tabScroll.height()),this.$container.css("height",i)}else this.$container.css("height","");switch(this._tabOrientation){case e.TAB.RIGHT:case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()||"100%");break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width()||"100%")}this.$center.scrollLeft(a._scroll.x),this.$center.scrollTop(a._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),t},__scrolled:function(){var t=this.layout(this._curTab);t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){var t=this.docker();if(t){var e=t._tabList.indexOf(this);e>-1&&t._tabList.splice(e,1)}for(;this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._curTab=-1;for(var a=0;ae&&!i||!o||a&&!n&&s||r&&s)return 1;if(e>t&&!a||!s||i&&!r&&o||n&&o)return-1}return 0}function e(t,e,a){for(var r=t.length,o=a?r:-1;a?o--:++o-1;);return a}function s(t,e){for(var a=t.length;a--&&e.indexOf(t.charAt(a))>-1;);return a}function l(e,a){return t(e.criteria,a.criteria)||e.index-a.index}function c(e,a,r){for(var o=-1,i=e.criteria,n=a.criteria,s=i.length,l=r.length;++o=l)return c;var h=r[o];return c*("asc"===h||h===!0?1:-1)}}return e.index-a.index}function h(t){return Kt[t]}function u(t){return Wt[t]}function d(t,e,a){return e?t=Ut[t]:a&&(t=qt[t]),"\\"+t}function f(t){return"\\"+qt[t]}function p(t,e,a){for(var r=t.length,o=e+(a?0:-1);a?o--:++o=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var a=-1,r=t.length,o=-1,i=[];++ae,o=a?t.length:0,i=Ua(0,o,this.__views__),n=i.start,s=i.end,l=s-n,c=r?s:n-1,h=this.__iteratees__,u=h.length,d=0,f=Sn(l,this.__takeCount__);if(!a||I>o||o==l&&f==l)return oa(t,this.__actions__);var p=[];t:for(;l--&&f>d;){c+=e;for(var b=-1,_=t[c];++b=I?_a(e):null,c=e.length;l&&(n=Jt,s=!1,e=l);t:for(;++ia&&(a=-a>o?0:o+a),r=r===y||r>o?o:+r||0,0>r&&(r+=o),o=a>r?0:r>>>0,a>>>=0;o>a;)t[a++]=e;return t}function Fe(t,e){var a=[];return Nn(t,function(t,r,o){e(t,r,o)&&a.push(t)}),a}function Le(t,e,a,r){var o;return a(t,function(t,a,i){return e(t,a,i)?(o=r?a:t,!1):void 0}),o}function Oe(t,e,a,r){r||(r=[]);for(var o=-1,i=t.length;++or;)t=dr(t)[e[r++]];return r&&r==o?t:y}}function He(t,e,a,r,o,i){return t===e?!0:null==t||null==e||!zo(t)&&!b(e)?t!==t&&e!==e:Ie(t,e,He,a,r,o,i)}function Ie(t,e,a,r,o,i,n){var s=ks(t),l=ks(e),c=W,h=W;s||(c=nn.call(t),c==K?c=X:c!=X&&(s=Go(t))),l||(h=nn.call(e),h==K?h=X:h!=X&&(l=Go(e)));var u=c==X&&!ee(t),d=h==X&&!ee(e),f=c==h;if(f&&!s&&!u)return Ma(t,e,c);if(!o){var p=u&&rn.call(t,"__wrapped__"),b=d&&rn.call(e,"__wrapped__");if(p||b)return a(p?t.value():t,b?e.value():e,r,o,i,n)}if(!f)return!1;i||(i=[]),n||(n=[]);for(var _=i.length;_--;)if(i[_]==t)return n[_]==e;i.push(t),n.push(e);var v=(s?Va:Ra)(t,e,a,r,o,i,n);return i.pop(),n.pop(),v}function Ve(t,e,a){var r=e.length,o=r,i=!a;if(null==t)return!o;for(t=dr(t);r--;){var n=e[r];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}for(;++re&&(e=-e>o?0:o+e),a=a===y||a>o?o:+a||0,0>a&&(a+=o),o=e>a?0:a-e>>>0,e>>>=0;for(var i=Ni(o);++r=I,l=s?_a():null,c=[];l?(o=Jt,n=!1):(s=!1,l=e?[]:c);t:for(;++a=o){for(;o>r;){var i=r+o>>>1,n=t[i];(a?e>=n:e>n)&&null!==n?r=i+1:o=i}return o}return na(t,e,Fi,a)}function na(t,e,a,r){e=a(e);for(var o=0,i=t?t.length:0,n=e!==e,s=null===e,l=e===y;i>o;){var c=Tn((o+i)/2),h=a(t[c]),u=h!==y,d=h===h;if(n)var f=d||r;else f=s?d&&u&&(r||null!=h):l?d&&(r||u):null==h?!1:r?e>=h:e>h;f?o=c+1:i=c}return Sn(i,En)}function sa(t,e,a){if("function"!=typeof t)return Fi;if(e===y)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 3:return function(a,r,o){return t.call(e,a,r,o)};case 4:return function(a,r,o,i){return t.call(e,a,r,o,i)};case 5:return function(a,r,o,i,n){return t.call(e,a,r,o,i,n)}}return function(){return t.apply(e,arguments)}}function la(t){var e=new cn(t.byteLength),a=new vn(e);return a.set(new vn(t)),e}function ca(t,e,a){for(var r=a.length,o=-1,i=Cn(t.length-r,0),n=-1,s=e.length,l=Ni(s+i);++n2?a[o-2]:y,n=o>2?a[2]:y,s=o>1?a[o-1]:y;for("function"==typeof i?(i=sa(i,s,5),o-=2):(i="function"==typeof s?s:y,o-=i?1:0),n&&tr(a[0],a[1],n)&&(i=3>o?y:i,o=1);++r-1?r[n]:y}return Le(r,o,t)}}function ya(t){return function(a,r,o){return a&&a.length?(r=Na(r,o,3),e(a,r,t)):-1}}function Ba(t){return function(e,a,r){return a=Na(a,r,3),Le(e,a,t,!0)}}function Ca(t){return function(){for(var e,a=arguments.length,r=t?a:-1,o=0,i=Ni(a);t?r--:++r=I)return e.plant(r).value();for(var o=0,n=a?i[o].apply(this,t):r;++ow){var $=s?oe(s):y,P=Cn(c-w,0),F=p?B:y,A=p?y:B,E=p?T:y,D=p?y:T;e|=p?L:O,e&=~(p?O:L),b||(e&=~(C|S));var k=[t,e,a,E,F,D,A,$,l,P],z=Ea.apply(y,k);return ar(t)&&Zn(z,k),z.placeholder=x,z}}var H=d?a:this,I=f?H[t]:t;return s&&(T=cr(T,s)),u&&l=e||!yn(e))return"";var o=e-r;return a=null==a?" ":a+"",mi(a,wn(o/a.length)).slice(0,o)}function ka(t,e,a,r){function o(){for(var e=-1,s=arguments.length,l=-1,c=r.length,h=Ni(c+s);++ll))return!1;for(;++s-1&&t%1==0&&e>t}function tr(t,e,a){if(!zo(a))return!1;var r=typeof e;if("number"==r?Ja(a)&&Qa(e,a.length):"string"==r&&e in a){var o=a[e];return t===t?t===o:o!==o}return!1}function er(t,e){var a=typeof t;if("string"==a&&yt.test(t)||"number"==a)return!0;if(ks(t))return!1;var r=!xt.test(t);return r||null!=e&&t in dr(e)}function ar(t){var e=Ka(t),a=_[e];if("function"!=typeof a||!(e in et.prototype))return!1;if(t===a)return!0;var r=Un(a);return!!r&&t===r[0]}function rr(t){return"number"==typeof t&&t>-1&&t%1==0&&kn>=t}function or(t){return t===t&&!zo(t)}function ir(t,e){var a=t[1],r=e[1],o=a|r,i=A>o,n=r==A&&a==P||r==A&&a==E&&t[7].length<=e[8]||r==(A|E)&&a==P;if(!i&&!n)return t;r&C&&(t[2]=e[2],o|=a&C?0:$);var s=e[3];if(s){var l=t[3];t[3]=l?ca(l,s,e[4]):oe(s),t[4]=l?v(t[3],N):oe(e[4])}return s=e[5],s&&(l=t[5],t[5]=l?ha(l,s,e[6]):oe(s),t[6]=l?v(t[5],N):oe(e[6])),s=e[7],s&&(t[7]=oe(s)),r&A&&(t[8]=null==t[8]?e[8]:Sn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function nr(t,e){return t===y?e:zs(t,e,nr)}function sr(t,e){t=dr(t);for(var a=-1,r=e.length,o={};++ar;)n[++i]=Ye(t,r,r+=e);return n}function _r(t){for(var e=-1,a=t?t.length:0,r=-1,o=[];++ee?0:e)):[]}function mr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1), +this.$pane[1].remove(),this.$bar.remove()),this.$container)},__removeChild:function(t){if(this._pane[0]===t)this._pane[0]=!1;else{if(this._pane[1]!==t)return;this._pane[1]=!1}t&&(t.__container(null),t._parent=null)},__destroy:function(){for(this._anim&&(clearInterval(this._anim),this._anim=0),this.$bar.clearQueue();this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._pane[0]&&(this._pane[0].__destroy(),this._pane[0]=null),this._pane[1]&&(this._pane[1].__destroy(),this._pane[1]=null),this.__container(null),this._parent=!1}});return r}),a("wcDocker/frame",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a,r){this.$container=$(t),this._parent=a,this._isFloating=r,this.$frame=null,this.$title=null,this.$titleBar=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this.$collapse=null,this.$top=null,this.$bottom=null,this.$left=null,this.$right=null,this.$corner1=null,this.$corner2=null,this.$corner3=null,this.$corner4=null,this.$buttonBar=null,this.$shadower=null,this.$modalBlocker=null,this._titleVisible=!0,this._canScrollTabs=!1,this._tabOrientation=e.TAB.TOP,this._tabScrollPos=0,this._curTab=-1,this._panelList=[],this._buttonList=[],this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._size={x:400,y:400},this._lastSize={x:400,y:400},this._anchorMouse={x:0,y:0},this.__init()},pos:function(t,e,a){var r=this.$container.width(),o=this.$container.height();return"undefined"==typeof t?a?{x:this._pos.x*r,y:this._pos.y*o}:{x:this._pos.x,y:this._pos.y}:void(a?(this._pos.x=t/r,this._pos.y=e/o):(this._pos.x=t,this._pos.y=e))},initSize:function(){for(var t={x:-1,y:-1},e=0;e=e&&this._curTab--,this._panelList[e]._parent===this&&(this._panelList[e].__container(null),this._panelList[e]._parent=null),this._panelList.splice(e,1),t._isVisible=!1;break}return-1===this._curTab&&!this.collapse()&&this._panelList.length&&(this._curTab=0),this.__updateTabs(),this._panelList.length>0},panel:function(t,e){return"undefined"!=typeof t&&(this.isCollapser()&&t===this._curTab&&(this.collapse(),t=-1),t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab!==t&&this.collapse(),this._curTab=t,t>-1&&(this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.expand()),this.__updateTabs(e))),this._curTab>-1&&this._curTab'),this.$title=$('
'),this.$titleBar=$('
'),this.$tabBar=$('
'),this.$tabScroll=$('
'),this.$center=$('
'),this.$tabLeft=$('
'),this.$tabRight=$('
'),this.$close=$('
X
'),this.$collapse=$('
C
'),this.$buttonBar=$('
'),this.$tabButtonBar=$('
'),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$tabButtonBar),this.$frame.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$buttonBar.append(this.$collapse),this.$frame.append(this.$center),this._isFloating&&(this.$top=$('
').css("top","-4px").css("left","0px").css("right","0px"),this.$bottom=$('
').css("bottom","-4px").css("left","0px").css("right","0px"),this.$left=$('
').css("left","-4px").css("top","0px").css("bottom","0px"),this.$right=$('
').css("right","-4px").css("top","0px").css("bottom","0px"),this.$corner1=$('
').css("top","-4px").css("left","-4px"),this.$corner2=$('
').css("top","-4px").css("right","-4px"),this.$corner3=$('
').css("bottom","-4px").css("right","-4px"),this.$corner4=$('
').css("bottom","-4px").css("left","-4px"),this.$frame.append(this.$top),this.$frame.append(this.$bottom),this.$frame.append(this.$left),this.$frame.append(this.$right),this.$frame.append(this.$corner1),this.$frame.append(this.$corner2),this.$frame.append(this.$corner3),this.$frame.append(this.$corner4)),this.__container(this.$container),this._isFloating&&this.$frame.addClass("wcFloating"),this.$center.scroll(this.__scrolled.bind(this))},__update:function(){var t=this.$container.width(),e=this.$container.height();if(this._isFloating){var a=this._pos.x*t-this._size.x/2,r=this._pos.y*e-this._size.y/2;0>r&&(r=0),a+this._size.x/2<0&&(a=-this._size.x/2),a+this._size.x/2>t&&(a=t-this._size.x/2),r+parseInt(this.$center.css("top"))>e&&(r=e-parseInt(this.$center.css("top"))),this.$frame.css("left",a+"px"),this.$frame.css("top",r+"px"),this.$frame.css("width",this._size.x+"px"),this.$frame.css("height",this._size.y+"px")}(t!==this._lastSize.x||e!==this._lastSize.y)&&(this._lastSize.x=t,this._lastSize.y=e,this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta))),this.__onTabChange()},__resizeEnd:function(){this.__updateTabs(),new Date-this._resizeData.time1||this._isFloating||this.isCollapser();this.isCollapser()?this.$tabBar.addClass("wcNotMoveable"):(this.$titleBar.removeClass("wcNotMoveable"),this.$tabBar.removeClass("wcNotMoveable")),this.$center.children(".wcPanelTabContent").each(function(){$(this).addClass("wcPanelTabContentHidden wcPanelTabUnused")}),this._titleVisible=!0,this.$title.html("");for(var l=0;l'),this.$center.append(u)),c.__container(u),c._parent=this;var d=this._curTab===l;if(c.isVisible()!==d&&r.push({panel:c,isVisible:d}),u.removeClass("wcPanelTabUnused"),d&&(h&&h.addClass("wcPanelTabActive"),u.removeClass("wcPanelTabContentHidden"),this.$title.html(c.title()),c.$icon)){var f=c.$icon.clone();this.$title.prepend(f)}h&&(i=a(h)-n,o.push(i),i+=h.outerWidth())}var p=this.$titleBar,b=0;if(this._titleVisible){switch(this.$frame.parent()||this.$center.css("top",""),this._tabOrientation){case e.TAB.TOP:this.$frame.prepend(this.$tabBar),this.$titleBar.remove(),this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),s?this.$title.remove():this.$tabBar.prepend(this.$title),p=this.$tabBar,this.$center.css("left",0).css("right",0).css("bottom",0),b=this.$center.width();break;case e.TAB.BOTTOM:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("left",0).css("right",0).css("bottom",_)}else this.$tabBar.remove();b=this.$center.width();break;case e.TAB.LEFT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("left",_).css("right",0).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height();break;case e.TAB.RIGHT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("left",0).css("right",_).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height()}s||this.$center.css("left",0).css("right",0).css("bottom",0)}else this.$titleBar.remove(),this.$tabBar.remove(),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",0);if(this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()}),this._titleVisible){var v=this.__onTabChange();if(t)for(var l=0;lm?(this._tabScrollPos=m-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):w-g>T&&(this._tabScrollPos=w-T+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,i>b-v){this._canScrollTabs=this._titleVisible,this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),v+=this.$tabRight.outerWidth(),v+=this.$tabLeft.outerWidth());var x=i-(b-v)/2;if(this._tabScrollPos>x)for(var y=this.$tabScroll.children(),l=0;lx){this._tabScrollPos=i-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast");for(var l=0;l.5&&h.bottom>.95?s=e.DOCK.BOTTOM:h.left<=.05?s=e.DOCK.LEFT:h.right>=.95?s=e.DOCK.RIGHT:h.bottom>.95&&(s=e.DOCK.BOTTOM)}var u="",d="";switch(s){case e.DOCK.LEFT:u="left side.",d="wcCollapseLeft";break;case e.DOCK.RIGHT:u="right side.",d="wcCollapseRight";break;case e.DOCK.BOTTOM:u="bottom.",d="wcCollapseBottom"}if(u){var n=this.$collapse.children("div");n[0].className="fa fa-sign-in",n.addClass(d),n.addClass("wcCollapsible"),this.$collapse.show(),this.$collapse.attr("title","Collapse this panel into the "+u),t+=this.$collapse.outerWidth()}}for(var f=0;f"),_=p.className;b.addClass("wcFrameButton"),p.isTogglable&&(b.addClass("wcFrameButtonToggler"),p.isToggled&&(b.addClass("wcFrameButtonToggled"),_=p.toggleClassName||_)),b.attr("title",p.tip),b.data("name",p.name),b.text(p.text),_&&b.prepend($('
')),this._buttonList.push(b),this.$buttonBar.append(b),t+=b.outerWidth()}}if(this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),a+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth()),this._titleVisible)switch(this.$buttonBar.css("right",""),this._tabOrientation){case e.TAB.RIGHT:this.$buttonBar.css("right",this.$tabBar.height());case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()+this.$tabBar.height());break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width())}r.__update(),this.$center.scrollLeft(r._scroll.x),this.$center.scrollTop(r._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),this.$tabButtonBar.css("min-width",a).css("width",a),this._tabOrientation===e.TAB.TOP?(this.$tabButtonBar.css("right",t),t+a):(this.$tabButtonBar.css("right",0),a)},__scrolled:function(){var t=this.panel();t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop(),t.__trigger(e.EVENT.SCROLLED)},__focus:function(t){if(t){var e=$('
');this.$frame.append(e),e.animate({opacity:1},100).animate({opacity:0},100).animate({opacity:.6},50).animate({opacity:0},50).queue(function(t){e.remove(),t()})}},__move:function(t){var e=this.$container.width(),a=this.$container.height();this._pos.x=(t.x+this._anchorMouse.x)/e,this._pos.y=(t.y+this._anchorMouse.y)/a},__anchorMove:function(t){var e=this.$container.width(),a=this.$container.height();this._anchorMouse.x=this._pos.x*e-t.x,this._anchorMouse.y=this._pos.y*a-t.y},__tabMove:function(t,e){if(t>=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},__checkAnchorDrop:function(t,e,a,r,o,i){var n=this.panel();return n&&n.moveable()?n.layout().__checkAnchorDrop(t,e&&this._tabOrientation,a,!this._isFloating&&!this.isCollapser()&&r,this.$frame,n.moveable()&&n.title(),o,this.isCollapser()?this._tabOrientation:void 0,i):!1},__resize:function(t,e){var a=this.$container.width(),r=this.$container.height(),o=this.$container.offset();e.x-=o.left,e.y-=o.top;for(var i=this.minSize(),n=this.maxSize(),s={x:this._pos.x*a-this._size.x/2,y:this._pos.y*r-this._size.y/2},l=0;ln.y&&(s.y+=this._size.y-n.y,this._size.y=n.y);break;case"bottom":this._size.y=e.y-4-s.y,this._size.yn.y&&(this._size.y=n.y);break;case"left":this._size.x+=s.x-e.x-2,s.x=e.x+2,this._size.xn.x&&(s.x+=this._size.x-n.x,this._size.x=n.x);break;case"right":this._size.x=e.x-4-s.x,this._size.xn.x&&(this._size.x=n.x)}this._pos.x=(s.x+this._size.x/2)/a,this._pos.y=(s.y+this._size.y/2)/r}},__shadow:function(t){if(t)this.$shadower||(this.$shadower=$('
'),this.$frame.append(this.$shadower),this.$shadower.animate({opacity:.5},300));else if(this.$shadower){var e=this;this.$shadower.animate({opacity:0},300).queue(function(t){e.$shadower.remove(),e.$shadower=null,t()})}},__rect:function(){if(this.isCollapser())return this._parent.__rect();var t=this.$frame.offset(),e=this.$frame.width(),a=this.$frame.height();return{x:t.left,y:t.top,w:e,h:a}},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._curTab=-1;for(var t=0;t'),this.__container(this.$container),this._frame=new(this.docker().__getClass("wcFrame"))(this.$frame,this,!1),this._frame.tabOrientation(this._position)},__update:function(t){this.__adjustCollapsedSize(),this._frame.__update()},__adjustCollapsedSize:function(){this._frame._panelList.length?(this._closeSize=this._frame.$tabBar.outerHeight(),this._parent.$bar.removeClass("wcSplitterHidden")):(this._closeSize=0,this._parent.$bar.addClass("wcSplitterHidden"))},__rect:function(){var t=this.$frame.offset(),a=this.$frame.width(),r=this.$frame.height(),o=this._frame.panel();return o&&(this._position===e.DOCK.BOTTOM?(r=o._size.y,a/=3):(a=o._size.x,r/=3)),{x:t.left,y:t.top,w:a,h:r}},__save:function(){var t={};return t.closeSize=this._closeSize,t.frame=this._frame.__save(),t},__restore:function(t,e){this._closeSize=t.closeSize,this._frame.__restore(t.frame,e),this.__adjustCollapsedSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._frame&&(this._frame.__destroy(),this._frame=null),this.__container(null),this._parent=null}});return o}),a("wcDocker/collapser",["dcl/dcl","./types","./splitter","./drawer","./base"],function(t,e,a,r,o){var i=t(o,{declaredClass:"wcCollapser",constructor:function(t,a,r){this.$container=$(t),this.$frame=null,this._position=r,this._parent=a,this._splitter=null,this._drawer=null,this._size=0,this._orientation=this._position===e.DOCK.LEFT||this._position===e.DOCK.RIGHT?e.ORIENTATION.HORIZONTAL:e.ORIENTATION.VERTICAL,this.__init()},collapse:function(t){this._drawer.collapse()},expand:function(){this._drawer.expand()},isExpanded:function(){return this._drawer.isExpanded()},minSize:function(){return{x:this._size,y:this._size}},maxSize:function(){var t=this._orientation===e.ORIENTATION.HORIZONTAL?!0:!1;return{x:t?this._size:1/0,y:t?1/0:this._size}},__init:function(){this.$frame=$('
'),this.__container(this.$container);var t=this.docker();switch(this._splitter=new(this.docker().__getClass("wcSplitter"))(t.$container,this,this._orientation),this._drawer=new(this.docker().__getClass("wcDrawer"))(t.$transition,this._splitter,this._position),this._position){case e.DOCK.LEFT:this._splitter.pane(0,this._drawer),this._splitter.$pane[1].remove(),this._splitter.$pane[0].addClass("wcDrawer"),this._splitter.pos(0);break;case e.DOCK.RIGHT:case e.DOCK.BOTTOM:this._splitter.pane(1,this._drawer),this._splitter.$pane[0].remove(),this._splitter.$pane[1].addClass("wcDrawer"),this._splitter.pos(1)}this._parent.$bar.addClass("wcSplitterHidden")},__update:function(t){this._splitter.__update(),this.__adjustSize()},__adjustSize:function(){this._drawer._frame._panelList.length?this._size=this._drawer._frame.$tabBar.outerHeight():this._size=0},__rect:function(){return this._drawer.__rect()},__save:function(){var t={};return t.size=this._size,t.drawer=this._drawer.__save(),t},__restore:function(t,e){this._size=t.size,this._drawer.__restore(t.drawer,e),this.__adjustSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._splitter&&(this._splitter.__destroy(),this._splitter=null,this._frame=null),this.__container(null),this._parent=null}});return i}),a("wcDocker/layout",["dcl/dcl","./types"],function(t,e){var a=t(null,{declaredClass:"wcLayout",constructor:function(t,e){this.$container=$(t),this._parent=e,this.$elem=null,this.__init()},addItem:function(t){},clear:function(){},scene:function(){return this.$elem},__init:function(){},__update:function(){},__checkAnchorDrop:function(t,a,r,o,i,n,s,l,c){function h(t,e,a){return"number"==typeof t||"string"==typeof t&&-1!==t.indexOf("px",t.length-2)?(t=parseInt(t),{x:t,y:t}):"string"==typeof t&&-1!==t.indexOf("%",t.length-1)?(t=parseInt(t)/100,{x:e*t,y:a*t}):{x:0,y:0}}var u=this._parent.docker(),d=i.outerWidth(),f=i.outerHeight(),p=i.offset(),b=i.find(".wcFrameTitleBar").height();n||(b=0);var _=h(u._options.edgeAnchorSize,u.$container.outerWidth(),u.$container.outerHeight()),v=h(u._options.panelAnchorSize,d,f);if(n){if((!l||l===e.TAB.TOP)&&t.y>=p.top&&t.y<=p.top+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:b-2,loc:e.DOCK.STACKED,tab:e.TAB.TOP,item:this,self:a===e.TAB.TOP||s&&a}),!0;if(u._canOrientTabs){if((!l||l===e.TAB.BOTTOM)&&t.y>=p.top+f-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+f-b-2,w:d,h:b,loc:e.DOCK.STACKED,tab:e.TAB.BOTTOM,item:this,self:a===e.TAB.BOTTOM}),!0;if((!l||l===e.TAB.LEFT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:b-2,h:f,loc:e.DOCK.STACKED,tab:e.TAB.LEFT,item:this,self:a===e.TAB.LEFT}),!0;if((!l||l===e.TAB.RIGHT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left+d-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+d-b-2,y:p.top-2,w:b,h:f,loc:e.DOCK.STACKED,tab:e.TAB.RIGHT,item:this,self:a===e.TAB.RIGHT}),!0}}if(c&&r._outer&&r._inner){var m=r._outer.$container.outerWidth(),w=r._outer.$container.outerHeight(),g=r._outer.$container.offset();if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+b&&t.x<=g.left+b+_.x)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.LEFT,item:r._inner,self:!1}),!0;if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+m-_.x-b&&t.x<=g.left+m-b)return r.anchor(t,{x:g.left+m-m/3-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.RIGHT,item:r._inner,self:!1}),!0;if(t.y>=g.top+b&&t.y<=g.top+b+_.y&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m,h:w/3,loc:e.DOCK.TOP,item:r._inner,self:!1}),!0;if(t.y>=g.top+w-b-_.y&&t.y<=g.top+w-b&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top+w-w/3-2,w:m,h:w/3,loc:e.DOCK.BOTTOM,item:r._inner,self:!1}),!0}if(!o)return!1;if(this._parent&&this._parent.instanceOf("wcPanel")&&this._parent._isPlaceholder)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(f>d){if(t.y>=p.top&&t.y<=p.top+b+v.y&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}if(t.y>=p.top&&t.y<=p.top+f){if(t.x>=p.left&&t.x<=p.left+v.x+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.LEFT,item:this,self:!1}),!0;if(t.x>=p.left+d-v.x-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+.5*d-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.RIGHT,item:this,self:!1}),!0}if(d>=f){if(t.y>=p.top&&t.y<=p.top+v.y+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$elem):this.$elem.remove(),this.$container)},__destroy:function(){this.__container(null),this._parent=null,this.clear(),this.$elem.remove(),this.$elem=null}});return a}),a("wcDocker/layoutsimple",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutSimple",addItem:function(t){this.$elem.append(t)},clear:function(){this.$elem.remove(),this.$elem=null,this.__init()},__init:function(){this.$elem=$('
'),this.__container(this.$container)},__update:function(){}});return r}),a("wcDocker/layouttable",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutTable",addItem:function(t,e,a,r,o){return("undefined"==typeof e||0>e)&&(e=0),("undefined"==typeof a||0>a)&&(a=0),("undefined"==typeof r||0>=r)&&(r=1),("undefined"==typeof o||0>=o)&&(o=1),this.__resizeGrid(e+r-1,a+o-1),(r>1||o>1)&&!this.__mergeGrid(e,a,r,o)?!1:(this._grid[a][e].$el.append($(t)),this.item(e,a))},item:function(t,e){if(e>=this._grid.length)return!1;if(t>=this._grid[e].length)return!1;var a=this,r={$:a._grid[e][t].$el,css:function(o,i){if(a._grid[e][t].$el){if(void 0===i)return a._grid[e][t].$el.css(o);a._grid[e][t].$el.css(o,i)}return r},stretch:function(o,i){return a.itemStretch(t,e,o,i),r}};return r},itemStretch:function(t,e,a,r){var o=this._batchProcess;this._batchProcess=!0,this.__resizeGrid(t,e);var i=this._grid[e][t];return i.x<0||i.y<0?!1:(void 0!==a&&(i.sx=a),void 0!==r&&(i.sy=r),this._batchProcess=o,o||this.__resizeGrid(0,0),!0)},clear:function(){var t=this.showGrid(),e=this.gridSpacing(),a=this.gridAlternate();this.$elem.remove(),this.__init(),this.showGrid(t),this.gridSpacing(e),this.gridAlternate(a),this._grid=[]},startBatch:function(){this._batchProcess=!0},finishBatch:function(){this._batchProcess=!1,this.__resizeGrid(0,0)},showGrid:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGrid",t),this.$elem.hasClass("wcLayoutGrid")},gridSpacing:function(t){return"undefined"!=typeof t&&this.$elem.css("border-spacing",t+"px"),parseInt(this.$elem.css("border-spacing"))},gridAlternate:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGridAlternate",t),this.$elem.hasClass("wcLayoutGridAlternate")},__init:function(){this.$elem=$('
'),this.$elem.append($("")),this._grid=[],this.__container(this.$container)},__update:function(){},__resizeGrid:function(t,e){for(var a=0;e>=a;++a){if(this._grid.length<=a){var r=[];r.$row=$(""),this._grid.push(r)}for(var o=0;t>=o;++o)this._grid[a].length<=o&&this._grid[a].push({$el:$(""),x:0,y:0,sx:"",sy:""})}if(!this._batchProcess){var i=this.$elem.find("tbody");$(".wcDockerTransition").append(i);for(var n=$(""),a=0;ao;++o)for(var i=0;a>i;++i){var n=this._grid[e+o][t+i];if(!n.$el||0!==n.x||0!==n.y)return!1}var n=this._grid[e][t];a>1&&(n.$el.attr("colspan",""+a),n.x=a-1),r>1&&(n.$el.attr("rowspan",""+r), +n.y=r-1);for(var o=0;r>o;++o)for(var i=0;a>i;++i)if(0!==o||0!==i){var n=this._grid[e+o][t+i];n.$el.remove(),n.$el=null,n.x=-i,n.y=-o}return!0}});return r}),a("wcDocker/tabframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcTabFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a){this.$container=$(t),this._parent=a,this.$frame=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this._tabOrientation=e.TAB.TOP,this._canScrollTabs=!1,this._tabScrollPos=0,this._curTab=-1,this._layoutList=[],this._moveable=!0,this._boundEvents=[],this.__init()},update:function(){var t=this.$center.scrollTop();this.__updateTabs(),this.$center.scrollTop(t)},destroy:function(){this.__destroy()},tabCount:function(){return this._layoutList.length},tabOrientation:function(t){return void 0!==t&&this._tabOrientation!==t&&this.docker()._canOrientTabs&&(this._tabOrientation=t,this.__updateTabs(),this.__updateTabs()),this._tabOrientation},addTab:function(t,e,a){var r=a||"wcLayoutTable",o=new(this.docker().__getClass(r))(".wcDockerTransition",this._parent);return o.name=t,o._scrollable={x:!0,y:!0},o._scroll={x:0,y:0},o._closeable=!1,o._overflowVisible=!1,"undefined"==typeof e||-1>=e?this._layoutList.push(o):this._layoutList.splice(e,0,o),-1===this._curTab&&this._layoutList.length&&(this._curTab=0),this.__updateTabs(),o},removeTab:function(t){if(t>-1&&t=t&&(this._curTab--,this._curTab<0&&(this._curTab=0)),this.__updateTabs(),this._parent.__trigger(e.EVENT.CUSTOM_TAB_CLOSED,{obj:this,name:a,index:t}),!0}return!1},tab:function(t,a){if("undefined"!=typeof t&&t>-1&&t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab=t,this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.__updateTabs(a);var r=this._layoutList[this._curTab].name;this._parent.__trigger(e.EVENT.CUSTOM_TAB_CHANGED,{obj:this,name:r,index:t})}return this._curTab},layout:function(t){return t>-1&&t=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t),this._moveable},closeable:function(t,e){if(t>-1&&t-1&&t-1&&t-1&&t-1&&t")),a.$icon.removeClass(),a.$icon.addClass("wcTabIcon "+e)}},faicon:function(t,e){if(t>-1&&t")),a.$icon.removeClass(),a.$icon.addClass("fa fa-fw fa-"+e)}},__init:function(){this.$frame=$('
'),this.$tabBar=$('
'),this.$tabScroll=$('
'),this.$center=$('
'),this.$tabLeft=$('
'),this.$tabRight=$('
'),this.$close=$('
X
'),this.$buttonBar=$('
'),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$frame.append(this.$center),this.$frame.append(this.$tabBar),this.__container(this.$container),this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;t
'+this._layoutList[n].name+"
");this._moveable&&s.addClass("wcCustomTabMoveable"),this.$tabScroll.append(s),this._layoutList[n].$icon&&s.find("div").prepend(this._layoutList[n].$icon);var l=this.$center.children('.wcPanelTabContent[id="'+n+'"]');l.length||(l=$('
'),this.$center.append(l)),this._layoutList[n].__container(l),this._layoutList[n]._parent=this;var c=this._curTab===n;l.removeClass("wcPanelTabUnused"),c&&(s.addClass("wcPanelTabActive"),l.removeClass("wcPanelTabContentHidden")),o=a(s)-i,r.push(o),o+=s.outerWidth()}var h=0,u=this.$tabBar.height();switch(this._tabOrientation){case e.TAB.TOP:this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),this.$center.css("top",u).css("left",0).css("right",0).css("bottom",0),h=this.$center.width();break;case e.TAB.BOTTOM:this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",u),h=this.$center.width();break;case e.TAB.LEFT:this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("top",0).css("left",u).css("right",0).css("bottom",0),h=this.$center.height();break;case e.TAB.RIGHT:this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("top",0).css("left",0).css("right",u).css("bottom",0),h=this.$center.height()}this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()});var d=this.__onTabChange();if(t)for(var n=0;nf?(this._tabScrollPos=f-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):p-b>_&&(this._tabScrollPos=p-_+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,o>h-d){this._canScrollTabs=!0,this.$buttonBar.append(this.$tabRight),this.$buttonBar.append(this.$tabLeft),d+=this.$tabRight.outerWidth(),d+=this.$tabLeft.outerWidth();var v=o-(h-d)/2;if(this._tabScrollPos>v)for(var m=this.$tabScroll.children(),n=0;nv){this._tabScrollPos=o-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast")},__onTabChange:function(){var t=0,a=this.layout(this._curTab);if(a){this.$center.toggleClass("wcScrollableX",a._scrollable.x),this.$center.toggleClass("wcScrollableY",a._scrollable.y),this.$center.toggleClass("wcOverflowVisible",a._overflowVisible),this.$tabLeft.remove(),this.$tabRight.remove(),a._closeable?(this.$close.show(),t+=this.$close.outerWidth()):this.$close.hide(),this._canScrollTabs&&(this.$tabBar.append(this.$tabRight),this.$tabBar.append(this.$tabLeft),t+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth());var r=this.fitContents(this._curTab);if(r.x){var o=a.scene().outerWidth();(this._tabOrientation===e.TAB.LEFT||this._tabOrientation===e.TAB.RIGHT)&&(o+=this.$tabScroll.height()),this.$container.css("width",o)}else this.$container.css("width","");if(r.y){var i=a.scene().outerHeight();(this._tabOrientation===e.TAB.TOP||this._tabOrientation===e.TAB.BOTTOM)&&(i+=this.$tabScroll.height()),this.$container.css("height",i)}else this.$container.css("height","");switch(this._tabOrientation){case e.TAB.RIGHT:case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()||"100%");break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width()||"100%")}this.$center.scrollLeft(a._scroll.x),this.$center.scrollTop(a._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),t},__scrolled:function(){var t=this.layout(this._curTab);t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){var t=this.docker();if(t){var e=t._tabList.indexOf(this);e>-1&&t._tabList.splice(e,1)}for(;this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._curTab=-1;for(var a=0;ae&&!i||!o||a&&!n&&s||r&&s)return 1;if(e>t&&!a||!s||i&&!r&&o||n&&o)return-1}return 0}function e(t,e,a){for(var r=t.length,o=a?r:-1;a?o--:++o-1;);return a}function s(t,e){for(var a=t.length;a--&&e.indexOf(t.charAt(a))>-1;);return a}function l(e,a){return t(e.criteria,a.criteria)||e.index-a.index}function c(e,a,r){for(var o=-1,i=e.criteria,n=a.criteria,s=i.length,l=r.length;++o=l)return c;var h=r[o];return c*("asc"===h||h===!0?1:-1)}}return e.index-a.index}function h(t){return Kt[t]}function u(t){return Wt[t]}function d(t,e,a){return e?t=Ut[t]:a&&(t=qt[t]),"\\"+t}function f(t){return"\\"+qt[t]}function p(t,e,a){for(var r=t.length,o=e+(a?0:-1);a?o--:++o=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var a=-1,r=t.length,o=-1,i=[];++ae,o=a?t.length:0,i=Ua(0,o,this.__views__),n=i.start,s=i.end,l=s-n,c=r?s:n-1,h=this.__iteratees__,u=h.length,d=0,f=Sn(l,this.__takeCount__);if(!a||I>o||o==l&&f==l)return oa(t,this.__actions__);var p=[];t:for(;l--&&f>d;){c+=e;for(var b=-1,_=t[c];++b=I?_a(e):null,c=e.length;l&&(n=Jt,s=!1,e=l);t:for(;++ia&&(a=-a>o?0:o+a),r=r===y||r>o?o:+r||0,0>r&&(r+=o),o=a>r?0:r>>>0,a>>>=0;o>a;)t[a++]=e;return t}function Fe(t,e){var a=[];return Nn(t,function(t,r,o){e(t,r,o)&&a.push(t)}),a}function Le(t,e,a,r){var o;return a(t,function(t,a,i){return e(t,a,i)?(o=r?a:t,!1):void 0}),o}function Oe(t,e,a,r){r||(r=[]);for(var o=-1,i=t.length;++or;)t=dr(t)[e[r++]];return r&&r==o?t:y}}function He(t,e,a,r,o,i){return t===e?!0:null==t||null==e||!zo(t)&&!b(e)?t!==t&&e!==e:Ie(t,e,He,a,r,o,i)}function Ie(t,e,a,r,o,i,n){var s=ks(t),l=ks(e),c=W,h=W;s||(c=nn.call(t),c==K?c=X:c!=X&&(s=Go(t))),l||(h=nn.call(e),h==K?h=X:h!=X&&(l=Go(e)));var u=c==X&&!ee(t),d=h==X&&!ee(e),f=c==h;if(f&&!s&&!u)return Ma(t,e,c);if(!o){var p=u&&rn.call(t,"__wrapped__"),b=d&&rn.call(e,"__wrapped__");if(p||b)return a(p?t.value():t,b?e.value():e,r,o,i,n)}if(!f)return!1;i||(i=[]),n||(n=[]);for(var _=i.length;_--;)if(i[_]==t)return n[_]==e;i.push(t),n.push(e);var v=(s?Va:Ra)(t,e,a,r,o,i,n);return i.pop(),n.pop(),v}function Ve(t,e,a){var r=e.length,o=r,i=!a;if(null==t)return!o;for(t=dr(t);r--;){var n=e[r];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}for(;++re&&(e=-e>o?0:o+e),a=a===y||a>o?o:+a||0,0>a&&(a+=o),o=e>a?0:a-e>>>0,e>>>=0;for(var i=Ni(o);++r=I,l=s?_a():null,c=[];l?(o=Jt,n=!1):(s=!1,l=e?[]:c);t:for(;++a=o){for(;o>r;){var i=r+o>>>1,n=t[i];(a?e>=n:e>n)&&null!==n?r=i+1:o=i}return o}return na(t,e,Fi,a)}function na(t,e,a,r){e=a(e);for(var o=0,i=t?t.length:0,n=e!==e,s=null===e,l=e===y;i>o;){var c=Tn((o+i)/2),h=a(t[c]),u=h!==y,d=h===h;if(n)var f=d||r;else f=s?d&&u&&(r||null!=h):l?d&&(r||u):null==h?!1:r?e>=h:e>h;f?o=c+1:i=c}return Sn(i,En)}function sa(t,e,a){if("function"!=typeof t)return Fi;if(e===y)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 3:return function(a,r,o){return t.call(e,a,r,o)};case 4:return function(a,r,o,i){return t.call(e,a,r,o,i)};case 5:return function(a,r,o,i,n){return t.call(e,a,r,o,i,n)}}return function(){return t.apply(e,arguments)}}function la(t){var e=new cn(t.byteLength),a=new vn(e);return a.set(new vn(t)),e}function ca(t,e,a){for(var r=a.length,o=-1,i=Cn(t.length-r,0),n=-1,s=e.length,l=Ni(s+i);++n2?a[o-2]:y,n=o>2?a[2]:y,s=o>1?a[o-1]:y;for("function"==typeof i?(i=sa(i,s,5),o-=2):(i="function"==typeof s?s:y,o-=i?1:0),n&&tr(a[0],a[1],n)&&(i=3>o?y:i,o=1);++r-1?r[n]:y}return Le(r,o,t)}}function ya(t){return function(a,r,o){return a&&a.length?(r=Na(r,o,3),e(a,r,t)):-1}}function Ba(t){return function(e,a,r){return a=Na(a,r,3),Le(e,a,t,!0)}}function Ca(t){return function(){for(var e,a=arguments.length,r=t?a:-1,o=0,i=Ni(a);t?r--:++r=I)return e.plant(r).value();for(var o=0,n=a?i[o].apply(this,t):r;++ow){var $=s?oe(s):y,P=Cn(c-w,0),F=p?B:y,A=p?y:B,E=p?T:y,D=p?y:T;e|=p?L:O,e&=~(p?O:L),b||(e&=~(C|S));var k=[t,e,a,E,F,D,A,$,l,P],z=Ea.apply(y,k);return ar(t)&&Zn(z,k),z.placeholder=x,z}}var H=d?a:this,I=f?H[t]:t;return s&&(T=cr(T,s)),u&&l=e||!yn(e))return"";var o=e-r;return a=null==a?" ":a+"",mi(a,wn(o/a.length)).slice(0,o)}function ka(t,e,a,r){function o(){for(var e=-1,s=arguments.length,l=-1,c=r.length,h=Ni(c+s);++ll))return!1;for(;++s-1&&t%1==0&&e>t}function tr(t,e,a){if(!zo(a))return!1;var r=typeof e;if("number"==r?Ja(a)&&Qa(e,a.length):"string"==r&&e in a){var o=a[e];return t===t?t===o:o!==o}return!1}function er(t,e){var a=typeof t;if("string"==a&&yt.test(t)||"number"==a)return!0;if(ks(t))return!1;var r=!xt.test(t);return r||null!=e&&t in dr(e)}function ar(t){var e=Ka(t),a=_[e];if("function"!=typeof a||!(e in et.prototype))return!1;if(t===a)return!0;var r=Un(a);return!!r&&t===r[0]}function rr(t){return"number"==typeof t&&t>-1&&t%1==0&&kn>=t}function or(t){return t===t&&!zo(t)}function ir(t,e){var a=t[1],r=e[1],o=a|r,i=A>o,n=r==A&&a==P||r==A&&a==E&&t[7].length<=e[8]||r==(A|E)&&a==P;if(!i&&!n)return t;r&C&&(t[2]=e[2],o|=a&C?0:$);var s=e[3];if(s){var l=t[3];t[3]=l?ca(l,s,e[4]):oe(s),t[4]=l?v(t[3],N):oe(e[4])}return s=e[5],s&&(l=t[5],t[5]=l?ha(l,s,e[6]):oe(s),t[6]=l?v(t[5],N):oe(e[6])),s=e[7],s&&(t[7]=oe(s)),r&A&&(t[8]=null==t[8]?e[8]:Sn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function nr(t,e){return t===y?e:zs(t,e,nr)}function sr(t,e){t=dr(t);for(var a=-1,r=e.length,o={};++ar;)n[++i]=Ye(t,r,r+=e);return n}function _r(t){for(var e=-1,a=t?t.length:0,r=-1,o=[];++ee?0:e)):[]}function mr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1), e=r-(+e||0),Ye(t,0,0>e?0:e)):[]}function wr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!0,!0):[]}function gr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!0):[]}function Tr(t,e,a,r){var o=t?t.length:0;return o?(a&&"number"!=typeof a&&tr(t,e,a)&&(a=0,r=o),Pe(t,e,a,r)):[]}function xr(t){return t?t[0]:y}function yr(t,e,a){var r=t?t.length:0;return a&&tr(t,e,a)&&(e=!1),r?Oe(t,e):[]}function Br(t){var e=t?t.length:0;return e?Oe(t,!0):[]}function Cr(t,e,a){var o=t?t.length:0;if(!o)return-1;if("number"==typeof a)a=0>a?Cn(o+a,0):a;else if(a){var i=ia(t,e);return o>i&&(e===e?e===t[i]:t[i]!==t[i])?i:-1}return r(t,e,a||0)}function Sr(t){return mr(t,1)}function $r(t){var e=t?t.length:0;return e?t[e-1]:y}function Pr(t,e,a){var r=t?t.length:0;if(!r)return-1;var o=r;if("number"==typeof a)o=(0>a?Cn(r+a,0):Sn(a||0,r-1))+1;else if(a){o=ia(t,e,!0)-1;var i=t[o];return(e===e?e===i:i!==i)?o:-1}if(e!==e)return p(t,o,!0);for(;o--;)if(t[o]===e)return o;return-1}function Fr(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var a=0,r=Wa(),o=t.length;++a-1;)_n.call(e,i,1);return e}function Lr(t,e,a){var r=[];if(!t||!t.length)return r;var o=-1,i=[],n=t.length;for(e=Na(e,a,3);++oe?0:e)):[]}function Dr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1),e=r-(+e||0),Ye(t,0>e?0:e)):[]}function kr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!1,!0):[]}function zr(t,e,a){return t&&t.length?ra(t,Na(e,a,3)):[]}function Hr(t,e,a,o){var i=t?t.length:0;if(!i)return[];null!=e&&"boolean"!=typeof e&&(o=a,a=tr(t,e,o)?y:e,e=!1);var n=Na();return(null!=a||n!==xe)&&(a=n(a,o,3)),e&&Wa()===r?m(t,a):ea(t,a)}function Ir(t){if(!t||!t.length)return[];var e=-1,a=0;t=ce(t,function(t){return Ja(t)?(a=Cn(t.length,a),!0):void 0});for(var r=Ni(a);++ea?Cn(o+a,0):a||0,"string"==typeof t||!ks(t)&&Wo(t)?o>=a&&t.indexOf(e,a)>-1:!!o&&Wa(t,e,a)>-1}function eo(t,e,a){var r=ks(t)?he:Me;return e=Na(e,a,3),r(t,e)}function ao(t,e){return eo(t,ki(e))}function ro(t,e,a){var r=ks(t)?ce:Fe;return e=Na(e,a,3),r(t,function(t,a,r){return!e(t,a,r)})}function oo(t,e,a){if(a?tr(t,e,a):null==e){t=ur(t);var r=t.length;return r>0?t[qe(0,r-1)]:y}var o=-1,i=Zo(t),r=i.length,n=r-1;for(e=Sn(0>e?0:+e||0,r);++o0&&(a=e.apply(this,arguments)),1>=t&&(e=y),a}}function bo(t,e,a){function r(){f&&hn(f),c&&hn(c),b=0,c=f=p=y}function o(e,a){a&&hn(a),c=f=p=y,e&&(b=Ts(),h=t.apply(d,l),f||c||(l=d=y))}function i(){var t=e-(Ts()-u);0>=t||t>e?o(p,c):f=bn(i,t)}function n(){o(v,f)}function s(){if(l=arguments,u=Ts(),d=this,p=v&&(f||!m),_===!1)var a=m&&!f;else{c||m||(b=u);var r=_-(u-b),o=0>=r||r>_;o?(c&&(c=hn(c)),b=u,h=t.apply(d,l)):c||(c=bn(n,r))}return o&&f?f=hn(f):f||e===_||(f=bn(i,e)),a&&(o=!0,h=t.apply(d,l)),!o||f||c||(l=d=y),h}var l,c,h,u,d,f,p,b=0,_=!1,v=!0;if("function"!=typeof t)throw new Xi(R);if(e=0>e?0:+e||0,a===!0){var m=!0;v=!1}else zo(a)&&(m=!!a.leading,_="maxWait"in a&&Cn(+a.maxWait||0,e),v="trailing"in a?!!a.trailing:v);return s.cancel=r,s}function _o(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Xi(R);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var n=t.apply(this,r);return a.cache=i.set(o,n),n};return a.cache=new _o.Cache,a}function vo(t){if("function"!=typeof t)throw new Xi(R);return function(){return!t.apply(this,arguments)}}function mo(t){return po(2,t)}function wo(t,e){if("function"!=typeof t)throw new Xi(R);return e=Cn(e===y?t.length-1:+e||0,0),function(){for(var a=arguments,r=-1,o=Cn(a.length-e,0),i=Ni(o);++re}function So(t,e){return t>=e}function $o(t){return b(t)&&Ja(t)&&rn.call(t,"callee")&&!fn.call(t,"callee")}function Po(t){return t===!0||t===!1||b(t)&&nn.call(t)==G}function Fo(t){return b(t)&&nn.call(t)==j}function Lo(t){return!!t&&1===t.nodeType&&b(t)&&!No(t)}function Oo(t){return null==t?!0:Ja(t)&&(ks(t)||Wo(t)||$o(t)||b(t)&&ko(t.splice))?!t.length:!js(t).length}function Ao(t,e,a,r){a="function"==typeof a?sa(a,r,3):y;var o=a?a(t,e):y;return o===y?He(t,e,a):!!o}function Eo(t){return b(t)&&"string"==typeof t.message&&nn.call(t)==U}function Do(t){return"number"==typeof t&&yn(t)}function ko(t){return zo(t)&&nn.call(t)==q}function zo(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ho(t,e,a,r){return a="function"==typeof a?sa(a,r,3):y,Ve(t,Ga(e),a)}function Io(t){return Ro(t)&&t!=+t}function Vo(t){return null==t?!1:ko(t)?ln.test(an.call(t)):b(t)&&(ee(t)?ln:At).test(t)}function Mo(t){return null===t}function Ro(t){return"number"==typeof t||b(t)&&nn.call(t)==Y}function No(t){var e;if(!b(t)||nn.call(t)!=X||ee(t)||$o(t)||!rn.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var a;return _.support.ownLast?(Ae(t,function(t,e,r){return a=rn.call(r,e),!1}),a!==!1):(Ae(t,function(t,e){a=e}),a===y||rn.call(t,a))}function Ko(t){return zo(t)&&nn.call(t)==J}function Wo(t){return"string"==typeof t||b(t)&&nn.call(t)==tt}function Go(t){return b(t)&&rr(t.length)&&!!Rt[nn.call(t)]}function jo(t){return t===y}function Uo(t,e){return e>t}function qo(t,e){return e>=t}function Zo(t){var e=t?qn(t):0;return rr(e)?e?_.support.unindexedChars&&Wo(t)?t.split(""):oe(t):[]:si(t)}function Yo(t){return Te(t,ai(t))}function Xo(t,e,a){var r=Rn(t);return a&&tr(t,e,a)&&(e=y),e?we(r,e):r}function Jo(t){return ke(t,ai(t))}function Qo(t,e,a){var r=null==t?y:ze(t,fr(e),e+"");return r===y?a:r}function ti(t,e){if(null==t)return!1;var a=rn.call(t,e);if(!a&&!er(e)){if(e=fr(e),t=1==e.length?t:ze(t,Ye(e,0,-1)),null==t)return!1;e=$r(e),a=rn.call(t,e)}return a||rr(t.length)&&Qa(e,t.length)&&(ks(t)||$o(t)||Wo(t))}function ei(t,e,a){a&&tr(t,e,a)&&(e=y);for(var r=-1,o=js(t),i=o.length,n={};++r0,c=a.enumErrorProps&&(t===Qi||t instanceof Wi),h=a.enumPrototypes&&ko(t);++o=Sn(e,a)&&ta?0:+a||0,r),a-=e.length,a>=0&&t.indexOf(e,a)==a}function pi(t){return t=i(t),t&&mt.test(t)?t.replace(_t,u):t}function bi(t){return t=i(t),t&&St.test(t)?t.replace(Ct,d):t||"(?:)"}function _i(t,e,a){t=i(t),e=+e;var r=t.length;if(r>=e||!yn(e))return t;var o=(e-r)/2,n=Tn(o),s=wn(o);return a=Da("",s,a),a.slice(0,n)+t+a}function vi(t,e,a){return(a?tr(t,e,a):null==e)?e=0:e&&(e=+e),t=Ti(t),Pn(t,e||(Ot.test(t)?16:10))}function mi(t,e){var a="";if(t=i(t),e=+e,1>e||!t||!yn(e))return a;do e%2&&(a+=t),e=Tn(e/2),t+=t;while(e);return a}function wi(t,e,a){return t=i(t),a=null==a?0:Sn(0>a?0:+a||0,t.length),t.lastIndexOf(e,a)==a}function gi(t,e,a){var r=_.templateSettings;a&&tr(t,e,a)&&(e=a=y),t=i(t),e=me(we({},a||e),r,ve);var o,n,s=me(we({},e.imports),r.imports,ve),l=js(s),c=aa(s,l),h=0,u=e.interpolate||kt,d="__p += '",p=Zi((e.escape||kt).source+"|"+u.source+"|"+(u===Tt?Ft:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),b="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Mt+"]")+"\n";t.replace(p,function(e,a,r,i,s,l){return r||(r=i),d+=t.slice(h,l).replace(zt,f),a&&(o=!0,d+="' +\n__e("+a+") +\n'"),s&&(n=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+e.length,e}),d+="';\n";var v=e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(n?d.replace(dt,""):d).replace(ft,"$1").replace(pt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(n?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=rl(function(){return Gi(l,b+"return "+d).apply(y,c)});if(m.source=d,Eo(m))throw m;return m}function Ti(t,e,a){var r=t;return(t=i(t))?(a?tr(r,e,a):null==e)?t.slice(w(t),g(t)+1):(e+="",t.slice(n(t,e),s(t,e)+1)):t}function xi(t,e,a){var r=t;return t=i(t),t?(a?tr(r,e,a):null==e)?t.slice(w(t)):t.slice(n(t,e+"")):t}function yi(t,e,a){var r=t;return t=i(t),t?(a?tr(r,e,a):null==e)?t.slice(0,g(t)+1):t.slice(0,s(t,e+"")+1):t}function Bi(t,e,a){a&&tr(t,e,a)&&(e=y);var r=D,o=k;if(null!=e)if(zo(e)){var n="separator"in e?e.separator:n;r="length"in e?+e.length||0:r,o="omission"in e?i(e.omission):o}else r=+e||0;if(t=i(t),r>=t.length)return t;var s=r-o.length;if(1>s)return o;var l=t.slice(0,s);if(null==n)return l+o;if(Ko(n)){if(t.slice(s).search(n)){var c,h,u=t.slice(0,s);for(n.global||(n=Zi(n.source,(Lt.exec(n)||"")+"g")),n.lastIndex=0;c=n.exec(u);)h=c.index;l=l.slice(0,null==h?s:h)}}else if(t.indexOf(n,s)!=s){var d=l.lastIndexOf(n);d>-1&&(l=l.slice(0,d))}return l+o}function Ci(t){return t=i(t),t&&vt.test(t)?t.replace(bt,T):t}function Si(t,e,a){return a&&tr(t,e,a)&&(e=y),t=i(t),t.match(e||Ht)||[]}function $i(t,e,a){return a&&tr(t,e,a)&&(e=y),b(t)?Li(t):xe(t,e)}function Pi(t){return function(){return t}}function Fi(t){return t}function Li(t){return Re(ye(t,!0))}function Oi(t,e){return Ne(t,ye(e,!0))}function Ai(t,e,a){if(null==a){var r=zo(e),o=r?js(e):y,i=o&&o.length?ke(e,o):y;(i?i.length:r)||(i=!1,a=e,e=t,t=this)}i||(i=ke(e,js(e)));var n=!0,s=-1,l=ko(t),c=i.length;a===!1?n=!1:zo(a)&&"chain"in a&&(n=a.chain);for(;++st||!yn(t))return[];var r=-1,o=Ni(Sn(t,An));for(e=sa(e,a,1);++rr?o[r]=e(r):e(r);return o}function Vi(t){var e=++on;return i(t)+e}function Mi(t,e){return(+t||0)+(+e||0)}function Ri(t,e,a){return a&&tr(t,e,a)&&(e=y),e=Na(e,a,3),1==e.length?be(ks(t)?t:ur(t),e):ta(t,e)}a=a?ae.defaults(te.Object(),a,ae.pick(te,It)):te;var Ni=a.Array,Ki=a.Date,Wi=a.Error,Gi=a.Function,ji=a.Math,Ui=a.Number,qi=a.Object,Zi=a.RegExp,Yi=a.String,Xi=a.TypeError,Ji=Ni.prototype,Qi=Wi.prototype,tn=qi.prototype,en=Yi.prototype,an=Gi.prototype.toString,rn=tn.hasOwnProperty,on=0,nn=tn.toString,sn=te._,ln=Zi("^"+an.call(rn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cn=a.ArrayBuffer,hn=a.clearTimeout,un=a.parseFloat,dn=ji.pow,fn=tn.propertyIsEnumerable,pn=ja(a,"Set"),bn=a.setTimeout,_n=Ji.splice,vn=a.Uint8Array,mn=ja(a,"WeakMap"),wn=ji.ceil,gn=ja(qi,"create"),Tn=ji.floor,xn=ja(Ni,"isArray"),yn=a.isFinite,Bn=ja(qi,"keys"),Cn=ji.max,Sn=ji.min,$n=ja(Ki,"now"),Pn=a.parseInt,Fn=ji.random,Ln=Ui.NEGATIVE_INFINITY,On=Ui.POSITIVE_INFINITY,An=4294967295,En=An-1,Dn=An>>>1,kn=9007199254740991,zn=mn&&new mn,Hn={},In={};In[rt]=a.Float32Array,In[ot]=a.Float64Array,In[it]=a.Int8Array,In[nt]=a.Int16Array,In[st]=a.Int32Array,In[lt]=vn,In[ct]=a.Uint8ClampedArray,In[ht]=a.Uint16Array,In[ut]=a.Uint32Array;var Vn={};Vn[W]=Vn[j]=Vn[Y]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Vn[G]=Vn[tt]={constructor:!0,toString:!0,valueOf:!0},Vn[U]=Vn[q]=Vn[J]={constructor:!0,toString:!0},Vn[X]={constructor:!0},ie(Vt,function(t){for(var e in Vn)if(rn.call(Vn,e)){var a=Vn[e];a[t]=rn.call(a,t)}});var Mn=_.support={};!function(t){var e=function(){this.x=t},a={0:t,length:t},r=[];e.prototype={valueOf:t,y:t};for(var o in new e)r.push(o);Mn.enumErrorProps=fn.call(Qi,"message")||fn.call(Qi,"name"),Mn.enumPrototypes=fn.call(e,"prototype"),Mn.nonEnumShadows=!/valueOf/.test(r),Mn.ownLast="x"!=r[0],Mn.spliceObjects=(_n.call(a,0,1),!a[0]),Mn.unindexedChars="x"[0]+qi("x")[0]!="xx"}(1,0),_.templateSettings={escape:wt,evaluate:gt,interpolate:Tt,variable:"",imports:{_:_}};var Rn=function(){function t(){}return function(e){if(zo(e)){t.prototype=e;var a=new t;t.prototype=y}return a||{}}}(),Nn=fa(Ee),Kn=fa(De,!0),Wn=pa(),Gn=pa(!0),jn=zn?function(t,e){return zn.set(t,e),t}:Fi,Un=zn?function(t){return zn.get(t)}:Di,qn=Ge("length"),Zn=function(){var t=0,e=0;return function(a,r){var o=Ts(),i=H-(o-e);if(e=o,i>0){if(++t>=z)return a}else t=0;return jn(a,r)}}(),Yn=wo(function(t,e){return b(t)&&Ja(t)?Ce(t,Oe(e,!1,!0)):[]}),Xn=ya(),Jn=ya(!0),Qn=wo(function(t){for(var e=t.length,a=e,o=Ni(u),i=Wa(),n=i===r,s=[];a--;){var l=t[a]=Ja(l=t[a])?l:[];o[a]=n&&l.length>=120?_a(a&&l):null}var c=t[0],h=-1,u=c?c.length:0,d=o[0];t:for(;++h2?t[e-2]:y,r=e>1?t[e-1]:y;return e>2&&"function"==typeof a?e-=2:(a=e>1&&"function"==typeof r?(--e,r):y,r=y),t.length=e,Vr(t,a,r)}),ss=wo(function(t){return t=Oe(t),this.thru(function(e){return re(ks(e)?e:[dr(e)],t)})}),ls=wo(function(t,e){return Ja(t)&&(t=ur(t)),ge(t,Oe(e))}),cs=ua(function(t,e,a){rn.call(t,a)?++t[a]:t[a]=1}),hs=xa(Nn),us=xa(Kn,!0),ds=Sa(ie,Nn),fs=Sa(ne,Kn),ps=ua(function(t,e,a){rn.call(t,a)?t[a].push(e):t[a]=[e]}),bs=ua(function(t,e,a){t[a]=e}),_s=wo(function(t,e,a){var r=-1,o="function"==typeof e,i=er(e),n=Ja(t)?Ni(t.length):[];return Nn(t,function(t){var s=o?e:i&&null!=t?t[e]:y;n[++r]=s?s.apply(t,a):Xa(t,e,a)}),n}),vs=ua(function(t,e,a){t[a?0:1].push(e)},function(){return[[],[]]}),ms=Aa(de,Nn),ws=Aa(fe,Kn),gs=wo(function(t,e){if(null==t)return[];var a=e[2];return a&&tr(e[0],e[1],a)&&(e.length=1),Qe(t,Oe(e),[])}),Ts=$n||function(){return(new Ki).getTime()},xs=wo(function(t,e,a){var r=C;if(a.length){var o=v(a,xs.placeholder);r|=L}return Ia(t,r,e,a,o)}),ys=wo(function(t,e){e=e.length?Oe(e):Jo(t);for(var a=-1,r=e.length;++a0||0>e)?new et(a):(0>t?a=a.takeRight(-t):t&&(a=a.drop(t)),e!==y&&(e=+e||0,a=0>e?a.dropRight(-e):a.take(e-t)),a)},et.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},et.prototype.toArray=function(){return this.take(On)},Ee(et.prototype,function(t,e){var a=/^(?:filter|map|reject)|While$/.test(e),r=/^(?:first|last)$/.test(e),o=_[r?"take"+("last"==e?"Right":""):e];o&&(_.prototype[e]=function(){var e=r?[1]:arguments,i=this.__chain__,n=this.__wrapped__,s=!!this.__actions__.length,l=n instanceof et,c=e[0],h=l||ks(n);h&&a&&"function"==typeof c&&1!=c.length&&(l=h=!1);var u=function(t){return r&&i?o(t,1)[0]:o.apply(y,ue([t],e))},d={func:Wr,args:[u],thisArg:y},f=l&&!s;if(r&&!i)return f?(n=n.clone(),n.__actions__.push(d),t.call(n)):o.call(y,this.value())[0];if(!r&&h){n=f?n:new et(this);var p=t.apply(n,e);return p.__actions__.push(d),new Q(p,i)}return this.thru(u)})}),ie(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var e=(/^(?:replace|split)$/.test(t)?en:Ji)[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=!Mn.spliceObjects&&/^(?:pop|shift|splice)$/.test(t),o=/^(?:join|pop|replace|shift)$/.test(t),i=r?function(){var t=e.apply(this,arguments);return 0===this.length&&delete this[0],t}:e;_.prototype[t]=function(){var t=arguments;return o&&!this.__chain__?i.apply(this.value(),t):this[a](function(e){return i.apply(e,t)})}}),Ee(et.prototype,function(t,e){var a=_[e];if(a){var r=a.name+"",o=Hn[r]||(Hn[r]=[]);o.push({name:e,func:a})}}),Hn[Ea(y,S).name]=[{name:"wrapper",func:y}],et.prototype.clone=Kt,et.prototype.reverse=Wt,et.prototype.value=Gt,_.prototype.chain=Gr,_.prototype.commit=jr,_.prototype.concat=ss,_.prototype.plant=Ur,_.prototype.reverse=qr,_.prototype.toString=Zr,_.prototype.run=_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=Yr,_.prototype.collect=_.prototype.map,_.prototype.head=_.prototype.first,_.prototype.select=_.prototype.filter,_.prototype.tail=_.prototype.rest,_}var y,B="3.10.1",C=1,S=2,$=4,P=8,F=16,L=32,O=64,A=128,E=256,D=30,k="...",z=150,H=16,I=200,V=1,M=2,R="Expected a function",N="__lodash_placeholder__",K="[object Arguments]",W="[object Array]",G="[object Boolean]",j="[object Date]",U="[object Error]",q="[object Function]",Z="[object Map]",Y="[object Number]",X="[object Object]",J="[object RegExp]",Q="[object Set]",tt="[object String]",et="[object WeakMap]",at="[object ArrayBuffer]",rt="[object Float32Array]",ot="[object Float64Array]",it="[object Int8Array]",nt="[object Int16Array]",st="[object Int32Array]",lt="[object Uint8Array]",ct="[object Uint8ClampedArray]",ht="[object Uint16Array]",ut="[object Uint32Array]",dt=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39|#96);/g,_t=/[&<>"'`]/g,vt=RegExp(bt.source),mt=RegExp(_t.source),wt=/<%-([\s\S]+?)%>/g,gt=/<%([\s\S]+?)%>/g,Tt=/<%=([\s\S]+?)%>/g,xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,yt=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,St=RegExp(Ct.source),$t=/[\u0300-\u036f\ufe20-\ufe23]/g,Pt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lt=/\w*$/,Ot=/^0[xX]/,At=/^\[object .+?Constructor\]$/,Et=/^\d+$/,Dt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,kt=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Ht=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),It=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=-1,Rt={};Rt[rt]=Rt[ot]=Rt[it]=Rt[nt]=Rt[st]=Rt[lt]=Rt[ct]=Rt[ht]=Rt[ut]=!0,Rt[K]=Rt[W]=Rt[at]=Rt[G]=Rt[j]=Rt[U]=Rt[q]=Rt[Z]=Rt[Y]=Rt[X]=Rt[J]=Rt[Q]=Rt[tt]=Rt[et]=!1;var Nt={};Nt[K]=Nt[W]=Nt[at]=Nt[G]=Nt[j]=Nt[rt]=Nt[ot]=Nt[it]=Nt[nt]=Nt[st]=Nt[Y]=Nt[X]=Nt[J]=Nt[tt]=Nt[lt]=Nt[ct]=Nt[ht]=Nt[ut]=!0,Nt[U]=Nt[q]=Nt[Z]=Nt[Q]=Nt[et]=!1;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Wt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Gt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},jt={"function":!0,object:!0},Ut={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zt=jt[typeof exports]&&exports&&!exports.nodeType&&exports,Yt=jt[typeof module]&&module&&!module.nodeType&&module,Xt=Zt&&Yt&&"object"==typeof global&&global&&global.Object&&global,Jt=jt[typeof self]&&self&&self.Object&&self,Qt=jt[typeof window]&&window&&window.Object&&window,te=Xt||Qt!==(this&&this.window)&&Qt||Jt||this,ee=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}(),ae=x();"function"==typeof a&&"object"==typeof a.amd&&a.amd&&a("lodash/main",[],function(){return ae})}.call(this),a("lodash",["lodash/main"],function(t){return t}),a("wcDocker/docker",["dcl/dcl","./types","./panel","./ghost","./splitter","./frame","./collapser","./layoutsimple","./layouttable","./tabframe","./drawer","./base","lodash"],function(t,e,a,r,o,i,n,s,l,c,h,u,d){var f={wcPanel:a,wcGhost:r,wcSplitter:o,wcFrame:i,wcCollapser:n,wcLayoutSimple:s,wcLayoutTable:l,wcDrawer:h,wcTabFrame:c},p=t(u,{declaredClass:"wcDocker",constructor:function(t,e){this.$outer=$(t),this.$container=$('
'),this.$transition=$('
'),this.$loading=null,this.$outer.append(this.$container),this.$container.append(this.$transition), this._canOrientTabs=!0,this._events={},this._root=null,this._frameList=[],this._floatingList=[],this._modalList=[],this._persistentList=[],this._focusFrame=null,this._placeholderPanel=null,this._contextTimer=0,this._dirty=!1,this._dirtyDontMove=!1,this._splitterList=[],this._tabList=[],this._collapser={},this._dockPanelTypeList=[],this._creatingPanel=!1,this._draggingSplitter=null,this._draggingFrame=null,this._draggingFrameSizer=null,this._draggingFrameTab=null,this._draggingFrameTopper=!1,this._draggingCustomTabFrame=null,this._ghost=null,this._menuTimer=0,this._mouseOrigin={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150};var a={themePath:"Themes",theme:"default",loadingClass:"fa fa-spinner fa-pulse",allowContextMenu:!0,hideOnResize:!1,allowCollapse:!0,responseRate:10,moveStartDelay:300,edgeAnchorSize:50,panelAnchorSize:"15%",detachToWidth:"50%",detachToHeight:"50%"};this._options={};for(var r in f)a[r+"Class"]=f[r];for(var r in a)this._options[r]=a[r];for(var r in e)this._options[r]=e[r];this.__init()},themePath:function(t){return void 0!==t&&(this._options.themePath=t),this._options.themePath},theme:function(t){if(void 0!==t){var e=$("#wcTheme"),a=(new Date).getTime(),r=t.indexOf(".css");r>-1&&(t=t.substring(0,r));var o=$('');this._options.theme=t;var i=this;o[0].onload=function(){e.remove(),i.__update()},$("head").append(o)}return this._options.theme},isCollapseEnabled:function(){return this._canOrientTabs&&this._options.allowCollapse},registerPanelType:function(t,e,a){var r=e;"function"==typeof r&&(r={onCreate:e},console.log("WARNING: Passing in the creation function directly to wcDocker.registerPanelType parameter 2 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),"undefined"!=typeof a&&(r.isPrivate=a,console.log("WARNING: Passing in the isPrivate flag to wcDocker.registerPanelType parameter 3 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),$.isEmptyObject(r)&&(r=null);for(var o=0;o')),!0},panelTypes:function(t){for(var e=[],a=0;a=d&&h._curTab--,t.__container(this.$transition),t._parent=null,h._panelList.splice(d,1);break}if(!h.isCollapser()&&-1===h._curTab&&h._panelList.length&&(h._curTab=0),h.__updateTabs(),h.collapse(),!h.isCollapser()&&0===h._panelList.length)if(i)this.__addPlaceholder(h);else{var f=this._floatingList.indexOf(h);-1!==f&&this._floatingList.splice(f,1),f=this._frameList.indexOf(h),-1!==f&&this._frameList.splice(f,1);var p=h._parent;if(p&&p.instanceOf("wcSplitter")){p.__removeChild(h);var b;p.pane(0)?(b=p.pane(0),p._pane[0]=null):(b=p.pane(1),p._pane[1]=null),r===p&&(r._shift=b),b.__container(this.$transition),b._parent=null,f=this._splitterList.indexOf(p),-1!==f&&this._splitterList.splice(f,1);var _=p._parent;parentContainer=p.__container(),p.__destroy(),_&&_.instanceOf("wcSplitter")?(_.__removeChild(p),_.pane(0)?_.pane(1,b):_.pane(0,b)):_===this&&(this._root=b,b._parent=this,b.__container(parentContainer)),this.__update()}this._focusFrame===h&&(this._focusFrame=null),h.__destroy()}}t.initSize(l,c),a===e.DOCK.STACKED?this.__addPanelGrouped(t,r,o):this.__addPanelAlone(t,a,r,o),r==this._placeholderPanel&&(this.removePanel(this._placeholderPanel),this._placeholderPanel=null);var v=t._parent;return v&&v.instanceOf("wcFrame")&&1===v._panelList.length&&v.pos(s.left+l/2+20,s.top+c/2+20,!0),this.__update(!0),v&&v.instanceOf("wcFrame")&&u!==v._isFloating&&(v._isFloating?t.__trigger(e.EVENT.DETACHED):t.__trigger(e.EVENT.ATTACHED)),t.__trigger(e.EVENT.MOVED),t},findPanels:function(t){for(var e=[],a=0;a
'),this.$outer.append(this.$loading);var r=$('
');"number"!=typeof e&&(e=.4),r.css("opacity",e),this.$loading.append(r);var o=$('
');if(this.$loading.append(o),t){var i=$(''+t+"");this.$loading.append(i)}"number"!=typeof a&&(a=1),o.css("opacity",a),i&&i.css("opacity",a)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null})}else this.$loading.remove(),this.$loading=null},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)this._events={};else if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var a=0;a0&&o.findPanels(d.name).length>=d.options.limit)continue;var f=null,p=null,b=d.name;d.options&&(d.options.faicon&&(p=d.options.faicon),d.options.icon&&(f=d.options.icon),d.options.title&&(b=d.options.title)),u[d.name]={name:b,icon:f,faicon:p,className:"wcMenuCreatePanel"}}}var _=0,v={},m=a;"function"==typeof a&&(m=a(t,i));for(var l=0;l');if(o.prepend(i),r.icon&&i.addClass(r.icon),r.faicon&&i.addClass("fa fa-menu fa-"+r.faicon+" fa-lg fa-fw"),o.hasClass("context-menu-submenu")){var n=$('
');o.append(n)}}r.items&&s(r.items)}}(e)}(y)},hide:function(t){o._ghost&&(o._ghost.destroy(),o._ghost=!1)}},animation:{duration:250,show:"fadeIn",hide:"fadeOut"},reposition:!1,autoHide:!0,zIndex:200,items:y}}})},bypassMenu:function(){this._menuTimer&&clearTimeout(this._menuTimer);for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!1)}var a=this;this._menuTimer=setTimeout(function(){for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!0)}a._menuTimer=null},0)},save:function(){var t={};t.floating=[];for(var a=0;a-1){if(1===g._draggingFrame._panelList.length)return;for(var r=0;r1&&g._draggingFrameTab,g._draggingFrameTopper,!g.__isLastFrame(g._draggingFrame))){g._draggingFrame.__shadow(!1);var s=$(document.elementFromPoint(e.x,e.y)),i=s.hasClass("wcPanelTab")?s:s.parents(".wcPanelTab");g._draggingFrameTab&&i.length&&g._draggingFrameTab!==i[0]&&(g._draggingFrameTab=g._draggingFrame.__tabMove(parseInt($(g._draggingFrameTab).attr("id")),parseInt(i.attr("id"))))}else{if((new Date).getTime()-B0;var s=g._draggingFrame.__rect();g._ghost=new(g.__getClass("wcGhost"))(s,a,g),g._draggingFrame.__checkAnchorDrop(a,!0,g._ghost,!0,g._draggingFrameTopper,!g.__isLastFrame(g._draggingFrame)),g.trigger(e.EVENT.BEGIN_DOCK)}break}for(var r=0;r .wcFrameButton",c),$("body").on("touchstart",".wcFrameButtonBar > .wcFrameButton",c),$("body").on("mousedown",".wcFrameTitleBar",p),$("body").on("touchstart",".wcFrameTitleBar",p),$("body").on("mousedown",".wcSplitterBar",f),$("body").on("touchstart",".wcSplitterBar",f),$("body").on("mousedown",".wcPanelTab",m),$("body").on("touchstart",".wcPanelTab",m),$("body").on("mouseup",".wcPanelTab",d),$("body").on("touchend",".wcPanelTab",d),$("body").on("mousedown",".wcLayout",b),$("body").on("touchstart",".wcLayout",b),$("body").on("mousedown",".wcFrameEdge",_),$("body").on("touchstart",".wcFrameEdge",_),$("body").on("mousedown",".wcCreatePanel",v),$("body").on("touchstart",".wcCreatePanel",v),$("body").on("mouseup",a),$("body").on("touchend",a),$("body").on("click",".wcCustomTab .wcFrameButton",h),$("body").on("click",".wcFrameButtonBar > .wcFrameButton",u),$("body").on("keyup",w);var T=(new Date).getTime(),x=null,y=0,B=0},__testLoadFinished:function(){for(var t=0;t>>0,a=Number(arguments[1])||0;for(a=0>a?Math.ceil(a):Math.floor(a),0>a&&(a+=e);e>a;a++)if(a in this&&this[a]===t)return a;return-1});var e=function(){for(var t=3,e=document.createElement("div"),a=e.getElementsByTagName("i");e.innerHTML="",a[0];);return t>4?t:void 0}();9>e?this._canOrientTabs=!1:this._canOrientTabs=t();var a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);$("body").addClass(a?"wcMobile":"wcDesktop")},__findInner:function(){function t(t){return!!(t&&t.instanceOf("wcFrame")&&t.panel()&&!t.panel().moveable()||t.instanceOf("wcCollapser"))}for(var e=this._root;e&&e.instanceOf("wcSplitter");){var a=t(e._pane[0]),r=t(e._pane[1]);if(a&&!r)e=e._pane[1];else if(r&&!a)e=e._pane[0];else if(!a&&!r)break}return e},__initCollapsers:function(){function t(t){this._collapser[t]=this.__addCollapser(t,a),a=this._collapser[t]._parent,this._frameList.push(this._collapser[t]._drawer._frame)}if(this.isCollapseEnabled()&&$.isEmptyObject(this._collapser)){var a=this.__findInner();t.call(this,e.DOCK.LEFT),t.call(this,e.DOCK.RIGHT),t.call(this,e.DOCK.BOTTOM);var r=this;setTimeout(function(){r.__update()})}},__update:function(t){this._dirty=!0,this._dirtyDontMove=t},__forceUpdate:function(t){this._dirty=!1,this._root&&this._root.__update(t);for(var e=0;e
'),c.$frame.prepend(c.$modalBlocker),t.moveable(!1),c.$frame.addClass("wcModal"),this._modalList.push(c)),o){var h=c.pos(void 0,void 0,!0);o.hasOwnProperty("x")&&(h.x=o.x+o.w/2),o.hasOwnProperty("y")&&(h.y=o.y+o.h/2),c.pos(h.x,h.y,!0),c._size={x:o.w,y:o.h}}return void this.__orderPanels()}if(r){for(var u=r._parent,d=r;u&&!u.instanceOf("wcSplitter")&&!u.instanceOf("wcDocker");)d=u,u=u._parent;if(u&&u.instanceOf("wcSplitter")){var f,p=u.pane(0),b=(u.pane(1),{x:-1,y:-1});if(p===d?(f=new(this.__getClass("wcSplitter"))(this.$transition,u,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP),b.x=u.$pane[0].width(),b.y=u.$pane[0].height(),u.pane(0,f)):(f=new(this.__getClass("wcSplitter"))(this.$transition,u,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP),b.x=u.$pane[1].width(),b.y=u.$pane[1].height(),u.pane(1,f)),f){if(f.scrollable(0,!1,!1),f.scrollable(1,!1,!1),o||(o={w:t._size.x,h:t._size.y}),o)switch(o.w<0&&(o.w=b.x/2),o.h<0&&(o.h=b.y/2),a){case e.DOCK.LEFT:f.pos(o.w/b.x);break;case e.DOCK.RIGHT:f.pos(1-o.w/b.x);break;case e.DOCK.TOP:f.pos(o.h/b.y);break;case e.DOCK.BOTTOM:f.pos(1-o.h/b.y)}else f.pos(.5);c=new(this.__getClass("wcFrame"))(this.$transition,f,!1),this._frameList.push(c),a===e.DOCK.LEFT||a===e.DOCK.TOP?(f.pane(0,c),f.pane(1,d)):(f.pane(0,d),f.pane(1,c)),c.addPanel(t)}return}}var _=this,v=this.$container,c=new(this.__getClass("wcFrame"))(this.$transition,_,!1);if(this._frameList.push(c),_._root){var f=new(this.__getClass("wcSplitter"))(v,_,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP);if(f){c._parent=f,f.scrollable(0,!1,!1),f.scrollable(1,!1,!1);var b={x:v.width(),y:v.height()};if(o)switch(o.w<0&&(o.w=b.x/2),o.h<0&&(o.h=b.y/2),a){case e.DOCK.LEFT:f.pos(o.w/b.x);break;case e.DOCK.RIGHT:f.pos(1-o.w/b.x);break;case e.DOCK.TOP:f.pos(o.h/b.y);break;case e.DOCK.BOTTOM:f.pos(1-o.h/b.y)}else f.__findBestPos();a===e.DOCK.LEFT||a===e.DOCK.TOP?(f.pane(0,c),f.pane(1,_._root)):(f.pane(0,_._root),f.pane(1,c)),_._root=f}}else _._root=c,c.__container(v);c.addPanel(t)},__addCollapser:function(t,a){var r=null;if(a){for(var o=a._parent,i=a;o&&!o.instanceOf("wcSplitter")&&!o.instanceOf("wcDocker");)i=o,o=o._parent;var n=new(this.__getClass("wcSplitter"))(this.$transition,o,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP);if(o&&o.instanceOf("wcDocker")&&(this._root=n,n.__container(this.$container)),o&&o.instanceOf("wcSplitter")){var s=o.left(),l=(o.right(),{x:-1,y:-1});s===i?(l.x=o.$pane[0].width(),l.y=o.$pane[0].height(),o.pane(0,n)):(n=new(this.__getClass("wcSplitter"))(this.$transition,o,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP),l.x=o.$pane[1].width(),l.y=o.$pane[1].height(),o.pane(1,n))}if(n){switch(n.scrollable(0,!1,!1),n.scrollable(1,!1,!1),r=new(this.__getClass("wcCollapser"))(this.$transition,n,t),t){case e.DOCK.TOP:case e.DOCK.LEFT:n.pos(0);break;case e.DOCK.BOTTOM:case e.DOCK.RIGHT:n.pos(1)}t===e.DOCK.LEFT||t===e.DOCK.TOP?(n.pane(0,r),n.pane(1,i)):(n.pane(0,i),n.pane(1,r))}}return r},__addPlaceholder:function(t){this._placeholderPanel&&console.log("WARNING: wcDocker creating placeholder panel when one already exists"),this._placeholderPanel=new(this.__getClass("wcPanel"))(this,e.PANEL_PLACEHOLDER,{}),this._placeholderPanel._isPlaceholder=!0,this._placeholderPanel.__container(this.$transition),this._placeholderPanel._panelObject=new function(t){t.title(!1),t.closeable(!1)}(this._placeholderPanel),t?this.__addPanelGrouped(this._placeholderPanel,t):this.__addPanelAlone(this._placeholderPanel,e.DOCK.TOP),this.__update()},__closePanel:function(t){var e=!1,a=this.panelTypeInfo(t._type);a&&a.isPersistent&&(e=!0,this._persistentList.push(t)),this.removePanel(t,e),this.__update()},__stringToPercent:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)/e}return parseFloat(t)},__stringToPixel:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100*e;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)}return parseFloat(t)}});for(var b in e)p[b]=e[b];return p.defaultClasses=f,p}),a("wcDocker/iframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcIFrame",constructor:function(t,e){this._panel=e,this._layout=e.layout(),this.$container=$(t),this.$frame=null,this.$focus=null,this.$iFrame=null,this._window=null,this._isDocking=!1,this._isHovering=!1,this._boundEvents=[],this._onLoadFuncs=[],this._onClosedFuncs=[],this.__init()},openURL:function(t){this.__clearFrame(),this.$iFrame=$(""),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.location.replace(t),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.document.open(),this._window.document.write(t),this._window.document.close(),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this.$iFrame[0].srcdoc=t,this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;t'),this.$focus=$('
'),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this._fontWeights=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900","initial","inherit"],this._borderStyles=[{display:"none",value:""},"dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],this._shadowStyle=[{display:"normal",value:""},"inset","initial","inherit"],this._parseBoxShadowStyle=function(t){return t=t.toLowerCase(),t.indexOf("inset")>-1?"inset":t.indexOf("initial")>-1?"initial":t.indexOf("inherit")>-1?"inherit":""},this._parseBoxShadowColor=function(t){t=t.toLowerCase();var e=t.indexOf("rgb");if(e>-1){var a=t.indexOf(")");return t.substring(e,a+1)}if(e=t.indexOf("#"),e>-1){var a=t.indexOf(" ");return-1===a&&(a=t.length),t.substring(e,a+1).replace(";","")}},this._parseBoxShadowAttribute=function(t){return function(e){var a=0;e=e.replace(/\s(?![^)]*(\(|$))/g,"");for(var r=e.split(" "),o=0;o=0;--t)this._frameIndex.unshift(this._frames[t].tab()),this._frames[t].destroy();this._frames=[]},buildControls:function(t){var e=this;this._panel.startLoading(),setTimeout(function(){e.clearControls(),$("body").toggleClass("wcMobile",t?!0:!1).toggleClass("wcDesktop",t?!1:!0),e._panel.layout().clear(),e._panel.layout().startBatch(),e._panel.layout().scene().css("padding","10px"),e._panel.layout()._childFrames=[];for(var a=0,r=0;r');e._panel.layout().addItem($(""),0,a,2),e._panel.layout().addItem(i,2,a,2).stretch("20%",""),i.on("change",function(t){if(this.files.length){var a=this.files[0];if("text/css"!==a.type)return void alert("Failed to upload file, must be a stylesheet!");var r=new FileReader;e._panel.startLoading(),setTimeout(function(){r.readAsText(a,"UTF-8"),r.onload=function(t){e.apply(t.target.result);var a=$("body").hasClass("wcMobile");e.pull(e._controls),e.buildControls(a),e._panel.finishLoading(400)},r.onerror=function(t){console.log("Error reading theme file."),e._panel.finishLoading(400)}},100)}}),a+=1;var n=$('');e._panel.layout().addItem(n,0,a).stretch("25%",""),n.click(function(){e._panel.startLoading(),setTimeout(function(){var t=$("body").hasClass("wcMobile");e.pull(e._controls),e.buildControls(t),e._panel.finishLoading(400)},100)});var s=$('');e._panel.layout().addItem(s,1,a).stretch("25%",""),s.click(function(){var t=e.build();e.apply(t),s.addClass("wcButtonActive")}),e.$activeTheme&&e.$activeTheme.parent().length&&s.addClass("wcButtonActive");var l=$('');e._panel.layout().addItem(l,2,a).stretch("25%",""),l.click(function(){e._panel.startLoading(),setTimeout(function(){e.buildControls(!t),e._panel.docker().__update(),e._panel.finishLoading(400)},100)}),t&&l.addClass("wcButtonActive");var c=$('');e._panel.layout().addItem(c,3,a).stretch("25%",""),c.click(function(){var t=e.build(),a=new Blob([t],{type:"text/plain;charset=utf-8"});saveAs(a,"myTheme.css")}),e._panel.layout().finishBatch();for(var r=0;r
'),t.addItem(i,0,r,5).stretch("","100%").css("position","relative")):(i=$("
"),t.addItem(i,0,r,5).css("height","auto"));var n=new a(i,this._panel);t._childFrames.push(n),n.moveable(!1),e.orientation&&n.tabOrientation(e.orientation);for(var s=0;s",0,a,5).stretch("","100%"),o.finishBatch()},addSpacer:function(t,e,a,r){e.name?t.addItem('
'+e.name+"
",0,a,4).stretch("100%",""):t.addItem('
',0,a,4).stretch("100%","")},addColorControl:function(t,e,a,r){function o(t){t?e[c]=t.toRgbString():e[c]=null,!r&&e.isMobileDisabled&&(e.mobileValue=e.value),l.onChanged()}var i=null,n=null,s=null,l=this,c="value",h="isDisabled";r&&(c="mobileValue",h="isMobileDisabled"),n=$('"),t.addItem(n,1,a).stretch("1%","").css("text-align","right"),s=$(''),t.addItem(s,2,a,2).stretch("100%",""),s.spectrum({color:e[c],showAlpha:!0,showPalette:!0,showInput:!0,showInitial:!0,allowEmpty:!0,clickoutFiresChange:!0,palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],selectionPalette:[],maxSelectionSize:8,localStorageKey:"theme.colors",preferredFormat:"hex3",change:o,move:o,hide:o}),e.grouped?i=this._lastCheckbox:(i=$(''),t.addItem(i,0,a).stretch("1%",""),i.attr("checked",!e[h]),this._lastCheckbox=i),i.change(function(){e[h]=!this.checked,s.spectrum(this.checked?"enable":"disable"),l.onChanged()}),e[h]&&s.spectrum("disable")},addTextControl:function(t,e,a,r){var o=null,i=null,n=null,s=this,l="value",c="isDisabled";r&&(l="mobileValue",c="isMobileDisabled"),i=$('"),t.addItem(i,1,a).stretch("1%","").css("text-align","right"),n=$(''),t.addItem(n,2,a,2).stretch("100%",""),n.val(e[l]),n.change(function(){e[l]=$(this).val(),!r&&e.isMobileDisabled&&(e.mobileValue=e.value),s.onChanged()}),e.grouped?o=this._lastCheckbox:(o=$(''),t.addItem(o,0,a).stretch("1%",""),o.attr("checked",!e[c]),this._lastCheckbox=o),o.change(function(){e[c]=!this.checked,n.attr("disabled",!this.checked),s.onChanged()}),e[c]&&n.attr("disabled",!0)},addPixelControl:function(t,e,a,r){var o=null,i=null,n=null,s=this,l="value",c="isDisabled";r&&(l="mobileValue",c="isMobileDisabled"),i=$('"),t.addItem(i,1,a).stretch("1%","").css("text-align","right"),n=$(''),t.addItem(n,2,a,2).stretch("100%",""),n.val(parseInt(e[l])),n.change(function(){e[l]=$(this).val()+"px",!r&&e.isMobileDisabled&&(e.mobileValue=e.value),s.onChanged()}),e.grouped?o=this._lastCheckbox:(o=$(''),t.addItem(o,0,a).stretch("1%",""),o.attr("checked",!e[c]),this._lastCheckbox=o),o.change(function(){e[c]=!this.checked,n.attr("disabled",!this.checked),s.onChanged()}),e[c]&&n.attr("disabled",!0)},addListControl:function(t){return function(e,a,r,o){var i=null,n=null,s=null,l=this,c="value",h="isDisabled";o&&(c="mobileValue",h="isMobileDisabled"),n=$('"),e.addItem(n,1,r).stretch("1%","").css("text-align","right"),s=$(''),e.addItem(s,2,r,2).stretch("100%","");for(var u=0;u"+d+""))}s.change(function(){a[c]=$(this).val(),!o&&a.isMobileDisabled&&(a.mobileValue=a.value),l.onChanged()}),a.grouped?i=this._lastCheckbox:(i=$(''),e.addItem(i,0,r).stretch("1%",""),i.attr("checked",!a[h]),this._lastCheckbox=i),i.change(function(){a[h]=!this.checked,s.attr("disabled",!this.checked),l.onChanged()}),a[h]&&s.attr("disabled",!0)}},build:function(t,e){var a=!1;t||(t={},e=this._controls,a=!0);for(var r=0;r'),$("head").append(this.$activeTheme),this.$activeTheme.text(t),this._panel.docker().__update()},pull:function(t,e){e||(this._objMapping={},this._tempItems=[]);var a=!1,r=$("body").hasClass("wcMobile");$("body").removeClass("wcMobile").addClass("wcDesktop");for(var o=0;o
',name:"Font Family",info:"The font family of standard text",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcDocker",elem:'
',name:"Font Weight",info:"The font weight of the standard text",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcDocker",elem:'
',name:"Font Size",info:"The font size of standard text",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcDocker",elem:'
',name:"Font Color",info:"The font color of standard text",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{name:"Background",create:this.addSpacer},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Color",info:"The background color to use",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""},{name:"",create:this.addSpacer},{name:"Modal Blocker",create:this.addSpacer},{selector:".wcModalBlocker",elem:'
',name:"Modal Blocker Color",info:"The color of the fullscreen blocker element that appears when a modal panel is visible",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Loading Screen",create:this.addSpacer},{selector:".wcLoadingIcon",elem:'
',name:"Loading Icon Color",info:"The icon color or the loading screen to use",create:this.addColorControl,attribute:"color",value:""},{selector:".wcLoadingLabel",elem:'
',name:"Loading Label Color",info:"The label color or the loading screen to use",create:this.addColorControl,attribute:"color",value:""},{selector:".wcLoadingBackground",elem:'
',name:"Loading Screen Color",info:"The background color or the loading screen to use",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Ghost",create:this.addSpacer},{selector:".wcGhost",elem:'
',name:"Ghost Color",info:"The ghost color, this is the overlay that shows where a moving panel is being moved",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcGhost",elem:'
',name:"Ghost Border Radius", info:"The ghost border radius",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"}]},{name:"Frames",scrollable:!0,create:this.addTab,controls:[{name:"Floating Frames",create:this.addSpacer},{selector:".wcFrameEdge",elem:'
',name:"Edge Color",info:"The color of a floating frame",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameEdge",elem:'
',name:"Edge Border Color",info:"The border color of a floating frame",create:this.addColorControl,attribute:"border-color",value:""},{selector:".wcFrameEdge",attribute:"border-width",value:"2"},{selector:".wcFrameEdge",attribute:"border-style",value:"solid"},{name:"",create:this.addSpacer},{name:"Splitter Frames",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Moveable Splitter",create:this.addTab,controls:[{name:"Moveable Splitter",create:this.addSpacer},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic)",elem:'
',name:"Size",info:"The size of a splitter bar",create:this.addPixelControl,attribute:"width",value:"",also:[{selector:".wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",attribute:"height"}]},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Color",info:"The color of a splitter bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Border Style",info:"The border style of a splitter bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Border Size",info:"The border size of a splitter bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Border Color",info:"The border color of a splitter bar",create:this.addColorControl,attribute:"border-color",value:""}]},{name:"Static Splitter",create:this.addTab,controls:[{name:"Static Splitter",create:this.addSpacer},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic",elem:'
',name:"Size",info:"The size of a static splitter bar",create:this.addPixelControl,attribute:"width",value:"",also:[{selector:".wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",attribute:"height"}]},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Color",info:"The color of a static splitter bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Border Style",info:"The border style of a static splitter bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Border Size",info:"The border size of a static splitter bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Border Color",info:"The border color of a static splitter bar",create:this.addColorControl,attribute:"border-color",value:""}]}]}]},{name:"Panels",scrollable:!0,create:this.addTab,controls:[{name:"Panels",create:this.addSpacer},{selector:".wcFrameFlasher",elem:'
',name:"Flash Color",info:"The color of the panel when it focus flashes.",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameShadower",elem:'
',name:"Shadow Color",info:"The color of the panel when it is being moved by the user.",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Panel Buttons",create:this.addSpacer},{create:this.addTabFrame,orientation:e.TAB.TOP,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton",elem:'
',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton",elem:'
',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton",elem:'
',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton",elem:'
',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Layout",scrollable:!0,create:this.addTab,controls:[{name:"Layout Grid",create:this.addSpacer},{selector:".wcLayoutGridAlternate tr:nth-child(even), .wcLayoutGridAltColor",elem:'
',name:"Odd Row Color",info:"When a layout grid alternate mode is enabled, this is the color to use for each alternate row",create:this.addColorControl,attribute:"background-color",value:"",important:!0},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
',name:"Border Style",info:"When a layout grid is visible, this is the style of the grid lines",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
',name:"Border Size",info:"When a layout grid is visible, this is the size of the grid lines",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
',name:"Border Color",info:"When a layout grid is visible, this is the color of the grid lines",create:this.addColorControl,attribute:"border-color",value:""}]},{name:"Tabs",scrollable:!0,create:this.addTab,controls:[{name:"Tab Bar",create:this.addSpacer},{selector:".wcFrameTitleBar",elem:'
',name:"Size",info:"The size of the tab bar.",create:this.addPixelControl,attribute:"height",notValue:"0px",value:"",also:[{selector:".wcFrameCenter",attribute:"top"}]},{selector:".wcFrameTitle",elem:'
',name:"Top Offset",info:"The top offset of the tab bar",create:this.addPixelControl,attribute:"padding-top",value:""},{selector:".wcFrameTitleBar",elem:'
',name:"Color",info:"The color of the tab bar",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Title Bar",create:this.addSpacer},{selector:".wcFrameTitle",elem:'
',name:"Font Size",info:"The font size of the title bar",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameTitle",elem:'
',name:"Font Weight",info:"The font weight of a title bar",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameTitle",elem:'
',name:"Font Color",info:"The font color of the title bar",create:this.addColorControl,attribute:"color",value:""},{selector:".wcFrameTitle",elem:'
',name:"Color",info:"The background color of the title bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameTitle",attribute:"font-weight",value:"bold"},{selector:".wcFrameTitle",attribute:"text-align",value:"center"},{name:"",create:this.addSpacer},{name:"Tab Items",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Tab Normal State",create:this.addTab,controls:[{name:"Tab Normal State",create:this.addSpacer},{selector:".wcPanelTab > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTab",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTab",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTab",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Hover State",create:this.addTab,controls:[{name:"Tab Hover State",create:this.addSpacer},{selector:".wcPanelTab:hover > div, .wcPanelTabHover > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Active State",create:this.addTab,controls:[{name:"Tab Active State",create:this.addSpacer},{selector:".wcPanelTabActive > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTabActive",elem:'
', name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Active Hover State",create:this.addTab,controls:[{name:"Tab Active Hover State",create:this.addSpacer},{selector:".wcPanelTabActive:hover > div, .wcPanelTabActiveHover > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Menus",scrollable:!0,create:this.addTab,controls:[{name:"Context Menu",create:this.addSpacer},{selector:".wcMenuList, .context-menu-list",elem:'
    ',name:"Border Style",info:"The border style of the context menu",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcMenuList, .context-menu-list",elem:'
      ',name:"Border Size",info:"The border size of the context menu",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcMenuList, .context-menu-list",elem:'
        ',name:"Border Color",info:"The border color of the context menu",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{name:"Menu Separator Bar",create:this.addSpacer},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Color",info:"The background color of the context menu separator bar",create:this.addColorControl,attribute:"background-color",value:"",important:!0},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Border Style",info:"The border style of the context menu separator bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Border Size",info:"The border size of the context menu separator bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Border Color",info:"The border color of the context menu separator bar",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{name:"Menu Items",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Menu Normal State",create:this.addTab,controls:[{name:"Menu Normal State",create:this.addSpacer},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Family",info:"The font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Weight",info:"The font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Size",info:"The font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Color",info:"The font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Color",info:"The background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]},{name:"Menu Hover State",create:this.addTab,controls:[{name:"Menu Hover State",create:this.addSpacer},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Family",info:"The font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Weight",info:"The font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Size",info:"The font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Color",info:"The font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Color",info:"The background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]},{name:"Menu Disabled State",create:this.addTab,controls:[{name:"Menu Disabled State",create:this.addSpacer},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Family",info:"The disabled font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Weight",info:"The disabled font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Size",info:"The disabled font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Color",info:"The disabled font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Color",info:"The disabled background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]}]}]},{name:"Scrollbar",scrollable:!0,create:this.addTab,controls:[{name:"Scrollbar (Chrome Only)",create:this.addSpacer},{selector:".wcScrollbar, ::-webkit-scrollbar",elem:'
        ',name:"Size",info:"The thickness of the scrollbar",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcScrollbar, ::-webkit-scrollbar, .wcScrollbarCorner, ::-webkit-scrollbar-corner",elem:'
        ',name:"Color",info:"The color of the scrollbar",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar track",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar track",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar track",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar track",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""},{name:"",create:this.addSpacer},{name:"Scrollbar Thumb Control (Chrome Only)",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Thumb Normal State",create:this.addTab,controls:[{name:"Thumb Normal State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Thumb Hover State",create:this.addTab,controls:[{name:"Thumb Hover State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Thumb Active State",create:this.addTab,controls:[{name:"Thumb Active State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Controls",scrollable:!0,create:this.addTab,controls:[{create:this.addTabFrame,controls:[{name:"Inputs",create:this.addTab,controls:[{name:"Input Controls",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcInput, input",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcInput, input",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcInput, input",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcInput, input",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcInput, input",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Combo Boxes",create:this.addTab,controls:[{name:"Combo Box Controls",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcSelect, select",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights), -attribute:"font-weight",value:""},{selector:".wcSelect, select",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcSelect, select",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSelect, select",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Buttons",create:this.addTab,controls:[{name:"Button Controls",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcButton:focus, button:focus",attribute:"outline",value:"0"},{selector:".wcButton, button",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButton, button",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButton, button",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButton, button",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButton, button",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButton, button",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active Hover State",create:this.addTab,controls:[{name:"Button Active Hover State",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Disabled State",create:this.addTab,controls:[{name:"Button Disabled State",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]}]}]}]}]}});return o}),e.config({baseUrl:"./bower_components",shim:{lodash:{exports:"_"}},packages:[{name:"dcl",location:"./dcl"},{name:"wcDocker",location:"../Code"},{name:"lodash",location:"./lodash-compat"}]}),e.config({config:{}}),e(["wcDocker/docker","wcDocker/splitter","wcDocker/tabframe","wcDocker/iframe","wcDocker/ThemeBuilder"],function(t,e,a,r,o){window.wcDocker=t,window.wcSplitter=e,window.wcTabFrame=a,window.wcIFrame=r,window.wcThemeBuilder=o,console.log("exported wcDocker")},void 0,!0),a("wcDockerLibrary",function(){})}(); \ No newline at end of file +attribute:"font-weight",value:""},{selector:".wcSelect, select",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcSelect, select",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSelect, select",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Buttons",create:this.addTab,controls:[{name:"Button Controls",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcButton:focus, button:focus",attribute:"outline",value:"0"},{selector:".wcButton, button",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButton, button",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButton, button",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButton, button",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButton, button",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButton, button",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active Hover State",create:this.addTab,controls:[{name:"Button Active Hover State",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Disabled State",create:this.addTab,controls:[{name:"Button Disabled State",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]}]}]}]}]}});return o}),e.config({baseUrl:"./bower_components",shim:{lodash:{exports:"_"}},packages:[{name:"dcl",location:"./dcl"},{name:"wcDocker",location:"../Code"},{name:"lodash",location:"./lodash-compat"}]}),e.config({config:{}}),e(["wcDocker/docker","wcDocker/splitter","wcDocker/tabframe","wcDocker/iframe","wcDocker/ThemeBuilder"],function(t,e,a,r,o){window.wcDocker=t,window.wcSplitter=e,window.wcTabFrame=a,window.wcIFrame=r,window.wcThemeBuilder=o,console.log("exported wcDocker")},void 0,!0),a("wcDockerLibrary",function(){})}();