m&&m>w(T+Y)&&(V.horizontal="center");H>K&&K>w(X+W)&&(V.vertical="middle");V.important=y(w(T),w(Y))>y(w(X),w(W))?"horizontal":"vertical";q.using.call(this,U,V)});O.offset(b.extend(n,{using:P}))})};b.ui.position={fit:{left:function(m,l){var E,D=l.within,C=D.isWindow?D.scrollLeft:D.offset.left,D=D.width,q=m.left-l.collisionPosition.marginLeft,p=C-q,n=q+l.collisionWidth-D-C;l.collisionWidth>D?0=n?(E=m.left+p+l.collisionWidth-D-C,m.left+=p-E):m.left=0=p?C:p>n?C+D-l.collisionWidth:C:0C?0
=n?(E=m.top+p+l.collisionHeight-C-D,m.top+=p-E):m.top=0=p?D:p>n?D+C-l.collisionHeight:D:0E?(K=M.left+D+C+q+L.collisionWidth-G-I,(0>K||w(E)>K)&&(M.left+=D+C+q)):0w(J))&&(M.left+=D+C+q))},top:function(M,L){var K,J,H=L.within,I=H.offset.top+H.scrollTop,G=H.height,H=H.isWindow?H.scrollTop:H.offset.top,F=M.top-L.collisionPosition.marginTop,E=F-H,F=F+L.collisionHeight-G-H,D="top"===L.my[1]?-L.elemHeight:"bottom"===L.my[1]?L.elemHeight:0,C="top"===L.at[1]?L.targetHeight:"bottom"===L.at[1]?-L.targetHeight:0,q=-2*L.offset[1];0>E?(J=M.top+D+C+q+L.collisionHeight-G-I,(0>J||w(E)>J)&&(M.top+=D+C+q)):0w(K))&&(M.top+=D+C+q))}},flipfit:{left:function(){b.ui.position.flip.left.apply(this,arguments);b.ui.position.fit.left.apply(this,arguments)},top:function(){b.ui.position.flip.top.apply(this,arguments);b.ui.position.fit.top.apply(this,arguments)}}};(function(){var l,k,p,n,m=document.getElementsByTagName("body")[0];p=document.createElement("div");l=document.createElement(m?"div":"body");k={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};m&&b.extend(k,{position:"absolute",left:"-1000px",top:"-1000px"});for(n in k){l.style[n]=k[n]}l.appendChild(p);k=m||document.documentElement;k.insertBefore(l,k.firstChild);p.style.cssText="position: absolute; left: 10.7432222px;";p=b(p).offset().left;x=10p;l.innerHTML="";k.removeChild(l)})()})();b.ui.position;b.widget("ui.draggable",b.ui.mouse,{version:"1.11.4",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(k,d){this._super(k,d);"handle"===k&&(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(k){var d=this.options;return this._blurActiveElement(k),this.helper||d.disabled||0").css("position","absolute").appendTo(k.parent()).outerWidth(k.outerWidth()).outerHeight(k.outerHeight()).offset(k.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(k){var d=this.document[0];if(this.handleElement.is(k.target)){try{d.activeElement&&"body"!==d.activeElement.nodeName.toLowerCase()&&b(d.activeElement).blur()}catch(l){}}},_mouseStart:function(k){var d=this.options;return this.helper=this._createHelper(k),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=0u[2]&&(o=u[2]+this.offset.click.left),w.pageY-this.offset.click.top>u[3]&&(n=u[3]+this.offset.click.top)),q.grid&&(s=q.grid[1]?this.originalPageY+Math.round((n-this.originalPageY)/q.grid[1])*q.grid[1]:this.originalPageY,n=u?s-this.offset.click.top>=u[1]||s-this.offset.click.top>u[3]?s:s-this.offset.click.top>=u[1]?s-q.grid[1]:s+q.grid[1]:s,r=q.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/q.grid[0])*q.grid[0]:this.originalPageX,o=u?r-this.offset.click.left>=u[0]||r-this.offset.click.left>u[2]?r:r-this.offset.click.left>=u[0]?r-q.grid[0]:r+q.grid[0]:r),"y"===q.axis&&(o=this.originalPageX),"x"===q.axis&&(n=this.originalPageY)),{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:p?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:p?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(k,d,l){return l=l||this._uiHash(),b.ui.plugin.call(this,k,[d,l,this],!0),/^(drag|start|stop)/.test(k)&&(this.positionAbs=this._convertPositionTo("absolute"),l.offset=this.positionAbs),b.Widget.prototype._trigger.call(this,k,d,l)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});b.ui.plugin.add("draggable","connectToSortable",{start:function(k,d,m){var l=b.extend({},d,{item:m.element});m.sortables=[];b(m.options.connectToSortable).each(function(){var n=b(this).sortable("instance");n&&!n.options.disabled&&(m.sortables.push(n),n.refreshPositions(),n._trigger("activate",k,l))})},stop:function(k,d,m){var l=b.extend({},d,{item:m.element});m.cancelHelperRemoval=!1;b.each(m.sortables,function(){this.isOver?(this.isOver=0,m.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(k),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",k,l))})},drag:function(k,d,l){b.each(l.sortables,function(){var m=!1,n=this;n.positionAbs=l.positionAbs;n.helperProportions=l.helperProportions;n.offset.click=l.offset.click;n._intersectsWith(n.containerCache)&&(m=!0,b.each(l.sortables,function(){return this.positionAbs=l.positionAbs,this.helperProportions=l.helperProportions,this.offset.click=l.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&b.contains(n.element[0],this.element[0])&&(m=!1),m}));m?(n.isOver||(n.isOver=1,l._parent=d.helper.parent(),n.currentItem=d.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return d.helper[0]},k.target=n.currentItem[0],n._mouseCapture(k,!0),n._mouseStart(k,!0,!0),n.offset.click.top=l.offset.click.top,n.offset.click.left=l.offset.click.left,n.offset.parent.left-=l.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=l.offset.parent.top-n.offset.parent.top,l._trigger("toSortable",k),l.dropped=n.element,b.each(l.sortables,function(){this.refreshPositions()}),l.currentItem=l.element,n.fromOutside=l),n.currentItem&&(n._mouseDrag(k),d.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",k,n._uiHash(n)),n._mouseStop(k,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),d.helper.appendTo(l._parent),l._refreshOffsets(k),d.position=l._generatePosition(k,!0),l._trigger("fromSortable",k),l.dropped=!1,b.each(l.sortables,function(){this.refreshPositions()}))})}});b.ui.plugin.add("draggable","cursor",{start:function(k,d,l){k=b("body");l=l.options;k.css("cursor")&&(l._cursor=k.css("cursor"));k.css("cursor",l.cursor)},stop:function(k,d,l){k=l.options;k._cursor&&b("body").css("cursor",k._cursor)}});b.ui.plugin.add("draggable","opacity",{start:function(k,d,l){k=b(d.helper);l=l.options;k.css("opacity")&&(l._opacity=k.css("opacity"));k.css("opacity",l.opacity)},stop:function(k,d,l){k=l.options;k._opacity&&b(d.helper).css("opacity",k._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(k,d,l){l.scrollParentNotHidden||(l.scrollParentNotHidden=l.helper.scrollParent(!1));l.scrollParentNotHidden[0]!==l.document[0]&&"HTML"!==l.scrollParentNotHidden[0].tagName&&(l.overflowOffset=l.scrollParentNotHidden.offset())},drag:function(k,d,o){d=o.options;var m=!1,n=o.scrollParentNotHidden[0],l=o.document[0];n!==l&&"HTML"!==n.tagName?(d.axis&&"x"===d.axis||(o.overflowOffset.top+n.offsetHeight-k.pageYx||r>F+A||E-A>z||o>C+A||!b.contains(L.snapElements[D].item.ownerDocument,L.snapElements[D].item)?(L.snapElements[D].snapping&&L.options.snap.release&&L.options.snap.release.call(L.element,N,b.extend(L._uiHash(),{snapItem:L.snapElements[D].item})),L.snapElements[D].snapping=!1):("inner"!==d.snapMode&&(J=A>=Math.abs(E-z),K=A>=Math.abs(C-o),I=A>=Math.abs(G-x),H=A>=Math.abs(F-r),J&&(M.position.top=L._convertPositionTo("relative",{top:E-L.helperProportions.height,left:0}).top),K&&(M.position.top=L._convertPositionTo("relative",{top:C,left:0}).top),I&&(M.position.left=L._convertPositionTo("relative",{top:0,left:G-L.helperProportions.width}).left),H&&(M.position.left=L._convertPositionTo("relative",{top:0,left:F}).left)),B=J||K||I||H,"outer"!==d.snapMode&&(J=A>=Math.abs(E-o),K=A>=Math.abs(C-z),I=A>=Math.abs(G-r),H=A>=Math.abs(F-x),J&&(M.position.top=L._convertPositionTo("relative",{top:E,left:0}).top),K&&(M.position.top=L._convertPositionTo("relative",{top:C-L.helperProportions.height,left:0}).top),I&&(M.position.left=L._convertPositionTo("relative",{top:0,left:G}).left),H&&(M.position.left=L._convertPositionTo("relative",{top:0,left:F-L.helperProportions.width}).left)),!L.snapElements[D].snapping&&(J||K||I||H||B)&&L.options.snap.snap&&L.options.snap.snap.call(L.element,N,b.extend(L._uiHash(),{snapItem:L.snapElements[D].item})),L.snapElements[D].snapping=J||K||I||H||B)}}});b.ui.plugin.add("draggable","stack",{start:function(k,d,m){var l;k=b.makeArray(b(m.options.stack)).sort(function(o,n){return(parseInt(b(o).css("zIndex"),10)||0)-(parseInt(b(n).css("zIndex"),10)||0)});k.length&&(l=parseInt(b(k[0]).css("zIndex"),10)||0,b(k).each(function(n){b(this).css("zIndex",l+n)}),this.css("zIndex",l+k.length))}});b.ui.plugin.add("draggable","zIndex",{start:function(k,d,l){k=b(d.helper);l=l.options;k.css("zIndex")&&(l._zIndex=k.css("zIndex"));k.css("zIndex",l.zIndex)},stop:function(k,d,l){k=l.options;k._zIndex&&b(d.helper).css("zIndex",k._zIndex)}});b.ui.draggable;b.widget("ui.resizable",b.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(d){return parseInt(d,10)||0},_isNumber:function(d){return !isNaN(parseInt(d,10))},_hasScroll:function(k,d){if("hidden"===b(k).css("overflow")){return !1}var m=d&&"left"===d?"scrollLeft":"scrollTop",l=!1;return 0