YUI.add("dd-drop-plugin",function(d,n){var o=function(d){d.node=d.host,o.superclass.constructor.apply(this,arguments)};o.NAME="dd-drop-plugin",o.NS="drop",d.extend(o,d.DD.Drop),d.namespace("Plugin"),d.Plugin.Drop=o},"patched-v3.18.6",{requires:["dd-drop"]});
YUI.add("dd-delegate",function(a,e){var t=function(){t.superclass.constructor.apply(this,arguments)},n="container",o="nodes",s=a.Node.create("<div>Temp Node</div>");a.extend(t,a.Base,{_bubbleTargets:a.DD.DDM,dd:null,_shimState:null,_handles:null,_onNodeChange:function(e){this.set("dragNode",e.newVal)},_afterDragEnd:function(){a.DD.DDM._noShim=this._shimState,this.set("lastNode",this.dd.get("node")),this.get("lastNode").removeClass(a.DD.DDM.CSS_PREFIX+"-dragging"),this.dd._unprep(),this.dd.set("node",s)},_delMouseDown:function(e){var t=e.currentTarget,s=this.dd,n=t,i=this.get("dragConfig"),d=s.get("node");t.test(this.get(o))&&!t.test(this.get("invalid"))&&(this._shimState=a.DD.DDM._noShim,a.DD.DDM._noShim=!0,this.set("currentNode",t),d.inDoc()&&s._unprep(),s.set("node",t),i&&i.dragNode?n=i.dragNode:s.proxy&&(n=a.DD.DDM._proxy),s.set("dragNode",n),s._prep(),s.fire("drag:mouseDown",{ev:e}))},_onMouseEnter:function(){this._shimState=a.DD.DDM._noShim,a.DD.DDM._noShim=!0},_onMouseLeave:function(){a.DD.DDM._noShim=this._shimState},initializer:function(){this._handles=[];var e=this.get("dragConfig")||{},t=this.get(n);e.node=s.cloneNode(!0),(e.bubbleTargets=this).get("handles")&&(e.handles=this.get("handles")),this.dd=new a.DD.Drag(e),this.dd.after("drag:end",a.bind(this._afterDragEnd,this)),this.dd.on("dragNodeChange",a.bind(this._onNodeChange,this)),this.dd.after("drag:mouseup",function(){this._unprep()}),this._handles.push(a.delegate(a.DD.Drag.START_EVENT,a.bind(this._delMouseDown,this),t,this.get(o))),this._handles.push(a.on("mouseenter",a.bind(this._onMouseEnter,this),t)),this._handles.push(a.on("mouseleave",a.bind(this._onMouseLeave,this),t)),a.later(50,this,this.syncTargets),a.DD.DDM.regDelegate(this)},syncTargets:function(){var e,t,s;if(a.Plugin.Drop&&!this.get("destroyed"))return this.get("target")&&(e=a.one(this.get(n)).all(this.get(o)),t=this.dd.get("groups"),(s=this.get("dragConfig"))&&s.groups&&(t=s.groups),e.each(function(e){this.createDrop(e,t)},this)),this},createDrop:function(e,t){return e.drop||e.plug(a.Plugin.Drop,{useShim:!1,bubbleTargets:this}),e.drop.set("groups",t),e},destructor:function(){this.dd&&this.dd.destroy(),a.Plugin.Drop&&a.one(this.get(n)).all(this.get(o)).unplug(a.Plugin.Drop),a.Array.each(this._handles,function(e){e.detach()})}},{NAME:"delegate",ATTRS:{container:{value:"body"},nodes:{value:".dd-draggable"},invalid:{value:"input, select, button, a, textarea"},lastNode:{value:s},currentNode:{value:s},dragNode:{value:s},over:{value:!1},target:{value:!1},dragConfig:{value:null},handles:{value:null}}}),a.mix(a.DD.DDM,{_delegates:[],regDelegate:function(e){this._delegates.push(e)},getDelegate:function(t){var s=null;return t=a.one(t),a.Array.each(this._delegates,function(e){t.test(e.get(n))&&(s=e)},this),s}}),a.namespace("DD"),a.DD.Delegate=t},"patched-v3.18.6",{requires:["dd-drag","dd-drop-plugin","event-mouseenter"]});
YUI.add("resize-base",function(o,w){var e=o.Lang,X=e.isArray,t=e.isBoolean,n=e.isNumber,B=e.isString,i=o.Array,G=e.trim,D=i.indexOf,e="{handle}",a="activeHandle",r="activeHandleNode",s="autoHide",d="border",l="handle",u="handles",h="handlesWrapper",f="inner",g="left",c="node",p="offsetHeight",_="offsetWidth",v="parentNode",H="resize",E="resizing",b="static",S="top",z="wrap",A="wrapper",I="resize:mouseUp",m="resize:resize",R="resize:align",L="resize:end",P="resize:start",x=function(){return Array.prototype.slice.call(arguments).join(" ")},T=function(e){return Math.round(parseFloat(e))||0},y=function(e,t){return e.getComputedStyle(t)},Y=function(e){return l+e.toUpperCase()},V=function(e){return e instanceof o.Node},O=o.cached(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}),N=o.cached(function(){var n=[],e=i(arguments,0,!0);return i.each(e,function(e,t){0<t&&(e=O(e)),n.push(e)}),n.join("")}),W=o.ClassNameManager.getClassName,k=W(H),U=W(H,l),C=W(H,l,"active"),$=W(H,l,f),f=W(H,l,f,e),e=W(H,l,e),M=W(H,"hidden",u),j=W(H,u,A),q=W(H,A);function F(){F.superclass.constructor.apply(this,arguments)}o.mix(F,{NAME:H,ATTRS:{activeHandle:{value:null,validator:function(e){return o.Lang.isString(e)||o.Lang.isNull(e)}},activeHandleNode:{value:null,validator:V},autoHide:{value:!1,validator:t},defMinHeight:{value:15,validator:n},defMinWidth:{value:15,validator:n},handles:{setter:"_setHandles",value:"all"},handlesWrapper:{readOnly:!0,setter:o.one,valueFn:"_valueHandlesWrapper"},node:{setter:o.one},resizing:{value:!1,validator:t},wrap:{setter:"_setWrap",value:!1,validator:t},wrapTypes:{readOnly:!0,value:/^canvas|textarea|input|select|button|img|iframe|table|embed$/i},wrapper:{readOnly:!0,valueFn:"_valueWrapper",writeOnce:!0}},RULES:{b:function(e,t,n){var i=e.info,e=e.originalInfo;i.offsetHeight=e.offsetHeight+n},l:function(e,t){var n=e.info,e=e.originalInfo;n.left=e.left+t,n.offsetWidth=e.offsetWidth-t},r:function(e,t){var n=e.info,e=e.originalInfo;n.offsetWidth=e.offsetWidth+t},t:function(e,t,n){var i=e.info,e=e.originalInfo;i.top=e.top+n,i.offsetHeight=e.offsetHeight-n},tr:function(){this.t.apply(this,arguments),this.r.apply(this,arguments)},bl:function(){this.b.apply(this,arguments),this.l.apply(this,arguments)},br:function(){this.b.apply(this,arguments),this.r.apply(this,arguments)},tl:function(){this.t.apply(this,arguments),this.l.apply(this,arguments)}},capitalize:N}),o.Resize=o.extend(F,o.Base,{ALL_HANDLES:["t","tr","r","br","b","bl","l","tl"],REGEX_CHANGE_HEIGHT:/^(t|tr|b|bl|br|tl)$/i,REGEX_CHANGE_LEFT:/^(tl|l|bl)$/i,REGEX_CHANGE_TOP:/^(tl|t|tr)$/i,REGEX_CHANGE_WIDTH:/^(bl|br|l|r|tl|tr)$/i,HANDLES_WRAP_TEMPLATE:'<div class="'+j+'"></div>',WRAP_TEMPLATE:'<div class="'+q+'"></div>',HANDLE_TEMPLATE:'<div class="'+x(U,e)+'"><div class="'+x($,f)+'">&nbsp;</div></div>',totalHSurrounding:0,totalVSurrounding:0,nodeSurrounding:null,wrapperSurrounding:null,changeHeightHandles:!1,changeLeftHandles:!1,changeTopHandles:!1,changeWidthHandles:!1,delegate:null,info:null,lastInfo:null,originalInfo:null,initializer:function(){this._eventHandles=[],this.renderer()},renderUI:function(){this._renderHandles()},bindUI:function(){this._createEvents(),this._bindDD(),this._bindHandle()},syncUI:function(){this.get(c).addClass(k),this._setHideHandlesUI(this.get(s))},destructor:function(){var t=this,e=t.get(c),n=t.get(A),i=n.get(v);o.each(t._eventHandles,function(e){e.detach()}),t._eventHandles.length=0,t.eachHandle(function(e){t.delegate.dd.destroy(),e.remove(!0)}),t.delegate.destroy(),t.get(z)&&(t._copyStyles(n,e),i&&i.insertBefore(e,n),n.remove(!0)),e.removeClass(k),e.removeClass(M)},renderer:function(){this.renderUI(),this.bindUI(),this.syncUI()},eachHandle:function(i){var a=this;o.each(a.get(u),function(e,t){var n=a.get(Y(e));i.apply(a,[n,e,t])})},_bindDD:function(){var e=this;e.delegate=new o.DD.Delegate({bubbleTargets:e,container:e.get(h),dragConfig:{clickPixelThresh:0,clickTimeThresh:0,useShim:!0,move:!1},nodes:"."+U,target:!1}),e._eventHandles.push(e.on("drag:drag",e._handleResizeEvent),e.on("drag:dropmiss",e._handleMouseUpEvent),e.on("drag:end",e._handleResizeEndEvent),e.on("drag:start",e._handleResizeStartEvent))},_bindHandle:function(){var e=this,t=e.get(A);e._eventHandles.push(t.on("mouseenter",o.bind(e._onWrapperMouseEnter,e)),t.on("mouseleave",o.bind(e._onWrapperMouseLeave,e)),t.delegate("mouseenter",o.bind(e._onHandleMouseEnter,e),"."+U),t.delegate("mouseleave",o.bind(e._onHandleMouseLeave,e),"."+U))},_createEvents:function(){var n=this,e=function(e,t){n.publish(e,{defaultFn:t,queuable:!1,emitFacade:!0,bubbles:!0,prefix:H})};e(P,this._defResizeStartFn),e(m,this._defResizeFn),e(R,this._defResizeAlignFn),e(L,this._defResizeEndFn),e(I,this._defMouseUpFn)},_renderHandles:function(){var e=this.get(A),t=this.get(h);this.eachHandle(function(e){t.append(e)}),e.append(t)},_buildHandle:function(e){return o.Node.create(o.Lang.sub(this.HANDLE_TEMPLATE,{handle:e}))},_calcResize:function(){var e=this.handle,t=this.info,n=this.originalInfo,i=t.actXY[0]-n.actXY[0],t=t.actXY[1]-n.actXY[1];e&&o.Resize.RULES[e]&&o.Resize.RULES[e](this,i,t)},_checkSize:function(e,t){var n=this.info,i=this.originalInfo,a=e===p?S:g;n[e]=t,(a==g&&this.changeLeftHandles||a==S&&this.changeTopHandles)&&(n[a]=i[a]+i[e]-t)},_copyStyles:function(e,t){var n=e.getStyle("position").toLowerCase(),i=this._getBoxSurroundingInfo(e),n={position:n=n===b?"relative":n,left:y(e,g),top:y(e,S)};o.mix(n,i.margin),o.mix(n,i.border),t.setStyles(n),e.setStyles({border:0,margin:0}),t.sizeTo(e.get(_)+i.totalHBorder,e.get(p)+i.totalVBorder)},_extractHandleName:o.cached(function(e){e=e.get("className").match(new RegExp(W(H,l,"(\\w{1,2})\\b")));return e?e[1]:null}),_getInfo:function(e,t){var n=[0,0],i=t.dragEvent.target,a=e.getXY(),r=a[0],a=a[1],s=e.get(p),e=e.get(_);return{actXY:n=t?i.actXY.length?i.actXY:i.lastXY:n,bottom:a+s,left:r,offsetHeight:s,offsetWidth:e,right:r+e,top:a}},_getBoxSurroundingInfo:function(r){var s={padding:{},margin:{},border:{}};return V(r
)&&o.each([S,"right","bottom",g],function(e){var t=N("padding",e),n=N("margin",e),i=N(d,e,"width"),a=N(d,e,"color"),e=N(d,e,"style");s.border[a]=y(r,a),s.border[e]=y(r,e),s.border[i]=y(r,i),s.margin[n]=y(r,n),s.padding[t]=y(r,t)}),s.totalHBorder=T(s.border.borderLeftWidth)+T(s.border.borderRightWidth),s.totalHPadding=T(s.padding.paddingLeft)+T(s.padding.paddingRight),s.totalVBorder=T(s.border.borderBottomWidth)+T(s.border.borderTopWidth),s.totalVPadding=T(s.padding.paddingBottom)+T(s.padding.paddingTop),s},_syncUI:function(){var e=this,t=e.info,n=e.wrapperSurrounding,i=e.get(A),a=e.get(c);i.sizeTo(t.offsetWidth,t.offsetHeight),(e.changeLeftHandles||e.changeTopHandles)&&i.setXY([t.left,t.top]),i.compareTo(a)||a.sizeTo(t.offsetWidth-n.totalHBorder,t.offsetHeight-n.totalVBorder),o.UA.webkit&&a.setStyle(H,"none")},_updateChangeHandleInfo:function(e){var t=this;t.changeHeightHandles=t.REGEX_CHANGE_HEIGHT.test(e),t.changeLeftHandles=t.REGEX_CHANGE_LEFT.test(e),t.changeTopHandles=t.REGEX_CHANGE_TOP.test(e),t.changeWidthHandles=t.REGEX_CHANGE_WIDTH.test(e)},_updateInfo:function(e){this.info=this._getInfo(this.get(A),e)},_updateSurroundingInfo:function(){var e=this,t=e.get(c),n=e.get(A),t=e._getBoxSurroundingInfo(t),n=e._getBoxSurroundingInfo(n);e.nodeSurrounding=t,e.wrapperSurrounding=n,e.totalVSurrounding=t.totalVPadding+n.totalVBorder,e.totalHSurrounding=t.totalHPadding+n.totalHBorder},_setActiveHandlesUI:function(e){var t=this.get(r);t&&(e?(this.eachHandle(function(e){e.removeClass(C)}),t.addClass(C)):t.removeClass(C))},_setHandles:function(e){var t=this,n=[];return X(e)?n=e:B(e)&&("all"===e.toLowerCase()?n=t.ALL_HANDLES:o.each(e.split(","),function(e){e=G(e);-1<D(t.ALL_HANDLES,e)&&n.push(e)})),n},_setHideHandlesUI:function(e){var t=this.get(A);this.get(E)||(e?t.addClass(M):t.removeClass(M))},_setWrap:function(e){var t=this.get(c).get("nodeName");return e=this.get("wrapTypes").test(t)?!0:e},_defMouseUpFn:function(){this.set(E,!1)},_defResizeFn:function(e){this._resize(e)},_resize:function(e){this._handleResizeAlignEvent(e.dragEvent),this._syncUI()},_defResizeAlignFn:function(e){this._resizeAlign(e)},_resizeAlign:function(e){var t,n,i=this;i.lastInfo=i.info,i._updateInfo(e),e=i.info,i._calcResize(),i.con||(t=i.get("defMinHeight")+i.totalVSurrounding,n=i.get("defMinWidth")+i.totalHSurrounding,e.offsetHeight<=t&&i._checkSize(p,t),e.offsetWidth<=n&&i._checkSize(_,n))},_defResizeEndFn:function(e){this._resizeEnd(e)},_resizeEnd:function(e){var t=this;e.dragEvent.target.actXY=[],t._syncUI(),t._setActiveHandlesUI(!1),t.set(a,null),t.set(r,null),t.handle=null},_defResizeStartFn:function(e){this._resizeStart(e)},_resizeStart:function(e){var t=this,n=t.get(A);t.handle=t.get(a),t.set(E,!0),t._updateSurroundingInfo(),t.originalInfo=t._getInfo(n,e),t._updateInfo(e)},_handleMouseUpEvent:function(e){this.fire(I,{dragEvent:e,info:this.info})},_handleResizeEvent:function(e){this.fire(m,{dragEvent:e,info:this.info})},_handleResizeAlignEvent:function(e){this.fire(R,{dragEvent:e,info:this.info})},_handleResizeEndEvent:function(e){this.fire(L,{dragEvent:e,info:this.info})},_handleResizeStartEvent:function(e){this.get(a)||this._setHandleFromNode(e.target.get("node")),this.fire(P,{dragEvent:e,info:this.info})},_onWrapperMouseEnter:function(){this.get(s)&&this._setHideHandlesUI(!1)},_onWrapperMouseLeave:function(){this.get(s)&&this._setHideHandlesUI(!0)},_setHandleFromNode:function(e){var t=this,n=t._extractHandleName(e);t.get(E)||(t.set(a,n),t.set(r,e),t._setActiveHandlesUI(!0),t._updateChangeHandleInfo(n))},_onHandleMouseEnter:function(e){this._setHandleFromNode(e.currentTarget)},_onHandleMouseLeave:function(){this.get(E)||this._setActiveHandlesUI(!1)},_valueHandlesWrapper:function(){return o.Node.create(this.HANDLES_WRAP_TEMPLATE)},_valueWrapper:function(){var e=this.get(c),t=e.get(v),n=e;return this.get(z)&&(n=o.Node.create(this.WRAP_TEMPLATE),t&&t.insertBefore(n,e),n.append(e),this._copyStyles(e,n),e.setStyles({position:b,left:0,top:0})),n}}),o.each(o.Resize.prototype.ALL_HANDLES,function(e){o.Resize.ATTRS[Y(e)]={setter:function(){return this._buildHandle(e)},value:null,writeOnce:!0}})},"patched-v3.18.6",{requires:["base","widget","event","oop","dd-drag","dd-delegate","dd-drop"],skinnable:!0});
YUI.add("resize-plugin",function(u,e){var t=function(e){e.node=u.Widget&&e.host instanceof u.Widget?e.host.get("boundingBox"):e.host,e.host instanceof u.Widget?e.widget=e.host:e.widget=!1,t.superclass.constructor.call(this,e)};t.NAME="resize-plugin",t.NS="resize",t.ATTRS={node:{value:undefined},widget:{value:undefined}},u.extend(t,u.Resize,{initializer:function(e){this.set("node",e.node),this.set("widget",e.widget),this.on("resize:resize",function(e){this._correctDimensions(e)})},_correctDimensions:function(e){var t=this.get("node"),i={old:t.getX(),cur:e.currentTarget.info.left},n={old:t.getY(),cur:e.currentTarget.info.top};this.get("widget")&&this._setWidgetProperties(e,i,n),this._isDifferent(i.old,i.cur)&&t.set("x",i.cur),this._isDifferent(n.old,n.cur)&&t.set("y",n.cur)},_setWidgetProperties:function(e,t,i){var n=this.get("widget"),s=n.get("height"),r=n.get("width"),o=e.currentTarget.info.offsetWidth-e.currentTarget.totalHSurrounding,e=e.currentTarget.info.offsetHeight-e.currentTarget.totalVSurrounding;this._isDifferent(s,e)&&n.set("height",e),this._isDifferent(r,o)&&n.set("width",o),n.hasImpl&&n.hasImpl(u.WidgetPosition)&&(this._isDifferent(n.get("x"),t.cur)&&n.set("x",t.cur),this._isDifferent(n.get("y"),i.cur)&&n.set("y",i.cur))},_isDifferent:function(e,t){return e!==t?t:!1}}),u.namespace("Plugin"),u.Plugin.Resize=t},"patched-v3.18.6",{requires:["resize-base","plugin"],optional:["resize-constrain"]});
YUI.add("aui-modal",function(e,t){var n=e.Lang,r=e.UA,i=e.WidgetStdMod,s=e.getClassName,o=s("modal-body"),u=s("modal-footer"),a=s("modal-header"),f=s("modal-open");e.Modal=e.Base.create("modal",e.Widget,[e.WidgetCssClass,e.WidgetPosition,e.WidgetStdMod,e.WidgetToggle,e.WidgetAutohide,e.WidgetToolbars,e.WidgetPositionAlign,e.WidgetPositionConstrain,e.WidgetStack,e.WidgetModality],{CONTENT_TEMPLATE:'<div class="modal-content"></div>',initializer:function(){var t=this,n;n=[e.after(t._afterFillHeight,t,"fillHeight"),e.after("windowresize",e.bind("_afterWindowResize",t)),t.after("render",t._afterRender),t.after("draggableChange",t._afterDraggableChange),t.after("visibleChange",t._afterVisibleChange)],t._applyPlugin(t._plugDrag),t._eventHandles=n},destructor:function(){var t=this;(new e.EventHandle(t._eventHandles)).detach(),t._userInteractionHandle&&t._userInteractionHandle.detach(),e.all("body,html").removeClass(f)},_addBubbleTargets:function(t){var r=this;return n.isObject(t)||(t={}),e.mix(t,{bubbleTargets:r})},_afterFillHeight:function(){var e=this;e._fillMaxHeight(e.get("height"))},_afterDraggableChange:function(t){var n=this;t.newVal?n._applyPlugin(n._plugDrag):n.unplug(e.Plugin.Drag)},_afterRender:function(){this.get("visible")&&e.all("body,html").addClass(f)},_afterVisibleChange:function(t){var n=this;!t.newVal&&n.get("destroyOnHide")&&e.soon(e.bind("destroy",n)),e.all("body,html").toggleClass(f,t.newVal)},_afterWindowResize:function(){var e=this;e.get("centered")&&e.align()},_applyPlugin:function(e){var t=this;r.touchEnabled?e.call(t):t._userInteractionHandle||(t._userInteractionHandle=t.once(["click","mousemove"],t._onUserInitInteraction,t))},_fillMaxHeight:function(e){var t=this,n=t.get("fillHeight"),r=t.getStdModNode(n,!0);r&&r.setStyle("maxHeight",e)},_getStdModTemplate:function(t){return e.Node.create(e.Modal.TEMPLATES[t],this._stdModNode.get("ownerDocument"))},_onUserInitInteraction:function(){var e=this;e._plugDrag(),e._userInteractionHandle.detach(),e._userInteractionHandle=null},_plugDrag:function(){var t=this,n=t.get("draggable");n&&t.plug(e.Plugin.Drag,t._addBubbleTargets(n))}},{CSS_PREFIX:s("modal-dialog"),ATTRS:{bodyContent:{value:""},destroyOnHide:{validator:n.isBoolean,value:!1},draggable:{value:{handles:["."+a],plugins:[{fn:e.Plugin.DDConstrained}]}},toolbars:{valueFn:function(){var e=this;return{header:[{cssClass:"close",discardDefaultButtonCssClasses:!0,labelHTML:"<span> \u00d7 </span>",on:{click:function(t){e.hide(),t.domEvent.stopPropagation()}},render:!0}]}}},toolbarCssClass:{value:{header:"pull-right"}}},TEMPLATES:{header:'<div class="'+i.SECTION_CLASS_NAMES[i.HEADER]+" "+a+'"></div>',body:'<div class="'+i.SECTION_CLASS_NAMES[i.BODY]+" "+o+'"></div>',footer:'<div class="'+i.SECTION_CLASS_NAMES[i.FOOTER]+" "+u+'"></div>'}})},"3.1.0-deprecated.106",{requires:["widget","widget-autohide","widget-buttons","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod","dd-plugin","dd-constrain","timers","aui-classnamemanager","aui-widget-cssclass","aui-widget-toggle","aui-widget-toolbars"],skinnable:!0});

YUI.add("aui-modal-resize",function(e,t){function n(){}n.prototype={initializer:function(){var t=this;t._eventHandles.push(e.after(t._plugResize,t,"_plugDrag"),t.after("resizableChange",t._afterResizableChange),t.after("resize:end",e.bind(t._syncResizeDimensions,t))),t._applyPlugin(t._plugResize)},_afterResizableChange:function(t){var n=this;t.newVal?n._applyPlugin(n._plugResize):n.unplug(e.Plugin.Resize)},_beforeResizeCorrectDimensions:function(){var t=this;if(t.resize.proxy)return new e.Do.Prevent},_plugResize:function(){var t=this,n=t.get("resizable");n&&!t.hasPlugin("resizable")&&(t.plug(e.Plugin.Resize,t._addBubbleTargets(n)),e.before(t._beforeResizeCorrectDimensions,t.resize,"_correctDimensions",t))},_syncResizeDimensions:function(e){var t=this,n=t.get("boundingBox"),r=e.info;t.set("width",r.offsetWidth-parseInt(n.getComputedStyle("borderRightWidth"),10)-parseInt(n.getComputedStyle("borderLeftWidth"),10)),t.set("height",r.offsetHeight-parseInt(n.getComputedStyle("borderTopWidth"),10)-parseInt(n.getComputedStyle("borderBottomWidth"),10))}},n.ATTRS={resizable:{value:{handles:"br"}}},e.Base.mix(e.Modal,[n])},"3.1.0-deprecated.106",{requires:["aui-modal","resize-plugin"]});

YUI.add("querystring-parse",function(c,r){var u=c.namespace("QueryString"),a=function(i){return function s(r,e){var n,a,t;return 2!==arguments.length?(r=r.split(i),s(u.unescape(r.shift()),u.unescape(r.join(i)))):(r=r.replace(/^\s+|\s+$/g,""),c.Lang.isString(e)&&(e=e.replace(/^\s+|\s+$/g,""),isNaN(e)||e===(n=+e).toString(10)&&(e=n)),(n=/(.*)\[([^\]]*)\]$/.exec(r))?(a=n[2],n=n[1],a?((t={})[a]=e,s(n,t)):s(n,[e])):(t={},r&&(t[r]=e),t))}},i=function(r,e){{if(r){if(c.Lang.isArray(r))return r.concat(e);if(c.Lang.isObject(r)&&c.Lang.isObject(e)){var n=r,a=e,t;for(t in a)t&&a.hasOwnProperty(t)&&(n[t]=i(n[t],a[t]));return n}return[r].concat(e)}return e}};u.parse=function(r,e,n){return c.Array.reduce(c.Array.map(r.split(e||"&"),a(n||"=")),{},i)},u.unescape=function(r){return decodeURIComponent(r.replace(/\+/g," "))}},"patched-v3.18.6",{requires:["yui-base","array-extras"]});
YUI.add("querystring-stringify",function(e,r){var p=e.namespace("QueryString"),c=[],g=e.Lang;p.escape=encodeURIComponent,p.stringify=function(e,r,n){var i,t,s,o,a,u=r&&r.sep?r.sep:"&",y=r&&r.eq?r.eq:"=",f=!(!r||!r.arrayKey)&&r.arrayKey;if(g.isNull(e)||g.isUndefined(e)||g.isFunction(e))return n?p.escape(n)+y:"";if(!g.isBoolean(e)&&"[object Boolean]"!==Object.prototype.toString.call(e)||(e=+e),g.isNumber(e)||g.isString(e))return p.escape(n)+y+p.escape(e);if(g.isArray(e)){for(a=[],n=f?n+"[]":n,o=e.length,s=0;s<o;s++)a.push(p.stringify(e[s],r,n));return a.join(u)}for(s=c.length-1;0<=s;--s)if(c[s]===e)throw new Error("QueryString.stringify. Cyclical reference");for(s in c.push(e),a=[],i=n?n+"[":"",t=n?"]":"",e)e.hasOwnProperty(s)&&a.push(p.stringify(e[s],r,i+s+t));return c.pop(),!(a=a.join(u))&&n?n+"=":a}},"patched-v3.18.6",{requires:["yui-base"]});
YUI.add("aui-url",function(e,t){function y(e){var t=this;if(!e)throw"An URL should be specified.";t._indexParts(e),t._indexParameters()}var n=e.QueryString,r="://",i=0,s=1,o=2,u=3,a=4,f=5,l=6,c=7,h=8,p=9,d=10,v=11,m=12,g=13;y.URI_REGEX_RFC3986=new RegExp("^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)"),e.mix(y.prototype,{_source:undefined,_protocol:undefined,_authority:undefined,_user_info:undefined,_user:undefined,_password:undefined,_host:undefined,_port:undefined,_relative:undefined,_path:undefined,_directory:undefined,_file:undefined,_query:undefined,_anchor:undefined,_parameters:undefined,addParameter:function(t,n){var r=this;r.setParameter(t,r.hasParameter(t)?e.Array(r.getParameter(t)).concat(n):n)},addParameters:function(t){var n=this;e.each(t,function(e,t){n.addParameter(t,e)})},hasParameter:function(e){var t=this;return t._parameters.hasOwnProperty(e)},getParameter:function(e){var t=this;return t._parameters[e]},getParameters:function(){var e=this;return e._parameters},getAnchor:function(){var e=this;return e._anchor},getAuthority:function(){var e=this;return e._authority},getDirectory:function(){var e=this;return e._directory},getFile:function(){var e=this;return e._file},getHost:function(){var e=this;return e._host},getPassword:function(){var e=this;return e._password},getPath:function(){var e=this;return e._path},getPort:function(){var e=this;return e._port},getProtocol:function(){var e=this;return e._protocol},getQuery:function(){var e=this;return e._query},getRelative:function(){var e=this;return e._relative},getSource:function(){var e=this;return e._source},getUser:function(){var e=this;return e._user},getUserInfo:function(){var e=this;return e._user_info},removeParameter:function(e){var t=this;delete t._parameters[e],t._indexParameters()},removeParameters:function(t){var n=this;e.each(t,function(e,t){n.removeParameter(t)})},setParameter:function(e,t){var n=this;n._parameters[e]=t,n._indexParameters()},setParameters:function(t){var n=this;e.each(t,function(e,t){n.setParameter(t,e)})},setAnchor:function(e){var t=this;t._anchor=e},setAuthority:function(e){var t=this;t._authority=e},setDirectory:function(e){var t=this;t._directory=e},setFile:function(e){var t=this;t._file=e},setHost:function(e){var t=this;t._host=e},setPassword:function(e){var t=this;t._password=e},setPath:function(e){var t=this;t._path=e},setPort:function(e){var t=this;t._port=e},setProtocol:function(e){var t=this;t._protocol=e},setRelative:function(e){var t=this;t._relative=e},setSource:function(e){var t=this;t._source=e},setUser:function(e){var t=this;t._user=e},setUserInfo:function(e){var t=this;t._user_info=e},toString:function(){var e=this,t=[];return e._protocol&&t.push(e._protocol,r),t.push(e._authority,e._path),e._query&&t.push("?",e._query),e._anchor&&t.push("#",e._anchor),t.join("")},_indexParameters:function(){var e=this;e._parameters||(e._parameters=n.parse(e._query||"")),e._query=n.stringify(e._parameters)},_indexParts:function(e){var t=this,n=y.URI_REGEX_RFC3986.exec(e);t._source=n[i],t._protocol=n[s],t._authority=n[o],t._user_info=n[u],t._user=n[a],t._password=n[f],t._host=n[l],t._port=n[c],t._relative=n[h],t._path=n[p],t._directory=n[d],t._file=n[v],t._query=n[m],t._anchor=n[g]}},!0),e.Url=y},"3.1.0-deprecated.106",{requires:["oop","querystring-parse","querystring-stringify"]});

AUI.add("liferay-widget-zindex",function(A){var STR_HOST="host";var WidgetZIndex=A.Component.create({EXTENDS:A.Plugin.Base,NAME:"widgetzindex",NS:"zindex",prototype:{_setHostZIndex:function _setHostZIndex(){var instance=this;instance.get(STR_HOST).set("zIndex",++Liferay.zIndex.WINDOW)},initializer:function initializer(){var instance=this;var host=instance.get(STR_HOST);if(!host.get("rendered")&&host.get("visible"))instance._setHostZIndex();instance.onHostEvent("visibleChange",function(event){if(event.newVal)instance._setHostZIndex()})}}});
Liferay.WidgetZIndex=WidgetZIndex},"",{requires:["aui-modal","plugin"]});
AUI.add("liferay-util-window",function(A){var DOM=A.DOM;var Lang=A.Lang;var UA=A.UA;var IE=UA.ie;var Util=Liferay.Util;var Window=Util.Window;var IE9=IE==9;var IE11=IE==11;var setWidth=function setWidth(modal,width){if(IE9){modal.set("width",width+1);modal.set("width",width)}};var LiferayModal=A.Component.create({ATTRS:{autoHeight:{value:false},autoHeightRatio:{value:.95},autoSizeNode:{setter:A.one},autoWidth:{value:false},autoWidthRatio:{value:.95},toolbars:{valueFn:function valueFn(){var instance=
this;return{header:[{cssClass:"close",discardDefaultButtonCssClasses:true,labelHTML:'\x3csvg class\x3d"lexicon-icon" focusable\x3d"false"\x3e\x3cuse href\x3d"'+Liferay.ThemeDisplay.getPathThemeImages()+'/clay/icons.svg#times" /\x3e\x3ctitle\x3e'+"Close"+"\x3c/title\x3e\x3c/svg\x3e",on:{click:function click(event){instance.hide();event.domEvent.stopPropagation()}},render:true}]}}}},EXTENDS:A.Modal,NAME:A.Modal.NAME,prototype:{}});A.mix(Window,{_bindDOMWinResizeIfNeeded:function _bindDOMWinResizeIfNeeded(){var instance=
this;if(!instance._winResizeHandler)instance._winResizeHandler=A.getWin().after("windowresize",instance._syncWindowsUI,instance)},_bindWindowHooks:function _bindWindowHooks(modal,config){var instance=this;var id=modal.get("id");var openingWindow=config.openingWindow;var refreshWindow=config.refreshWindow;modal._opener=openingWindow;modal._refreshWindow=refreshWindow;modal.after("destroy",function(){if(modal._opener){var openerInFrame=!!modal._opener.frameElement;if(openerInFrame)if(IE9)instance._syncWindowsUI();
else if(IE11)instance._resetFocus(modal)}instance._unregister(modal);modal=null});var liferayHandles=modal._liferayHandles;liferayHandles.push(Liferay.after("hashChange",function(event){modal.iframe.set("uri",event.uri)}));liferayHandles.push(Liferay.after("popupReady",function(event){var iframeId=id+instance.IFRAME_SUFFIX;if(event.windowName===iframeId){event.dialog=modal;event.details[0].dialog=modal;var iframeNode=modal.iframe.node;var iframeElement=iframeNode.getDOM();if(event.doc){var modalUtil=
event.win.Liferay.Util;modalUtil.Window._opener=modal._opener;modalUtil.Window._name=id;iframeElement.onload=function(){Util.afterIframeLoaded(event)}}iframeNode.focus();if(UA.ios)iframeNode.attr("scrolling","no")}}))},_ensureDefaultId:function _ensureDefaultId(config){var instance=this;if(!Lang.isValue(config.id))config.id=A.guid();if(!config.iframeId)config.iframeId=config.id+instance.IFRAME_SUFFIX},_getDialogIframeConfig:function _getDialogIframeConfig(config){var dialogIframeConfig;var iframeId=
config.iframeId;var uri=config.uri;if(uri){if(config.cache===false)uri=Liferay.Util.addParams(A.guid()+"\x3d"+Date.now(),uri);var iframeURL=new A.Url(uri);var namespace=iframeURL.getParameter("p_p_id");var bodyCssClass=["dialog-iframe-popup"];if(config.dialogIframe&&config.dialogIframe.bodyCssClass)bodyCssClass.push(config.dialogIframe.bodyCssClass);iframeURL.addParameter("_"+namespace+"_bodyCssClass",bodyCssClass.join(" "));uri=iframeURL.toString();var defaultDialogIframeConfig={bodyCssClass:""};
dialogIframeConfig=A.merge(defaultDialogIframeConfig,config.dialogIframe,{bindLoadHandler:function bindLoadHandler(){var instance=this;var modal=instance.get("host");var popupReady=false;var liferayHandles=modal._liferayHandles;liferayHandles.push(Liferay.on("popupReady",function(event){instance.fire("load",event);popupReady=true}));liferayHandles.push(instance.node.on("load",function(){if(!popupReady)Liferay.fire("popupReady",{windowName:iframeId});popupReady=false}))},iframeId:iframeId,iframeTitle:config.title||
"",uri:uri})}return dialogIframeConfig},_getWindow:function _getWindow(config){var instance=this;var id=config.id;var modalConfig=instance._getWindowConfig(config);var dialogIframeConfig=instance._getDialogIframeConfig(config);var modal=instance.getById(id);if(!modal){var titleNode=A.Node.create(instance.TITLE_TEMPLATE);if(config.stack!==false)A.mix(modalConfig,{plugins:[Liferay.WidgetZIndex]});modal=new LiferayModal(A.merge({cssClass:"modal-full-screen",headerContent:titleNode,id:id},modalConfig));
Liferay.once("screenLoad",function(){modal.destroy()});modal.titleNode=titleNode;instance._register(modal);instance._bindWindowHooks(modal,config)}else{if(!config.zIndex&&modal.hasPlugin("zindex"))delete modalConfig.zIndex;var openingWindow=config.openingWindow;modal._opener=openingWindow;modal._refreshWindow=config.refreshWindow;instance._map[id]._opener=openingWindow;modal.setAttrs(modalConfig)}if(dialogIframeConfig){modal.iframeConfig=dialogIframeConfig;modal.plug(A.Plugin.DialogIframe,dialogIframeConfig);
var originalFn=modal.iframe._onLoadIframe;modal.iframe._onLoadIframe=function(){try{originalFn.call(this)}catch(err){}};modal.get("boundingBox").addClass("dialog-iframe-modal")}if(!Lang.isValue(config.title))config.title="";modal.titleNode.html(Lang.String.escapeHTML(config.title));modal.fillHeight(modal.bodyNode);return modal},_getWindowConfig:function _getWindowConfig(config){var instance=this;var modalConfig=A.merge(instance.DEFAULTS,config.dialog);var height=modalConfig.height;var width=modalConfig.width;
if(height==="auto"||height===""||height===undefined||height>DOM.winHeight())modalConfig.autoHeight=true;if(width==="auto"||width===""||width===undefined||width>DOM.winWidth())modalConfig.autoWidth=true;modalConfig.id=config.id;return modalConfig},_register:function _register(modal){var instance=this;var id=modal.get("id");modal._liferayHandles=[];instance._map[id]=modal;instance._map[id+instance.IFRAME_SUFFIX]=modal},_resetFocus:function _resetFocus(modal){var contentBox=modal.get("contentBox");var input=
contentBox.one("input[type\x3dtext]");if(input)input.getDOM().focus()},_setWindowDefaultSizeIfNeeded:function _setWindowDefaultSizeIfNeeded(modal){var autoSizeNode=modal.get("autoSizeNode");if(modal.get("autoHeight")){var height;if(autoSizeNode)height=autoSizeNode.get("offsetHeight");else height=DOM.winHeight();height*=modal.get("autoHeightRatio");if(modal.get("height")==="auto")modal._fillMaxHeight(height);else modal.set("height",height)}var widthInitial=modal.get("width");if(widthInitial!=="auto")if(modal.get("autoWidth")){var width;
if(autoSizeNode)width=autoSizeNode.get("offsetWidth");else width=DOM.winWidth();width*=modal.get("autoWidthRatio");if(width!=widthInitial)modal.set("width",width);else setWidth(modal,widthInitial)}else setWidth(modal,modal.get("width"))},_syncWindowsUI:function _syncWindowsUI(){var instance=this;var modals=instance._map;A.each(modals,function(modal){if(modal.get("visible")){instance._setWindowDefaultSizeIfNeeded(modal);modal.align()}})},_unregister:function _unregister(modal){var instance=this;var id=
modal.get("id");delete instance._map[id];delete instance._map[id+instance.IFRAME_SUFFIX];A.Array.invoke(modal._liferayHandles,"detach")},_winResizeHandler:null,DEFAULTS:{centered:true,modal:true,visible:true,zIndex:Liferay.zIndex.WINDOW},IFRAME_SUFFIX:"_iframe_",TITLE_TEMPLATE:'\x3ch3 class\x3d"modal-title" /\x3e',getByChild:function getByChild(child){var node=A.one(child).ancestor(".modal",true);return A.Widget.getByNode(node)},getWindow:function getWindow(config){var instance=this;instance._ensureDefaultId(config);
var modal=instance._getWindow(config);instance._bindDOMWinResizeIfNeeded();modal.render();instance._setWindowDefaultSizeIfNeeded(modal);var mask=modal.get("maskNode");if(mask.getStyle("position")=="absolute"){mask.setStyle("height","100%");mask.setStyle("top",document.documentElement.scrollTop+"px");mask.setStyle("width","100%")}modal.align();return modal},hideByChild:function hideByChild(child){var instance=this;return instance.getByChild(child).hide()},refreshByChild:function refreshByChild(child){var instance=
this;var dialog=instance.getByChild(child);if(dialog&&dialog.io)dialog.io.start()}})},"",{requires:["aui-dialog-iframe-deprecated","aui-modal","aui-url","event-resize","liferay-widget-zindex"]});
