/*

 jquery.layout 1.4.4
 $Date: 2014-11-29 08:00:00 (Sat, 29 November 2014) $
 $Rev: 1.0404 $

 Copyright (c) 2014 Kevin Dalman (http://jquery-dev.com)
 Based on work by Fabrizio Balliano (http://www.fabrizioballiano.net)

 Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
 and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.

 SEE: http://layout.jquery-dev.com/LICENSE.txt

 Changelog: http://layout.jquery-dev.com/changelog.cfm

 Docs: http://layout.jquery-dev.com/documentation.html
 Tips: http://layout.jquery-dev.com/tips.html
 Help: http://groups.google.com/group/jquery-ui-layout
 jQuery UI - v1.11.3 - 2015-03-01
 http://jqueryui.com
 Includes: core.js, widget.js, mouse.js, draggable.js, effect.js, effect-slide.js
 Copyright 2015 jQuery Foundation and other contributors; Licensed MIT  jQuery UI - v1.10.4 - 2014-06-14
 http://jqueryui.com
 Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.sortable.js
 Copyright 2014 jQuery Foundation and other contributors; Licensed MIT  jquery.event.drag - v 2.2
 Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
 Open Source MIT License - http://threedubmedia.com/code/license
*/
(function(b){"function"==typeof define&&define.amd?define(["jquery"],b):b(jQuery)})(function(b){function w(a,c){var d,f,k,n=a.nodeName.toLowerCase();return"area"===n?(d=a.parentNode,f=d.name,a.href&&f&&"map"===d.nodeName.toLowerCase()?(k=b("img[usemap='#"+f+"']")[0],!!k&&A(k)):!1):(/^(input|select|textarea|button|object)$/.test(n)?!a.disabled:"a"===n?a.href||c:c)&&A(a)}function A(a){return b.expr.filters.visible(a)&&!b(a).parents().addBack().filter(function(){return"hidden"===b.css(this,"visibility")}).length}
b.ui=b.ui||{};b.extend(b.ui,{version:"1.11.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});b.fn.extend({scrollParent:function(a){var c=this.css("position"),d="absolute"===c,f=a?/(auto|scroll|hidden)/:/(auto|scroll)/;a=this.parents().filter(function(){var k=b(this);return d&&"static"===k.css("position")?!1:f.test(k.css("overflow")+k.css("overflow-y")+k.css("overflow-x"))}).eq(0);return"fixed"!==
c&&a.length?a:b(this[0].ownerDocument||document)},uniqueId:function(){var a=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&b(this).removeAttr("id")})}});b.extend(b.expr[":"],{data:b.expr.createPseudo?b.expr.createPseudo(function(a){return function(c){return!!b.data(c,a)}}):function(a,c,d){return!!b.data(a,d[3])},focusable:function(a){return w(a,!isNaN(b.attr(a,"tabindex")))},
tabbable:function(a){var c=b.attr(a,"tabindex"),d=isNaN(c);return(d||c>=0)&&w(a,!d)}});b("<a>").outerWidth(1).jquery||b.each(["Width","Height"],function(a,c){function d(x,y,F,K){return b.each(f,function(){y-=parseFloat(b.css(x,"padding"+this))||0;F&&(y-=parseFloat(b.css(x,"border"+this+"Width"))||0);K&&(y-=parseFloat(b.css(x,"margin"+this))||0)}),y}var f="Width"===c?["Left","Right"]:["Top","Bottom"],k=c.toLowerCase(),n={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,
outerHeight:b.fn.outerHeight};b.fn["inner"+c]=function(x){return void 0===x?n["inner"+c].call(this):this.each(function(){b(this).css(k,d(this,x)+"px")})};b.fn["outer"+c]=function(x,y){return"number"!=typeof x?n["outer"+c].call(this,x):this.each(function(){b(this).css(k,d(this,x,!0,y)+"px")})}});b.fn.addBack||(b.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))});b("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(b.fn.removeData=function(a){return function(c){return arguments.length?
a.call(this,b.camelCase(c)):a.call(this)}}(b.fn.removeData));b.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());b.fn.extend({focus:function(a){return function(c,d){return"number"==typeof c?this.each(function(){var f=this;setTimeout(function(){b(f).focus();d&&d.call(f)},c)}):a.apply(this,arguments)}}(b.fn.focus),disableSelection:function(){var a="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(a+".ui-disableSelection",function(c){c.preventDefault()})}}(),
enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(a){if(void 0!==a)return this.css("zIndex",a);if(this.length){var c,d;for(a=b(this[0]);a.length&&a[0]!==document;){if(c=a.css("position"),("absolute"===c||"relative"===c||"fixed"===c)&&(d=parseInt(a.css("zIndex"),10),!isNaN(d)&&0!==d))return d;a=a.parent()}}return 0}});b.ui.plugin={add:function(a,c,d){var f;a=b.ui[a].prototype;for(f in d)a.plugins[f]=a.plugins[f]||[],a.plugins[f].push([c,d[f]])},call:function(a,
c,d,f){if((c=a.plugins[c])&&(f||a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType))for(f=0;c.length>f;f++)a.options[c[f][0]]&&c[f][1].apply(a.element,d)}};var g=0,r=Array.prototype.slice;b.cleanData=function(a){return function(c){var d,f,k;for(k=0;null!=(f=c[k]);k++)try{(d=b._data(f,"events"))&&d.remove&&b(f).triggerHandler("remove")}catch(n){}a(c)}}(b.cleanData);b.widget=function(a,c,d){var f,k,n,x,y={},F=a.split(".")[0];return a=a.split(".")[1],f=F+"-"+a,d||(d=c,c=b.Widget),b.expr[":"][f.toLowerCase()]=
function(K){return!!b.data(K,f)},b[F]=b[F]||{},k=b[F][a],n=b[F][a]=function(K,L){return this._createWidget?(arguments.length&&this._createWidget(K,L),void 0):new n(K,L)},b.extend(n,k,{version:d.version,_proto:b.extend({},d),_childConstructors:[]}),x=new c,x.options=b.widget.extend({},x.options),b.each(d,function(K,L){return b.isFunction(L)?(y[K]=function(){var R=function(){return c.prototype[K].apply(this,arguments)},D=function(C){return c.prototype[K].apply(this,C)};return function(){var C,E=this._super,
H=this._superApply;return this._super=R,this._superApply=D,C=L.apply(this,arguments),this._super=E,this._superApply=H,C}}(),void 0):(y[K]=L,void 0)}),n.prototype=b.widget.extend(x,{widgetEventPrefix:k?x.widgetEventPrefix||a:a},y,{constructor:n,namespace:F,widgetName:a,widgetFullName:f}),k?(b.each(k._childConstructors,function(K,L){K=L.prototype;b.widget(K.namespace+"."+K.widgetName,n,L._proto)}),delete k._childConstructors):c._childConstructors.push(n),b.widget.bridge(a,n),n};b.widget.extend=function(a){for(var c,
d,f=r.call(arguments,1),k=0,n=f.length;n>k;k++)for(c in f[k])d=f[k][c],f[k].hasOwnProperty(c)&&void 0!==d&&(a[c]=b.isPlainObject(d)?b.isPlainObject(a[c])?b.widget.extend({},a[c],d):b.widget.extend({},d):d);return a};b.widget.bridge=function(a,c){var d=c.prototype.widgetFullName||a;b.fn[a]=function(f){var k="string"==typeof f,n=r.call(arguments,1),x=this;return k?this.each(function(){var y,F=b.data(this,d);return"instance"===f?(x=F,!1):F?b.isFunction(F[f])&&"_"!==f.charAt(0)?(y=F[f].apply(F,n),y!==
F&&void 0!==y?(x=y&&y.jquery?x.pushStack(y.get()):y,!1):void 0):b.error("no such method '"+f+"' for "+a+" widget instance"):b.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+f+"'")}):(n.length&&(f=b.widget.extend.apply(null,[f].concat(n))),this.each(function(){var y=b.data(this,d);y?(y.option(f||{}),y._init&&y._init()):b.data(this,d,new c(f,this))})),x}};b.Widget=function(){};b.Widget._childConstructors=[];b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",
defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(a,c){c=b(c||this.defaultElement||this)[0];this.element=b(c);this.uuid=g++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=b();this.hoverable=b();this.focusable=b();c!==this&&(b.data(c,this.widgetFullName,this),this._on(!0,this.element,{remove:function(d){d.target===c&&this.destroy()}}),this.document=b(c.style?c.ownerDocument:c.document||c),this.window=b(this.document[0].defaultView||this.document[0].parentWindow));
this.options=b.widget.extend({},this.options,this._getCreateOptions(),a);this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:b.noop,_getCreateEventData:b.noop,_create:b.noop,_init:b.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(b.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");
this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:b.noop,widget:function(){return this.element},option:function(a,c){var d,f,k=a;if(0===arguments.length)return b.widget.extend({},this.options);if("string"==typeof a)if(k={},d=a.split("."),a=d.shift(),d.length){var n=k[a]=b.widget.extend({},this.options[a]);for(f=0;d.length-1>f;f++)n[d[f]]=n[d[f]]||{},n=n[d[f]];if(a=d.pop(),1===arguments.length)return void 0===
n[a]?null:n[a];n[a]=c}else{if(1===arguments.length)return void 0===this.options[a]?null:this.options[a];k[a]=c}return this._setOptions(k),this},_setOptions:function(a){for(var c in a)this._setOption(c,a[c]);return this},_setOption:function(a,c){return this.options[a]=c,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!c),c&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},
disable:function(){return this._setOptions({disabled:!0})},_on:function(a,c,d){var f,k=this;"boolean"!=typeof a&&(d=c,c=a,a=!1);d?(c=f=b(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,f=this.widget());b.each(d,function(n,x){function y(){return a||k.options.disabled!==!0&&!b(this).hasClass("ui-state-disabled")?("string"==typeof x?k[x]:x).apply(k,arguments):void 0}"string"!=typeof x&&(y.guid=x.guid=x.guid||y.guid||b.guid++);var F=n.match(/^([\w:-]*)\s*(.*)$/);n=F[1]+k.eventNamespace;(F=
F[2])?f.delegate(F,n,y):c.bind(n,y)})},_off:function(a,c){c=(c||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(c).undelegate(c);this.bindings=b(this.bindings.not(a).get());this.focusable=b(this.focusable.not(a).get());this.hoverable=b(this.hoverable.not(a).get())},_delay:function(a,c){var d=this;return setTimeout(function(){return("string"==typeof a?d[a]:a).apply(d,arguments)},c||0)},_hoverable:function(a){this.hoverable=this.hoverable.add(a);this._on(a,{mouseenter:function(c){b(c.currentTarget).addClass("ui-state-hover")},
mouseleave:function(c){b(c.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(a){this.focusable=this.focusable.add(a);this._on(a,{focusin:function(c){b(c.currentTarget).addClass("ui-state-focus")},focusout:function(c){b(c.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(a,c,d){var f,k,n=this.options[a];if(d=d||{},c=b.Event(c),c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase(),c.target=this.element[0],k=c.originalEvent)for(f in k)f in c||
(c[f]=k[f]);return this.element.trigger(c,d),!(b.isFunction(n)&&n.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}};b.each({show:"fadeIn",hide:"fadeOut"},function(a,c){b.Widget.prototype["_"+a]=function(d,f,k){"string"==typeof f&&(f={effect:f});var n=f?f===!0||"number"==typeof f?c:f.effect||c:a;f=f||{};"number"==typeof f&&(f={duration:f});var x=!b.isEmptyObject(f);f.complete=k;f.delay&&d.delay(f.delay);x&&b.effects&&b.effects.effect[n]?d[a](f):n!==a&&d[n]?d[n](f.duration,f.easing,
k):d.queue(function(y){b(this)[a]();k&&k.call(d[0]);y()})}});b.widget;var p=!1;b(document).mouseup(function(){p=!1});b.widget("ui.mouse",{version:"1.11.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){return!0===b.data(c.target,a.widgetName+".preventClickEvent")?(b.removeData(c.target,a.widgetName+".preventClickEvent"),
c.stopImmediatePropagation(),!1):void 0});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(a){if(!p){this._mouseMoved=!1;this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,d=1===a.which,f="string"==typeof this.options.cancel&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:
!1;return d&&!f&&this._mouseCapture(a)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=this._mouseStart(a)!==!1,!this._mouseStarted)?(a.preventDefault(),!0):(!0===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(k){return c._mouseMove(k)},
this._mouseUpDelegate=function(k){return c._mouseUp(k)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),a.preventDefault(),p=!0,!0)):!0}},_mouseMove:function(a){return this._mouseMoved&&(b.ui.ie&&(!document.documentMode||9>document.documentMode)&&!a.button||!a.which)?this._mouseUp(a):((a.which||a.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(a),a.preventDefault()):(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&
(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==!1,this._mouseStarted?this._mouseDrag(a):this._mouseUp(a)),!this._mouseStarted))},_mouseUp:function(a){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,a.target===this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(a)),p=!1,!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});b.widget("ui.draggable",b.ui.mouse,{version:"1.11.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,
revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative();this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._setHandleClassName();this._mouseInit()},_setOption:function(a,c){this._super(a,c);"handle"===a&&(this._removeHandleClassName(),
this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(a){var c=this.options;return this._blurActiveElement(a),this.helper||c.disabled||b(a.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(a),this.handle?(this._blockFrames(c.iframeFix===
!0?"iframe":c.iframeFix),!0):!1)},_blockFrames:function(a){this.iframeBlocks=this.document.find(a).map(function(){var c=b(this);return b("<div>").css("position","absolute").appendTo(c.parent()).outerWidth(c.outerWidth()).outerHeight(c.outerHeight()).offset(c.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(a){var c=this.document[0];if(this.handleElement.is(a.target))try{c.activeElement&&"body"!==c.activeElement.nodeName.toLowerCase()&&
b(c.activeElement).blur()}catch(d){}},_mouseStart:function(a){var c=this.options;return this.helper=this._createHelper(a),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),b.ui.ddmanager&&(b.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===b(this).css("position")}).length>
0,this.positionAbs=this.element.offset(),this._refreshOffsets(a),this.originalPosition=this.position=this._generatePosition(a,!1),this.originalPageX=a.pageX,this.originalPageY=a.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",a)===!1?(this._clear(),!1):(this._cacheHelperProportions(),b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a),this._normalizeRightBottom(),this._mouseDrag(a,!0),b.ui.ddmanager&&b.ui.ddmanager.dragStart(this,
a),!0)},_refreshOffsets:function(a){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:a.pageX-this.offset.left,top:a.pageY-this.offset.top}},_mouseDrag:function(a,c){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(a,!0),this.positionAbs=this._convertPositionTo("absolute"),!c){c=this._uiHash();
if(this._trigger("drag",a,c)===!1)return this._mouseUp({}),!1;this.position=c.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",b.ui.ddmanager&&b.ui.ddmanager.drag(this,a),!1},_mouseStop:function(a){var c=this,d=!1;return b.ui.ddmanager&&!this.options.dropBehaviour&&(d=b.ui.ddmanager.drop(this,a)),this.dropped&&(d=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===
!0||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==!1&&c._clear()}):this._trigger("stop",a)!==!1&&this._clear(),!1},_mouseUp:function(a){return this._unblockFrames(),b.ui.ddmanager&&b.ui.ddmanager.dragStop(this,a),this.handleElement.is(a.target)&&this.element.focus(),b.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?
this._mouseUp({}):this._clear(),this},_getHandle:function(a){return this.options.handle?!!b(a.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(a){var c=this.options,d=b.isFunction(c.helper);a=d?b(c.helper.apply(this.element[0],
[a])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d&&a[0]===this.element[0]&&this._setPositionRelative(),a[0]===this.element[0]||/(fixed|absolute)/.test(a.css("position"))||a.css("position","absolute"),a},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(a){"string"==
typeof a&&(a=a.split(" "));b.isArray(a)&&(a={left:+a[0],top:+a[1]||0});"left"in a&&(this.offset.click.left=a.left+this.margins.left);"right"in a&&(this.offset.click.left=this.helperProportions.width-a.right+this.margins.left);"top"in a&&(this.offset.click.top=a.top+this.margins.top);"bottom"in a&&(this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top)},_isRootNode:function(a){return/(html|body)/i.test(a.tagName)||a===this.document[0]},_getParentOffset:function(){var a=this.offsetParent.offset(),
c=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==c&&b.contains(this.scrollParent[0],this.offsetParent[0])&&(a.left+=this.scrollParent.scrollLeft(),a.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(a={top:0,left:0}),{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var a=
this.element.position(),c=this._isRootNode(this.scrollParent[0]);return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+(c?0:this.scrollParent.scrollTop()),left:a.left-(parseInt(this.helper.css("left"),10)||0)+(c?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||
0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a,c,d,f=this.options,k=this.document[0];return this.relativeContainer=null,f.containment?"window"===f.containment?(this.containment=[b(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,b(window).scrollLeft()+b(window).width()-this.helperProportions.width-
this.margins.left,b(window).scrollTop()+(b(window).height()||k.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===f.containment?(this.containment=[0,0,b(k).width()-this.helperProportions.width-this.margins.left,(b(k).height()||k.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):f.containment.constructor===Array?(this.containment=f.containment,void 0):("parent"===f.containment&&(f.containment=this.helper[0].parentNode),
c=b(f.containment),d=c[0],d&&(a=/(scroll|auto)/.test(c.css("overflow")),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(a?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(a?Math.max(d.scrollHeight,d.offsetHeight):
d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=c),void 0):(this.containment=null,void 0)},_convertPositionTo:function(a,c){c||(c=this.position);a="absolute"===a?1:-1;var d=this._isRootNode(this.scrollParent[0]);return{top:c.top+this.offset.relative.top*a+this.offset.parent.top*a-("fixed"===this.cssPosition?-this.offset.scroll.top:d?0:this.offset.scroll.top)*
a,left:c.left+this.offset.relative.left*a+this.offset.parent.left*a-("fixed"===this.cssPosition?-this.offset.scroll.left:d?0:this.offset.scroll.left)*a}},_generatePosition:function(a,c){var d,f,k,n,x=this.options,y=this._isRootNode(this.scrollParent[0]),F=a.pageX,K=a.pageY;return y&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),c&&(this.containment&&(this.relativeContainer?(f=this.relativeContainer.offset(),d=[this.containment[0]+
f.left,this.containment[1]+f.top,this.containment[2]+f.left,this.containment[3]+f.top]):d=this.containment,a.pageX-this.offset.click.left<d[0]&&(F=d[0]+this.offset.click.left),a.pageY-this.offset.click.top<d[1]&&(K=d[1]+this.offset.click.top),a.pageX-this.offset.click.left>d[2]&&(F=d[2]+this.offset.click.left),a.pageY-this.offset.click.top>d[3]&&(K=d[3]+this.offset.click.top)),x.grid&&(k=x.grid[1]?this.originalPageY+Math.round((K-this.originalPageY)/x.grid[1])*x.grid[1]:this.originalPageY,K=d?k-this.offset.click.top>=
d[1]||k-this.offset.click.top>d[3]?k:k-this.offset.click.top>=d[1]?k-x.grid[1]:k+x.grid[1]:k,n=x.grid[0]?this.originalPageX+Math.round((F-this.originalPageX)/x.grid[0])*x.grid[0]:this.originalPageX,F=d?n-this.offset.click.left>=d[0]||n-this.offset.click.left>d[2]?n:n-this.offset.click.left>=d[0]?n-x.grid[0]:n+x.grid[0]:n),"y"===x.axis&&(F=this.originalPageX),"x"===x.axis&&(K=this.originalPageY)),{top:K-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?
-this.offset.scroll.top:y?0:this.offset.scroll.top),left:F-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:y?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&
"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto"));"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(a,c,d){return d=d||this._uiHash(),b.ui.plugin.call(this,a,[c,d,this],!0),/^(drag|start|stop)/.test(a)&&(this.positionAbs=this._convertPositionTo("absolute"),d.offset=this.positionAbs),b.Widget.prototype._trigger.call(this,a,c,d)},plugins:{},
_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.ui.plugin.add("draggable","connectToSortable",{start:function(a,c,d){var f=b.extend({},c,{item:d.element});d.sortables=[];b(d.options.connectToSortable).each(function(){var k=b(this).sortable("instance");k&&!k.options.disabled&&(d.sortables.push(k),k.refreshPositions(),k._trigger("activate",a,f))})},stop:function(a,c,d){var f=b.extend({},c,{item:d.element});d.cancelHelperRemoval=
!1;b.each(d.sortables,function(){this.isOver?(this.isOver=0,d.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(a),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",a,f))})},drag:function(a,c,d){b.each(d.sortables,function(){var f=!1,k=this;k.positionAbs=d.positionAbs;k.helperProportions=d.helperProportions;k.offset.click=
d.offset.click;k._intersectsWith(k.containerCache)&&(f=!0,b.each(d.sortables,function(){return this.positionAbs=d.positionAbs,this.helperProportions=d.helperProportions,this.offset.click=d.offset.click,this!==k&&this._intersectsWith(this.containerCache)&&b.contains(k.element[0],this.element[0])&&(f=!1),f}));f?(k.isOver||(k.isOver=1,k.currentItem=c.helper.appendTo(k.element).data("ui-sortable-item",!0),k.options._helper=k.options.helper,k.options.helper=function(){return c.helper[0]},a.target=k.currentItem[0],
k._mouseCapture(a,!0),k._mouseStart(a,!0,!0),k.offset.click.top=d.offset.click.top,k.offset.click.left=d.offset.click.left,k.offset.parent.left-=d.offset.parent.left-k.offset.parent.left,k.offset.parent.top-=d.offset.parent.top-k.offset.parent.top,d._trigger("toSortable",a),d.dropped=k.element,b.each(d.sortables,function(){this.refreshPositions()}),d.currentItem=d.element,k.fromOutside=d),k.currentItem&&(k._mouseDrag(a),c.position=k.position)):k.isOver&&(k.isOver=0,k.cancelHelperRemoval=!0,k.options._revert=
k.options.revert,k.options.revert=!1,k._trigger("out",a,k._uiHash(k)),k._mouseStop(a,!0),k.options.revert=k.options._revert,k.options.helper=k.options._helper,k.placeholder&&k.placeholder.remove(),d._refreshOffsets(a),c.position=d._generatePosition(a,!0),d._trigger("fromSortable",a),d.dropped=!1,b.each(d.sortables,function(){this.refreshPositions()}))})}});b.ui.plugin.add("draggable","cursor",{start:function(a,c,d){a=b("body");d=d.options;a.css("cursor")&&(d._cursor=a.css("cursor"));a.css("cursor",
d.cursor)},stop:function(a,c,d){a=d.options;a._cursor&&b("body").css("cursor",a._cursor)}});b.ui.plugin.add("draggable","opacity",{start:function(a,c,d){a=b(c.helper);d=d.options;a.css("opacity")&&(d._opacity=a.css("opacity"));a.css("opacity",d.opacity)},stop:function(a,c,d){a=d.options;a._opacity&&b(c.helper).css("opacity",a._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(a,c,d){d.scrollParentNotHidden||(d.scrollParentNotHidden=d.helper.scrollParent(!1));d.scrollParentNotHidden[0]!==
d.document[0]&&"HTML"!==d.scrollParentNotHidden[0].tagName&&(d.overflowOffset=d.scrollParentNotHidden.offset())},drag:function(a,c,d){c=d.options;var f=!1,k=d.scrollParentNotHidden[0],n=d.document[0];k!==n&&"HTML"!==k.tagName?(c.axis&&"x"===c.axis||(d.overflowOffset.top+k.offsetHeight-a.pageY<c.scrollSensitivity?k.scrollTop=f=k.scrollTop+c.scrollSpeed:a.pageY-d.overflowOffset.top<c.scrollSensitivity&&(k.scrollTop=f=k.scrollTop-c.scrollSpeed)),c.axis&&"y"===c.axis||(d.overflowOffset.left+k.offsetWidth-
a.pageX<c.scrollSensitivity?k.scrollLeft=f=k.scrollLeft+c.scrollSpeed:a.pageX-d.overflowOffset.left<c.scrollSensitivity&&(k.scrollLeft=f=k.scrollLeft-c.scrollSpeed))):(c.axis&&"x"===c.axis||(a.pageY-b(n).scrollTop()<c.scrollSensitivity?f=b(n).scrollTop(b(n).scrollTop()-c.scrollSpeed):b(window).height()-(a.pageY-b(n).scrollTop())<c.scrollSensitivity&&(f=b(n).scrollTop(b(n).scrollTop()+c.scrollSpeed))),c.axis&&"y"===c.axis||(a.pageX-b(n).scrollLeft()<c.scrollSensitivity?f=b(n).scrollLeft(b(n).scrollLeft()-
c.scrollSpeed):b(window).width()-(a.pageX-b(n).scrollLeft())<c.scrollSensitivity&&(f=b(n).scrollLeft(b(n).scrollLeft()+c.scrollSpeed))));f!==!1&&b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(d,a)}});b.ui.plugin.add("draggable","snap",{start:function(a,c,d){a=d.options;d.snapElements=[];b(a.snap.constructor!==String?a.snap.items||":data(ui-draggable)":a.snap).each(function(){var f=b(this),k=f.offset();this!==d.element[0]&&d.snapElements.push({item:this,width:f.outerWidth(),height:f.outerHeight(),
top:k.top,left:k.left})})},drag:function(a,c,d){var f,k,n,x,y,F,K=d.options,L=K.snapTolerance,R=c.offset.left,D=R+d.helperProportions.width,C=c.offset.top,E=C+d.helperProportions.height;for(y=d.snapElements.length-1;y>=0;y--){var H=d.snapElements[y].left-d.margins.left;var I=H+d.snapElements[y].width;var G=d.snapElements[y].top-d.margins.top;var S=G+d.snapElements[y].height;H-L>D||R>I+L||G-L>E||C>S+L||!b.contains(d.snapElements[y].item.ownerDocument,d.snapElements[y].item)?(d.snapElements[y].snapping&&
d.options.snap.release&&d.options.snap.release.call(d.element,a,b.extend(d._uiHash(),{snapItem:d.snapElements[y].item})),d.snapElements[y].snapping=!1):("inner"!==K.snapMode&&(f=L>=Math.abs(G-E),k=L>=Math.abs(S-C),n=L>=Math.abs(H-D),x=L>=Math.abs(I-R),f&&(c.position.top=d._convertPositionTo("relative",{top:G-d.helperProportions.height,left:0}).top),k&&(c.position.top=d._convertPositionTo("relative",{top:S,left:0}).top),n&&(c.position.left=d._convertPositionTo("relative",{top:0,left:H-d.helperProportions.width}).left),
x&&(c.position.left=d._convertPositionTo("relative",{top:0,left:I}).left)),F=f||k||n||x,"outer"!==K.snapMode&&(f=L>=Math.abs(G-C),k=L>=Math.abs(S-E),n=L>=Math.abs(H-R),x=L>=Math.abs(I-D),f&&(c.position.top=d._convertPositionTo("relative",{top:G,left:0}).top),k&&(c.position.top=d._convertPositionTo("relative",{top:S-d.helperProportions.height,left:0}).top),n&&(c.position.left=d._convertPositionTo("relative",{top:0,left:H}).left),x&&(c.position.left=d._convertPositionTo("relative",{top:0,left:I-d.helperProportions.width}).left)),
!d.snapElements[y].snapping&&(f||k||n||x||F)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,a,b.extend(d._uiHash(),{snapItem:d.snapElements[y].item})),d.snapElements[y].snapping=f||k||n||x||F)}}});b.ui.plugin.add("draggable","stack",{start:function(a,c,d){var f;a=b.makeArray(b(d.options.stack)).sort(function(k,n){return(parseInt(b(k).css("zIndex"),10)||0)-(parseInt(b(n).css("zIndex"),10)||0)});a.length&&(f=parseInt(b(a[0]).css("zIndex"),10)||0,b(a).each(function(k){b(this).css("zIndex",
f+k)}),this.css("zIndex",f+a.length))}});b.ui.plugin.add("draggable","zIndex",{start:function(a,c,d){a=b(c.helper);d=d.options;a.css("zIndex")&&(d._zIndex=a.css("zIndex"));a.css("zIndex",d.zIndex)},stop:function(a,c,d){a=d.options;a._zIndex&&b(c.helper).css("zIndex",a._zIndex)}});b.ui.draggable;b.effects={effect:{}};(function(a,c){function d(E,H,I){var G=K[H.type]||{};return null==E?I||!H.def?null:H.def:(E=G.floor?~~E:parseFloat(E),isNaN(E)?H.def:G.mod?(E+G.mod)%G.mod:0>E?0:E>G.max?G.max:E)}function f(E){var H=
y(),I=H._rgba=[];return E=E.toLowerCase(),D(x,function(G,S){var V;G=(G=S.re.exec(E))&&S.parse(G);S=S.space||"rgba";return G?(V=H[S](G),H[F[S].cache]=V[F[S].cache],I=H._rgba=V._rgba,!1):c}),I.length?("0,0,0,0"===I.join()&&a.extend(I,C.transparent),H):C[E]}function k(E,H,I){return I=(I+1)%1,1>6*I?E+6*(H-E)*I:1>2*I?H:2>3*I?E+6*(H-E)*(2/3-I):E}var n=/^([\-+])=\s*(\d+\.?\d*)/,x=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(E){return[E[1],E[2],
E[3],E[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(E){return[2.55*E[1],2.55*E[2],2.55*E[3],E[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)%\s*,\s*(\d+(?:\.\d+)?)%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
space:"hsla",parse:function(E){return[E[1],E[2]/100,E[3]/100,E[4]]}}],y=a.Color=function(E,H,I,G){return new a.Color.fn.parse(E,H,I,G)},F={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},K={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},L=y.support={},R=a("<p>")[0],D=a.each;R.style.cssText="background-color:rgba(1,1,1,.5)";L.rgba=
R.style.backgroundColor.indexOf("rgba")>-1;D(F,function(E,H){H.cache="_"+E;H.props.alpha={idx:3,type:"percent",def:1}});y.fn=a.extend(y.prototype,{parse:function(E,H,I,G){if(E===c)return this._rgba=[null,null,null,null],this;(E.jquery||E.nodeType)&&(E=a(E).css(H),H=c);var S=this,V=a.type(E),Z=this._rgba=[];return H!==c&&(E=[E,H,I,G],V="array"),"string"===V?this.parse(f(E)||C._default):"array"===V?(D(F.rgba.props,function(X,T){Z[T.idx]=d(E[T.idx],T)}),this):"object"===V?(E instanceof y?D(F,function(X,
T){E[T.cache]&&(S[T.cache]=E[T.cache].slice())}):D(F,function(X,T){var W=T.cache;D(T.props,function(ca,fa){if(!S[W]&&T.to){if("alpha"===ca||null==E[ca])return;S[W]=T.to(S._rgba)}S[W][fa.idx]=d(E[ca],fa,!0)});S[W]&&0>a.inArray(null,S[W].slice(0,3))&&(S[W][3]=1,T.from&&(S._rgba=T.from(S[W])))}),this):c},is:function(E){var H=y(E),I=!0,G=this;return D(F,function(S,V){var Z,X=H[V.cache];return X&&(Z=G[V.cache]||V.to&&V.to(G._rgba)||[],D(V.props,function(T,W){return null!=X[W.idx]?I=X[W.idx]===Z[W.idx]:
c})),I}),I},_space:function(){var E=[],H=this;return D(F,function(I,G){H[G.cache]&&E.push(I)}),E.pop()},transition:function(E,H){var I=y(E);E=I._space();var G=F[E],S=0===this.alpha()?y("transparent"):this,V=S[G.cache]||G.to(S._rgba),Z=V.slice();return I=I[G.cache],D(G.props,function(X,T){X=T.idx;var W=V[X],ca=I[X],fa=K[T.type]||{};null!==ca&&(null===W?Z[X]=ca:(fa.mod&&(ca-W>fa.mod/2?W+=fa.mod:W-ca>fa.mod/2&&(W-=fa.mod)),Z[X]=d((ca-W)*H+W,T)))}),this[E](Z)},blend:function(E){if(1===this._rgba[3])return this;
var H=this._rgba.slice(),I=H.pop(),G=y(E)._rgba;return y(a.map(H,function(S,V){return(1-I)*G[V]+I*S}))},toRgbaString:function(){var E="rgba(",H=a.map(this._rgba,function(I,G){return null==I?G>2?1:0:I});return 1===H[3]&&(H.pop(),E="rgb("),E+H.join()+")"},toHslaString:function(){var E="hsla(",H=a.map(this.hsla(),function(I,G){return null==I&&(I=G>2?1:0),G&&3>G&&(I=Math.round(100*I)+"%"),I});return 1===H[3]&&(H.pop(),E="hsl("),E+H.join()+")"},toHexString:function(E){var H=this._rgba.slice(),I=H.pop();
return E&&H.push(~~(255*I)),"#"+a.map(H,function(G){return G=(G||0).toString(16),1===G.length?"0"+G:G}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});y.fn.parse.prototype=y.fn;F.hsla.to=function(E){if(null==E[0]||null==E[1]||null==E[2])return[null,null,null,E[3]];var H,I,G=E[0]/255,S=E[1]/255,V=E[2]/255;E=E[3];var Z=Math.max(G,S,V),X=Math.min(G,S,V),T=Z-X,W=Z+X,ca=.5*W;return H=X===Z?0:G===Z?60*(S-V)/T+360:S===Z?60*(V-G)/T+120:60*(G-S)/T+240,I=0===T?0:
.5>=ca?T/W:T/(2-W),[Math.round(H)%360,I,ca,null==E?1:E]};F.hsla.from=function(E){if(null==E[0]||null==E[1]||null==E[2])return[null,null,null,E[3]];var H=E[0]/360,I=E[1],G=E[2];E=E[3];I=.5>=G?G*(1+I):G+I-G*I;G=2*G-I;return[Math.round(255*k(G,I,H+1/3)),Math.round(255*k(G,I,H)),Math.round(255*k(G,I,H-1/3)),E]};D(F,function(E,H){var I=H.props,G=H.cache,S=H.to,V=H.from;y.fn[E]=function(Z){if(S&&!this[G]&&(this[G]=S(this._rgba)),Z===c)return this[G].slice();var X,T=a.type(Z),W="array"===T||"object"===T?
Z:arguments,ca=this[G].slice();return D(I,function(fa,ja){fa=W["object"===T?fa:ja.idx];null==fa&&(fa=ca[ja.idx]);ca[ja.idx]=d(fa,ja)}),V?(X=y(V(ca)),X[G]=ca,X):y(ca)};D(I,function(Z,X){y.fn[Z]||(y.fn[Z]=function(T){var W,ca=a.type(T),fa="alpha"===Z?this._hsla?"hsla":"rgba":E,ja=this[fa](),xa=ja[X.idx];return"undefined"===ca?xa:("function"===ca&&(T=T.call(this,xa),ca=a.type(T)),null==T&&X.empty?this:("string"===ca&&(W=n.exec(T),W&&(T=xa+parseFloat(W[2])*("+"===W[1]?1:-1))),ja[X.idx]=T,this[fa](ja)))})})});
y.hook=function(E){E=E.split(" ");D(E,function(H,I){a.cssHooks[I]={set:function(G,S){var V,Z="";if("transparent"!==S&&("string"!==a.type(S)||(V=f(S)))){if(S=y(V||S),!L.rgba&&1!==S._rgba[3]){for(V="backgroundColor"===I?G.parentNode:G;(""===Z||"transparent"===Z)&&V&&V.style;)try{Z=a.css(V,"backgroundColor"),V=V.parentNode}catch(X){}S=S.blend(Z&&"transparent"!==Z?Z:"_default")}S=S.toRgbaString()}try{G.style[I]=S}catch(X){}}};a.fx.step[I]=function(G){G.colorInit||(G.start=y(G.elem,I),G.end=y(G.end),G.colorInit=
!0);a.cssHooks[I].set(G.elem,G.start.transition(G.end,G.pos))}})};y.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");a.cssHooks.borderColor={expand:function(E){var H={};return D(["Top","Right","Bottom","Left"],function(I,G){H["border"+G+"Color"]=E}),H}};var C=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",
navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(b);(function(){function a(f){var k=f.ownerDocument.defaultView?f.ownerDocument.defaultView.getComputedStyle(f,null):f.currentStyle,n={};if(k&&k.length&&k[0]&&k[k[0]])for(f=k.length;f--;){var x=k[f];"string"==typeof k[x]&&(n[b.camelCase(x)]=k[x])}else for(x in k)"string"==typeof k[x]&&(n[x]=k[x]);return n}var c=["add","remove",
"toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(f,k){b.fx.step[k]=function(n){("none"!==n.end&&!n.setAttr||1===n.pos&&!n.setAttr)&&(b.style(n.elem,k,n.end),n.setAttr=!0)}});b.fn.addBack||(b.fn.addBack=function(f){return this.add(null==f?this.prevObject:this.prevObject.filter(f))});b.effects.animateClass=function(f,k,n,x){var y=b.speed(k,
n,x);return this.queue(function(){var F=b(this),K=F.attr("class")||"",L=y.children?F.find("*").addBack():F;L=L.map(function(){return{el:b(this),start:a(this)}});var R=function(){b.each(c,function(D,C){f[C]&&F[C+"Class"](f[C])})};R();L=L.map(function(){this.end=a(this.el[0]);var D=this.start,C=this.end,E,H={};for(E in C){var I=C[E];D[E]!==I&&(d[E]||(b.fx.step[E]||!isNaN(parseFloat(I)))&&(H[E]=I))}return this.diff=H,this});F.attr("class",K);L=L.map(function(){var D=this,C=b.Deferred(),E=b.extend({},
y,{queue:!1,complete:function(){C.resolve(D)}});return this.el.animate(this.diff,E),C.promise()});b.when.apply(b,L.get()).done(function(){R();b.each(arguments,function(){var D=this.el;b.each(this.diff,function(C){D.css(C,"")})});y.complete.call(F[0])})})};b.fn.extend({addClass:function(f){return function(k,n,x,y){return n?b.effects.animateClass.call(this,{add:k},n,x,y):f.apply(this,arguments)}}(b.fn.addClass),removeClass:function(f){return function(k,n,x,y){return arguments.length>1?b.effects.animateClass.call(this,
{remove:k},n,x,y):f.apply(this,arguments)}}(b.fn.removeClass),toggleClass:function(f){return function(k,n,x,y,F){return"boolean"==typeof n||void 0===n?x?b.effects.animateClass.call(this,n?{add:k}:{remove:k},x,y,F):f.apply(this,arguments):b.effects.animateClass.call(this,{toggle:k},n,x,y)}}(b.fn.toggleClass),switchClass:function(f,k,n,x,y){return b.effects.animateClass.call(this,{add:k,remove:f},n,x,y)}})})();(function(){function a(d,f,k,n){return b.isPlainObject(d)&&(f=d,d=d.effect),d={effect:d},
null==f&&(f={}),b.isFunction(f)&&(n=f,k=null,f={}),("number"==typeof f||b.fx.speeds[f])&&(n=k,k=f,f={}),b.isFunction(k)&&(n=k,k=null),f&&b.extend(d,f),k=k||f.duration,d.duration=b.fx.off?0:"number"==typeof k?k:k in b.fx.speeds?b.fx.speeds[k]:b.fx.speeds._default,d.complete=n||f.complete,d}function c(d){return!d||"number"==typeof d||b.fx.speeds[d]?!0:"string"!=typeof d||b.effects.effect[d]?b.isFunction(d)?!0:"object"!=typeof d||d.effect?!1:!0:!0}b.extend(b.effects,{version:"1.11.3",save:function(d,
f){for(var k=0;f.length>k;k++)null!==f[k]&&d.data("ui-effects-"+f[k],d[0].style[f[k]])},restore:function(d,f){var k,n;for(n=0;f.length>n;n++)null!==f[n]&&(k=d.data("ui-effects-"+f[n]),void 0===k&&(k=""),d.css(f[n],k))},setMode:function(d,f){return"toggle"===f&&(f=d.is(":hidden")?"show":"hide"),f},getBaseline:function(d,f){switch(d[0]){case "top":var k=0;break;case "middle":k=.5;break;case "bottom":k=1;break;default:k=d[0]/f.height}switch(d[1]){case "left":d=0;break;case "center":d=.5;break;case "right":d=
1;break;default:d=d[1]/f.width}return{x:d,y:k}},createWrapper:function(d){if(d.parent().is(".ui-effects-wrapper"))return d.parent();var f={width:d.outerWidth(!0),height:d.outerHeight(!0),"float":d.css("float")},k=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:d.width(),height:d.height()},x=document.activeElement;try{x.id}catch(y){x=document.body}return d.wrap(k),(d[0]===x||b.contains(d[0],x))&&b(x).focus(),
k=d.parent(),"static"===d.css("position")?(k.css({position:"relative"}),d.css({position:"relative"})):(b.extend(f,{position:d.css("position"),zIndex:d.css("z-index")}),b.each(["top","left","bottom","right"],function(y,F){f[F]=d.css(F);isNaN(parseInt(f[F],10))&&(f[F]="auto")}),d.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),d.css(n),k.css(f).show()},removeWrapper:function(d){var f=document.activeElement;return d.parent().is(".ui-effects-wrapper")&&(d.parent().replaceWith(d),(d[0]===
f||b.contains(d[0],f))&&b(f).focus()),d},setTransition:function(d,f,k,n){return n=n||{},b.each(f,function(x,y){x=d.cssUnit(y);x[0]>0&&(n[y]=x[0]*k+x[1])}),n}});b.fn.extend({effect:function(){function d(y){function F(){b.isFunction(L)&&L.call(K[0]);b.isFunction(y)&&y()}var K=b(this),L=f.complete,R=f.mode;(K.is(":hidden")?"hide"===R:"show"===R)?(K[R](),F()):x.call(K[0],f,F)}var f=a.apply(this,arguments),k=f.mode,n=f.queue,x=b.effects.effect[f.effect];return b.fx.off||!x?k?this[k](f.duration,f.complete):
this.each(function(){f.complete&&f.complete.call(this)}):n===!1?this.each(d):this.queue(n||"fx",d)},show:function(d){return function(f){if(c(f))return d.apply(this,arguments);var k=a.apply(this,arguments);return k.mode="show",this.effect.call(this,k)}}(b.fn.show),hide:function(d){return function(f){if(c(f))return d.apply(this,arguments);var k=a.apply(this,arguments);return k.mode="hide",this.effect.call(this,k)}}(b.fn.hide),toggle:function(d){return function(f){if(c(f)||"boolean"==typeof f)return d.apply(this,
arguments);var k=a.apply(this,arguments);return k.mode="toggle",this.effect.call(this,k)}}(b.fn.toggle),cssUnit:function(d){var f=this.css(d),k=[];return b.each(["em","px","%","pt"],function(n,x){f.indexOf(x)>0&&(k=[parseFloat(f),x])}),k}})})();(function(){var a={};b.each(["Quad","Cubic","Quart","Quint","Expo"],function(c,d){a[d]=function(f){return Math.pow(f,c+2)}});b.extend(a,{Sine:function(c){return 1-Math.cos(c*Math.PI/2)},Circ:function(c){return 1-Math.sqrt(1-c*c)},Elastic:function(c){return 0===
c||1===c?c:-Math.pow(2,8*(c-1))*Math.sin((80*(c-1)-7.5)*Math.PI/15)},Back:function(c){return c*c*(3*c-2)},Bounce:function(c){for(var d,f=4;((d=Math.pow(2,--f))-1)/11>c;);return 1/Math.pow(4,3-f)-7.5625*Math.pow((3*d-2)/22-c,2)}});b.each(a,function(c,d){b.easing["easeIn"+c]=d;b.easing["easeOut"+c]=function(f){return 1-d(1-f)};b.easing["easeInOut"+c]=function(f){return.5>f?d(2*f)/2:1-d(-2*f+2)/2}})})();b.effects;b.effects.effect.slide=function(a,c){var d=b(this),f="position top bottom left right width height".split(" "),
k=b.effects.setMode(d,a.mode||"show"),n="show"===k;var x=a.direction||"left";var y="up"===x||"down"===x?"top":"left",F="up"===x||"left"===x,K={};b.effects.save(d,f);d.show();x=a.distance||d["top"===y?"outerHeight":"outerWidth"](!0);b.effects.createWrapper(d).css({overflow:"hidden"});n&&d.css(y,F?isNaN(x)?"-"+x:-x:x);K[y]=(n?F?"+=":"-=":F?"-=":"+=")+x;d.animate(K,{queue:!1,duration:a.duration,easing:a.easing,complete:function(){"hide"===k&&d.hide();b.effects.restore(d,f);b.effects.removeWrapper(d);
c()}})}});
(function(b,w){function A(a,c){var d,f,k,n=a.nodeName.toLowerCase();return"area"===n?(d=a.parentNode,f=d.name,a.href&&f&&"map"===d.nodeName.toLowerCase()?(k=b("img[usemap=#"+f+"]")[0],!!k&&g(k)):!1):(/input|select|textarea|button|object/.test(n)?!a.disabled:"a"===n?a.href||c:c)&&g(a)}function g(a){return b.expr.filters.visible(a)&&!b(a).parents().addBack().filter(function(){return"hidden"===b.css(this,"visibility")}).length}var r=0,p=/^ui-id-\d+$/;b.ui=b.ui||{};b.extend(b.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,
COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});b.fn.extend({focus:function(a){return function(c,d){return"number"==typeof c?this.each(function(){var f=this;setTimeout(function(){b(f).focus();d&&d.call(f)},c)}):a.apply(this,arguments)}}(b.fn.focus),scrollParent:function(){var a;return a=b.ui.ie&&/(static|relative)/.test(this.css("position"))||
/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.css(this,"position"))&&/(auto|scroll)/.test(b.css(this,"overflow")+b.css(this,"overflow-y")+b.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.css(this,"overflow")+b.css(this,"overflow-y")+b.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!a.length?b(document):a},zIndex:function(a){if(a!==w)return this.css("zIndex",a);if(this.length){var c,
d;for(a=b(this[0]);a.length&&a[0]!==document;){if(c=a.css("position"),("absolute"===c||"relative"===c||"fixed"===c)&&(d=parseInt(a.css("zIndex"),10),!isNaN(d)&&0!==d))return d;a=a.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){p.test(this.id)&&b(this).removeAttr("id")})}});b.extend(b.expr[":"],{data:b.expr.createPseudo?b.expr.createPseudo(function(a){return function(c){return!!b.data(c,a)}}):
function(a,c,d){return!!b.data(a,d[3])},focusable:function(a){return A(a,!isNaN(b.attr(a,"tabindex")))},tabbable:function(a){var c=b.attr(a,"tabindex"),d=isNaN(c);return(d||c>=0)&&A(a,!d)}});b("<a>").outerWidth(1).jquery||b.each(["Width","Height"],function(a,c){function d(x,y,F,K){return b.each(f,function(){y-=parseFloat(b.css(x,"padding"+this))||0;F&&(y-=parseFloat(b.css(x,"border"+this+"Width"))||0);K&&(y-=parseFloat(b.css(x,"margin"+this))||0)}),y}var f="Width"===c?["Left","Right"]:["Top","Bottom"],
k=c.toLowerCase(),n={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+c]=function(x){return x===w?n["inner"+c].call(this):this.each(function(){b(this).css(k,d(this,x)+"px")})};b.fn["outer"+c]=function(x,y){return"number"!=typeof x?n["outer"+c].call(this,x):this.each(function(){b(this).css(k,d(this,x,!0,y)+"px")})}});b.fn.addBack||(b.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))});
b("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(b.fn.removeData=function(a){return function(c){return arguments.length?a.call(this,b.camelCase(c)):a.call(this)}}(b.fn.removeData));b.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());b.support.selectstart="onselectstart"in document.createElement("div");b.fn.extend({disableSelection:function(){return this.bind((b.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});
b.extend(b.ui,{plugin:{add:function(a,c,d){var f;a=b.ui[a].prototype;for(f in d)a.plugins[f]=a.plugins[f]||[],a.plugins[f].push([c,d[f]])},call:function(a,c,d){var f=a.plugins[c];if(f&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(c=0;f.length>c;c++)a.options[f[c][0]]&&f[c][1].apply(a.element,d)}},hasScroll:function(a,c){if("hidden"===b(a).css("overflow"))return!1;c=c&&"left"===c?"scrollLeft":"scrollTop";var d=!1;return a[c]>0?!0:(a[c]=1,d=a[c]>0,a[c]=0,d)}})})(jQuery);
(function(b,w){var A=0,g=Array.prototype.slice,r=b.cleanData;b.cleanData=function(p){for(var a,c=0;null!=(a=p[c]);c++)try{b(a).triggerHandler("remove")}catch(d){}r(p)};b.widget=function(p,a,c){var d={},f=p.split(".")[0];p=p.split(".")[1];var k=f+"-"+p;c||(c=a,a=b.Widget);b.expr[":"][k.toLowerCase()]=function(F){return!!b.data(F,k)};b[f]=b[f]||{};var n=b[f][p];var x=b[f][p]=function(F,K){return this._createWidget?(arguments.length&&this._createWidget(F,K),w):new x(F,K)};b.extend(x,n,{version:c.version,
_proto:b.extend({},c),_childConstructors:[]});var y=new a;y.options=b.widget.extend({},y.options);b.each(c,function(F,K){return b.isFunction(K)?(d[F]=function(){var L=function(){return a.prototype[F].apply(this,arguments)},R=function(D){return a.prototype[F].apply(this,D)};return function(){var D,C=this._super,E=this._superApply;return this._super=L,this._superApply=R,D=K.apply(this,arguments),this._super=C,this._superApply=E,D}}(),w):(d[F]=K,w)});x.prototype=b.widget.extend(y,{widgetEventPrefix:n?
y.widgetEventPrefix||p:p},d,{constructor:x,namespace:f,widgetName:p,widgetFullName:k});n?(b.each(n._childConstructors,function(F,K){F=K.prototype;b.widget(F.namespace+"."+F.widgetName,x,K._proto)}),delete n._childConstructors):a._childConstructors.push(x);b.widget.bridge(p,x)};b.widget.extend=function(p){for(var a,c,d=g.call(arguments,1),f=0,k=d.length;k>f;f++)for(a in d[f])c=d[f][a],d[f].hasOwnProperty(a)&&c!==w&&(p[a]=b.isPlainObject(c)?b.isPlainObject(p[a])?b.widget.extend({},p[a],c):b.widget.extend({},
c):c);return p};b.widget.bridge=function(p,a){var c=a.prototype.widgetFullName||p;b.fn[p]=function(d){var f="string"==typeof d,k=g.call(arguments,1),n=this;return d=!f&&k.length?b.widget.extend.apply(null,[d].concat(k)):d,f?this.each(function(){var x,y=b.data(this,c);return y?b.isFunction(y[d])&&"_"!==d.charAt(0)?(x=y[d].apply(y,k),x!==y&&x!==w?(n=x&&x.jquery?n.pushStack(x.get()):x,!1):w):b.error("no such method '"+d+"' for "+p+" widget instance"):b.error("cannot call methods on "+p+" prior to initialization; attempted to call method '"+
d+"'")}):this.each(function(){var x=b.data(this,c);x?x.option(d||{})._init():b.data(this,c,new a(d,this))}),n}};b.Widget=function(){};b.Widget._childConstructors=[];b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(p,a){a=b(a||this.defaultElement||this)[0];this.element=b(a);this.uuid=A++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=b.widget.extend({},this.options,this._getCreateOptions(),p);
this.bindings=b();this.hoverable=b();this.focusable=b();a!==this&&(b.data(a,this.widgetFullName,this),this._on(!0,this.element,{remove:function(c){c.target===a&&this.destroy()}}),this.document=b(a.style?a.ownerDocument:a.document||a),this.window=b(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:b.noop,_getCreateEventData:b.noop,_create:b.noop,_init:b.noop,destroy:function(){this._destroy();
this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(b.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:b.noop,widget:function(){return this.element},option:function(p,a){var c,d,f=p;if(0===
arguments.length)return b.widget.extend({},this.options);if("string"==typeof p)if(f={},c=p.split("."),p=c.shift(),c.length){var k=f[p]=b.widget.extend({},this.options[p]);for(d=0;c.length-1>d;d++)k[c[d]]=k[c[d]]||{},k=k[c[d]];if(p=c.pop(),1===arguments.length)return k[p]===w?null:k[p];k[p]=a}else{if(1===arguments.length)return this.options[p]===w?null:this.options[p];f[p]=a}return this._setOptions(f),this},_setOptions:function(p){for(var a in p)this._setOption(a,p[a]);return this},_setOption:function(p,
a){return this.options[p]=a,"disabled"===p&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!a).attr("aria-disabled",a),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(p,a,c){var d,f=this;"boolean"!=typeof p&&(c=a,a=p,p=!1);c?(a=d=b(a),this.bindings=this.bindings.add(a)):(c=a,a=this.element,d=
this.widget());b.each(c,function(k,n){function x(){return p||f.options.disabled!==!0&&!b(this).hasClass("ui-state-disabled")?("string"==typeof n?f[n]:n).apply(f,arguments):w}"string"!=typeof n&&(x.guid=n.guid=n.guid||x.guid||b.guid++);var y=k.match(/^(\w+)\s*(.*)$/);k=y[1]+f.eventNamespace;(y=y[2])?d.delegate(y,k,x):a.bind(k,x)})},_off:function(p,a){a=(a||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;p.unbind(a).undelegate(a)},_delay:function(p,a){var c=this;return setTimeout(function(){return("string"==
typeof p?c[p]:p).apply(c,arguments)},a||0)},_hoverable:function(p){this.hoverable=this.hoverable.add(p);this._on(p,{mouseenter:function(a){b(a.currentTarget).addClass("ui-state-hover")},mouseleave:function(a){b(a.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(p){this.focusable=this.focusable.add(p);this._on(p,{focusin:function(a){b(a.currentTarget).addClass("ui-state-focus")},focusout:function(a){b(a.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(p,a,c){var d,
f,k=this.options[p];if(c=c||{},a=b.Event(a),a.type=(p===this.widgetEventPrefix?p:this.widgetEventPrefix+p).toLowerCase(),a.target=this.element[0],f=a.originalEvent)for(d in f)d in a||(a[d]=f[d]);return this.element.trigger(a,c),!(b.isFunction(k)&&k.apply(this.element[0],[a].concat(c))===!1||a.isDefaultPrevented())}};b.each({show:"fadeIn",hide:"fadeOut"},function(p,a){b.Widget.prototype["_"+p]=function(c,d,f){"string"==typeof d&&(d={effect:d});var k=d?d===!0||"number"==typeof d?a:d.effect||a:p;d=d||
{};"number"==typeof d&&(d={duration:d});var n=!b.isEmptyObject(d);d.complete=f;d.delay&&c.delay(d.delay);n&&b.effects&&b.effects.effect[k]?c[p](d):k!==p&&c[k]?c[k](d.duration,d.easing,f):c.queue(function(x){b(this)[p]();f&&f.call(c[0]);x()})}})})(jQuery);
(function(b){var w=!1;b(document).mouseup(function(){w=!1});b.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var A=this;this.element.bind("mousedown."+this.widgetName,function(g){return A._mouseDown(g)}).bind("click."+this.widgetName,function(g){return!0===b.data(g.target,A.widgetName+".preventClickEvent")?(b.removeData(g.target,A.widgetName+".preventClickEvent"),g.stopImmediatePropagation(),!1):void 0});this.started=
!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(A){if(!w){this._mouseStarted&&this._mouseUp(A);this._mouseDownEvent=A;var g=this,r=1===A.which,p="string"==typeof this.options.cancel&&A.target.nodeName?b(A.target).closest(this.options.cancel).length:!1;return r&&!p&&this._mouseCapture(A)?(this.mouseDelayMet=
!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){g.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(A)&&this._mouseDelayMet(A)&&(this._mouseStarted=this._mouseStart(A)!==!1,!this._mouseStarted)?(A.preventDefault(),!0):(!0===b.data(A.target,this.widgetName+".preventClickEvent")&&b.removeData(A.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return g._mouseMove(a)},this._mouseUpDelegate=function(a){return g._mouseUp(a)},
b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),A.preventDefault(),w=!0,!0)):!0}},_mouseMove:function(A){return b.ui.ie&&(!document.documentMode||9>document.documentMode)&&!A.button?this._mouseUp(A):this._mouseStarted?(this._mouseDrag(A),A.preventDefault()):(this._mouseDistanceMet(A)&&this._mouseDelayMet(A)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,A)!==!1,this._mouseStarted?this._mouseDrag(A):this._mouseUp(A)),
!this._mouseStarted)},_mouseUp:function(A){return b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,A.target===this._mouseDownEvent.target&&b.data(A.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(A)),!1},_mouseDistanceMet:function(A){return Math.max(Math.abs(this._mouseDownEvent.pageX-A.pageX),Math.abs(this._mouseDownEvent.pageY-A.pageY))>=this.options.distance},
_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(jQuery);
(function(b){function w(g,r,p){return g>r&&r+p>g}function A(g){return/left|right/.test(g.css("float"))||/inline|table-cell/.test(g.css("display"))}b.widget("ui.sortable",b.ui.mouse,{version:"1.10.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,
scope:"default",tolerance:"intersect",zIndex:1E3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var g=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?"x"===g.axis||A(this.items[0].item):!1;this.offset=this.element.offset();this._mouseInit();this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");
this._mouseDestroy();for(var g=this.items.length-1;g>=0;g--)this.items[g].item.removeData(this.widgetName+"-item");return this},_setOption:function(g,r){"disabled"===g?(this.options[g]=r,this.widget().toggleClass("ui-sortable-disabled",!!r)):b.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(g,r){var p=null,a=!1,c=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(g),b(g.target).parents().each(function(){return b.data(this,
c.widgetName+"-item")===c?(p=b(this),!1):void 0}),b.data(g.target,c.widgetName+"-item")===c&&(p=b(g.target)),p?!this.options.handle||r||(b(this.options.handle,p).find("*").addBack().each(function(){this===g.target&&(a=!0)}),a)?(this.currentItem=p,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(g,r,p){var a;r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(g),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),
this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},b.extend(this.offset,{click:{left:g.pageX-this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(g),this.originalPageX=g.pageX,this.originalPageY=g.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),
this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=b("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),
this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",g,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!p)for(p=this.containers.length-1;p>=0;p--)this.containers[p]._trigger("activate",g,this._uiHash(this));return b.ui.ddmanager&&
(b.ui.ddmanager.current=this),b.ui.ddmanager&&!r.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,g),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(g),!0},_mouseDrag:function(g){var r,p,a;var c=this.options;var d=!1;this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+
this.scrollParent[0].offsetHeight-g.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+c.scrollSpeed:g.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-g.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+c.scrollSpeed:g.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=
d=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(g.pageY-b(document).scrollTop()<c.scrollSensitivity?d=b(document).scrollTop(b(document).scrollTop()-c.scrollSpeed):b(window).height()-(g.pageY-b(document).scrollTop())<c.scrollSensitivity&&(d=b(document).scrollTop(b(document).scrollTop()+c.scrollSpeed)),g.pageX-b(document).scrollLeft()<c.scrollSensitivity?d=b(document).scrollLeft(b(document).scrollLeft()-c.scrollSpeed):b(window).width()-(g.pageX-b(document).scrollLeft())<c.scrollSensitivity&&(d=b(document).scrollLeft(b(document).scrollLeft()+
c.scrollSpeed))),d!==!1&&b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,g));this.positionAbs=this._convertPositionTo("absolute");this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px");this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(c=this.items.length-1;c>=0;c--)if(r=this.items[c],p=r.item[0],a=this._intersectsWithPointer(r),a&&r.instance===this.currentContainer&&p!==this.currentItem[0]&&
this.placeholder[1===a?"next":"prev"]()[0]!==p&&!b.contains(this.placeholder[0],p)&&("semi-dynamic"===this.options.type?!b.contains(this.element[0],p):!0)){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(g,r);this._trigger("change",g,this._uiHash());break}return this._contactContainers(g),b.ui.ddmanager&&b.ui.ddmanager.drag(this,g),this._trigger("sort",g,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(g,
r){if(g){if(b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,g),this.options.revert){var p=this;r=this.placeholder.offset();var a=this.options.axis,c={};a&&"x"!==a||(c.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft));a&&"y"!==a||(c.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop));this.reverting=!0;b(this.helper).animate(c,parseInt(this.options.revert,
10)||500,function(){p._clear(g)})}else this._clear(g,r);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null});"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("deactivate",null,this._uiHash(this)),this.containers[g].containerCache.over&&(this.containers[g]._trigger("out",null,this._uiHash(this)),this.containers[g].containerCache.over=
0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),b.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):b(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(g){var r=this._getItemsAsjQuery(g&&g.connected),p=[];return g=
g||{},b(r).each(function(){var a=(b(g.item||this).attr(g.attribute||"id")||"").match(g.expression||/(.+)[\-=_](.+)/);a&&p.push((g.key||a[1]+"[]")+"="+(g.key&&g.expression?a[1]:a[2]))}),!p.length&&g.key&&p.push(g.key+"="),p.join("&")},toArray:function(g){var r=this._getItemsAsjQuery(g&&g.connected),p=[];return g=g||{},r.each(function(){p.push(b(g.item||this).attr(g.attribute||"id")||"")}),p},_intersectsWith:function(g){var r=this.positionAbs.left,p=r+this.helperProportions.width,a=this.positionAbs.top,
c=a+this.helperProportions.height,d=g.left,f=d+g.width,k=g.top,n=k+g.height,x=this.offset.click.top,y=this.offset.click.left;x="x"===this.options.axis||a+x>k&&n>a+x;y="y"===this.options.axis||r+y>d&&f>r+y;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>g[this.floating?"width":"height"]?x&&y:r+this.helperProportions.width/2>d&&f>p-this.helperProportions.width/2&&a+this.helperProportions.height/
2>k&&n>c-this.helperProportions.height/2},_intersectsWithPointer:function(g){var r="x"===this.options.axis||w(this.positionAbs.top+this.offset.click.top,g.top,g.height);g="y"===this.options.axis||w(this.positionAbs.left+this.offset.click.left,g.left,g.width);r=r&&g;g=this._getDragVerticalDirection();var p=this._getDragHorizontalDirection();return r?this.floating?p&&"right"===p||"down"===g?2:1:g&&("down"===g?2:1):!1},_intersectsWithSides:function(g){var r=w(this.positionAbs.top+this.offset.click.top,
g.top+g.height/2,g.height);g=w(this.positionAbs.left+this.offset.click.left,g.left+g.width/2,g.width);var p=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"===a&&g||"left"===a&&!g:p&&("down"===p&&r||"up"===p&&!r)},_getDragVerticalDirection:function(){var g=this.positionAbs.top-this.lastPositionAbs.top;return 0!==g&&(g>0?"down":"up")},_getDragHorizontalDirection:function(){var g=this.positionAbs.left-this.lastPositionAbs.left;return 0!==g&&(g>0?
"right":"left")},refresh:function(g){return this._refreshItems(g),this.refreshPositions(),this},_connectWith:function(){var g=this.options;return g.connectWith.constructor===String?[g.connectWith]:g.connectWith},_getItemsAsjQuery:function(g){function r(){c.push(this)}var p,a,c=[],d=[],f=this._connectWith();if(f&&g)for(g=f.length-1;g>=0;g--){var k=b(f[g]);for(p=k.length-1;p>=0;p--)(a=b.data(k[p],this.widgetFullName))&&a!==this&&!a.options.disabled&&d.push([b.isFunction(a.options.items)?a.options.items.call(a.element):
b(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a])}d.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(g=d.length-1;g>=0;g--)d[g][0].each(r);return b(c)},_removeCurrentsFromItems:function(){var g=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=b.grep(this.items,
function(r){for(var p=0;g.length>p;p++)if(g[p]===r.item[0])return!1;return!0})},_refreshItems:function(g){this.items=[];this.containers=[this];var r,p,a,c,d=this.items,f=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],g,{item:this.currentItem}):b(this.options.items,this.element),this]];if((c=this._connectWith())&&this.ready)for(r=c.length-1;r>=0;r--){var k=b(c[r]);for(p=k.length-1;p>=0;p--)(a=b.data(k[p],this.widgetFullName))&&a!==this&&!a.options.disabled&&(f.push([b.isFunction(a.options.items)?
a.options.items.call(a.element[0],g,{item:this.currentItem}):b(a.options.items,a.element),a]),this.containers.push(a))}for(r=f.length-1;r>=0;r--)for(g=f[r][1],k=f[r][0],p=0,c=k.length;c>p;p++)a=b(k[p]),a.data(this.widgetName+"-item",g),d.push({item:a,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(g){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var r,p,a;for(r=this.items.length-1;r>=0;r--){var c=this.items[r];c.instance!==this.currentContainer&&
this.currentContainer&&c.item[0]!==this.currentItem[0]||(p=this.options.toleranceElement?b(this.options.toleranceElement,c.item):c.item,g||(c.width=p.outerWidth(),c.height=p.outerHeight()),a=p.offset(),c.left=a.left,c.top=a.top)}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(r=this.containers.length-1;r>=0;r--)a=this.containers[r].element.offset(),this.containers[r].containerCache.left=a.left,this.containers[r].containerCache.top=
a.top,this.containers[r].containerCache.width=this.containers[r].element.outerWidth(),this.containers[r].containerCache.height=this.containers[r].element.outerHeight();return this},_createPlaceholder:function(g){g=g||this;var r,p=g.options;p.placeholder&&p.placeholder.constructor!==String||(r=p.placeholder,p.placeholder={element:function(){var a=g.currentItem[0].nodeName.toLowerCase(),c=b("<"+a+">",g.document[0]).addClass(r||g.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");
return"tr"===a?g.currentItem.children().each(function(){b("<td>&#160;</td>",g.document[0]).attr("colspan",b(this).attr("colspan")||1).appendTo(c)}):"img"===a&&c.attr("src",g.currentItem.attr("src")),r||c.css("visibility","hidden"),c},update:function(a,c){(!r||p.forcePlaceholderSize)&&(c.height()||c.height(g.currentItem.innerHeight()-parseInt(g.currentItem.css("paddingTop")||0,10)-parseInt(g.currentItem.css("paddingBottom")||0,10)),c.width()||c.width(g.currentItem.innerWidth()-parseInt(g.currentItem.css("paddingLeft")||
0,10)-parseInt(g.currentItem.css("paddingRight")||0,10)))}});g.placeholder=b(p.placeholder.element.call(g.element,g.currentItem));g.currentItem.after(g.placeholder);p.placeholder.update(g,g.placeholder)},_contactContainers:function(g){var r,p,a,c,d,f=p=null;for(r=this.containers.length-1;r>=0;r--)b.contains(this.currentItem[0],this.containers[r].element[0])||(this._intersectsWith(this.containers[r].containerCache)?p&&b.contains(this.containers[r].element[0],p.element[0])||(p=this.containers[r],f=
r):this.containers[r].containerCache.over&&(this.containers[r]._trigger("out",g,this._uiHash(this)),this.containers[r].containerCache.over=0));if(p)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",g,this._uiHash(this)),this.containers[f].containerCache.over=1);else{r=1E4;var k=null;var n=(d=p.floating||A(this.currentItem))?"left":"top";var x=d?"width":"height";var y=this.positionAbs[n]+this.offset.click[n];for(p=this.items.length-1;p>=0;p--)b.contains(this.containers[f].element[0],
this.items[p].item[0])&&this.items[p].item[0]!==this.currentItem[0]&&(!d||w(this.positionAbs.top+this.offset.click.top,this.items[p].top,this.items[p].height))&&(a=this.items[p].item.offset()[n],c=!1,Math.abs(a-y)>Math.abs(a+this.items[p][x]-y)&&(c=!0,a+=this.items[p][x]),r>Math.abs(a-y)&&(r=Math.abs(a-y),k=this.items[p],this.direction=c?"up":"down"));(k||this.options.dropOnEmpty)&&this.currentContainer!==this.containers[f]&&(k?this._rearrange(g,k,null,!0):this._rearrange(g,null,this.containers[f].element,
!0),this._trigger("change",g,this._uiHash()),this.containers[f]._trigger("change",g,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",g,this._uiHash(this)),this.containers[f].containerCache.over=1)}},_createHelper:function(g){var r=this.options;g=b.isFunction(r.helper)?b(r.helper.apply(this.element[0],[g,this.currentItem])):"clone"===r.helper?this.currentItem.clone():this.currentItem;
return g.parents("body").length||b("parent"!==r.appendTo?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(g[0]),g[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!g[0].style.width||r.forceHelperSize)&&g.width(this.currentItem.width()),(!g[0].style.height||r.forceHelperSize)&&g.height(this.currentItem.height()),
g},_adjustOffsetFromHelper:function(g){"string"==typeof g&&(g=g.split(" "));b.isArray(g)&&(g={left:+g[0],top:+g[1]||0});"left"in g&&(this.offset.click.left=g.left+this.margins.left);"right"in g&&(this.offset.click.left=this.helperProportions.width-g.right+this.margins.left);"top"in g&&(this.offset.click.top=g.top+this.margins.top);"bottom"in g&&(this.offset.click.top=this.helperProportions.height-g.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var g=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&b.contains(this.scrollParent[0],this.offsetParent[0])&&(g.left+=this.scrollParent.scrollLeft(),g.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&b.ui.ie)&&(g={top:0,left:0}),{top:g.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:g.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var g=this.currentItem.position();return{top:g.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:g.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var g,r,p,a=this.options;"parent"===a.containment&&(a.containment=this.helper[0].parentNode);"document"!==a.containment&&"window"!==a.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b("document"===a.containment?document:window).width()-this.helperProportions.width-this.margins.left,(b("document"===a.containment?document:
window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(a.containment)||(g=b(a.containment)[0],r=b(a.containment).offset(),p="hidden"!==b(g).css("overflow"),this.containment=[r.left+(parseInt(b(g).css("borderLeftWidth"),10)||0)+(parseInt(b(g).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(b(g).css("borderTopWidth"),10)||0)+(parseInt(b(g).css("paddingTop"),10)||0)-this.margins.top,r.left+(p?Math.max(g.scrollWidth,
g.offsetWidth):g.offsetWidth)-(parseInt(b(g).css("borderLeftWidth"),10)||0)-(parseInt(b(g).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(p?Math.max(g.scrollHeight,g.offsetHeight):g.offsetHeight)-(parseInt(b(g).css("borderTopWidth"),10)||0)-(parseInt(b(g).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(g,r){r||(r=this.position);g="absolute"===g?1:-1;var p="absolute"!==this.cssPosition||this.scrollParent[0]!==
document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(p[0].tagName);return{top:r.top+this.offset.relative.top*g+this.offset.parent.top*g-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:p.scrollTop())*g,left:r.left+this.offset.relative.left*g+this.offset.parent.left*g-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:p.scrollLeft())*g}},_generatePosition:function(g){var r,p,a=this.options,c=g.pageX,d=g.pageY,
f="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&b.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,k=/(html|body)/i.test(f[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(g.pageX-this.offset.click.left<this.containment[0]&&(c=this.containment[0]+this.offset.click.left),g.pageY-
this.offset.click.top<this.containment[1]&&(d=this.containment[1]+this.offset.click.top),g.pageX-this.offset.click.left>this.containment[2]&&(c=this.containment[2]+this.offset.click.left),g.pageY-this.offset.click.top>this.containment[3]&&(d=this.containment[3]+this.offset.click.top)),a.grid&&(r=this.originalPageY+Math.round((d-this.originalPageY)/a.grid[1])*a.grid[1],d=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=
this.containment[1]?r-a.grid[1]:r+a.grid[1]:r,p=this.originalPageX+Math.round((c-this.originalPageX)/a.grid[0])*a.grid[0],c=this.containment?p-this.offset.click.left>=this.containment[0]&&p-this.offset.click.left<=this.containment[2]?p:p-this.offset.click.left>=this.containment[0]?p-a.grid[0]:p+a.grid[0]:p)),{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():k?0:f.scrollTop()),left:c-this.offset.click.left-this.offset.relative.left-
this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():k?0:f.scrollLeft())}},_rearrange:function(g,r,p,a){p?p[0].appendChild(this.placeholder[0]):r.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?r.item[0]:r.item[0].nextSibling);var c=this.counter=this.counter?++this.counter:1;this._delay(function(){c===this.counter&&this.refreshPositions(!a)})},_clear:function(g,r){function p(d,f,k){return function(n){k._trigger(d,n,f._uiHash(f))}}this.reverting=
!1;var a,c=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(a in this._storedCSS)"auto"!==this._storedCSS[a]&&"static"!==this._storedCSS[a]||(this._storedCSS[a]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!r&&c.push(function(d){this._trigger("receive",d,this._uiHash(this.fromOutside))});!this.fromOutside&&
this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||r||c.push(function(d){this._trigger("update",d,this._uiHash())});this!==this.currentContainer&&(r||(c.push(function(d){this._trigger("remove",d,this._uiHash())}),c.push(function(d){return function(f){d._trigger("receive",f,this._uiHash(this))}}.call(this,this.currentContainer)),c.push(function(d){return function(f){d._trigger("update",f,this._uiHash(this))}}.call(this,
this.currentContainer))));for(a=this.containers.length-1;a>=0;a--)r||c.push(p("deactivate",this,this.containers[a])),this.containers[a].containerCache.over&&(c.push(p("out",this,this.containers[a])),this.containers[a].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),
this.dragging=!1,this.cancelHelperRemoval){if(!r){this._trigger("beforeStop",g,this._uiHash());for(a=0;c.length>a;a++)c[a].call(this,g);this._trigger("stop",g,this._uiHash())}return this.fromOutside=!1,!1}if(r||this._trigger("beforeStop",g,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!r){for(a=0;c.length>a;a++)c[a].call(this,g);this._trigger("stop",g,this._uiHash())}return this.fromOutside=
!1,!0},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(g){var r=g||this;return{helper:r.helper,placeholder:r.placeholder||b([]),position:r.position,originalPosition:r.originalPosition,offset:r.positionAbs,item:r.currentItem,sender:g?g.element:null}}})})(jQuery);
(function(b){b.fn.drag=function(a,c,d){var f=typeof a=="string"?a:"",k=b.isFunction(a)?a:b.isFunction(c)?c:null;f.indexOf("drag")!==0&&(f="drag"+f);d=(a==k?c:d)||{};return k?this.bind(f,d,k):this.trigger(f)};var w=b.event,A=w.special,g=A.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!0,click:!1},datakey:"dragdata",noBubble:!0,add:function(a){var c=b.data(this,g.datakey),d=a.data||{};c.related+=1;b.each(g.defaults,function(f,k){d[f]!==void 0&&(c[f]=d[f])})},remove:function(){--b.data(this,
g.datakey).related},setup:function(){if(!b.data(this,g.datakey)){var a=b.extend({related:0},g.defaults);b.data(this,g.datakey,a);w.add(this,"touchstart mousedown",g.init,a);this.attachEvent&&this.attachEvent("ondragstart",g.dontstart)}},teardown:function(){(b.data(this,g.datakey)||{}).related||(b.removeData(this,g.datakey),w.remove(this,"touchstart mousedown",g.init),g.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",g.dontstart))},init:function(a){if(!g.touched){var c=a.data;if(!(a.which!=
0&&c.which>0&&a.which!=c.which||b(a.target).is(c.not)||c.handle&&!b(a.target).closest(c.handle,a.currentTarget).length)){g.touched=a.type=="touchstart"?this:null;c.propagates=1;c.mousedown=this;c.interactions=[g.interaction(this,c)];c.target=a.target;c.pageX=a.pageX;c.pageY=a.pageY;c.dragging=null;var d=g.hijack(a,"draginit",c);if(c.propagates&&((d=g.flatten(d))&&d.length&&(c.interactions=[],b.each(d,function(){c.interactions.push(g.interaction(this,c))})),c.propagates=c.interactions.length,c.drop!==
!1&&A.drop&&A.drop.handler(a,c),g.textselect(!1),g.touched?w.add(g.touched,"touchmove touchend",g.handler,c):w.add(document,"mousemove mouseup",g.handler,c),!g.touched||c.live))return!1}}},interaction:function(a,c){c=b(a)[c.relative?"position":"offset"]()||{top:0,left:0};return{drag:a,callback:new g.callback,droppable:[],offset:c}},handler:function(a){var c=a.data;switch(a.type){case !c.dragging&&"touchmove":a.preventDefault();case !c.dragging&&"mousemove":if(Math.pow(a.pageX-c.pageX,2)+Math.pow(a.pageY-
c.pageY,2)<Math.pow(c.distance,2))break;a.target=c.target;g.hijack(a,"dragstart",c);c.propagates&&(c.dragging=!0);case "touchmove":a.preventDefault();case "mousemove":if(c.dragging){g.hijack(a,"drag",c);if(c.propagates){c.drop!==!1&&A.drop&&A.drop.handler(a,c);break}a.type="mouseup"}default:g.touched?w.remove(g.touched,"touchmove touchend",g.handler):w.remove(document,"mousemove mouseup",g.handler),c.dragging&&(c.drop!==!1&&A.drop&&A.drop.handler(a,c),g.hijack(a,"dragend",c)),g.textselect(!0),c.click===
!1&&c.dragging&&b.data(c.mousedown,"suppress.click",(new Date).getTime()+5),c.dragging=g.touched=!1}},hijack:function(a,c,d,f,k){if(d){var n=a.originalEvent,x=a.type,y=c.indexOf("drop")?"drag":"drop",F,K=f||0,L;f=isNaN(f)?d.interactions.length:f;a.type=c;a.originalEvent=null;d.results=[];do if((L=d.interactions[K])&&(c==="dragend"||!L.cancelled)){var R=g.properties(a,d,L);L.results=[];b(k||L[y]||d.droppable).each(function(D,C){R.target=C;a.isPropagationStopped=function(){return!1};F=C?w.dispatch.call(C,
a,R):null;F===!1?(y=="drag"&&(L.cancelled=!0,--d.propagates),c=="drop"&&(L[y][D]=null)):c=="dropinit"&&L.droppable.push(g.element(F)||C);c=="dragstart"&&(L.proxy=b(g.element(F)||L.drag)[0]);L.results.push(F);delete a.result;if(c!=="dropinit")return F});d.results[K]=g.flatten(L.results);c=="dropinit"&&(L.droppable=g.flatten(L.droppable));c!="dragstart"||L.cancelled||R.update()}while(++K<f);a.type=x;a.originalEvent=n;return g.flatten(d.results)}},properties:function(a,c,d){var f=d.callback;f.drag=d.drag;
f.proxy=d.proxy||d.drag;f.startX=c.pageX;f.startY=c.pageY;f.deltaX=a.pageX-c.pageX;f.deltaY=a.pageY-c.pageY;f.originalX=d.offset.left;f.originalY=d.offset.top;f.offsetX=f.originalX+f.deltaX;f.offsetY=f.originalY+f.deltaY;f.drop=g.flatten((d.drop||[]).slice());f.available=g.flatten((d.droppable||[]).slice());return f},element:function(a){if(a&&(a.jquery||a.nodeType==1))return a},flatten:function(a){return b.map(a,function(c){return c&&c.jquery?b.makeArray(c):c&&c.length?g.flatten(c):c})},textselect:function(a){b(document)[a?
"unbind":"bind"]("selectstart",g.dontstart).css("MozUserSelect",a?"":"none");document.unselectable=a?"off":"on"},dontstart:function(){return!1},callback:function(){}};g.callback.prototype={update:function(){A.drop&&this.available.length&&b.each(this.available,function(a){A.drop.locate(this,a)})}};var r=w.dispatch;w.dispatch=function(a){if(b.data(this,"suppress."+a.type)-(new Date).getTime()>0)b.removeData(this,"suppress."+a.type);else return r.apply(this,arguments)};var p=w.fixHooks.touchstart=w.fixHooks.touchmove=
w.fixHooks.touchend=w.fixHooks.touchcancel={props:"clientX clientY pageX pageY screenX screenY".split(" "),filter:function(a,c){if(c){var d=c.touches&&c.touches[0]||c.changedTouches&&c.changedTouches[0]||null;d&&b.each(p.props,function(f,k){a[k]=d[k]})}return a}};A.draginit=A.dragstart=A.dragend=g})(jQuery);
(function(b){var w=Math.min,A=Math.max,g=Math.floor,r=function(a){return b.type(a)==="string"},p=function(a,c){if(b.isArray(c))for(var d=0,f=c.length;d<f;d++){var k=c[d];try{if(r(k))throw"fn str not supported";b.isFunction(k)&&k(a)}catch(n){}}};b.layout={version:"1.4.4",revision:1.0404,browser:{},effects:{slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},
east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}},blind:{},clip:{},explode:{},fade:{},fold:{},puff:{},size:{all:{easing:"swing"}}},config:{optionRootKeys:"effects panes north south west east center".split(" "),allPanes:["north","south","west","east","center"],borderPanes:["north","south","west","east"],oppositeEdge:{north:"south",south:"north",east:"west",west:"east"},offscreenCSS:{left:"-99999px",right:"auto"},offscreenReset:"offscreenReset",hidden:{visibility:"hidden"},
visible:{visibility:"visible"},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden"},cssDemo:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDemo:{background:"#AAA"}},content:{cssReq:{position:"relative"},cssDemo:{overflow:"auto",padding:"10px"},cssDemoPane:{overflow:"hidden",padding:0}},panes:{cssReq:{position:"absolute",
margin:0},cssDemo:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{side:"top",sizeType:"Height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{side:"bottom",sizeType:"Height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{side:"right",sizeType:"Width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{side:"left",sizeType:"Width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",
bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},callbacks:{},getParentPaneElem:function(a){a=b(a);if(a=a.data("layout")||a.data("parentLayout")){a=a.container;if(a.data("layoutPane"))return a;a=a.closest("."+b.layout.defaults.panes.paneClass);if(a.data("layoutPane"))return a}return null},getParentPaneInstance:function(a){return(a=b.layout.getParentPaneElem(a))?a.data("layoutPane"):null},getParentLayoutInstance:function(a){return(a=
b.layout.getParentPaneElem(a))?a.data("parentLayout"):null},getEventObject:function(a){return typeof a==="object"&&a.stopPropagation?a:null},parsePaneName:function(a){var c=b.layout.getEventObject(a);c&&(c.stopPropagation(),a=b(this).data("layoutEdge"));a&&!/^(west|east|north|south|center)$/.test(a)&&(b.layout.msg('LAYOUT ERROR - Invalid pane-name: "'+a+'"'),a="error");return a},plugins:{draggable:!!b.fn.draggable,effects:{core:!!b.effects,slide:b.effects&&(b.effects.slide||b.effects.effect&&b.effects.effect.slide)}},
onCreate:[],onLoad:[],onReady:[],onDestroy:[],onUnload:[],afterOpen:[],afterClose:[],scrollbarWidth:function(){return window.scrollbarWidth||b.layout.getScrollbarSize("width")},scrollbarHeight:function(){return window.scrollbarHeight||b.layout.getScrollbarSize("height")},getScrollbarSize:function(a){var c=b('<div style="position: absolute; top: -10000px; left: -10000px; width: 100px; height: 100px; border: 0; overflow: scroll;"></div>').appendTo("body"),d={width:c.outerWidth-c[0].clientWidth,height:100-
c[0].clientHeight};c.remove();window.scrollbarWidth=d.width;window.scrollbarHeight=d.height;return a.match(/^(width|height)$/)?d[a]:d},disableTextSelection:function(){var a=b(document);b.fn.disableSelection&&(a.data("textSelectionInitialized")||a.on("mouseup",b.layout.enableTextSelection).data("textSelectionInitialized",!0),a.data("textSelectionDisabled")||a.disableSelection().data("textSelectionDisabled",!0))},enableTextSelection:function(){var a=b(document);b.fn.enableSelection&&a.data("textSelectionDisabled")&&
a.enableSelection().data("textSelectionDisabled",!1)},showInvisibly:function(a,c){return a&&a.length&&(c||a.css("display")==="none")?(c=a[0].style,c={display:c.display||"",visibility:c.visibility||""},a.css({display:"block",visibility:"hidden"}),c):{}},getElementDimensions:function(a,c){var d={css:{},inset:{}},f=d.css,k={bottom:0},n=b.layout.cssNum,x=Math.round,y=a.offset(),F,K,L;d.offsetLeft=y.left;d.offsetTop=y.top;c||(c={});b.each(["Left","Right","Top","Bottom"],function(R,D){F=f["border"+D]=b.layout.borderWidth(a,
D);K=f["padding"+D]=b.layout.cssNum(a,"padding"+D);L=D.toLowerCase();d.inset[L]=c[L]>=0?c[L]:K;k[L]=d.inset[L]+F});f.width=x(a.width());f.height=x(a.height());f.top=n(a,"top",!0);f.bottom=n(a,"bottom",!0);f.left=n(a,"left",!0);f.right=n(a,"right",!0);d.outerWidth=x(a.outerWidth());d.outerHeight=x(a.outerHeight());d.innerWidth=A(0,d.outerWidth-k.left-k.right);d.innerHeight=A(0,d.outerHeight-k.top-k.bottom);d.layoutWidth=x(a.innerWidth());d.layoutHeight=x(a.innerHeight());return d},getElementStyles:function(a,
c){var d={};a=a[0].style;c=c.split(",");var f=["Top","Bottom","Left","Right"],k=["Color","Style","Width"],n,x,y;for(n=0;n<c.length;n++){var F=c[n];if(F.match(/(border|padding|margin)$/))for(x=0;x<4;x++){var K=f[x];if(F==="border")for(y=0;y<3;y++){var L=k[y];d[F+K+L]=a[F+K+L]}else d[F+K]=a[F+K]}else d[F]=a[F]}return d},cssWidth:function(a,c){if(c<=0)return 0;var d=b.layout.browser;d=d.boxModel?d.boxSizing?a.css("boxSizing"):"content-box":"border-box";var f=b.layout.borderWidth,k=b.layout.cssNum;d!==
"border-box"&&(c-=f(a,"Left")+f(a,"Right"));d==="content-box"&&(c-=k(a,"paddingLeft")+k(a,"paddingRight"));return A(0,c)},cssHeight:function(a,c){if(c<=0)return 0;var d=b.layout.browser;d=d.boxModel?d.boxSizing?a.css("boxSizing"):"content-box":"border-box";var f=b.layout.borderWidth,k=b.layout.cssNum;d!=="border-box"&&(c-=f(a,"Top")+f(a,"Bottom"));d==="content-box"&&(c-=k(a,"paddingTop")+k(a,"paddingBottom"));return A(0,c)},cssNum:function(a,c,d){a.jquery||(a=b(a));var f=b.layout.showInvisibly(a);
c=b.css(a[0],c,!0);d=d&&c=="auto"?c:Math.round(parseFloat(c)||0);a.css(f);return d},borderWidth:function(a,c){a.jquery&&(a=a[0]);c="border"+c.substr(0,1).toUpperCase()+c.substr(1);return b.css(a,c+"Style",!0)==="none"?0:Math.round(parseFloat(b.css(a,c+"Width",!0))||0)},isMouseOverElem:function(a,c){var d=b(c||this),f=d.offset();c=f.top;f=f.left;var k=f+d.outerWidth();d=c+d.outerHeight();var n=a.pageX;a=a.pageY;return b.layout.browser.msie&&n<0&&a<0||n>=f&&n<=k&&a>=c&&a<=d},msg:function(a,c,d,f){b.isPlainObject(a)&&
window.debugData?(typeof c==="string"?(f=d,d=c):typeof d==="object"&&(f=d,d=null),c=d||"log( <object> )",f=b.extend({sort:!1,returnHTML:!1,display:!1},f),console.log("debugData: "+a+"\n"+c+"\n"+f)):c?alert(a):window.console?console.log(a):(f=b("#layoutLogger"),f.length||(f=b('<div id="layoutLogger" style="position: '+(b.support.fixedPosition?"fixed":"absolute")+'; top: 5px; z-index: 999999; max-width: 25%; overflow: hidden; border: 1px solid #000; border-radius: 5px; background: #FBFBFB; box-shadow: 0 2px 10px rgba(0,0,0,0.3);"><div style="font-size: 13px; font-weight: bold; padding: 5px 10px; background: #F6F6F6; border-radius: 5px 5px 0 0; cursor: move;"><span style="float: right; padding-left: 7px; cursor: pointer;" title="Remove Console" onclick="$(this).closest(\'#layoutLogger\').remove()">X</span>Layout console.log</div><ul style="font-size: 13px; font-weight: none; list-style: none; margin: 0; padding: 0 0 2px;"></ul></div>').appendTo("body"),
f.css("left",b(window).width()-f.outerWidth()-5),b.ui.draggable&&f.draggable({handle:":first-child"})),f.children("ul").append('<li style="padding: 4px 10px; margin: 0; border-top: 1px solid #CCC;">'+a.replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</li>"))}};(function(){var a=navigator.userAgent.toLowerCase(),c=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||
[];a=c[1]||"";c=c[2]||0;var d=a==="msie",f=document.compatMode,k=b.support,n=k.boxSizing!==void 0?k.boxSizing:k.boxSizingReliable,x=!d||!f||f==="CSS1Compat"||k.boxModel||!1,y=b.layout.browser={version:c,safari:a==="webkit",webkit:a==="chrome",msie:d,isIE6:d&&c==6,boxModel:x,boxSizing:!(typeof n==="function"?!n():!n)};a&&(y[a]=!0);x||f||b(function(){y.boxModel=k.boxModel})})();b.layout.defaults={name:"",containerClass:"ui-layout-container",inset:null,scrollToBookmarkOnLoad:!0,resizeWithWindow:!0,resizeWithWindowDelay:200,
resizeWithWindowMaxDelay:0,maskPanesEarly:!1,onresizeall_start:null,onresizeall_end:null,onload_start:null,onload_end:null,onunload_start:null,onunload_end:null,initPanes:!0,showErrorMessages:!0,showDebugMessages:!1,zIndex:null,zIndexes:{pane_normal:0,content_mask:1,resizer_normal:2,pane_sliding:100,pane_animate:1E3,resizer_drag:1E4},errors:{pane:"pane",selector:"selector",addButtonError:"Error Adding Button\nInvalid ",containerMissing:"UI Layout Initialization Error\nThe specified layout-container does not exist.",
centerPaneMissing:"UI Layout Initialization Error\nThe center-pane element does not exist.\nThe center-pane is a required element.",noContainerHeight:"UI Layout Initialization Warning\nThe layout-container \"CONTAINER\" has no height.\nTherefore the layout is 0-height and hence 'invisible'!",callbackError:"UI Layout Callback Error\nThe EVENT callback is not a valid function."},panes:{applyDemoStyles:!1,closable:!0,resizable:!0,slidable:!0,initClosed:!1,initHidden:!1,contentSelector:".ui-layout-content",
contentIgnoreSelector:".ui-layout-ignore",findNestedContent:!1,paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",togglerClass:"ui-layout-toggler",buttonClass:"ui-layout-button",minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerContent_open:"",togglerContent_closed:"",resizerDblClickToggle:!0,autoResize:!0,autoReopen:!0,resizerDragOpacity:1,maskContents:!1,maskObjects:!1,maskZindex:null,
resizingGrid:!1,livePaneResizing:!1,liveContentResizing:!1,liveResizingTolerance:1,sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseleave",slideDelay_open:300,slideDelay_close:300,hideTogglerOnSlide:!1,preventQuickSlideClose:b.layout.browser.webkit,preventPrematureSlideClose:!1,tips:{Open:"Open",Close:"Close",Resize:"Resize",Slide:"Slide Open",Pin:"Pin",Unpin:"Un-Pin",noRoomToOpen:"Not enough room to show this panel.",minSizeWarning:"Panel has reached its minimum size",maxSizeWarning:"Panel has reached its maximum size"},
showOverflowOnHover:!1,enableCursorHotkey:!0,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},fxOpacityFix:!0,animatePaneSizing:!1,children:null,containerSelector:"",initChildren:!0,destroyChildren:!0,resizeChildren:!0,triggerEventsOnLoad:!1,triggerEventsDuringLiveResize:!0,onshow_start:null,onshow_end:null,onhide_start:null,onhide_end:null,onopen_start:null,onopen_end:null,onclose_start:null,onclose_end:null,onresize_start:null,onresize_end:null,onsizecontent_start:null,onsizecontent_end:null,
onswap_start:null,onswap_end:null,ondrag_start:null,ondrag_end:null},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize",customHotkey:""},south:{paneSelector:".ui-layout-south",size:"auto",resizerCursor:"s-resize",customHotkey:""},east:{paneSelector:".ui-layout-east",size:200,resizerCursor:"e-resize",customHotkey:""},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize",customHotkey:""},center:{paneSelector:".ui-layout-center",minWidth:0,minHeight:0}};b.layout.optionsMap=
{layout:"name instanceKey stateManagement effects inset zIndexes errors zIndex scrollToBookmarkOnLoad showErrorMessages maskPanesEarly outset resizeWithWindow resizeWithWindowDelay resizeWithWindowMaxDelay onresizeall onresizeall_start onresizeall_end onload onload_start onload_end onunload onunload_start onunload_end".split(" "),center:"paneClass contentSelector contentIgnoreSelector findNestedContent applyDemoStyles triggerEventsOnLoad showOverflowOnHover maskContents maskObjects liveContentResizing containerSelector children initChildren resizeChildren destroyChildren onresize onresize_start onresize_end onsizecontent onsizecontent_start onsizecontent_end".split(" "),
noDefault:["paneSelector","resizerCursor","customHotkey"]};b.layout.transformData=function(a,c){c=c?{panes:{},center:{}}:{};var d,f;if(typeof a!=="object")return c;for(d in a){var k=c;var n=a[d];var x=d.split("__");var y=x.length-1;for(f=0;f<=y;f++){var F=x[f];f===y?b.isPlainObject(n)?k[F]=b.layout.transformData(n):k[F]=n:(k[F]||(k[F]={}),k=k[F])}}return c};b.layout.backwardCompatibility={map:{applyDefaultStyles:"applyDemoStyles",childOptions:"children",initChildLayout:"initChildren",destroyChildLayout:"destroyChildren",
resizeChildLayout:"resizeChildren",resizeNestedLayout:"resizeChildren",resizeWhileDragging:"livePaneResizing",resizeContentWhileDragging:"liveContentResizing",triggerEventsWhileDragging:"triggerEventsDuringLiveResize",maskIframesOnResize:"maskContents",useStateCookie:"stateManagement.enabled","cookie.autoLoad":"stateManagement.autoLoad","cookie.autoSave":"stateManagement.autoSave","cookie.keys":"stateManagement.stateKeys","cookie.name":"stateManagement.cookie.name","cookie.domain":"stateManagement.cookie.domain",
"cookie.path":"stateManagement.cookie.path","cookie.expires":"stateManagement.cookie.expires","cookie.secure":"stateManagement.cookie.secure",noRoomToOpenTip:"tips.noRoomToOpen",togglerTip_open:"tips.Close",togglerTip_closed:"tips.Open",resizerTip:"tips.Resize",sliderTip:"tips.Slide"},renameOptions:function(a){function c(y,F){y=y.split(".");for(var K=y.length-1,L={branch:a,key:y[K]},R=0,D;R<K;R++)D=y[R],L.branch=L.branch[D]==void 0?F?L.branch[D]={}:{}:L.branch[D];return L}var d=b.layout.backwardCompatibility.map,
f;for(f in d){var k=c(f);var n=k.branch[k.key];if(n!==void 0){var x=c(d[f],!0);x.branch[x.key]=n;delete k.branch[k.key]}}},renameAllOptions:function(a){var c=b.layout.backwardCompatibility.renameOptions;c(a);a.defaults&&(typeof a.panes!=="object"&&(a.panes={}),b.extend(!0,a.panes,a.defaults),delete a.defaults);a.panes&&c(a.panes);b.each(b.layout.config.allPanes,function(d,f){a[f]&&c(a[f])});return a}};b.fn.layout=function(a){function c(e){if(!e)return!0;var h=e.keyCode;if(h<33)return!0;var l={38:"north",
40:"south",37:"west",39:"east"};e.altKey;var m=e.shiftKey,q=e.ctrlKey,t,v,B,u;q&&h>=37&&h<=40&&D[l[h]].enableCursorHotkey?u=l[h]:(q||m)&&b.each(n.borderPanes,function(z,J){t=D[J];v=t.customHotkey;B=t.customHotkeyModifier;if((m&&B=="SHIFT"||q&&B=="CTRL"||q&&m)&&v&&h===(isNaN(v)||v<=9?v.toUpperCase().charCodeAt(0):v))return u=J,!1});if(!u||!M[u]||!D[u].closable||C[u].isHidden)return!0;ya(u);e.stopPropagation();return e.returnValue=!1}function d(e){if(ea()){this&&this.tagName&&(e=this);var h;r(e)?h=
M[e]:b(e).data("layoutRole")?h=b(e):b(e).parents().each(function(){if(b(this).data("layoutRole"))return h=b(this),!1});if(h&&h.length){var l=h.data("layoutEdge");e=C[l];e.cssSaved&&f(l);if(e.isSliding||e.isResizing||e.isClosed)e.cssSaved=!1;else{var m={zIndex:D.zIndexes.resizer_normal+1},q={},t=h.css("overflow"),v=h.css("overflowX"),B=h.css("overflowY");t!="visible"&&(q.overflow=t,m.overflow="visible");v&&!v.match(/(visible|auto)/)&&(q.overflowX=v,m.overflowX="visible");B&&!B.match(/(visible|auto)/)&&
(q.overflowY=v,m.overflowY="visible");e.cssSaved=q;h.css(m);b.each(n.allPanes,function(u,z){z!=l&&f(z)})}}}}function f(e){if(ea()){this&&this.tagName&&(e=this);var h;r(e)?h=M[e]:b(e).data("layoutRole")?h=b(e):b(e).parents().each(function(){if(b(this).data("layoutRole"))return h=b(this),!1});if(h&&h.length){e=h.data("layoutEdge");e=C[e];var l=e.cssSaved||{};e.isSliding||e.isResizing||h.css("zIndex",D.zIndexes.pane_normal);h.css(l);e.cssSaved=!1}}}var k=b.layout.browser,n=b.layout.config,x=b.layout.cssWidth,
y=b.layout.cssHeight,F=b.layout.getElementDimensions,K=b.layout.getElementStyles,L=b.layout.getEventObject,R=b.layout.parsePaneName,D=b.extend(!0,{},b.layout.defaults);D.effects=b.extend(!0,{},b.layout.effects);var C={id:"layout"+b.now(),initialized:!1,paneResizing:!1,panesSliding:{},container:{innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0,layoutWidth:0,layoutHeight:0},north:{childIdx:0},south:{childIdx:0},east:{childIdx:0},west:{childIdx:0},center:{childIdx:0}},E={north:null,south:null,east:null,
west:null,center:null},H={data:{},set:function(e,h,l){H.clear(e);H.data[e]=setTimeout(h,l)},clear:function(e){var h=H.data;h[e]&&(clearTimeout(h[e]),delete h[e])}},I=function(e,h,l){var m=D;(m.showErrorMessages&&!l||l&&m.showDebugMessages)&&b.layout.msg(m.name+" / "+e,h!==!1);return!1},G=function(e,h,l){var m=h&&r(h),q=m?C[h]:C,t=m?D[h]:D,v=D.name,B=e+(e.match(/_/)?"":"_end"),u=B.match(/_end$/)?B.substr(0,B.length-4):"",z=t[B]||t[u],J="NC",P=[],N=m?M[h]:0;if(m&&!N)return J;m||b.type(h)!=="boolean"||
(l=h,h="");if(z)try{if(r(z))throw"fn str not supported";b.isFunction(z)&&(J=P.length?z(P[1]):m?z(h,M[h],q,t,v):z(Y,q,t,v))}catch(U){I(D.errors.callbackError.replace(/EVENT/,b.trim((h||"")+" "+B)),!1),b.type(U)==="string"&&U.length&&I("Exception:  "+U,!1)}l||J===!1||(m?(t=D[h],q=C[h],N.triggerHandler("layoutpane"+B,[h,N,q,t,v]),u&&N.triggerHandler("layoutpane"+u,[h,N,q,t,v])):(Q.triggerHandler("layout"+B,[Y,q,t,v]),u&&Q.triggerHandler("layout"+u,[Y,q,t,v])));m&&e==="onresize_end"&&Ya(h+"");return J},
S=function(e){if(!k.mozilla){var h=M[e];C[e].tagName==="IFRAME"?h.css(n.hidden).css(n.visible):h.find("IFRAME").css(n.hidden).css(n.visible)}},V=function(e){var h=M[e];e=n[e].dir;h={minWidth:1001-x(h,1E3),minHeight:1001-y(h,1E3)};e==="horz"&&(h.minSize=h.minHeight);e==="vert"&&(h.minSize=h.minWidth);return h},Z=function(e,h,l){l=e;r(e)?l=M[e]:e.jquery||(l=b(e));e=y(l,h);l.css({height:e,visibility:"visible"});e>0&&l.innerWidth()>0?l.data("autoHidden")&&(l.show().data("autoHidden",!1),k.mozilla||l.css(n.hidden).css(n.visible)):
l.data("autoHidden")||l.hide().data("autoHidden",!0)},X=function(e,h,l){l||(l=n[e].dir);r(h)&&h.match(/%/)&&(h=h==="100%"?-1:parseInt(h,10)/100);if(h===0)return 0;if(h>=1)return parseInt(h,10);var m=D,q=0;l=="horz"?q=O.innerHeight-(M.north?m.north.spacing_open:0)-(M.south?m.south.spacing_open:0):l=="vert"&&(q=O.innerWidth-(M.west?m.west.spacing_open:0)-(M.east?m.east.spacing_open:0));if(h===-1)return q;if(h>0)return g(q*h);if(e=="center")return 0;l=l==="horz"?"height":"width";m=M[e];e=l==="height"?
oa[e]:!1;q=b.layout.showInvisibly(m);var t=m.css(l),v=e?e.css(l):0;m.css(l,"auto");e&&e.css(l,"auto");h=l==="height"?m.outerHeight():m.outerWidth();m.css(l,t).css(q);e&&e.css(l,v);return h},T=function(e,h){var l=M[e],m=D[e],q=C[e],t=h?m.spacing_open:0;m=h?m.spacing_closed:0;return!l||q.isHidden?0:q.isClosed||q.isSliding&&h?m:n[e].dir==="horz"?l.outerHeight()+t:l.outerWidth()+t},W=function(e,h){if(ea()){var l=D[e],m=C[e],q=n[e],t=q.dir;q.sizeType.toLowerCase();h=h!=void 0?h:m.isSliding;M[e];q=l.spacing_open;
var v=n.oppositeEdge[e],B=C[v],u=M[v],z=!u||B.isVisible===!1||B.isSliding?0:t=="horz"?u.outerHeight():u.outerWidth();v=(!u||B.isHidden?0:D[v][B.isClosed!==!1?"spacing_closed":"spacing_open"])||0;B=t=="horz"?O.innerHeight:O.innerWidth;u=V("center");u=t=="horz"?A(D.center.minHeight,u.minHeight):A(D.center.minWidth,u.minWidth);h=B-q-(h?0:X("center",u,t)+z+v);t=m.minSize=A(X(e,l.minSize),V(e).minSize);h=m.maxSize=w(l.maxSize?X(e,l.maxSize):1E5,h);m=m.resizerPosition={};q=O.inset.top;z=O.inset.left;v=
O.innerWidth;B=O.innerHeight;l=l.spacing_open;switch(e){case "north":m.min=q+t;m.max=q+h;break;case "west":m.min=z+t;m.max=z+h;break;case "south":m.min=q+B-h-l;m.max=q+B-t-l;break;case "east":m.min=z+v-h-l,m.max=z+v-t-l}}},ca=function(e,h){e=b(e);var l=e.data("layoutRole"),m=e.data("layoutEdge"),q=D[m][l+"Class"];m="-"+m;var t=e.hasClass(q+"-closed")?"-closed":"-open",v=t==="-closed"?"-open":"-closed";t=q+"-hover "+(q+m+"-hover ")+(q+t+"-hover ")+(q+m+t+"-hover ");h&&(t+=q+v+"-hover "+(q+m+v+"-hover "));
l=="resizer"&&e.hasClass(q+"-sliding")&&(t+=q+"-sliding-hover "+(q+m+"-sliding-hover "));return b.trim(t)},fa=function(e,h){h=b(h||this);e&&h.data("layoutRole")==="toggler"&&e.stopPropagation();h.addClass(ca(h))},ja=function(e,h){e=b(h||this);e.removeClass(ca(e,!0))},xa=function(e){e=b(this).data("layoutEdge");var h=C[e];b(document);h.isResizing||C.paneResizing||D.maskPanesEarly&&Da(e,{resizing:!0})},Za=function(e,h){var l=h||this,m=b(l).data("layoutEdge"),q=m+"ResizerLeave";b(document);H.clear(m+
"_openSlider");H.clear(q);h?D.maskPanesEarly&&!C.paneResizing&&Ga():H.set(q,function(){Za(e,l)},200)},ea=function(){return C.initialized||C.creatingLayout?!0:Ha()},Ha=function(e){var h=D;if(!Q.is(":visible"))return!e&&k.webkit&&Q[0].tagName==="BODY"&&setTimeout(function(){Ha(!0)},50),!1;if(!ab("center").length)return I(h.errors.centerPaneMissing);C.creatingLayout=!0;b.extend(O,F(Q,h.inset));nb();h.scrollToBookmarkOnLoad&&(e=self.location,e.hash&&e.replace(e.hash));Y.hasParentLayout?h.resizeWithWindow=
!1:h.resizeWithWindow&&b(window).bind("resize."+ha,ob);delete C.creatingLayout;C.initialized=!0;p(Y,b.layout.onReady);G("onload_end");return!0},Pa=function(e,h){var l=R.call(this,e),m=M[l];if(m){var q=oa[l],t=C[l];e=D[l];var v=D.stateManagement||{};h=h?e.children=h:e.children;if(b.isPlainObject(h))h=[h];else if(!h||!b.isArray(h))return;b.each(h,function(B,u){b.isPlainObject(u)&&(u.containerSelector?m.find(u.containerSelector):q||m).each(function(){var z=b(this),J=z.data("layout");if(!J){bb({container:z,
options:u},t);if(v.includeChildren&&C.stateData[l]){J=(C.stateData[l].children||{})[u.instanceKey];var P=u.stateManagement||(u.stateManagement={autoLoad:!0});P.autoLoad===!0&&J&&(P.autoSave=!1,P.includeChildren=!0,P.autoLoad=b.extend(!0,{},J))}(J=z.layout(u))&&Oa(l,J)}})})}},bb=function(e,h){var l=e.container;e=e.options;var m=e.stateManagement,q=e.instanceKey||l.data("layoutInstanceKey");q||(q=(m&&m.cookie?m.cookie.name:"")||e.name);q=q?q.replace(/[^\w-]/gi,"_").replace(/_{2,}/g,"_"):"layout"+ ++h.childIdx;
e.instanceKey=q;l.data("layoutInstanceKey",q);return q},Oa=function(e,h){var l=M[e],m=E[e],q=C[e];b.isPlainObject(m)&&(b.each(m,function(t,v){v.destroyed&&delete m[t]}),b.isEmptyObject(m)&&(m=E[e]=null));h||m||(h=l.data("layout"));h&&(h.hasParentLayout=!0,l=h.options,bb(h,q),m||(m=E[e]={}),m[l.instanceKey]=h.container.data("layout"));Y[e].children=E[e];h||Pa(e)},ob=function(){var e=D,h=Number(e.resizeWithWindowDelay);h<10&&(h=100);H.clear("winResize");H.set("winResize",function(){H.clear("winResize");
H.clear("winResizeRepeater");var l=F(Q,e.inset);l.innerWidth===O.innerWidth&&l.innerHeight===O.innerHeight||za()},h);H.data.winResizeRepeater||cb()},cb=function(){var e=Number(D.resizeWithWindowMaxDelay);e>0&&H.set("winResizeRepeater",function(){cb();za()},e)},db=function(){G("onunload_start");p(Y,b.layout.onUnload);G("onunload_end")},eb=function(e){e=e?e.split(","):n.borderPanes;b.each(e,function(h,l){h=D[l];if(h.enableCursorHotkey||h.customHotkey)return b(document).bind("keydown."+ha,c),!1})},pb=
function(){function e(u){var z=D[u],J=D.panes;z.fxSettings||(z.fxSettings={});J.fxSettings||(J.fxSettings={});b.each(["_open","_close","_size"],function(P,N){var U="fxName"+N;P="fxSpeed"+N;N="fxSettings"+N;var ba=z[U]=z[U]||J[U]||z.fxName||J.fxName||"none",ka=b.effects&&(b.effects[ba]||b.effects.effect&&b.effects.effect[ba]);ba!=="none"&&D.effects[ba]&&ka||(ba=z[U]="none");ba=D.effects[ba]||{};U=ba.all||null;ba=ba[u]||null;z[P]=z[P]||J[P]||z.fxSpeed||J.fxSpeed||null;z[N]=b.extend(!0,{},U,ba,J.fxSettings,
z.fxSettings,J[N],z[N])});delete z.fxName;delete z.fxSpeed;delete z.fxSettings}var h,l,m;a=b.layout.transformData(a,!0);a=b.layout.backwardCompatibility.renameAllOptions(a);if(!b.isEmptyObject(a.panes)){var q=b.layout.optionsMap.noDefault;var t=0;for(l=q.length;t<l;t++){var v=q[t];delete a.panes[v]}q=b.layout.optionsMap.layout;t=0;for(l=q.length;t<l;t++)v=q[t],delete a.panes[v]}q=b.layout.optionsMap.layout;var B=b.layout.config.optionRootKeys;for(v in a)t=a[v],b.inArray(v,B)<0&&b.inArray(v,q)<0&&
(a.panes[v]||(a.panes[v]=b.isPlainObject(t)?b.extend(!0,{},t):t),delete a[v]);b.extend(!0,D,a);b.each(n.allPanes,function(u,z){n[z]=b.extend(!0,{},n.panes,n[z]);h=D.panes;m=D[z];if(z==="center")for(q=b.layout.optionsMap.center,u=0,l=q.length;u<l;u++)v=q[u],a.center[v]||!a.panes[v]&&m[v]||(m[v]=h[v]);else m=D[z]=b.extend(!0,{},h,m),e(z),m.resizerClass||(m.resizerClass="ui-layout-resizer"),m.togglerClass||(m.togglerClass="ui-layout-toggler");m.paneClass||(m.paneClass="ui-layout-pane")});t=a.zIndex;
B=D.zIndexes;t>0&&(B.pane_normal=t,B.content_mask=A(t+1,B.content_mask),B.resizer_normal=A(t+2,B.resizer_normal));delete D.panes},ab=function(e){e=D[e].paneSelector;if(e.substr(0,1)==="#")return Q.find(e).eq(0);var h=Q.children(e).eq(0);return h.length?h:Q.children("form:first").children(e).eq(0)},nb=function(e){R(e);b.each(n.allPanes,function(h,l){fb(l,!0)});Qa();b.each(n.borderPanes,function(h,l){M[l]&&C[l].isVisible&&(W(l),qa(l))});ra("center");b.each(n.allPanes,function(h,l){gb(l)})},fb=function(e,
h){if(h||ea()){h=D[e];var l=C[e],m=n[e],q=m.dir;l.fx;h.spacing_open||0;var t=e==="center",v={},B=M[e];B?Ra(e,!1,!0,!1):oa[e]=!1;B=M[e]=ab(e);if(B.length){B.data("layoutCSS")||B.data("layoutCSS",K(B,"position,top,left,bottom,right,width,height,overflow,zIndex,display,backgroundColor,padding,margin,border"));Y[e]={name:e,pane:M[e],content:oa[e],options:D[e],state:C[e],children:E[e]};B.data({parentLayout:Y,layoutPane:Y[e],layoutEdge:e,layoutRole:"pane"}).css(m.cssReq).css("zIndex",D.zIndexes.pane_normal).css(h.applyDemoStyles?
m.cssDemo:{}).addClass(h.paneClass+" "+h.paneClass+"-"+e).bind("mouseenter."+ha,fa).bind("mouseleave."+ha,ja);m={hide:"",show:"",toggle:"",close:"",open:"",slideOpen:"",slideClose:"",slideToggle:"",size:"sizePane",sizePane:"sizePane",sizeContent:"",sizeHandles:"",enableClosable:"",disableClosable:"",enableSlideable:"",disableSlideable:"",enableResizable:"",disableResizable:"",swapPanes:"swapPanes",swap:"swapPanes",move:"swapPanes",removePane:"removePane",remove:"removePane",createChildren:"",resizeChildren:"",
resizeAll:"resizeAll",resizeLayout:"resizeAll"};for(z in m)B.bind("layoutpane"+z.toLowerCase()+"."+ha,Y[m[z]||z]);Sa(e,!1);if(!t){var u=l.size=X(e,h.size);var z=X(e,h.minSize)||1;t=X(e,h.maxSize)||1E5;u>0&&(u=A(w(u,t),z));l.autoResize=h.autoResize;l.isClosed=!1;l.isSliding=!1;l.isResizing=!1;l.isHidden=!1;l.pins||(l.pins=[])}l.tagName=B[0].tagName;l.edge=e;l.noRoom=!1;l.isVisible=!0;hb(e);q==="horz"?v.height=y(B,u):q==="vert"&&(v.width=x(B,u));B.css(v);q!="horz"&&ra(e,!0);C.initialized&&(Qa(e),eb(e));
h.initClosed&&h.closable&&!h.initHidden?sa(e,!0,!0):h.initHidden||h.initClosed?Ta(e):l.noRoom||B.css("display","block");B.css("visibility","visible");h.showOverflowOnHover&&B.hover(d,f);C.initialized&&gb(e)}else M[e]=!1}},gb=function(e){var h=M[e],l=C[e],m=D[e];h&&(h.data("layout")&&Oa(e,h.data("layout")),l.isVisible&&(C.initialized?za():Aa(e),m.triggerEventsOnLoad?G("onresize_end",e):Ya(e)),m.initChildren&&m.children&&Pa(e))},hb=function(e){e=e?e.split(","):n.borderPanes;b.each(e,function(h,l){h=
M[l];var m=aa[l];D[l];var q=C[l],t=n[l].side,v={};if(h){switch(l){case "north":v.top=O.inset.top;v.left=O.inset.left;v.right=O.inset.right;break;case "south":v.bottom=O.inset.bottom;v.left=O.inset.left;v.right=O.inset.right;break;case "west":v.left=O.inset.left;break;case "east":v.right=O.inset.right}h.css(v);m&&q.isClosed?m.css(t,O.inset[t]):m&&!q.isHidden&&m.css(t,O.inset[t]+T(l))}})},Qa=function(e){e=e?e.split(","):n.borderPanes;b.each(e,function(h,l){h=M[l];aa[l]=!1;la[l]=!1;if(h){h=D[l];var m=
C[l];n[l];var q=h.paneSelector.substr(0,1)==="#"?h.paneSelector.substr(1):"",t=h.resizerClass,v=h.togglerClass;m.isVisible?h.spacing_open:h.spacing_closed;var B="-"+l;m.isVisible?"-open":"-closed";var u=Y[l],z=u.resizer=aa[l]=b("<div></div>");u=u.toggler=h.closable?la[l]=b("<div></div>"):!1;!m.isVisible&&h.slidable&&z.attr("title",h.tips.Slide).css("cursor",h.sliderCursor);z.attr("id",q?q+"-resizer":"").data({parentLayout:Y,layoutPane:Y[l],layoutEdge:l,layoutRole:"resizer"}).css(n.resizers.cssReq).css("zIndex",
D.zIndexes.resizer_normal).css(h.applyDemoStyles?n.resizers.cssDemo:{}).addClass(t+" "+t+B).hover(fa,ja).hover(xa,Za).mousedown(b.layout.disableTextSelection).mouseup(b.layout.enableTextSelection).appendTo(Q);b.fn.disableSelection&&z.disableSelection();h.resizerDblClickToggle&&z.bind("dblclick."+ha,ya);u&&(u.attr("id",q?q+"-toggler":"").data({parentLayout:Y,layoutPane:Y[l],layoutEdge:l,layoutRole:"toggler"}).css(n.togglers.cssReq).css(h.applyDemoStyles?n.togglers.cssDemo:{}).addClass(v+" "+v+B).hover(fa,
ja).bind("mouseenter",xa).appendTo(z),h.togglerContent_open&&b("<span>"+h.togglerContent_open+"</span>").data({layoutEdge:l,layoutRole:"togglerContent"}).data("layoutRole","togglerContent").data("layoutEdge",l).addClass("content content-open").css("display","none").appendTo(u),h.togglerContent_closed&&b("<span>"+h.togglerContent_closed+"</span>").data({layoutEdge:l,layoutRole:"togglerContent"}).addClass("content content-closed").css("display","none").appendTo(u),ib(l));qb(l);m.isVisible?Ua(l):(Ia(l),
wa(l,!0))}});Ba()},Sa=function(e,h){if(ea()){var l=D[e],m=l.contentSelector,q=Y[e],t=M[e];if(m)var v=q.content=oa[e]=l.findNestedContent?t.find(m).eq(0):t.children(m).eq(0);v&&v.length?(v.data("layoutRole","content"),v.data("layoutCSS")||v.data("layoutCSS",K(v,"height")),v.css(n.content.cssReq),l.applyDemoStyles&&(v.css(n.content.cssDemo),t.css(n.content.cssDemoPane)),t.css("overflowX").match(/(scroll|auto)/)&&t.css("overflow","hidden"),C[e].content={},h!==!1&&Aa(e)):q.content=oa[e]=!1}},qb=function(e){var h=
b.layout.plugins.draggable;e=e?e.split(","):n.borderPanes;b.each(e,function(m,q){var t=D[q];if(!h||!M[q]||!t.resizable)return t.resizable=!1,!0;var v=C[q],B=D.zIndexes;m=n[q];var u=m.dir=="horz"?"top":"left",z=M[q],J=aa[q],P=t.resizerClass,N=0,U,ba,ka=P+"-drag",ta=P+"-"+q+"-drag",da=t.paneClass+"-resizing",ia=P+"-dragging",ma=P+"-"+q+"-dragging",ua=P+"-dragging-limit",jb=P+"-"+q+"-dragging-limit",Va=!1;v.isClosed||J.attr("title",t.tips.Resize).css("cursor",t.resizerCursor);J.draggable({containment:Q[0],
axis:m.dir=="horz"?"y":"x",delay:0,distance:1,grid:t.resizingGrid,helper:"clone",opacity:t.resizerDragOpacity,addClasses:!1,zIndex:B.resizer_drag,start:function(Ja,na){t=D[q];v=C[q];ba=t.livePaneResizing;if(!1===G("ondrag_start",q))return!1;v.isResizing=!0;C.paneResizing=q;H.clear(q+"_closeSlider");W(q);U=v.resizerPosition;N=na.position[u];J.addClass(ka+" "+ta);z.addClass(da);Va=!1;Da(q,{resizing:!0})},drag:function(Ja,na){Va||(na.helper.addClass(ia+" "+ma).css({right:"auto",bottom:"auto"}).children().css("visibility",
"hidden"),Va=!0,v.isSliding&&M[q].css("zIndex",B.pane_sliding));var Ea=0;na.position[u]<U.min?(na.position[u]=U.min,Ea=-1):na.position[u]>U.max&&(na.position[u]=U.max,Ea=1);Ea?(na.helper.addClass(ua+" "+jb),window.defaultStatus=Ea>0&&q.match(/(north|west)/)||Ea<0&&q.match(/(south|east)/)?t.tips.maxSizeWarning:t.tips.minSizeWarning):(na.helper.removeClass(ua+" "+jb),window.defaultStatus="");ba&&Math.abs(na.position[u]-N)>=t.liveResizingTolerance&&(N=na.position[u],l(Ja,na,q))},stop:function(Ja,na){b("body").enableSelection();
window.defaultStatus="";J.removeClass(ka+" "+ta);z.removeClass(da);v.isResizing=!1;C.paneResizing=!1;l(Ja,na,q,!0)}})});var l=function(m,q,t,v){var B=q.position,u=n[t];m=D[t];q=C[t];switch(t){case "north":var z=B.top;break;case "west":z=B.left;break;case "south":z=O.layoutHeight-B.top-m.spacing_open;break;case "east":z=O.layoutWidth-B.left-m.spacing_open}z-=O.inset[u.side];v?(!1!==G("ondrag_end",t)&&Ka(t,z,!1,!0),Ga(!0),q.isSliding&&Da(t,{resizing:!0})):Math.abs(z-q.size)<m.liveResizingTolerance||
(Ka(t,z,!1,!0),pa.each(kb))}},kb=function(){var e=b(this),h=e.data("layoutMask");h=C[h];h.tagName=="IFRAME"&&h.isVisible&&e.css({top:h.offsetTop,left:h.offsetLeft,width:h.outerWidth,height:h.outerHeight})},Da=function(e,h){var l=n[e],m=["center"],q=D.zIndexes,t=b.extend({objectsOnly:!1,animation:!1,resizing:!0,sliding:C[e].isSliding},h),v,B;t.resizing&&m.push(e);t.sliding&&m.push(n.oppositeEdge[e]);l.dir==="horz"&&(m.push("west"),m.push("east"));b.each(m,function(u,z){B=C[z];v=D[z];B.isVisible&&(v.maskObjects||
!t.objectsOnly&&v.maskContents)&&rb(z).each(function(){kb.call(this);this.style.zIndex=B.isSliding?q.pane_sliding+1:q.pane_normal+1;this.style.display="block"})})},Ga=function(e){if(e||!C.paneResizing)pa.hide();else if(!e&&!b.isEmptyObject(C.panesSliding)){e=pa.length-1;for(var h,l;e>=0;e--)l=pa.eq(e),h=l.data("layoutMask"),D[h].maskObjects||l.hide()}},rb=function(e){for(var h=b([]),l,m=0,q=pa.length;m<q;m++)l=pa.eq(m),l.data("layoutMask")===e&&(h=h.add(l));if(h.length)return h;h=M[e];l=C[e];m=D[e];
q=D.zIndexes;var t;if(m.maskContents||m.maskObjects){for(t=0;t<(m.maskObjects?2:1);t++){var v=m.maskObjects&&t==0;var B=document.createElement(v?"iframe":"div");var u=b(B).data("layoutMask",e);B.className="ui-layout-mask ui-layout-mask-"+e;var z=B.style;z.background="#FFF";z.position="absolute";z.display="block";v?(B.src="about:blank",B.frameborder=0,z.border=0,z.opacity=0,z.filter="Alpha(Opacity='0')"):(z.opacity=.001,z.filter="Alpha(Opacity='1')");l.tagName=="IFRAME"?(z.zIndex=q.pane_normal+1,Q.append(B)):
(u.addClass("ui-layout-mask-inside-pane"),z.zIndex=m.maskZindex||q.content_mask,z.top=0,z.left=0,z.width="100%",z.height="100%",h.append(B));pa=pa.add(B)}e=pa}else e=b([]);return e},Ra=function(e,h,l,m){if(ea()){e=R.call(this,e);var q=M[e],t=oa[e],v=aa[e],B=la[e];q&&b.isEmptyObject(q.data())&&(q=!1);t&&b.isEmptyObject(t.data())&&(t=!1);v&&b.isEmptyObject(v.data())&&(v=!1);B&&b.isEmptyObject(B.data())&&(B=!1);q&&q.stop(!0,!0);var u=D[e];C[e];var z=E[e],J=b.isPlainObject(z)&&!b.isEmptyObject(z);m=m!==
void 0?m:u.destroyChildren;J&&m&&(b.each(z,function(P,N){N.destroyed||N.destroy(!0);N.destroyed&&delete z[P]}),b.isEmptyObject(z)&&(z=E[e]=null,J=!1));q&&h&&!J?q.remove():q&&q[0]&&(h=u.paneClass,m=h+"-"+e,h=[h,h+"-open",h+"-closed",h+"-sliding",m,m+"-open",m+"-closed",m+"-sliding"],b.merge(h,ca(q,!0)),q.removeClass(h.join(" ")).removeData("parentLayout").removeData("layoutPane").removeData("layoutRole").removeData("layoutEdge").removeData("autoHidden").unbind("."+ha),J&&t?(t.width(t.width()),b.each(z,
function(P,N){N.resizeAll()})):t&&t.css(t.data("layoutCSS")).removeData("layoutCSS").removeData("layoutRole"),q.data("layout")||q.css(q.data("layoutCSS")).removeData("layoutCSS"));B&&B.remove();v&&v.remove();Y[e]=M[e]=oa[e]=aa[e]=la[e]=!1;l||za()}},La=function(e){var h=M[e],l=h[0].style;D[e].useOffscreenClose?(h.data(n.offscreenReset)||h.data(n.offscreenReset,{left:l.left,right:l.right}),h.css(n.offscreenCSS)):h.hide().removeData(n.offscreenReset)},lb=function(e){var h=M[e];e=D[e];var l=n.offscreenCSS,
m=h.data(n.offscreenReset),q=h[0].style;h.show().removeData(n.offscreenReset);e.useOffscreenClose&&m&&(q.left==l.left&&(q.left=m.left),q.right==l.right&&(q.right=m.right))},Ta=function(e,h){if(ea()){e=R.call(this,e);var l=D[e],m=C[e],q=M[e],t=aa[e];e==="center"||!q||m.isHidden||C.initialized&&!1===G("onhide_start",e)||(m.isSliding=!1,delete C.panesSliding[e],t&&t.hide(),!C.initialized||m.isClosed?(m.isClosed=!0,m.isHidden=!0,m.isVisible=!1,C.initialized||La(e),ra(n[e].dir==="horz"?"":"center"),(C.initialized||
l.triggerEventsOnLoad)&&G("onhide_end",e)):(m.isHiding=!0,sa(e,!1,h)))}},Ma=function(e,h,l,m){if(ea()){e=R.call(this,e);D[e];var q=C[e],t=M[e];aa[e];e!=="center"&&t&&q.isHidden&&!1!==G("onshow_start",e)&&(q.isShowing=!0,q.isSliding=!1,delete C.panesSliding[e],h===!1?sa(e,!0):Ca(e,!1,l,m))}},ya=function(e,h){if(ea()){var l=L(e);e=R.call(this,e);var m=C[e];l&&l.stopImmediatePropagation();m.isHidden?Ma(e):m.isClosed?Ca(e,!!h):sa(e)}},sb=function(e,h){M[e];h=C[e];La(e);h.isClosed=!0;h.isVisible=!1;Ia(e)},
sa=function(e,h,l,m){function q(){u.isMoving=!1;wa(t,!0);var N=n.oppositeEdge[t];C[N].noRoom&&(W(N),qa(N));m||!C.initialized&&!B.triggerEventsOnLoad||(J||G("onclose_end",t),J&&G("onshow_end",t),P&&G("onhide_end",t))}var t=R.call(this,e);if(t!=="center")if(!C.initialized&&M[t])sb(t);else if(ea()){var v=M[t];aa[t];la[t];var B=D[t],u=C[t];n[t];var z,J,P;Q.queue(function(N){if(!v||!B.closable&&!u.isShowing&&!u.isHiding||!h&&u.isClosed&&!u.isShowing)return N();var U=!u.isShowing&&!1===G("onclose_start",
t);J=u.isShowing;P=u.isHiding;u.isSliding;delete u.isShowing;delete u.isHiding;if(U)return N();z=!l&&!u.isClosed&&B.fxName_close!="none";u.isMoving=!0;u.isClosed=!0;u.isVisible=!1;P?u.isHidden=!0:J&&(u.isHidden=!1);u.isSliding?Fa(t,!1):ra(n[t].dir==="horz"?"":"center",!1);Ia(t);z?(Na(t,!0),v.hide(B.fxName_close,B.fxSettings_close,B.fxSpeed_close,function(){Na(t,!1);u.isClosed&&q();N()})):(La(t),q(),N())})}},Ia=function(e){if(aa[e]){M[e];var h=aa[e],l=la[e],m=D[e],q=C[e],t=n[e].side,v=m.resizerClass,
B=m.togglerClass,u="-"+e;h.css(t,O.inset[t]).removeClass(v+"-open "+v+u+"-open").removeClass(v+"-sliding "+v+u+"-sliding").addClass(v+"-closed "+v+u+"-closed");q.isHidden&&h.hide();m.resizable&&b.layout.plugins.draggable&&h.draggable("disable").removeClass("ui-state-disabled").css("cursor","default").attr("title","");l&&(l.removeClass(B+"-open "+B+u+"-open").addClass(B+"-closed "+B+u+"-closed").attr("title",m.tips.Open),l.children(".content-open").hide(),l.children(".content-closed").css("display",
"block"));Wa(e,!1);C.initialized&&Ba()}},Ca=function(e,h,l,m){function q(){u.isMoving=!1;S(t);u.isSliding||ra(n[t].dir=="vert"?"center":"",!1);Ua(t)}if(ea()){var t=R.call(this,e),v=M[t];aa[t];la[t];var B=D[t],u=C[t];n[t];var z,J;t!=="center"&&Q.queue(function(P){if(!v||!B.resizable&&!B.closable&&!u.isShowing||u.isVisible&&!u.isSliding)return P();if(u.isHidden&&!u.isShowing)P(),Ma(t,!0);else{u.autoResize&&u.size!=B.size?va(t,B.size,!0,!0,!0):W(t,h);var N=G("onopen_start",t);if(N==="abort")return P();
N!=="NC"&&W(t,h);if(u.minSize>u.maxSize)return Wa(t,!1),!m&&B.tips.noRoomToOpen&&alert(B.tips.noRoomToOpen),P();h?Fa(t,!0):u.isSliding?Fa(t,!1):B.slidable&&wa(t,!1);u.noRoom=!1;qa(t);J=u.isShowing;delete u.isShowing;z=!l&&u.isClosed&&B.fxName_open!="none";u.isMoving=!0;u.isVisible=!0;u.isClosed=!1;J&&(u.isHidden=!1);z?(Na(t,!0),v.show(B.fxName_open,B.fxSettings_open,B.fxSpeed_open,function(){Na(t,!1);u.isVisible&&q();P()})):(lb(t),q(),P())}})}},Ua=function(e,h){var l=M[e],m=aa[e],q=la[e],t=D[e],v=
C[e],B=n[e].side,u=t.resizerClass,z=t.togglerClass,J="-"+e;m.css(B,O.inset[B]+T(e)).removeClass(u+"-closed "+u+J+"-closed").addClass(u+"-open "+u+J+"-open");v.isSliding?m.addClass(u+"-sliding "+u+J+"-sliding"):m.removeClass(u+"-sliding "+u+J+"-sliding");ja(0,m);t.resizable&&b.layout.plugins.draggable?m.draggable("enable").css("cursor",t.resizerCursor).attr("title",t.tips.Resize):v.isSliding||m.css("cursor","default");q&&(q.removeClass(z+"-closed "+z+J+"-closed").addClass(z+"-open "+z+J+"-open").attr("title",
t.tips.Close),ja(0,q),q.children(".content-closed").hide(),q.children(".content-open").css("display","block"));Wa(e,!v.isSliding);b.extend(v,F(l));C.initialized&&(Ba(),Aa(e,!0));!h&&(C.initialized||t.triggerEventsOnLoad)&&l.is(":visible")&&(G("onopen_end",e),v.isShowing&&G("onshow_end",e),C.initialized&&G("onresize_end",e))},mb=function(e){function h(){q.isClosed?q.isMoving||Ca(m,!0):Fa(m,!0)}if(ea()){var l=L(e),m=R.call(this,e),q=C[m];e=D[m].slideDelay_open;m!=="center"&&(l&&l.stopImmediatePropagation(),
q.isClosed&&l&&l.type==="mouseenter"&&e>0?H.set(m+"_openSlider",h,e):h())}},Xa=function(e){function h(){q.isClosed?Fa(m,!1):q.isMoving||sa(m)}if(ea()){var l=L(e),m=R.call(this,e);e=D[m];var q=C[m],t=q.isMoving?1E3:300;m!=="center"&&(q.isClosed||q.isResizing||(e.slideTrigger_close==="click"?h():e.preventQuickSlideClose&&q.isMoving||e.preventPrematureSlideClose&&l&&b.layout.isMouseOverElem(l,M[m])||(l?H.set(m+"_closeSlider",h,A(e.slideDelay_close,t)):h())))}},Na=function(e,h){var l=M[e],m=C[e],q=D[e],
t=D.zIndexes;h?(Da(e,{animation:!0,objectsOnly:!0}),l.css({zIndex:t.pane_animate}),e=="south"?l.css({top:O.inset.top+O.innerHeight-l.outerHeight()}):e=="east"&&l.css({left:O.inset.left+O.innerWidth-l.outerWidth()})):(Ga(),l.css({zIndex:m.isSliding?t.pane_sliding:t.pane_normal}),e=="south"?l.css({top:"auto"}):e!="east"||l.css("left").match(/\-99999/)||l.css({left:"auto"}),k.msie&&q.fxOpacityFix&&q.fxName_open!="slide"&&l.css("filter")&&l.css("opacity")==1&&l[0].style.removeAttribute("filter"))},wa=
function(e,h){var l=D[e];M[e];e=aa[e];var m=l.slideTrigger_open.toLowerCase();if(e&&(!h||l.slidable)){m.match(/mouseover/)?m=l.slideTrigger_open="mouseenter":m.match(/(click|dblclick|mouseenter)/)||(m=l.slideTrigger_open="click");if(l.resizerDblClickToggle&&m.match(/click/))e[h?"unbind":"bind"]("dblclick."+ha,ya);e[h?"bind":"unbind"](m+"."+ha,mb).css("cursor",h?l.sliderCursor:"default").attr("title",h?l.tips.Slide:"")}},Fa=function(e,h){function l(J){H.clear(e+"_closeSlider");J.stopPropagation()}
var m=D[e],q=C[e];n[e];var t=D.zIndexes,v=m.slideTrigger_close.toLowerCase(),B=h?"bind":"unbind",u=M[e],z=aa[e];H.clear(e+"_closeSlider");h?(q.isSliding=!0,C.panesSliding[e]=!0,wa(e,!1)):(q.isSliding=!1,delete C.panesSliding[e]);u.css("zIndex",h?t.pane_sliding:t.pane_normal);z.css("zIndex",h?t.pane_sliding+2:t.resizer_normal);v.match(/(click|mouseleave)/)||(v=m.slideTrigger_close="mouseleave");z[B](v,Xa);v==="mouseleave"&&(u[B]("mouseleave."+ha,Xa),z[B]("mouseenter."+ha,l),u[B]("mouseenter."+ha,l));
h?v!=="click"||m.resizable||(z.css("cursor",h?m.sliderCursor:"default"),z.attr("title",h?m.tips.Close:"")):H.clear(e+"_closeSlider")},qa=function(e,h,l,m){h=D[e];var q=C[e],t=n[e],v=M[e],B=aa[e],u=t.dir==="vert",z;if(e==="center"||u&&q.noVerticalRoom)(z=q.maxHeight>=0)&&q.noRoom?(lb(e),B&&B.show(),q.isVisible=!0,q.noRoom=!1,u&&(q.noVerticalRoom=!1),S(e)):z||q.noRoom||(La(e),B&&B.hide(),q.isVisible=!1,q.noRoom=!0);e!=="center"&&(q.minSize<=q.maxSize?(q.size>q.maxSize?va(e,q.maxSize,l,!0,m):q.size<
q.minSize?va(e,q.minSize,l,!0,m):B&&q.isVisible&&v.is(":visible")&&(l=q.size+O.inset[t.side],b.layout.cssNum(B,t.side)!=l&&B.css(t.side,l)),q.noRoom&&(q.wasOpen&&h.closable?h.autoReopen?Ca(e,!1,!0,!0):q.noRoom=!1:Ma(e,q.wasOpen,!0,!0))):q.noRoom||(q.noRoom=!0,q.wasOpen=!q.isClosed&&!q.isSliding,q.isClosed||(h.closable?sa(e,!0,!0):Ta(e,!0))))},Ka=function(e,h,l,m,q){if(ea()){e=R.call(this,e);var t=D[e],v=C[e];q=q||t.livePaneResizing&&!v.isResizing;e!=="center"&&(v.autoResize=!1,va(e,h,l,m,q))}},va=
function(e,h,l,m,q){function t(){var da=N==="width"?z.outerWidth():z.outerHeight();da=[{pane:v,count:1,target:h,actual:da,correct:h===da,attempt:h,cssSize:ta}];for(var ia=da[0],ma,ua="Inaccurate size after resizing the "+v+"-pane.";!ia.correct;){ma={pane:v,count:ia.count+1,target:h};ma.attempt=ia.actual>h?A(0,ia.attempt-(ia.actual-h)):A(0,ia.attempt+(h-ia.actual));ma.cssSize=(n[v].dir=="horz"?y:x)(M[v],ma.attempt);z.css(N,ma.cssSize);ma.actual=N=="width"?z.outerWidth():z.outerHeight();ma.correct=
h===ma.actual;da.length===1&&(I(ua,!1,!0),I(ia,!1,!0));I(ma,!1,!0);if(da.length>3)break;da.push(ma);ia=da[da.length-1]}u.size=h;b.extend(u,F(z));u.isVisible&&z.is(":visible")&&(J&&J.css(P,h+O.inset[P]),Aa(v));!l&&!U&&C.initialized&&u.isVisible&&G("onresize_end",v);l||(u.isSliding||ra(n[v].dir=="horz"?"":"center",U,q),Ba());ia=n.oppositeEdge[v];h<ka&&C[ia].noRoom&&(W(ia),qa(ia,!1,l));da.length>1&&I(ua+"\nSee the Error Console for details.",!0,!0)}if(ea()){var v=R.call(this,e),B=D[v],u=C[v],z=M[v],
J=aa[v],P=n[v].side,N=n[v].sizeType.toLowerCase(),U=u.isResizing&&!B.triggerEventsDuringLiveResize,ba=m!==!0&&B.animatePaneSizing,ka,ta;v!=="center"&&Q.queue(function(da){W(v);ka=u.size;h=X(v,h);h=A(h,X(v,B.minSize));h=w(h,u.maxSize);if(h<u.minSize)da(),qa(v,!1,l);else{if(!q&&h===ka)return da();u.newSize=h;!l&&C.initialized&&u.isVisible&&G("onresize_start",v);ta=(n[v].dir=="horz"?y:x)(M[v],h);if(ba&&z.is(":visible")){var ia=b.layout.effects.size[v]||b.layout.effects.size.all;ia=B.fxSettings_size.easing||
ia.easing;var ma=D.zIndexes,ua={};ua[N]=ta+"px";u.isMoving=!0;z.css({zIndex:ma.pane_animate}).show().animate(ua,B.fxSpeed_size,ia,function(){z.css({zIndex:u.isSliding?ma.pane_sliding:ma.pane_normal});u.isMoving=!1;delete u.newSize;t();da()})}else z.css(N,ta),delete u.newSize,z.is(":visible")?t():u.size=h,da()}})}},ra=function(e,h,l){e=(e?e:"east,west,center").split(",");b.each(e,function(m,q){if(M[q]){var t=D[q];m=C[q];var v=M[q];aa[q];var B={},u=b.layout.showInvisibly(v),z={top:T("north",!0),bottom:T("south",
!0),left:T("west",!0),right:T("east",!0),width:0,height:0};z.width=O.innerWidth-z.left-z.right;z.height=O.innerHeight-z.bottom-z.top;z.top+=O.inset.top;z.bottom+=O.inset.bottom;z.left+=O.inset.left;z.right+=O.inset.right;b.extend(m,F(v));if(q==="center"){if(!l&&m.isVisible&&z.width===m.outerWidth&&z.height===m.outerHeight)return v.css(u),!0;b.extend(m,V(q),{maxWidth:z.width,maxHeight:z.height});B=z;m.newWidth=B.width;m.newHeight=B.height;B.width=x(v,B.width);B.height=y(v,B.height);var J=B.width>=
0&&B.height>=0;if(!C.initialized&&t.minWidth>z.width){t=t.minWidth-m.outerWidth;z=D.east.minSize||0;var P=D.west.minSize||0,N=C.east.size,U=C.west.size,ba=N,ka=U;t>0&&C.east.isVisible&&N>z&&(ba=A(N-z,N-t),t-=N-ba);t>0&&C.west.isVisible&&U>P&&(ka=A(U-P,U-t),t-=U-ka);if(t===0){N&&N!=z&&va("east",ba,!0,!0,l);U&&U!=P&&va("west",ka,!0,!0,l);ra("center",h,l);v.css(u);return}}}else{m.isVisible&&!m.noVerticalRoom&&b.extend(m,F(v),V(q));if(!l&&!m.noVerticalRoom&&z.height===m.outerHeight)return v.css(u),!0;
B.top=z.top;B.bottom=z.bottom;m.newSize=z.height;B.height=y(v,z.height);m.maxHeight=B.height;J=m.maxHeight>=0;J||(m.noVerticalRoom=!0)}J?(!h&&C.initialized&&G("onresize_start",q),v.css(B),q!=="center"&&Ba(q),!m.noRoom||m.isClosed||m.isHidden||qa(q),m.isVisible&&(b.extend(m,F(v)),C.initialized&&Aa(q))):!m.noRoom&&m.isVisible&&qa(q);v.css(u);delete m.newSize;delete m.newWidth;delete m.newHeight;if(!m.isVisible)return!0;q==="center"&&(m=k.isIE6||!k.boxModel,M.north&&(m||C.north.tagName=="IFRAME")&&M.north.css("width",
x(M.north,O.innerWidth)),M.south&&(m||C.south.tagName=="IFRAME")&&M.south.css("width",x(M.south,O.innerWidth)));!h&&C.initialized&&G("onresize_end",q)}})},za=function(e){var h=O.innerWidth,l=O.innerHeight;R(e);if(Q.is(":visible"))if(C.initialized){if(e===!0&&b.isPlainObject(D.outset)&&Q.css(D.outset),b.extend(O,F(Q,D.inset)),O.outerHeight){e===!0&&hb();if(!1===G("onresizeall_start"))return!1;O.innerHeight<l;O.innerWidth<h;var m,q,t;b.each(["south","north","east","west"],function(v,B){M[B]&&(q=D[B],
t=C[B],t.autoResize&&t.size!=q.size?va(B,q.size,!0,!0,!0):(W(B),qa(B,!1,!0,!0)))});ra("",!0,!0);Ba();b.each(n.allPanes,function(v,B){(m=M[B])&&C[B].isVisible&&G("onresize_end",B)});G("onresizeall_end")}}else Ha()},Ya=function(e,h){e=R.call(this,e);D[e].resizeChildren&&(e=E[e],b.isPlainObject(e)&&b.each(e,function(l,m){m.destroyed||m.resizeAll()}))},Aa=function(e,h){ea()&&(e=(e=R.call(this,e))?e.split(","):n.allPanes,b.each(e,function(l,m){function q(J){return A(u.css.paddingBottom,parseInt(J.css("marginBottom"),
10)||0)}function t(){var J=D[m].contentIgnoreSelector;J=v.nextAll().not(".ui-layout-mask").not(J||":lt(0)");var P=J.filter(":visible"),N=P.filter(":last");z={top:v[0].offsetTop,height:v.outerHeight(),numFooters:J.length,hiddenFooters:J.length-P.length,spaceBelow:0};z.spaceAbove=z.top;z.bottom=z.top+z.height;z.spaceBelow=N.length?N[0].offsetTop+N.outerHeight()-z.bottom+q(N):q(v)}l=M[m];var v=oa[m],B=D[m],u=C[m],z=u.content;if(!l||!v||!l.is(":visible"))return!0;if(!v.length&&(Sa(m,!1),!v))return;if(!1!==
G("onsizecontent_start",m)){if(!u.isMoving&&!u.isResizing||B.liveContentResizing||h||z.top==void 0)t(),z.hiddenFooters>0&&l.css("overflow")==="hidden"&&(l.css("overflow","visible"),t(),l.css("overflow","hidden"));l=u.innerHeight-(z.spaceAbove-u.css.paddingTop)-(z.spaceBelow-u.css.paddingBottom);v.is(":visible")&&z.height==l||(Z(v,l),z.height=l);C.initialized&&G("onsizecontent_end",m)}}))},Ba=function(e){e=(e=R.call(this,e))?e.split(","):n.borderPanes;b.each(e,function(h,l){h=D[l];var m=C[l],q=M[l],
t=aa[l],v=la[l],B;if(q&&t){l=n[l].dir;var u=m.isClosed?"_closed":"_open",z=h["spacing"+u],J=h["togglerAlign"+u];u=h["togglerLength"+u];if(z===0)t.hide();else{m.noRoom||m.isHidden||t.show();if(l==="horz"){var P=O.innerWidth;m.resizerLength=P;q=b.layout.cssNum(q,"left");t.css({width:x(t,P),height:y(t,z),left:q>-9999?q:O.inset.left})}else P=q.outerHeight(),m.resizerLength=P,t.css({height:y(t,P),width:x(t,z),top:O.inset.top+T("north",!0)});ja(h,t);if(v){if(u===0||m.isSliding&&h.hideTogglerOnSlide){v.hide();
return}v.show();if(!(u>0)||u==="100%"||u>P)u=P,J=0;else if(r(J))switch(J){case "top":case "left":J=0;break;case "bottom":case "right":J=P-u;break;default:J=g((P-u)/2)}else q=parseInt(J,10),J=J>=0?q:P-u+q;if(l==="horz"){var N=x(v,u);v.css({width:N,height:y(v,z),left:J,top:0});v.children(".content").each(function(){B=b(this);B.css("marginLeft",g((N-B.outerWidth())/2))})}else{var U=y(v,u);v.css({height:U,width:x(v,z),top:J,left:0});v.children(".content").each(function(){B=b(this);B.css("marginTop",g((U-
B.outerHeight())/2))})}ja(0,v)}C.initialized||!h.initHidden&&!m.isHidden||(t.hide(),v&&v.hide())}}})},ib=function(e){if(ea()){var h=R.call(this,e);e=la[h];var l=D[h];e&&(l.closable=!0,e.bind("click."+ha,function(m){m.stopPropagation();ya(h)}).css("visibility","visible").css("cursor","pointer").attr("title",C[h].isClosed?l.tips.Open:l.tips.Close).show())}},Wa=function(e,h){b.layout.plugins.buttons&&b.each(C[e].pins,function(l,m){b.layout.buttons.setPinState(Y,b(m),e,h)})},Q=b(this).eq(0);if(!Q.length)return I(D.errors.containerMissing);
if(Q.data("layoutContainer")&&Q.data("layout"))return Q.data("layout");var M={},oa={},aa={},la={},pa=b([]),O=C.container,ha=C.id,Y={options:D,state:C,container:Q,panes:M,contents:oa,resizers:aa,togglers:la,hide:Ta,show:Ma,toggle:ya,open:Ca,close:sa,slideOpen:mb,slideClose:Xa,slideToggle:function(e){e=R.call(this,e);ya(e,!0)},setSizeLimits:W,_sizePane:va,sizePane:Ka,sizeContent:Aa,swapPanes:function(e,h){function l(B){var u=M[B],z=oa[B];return u?{pane:B,P:u?u[0]:!1,C:z?z[0]:!1,state:b.extend(!0,{},
C[B]),options:b.extend(!0,{},D[B])}:!1}function m(B,u){if(B){var z=B.P,J=B.C,P=B.pane,N=n[u],U=b.extend(!0,{},C[u]),ba=D[u],ka={resizerCursor:ba.resizerCursor};b.each(["fxName","fxSpeed","fxSettings"],function(ta,da){ka[da+"_open"]=ba[da+"_open"];ka[da+"_close"]=ba[da+"_close"];ka[da+"_size"]=ba[da+"_size"]});M[u]=b(z).data({layoutPane:Y[u],layoutEdge:u}).css(n.hidden).css(N.cssReq);oa[u]=J?b(J):!1;D[u]=b.extend(!0,{},B.options,ka);C[u]=b.extend(!0,{},B.state);z.className=z.className.replace(new RegExp(ba.paneClass+
"-"+P,"g"),ba.paneClass+"-"+u);Qa(u);N.dir!=n[P].dir?(z=v[u]||0,W(u),z=A(z,C[u].minSize),Ka(u,z,!0,!0)):aa[u].css(N.side,O.inset[N.side]+(C[u].isVisible?T(u):0));B.state.isVisible&&!U.isVisible?Ua(u,!0):(Ia(u),wa(u,!0));B=null}}if(ea())if(e=R.call(this,e),C[e].edge=h,C[h].edge=e,!1===G("onswap_start",e)||!1===G("onswap_start",h))C[e].edge=e,C[h].edge=h;else{var q=l(e),t=l(h),v={};v[e]=q?q.state.size:0;v[h]=t?t.state.size:0;M[e]=!1;M[h]=!1;C[e]={};C[h]={};la[e]&&la[e].remove();la[h]&&la[h].remove();
aa[e]&&aa[e].remove();aa[h]&&aa[h].remove();aa[e]=aa[h]=la[e]=la[h]=!1;m(q,h);m(t,e);q=t=v=null;M[e]&&M[e].css(n.visible);M[h]&&M[h].css(n.visible);za();G("onswap_end",e);G("onswap_end",h)}},showMasks:Da,hideMasks:Ga,initContent:Sa,addPane:fb,removePane:Ra,createChildren:Pa,refreshChildren:Oa,enableClosable:ib,disableClosable:function(e,h){if(ea()){e=R.call(this,e);var l=la[e];l&&(D[e].closable=!1,C[e].isClosed&&Ca(e,!1,!0),l.unbind("."+ha).css("visibility",h?"hidden":"visible").css("cursor","default").attr("title",
""))}},enableSlidable:function(e){if(ea()){e=R.call(this,e);var h=aa[e];h&&h.data("draggable")&&(D[e].slidable=!0,C[e].isClosed&&wa(e,!0))}},disableSlidable:function(e){if(ea()){e=R.call(this,e);var h=aa[e];h&&(D[e].slidable=!1,C[e].isSliding?sa(e,!1,!0):(wa(e,!1),h.css("cursor","default").attr("title",""),ja(null,h[0])))}},enableResizable:function(e){if(ea()){e=R.call(this,e);var h=aa[e],l=D[e];h&&h.data("draggable")&&(l.resizable=!0,h.draggable("enable"),C[e].isClosed||h.css("cursor",l.resizerCursor).attr("title",
l.tips.Resize))}},disableResizable:function(e){if(ea()){e=R.call(this,e);var h=aa[e];h&&h.data("draggable")&&(D[e].resizable=!1,h.draggable("disable").css("cursor","default").attr("title",""),ja(null,h[0]))}},allowOverflow:d,resetOverflow:f,destroy:function(e,h){b(window).unbind("."+ha);b(document).unbind("."+ha);typeof e==="object"?R(e):h=e;Q.clearQueue().removeData("layout").removeData("layoutContainer").removeClass(D.containerClass).unbind("."+ha);pa.remove();b.each(n.allPanes,function(m,q){Ra(q,
!1,!0,h)});Q.data("layoutCSS")&&!Q.data("layoutRole")&&Q.css(Q.data("layoutCSS")).removeData("layoutCSS");O.tagName==="BODY"&&(Q=b("html")).data("layoutCSS")&&Q.css(Q.data("layoutCSS")).removeData("layoutCSS");p(Y,b.layout.onDestroy);db();for(var l in Y)l.match(/^(container|options)$/)||delete Y[l];Y.destroyed=!0;return Y},initPanes:ea,resizeAll:za,runCallbacks:G,hasParentLayout:!1,children:E,north:!1,south:!1,west:!1,east:!1,center:!1};return function(){pb();var e=D,h=C;h.creatingLayout=!0;p(Y,b.layout.onCreate);
if(!1===G("onload_start"))return"cancel";var l=Q[0],m=b("html"),q=O.tagName=l.tagName,t=O.id=l.id,v=O.className=l.className;l=D;var B=l.name,u={},z=Q.data("parentLayout"),J=Q.data("layoutEdge"),P=z&&J,N=b.layout.cssNum;O.selector=Q.selector.split(".slice")[0];O.ref=(l.name?l.name+" layout / ":"")+q+(t?"#"+t:v?".["+v+"]":"");O.isBody=q==="BODY";P||O.isBody||(q=Q.closest("."+b.layout.defaults.panes.paneClass),z=q.data("parentLayout"),J=q.data("layoutEdge"),P=z&&J);Q.data({layout:Y,layoutContainer:ha}).addClass(l.containerClass);
q={destroy:"",initPanes:"",resizeAll:"resizeAll",resize:"resizeAll"};for(B in q)Q.bind("layout"+B.toLowerCase()+"."+ha,Y[q[B]||B]);P&&(Y.hasParentLayout=!0,z.refreshChildren(J,Y));Q.data("layoutCSS")||(O.isBody?(Q.data("layoutCSS",b.extend(K(Q,"position,margin,padding,border"),{height:Q.css("height"),overflow:Q.css("overflow"),overflowX:Q.css("overflowX"),overflowY:Q.css("overflowY")})),m.data("layoutCSS",b.extend(K(m,"padding"),{height:"auto",overflow:m.css("overflow"),overflowX:m.css("overflowX"),
overflowY:m.css("overflowY")}))):Q.data("layoutCSS",K(Q,"position,margin,padding,border,top,bottom,left,right,width,height,overflow,overflowX,overflowY")));try{u={overflow:"hidden",overflowX:"hidden",overflowY:"hidden"};Q.css(u);if(l.inset&&!b.isPlainObject(l.inset)){var U=parseInt(l.inset,10)||0;l.inset={top:U,bottom:U,left:U,right:U}}if(O.isBody)l.outset?b.isPlainObject(l.outset)||(U=parseInt(l.outset,10)||0,l.outset={top:U,bottom:U,left:U,right:U}):l.outset={top:N(m,"paddingTop"),bottom:N(m,"paddingBottom"),
left:N(m,"paddingLeft"),right:N(m,"paddingRight")},m.css(u).css({height:"100%",border:"none",padding:0,margin:0}),k.isIE6?(Q.css({width:"100%",height:"100%",border:"none",padding:0,margin:0,position:"relative"}),l.inset||(l.inset=F(Q).inset)):(Q.css({width:"auto",height:"auto",margin:0,position:"absolute"}),Q.css(l.outset)),b.extend(O,F(Q,l.inset));else{var ba=Q.css("position");ba&&ba.match(/(fixed|absolute|relative)/)||Q.css("position","relative");Q.is(":visible")&&(b.extend(O,F(Q,l.inset)),O.innerHeight<
1&&I(l.errors.noContainerHeight.replace(/CONTAINER/,O.ref)))}N(Q,"minWidth")&&Q.parent().css("overflowX","auto");N(Q,"minHeight")&&Q.parent().css("overflowY","auto")}catch(ka){}eb();b(window).bind("unload."+ha,db);p(Y,b.layout.onLoad);e.initPanes&&Ha();delete h.creatingLayout;return C.initialized}()==="cancel"?null:Y}})(jQuery);
(function(b){b.layout&&(b.ui||(b.ui={}),b.ui.cookie={acceptsCookies:!!navigator.cookieEnabled,read:function(w){var A=document.cookie;A=A?A.split(";"):[];var g,r;for(r=0;g=A[r];r++)if(g=b.trim(g).split("="),g[0]==w)return decodeURIComponent(g[1]);return null},write:function(w,A,g){var r="",p="",a=!1;g=g||{};var c=g.expires||null,d=b.type(c);d==="date"?p=c:d==="string"&&c>0&&(c=parseInt(c,10),d="number");d==="number"&&(p=new Date,c>0?p.setDate(p.getDate()+c):(p.setFullYear(1970),a=!0));p&&(r+=";expires="+
p.toUTCString());g.path&&(r+=";path="+g.path);g.domain&&(r+=";domain="+g.domain);g.secure&&(r+=";secure");document.cookie=w+"="+(a?"":encodeURIComponent(A))+r},clear:function(w){b.ui.cookie.write(w,"",{expires:-1})}},b.cookie||(b.cookie=function(w,A,g){var r=b.ui.cookie;if(A===null)r.clear(w);else{if(A===void 0)return r.read(w);r.write(w,A,g)}}),b.layout.plugins.stateManagement=!0,b.layout.defaults.stateManagement={enabled:!1,autoSave:!0,autoLoad:!0,animateLoad:!0,includeChildren:!0,stateKeys:"north.size,south.size,east.size,west.size,north.isClosed,south.isClosed,east.isClosed,west.isClosed,north.isHidden,south.isHidden,east.isHidden,west.isHidden",
cookie:{name:"",domain:"",path:"",expires:"",secure:!1}},b.layout.optionsMap.layout.push("stateManagement"),b.layout.config.optionRootKeys.push("stateManagement"),b.layout.state={saveCookie:function(w,A,g){var r=w.options,p=r.stateManagement;g=b.extend(!0,{},p.cookie,g||null);w=w.state.stateData=w.readState(A||p.stateKeys);b.ui.cookie.write(g.name||r.name||"Layout",b.layout.state.encodeJSON(w),g);return b.extend(!0,{},w)},deleteCookie:function(w){w=w.options;b.ui.cookie.clear(w.stateManagement.cookie.name||
w.name||"Layout")},readCookie:function(w){w=w.options;return(w=b.ui.cookie.read(w.stateManagement.cookie.name||w.name||"Layout"))?b.layout.state.decodeJSON(w):{}},loadCookie:function(w){var A=b.layout.state.readCookie(w);A&&!b.isEmptyObject(A)&&(w.state.stateData=b.extend(!0,{},A),w.loadState(A));return A},loadState:function(w,A,g){if(b.isPlainObject(A)&&!b.isEmptyObject(A))if(A=w.state.stateData=b.layout.transformData(A),g=b.extend({animateLoad:!1,includeChildren:w.options.stateManagement.includeChildren},
g),w.state.initialized){var r=!g.animateLoad,p,a,c,d;b.each(b.layout.config.borderPanes,function(x,y){n=A[y];if(b.isPlainObject(n)){x=n.size;p=n.initClosed;a=n.initHidden;var F=n.autoResize;c=w.state[y];d=c.isVisible;F&&(c.autoResize=F);d||w._sizePane(y,x,!1,!1,!1);a===!0?w.hide(y,r):p===!0?w.close(y,!1,r):p===!1?w.open(y,!1,r):a===!1&&w.show(y,!1,r);d&&w._sizePane(y,x,!1,!1,r)}});if(g.includeChildren){var f,k;b.each(w.children,function(x,y){(f=A[x]?A[x].children:0)&&y&&b.each(y,function(F,K){k=f[F];
K&&k&&K.loadState(k)})})}}else{var n=b.extend(!0,{},A);b.each(b.layout.config.allPanes,function(x,y){n[y]&&delete n[y].children});b.extend(!0,w.options,n)}},readState:function(w,A){b.type(A)==="string"&&(A={keys:A});A||(A={});var g=w.options.stateManagement,r=A.includeChildren;r=r!==void 0?r:g.includeChildren;A=A.stateKeys||g.stateKeys;g={isClosed:"initClosed",isHidden:"initHidden"};var p=w.state,a=b.layout.config.allPanes,c={},d,f,k;b.isArray(A)&&(A=A.join(","));A=A.replace(/__/g,".").split(",");
for(var n=0,x=A.length;n<x;n++){var y=A[n].split(".");var F=y[0];y=y[1];if(!(b.inArray(F,a)<0)){var K=p[F][y];K!=void 0&&(y=="isClosed"&&p[F].isSliding&&(K=!0),(c[F]||(c[F]={}))[g[y]?g[y]:y]=K)}}r&&b.each(a,function(L,R){f=w.children[R];d=p.stateData[R];b.isPlainObject(f)&&!b.isEmptyObject(f)&&(k=c[R]||(c[R]={}),k.children||(k.children={}),b.each(f,function(D,C){C.state.initialized?k.children[D]=b.layout.state.readState(C):d&&d.children&&d.children[D]&&(k.children[D]=b.extend(!0,{},d.children[D]))}))});
return c},encodeJSON:function(w){return JSON.stringify(w)},decodeJSON:function(w){try{return JSON.parse(w)}catch(A){return{}}},_create:function(w){var A=b.layout.state,g=w.options.stateManagement;b.extend(w,{readCookie:function(){return A.readCookie(w)},deleteCookie:function(){A.deleteCookie(w)},saveCookie:function(p,a){return A.saveCookie(w,p,a)},loadCookie:function(){return A.loadCookie(w)},loadState:function(p,a){A.loadState(w,p,a)},readState:function(p){return A.readState(w,p)},encodeJSON:A.encodeJSON,
decodeJSON:A.decodeJSON});w.state.stateData={};if(g.autoLoad)if(b.isPlainObject(g.autoLoad))b.isEmptyObject(g.autoLoad)||w.loadState(g.autoLoad);else if(g.enabled)if(b.isFunction(g.autoLoad)){var r={};try{r=g.autoLoad(w,w.state,w.options,w.options.name||"")}catch(p){}r&&b.isPlainObject(r)&&!b.isEmptyObject(r)&&w.loadState(r)}else w.loadCookie()},_unload:function(w){var A=w.options.stateManagement;if(A.enabled&&A.autoSave)if(b.isFunction(A.autoSave))try{A.autoSave(w,w.state,w.options,w.options.name||
"")}catch(g){}else w.saveCookie()}},b.layout.onCreate.push(b.layout.state._create),b.layout.onUnload.push(b.layout.state._unload))})(jQuery);
(function(b){b.layout&&(b.layout.plugins.buttons=!0,b.layout.defaults.autoBindCustomButtons=!1,b.layout.optionsMap.layout.push("autoBindCustomButtons"),b.layout.buttons={config:{borderPanes:"north,south,west,east"},init:function(w){var A=w.options.name||"",g;b.each("toggle open close pin toggle-slide open-slide".split(" "),function(r,p){b.each(b.layout.buttons.config.borderPanes.split(","),function(a,c){b(".ui-layout-button-"+p+"-"+c).each(function(){g=b(this).data("layoutName")||b(this).attr("layoutName");
g!=void 0&&g!==A||w.bindButton(this,p,c)})})})},get:function(w,A,g,r){A=b(A);w=w.options;A.length&&b.layout.buttons.config.borderPanes.indexOf(g)>=0&&(r=w[g].buttonClass+"-"+r,A.addClass(r+" "+r+"-"+g).data("layoutName",w.name));return A},bind:function(w,A,g,r){var p=b.layout.buttons;switch(g.toLowerCase()){case "toggle":p.addToggle(w,A,r);break;case "open":p.addOpen(w,A,r);break;case "close":p.addClose(w,A,r);break;case "pin":p.addPin(w,A,r);break;case "toggle-slide":p.addToggle(w,A,r,!0);break;
case "open-slide":p.addOpen(w,A,r,!0)}return w},addToggle:function(w,A,g,r){b.layout.buttons.get(w,A,g,"toggle").click(function(p){w.toggle(g,!!r);p.stopPropagation()});return w},addOpen:function(w,A,g,r){b.layout.buttons.get(w,A,g,"open").attr("title",w.options[g].tips.Open).click(function(p){w.open(g,!!r);p.stopPropagation()});return w},addClose:function(w,A,g){b.layout.buttons.get(w,A,g,"close").attr("title",w.options[g].tips.Close).click(function(r){w.close(g);r.stopPropagation()});return w},
addPin:function(w,A,g){var r=b.layout.buttons.get(w,A,g,"pin");if(r.length){var p=w.state[g];r.click(function(a){b.layout.buttons.setPinState(w,b(this),g,p.isSliding||p.isClosed);p.isSliding||p.isClosed?w.open(g):w.close(g);a.stopPropagation()});b.layout.buttons.setPinState(w,r,g,!p.isClosed&&!p.isSliding);p.pins.push(A)}return w},setPinState:function(w,A,g,r){var p=A.attr("pin");if(!p||r!==(p=="down")){p=w.options[g];w=p.tips;p=p.buttonClass+"-pin";var a=p+"-"+g;g=p+"-up "+a+"-up";p=p+"-down "+a+
"-down";A.attr("pin",r?"down":"up").attr("title",r?w.Unpin:w.Pin).removeClass(r?g:p).addClass(r?p:g)}},syncPinBtns:function(w,A,g){b.each(w.state[A].pins,function(r,p){b.layout.buttons.setPinState(w,b(p),A,g)})},_load:function(w){b.extend(w,{bindButton:function(g,r,p){return b.layout.buttons.bind(w,g,r,p)},addToggleBtn:function(g,r,p){return b.layout.buttons.addToggle(w,g,r,p)},addOpenBtn:function(g,r,p){return b.layout.buttons.addOpen(w,g,r,p)},addCloseBtn:function(g,r){return b.layout.buttons.addClose(w,
g,r)},addPinBtn:function(g,r){return b.layout.buttons.addPin(w,g,r)}});for(var A=0;A<4;A++)w.state[b.layout.buttons.config.borderPanes[A]].pins=[];w.options.autoBindCustomButtons&&b.layout.buttons.init(w)},_unload:function(w){}},b.layout.onLoad.push(b.layout.buttons._load))})(jQuery);
(function(b){b.layout.plugins.browserZoom=!0;b.layout.defaults.browserZoomCheckInterval=1E3;b.layout.optionsMap.layout.push("browserZoomCheckInterval");b.layout.browserZoom={_init:function(w){b.layout.browserZoom.ratio()!==!1&&b.layout.browserZoom._setTimer(w)},_setTimer:function(w){if(!w.destroyed){var A=w.options,g=w.state;setTimeout(function(){if(!w.destroyed&&A.resizeWithWindow){var r=b.layout.browserZoom.ratio();r!==g.browserZoom&&(g.browserZoom=r,w.resizeAll());b.layout.browserZoom._setTimer(w)}},
w.hasParentLayout?5E3:Math.max(A.browserZoomCheckInterval,100))}},ratio:function(){function w(n,x){return(parseInt(n,10)/parseInt(x,10)*100).toFixed()}var A=window,g=screen,r=document,p=r.documentElement||r.body,a=b.layout.browser,c=a.version,d,f,k;return!a.msie||c>8?!1:g.deviceXDPI&&g.systemXDPI?w(g.deviceXDPI,g.systemXDPI):a.webkit&&(d=r.body.getBoundingClientRect)?w(d.left-d.right,r.body.offsetWidth):a.webkit&&(f=A.outerWidth)?w(f,A.innerWidth):(f=g.width)&&(k=p.clientWidth)?w(f,k):!1}};b.layout.onReady.push(b.layout.browserZoom._init)})(jQuery);
(function(b){b.effects&&(b.layout.defaults.panes.useOffscreenClose=!1,b.layout.plugins&&(b.layout.plugins.effects.slideOffscreen=!0),b.layout.effects.slideOffscreen=b.extend(!0,{},b.layout.effects.slide),b.effects.slideOffscreen=function(w){return this.queue(function(){var A=b.effects,g=w.options,r=b(this),p=r.data("layoutEdge"),a=r.data("parentLayout").state;p=a[p].size;var c=this.style,d=A.setMode(r,g.mode||"show")=="show";A=g.direction||"left";var f=A=="up"||A=="down"?"top":"left",k=A=="up"||A==
"left",n=b.layout.config.offscreenCSS||{},x=b.layout.config.offscreenReset,y={};y[f]=(d?k?"+=":"-=":k?"-=":"+=")+p;d?(r.data("offscreenResetTop",{top:c.top,bottom:c.bottom}),k?r.css(f,isNaN(p)?"-"+p:-p):A==="right"?r.css({left:a.container.layoutWidth,right:"auto"}):r.css({top:a.container.layoutHeight,bottom:"auto"}),f==="top"&&r.css(r.data(x)||{})):(r.data("offscreenResetTop",{top:c.top,bottom:c.bottom}),r.data(x,{left:c.left,right:c.right}));r.show().animate(y,{queue:!1,duration:w.duration,easing:g.easing,
complete:function(){r.data("offscreenResetTop")&&r.css(r.data("offscreenResetTop")).removeData("offscreenResetTop");d?r.css(r.data(x)||{}).removeData(x):r.css(n);w.callback&&w.callback.apply(this,arguments);r.dequeue()}})})})})(jQuery);
