@atlassian/aui 9.3.4 → 9.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!!
2
2
  * @atlassian/aui - Atlassian User Interface library
3
- * @version v9.3.4
3
+ * @version v9.3.5
4
4
  * @link https://aui.atlassian.com
5
5
  * @license Apache-2.0
6
6
  * @author Atlassian Pty Ltd.
@@ -98,5 +98,5 @@
98
98
  * Copyright jQuery Foundation and other contributors
99
99
  * Released under the MIT license.
100
100
  * http://jquery.org/license
101
- */s=[i(2),i(10),i(17),i(16),i(18),i(5),i(9)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",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},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,r=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1})),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.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(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,r,a=this.options,o=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?o=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(o=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?o=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(o=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==o&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),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"),i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].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(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,a=r+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||e+u>r&&e+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!s)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,r,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){a.push(this)}for(o.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,r,a,o,l,c,u=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=t(h[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(d.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=t(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,s,r;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,s,r,a,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,e[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[d]-l)<s&&(s=Math.abs(e[d]-l),r=this.items[n],this.direction=c?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.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 e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,r=e.pageX,a=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].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,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})})?n.apply(e,s):n)||(t.exports=r)},function(t,e){jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},function(t,e){!function(t){function e(t){this.num=0,this.timer=t>0&&t}function i(i){if(t.isPlainObject(i.data)||t.isArray(i.data)||"string"==typeof i.data){var s,r=i.handler,a={timer:700,combo:[]};"string"==typeof(s=i.data)?a.combo=[s]:t.isArray(s)?a.combo=s:t.extend(a,s),a.combo=t.map(a.combo,(function(t){return t.toLowerCase()})),i.index=new e(a.timer),i.handler=function(e){if(this===e.target||!/textarea|select|input/i.test(e.target.nodeName)&&"true"!==t(e.target).prop("contenteditable")){var s="keypress"!==e.type?t.hotkeys.specialKeys[e.which]:null,o=String.fromCharCode(e.which).toLowerCase(),l="",c={};e.altKey&&"alt"!==s&&(l+="alt+"),e.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==s&&(l+="meta+"),e.shiftKey&&"shift"!==s&&(l+="shift+"),e.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+t.hotkeys.shiftNums[s||o]]=!0);var u=i.index,d=a.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),r.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(t,e){for(var i=t.split(" "),n=0,s=i.length;n<s;n++)if(e[i[n]])return!0;return!1}t.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},t.each(t.hotkeys.keypressKeys,(function(e,i){t.hotkeys.shiftNums[i]=i})),e.prototype.val=function(){return this.num},e.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(t.proxy(e.prototype.reset,this),this.timer)),this.num++},e.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},t.each(["keydown","keyup","keypress"],(function(){t.event.special[this]={add:i}}))}(jQuery)},function(t,e){jQuery.fn.moveTo=function(t){var e,i=jQuery.extend({transition:!1,scrollOffset:35},t),n=this,s=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<s||jQuery(window).scrollTop()+i.scrollOffset>s)&&jQuery(window).height()>i.scrollOffset){if(e=jQuery(window).scrollTop()+i.scrollOffset>s?s-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:s-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:e},1e3,(function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating})),this;var r=jQuery("html, body");return r.is(":animated")&&(r.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(e),setTimeout((function(){jQuery(document).trigger("moveToFinished",n)}),100),this}return jQuery(document).trigger("moveToFinished",this),this}},function(t,e,i){"use strict";i.r(e),i.d(e,"format",(function(){return g})),i.d(e,"version",(function(){return v})),i.d(e,"bind",(function(){return y})),i.d(e,"unbind",(function(){return w})),i.d(e,"trigger",(function(){return _})),i.d(e,"$",(function(){return Lt})),i.d(e,"toInit",(function(){return $t})),i.d(e,"log",(function(){return d})),i.d(e,"error",(function(){return p})),i.d(e,"warn",(function(){return h})),i.d(e,"banner",(function(){return Ht})),i.d(e,"dialog2",(function(){return oe})),i.d(e,"DropdownEl",(function(){return Gi})),i.d(e,"ItemLinkEl",(function(){return Yi})),i.d(e,"ItemRadioEl",(function(){return Ki})),i.d(e,"ItemCheckboxEl",(function(){return qi})),i.d(e,"SectionEl",(function(){return Ji})),i.d(e,"flag",(function(){return pn})),i.d(e,"CheckboxMultiselectEl",(function(){return Fn})),i.d(e,"FancyFileInput",(function(){return Wn})),i.d(e,"LabelEl",(function(){return zn})),i.d(e,"SelectEl",(function(){return As})),i.d(e,"ToggleEl",(function(){return Bs})),i.d(e,"InlineDialogEl",(function(){return ur})),i.d(e,"MessageEl",(function(){return an})),i.d(e,"navigation",(function(){return fr})),i.d(e,"NavigationEl",(function(){return pr})),i.d(e,"progressBars",(function(){return Tr})),i.d(e,"ProgressBarEl",(function(){return Er})),i.d(e,"SpinnerEl",(function(){return Jt})),i.d(e,"TabContainerEl",(function(){return Jr})),i.d(e,"TabPaneEl",(function(){return Qr})),i.d(e,"TabItemEl",(function(){return Gr})),i.d(e,"I18n",(function(){})),i.d(e,"Header",(function(){return Xa})),i.d(e,"DatePicker",(function(){return lo})),i.d(e,"RestfulTable",(function(){return Oo})),i.d(e,"sidebar",(function(){return el})),i.d(e,"whenIType",(function(){return ul})),i.d(e,"FocusManager",(function(){return dl})),i.d(e,"InlineDialog2",(function(){return hl})),i.d(e,"LayerManager",(function(){return pl})),i.d(e,"ProgressiveDataSet",(function(){return fl})),i.d(e,"clone",(function(){return gl})),i.d(e,"debounce",(function(){return ml})),i.d(e,"debounceImmediate",(function(){return vl})),i.d(e,"dim",(function(){return bl})),i.d(e,"escapeHtml",(function(){return yl})),i.d(e,"formValidation",(function(){return wl})),i.d(e,"id",(function(){return _l})),i.d(e,"isClipped",(function(){return Cl})),i.d(e,"keyCode",(function(){return kl})),i.d(e,"layer",(function(){return xl})),i.d(e,"messages",(function(){return El})),i.d(e,"populateParameters",(function(){return Dl})),i.d(e,"params",(function(){return Tl})),i.d(e,"responsiveheader",(function(){return Al})),i.d(e,"select",(function(){return Sl})),i.d(e,"tablessortable",(function(){return Ol})),i.d(e,"tabs",(function(){return Il})),i.d(e,"undim",(function(){return Nl})),i.d(e,"_addID",(function(){return Pl})),i.d(e,"contextPath",(function(){return Ml}));var n=i(2),s=i.n(n),r=window.jQuery||window.Zepto||s.a;function a(t,e){return"object"!=typeof window.AJS&&(window.AJS={}),window.AJS[t]=e}var o=i(6),l=i.n(o);function c(t,e){var i=r(t);return void 0===e&&(e=!0),i.each((function(){this.disabled=!e}))}function u(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],console,arguments)}}l()("checkbox",{type:l.a.type.CLASSNAME,attached:function(t){s()("input[type=checkbox]",t).each((function(t,e){s()('<span class="aui-form-glyph"></span>').insertAfter(e)}))},detached:function(t){s()(".aui-form-glyph",t).remove()}}),l()("radio",{type:l.a.type.CLASSNAME,attached:function(t){s()("input[type=radio]",t).each((function(t,e){s()('<span class="aui-form-glyph"></span>').insertAfter(e)}))},detached:function(t){s()(".aui-form-glyph",t).remove()}}),a("enable",c),a("inlineHelp",(function(){r(document).on("click",".icon-inline-help",(function(){var t=r(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var d=u("log"),h=u("warn"),p=u("error");function f(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,g=0;g<u.length;g++){var m=u[g].match(r);if(null!=m){var v=parseInt(m[1],10);if(c<v){if(h){l=h;break}l=m[3];break}if(c==v&&"#"==m[2]){l=m[3];break}g==u.length-1&&(l=m[3]),h=m[3]}else d=!0}d&&p('The format "'+e+'" from message "'+t+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=f.apply(null,b)}}return l},o=function(t){for(var e=!1,i=-1,n=0,s=0;s<t.length;s++){var r=t.charAt(s);if("'"==r&&(e=!e),!e)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(t.substring(0,s+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,s)),a}}return null},l=function(t){var i=arguments,n="";if(!t)return n;for(var s=o(t);s;)t=t.substring(s[0].length),n+=s[1].replace(e,""),n+=a(s[2],i),s=o(t);return n+=t.replace(e,"")};return l.apply(null,arguments)}a("error",p),a("log",d),a("warn",h),a("format",f);var g=f,m="9.3.4";a("version",m);var v=m;const b=r(window);function y(t,e,i){try{return"function"==typeof i?b.on(t,false,e,i):b.on(t,false,e)}catch(t){d("error while binding: ",t.message)}}function w(t,e){try{return b.off(t,e)}catch(t){d("error while unbinding: ",t.message)}}function _(t,e){try{return b.trigger(t,e)}catch(t){d("error while triggering: "+t.message)}}a("bind",y),a("trigger",_),a("unbind",w);const C={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},k=new RegExp("[".concat(Object.keys(C).join(""),"]"),"g");function x(t){return t.replace(k,(t=>C[t]))}a("escapeHtml",x);var E=x,D=Object.prototype.hasOwnProperty,T=[];function A(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function S(t,e){if("function"==typeof t)return t;var i=!1;return e=e||{},function(n){var s,r=function(t){var e=new Error,i=e.stack||e.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[t+2]:n}(n||1)||"";if(!i||-1===T.indexOf(r)){T.push(r),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||!1)+"- "+(s=t,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion||"a future release")+".";e.alternativeName&&(a+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(a+=" "+e.extraInfo),r=""===r?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+r,e.extraObject?A(a+="\n",e.extraObject,r):A(a,r)}}}function O(t,e){var i=t.options.displayName;i=i?" ("+i+")":"";var n=r.extend({deprecationType:"CSS",extraObject:e},t.options);S("'"+t.selector+"' pattern"+i,n)()}function I(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=S(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function N(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=I(t,e,i);return n.prototype=t.prototype,r.extend(n,t),n}var P=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),P=!0)}catch(t){}function M(t,e,i){if("function"==typeof t[e]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||e;t[e]=I(t[e],n,i)}else!function(t,e,i){if(P){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=S(i.displayName||e,i);Object.defineProperty(t,e,{get:function(){return s(),n},set:function(t){return n=t,s(),t}})}}(t,e,i)}function L(t){return function(e){for(var i={selector:e,options:t||{}},n=document.querySelectorAll(e),s=0;s<n.length;s++)O(i,n[s]);!function(t){if($.push(t),!j){j=new MutationObserver((function(t){t.forEach((function(t){for(var e=t.addedNodes,i=0;i<e.length;i++){var n=e[i];1===n.nodeType&&$.forEach(R(n))}}))}));var e={childList:!0,subtree:!0};j.observe(document,e)}}(i)}}function R(t){return function(e){var i,n;i=t,n=e.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&O(e,t)}}const $=[];let j;function F(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var H;a("deprecate",{fn:I,construct:N,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(L(e))},prop:M,obj:function(t,e,i){for(var n in i=i||{},t)D.call(t,n)&&(i.deprecationType=i.deprecationType||"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,M(t,n,r.extend({},i)))},propertyDeprecationSupported:P,getMessageLogger:S});var W=[];function B(t,e){Array.prototype.forEach.call(document.body.children,(function(t){(function(t){return t.hasAttribute("aria-hidden")})(t)||function(t){return t.classList.contains("aui-layer")}(t)||(t.setAttribute("aria-hidden","true"),W.push(t))})),H||(H=document.body),!0===t&&U();var i=!!B.$dim&&!B.$dim[0].hasAttribute("hidden");return B.$dim&&(B.$dim.remove(),B.$dim=null),B.$dim=r('<div aria-hidden="true"></div>').addClass("aui-blanket"),B.$dim.attr("tabindex","0"),B.$dim.appendTo(document.body),i||(F(B.$dim),B.cachedOverflow={overflow:H.style.overflow,overflowX:H.style.overflowX,overflowY:H.style.overflowY},H.style.overflowX="hidden",H.style.overflowY="hidden",H.style.overflow="hidden"),B.$dim.removeAttr("hidden"),e&&B.$dim.css({zIndex:e}),B.$dim}function V(){W.forEach((function(t){t.removeAttribute("aria-hidden")})),W=[],B.$dim&&(B.$dim[0].setAttribute("hidden",""),H&&(H.style.overflow=B.cachedOverflow.overflow,H.style.overflowX=B.cachedOverflow.overflowX,H.style.overflowY=B.cachedOverflow.overflowY))}var U=S("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});a("dim",B),a("undim",V);var z={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,LEFT_SQUARE_BRACKET:91,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};a("keyCode",z);var Y=z,q=function(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e};var K=l.a.noConflict();var J=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function G(t){return J(t).get("last-trigger")||tt(t)[0]}function Q(t,e){var i=e&&e.nodeType&&1===e.nodeType;return J(t).set("last-trigger",!!i&&e)}function X(t,e){var i=G(t);i&&e(i)}function Z(t,e){return Array.prototype.forEach.call(tt(t),e)}function tt(t){const e=window.frames,i='[aria-controls="'.concat(t.id,'"]');let n=[],s=!1;for(let t=0;t<e.length;t++)try{let s=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(t){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&h(["No triggers found for element (".concat(t.id,") in iframes from the same origin."),"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function et(t){return document.getElementById(t.getAttribute("aria-controls"))}function it(t){return"true"!==t.getAttribute("aria-disabled")}function nt(t,e){if(it(t)){var i=et(t);i&&i.message&&i.message(e)}}const st={click(t,e){(function(t,e){var i=r(e).closest("a[href]",t);return!!i.length&&i[0]!==t})(t,e.target)||(nt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Y.ENTER&&i!==Y.SPACE||(e.preventDefault(),e.type="click",st.click(t,e))},mouseenter(t,e){nt(t,e)},mouseleave(t,e){nt(t,e)},focus(t,e){nt(t,e)},blur(t,e){(function(t,e){let i=e.relatedTarget;return i||(i=document.activeElement),r(et(t)).find(i).length>0})(t,e)||nt(t,e)}};Object.keys(st).forEach((function(t){const e=st[t];r(document).on("".concat(t,".aui-trigger"),"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:s}=t,{keyCode:r,which:a}=t;return{type:e,data:"keydown"===e?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>t.preventDefault()}}(i,t))}))})),K("data-aui-trigger",{type:K.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return it(this)}}}),q("aui/trigger"),function(){function t(t){return"visible"===r.css(t,"visibility")&&r(t).is(":visible")}function e(e,i){var n=e.nodeName.toLowerCase();if("aui-select"===n)return!0;if("area"===n){var s=e.parentNode,a=s.name,o=r("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==s.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(n),c="a"===n,u=e.href||i;return(l?!e.disabled:c?u:i)&&t(e)}r.extend(r.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(r.attr(t,"tabindex"))),"aui-tabbable":function(t){var i=r.attr(t,"tabindex"),n=isNaN(i);return(n||i>=0)&&e(t,!n)}})}();var rt="_aui-focus-restore";function at(t){return t.is(".aui-dialog2")}function ot(){this._focusTrapStack=[],this._handler}function lt(t,e){if(0===t.length)return;if(e.keyCode!==Y.TAB)return;const i=e.shiftKey?-1:1,n=e.target,s=t[t.length-1],a=s.find(":aui-tabbable");if(!a.length)return;const o=a.index(n);let l=-1;if(o>-1)l=o;else{let t;if(t=r(n).closest(".aui-layer"),!t.length){t=s.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(n)}if(t.length){const e=t.find(":aui-tabbable"),s=e.index(n)+i;if(!(s<0||s>=e.length))return;{const e=G(t.get(0));l=a.index(e)}}}l=l>-1?(l+i)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ct;function ut(){return ct||(ct=new ot),ct}ot.defaultFocusSelector=":aui-tabbable",ot.prototype.enter=function(t,e){if(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.activeElement;t.data(rt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var i=t.attr("data-aui-focus-selector")||ot.defaultFocusSelector;(t.is(i)?t:t.find(i)).first().trigger("focus")}at(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=lt.bind(void 0,this._focusTrapStack),r(document).on("keydown.aui-focus-manager",this._handler)))},ot.prototype.exit=function(t){at(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(r(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){r(e).trigger("blur");var i=function(t){return r(t.data(rt))}(t);i.length&&(t.removeData(rt),i.trigger("focus"))}},ut.global=ut(),a("FocusManager",ut);var dt=ut,ht=function(t,e){var i="_aui-widget-"+t;return function(t,n){var s,a;r.isPlainObject(t)?a=t:(s=t,a=n);var o,l=s&&r(s);return l&&l.data(i)?o=l.data(i):(l=(o=new e(l,a||{})).$el).data(i,o),o}};let pt;!function(){if(window.CustomEvent)try{const t=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default");if("name"!==t.type)throw new Error("Could not set custom name");if("y"!==t.detail.x)throw new Error("Could not set detail");return void(pt=window.CustomEvent)}catch(t){}pt=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented||(this.defaultPrevented=!0)}},i},pt.prototype=window.Event.prototype}();var ft=pt;const gt="_aui-internal-layer-",mt="_aui-internal-layer-global-";var vt=r(document);function bt(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function s(r){e===r.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",s))}))}function yt(t,e,i){var n=r.Event(gt+e),s=r.Event(mt+e),a=new ft("aui-layer-"+i,{bubbles:!0,cancelable:!0}),o=new ft("aui-"+i,{bubbles:!0,cancelable:!0});return t.trigger(n),t.trigger(s,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(n.isDefaultPrevented()||s.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function wt(t){this.$el=r(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function _t(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}wt.prototype={below:function(){return At.global.item(At.global.indexOf(this.$el)-1)},above:function(){return At.global.item(At.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(gt+t,e),this},off:function(t,e){return this.$el.off(gt+t,e),this},show:function(){return this.isVisible()||At.global.indexOf(this.$el)>-1?this:yt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),At.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;if(!yt(this.$el,"beforeHide","hide"))return this;const t=this;return bt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),At.global.popUntil(this.$el),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var t=_t(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=_t(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){(this.isPersistent()||this.isBlanketed())&&dt.global.exit(this.$el),t&&yt(this.$el,"beforeHide","hide"),this.el.removeAttribute("open"),this.$el.removeData("_aui-layer-shown"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(gt+"hide"),this.$el.trigger(mt+"hide",[this.$el])},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&dt.global.enter(this.$el),this.$el.trigger(gt+"show"),this.$el.trigger(mt+"show",[this.$el])}};var Ct=ht("layer",wt);function kt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function xt(t,e){return kt(t,(function(t){return t[0]===e[0]}))}function Et(t){return kt(t,(function(t){return Ct(t).isBlanketed()}))}function Dt(t,e){var i=Et(t);e!==i&&(i>-1?B(!1,t[i].css("z-index")-20):V())}function Tt(t,e,i){if(!(e<0))for(var n=t.length-1;n>=e;n--){var s=t[n],r=Ct(s);!i&&r.isPersistent()||(r._hideLayer(!0),t.splice(n,1))}}function At(){this._stack=[]}function St(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return At.global.indexOf(e)>-1}Ct.on=function(t,e,i){return vt.on(mt+t,e,i),this},Ct.off=function(t,e,i){return vt.off(mt+t,e,i),this},At.prototype={push:function(t){var e=t instanceof r?t:r(t);if(xt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var i=Ct(e),n=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return i._showLayer(n),i.isBlanketed()&&B(!1,n-20),this._stack.push(e),this},popLayersBeside:function(t){const e=r(t).get(0);if(!function(t){return!!G(t)}(e)){var i=Et(this._stack);return void Tt(this._stack,++i,!1)}const n=function(t){var e=G(t);if(e)return r(e).closest(".aui-layer").get(0)}(e);if(n){let t=this.indexOf(n);Tt(this._stack,++t,!1)}else Tt(this._stack,0,!1)},indexOf:function(t){return xt(this._stack,r(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=Ct(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,i=t instanceof r?t:r(t),n=xt(this._stack,i);if(n<0)return null;for(n--;n>=0;){e=this._stack[n];var s=Ct(e);if(!s.isPersistent()||s.isBlanketed())return e;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,i=t instanceof r?t:r(t),n=xt(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){e=this._stack[n];var s=Ct(e);if(!s.isPersistent()&&!s.isBlanketed())return e;n++}return null},popUntil:function(t){var e=t instanceof r?t:r(t),i=xt(this._stack,e);if(-1===i)return null;var n=Et(this._stack);return Tt(this._stack,i+1,Ct(e).isBlanketed()),this._stack.splice(i,1),Ct(e)._hideLayer(),Dt(this._stack,n),e},getTopLayer:function(){return this._stack.length?this._stack[this._stack.length-1]:null},popTopIfNonPersistent:function(){var t=this.getTopLayer(),e=Ct(t);return!t||e.isPersistent()?null:this.popUntil(t)},popUntilTopBlanketed:function(){var t=Et(this._stack);if(t<0)return null;var e=this._stack[t];if(Ct(e).isPersistent()){var i=this.getNextHigherNonPeristentAndNonBlanketedLayer(e);if(i){var n=xt(this._stack,i);return Tt(this._stack,n,!0),i}return null}return Tt(this._stack,t,!0),Dt(this._stack,t),e},popUntilTopPersistent:function(){var t=At.global.getTopLayer();if(t){var e,i=Et(this._stack),n=Ct(t);if(n.isPersistent()){if(n.isBlanketed())return;if(t=At.global.getNextLowerNonPersistentOrBlanketedLayer(t),n=Ct(t),!t||n.isPersistent())return;e=xt(this._stack,t),Tt(this._stack,e,!0),Dt(this._stack,i)}else e=xt(this._stack,t),Tt(this._stack,e,!0),Dt(this._stack,i)}}},vt.on("keydown",(function(t){t.keyCode===Y.ESCAPE&&(At.global.popUntilTopPersistent(),t.preventDefault())})),vt.on("click",".aui-blanket",(function(t){At.global.popUntilTopBlanketed()&&t.preventDefault()})),vt.on("click",(function(t){var e=r(t.target);if(!e.closest(".aui-blanket").length){var i=e.closest("[aria-controls]"),n=e.closest(".aui-layer");if(!n.length&&!St(i)){const e=r.Event("aui-close-layers-on-outer-click");return vt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void At.global.hideAll()}if(!St(i)&&n.length){var s=At.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);s&&Ct(s).hide()}}})),At.global=new At,Ct.Manager=At,a("layer",Ct);var Ot=Ct;a("LayerManager",Ot.Manager);Ot.Manager;const It={sinceVersion:"9.0.0",removeInVersion:"10.0.0"};var Nt=a("params",new Proxy({},{get:function(t,e){return S("AJS.params",It)(),t[e]}}));const Pt=I((function(t){t||(t=Nt),r(".parameters input").each((function(){var e=this.value,i=this.title||this.id;r(this).hasClass("list")?t[i]?t[i].push(e):t[i]=[e]:t[i]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});a("populateParameters",Pt);var Mt=Pt;r((function(){var t=r("body");t.data("auiVersion")||t.attr("data-aui-version",v),Mt()})),a("$",r);var Lt=r;function Rt(t){return r.when(r.ready).then((function(){setTimeout((function(){try{t.call(this,r)}catch(e){p("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}a("toInit",Rt);var $t=Rt;const I18n={keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.checkboxmultiselect.clear.selected":"Clear selected items","aui.select.no.suggestions":"No suggestions","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":""},getText:function(t){if(Object.prototype.hasOwnProperty.call(this.keys,t)){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return g.apply(null,[this.keys[t]].concat(i))}return t}};a("I18n",I18n);function jt(t){var e=function(t){let{body:e,type:i="error"}=t;return r('<div class="aui-banner" role="banner"></div>').append(r.parseHTML(e||"")).addClass("aui-banner-".concat(i))}(t);return Ft().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&r(t).remove()})),function(t){var e=Ft();if(!e.length)throw new Error("You must implement the application header");t.prependTo(e),F(t),t[0].removeAttribute("hidden")}(e),e[0]}function Ft(){return r("#header")}q("aui/banner",jt),a("banner",jt);var Ht=jt,Wt=i(3);const Bt={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},Vt={filled:!1,size:Bt.MEDIUM.name},Ut="Add CSS to the parent element of the <aui-spinner>.\nUse CSS flexbox or grid to vertically align it.\nSee https://css-tricks.com/centering-css-complete-guide/ for techniques.",zt=S("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ut}),Yt=S("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ut});function qt(t){let e=Bt.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Bt).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function Kt(t){const{px:e,radius:i}=Object(Wt.find)(Bt,(e=>e.name===t._data.size))||Bt.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),s=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(e));const r=e/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+e/2;t.querySelector("svg").style.top="".concat(r-a,"px")}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}var Jt=K("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',Kt(t)},attached(t){Kt(t)},attributes:{filled:{created:function(t){zt(),t._data.filled=!0,Kt(t)},removed:function(t){t._data.filled=!1,Kt(t)}},size(t,e){t._data.size=qt(e.newValue),Kt(t)}},prototype:{get _data(){return this.__data||(this._data=Object(Wt.defaults)({},Vt))},set _data(t){return this.__data=t},set filled(t){Yt(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=qt(t);this.setAttribute("size",e)}}});function Gt(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function Qt(t){return"INPUT"===t.nodeName}K("aui-button",{type:K.type.CLASSNAME,created:function(t){t._spinner=new Jt,t._spinner.setAttribute("size",Bt.SMALL.name)},prototype:{busy:function(){return Qt(this)||Gt(this)?(h("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return Qt(this)||!Gt(this)?(h("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return Qt(this)?(h("It is not valid to call isBusy() on an input button."),!1):Gt(this)}}}),q("aui/button");const Xt="aui-close-button",Zt=".".concat(Xt),te='<button type="button" class="'.concat(Xt,'" aria-label="').concat(I18n.getText("aui.words.close"),'">');var ee={"aui-focus":"false","aui-blanketed":"true"};function ie(t){var e;this._handlers=new WeakMap,this.$el=r(t||'\n <section role="dialog" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n '.concat(te,'\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>')),e=this.$el,r.each(ee,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}ie.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};Ot(i).on(t,n),this._handlers.set(e,n)}return this},ie.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(Ot(i).off(t,n),this._handlers.delete(e)),this},ie.prototype.show=function(){return Ot(this.$el).show(),this},ie.prototype.hide=function(){return Ot(this.$el).hide(),this},ie.prototype.remove=function(){return Ot(this.$el).remove(),this},ie.prototype.isVisible=function(){return Ot(this.$el).isVisible()};var ne=ht("dialog2",ie),se=new Set;ne.on=function(t,e){return se.has(e)||(Ot.on(t,".aui-dialog2",e),se.add(e)),this},ne.off=function(t,e){return se.has(e)&&(Ot.off(t,".aui-dialog2",e),se.delete(e)),this},r(document).on("click keydown",".aui-dialog2-header ".concat(Zt),(function(t){("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE)&&(t.preventDefault(),ne(r(t.target).closest(".aui-dialog2")).hide())})),ne.on("show",(function(t,e){e.find(Zt).attr("tabindex",0),e.attr("tabindex",-1);var i=e[0].hasAttribute("data-aui-focus-selector")&&e.attr("data-aui-focus-selector");if(i){var n=e.find(i);if(n.length>0)return n.first().focus()}e.focus()})),ne.on("hide",(function(t,e){var i=Ot(e);e.data("aui-remove-on-hide")&&i.remove()})),q("aui/dialog2",ne),a("dialog2",ne);var re,ae,oe=ne,le=i(4),ce=i.n(le),ue=navigator.userAgent.toLowerCase(),de=(/msie/.test(ue),/windows nt 5.1/.test(ue),/windows nt 6.0/.test(ue),/windows nt 6.1/.test(ue),/mac os x/.test(ue));function he(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function pe(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function fe(t){var e=pe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ge(t){return t instanceof pe(t).Element||t instanceof Element}function me(t){return t instanceof pe(t).HTMLElement||t instanceof HTMLElement}function ve(t){return t?(t.nodeName||"").toLowerCase():null}function be(t){return(ge(t)?t.ownerDocument:t.document).documentElement}function ye(t){return he(be(t)).left+fe(t).scrollLeft}function we(t){return pe(t).getComputedStyle(t)}function _e(t){var e=we(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ce(t,e,i){void 0===i&&(i=!1);var n,s,r=be(e),a=he(t),o=me(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==ve(e)||_e(r))&&(l=(n=e)!==pe(n)&&me(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:fe(n)),me(e)?((c=he(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=ye(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function ke(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function xe(t){return"html"===ve(t)?t:t.assignedSlot||t.parentNode||t.host||be(t)}function Ee(t){return["html","body","#document"].indexOf(ve(t))>=0?t.ownerDocument.body:me(t)&&_e(t)?t:Ee(xe(t))}function De(t,e){void 0===e&&(e=[]);var i=Ee(t),n="body"===ve(i),s=pe(i),r=n?[s].concat(s.visualViewport||[],_e(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(De(xe(r)))}function Te(t){return["table","td","th"].indexOf(ve(t))>=0}function Ae(t){if(!me(t)||"fixed"===we(t).position)return null;var e=t.offsetParent;if(e){var i=be(e);if("body"===ve(e)&&"static"===we(e).position&&"static"!==we(i).position)return i}return e}function Se(t){for(var e=pe(t),i=Ae(t);i&&Te(i)&&"static"===we(i).position;)i=Ae(i);return i&&"body"===ve(i)&&"static"===we(i).position?e:i||function(t){for(var e=xe(t);me(e)&&["html","body"].indexOf(ve(e))<0;){var i=we(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var Oe=i(0);function Ie(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}function Ne(t,e){var i=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(i){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Pe(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Me(t,e){return e===Oe.viewport?Pe(function(t){var e=pe(t),i=be(t),n=e.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,o=0;return n&&(s=n.width,r=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,o=n.offsetTop)),{width:s,height:r,x:a+ye(t),y:o}}(t)):me(e)?function(t){var e=he(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Pe(function(t){var e=be(t),i=fe(t),n=t.ownerDocument.body,s=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+ye(t),o=-i.scrollTop;return"rtl"===we(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:o}}(be(t)))}function Le(t,e,i){var n="clippingParents"===e?function(t){var e=De(xe(t)),i=["absolute","fixed"].indexOf(we(t).position)>=0&&me(t)?Se(t):t;return ge(i)?e.filter((function(t){return ge(t)&&Ne(t,i)&&"body"!==ve(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),r=s[0],a=s.reduce((function(e,i){var n=Me(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),Me(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Re(t){return t.split("-")[0]}function $e(t){return t.split("-")[1]}function je(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Fe(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Re(s):null,a=s?$e(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Oe.top:e={x:o,y:i.y-n.height};break;case Oe.bottom:e={x:o,y:i.y+i.height};break;case Oe.right:e={x:i.x+i.width,y:l};break;case Oe.left:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?je(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Oe.start:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case Oe.end:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function He(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function We(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Be(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.boundary,a=void 0===r?Oe.clippingParents:r,o=i.rootBoundary,l=void 0===o?Oe.viewport:o,c=i.elementContext,u=void 0===c?Oe.popper:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=He("number"!=typeof f?f:We(f,Oe.basePlacements)),m=u===Oe.popper?Oe.reference:Oe.popper,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=Le(ge(y)?y:y.contextElement||be(t.elements.popper),a,l),_=he(v),C=Fe({reference:_,element:b,strategy:"absolute",placement:s}),k=Pe(Object.assign(Object.assign({},b),C)),x=u===Oe.popper?k:_,E={top:w.top-x.top+g.top,bottom:x.bottom-w.bottom+g.bottom,left:w.left-x.left+g.left,right:x.right-w.right+g.right},D=t.modifiersData.offset;if(u===Oe.popper&&D){var T=D[s];Object.keys(E).forEach((function(t){var e=[Oe.right,Oe.bottom].indexOf(t)>=0?1:-1,i=[Oe.top,Oe.bottom].indexOf(t)>=0?"y":"x";E[t]+=T[i]*e}))}return E}var Ve={placement:"bottom",modifiers:[],strategy:"absolute"};function Ue(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ze(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Ve:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ve),r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){d(),o.options=Object.assign(Object.assign(Object.assign({},r),o.options),i),o.scrollParents={reference:ge(t)?De(t):t.contextElement?De(t.contextElement):[],popper:De(e)};var s=function(t){var e=Ie(t);return Oe.modifierPhases.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign(Object.assign(Object.assign({},i),e),{},{options:Object.assign(Object.assign({},i.options),e.options),data:Object.assign(Object.assign({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=s.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:o,name:e,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Ue(e,i)){o.rects={reference:Ce(e,Se(i),"fixed"===o.options.strategy),popper:ke(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!Ue(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Ye={passive:!0};var qe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ke(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.offsets,a=t.position,o=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(r),u=c.x,d=c.y,h=r.hasOwnProperty("x"),p=r.hasOwnProperty("y"),f=Oe.left,g=Oe.top,m=window;if(l){var v=Se(i);v===pe(i)&&(v=be(i)),s===Oe.top&&(g=Oe.bottom,d-=v.clientHeight-n.height,d*=o?1:-1),s===Oe.left&&(f=Oe.right,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&qe);return o?Object.assign(Object.assign({},y),{},((b={})[g]=p?"0":"",b[f]=h?"0":"",b.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},y),{},((e={})[g]=p?d+"px":"",e[f]=h?u+"px":"",e.transform="",e))}var Je={left:"right",right:"left",bottom:"top",top:"bottom"};function Ge(t){return t.replace(/left|right|bottom|top/g,(function(t){return Je[t]}))}var Qe={start:"end",end:"start"};function Xe(t){return t.replace(/start|end/g,(function(t){return Qe[t]}))}function Ze(t,e,i){return Math.max(t,Math.min(e,i))}function ti(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ei(t){return[Oe.top,Oe.right,Oe.bottom,Oe.left].some((function(e){return t[e]>=0}))}var ii=ze({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=pe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,Ye)})),o&&l.addEventListener("resize",i.update,Ye),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Ye)})),o&&l.removeEventListener("resize",i.update,Ye)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Fe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o={placement:Re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Ke(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Ke(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];me(s)&&ve(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});me(n)&&ve(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,a=Oe.placements.reduce((function(t,i){return t[i]=function(t,e,i){var n=Re(t),s=[Oe.left,Oe.top].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[Oe.left,Oe.right].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,r),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=Re(m),b=l||(v===m||!f?[Ge(m)]:function(t){if(Re(t)===Oe.auto)return[];var e=Ge(t);return[Xe(t),e,Xe(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Re(i)===Oe.auto?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Oe.placements:l,u=$e(n),d=u?o?Oe.variationPlacements:Oe.variationPlacements.filter((function(t){return $e(t)===u})):Oe.basePlacements,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=Be(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Re(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,C=new Map,k=!0,x=y[0],E=0;E<y.length;E++){var D=y[E],T=Re(D),A=$e(D)===Oe.start,S=[Oe.top,Oe.bottom].indexOf(T)>=0,O=S?"width":"height",I=Be(e,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?A?Oe.right:Oe.left:A?Oe.bottom:Oe.top;w[O]>_[O]&&(N=Ge(N));var P=Ge(N),M=[];if(r&&M.push(I[T]<=0),o&&M.push(I[N]<=0,I[P]<=0),M.every((function(t){return t}))){x=D,k=!1;break}C.set(D,M)}if(k)for(var L=function(t){var e=y.find((function(e){var i=C.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Be(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Re(e.placement),b=$e(e.placement),y=!b,w=je(v),_="x"===w?"y":"x",C=e.modifiersData.popperOffsets,k=e.rects.reference,x=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,D={x:0,y:0};if(C){if(r){var T="y"===w?Oe.top:Oe.left,A="y"===w?Oe.bottom:Oe.right,S="y"===w?"height":"width",O=C[w],I=C[w]+m[T],N=C[w]-m[A],P=p?-x[S]/2:0,M=b===Oe.start?k[S]:x[S],L=b===Oe.start?-x[S]:-k[S],R=e.elements.arrow,$=p&&R?ke(R):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=j[T],H=j[A],W=Ze(0,k[S],$[S]),B=y?k[S]/2-P-W-F-E:M-W-F-E,V=y?-k[S]/2+P+W+H+E:L+W+H+E,U=e.elements.arrow&&Se(e.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,q=C[w]+B-Y-z,K=C[w]+V-Y,J=Ze(p?Math.min(I,q):I,O,p?Math.max(N,K):N);C[w]=J,D[w]=J-O}if(o){var G="x"===w?Oe.top:Oe.left,Q="x"===w?Oe.bottom:Oe.right,X=C[_],Z=Ze(X+m[G],X,X-m[Q]);C[_]=Z,D[_]=Z-X}e.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Re(i.placement),o=je(a),l=[Oe.left,Oe.right].indexOf(a)>=0?"height":"width";if(s&&r){var c=i.modifiersData[n+"#persistent"].padding,u=ke(s),d="y"===o?Oe.top:Oe.left,h="y"===o?Oe.bottom:Oe.right,p=i.rects.reference[l]+i.rects.reference[o]-r[o]-i.rects.popper[l],f=r[o]-i.rects.reference[o],g=Se(s),m=g?"y"===o?g.clientHeight||0:g.clientWidth||0:0,v=p/2-f/2,b=c[d],y=m-u[l]-c[h],w=m/2-u[l]/2+v,_=Ze(b,w,y),C=o;i.modifiersData[n]=((e={})[C]=_,e.centerOffset=_-w,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,s=i.element,r=void 0===s?"[data-popper-arrow]":s,a=i.padding,o=void 0===a?0:a;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Ne(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[n+"#persistent"]={padding:He("number"!=typeof o?o:We(o,Oe.basePlacements))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,a=Be(e,{elementContext:"reference"}),o=Be(e,{altBoundary:!0}),l=ti(a,n),c=ti(o,s,r),u=ei(l),d=ei(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const ni="aui-alignment-use-gpu",si={"top left":"top-start","top center":"top","top right":"top-end","right top":"right-start","right middle":"right","right bottom":"right-end","bottom right":"bottom-end","bottom center":"bottom","bottom left":"bottom-start","left bottom":"left-end","left middle":"left","left top":"left-start"};function ri(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function ai(t){return ri(t,"alignment")||"right middle"}function oi(t){let[e,i]=ai(t).split(" ");return{side:e,snap:i}}function li(t,e,i){const n="aui-alignment-side-"+e,s="aui-alignment-snap-"+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(s)||t.classList.add(s)}function ci(t){let e=function(t){let e=ri(t,"alignment-container")||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function ui(t,e){const i=oi(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=ai(t);return si[e]||"right"}(t):(i.snap=ci(e),n="submenu"===i.side?si["".concat("right"===i.snap?"left":"right"," top")]:si["".concat(i.side," ").concat(i.snap)]),n}const di={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function hi(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=oi(t),s=ui(t,e),r=di[s.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains(ni)}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:t=>{let{state:e}=t;e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={enabled:!0,fn:i.onUpdate}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return n.enabled&&n.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={fn:i.onEvents}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return this._triggerOnEvents&&(this._eventListenersEnabled?n.fn.enabled&&n.fn.enabled():n.fn.disabled&&n.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,s=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),r=s([e.top,i.paddingTop,i.borderTop]),o=s([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=r,t.offsets.popper.left+=o,t.offsets.popper.top+=r,t}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=ii(e,t,l),li(t,n.side,n.snap)}hi.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};var pi=hi;function fi(t){let e=new r.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var gi,mi,vi=0;function bi(t){if(gi=vi+++"",mi=t?t+gi:"aui-uid-"+gi,document.getElementById(mi)){if(mi=mi+"-"+(new Date).getTime(),document.getElementById(mi))throw new Error('Timestamped fallback ID "'+mi+'" exists.');return mi}return mi}a("id",bi);var yi=bi;function wi(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function _i(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Ci(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e&&e.type&&(e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1);t.isSubmenu&&!i?t.focusItem(0):t.focus()}var ki="unloaded",xi="loading",Ei="error";function Di(t,e){J(t).set("loading-state","success"),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?"".concat(e,' ="true"'):""}function i(e){return t[e]?"".concat(e,'="').concat(t[e],'"'):""}var n="aui-item-"+t.type;return"\n <".concat(n," ").concat(i("for")," ").concat(i("href")," ").concat(e("interactive"),"\n ").concat(e("checked")," ").concat(e("disabled")," ").concat(e("hidden"),">\n ").concat(E(t.content),"\n </").concat(n,">")})).join(""),i=t.label?'label="'.concat(t.label,'"'):"";return"\n <aui-section ".concat(i,">\n ").concat(e,"\n </aui-section>")})).join("\n")}(e),K.init(t),X(t,(function(e){document.activeElement===e&&Ci(t)}))}function Ti(t){J(t).set("loading-state",Ei),J(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML='\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>'.concat(I18n.getText("aui.dropdown.async.error"),"</p>\n </div>\n ")}function Ai(t){t.src&&J(t).get("loading-state")!==xi&&(!function(t){J(t).set("loading-state",xi),J(t).set("hasErrorBeenShown",!1),X(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML='\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> '.concat(I18n.getText("aui.dropdown.async.loading"),"\n </div>\n ")}(t),r.ajax(t.src).done((function(e,i,n){200===n.status?Di(t,e):Ti(t)})).fail((function(){Ti(t)})).always((function(){!function(t){X(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Si(t,e){return r(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Oi(t){return Si(t,(()=>!0))}function Ii(t){return Si(t,((t,e)=>!wi(e)))}function Ni(t){Oi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||wi(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Pi(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Mi(t,e){var i=e&&e.hasSubmenu&&e.hasSubmenu(),n="submenu auto"===t.getAttribute("data-aui-alignment");!i&&n&&function(t){var e=r(t),i=e.data("previous-data-aui-alignment");i?t.setAttribute("data-aui-alignment",i):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var s=t.hasAttribute("data-aui-alignment");i&&!n?(!function(t){var e=r(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):s||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Pi(t),t._auiAlignment=new pi(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}r(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(K.init(this),S("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),r(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=r(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const i=e.closest(".aui-dropdown2-trigger-group"),n=i.find(".aui-dropdown2-active");n.length&&e.is(".aui-dropdown2-trigger")&&(n.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const s=i.find(":focus");s.length&&e.is(".aui-dropdown2-trigger")&&s.blur()}));var Li=!1;function Ri(){Li=!0}function $i(t){Ot(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=r(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(".".concat(t)).addClass("aui-dropdown2-".concat(t))}))}(t),Ni(t),r(t).trigger("aui-dropdown2-show"),X(t,(function(e){_i(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(r(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Oi(t).removeClass("active aui-dropdown2-active"),X(t,(function(t){var e;e=!0===Li,Li=!1,e?(t.focus(),_i(t,t.hasSubmenu&&t.hasSubmenu())):_i(t,!1)})),delete t.isSubmenu,Q(t,null))}))}function ji(t){var e=r(t);function i(e){return r(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){i(e.target)&&(e.keyCode===Y.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Y.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Y.LEFT?t.isSubmenu&&(Ri(),t.hide(e),e.preventDefault()):e.keyCode===Y.ESCAPE?Ri():e.keyCode===Y.TAB&&(Ri(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!i(e.target))return;const n=e.currentTarget,s=e.keyCode,a=s===Y.ENTER,o=s===Y.SPACE;a&&r(n).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){var i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();if(!(e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive"))){var n=t;do{var s=Ot(n);n=Ot(n).below(),s.$el.is(".aui-dropdown2")&&s.hide(e)}while(n)}}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(i(e.target)){var n=e.currentTarget,s=n.hasSubmenu&&n.hasSubmenu();if(!e.isDefaultPrevented()&&!s){var r=Ot(t).above();r&&Ot(r).hide()}}}))}function Fi(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),$i(t),ji(t),r(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),r(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(r(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}r(window).on("resize",Object(Wt.debounce)((function(){r(".aui-dropdown2").each((function(t,e){K.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Hi={toggle:function(t){this.isVisible()?this.hide(t):this.show(t)},show:function(t){var e=this;return t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&Q(e,t.currentTarget),Ot(e).show(),X(e,(function(t){Mi(e,t)})),setTimeout((()=>Ci(e,t)),0),this},hide:function(){return Ot(this).hide(),this},focusNext:function(){var t,e=Ii(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=Ii(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=Ii(this);"number"==typeof t&&(t=e.get(t));const i=r(t);i.focus(),e.removeClass("active aui-dropdown2-active"),i.addClass("active aui-dropdown2-active")},isVisible:function(){return Ot(this).isVisible()}},Wi={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},Bi={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Vi={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new ft("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new ft("change",{bubbles:!0}))}},Ui={created:function(t){Wi.created(t)},removed:function(t){Wi.removed(t)}},zi=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const Yi=K("aui-item-link",{template:ce()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Wi,interactive:Bi,hidden:Ui,href:zi("href"),"item-id":zi("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),r(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),r(e).removeClass("aui-dropdown2-sub-trigger")}}}}),[qi,Ki]=["checkbox","radio"].map((t=>K("aui-item-".concat(t),{template:ce()('<span role="'.concat(t,'" class="aui-dropdown2-').concat(t,'" tabindex="-1"><content></content></span>')),attributes:{"item-id":zi("id"),disabled:Wi,interactive:Bi,checked:Vi,hidden:Ui}}))),Ji=K("aui-section",{template:ce()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=yi();var n=t.children[0],s=t.children[1];n.textContent=e.newValue,n.id=i,s.setAttribute("aria-labelledby",i)}},created:function(t){t.classList.add("aui-dropdown2-section")}}),Gi=K("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",Ot(t),J(t).set("loading-state",ki),K.init(t)},detached:function(t){fi(t).then((()=>Pi(t)))},attributes:{src:{}},prototype:Hi,events:{"aui-layer-show":function(t){var e=J(t).get("loading-state")===ki,i=J(t).get("hasErrorBeenShown");(e||i)&&Ai(t),J(t).get("loading-state")===Ei&&J(t).set("hasErrorBeenShown",!0)}}});K("aui-dropdown2",{type:K.type.CLASSNAME,created:Fi,prototype:Hi}),K("data-aui-dropdown2",{type:K.type.ATTRIBUTE,created:Fi,prototype:Hi}),K("aui-dropdown2-trigger",{type:K.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function i(i){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const s=document.getElementById(e);if(!s)return void p('Could not find a dropdown with id "'+e+'" in the DOM.');const a=r(t);return a.parent().hasClass("aui-buttons")&&s.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&s.classList.add("aui-dropdown2-in-header"),n?s.show(i):s.toggle(i),s.isSubmenu=t.hasSubmenu(),s}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):p('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href","#".concat(e)),r(t).on("aui-button-invoke",i).on("click",i).on("keydown",(function(e){if(e.currentTarget!==t)return;const n=e.keyCode===Y.ENTER||e.keyCode===Y.SPACE,s=e.keyCode===Y.RIGHT&&t.hasSubmenu(),r=(e.keyCode===Y.UP||e.keyCode===Y.DOWN)&&!t.hasSubmenu();n?i(e):(r||s)&&i(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=J(t).get("loading-state")===ki,i=J(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Ai(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;p('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),K("aui-dropdown2-sub-trigger",{type:K.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),K.init(t)}}),["checkbox","radio"].map((t=>K("aui-dropdown2-".concat(t),{type:K.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),de&&e.setAttribute("role",t)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.removeAttribute("checked"),r(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.setAttribute("checked",""),r(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var Qi=r(document),Xi=function(t){var e={};return e.$trigger=r(t.currentTarget),e.$content=Qi.find("#"+e.$trigger.attr("aria-controls")),e.triggerIsParent=0!==e.$content.parent().filter(e.$trigger).length,e.$shortContent=e.triggerIsParent?e.$trigger.find(".aui-expander-short-content"):null,e.height=e.$content.css("min-height"),e.isCollapsible=!1!==e.$trigger.data("collapsible"),e.replaceText=e.$trigger.attr("data-replace-text"),e.replaceSelector=e.$trigger.data("replace-selector"),e},Zi=function(t){if(t.replaceText){var e=t.replaceSelector?t.$trigger.find(t.replaceSelector):t.$trigger;t.$trigger.attr("data-replace-text",e.text()),e.text(t.replaceText)}},tn={"aui-expander-invoke":function(t){var e=r(t.currentTarget),i=Qi.find("#"+e.attr("aria-controls")),n=!1!==e.data("collapsible");"true"===i.attr("aria-expanded")&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=Xi(t);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),e.$content.get(0).removeAttribute("hidden"),Zi(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=Xi(t);"true"===e.$content.attr("aria-expanded")&&(Zi(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.get(0).setAttribute("hidden",""),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(t){r(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};Qi.on(tn,".aui-expander-trigger");function en(t){rn[t]=function(e,i){i||(i=e,e="#aui-message-bar"),i.closeable=null!==i.closeable&&!1!==i.closeable,i.title=(i.title||"").toString().trim();let n=function(t,e){let{id:i,closeable:n,fadeout:s,title:a,body:o}=t;const l=a?'<p class="title"><strong>'.concat(E(a),"</strong></p>"):"",c='<div class="aui-message">'.concat(l,"</div>"),u=r(c).append(r.parseHTML(o||"")).addClass(n?"closeable":"").addClass(s?"fadeout":"").addClass("aui-message-".concat(e));i&&(/[#\'\"\.\s]/g.test(i)?h("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):u.attr("id",i));return u}(i,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(n,i.insert,e),i.closeable&&nn(n),i.fadeout&&sn(n,i.delay,i.duration),n}}function nn(t){r(t||"div.aui-message.closeable").each((function(){var t,e=r(this),i=e.find(Zt),n=i.length>0?i.first():r(te);e.addClass("closeable"),e.append(n),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",Zt,(function(t){r(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Zt,(function(t){t.which!==Y.ENTER&&t.which!==Y.SPACE||(r(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function sn(t,e,i){e=void 0!==e?e:5e3,i=void 0!==i?i:500,r(t||"div.aui-message.fadeout").each((function(){var t=r(this),n=!1,s=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(i,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(100,1)}function l(){return!n&&!s}t.focusin((function(){n=!0,o()})).focusout((function(){n=!1,l()&&a()})).hover((function(){s=!0,o()}),(function(){s=!1,l()&&a()})),a()}))}var rn={setup:function(){nn(),sn()},makeCloseable:nn,makeFadeout:sn,createMessage:en};r.fn.closeMessage=function(){var t=r(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),r(document).trigger("aui-message-close",[this]))},en("generic"),en("error"),en("warning"),en("info"),en("confirmation"),en("change"),en("success"),en("hint");const an=K("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",rn[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});r((function(){rn.setup()})),M(rn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(rn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(rn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(rn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(rn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(rn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),a("messages",rn);var on="aui-flag-container",ln={body:"",close:"manual",title:"",type:"info"};function cn(t){(t=r.extend({},ln,t)).title=(t.title||"").toString().trim();var e=function(t){let{body:e,title:i,close:n,type:s}=t;const a=i?'<p class="title"><strong>'.concat(E(i),"</strong></p>"):"",o='<div class="aui-message">'.concat(a,"</div>"),l=r(o).append(r.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass("aui-message-".concat(s));return r('<div class="aui-flag" aria-live="polite"></div>').append(l)}(t);return function(t){t[0].close=function(){dn(t)}}(e),"auto"===t.close?(un(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),5e3)}(e)):"manual"===t.close&&un(e),function(){const t=hn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else r("body").prepend('<div id="aui-flag-container"></div>')}(),function(t){const e=hn();t.appendTo(e),F(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function un(t){var e=r(te);return e.on("click",(function(){dn(t)})),e.on("keypress",(function(e){e.which!==Y.ENTER&&e.which!==Y.SPACE||(dn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function dn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new ft("aui-flag-close",{bubbles:!0})),e}function hn(){return document.getElementById(on)}q("aui/flag",cn),a("flag",cn);var pn=cn;function fn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function gn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(i),!0).forEach((function(e){mn(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function mn(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const vn="aui-tooltip",bn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},yn="aui-tooltip",wn={gravity:"n",html:!1,live:!1,suppress:()=>!1};let _n;class Cn{constructor(t,e){this.triggerElement=t,this.$triggerElement=r(this.triggerElement),this.options=gn(gn({},wn),e),this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),kn.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,e.attr("aria-describedby",vn),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".".concat(yn),t):this.$triggerElement.off(".".concat(yn))}getFloatingTip(){const t=this.options;let e="function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"";return void 0===_n&&(_n=r('<div id="'.concat(vn,'" class="').concat("aui-tooltip",' assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>')),r(document.body).append(_n)),t.html?_n.find(".aui-tooltip-content").html(e.call(this.triggerElement)):_n.find(".aui-tooltip-content").text(e.call(this.triggerElement)),_n}show(){const t=this.triggerElement,e=this.getFloatingTip(),i=bn[this.options.gravity];clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(t)||(this.popperTimeout=setTimeout((()=>{const n=e.get(0);n.classList.remove("assistive"),this.popperInstance=ii(t,n,{placement:i,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),r(window).on("scroll.".concat(yn),(()=>this.hide()))}),300))}hide(){this.getFloatingTip().get(0).classList.add("assistive"),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),r(window).off("scroll.".concat(yn))}}const kn=new WeakMap,xn=(t,e)=>{let i=kn.get(t);return void 0===i&&(i=new Cn(t,e),kn.set(t,i)),i},En=t=>t.map((t=>"".concat(t,".").concat(yn))).join(" "),Dn=En(["mouseenter","focus"]),Tn=En(["click","mouseleave","blur"]);r.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return xn(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error("Method ".concat(n," does not exist on tooltip."));return i[n](),e}const i=t||{},n=function(){xn(this,i).show()},s=function(){xn(this,i).hide()},r=i.live;return void 0!==r?(i.$delegationRoot=e,e.on(Dn,r,n),e.on(Tn,r,s),e):(e.on(Dn,n),e.on(Tn,s),e)};var An=function(t){function e(){return r('<div class="aui-dropdown2-section">')}var i=e();r("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(i);var n=e(),s=r("<ul />").appendTo(n);return r.each(t,(function(t,e){var i=r("<li />").attr({class:e.styleClass||""}).appendTo(s),n=r("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);e.icon&&r("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(n),e.selected&&n.addClass("aui-dropdown2-checked")})),r("<div />").append(i).append(n).html()},Sn=function(t,e){var i=t+"-dropdown",n=r("<select />").attr({name:t,multiple:"multiple"}).html(e),s=r("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=r("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return r("<div />").append(n).append(a).append(s).html()};function On(t){var e=r(t.target);In(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function In(t,e,i){var n=t.$select.find("option").filter((function(){var t=r(this);return t.attr("value")===e&&t.prop("selected")!==i}));n.length&&(n.prop("selected",i),t.$select.trigger("change"))}function Nn(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Rn(t).length<1}))}function Pn(t){return t.map((function(){var t=r(this);return{value:t.val(),label:t.text(),icon:t.data("icon"),styleClass:t.data("styleClass"),title:t.attr("title"),disabled:t.attr("disabled"),selected:t.prop("selected")}}))}function Mn(t){t.$dropdown.html(An(function(t){return Pn(t.getOptions())}(t))),Nn(t)}function Ln(t){var e=$n(t),i=function(t){return 0===Rn(t).length}(t)?function(t){return r(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(i)}function Rn(t){return Pn(t.getSelectedOptions())}function $n(t){return r.map(Rn(t),(function(t){return t.label}))}const jn=K("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||yi("aui-checkbox-multiselect-");t.innerHTML=Sn(e,t.innerHTML),t.$select=r("select",t).on("change",(function(){Ln(t),Nn(t)})),t.$dropdown=r(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",On.bind(t)).on("aui-dropdown2-item-uncheck",On.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=r(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":$n(t).join(", ")}(t)}}),Ln(t),Mn(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){In(this,t,!0)},unselectOption:function(t){In(this,t,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(t){r("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),Ln(this),Mn(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),Ln(this),Mn(this)}}});q("aui/checkbox-multiselect",jn);var Fn=jn,Hn=i(19),Wn=i.n(Hn).a;var Bn=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var s=t.getAttribute(i);return n((function(){return document.getElementById(s)}),'an element with id set to "'+s+'" was not found')}function n(e,i){return!!e()||(t?p(i,t):p(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}};const Vn="-input";function Un(t){return t.querySelector("label")}var zn=K("aui-label",{template:ce()("<label><content></content></label>"),created:function(t){t._label=Un(t)},attached:function(t){Bn(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?Un(t).setAttribute("for","".concat(e.newValue).concat(Vn)):Un(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?Un(t).setAttribute("form",e.newValue):Un(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}}),Yn=(i(24),r.fn.select2),qn="aui-select2-container",Kn="aui-select2-drop aui-dropdown2",Jn="aui-has-avatar";r.fn.auiSelect2=function(t){var e;if(r.isPlainObject(t)){var i=r.extend({},t),n=i.hasAvatar?" "+Jn:"";i.containerCssClass=qn+n+(i.containerCssClass?" "+i.containerCssClass:""),i.dropdownCssClass=Kn+n+(i.dropdownCssClass?" "+i.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(i)}else e=arguments.length?arguments:[{containerCssClass:qn,dropdownCssClass:Kn}];return Yn.apply(this,e)},r.fn.spin=I((function(t,e){let i={size:"small"};return"object"==typeof e&&(i=r.extend(i,e)),"object"==typeof t&&(i=r.extend(i,t)),"string"==typeof t&&(i.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=r(this),e=t.data();if(e){const n=r("<aui-spinner filled></aui-spinner>");n.attr("size",i.size),n.css("color",i.color),t.spinStop(),t.append(n),K.init(this),e.spinner=n}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),r.fn.spinStop=I((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=r(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});var Gn=K("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||E(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=E(this.textContent),t}}}),Qn=i(1),Xn=i.n(Qn),Zn=Xn.a.Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,Object(Wt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=Object(Wt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=Object(Wt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return Xn.a.Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=Object(Wt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=Object(Wt.pluck)(s,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});a("ProgressiveDataSet",Zn);var ts=Zn,es=Xn.a.Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function is(){this._suggestions=[],this._activeIndex=-1}is.prototype={onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){var t=this._activeIndex,e=0===t?t:t-1;return this.highlight(e),this},highlightNext:function(){var t=this._activeIndex,e=t===this._suggestions.length-1?t:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};var ns=is;function ss(t,e){return t+"-"+e}function rs(t,e){this.el=t,this.anchor=e}function as(t){r(t).find(".aui-select-active").removeClass("aui-select-active")}rs.prototype={render:function(t,e,i){this.currListId=i;var n="";if(t.length){var s=e;t.forEach((function(t){var e=t.getLabel(),r=t.get("img-src"),a=r?'<img src="'.concat(encodeURI(r),'"/>'):"",o=t.get("new-value")?" (<em>".concat(I18n.getText("aui.select.new.value"),"</em>)"):"";n+='<li role="option" class="aui-select-suggestion" id="'.concat(ss(i,s),'">').concat(a).concat(e).concat(o,"</li>"),s++})),e?this.el.querySelector("ul").innerHTML+=n:this.el.querySelector("ul").innerHTML=n}else e||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'.concat(I18n.getText("aui.select.no.suggestions"),"</li>"));return this},setActive:function(t){as(this.el),r(this.el).find("#"+ss(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;r((t=this).el).css("min-width",r(t.anchor).outerWidth()),Ot(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new pi(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!0,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;as(this.el),Ot(this.el).hide(),(t=this)._auiAlignment&&t._auiAlignment.disable()},destroy:function(){var t;this.hide(),(t=this)._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment),delete this.currListId},isVisible:function(){return r(this.el).is(":visible")}};var os=rs,ls=ce()('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left" hidden>\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function cs(t){t._select.selectedIndex=-1,function(t){t._input.removeAttribute("style"),r(t._input).removeClass("aui-select-has-inline-image")}(t)}function us(t){return t._suggestionModel.getNumberOfResults()}function ds(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function hs(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function ps(t){var e=us(t)?0:-1;t._suggestionModel.highlight(e),hs(t)}function fs(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function gs(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){r(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function ms(t,e){if(e){var i,n=document.createElement("option"),s=t._select,r=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,t._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ft("change",{bubbles:!0}))}}function vs(t){ms(t,t._suggestionModel.highlighted()),gs(t),ps(t)}function bs(t){return new es(t.serialize())}function ys(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(bs(n))}return e}function ws(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function _s(t,e){return r.map(e,(function(t){return t.id})).indexOf(t)}function Cs(t){t._progressiveDataSet=new ts(ys(t),{model:es,matcher:ds,queryEndpoint:t._queryEndpoint,maxResults:20}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),J(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),J(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(J(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||J(t).set("should-cancel-response",!1));e.query||(e.results=ys(t));var i=-1!==_s(t._input.value,e.results),n=!t._input.value;if(!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new Gn;e.setAttribute("value",t._input.value);var i=bs(e);return i.set("new-value",!0),i}(t)),!J(t).get("should-include-selected")){var s=_s(t.value,e.results);s>=0&&e.results.splice(s,1)}const r=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=t._suggestionModel.highlighted()||e.results[0];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){t._input.setAttribute("aria-activedescendant",ws(t))}),50)),t._input.setAttribute("aria-expanded","true"),!t._isSync&&r&&t._suggestionsView.getActive()&&J(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function ks(t){var e=t.value?"":t._input.value,i=""===t._input.value;J(t).set("should-include-selected",i),fs(t,!0,e)}function xs(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&J(t).set("should-cancel-response",!0)}function Es(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function Ds(t){xs(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==Es(t);if(i||n)if(e)cs(t);else{var s=Es(t);void 0===s?cs(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(-1)}(t),hs(t)}const Ts=K("aui-select",{template:ls,created:function(t){t._listId=yi(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new os(t._dropdown,t._input),t._suggestionModel=new ns,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((function(e){return t.id===e.id}))||i.push(t)})),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",ws(t))}},attached:function(t){K.init(t),Cs(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),t.setAttribute("tabindex","-1"),function(t){r(t._dropdown).on("mouseover","li",(function(e){us(t)&&t._suggestionModel.highlight(r(e.target).index())}))}(t),function(t){let e=!1;r(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),r(t._dropdown).on("mousedown","li",(function(i){if(!us(t))return!1;t._suggestionModel.highlight(r(i.target).index()),vs(t),t._suggestionsView.hide(),r(t).closest(".aui-layer").length>0&&(e=!0),t._input.removeAttribute("aria-activedescendant")}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&ms(t,bs(e))}(t),ps(t),gs(t)},detached:function(t){r(document).off("aui-close-layers-on-outer-click"),fi(t).then((()=>{hs(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+Vn)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){Ds(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||J(t).set("prevent-open-on-button-click",!0)},"click input":function(t){ks(t)},"click button":function(t){var e=J(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(J(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?(J(t).set("should-include-selected",!0),fs(t,!0)):J(t).get("button-clicked-prevent-dropdown-hide")?J(t).set("button-clicked-prevent-dropdown-hide",!1):hs(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Y.ESCAPE)return xs(t),void hs(t);t._suggestionsView.isVisible()&&us(t)?e.keyCode===Y.ENTER?(xs(t),vs(t),e.preventDefault()):e.keyCode===Y.TAB?(!function(t){t._suggestionsView.isVisible()&&vs(t)}(t),n=!0):e.keyCode===Y.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Y.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Y.UP&&e.keyCode!==Y.DOWN||(ks(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new ft("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new es({value:t,label:t})),ms(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Ds(this),this},focus:function(){return this._input.focus(),ks(this),this}}});q("aui/select",Ts),a("select",Ts);var As=Ts;function Ss(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}var Os={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Ss,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,s=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:s?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function Is(t){return t._input||(t._input=t.querySelector("input"))}function Ns(t){return t._spinner||(t._spinner=new Jt)}function Ps(t,e){Is(e).removeAttribute(t)}function Ms(t,e,i){Is(e).setAttribute(t,i.newValue)}function Ls(t){return{removed:Ps.bind(this,t),fallback:Ms.bind(this,t)}}const Rs={removed:function(t){Ps.call(this,"form",t),t._formId=null},fallback:function(t,e){Ms.call(this,"form",t,e),t._formId=e.newValue}};var $s={removed:Ps.bind(void 0,"id"),fallback:function(t,e){const i="".concat(e.newValue).concat(Vn);Is(t).setAttribute("id",i)}},js={removed:function(t){Ps.call(this,"value",t),Is(t).value="on"},fallback:function(t,e){Ms.call(this,"value",t,e)}},Fs={removed:function(t){Is(t).checked=!1},fallback:function(t){Is(t).checked=!0}},Hs={removed:function(t){Is(t).removeAttribute("aria-label")},fallback:function(t,e){Is(t).setAttribute("aria-label",e.newValue)}};function Ws(t){Is(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Y.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Is(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===ae)try{document.querySelector(":focus-within"),ae=!0}catch(t){ae=!1}return ae}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}var Bs=K("aui-toggle",{template:ce()('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(t){Is(t),Ns(t).setAttribute("size",Bt.SMALL.name),r(Is(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Ws(t),t.hasAttribute("checked")&&Is(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){Bn(t).attributeExists("label")},events:{click:function(t,e){var i=Is(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new ft("change",{bubbles:!0}))}(t)),Ss(t,"checked",i.checked)}},attributes:{id:$s,checked:Fs,disabled:Ls("disabled"),form:Rs,name:Ls("name"),value:js,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Is(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Is(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Hs},prototype:{focus:function(){return Is(this).focus(),this},get checked(){return Is(this).checked},set checked(t){Is(this).checked!==t&&(Is(this).checked=t,Ss(this,"checked",t))},get disabled(){return Is(this).disabled},set disabled(t){return Ss(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return Rs.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Is(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Is(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Is(this).getAttribute("aria-busy")},set busy(t){const e=Is(this),i=Ns(this);var n,s;return Ss(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),r(this.querySelector(".aui-toggle-tick")).append(i)):r(this.querySelector(".aui-toggle-cross")).append(i)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),i.parentNode&&i.parentNode.removeChild(this._spinner)),s=!!t,(n=this).id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'.concat(n.id,'"]')),(function(t){t.disabled=s})),t}}});function Vs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Us(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Vs(Object(i),!0).forEach((function(e){zs(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function zs(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ys(t,e){X(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),Q(t,e)}function qs(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};i=Us(Us({},i),{onCreate:()=>{ar(t)&&dt().enter(r(t),r(e))},onEvents:{enabled:()=>{ar(t)&&dt().enter(r(t))},disabled:()=>{ar(t)&&dt().exit(r(t))}}}),t._auiAlignment=new pi(t,e,i)}}function Ks(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Js(t){return J(t).get("mouse-inside")||t.contains(document.activeElement)}function Gs(t,e){var i=e.currentTarget;i&&(Ys(t,i),qs(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Qs(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(e){e.open&&!Ot(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){Js(e)||(e.open=!1),e._closingTimeout=null}),t))}}const Xs={click(t,e){t.open&&!Ot(t).isPersistent()?t.open=!1:(Ys(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:Gs,mouseleave:Qs(1e3),focus:Gs,blur:Qs(0)};function Zs(t){var e=t.currentTarget;J(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function tr(t){var e=t.currentTarget;J(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function er(t){var e=t.currentTarget;"hover"===e.respondsTo&&Qs(1e3)(e)}function ir(t){J(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",Zs),t.removeEventListener("mouseleave",tr),t.removeEventListener("blur",er),"hover"===t.respondsTo&&(J(t).set("mouse-inside",!1),t.addEventListener("mouseenter",Zs),t.addEventListener("mouseleave",tr),t.addEventListener("blur",er))}function nr(t,e){return"".concat(t,".nested-layer-").concat(e)}function sr(t){return Ot(t).show(),!0===Ot(t).isVisible()}function rr(t){return Ot(t).hide(),!1===Ot(t).isVisible()}function ar(t){return"hover"!==t.respondsTo}function or(t){t.__initialised||(Ot(t),r(t).on({["".concat(gt,"show")]:function(){const t=this;!function(t){let e=r(t);const i=t.id,n=t=>e.find(G(t.target)).length<1;r(document).on(nr("aui-layer-show",i),(t=>{n(t)||e.attr("persistent","")})).on(nr("aui-layer-hide",i),(t=>{n(t)||e.removeAttr("persistent")})).on(nr("select2-opening",i),(()=>{e.attr("persistent","")})).on(nr("select2-close",i),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),X(t,(function(e){qs(t,e),e.setAttribute("aria-expanded","true")}))},["".concat(gt,"hide")]:function(){const t=this;!function(t){const e=t.id;r(document).off(nr("aui-layer-hide",e)).off(nr("aui-layer-show",e)).off(nr("select2-opening",e)).off(nr("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):Ks(t),X(t,(function(t){t.setAttribute("aria-expanded","false")})),Q(t,null)}}),t.__initialised=!0)}const lr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},cr=K("aui-inline-dialog",{prototype:{get open(){return Ot(this).isVisible()},set open(t){this.__propUpdate=!0,t?sr(this):rr(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Os.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=lr.attribute;return Os.computeEnumValue(lr,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Os.setEnumAttribute(this,lr,t),e!==this.respondsTo&&ir(this)},message:function(t){return function(t,e){var i={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[t.respondsTo];i&&i.indexOf(e.type)>-1&&Xs[e.type](t,e)}(this,t),this}},attributes:{open:function(t,e){if(or(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){sr(t)||Ss(t,"open",!1)}if("removed"===e.type){rr(t)||Ss(t,"open",!0)}}},"responds-to":function(t,e){Os.computeEnumValue(lr,e.oldValue)!==Os.computeEnumValue(lr,e.newValue)&&ir(t)}},created:or,attached:function(t){Bn(t).attributeExists("id"),t.setAttribute("tabindex",0),t.setAttribute("role","dialog"),X(t,(function(e){e.setAttribute("aria-expanded",t.open)})),Z(t,(function(t){t.setAttribute("aria-haspopup","true")})),ir(t)},detached:function(t){fi(t).then((()=>{Ks(t),Z(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){r('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});q("aui/inline-dialog2",cr),a("InlineDialog2",cr);var ur=cr;function dr(t){if(this.$el=r(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new dr(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){hr(r(this).children(".aui-nav")).expand()}));var i=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return i.on("click",(function(){hr(r(this).siblings(".aui-nav")).toggle()})),i.each((function(){var t=r(this).parent("li[aria-expanded]"),e=r(this).find(".aui-icon"),i="true"===t.attr("aria-expanded");e.text(i?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}dr.prototype.isNested=function(){return 1===this.$treeParent.length},dr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},dr.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(I18n.getText("aui.words.collapse")),this},dr.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(I18n.getText("aui.words.expand")),this},dr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const hr=ht("navigation",dr),pr=K("aui-nav",{type:K.type.CLASSNAME,attached:function(t){new dr(t)},detached:function(t){r(t).removeData()}});a("navigation",hr);var fr=hr;function gr(t,e,i){let{currentProgress:n,value:s}=i;const a=r(t),o=r(e);"number"==typeof s&&s<=1&&s>=0&&(o.trigger("aui-progress-indicator-before-update",[n,s]),a.one("transitionend webkitTransitionEnd",(function(){o.trigger("aui-progress-indicator-after-update",[n,s])})),function(t,e,i){F(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(a,o,s))}function mr(t){var e=r(t).first(),i=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),F(e),i.css("width","")}const vr={indeterminate:!1,max:1,val:0};function br(t){return Object(Wt.isNumber)(t)&&Object(Wt.isFinite)(t)&&!Object(Wt.isNaN)(t)}function yr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const i=parseFloat(t);return br(i)?i:Number(e)}function wr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number(parseFloat(t).toFixed(e))}function _r(t){const{val:e,max:i}=t,n=function(t){return t>0?t:vr.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=wr(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:wr(100*r,2)}}function Cr(t){const{val:e,valAsFraction:i,max:n}=_r(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),mr(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),gr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function kr(t,e){t._data.val=yr(e.newValue,e.oldValue||vr.val),Cr(t)}function xr(t,e){t._data.max=yr(e.newValue,e.oldValue||vr.max),Cr(t)}const Er=K("aui-progressbar",{template(t){t._data.max=yr(t.getAttribute("max"),vr.max),t._data.val=yr(t.getAttribute("value"),vr.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=_r(t._data),r=t._data.indeterminate?"":'data-value="'.concat(n,'"');t.innerHTML='<div class="aui-progress-indicator"\n '.concat(r,'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="').concat(e,'"\n aria-valuemax="').concat(i,'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ').concat(s,'%"></span>\n </div>')},attached(t){Cr(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:vr.val,fallback:function(t,e){if(t._updating)return!1;kr(t,e)}},max:{value:vr.max,fallback:function(t,e){if(t._updating)return!1;xr(t,e)}}},prototype:{get _data(){return this.__data||(this._data=Object(Wt.defaults)({},vr))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Cr(this)},get value(){const{val:t}=_r(this._data);return t},set value(t){if(!br(t))return!1;const e={newValue:wr(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,kr(this,e)},get max(){const{max:t}=_r(this._data);return t},set max(t){if(!br(t))return!1;const e={newValue:wr(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,xr(this,e)}}}),Dr={update:I((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var i=r(t).first(),n=i.children(".aui-progress-indicator-value"),s=i.attr("data-value"),a=!s,o=parseFloat(s)||0,l=s&&o===e;if(l){l=o===100*(parseFloat(n.get(0).style.width)||0)}if(!l)return a&&n.css("width",0),gr(n,i,{currentProgress:o,value:e}),i}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:I(mr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};a("progressBars",Dr);var Tr=Dr;i(25);const Ar={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Sr(t,e){let i=Object.assign({},Ar,e);return t.find("th").each((function(t,e){const n=r(e);i.headers[t]={},n.hasClass("aui-table-column-unsortable")?i.headers[t].sorter=!1:(n.attr("tabindex","0"),n.wrapInner("<span class='aui-table-header-content'/>"),n.hasClass("aui-table-column-issue-key")&&(i.headers[t].sorter="issue-key"))})),t.tablesorter(i)}let Or={setup:function(){r.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],s="..........",r="000000";let a=(i+s).slice(0,s.length);return a+=(r+n).slice(-r.length),a},type:"text"}),r.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),r.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),r(".aui-table-sortable").each((function(){Sr(r(this))}))},setTableSortable:function(t,e){return Sr(t,e)}};r(Or.setup),a("tablessortable",Or);function Ir(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var i=r(t),n=e||!1;i.each((function(){var t=r(this);t.attr("id")||t.attr("id",yi(n))}))}a("_addID",Ir);var Nr=Ir;function Pr(t){return(t=r(t)).prop("scrollWidth")>t.prop("clientWidth")}a("isClipped",Pr);var Mr=Pr,Lr=window.skateTemplateHtml;function Rr(t){let e=r(t),i=String(e.attr("href")||"").trim();return 0===i.indexOf("#")?i.substr(1):null}function $r(t){let e=Rr(t);return e?document.getElementById(e):null}var jr={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,i){e+=r(i).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i='<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-'.concat(e,'"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-').concat(e,'"\n href="#aui-tabs-responsive-dropdown-').concat(e,'">...</a>\n </li>');return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,i){function n(t,e,i){return t+e<=i}for(var s=0,a=0;n(s,i,e)&&a<t.length;a++){s+=r(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,i){for(var n=i.find("a").attr("aria-controls"),s=r("#"+n),a=this.findNewVisibleTabs(t,e.outerWidth(),i.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=r(t[l]);this.moveTabToResponsiveDropdown(c,s,i)}return r(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,i){function n(t){return t>0}for(var s=0;n(e)&&s<t.length;s++){var a=r(t[s]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,i),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Fr(t){var e=r(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var i=$r(e);if(i){var n=r(i);n.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var s=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=r(document.getElementById(s));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=n.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&n.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:n})}else p("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Hr(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Wr(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return"_internal-aui-tabs-"+(e||"")+(i&&"true"!==i?"-"+i:"")}function Br(t){Kr.change(r(t.target).closest("a")),t&&t.preventDefault()}function Vr(t){t.forEach((function(t,e){!function(t,e){var i=r(t),n=i.find(".tabs-menu").first(),s=n.find("li:not(.aui-tabs-responsive-trigger-item)"),a=n.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=r(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=jr.totalTabsWidth(s,c)>i.outerWidth();if(!u&&d&&(a=jr.createResponsiveDropdownTrigger(n,e),c=jr.createResponsiveDropdown(i,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=jr.moveVisibleTabs(s.toArray(),i,a),p=jr.totalVisibleTabWidth(h),f=i.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");jr.moveInvisibleTabs(g.toArray(),f,a)}i.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Br),n.is(":visible")&&n.hide().show()}u&&!d&&(c.find("li").each((function(){jr.moveTabOutOfDropdown(r(this),a)})),jr.removeResponsiveDropdown(c,a))}(t,e)}))}function Ur(){return r('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function zr(t){var e=r(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var i=e.children("ul.tabs-menu");i.attr("role","tablist"),i.children("li").attr("role","presentation"),i.find("> .menu-item a").each((function(){var t,e,i;e=r(t=this),i=$r(e),Rr(t)||p('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),i?(Nr(e),e.attr("role","tab"),r(i).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):h("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),i.on("click.aui-tabs","a",Br),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(qr)}(t)}}function Yr(){var t=r(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){zr(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Hr(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(Wr(n));if(r){var a=s.querySelector('a[href$="'.concat(r,'"]'));a&&Fr(a)}}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function qr(t){t.setAttribute("role","tabpanel")}var Kr={setup:function(){!function(){const t=Object(Wt.debounce)(Vr,200);t(Ur()),r(window).on("resize.aui-tabs",(()=>t(Ur())))}(),Yr(),r(".aui-tabs.vertical-tabs").find("a").each((function(){var t=r(this);t.attr("title")||Mr(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof r?t:document.querySelector(t),i=r(e).first(),n=i.closest(".aui-tabs");Fr(i),Hr(n)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=Rr(t);i&&window.localStorage.setItem(Wr(e),"#"+i)}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}(i)}};r(Kr.setup);const Jr=K("aui-tabs",{created:function(t){r(t).addClass("aui-tabs horizontal-tabs"),K.init(t),zr(t)},template:Lr('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e,i=r((e=this,e.querySelectorAll("aui-tabs-pane"))).index(t);return i>-1&&Kr.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[i].children[0]),this}}}),Gr=K("aui-tabs-tab",{extends:"li",created:function(t){r(t).addClass("menu-item")},template:Lr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),Qr=K("aui-tabs-pane",{attached:function(t){var e=r(function(t){return r(t).closest("aui-tabs").get(0)}(t)),i=r(t),n=e.find("aui-tabs-pane").index(i),s=new Gr,a=r(s);i.addClass("tabs-pane"),s.firstChild.setAttribute("href","#"+t.id),Lr.wrap(s).textContent=i.attr("title"),0===n&&i.addClass("active-pane"),i.hasClass("active-pane")&&a.addClass("active-tab"),i.siblings("ul").append(s)},template:Lr("<content></content>")});a("tabs",Kr);const Xr="_aui-form-notification-initialised",Zr="data-aui-notification-wait",ta="data-aui-notification-info",ea="data-aui-notification-error",ia=[ea,"data-aui-notification-success",Zr,ta];function na(t){sa(t)||(!function(t){t.addClass(Xr),ra(t)}(t),la(t))}function sa(t){return t.hasClass(Xr)}function ra(t,e){e=e||aa(t),oa(t)===ta&&t.after(function(t){if(t.length>1){let e=t.map((t=>"<li>".concat(t,"</li>"))).join("");return'<div class="description"><ul>'.concat(e,"</ul></div>")}return'<div class="description">'.concat(t,"</div>")}(e))}function aa(t){var e=oa(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function oa(t){var e;return ia.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function la(t){const e=r(t);if(!sa(e))return;const i=oa(e);da(e,i===Zr);const n=aa(e);n&&i===ea?ca(e,n):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(ea)||e.parent().find(".error").remove()}function ca(t,e){let i=ua(t,"error");i.length>0&&i.remove(),t.after(function(t){let e=t.map((t=>'<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">'.concat(t,"</span>").concat(t,"</li>"))).join("");return'<div class="error"><ul>'.concat(e,"</ul></div>")}(e))}function ua(t,e){return t.parent().find(".".concat(e))}function da(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const ha=S("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});K("data-aui-notification-field",{attached:function(t){ha(),na(r(t))},attributes:function(){const t={};return ia.forEach((function(e){t[e]=la})),t}(),type:K.type.ATTRIBUTE}),q("aui/form-notification");var pa=["displayfield","watchfield","when","novalidate","state"],fa=[];var ga={register:function(t,e){var i;if("string"==typeof t)i=t;else{var n=function(t){var e=!1;return t.some((function(t){var i=-1!==r.inArray(t,pa);return i&&(e=t),i})),e}(t);if(n)return h('Validators cannot be registered with the argument "'+n+'", as it is a reserved argument.'),!1;i="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var s={validatorFunction:e,validatorTrigger:i};return fa.push(s),s},validators:function(){return fa}};q("aui/form-validation/validator-register",ga);var ma=ga;function va(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),s=parseInt(t.args("maxlength"),10);if(n&&s&&n===s&&!i&&e!==n){const e=ka("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=ka("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=ka("maxlength",t.args);t.invalidate(e)}else t.validate()}function ba(t){return"password"===t.getAttribute("type")}function ya(t,e){var i=t.match(e);return!!i&&t===i[0]}function wa(t){var e=ka("pattern",t.args);ya(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function _a(t){var e=ka("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Ca(t){var e=ka("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),s=t.args("max");n&&i<parseInt(n,10)?t.invalidate(ka("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(ka("max",t.args)):t.validate()}}function ka(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:xa[t];var s=i;i||(s=[e(t)]);var r,a=e(t+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}ma.register(["maxlength","minlength"],va),ma.register("[maxlength],[minlength]",va),ma.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=ka("matchingfield",t.args,[e,n]);(ba(t.el)||ba(i))&&(s=ka("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),ma.register(["doesnotcontain"],(function(t){var e=ka("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),ma.register(["pattern"],wa),ma.register("[pattern]",wa),ma.register(["required"],_a),ma.register("[required]",_a),ma.register(["min","max"],Ca),ma.register("[min],[max]",Ca),ma.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=ka("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=e.split(""),r="";s.forEach((function(t){var e=n.hasOwnProperty(t);r+=e?n[t]:t}));var a=new RegExp(r+"$","i");ya(t.el.value,a)?t.validate():t.invalidate(i)})),ma.register(["minchecked","maxchecked"],(function(t){var e=r(t.el).find(":checked").length,i=!t.args("minchecked")||e>=t.args("minchecked"),n=!t.args("maxchecked")||e<=t.args("maxchecked"),s=ka("minchecked",t.args),a=ka("maxchecked",t.args);i&&n?t.validate():i?n||t.invalidate(a):t.invalidate(s)}));var xa={minlength:I18n.getText("aui.validation.message.minlength"),maxlength:I18n.getText("aui.validation.message.maxlength"),exactlength:I18n.getText("aui.validation.message.exactlength"),matchingfield:I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:I18n.getText("aui.validation.message.doesnotcontain"),pattern:I18n.getText("aui.validation.message.pattern"),required:I18n.getText("aui.validation.message.required"),validnumber:I18n.getText("aui.validation.message.validnumber"),min:I18n.getText("aui.validation.message.min"),max:I18n.getText("aui.validation.message.max"),dateformat:I18n.getText("aui.validation.message.dateformat"),minchecked:I18n.getText("aui.validation.message.minchecked"),maxchecked:I18n.getText("aui.validation.message.maxchecked")};q("aui/form-validation/basic-validators");const Ea="data-aui-notification-",Da="invalid",Ta="valid",Aa="validating",Sa="unvalidated",Oa="_aui-form-validation-initialised",Ia="_aui-internal-field-state-changed";function Na(t){(function(t){return t.hasClass(Oa)})(t)||(!function(t){t.addClass(Oa),ra(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=Ma(t,"when"),i=Ma(t,"watchfield");(i?t.add("#"+i):t).on(e,(function(){Pa(t)}))}(t)}(t),$a(t,Sa))}function Pa(t){if(!Ma(t,"novalidate"))return function(t){!function(t){ja(Ha(t),"none")}(t);var e=function(t){var e=[];return La().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);$a(t,Aa);var i=function(t,e){var i=[];return e.forEach((function(e){var n=La()[e].validatorFunction,s=new r.Deferred;n(function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){$a(t,Da,i),e.reject()},args:Ra(t),el:t[0],$el:t};return M(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,s)),i.push(s)})),i}(t,e),n=r.when.apply(r,i);return n.done((function(){$a(t,Ta)})),n}(t);$a(t,Ta)}function Ma(t,e){var i=t.attr("data-aui-validation-"+e);return i||(i={when:"change"}[e]),i}function La(){return ma.validators()}function Ra(t){return function(e){return t.attr("data-aui-validation-"+e)||t.attr(e)}}function $a(t,e,i){if(t.attr("data-aui-validation-state",e),e!==Sa){t.trigger(r.Event(Ia));var n=Ha(t),s={validating:"wait",invalid:"error",valid:"success"},a=s[e];e===Aa?function(t){setTimeout((function(){Wa(t)===Aa&&(ja(t,"wait"),da(t,!0))}),500)}(t):ja(n,a,i)}}function ja(t,e,i){const n=function(t){return t.is("[data-aui-notification-wait]")}(t);!function(t){Fa(t,"wait"),da(t,!1),Fa(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Fa(t,"error");else{const n=t.attr(Ea+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr(Ea+e,JSON.stringify(a)),"error"===e&&ca(t,a)}}function Fa(t,e){t.removeAttr(Ea+e),"error"===e&&ua(t,e).remove()}function Ha(t){var e=Ma(t,"displayfield");return void 0===e?t:r("#"+e)}function Wa(t){return t.attr("data-aui-validation-state")}function Ba(t,e){e.preventDefault(),t.one(Ia,(function(){t.trigger("submit")}))}function Va(t,e){var i="[data-aui-validation-state="+e+"]";return t.find(i)}r(document).on("submit",(function(t){var e=t.target,i=r(e),n=function(t){return a=t.find("."+Oa),e=r.map(a,(function(t){return Wa(r(t))})),i=-1!==e.indexOf(Da),n=-1!==e.indexOf(Sa),s=-1!==e.indexOf(Aa),i?Da:n?Sa:s?Aa:Ta;var e,i,n,s;var a}(i);if(n===Sa)Ba(i,t),function(t){Va(t,Sa).each((function(t,e){Ua.validate(r(e))}))}(i);else if(n===Aa)Ba(i,t);else if(n===Da)t.preventDefault(),function(t){Va(t,Da).first().focus()}(i);else if(n===Ta){var s=r.Event("aui-valid-submit");i.trigger(s),s.isDefaultPrevented()&&t.preventDefault()}}));const Ua={register:ma.register,validate:function(t){Pa(t=r(t))}};K("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Na(r(t)),K.init(t)},type:K.type.ATTRIBUTE}),q("aui/form-validation",Ua),a("formValidation",Ua);var za=I((function(t,e){var i,n;return function(){var s=arguments,r=this,a=function(){n=t.apply(r,s),r=s=null};return clearTimeout(i),i=setTimeout(a,e),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}),Ya=za;a("debounce",za),a("debounceImmediate",I((function(t,e){var i,n=null;return function(){var s=this,r=arguments,a=function(){n=s=r=null};return null===n&&(i=t.apply(s,r)),clearTimeout(n),n=setTimeout(a,e),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const qa=r(window);function Ka(t){var e,i=this;this.element=t,this.$element=r(t),this.index=r("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=r(i.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}Ka.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=r(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=r(this).parent(),i=e.outerWidth(!0);t.totalWidth+=i,t.menuItems.push({$element:e,outerWidth:i})})),this.rightMostNavItemIndex=this.menuItems.length-1,qa.on("resize",this._resizeHandler=Ya((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){qa.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id="aui-responsive-header-dropdown-".concat(this.index),K.init(e);var i=document.createElement("aui-section");i.id="aui-responsive-header-dropdown-list-".concat(this.index),K.init(i),e.appendChild(i);var n,s,a=(n=e,(s=document.createElement("a")).setAttribute("class","aui-dropdown2-trigger"),s.setAttribute("href","#"),s.id=n.id+"-trigger",s.setAttribute("aria-controls",n.id),s.innerHTML=I18n.getText("aui.words.more"),s);return t.appendChild(a),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=r(t).outerWidth(!0),r(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=r("#aui-responsive-header-dropdown-".concat(this.index)),i=this.rightMostNavItemIndex+1,n=this.rightMostNavItemIndex+t,s=i;s<=n;s++){var a=this.menuItems[s].$element,o=a.children("a");if(o.attr("aria-controls")){var l=r(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=ce.a.wrap(this.$moreMenu[0].querySelector("aui-section")),i=this.rightMostNavItemIndex,n=this.rightMostNavItemIndex-t+1,s=i;s>=n;s--){var a=this.menuItems[s].$element,o=a.children("a");K.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=r(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}K.init(l),ce.a.wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new ft("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};var Ja=function(t){let e=t._header;return e instanceof Ka||(e=new Ka(t),e.init(),t._header=e),e};function Ga(){r(".aui-header").each((function(){Ja(this)}))}r(Ga);const Qa={};Qa.setup=I(Ga,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),a("responsiveheader",Qa);var Xa=K("aui-header",{type:K.type.CLASSNAME,created:function(t){Ja(t)}}),Za=i(20),to=i.n(Za);const eo=t=>{let{dateFormat:e,$field:i,onSelect:n,hide:s,onChangeMonthYear:r}=t;return{dateFormat:e,defaultDate:i.val(),maxDate:i.attr("max"),minDate:i.attr("min"),nextText:">",onSelect:function(t){i.val(t),i.trigger("change"),s(),n&&n.call(this,t)},onChangeMonthYear:r,prevText:"<"}},io=(t,e)=>{let i,n,s,a=!1;const o=r("body"),l=e=>{let i=r(e.target),s=i.closest(n).length||i.is(t),o=i.closest(".ui-datepicker-header").length;if(!s&&!o||e.keyCode===Y.ESCAPE)return h(),void(a=!1);i.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{i.get(0).open||d()},d=()=>{i.get(0).open=!0},h=()=>{i.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:t=>{let{$field:c}=t;return i=(t=>{let{horizontalAlignment:e,datePickerUUID:i}=t;const n=new ur;n.id=i;const s=r(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment","bottom ".concat(e)),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(c),datePickerUUID:e}),s=c.closest("aui-inline-dialog").get(0),s&&(s._datePickerPopup=i,r(s).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),s&&s._datePickerPopup&&delete s._datePickerPopup}))),o.append(i),n=i,i},handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(i.refresh,0)},getCalendarNode:()=>i.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},no=function(t){const e=t.getField(),i=t.getOptions(),n=t.getUUID();let s;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=io(e,n),g=t=>{r(t.currentTarget).val()&&s.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==s)return t(e)},n=i((()=>{s.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{p(),e.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{s.datepicker("setDate",t)})),t.getDate=i((()=>s.datepicker("getDate"))),t.setMin=i((t=>s.datepicker("option","minDate",t))),t.setMax=i((t=>s.datepicker("option","maxDate",t)))}i.languageCode in so.prototype.localisations||(i.languageCode="");const y=so.prototype.localisations;if(e.attr("aria-controls",n),void 0===s){void 0!==e.attr("step")&&d("WARNING: The date picker polyfill currently does not support the step attribute!");const n=eo({dateFormat:i.dateFormat,$field:e,onSelect:i.onSelect,hide:t.hide,onChangeMonthYear:u}),o=r.extend(void 0,n,y);i.firstDay>-1&&(o.firstDay=i.firstDay),s=(t=>{let{config:e,popupContents:i,getCalendarNode:n,hint:s}=t;const a=r(n());let o;return a.datepicker(e),s&&(o=r("<div/>").addClass("aui-datepicker-hint"),o.append("<span/>").text(s),i.append(o)),a})({config:o,popupContents:a({$field:e}),getCalendarNode:h,hint:i.hint}),f(),e.on("propertychange keyup input paste",g),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}e.on("focus click",o),e.attr("placeholder",i.placeholder),e.prop("type","text"),e.attr("data-aui-dp-uuid",n)};function so(t,e){let i={};const n=yi("date-picker"),s=r(t),a={getUUID:()=>n,getField:()=>s,getOptions:()=>i,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!so.prototype.browserSupportsDateField,e=!1!==i.overrideBrowserDefault;(t||e)&&no(a)},reconfigure:t=>{i=r.extend(void 0,so.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function ro(t,e){const i=r.extend({nextText:">",prevText:"<"},e),n=r(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(i);if(i.hint){const t=r("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(i.hint),n.append(t)}return n.reconfigure=t=>{n.datepicker("destroy"),n.datepicker(t)},n.destroy=()=>{n.datepicker("destroy")},n}so.prototype.browserSupportsDateField=function(){if(void 0===re){var t=document.createElement("input");t.setAttribute("type","date"),re="date"===t.type}return re}(),so.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:r("html").attr("lang")||"en-AU",dateFormat:to.a.W3C},so.prototype.localisations={dayNames:[I18n.getText("ajs.datepicker.localisations.day-names.sunday"),I18n.getText("ajs.datepicker.localisations.day-names.monday"),I18n.getText("ajs.datepicker.localisations.day-names.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names.thursday"),I18n.getText("ajs.datepicker.localisations.day-names.friday"),I18n.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[I18n.getText("ajs.datepicker.localisations.day-names-min.sunday"),I18n.getText("ajs.datepicker.localisations.day-names-min.monday"),I18n.getText("ajs.datepicker.localisations.day-names-min.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.thursday"),I18n.getText("ajs.datepicker.localisations.day-names-min.friday"),I18n.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:I18n.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===I18n.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[I18n.getText("ajs.datepicker.localisations.month-names.january"),I18n.getText("ajs.datepicker.localisations.month-names.february"),I18n.getText("ajs.datepicker.localisations.month-names.march"),I18n.getText("ajs.datepicker.localisations.month-names.april"),I18n.getText("ajs.datepicker.localisations.month-names.may"),I18n.getText("ajs.datepicker.localisations.month-names.june"),I18n.getText("ajs.datepicker.localisations.month-names.july"),I18n.getText("ajs.datepicker.localisations.month-names.august"),I18n.getText("ajs.datepicker.localisations.month-names.september"),I18n.getText("ajs.datepicker.localisations.month-names.october"),I18n.getText("ajs.datepicker.localisations.month-names.november"),I18n.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===I18n.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:I18n.getText("ajs.datepicker.localisations.year-suffix")};const ao="aui-datepicker",oo=t=>function(e){let i=this.data(ao);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(ao,i)),i};r.fn.datePicker=oo(so),a("DatePicker",so),r.fn.calendarWidget=oo(ro),a("CalendarWidget",ro);var lo=so,co=(i(27),i(9),i(10),i(28),i(32),{NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",STATUS:"aui-restfultable-status"}),uo=Xn.a.View,ho=Xn.a.View,po=Xn.a.View,fo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"},go=(i(33),{REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"});const mo='<aui-spinner size="small"></aui-spinner>',vo="aui-spinner";function bo(t){0===t.find(vo).length&&t.find(".".concat(co.STATUS)).append(mo)}function yo(t){t.find(".".concat(co.STATUS," ").concat(vo)).remove()}var wo=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),_o=Xn.a.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=r(this.el),this._event=go,this.classNames=co,this.dataKeys=fo,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?r("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return wo&&(e=this.$el.find(":submit")).length&&(t=r("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var t,e;return wo&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return bo(this.$el),this},hideLoading:function(){return yo(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,i=this;if(document.activeElement!==window&&r(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return i.trigger(i._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){i.isUpdateMode?i.trigger(i._event.UPDATED,i.model,t):(i.trigger(i._event.CREATED,i.model.toJSON()),i.model=new i._modelClass,i.render({errors:{},values:{}}),i.trigger(i._event.FOCUS)),i.trigger(i._event.SUBMIT_FINISHED)},error:function(t,e,n){400===n.status&&(i.renderErrors(e.errors),i.trigger(i._event.VALIDATION_ERROR,e.errors)),i.trigger(i._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return r("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&r.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&r('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),r.each(this.columns,(function(i,n){var s,a,o=t.values[n.id],l=[{name:n.id,ariaLabel:n.inputAriaLabel?n.inputAriaLabel:n.header,value:o,allowEdit:n.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+n.id,o),s=e.isCreateRow&&n.createView?new n.createView({model:e.model}).render(l[0]):n.editView?new n.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=r("<td />"),"object"==typeof s&&s.done?s.done((function(t){a.append(t)})):a.append(s),n.styleClass&&a.addClass(n.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=r('<td class="aui-restfultable-operations" />');return t?e.append(r('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(r('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(r('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(r('<td class="'.concat(this.classNames.STATUS,'" />')))}});const Co=document||{},ko=r(Co);function xo(t,e){ko.trigger(t,e)}function Eo(t,e,i){r(e).trigger(t,i),xo(t,i),e.id&&xo(e.id+"-"+t,i)}var Do=Xn.a.Model.extend({sync:function(t,e,i){var n=this,s=i.error;return i.error=function(t){n._serverErrorHandler(t,this),s&&s.apply(this,arguments)},Xn.a.sync.apply(Xn.a,arguments)},save:function(t,e){var i,n=this,s=(e=e||{}).error,a=e.success;e.error=function(t,e){var i=r.parseJSON(e.responseText||e.data);s&&s.call(n,n,i,e)},this.isNew()?Xn.a.Model.prototype.save.call(this,t,e):t&&((i=new(Do.extend({url:this.url()}))({id:this.id})).save=Xn.a.Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),a&&a.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,i=this.url();return r.ajax({url:i,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},i=this.toJSON();if(r.each(t,(function(t,n){i[t]?i[t]&&i[t]!==n&&("object"==typeof n&&Object(Wt.isEqual)(n,i[t])||(e[t]=n)):"string"==typeof n?""!==r.trim(n)&&(e[t]=n):r.isArray(n)?0!==n.length&&(e[t]=n):e[t]=n})),!Object(Wt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var i;400!==t.status&&(i=r.parseJSON(t.responseText||t.data),Eo(go.SERVER_ERROR,this,[i,t,e]))},fetch:function(t){t=t||{},this.clear(),Xn.a.Model.prototype.fetch.call(this,t)}}),To=Do,Ao=Xn.a.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=go,this.classNames=co,this.dataKeys=fo,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=r(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return r(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return r(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return bo(this.$el),this},hideLoading:function(){return yo(this.$el),this},edit:function(t){var e;return e=r(t.target).is("."+this.classNames.EDITABLE)?r(t.target).attr("data-field-name"):r(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return r("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),i=r("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),n=r('<td class="'.concat(this.classNames.STATUS,'" />'));return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&r('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),r.each(this.columns,(function(i,n){var s,a=r("<td />"),o=e[n.id],l=n.fieldName||n.id,c=[{name:l,value:o,allowEdit:n.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+n.id,o),s=n.readView?new n.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==n.allowEdit){var u=r("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(s).attr("data-field-name",l);a=r("<td />").append(u).appendTo(t.$el),s&&r.trim(s)||(a.addClass(t.classNames.NO_VALUE),u.html(r("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(s);n.styleClass&&a.addClass(n.styleClass),a.appendTo(t.$el)})),this.$el.append(i).append(n).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),So=Xn.a.View.extend({initialize:function(t){var e=this;if(e.options=r.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=go,e.classNames=co,e.dataKeys=fo,this.$table=r(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=r("<thead/>"),this.$theadRow=r("<tr />").appendTo(this.$thead),this.$tbody=r("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var i=r.isFunction(t.header)?t.header():t.header;void 0===i&&(h("You have not specified [header] for column ["+t.id+"]. Using id for now..."),i=t.id),e.$theadRow.append("<th>"+i+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,i){var n=r("<div/>").attr("class",i.attr("class")).addClass(e.classNames.MOVEABLE);return i.children().each((function(){var t=r(this),e=parseInt(0+t.css("border-left-width"),10),i=parseInt(0+t.css("border-right-width"),10),s=t[0].clientWidth+e+i;n.append(r("<div/>").html(t.html()).attr("class",t.attr("class")).width(s))})),n=r("<div class='aui-restfultable-readonly'/>").append(n),n.css({left:i.offset().left}),n.appendTo(document.body),n},start:function(t,i){var n=i.helper[0].clientHeight,s=i.placeholder.find("td");i.item.addClass(e.classNames.MOVEABLE).children().each((function(t){r(this).width(s.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'">&nbsp;</td>';i.placeholder.html(a).css({height:n,visibility:"visible"}),e.getRowFromElement(i.item[0]).trigger(e._event.MODAL)},stop:function(t,i){r(i.item[0]).is(":visible")&&(i.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),i.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(i.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!r(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=r('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;r.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):r.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,i=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var n=e.options.reverseOrder?i(t.nextItem):i(t.prevItem);r.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(n),complete:function(){t.row.hideLoading()},success:function(t){Eo(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=r.parseJSON(t.responseText||t.data);Eo(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this;return new(this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(){this.tableRows=t.getRows();for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return Xn.a.Collection.prototype.remove.apply(this,i),this.tableRows=void 0,this}}))([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),Eo(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=r('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+mo+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),Eo(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Eo(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return r(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=r("<tr>").addClass(this.classNames.NO_ENTRIES).append(r("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var i=r(this).data(t.dataKeys.ROW_VIEW);i&&e.push(i)})),e},_renderRow:function(t,e){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){Eo(this._event.EDIT_ROW,{},[this,s]),s.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==r.length?i.insertBefore(r[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof Ao&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=r.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=t.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||To,allowEdit:!0,views:{editRow:_o,row:Ao},Collection:Xn.a.Collection.extend({url:t.resources.self,model:t.model||To}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});So.ClassNames=co,So.CustomCreateView=uo,So.CustomEditView=ho,So.CustomReadView=po,So.DataKeys=fo,So.EditRow=_o,So.EntryModel=To,So.Events=go,So.Row=Ao,a("RestfulTable",So);var Oo=So;function Io(t){return r(t).clone().removeAttr("id")}a("clone",Io);var No=Io,Po=window.DocumentTouch,Mo="ontouchstart"in window||Po&&document instanceof Po;function Lo(t,e,i,n){t.find("[".concat(n,"]")).attr(n,((t,n)=>e===n?i:void 0))}function Ro(t,e){let i=r("<div></div>");i.append(t),i.find("[id]").each(((t,n)=>{const s=e("".concat(n.id,"-"));!function(t,e,i){Lo(t,e,i,"aria-controls"),Lo(t,e,i,"aria-owns")}(i,n.id,s),n.id=s}))}function $o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function jo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?$o(Object(i),!0).forEach((function(e){Fo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):$o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Fo(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ho(t){return t.offset().top}function Wo(t){var e;(this.$el=r(t),this.$el.length)&&(this.$body=r("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new zo,function(t){if(!r(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const i=r(e.target);Go(t,i)}))})(t),Mo&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText="@media ".concat(t," { #testMedia { width: 1px; } }"),document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&r("body").addClass("aui-page-sidebar-touch");var e=null,i=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};r(window).on("scroll resize",i),i(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(r.Event(Bo+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),r(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var n=function(e){a(e)&&t.toggle()};function s(t){return t.keyCode===Y.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Y.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||(e=t.target,"value"in e||e.isContentEditable));var e}function o(t){return t.keyCode===Y.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}r(document).on("keypress",n),t._remove=function(){r(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),r(document).off("keypress",n),r(window).off("scroll resize",i)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(jo(jo({},Xo),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=r(this),i=!1===t.isCollapsed();return!0===Ko(e)||i}})),t.$el.tooltip(jo(jo({},Xo),{},{live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var i=e.target,n=qo(i);if(!n)return;var a=r(n);s(e)&&n.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||s(t)&&c(t.target,a))&&(i.focus(),r(this).off("keydown"),Jo())})))}}))}(this),r((e=this).collapsedTriggersSelector).each((function(){var t=r(this);Go(e,t)})))}var Bo="_aui-internal-sidebar-";function Vo(t){return r.map(t.split(" "),(function(t){return Bo+t})).join(" ")}function Uo(){return document.querySelectorAll(Wo.prototype.inlineDialogSelector)}function zo(){this.inlineDialog=null}function Yo(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function qo(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function Ko(t){return 0!==Yo(t).length}function Jo(){var t=Uo();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function Go(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),Ko(e))){var i=document.createElement("aui-inline-dialog"),n=yi("sidebar-submenu");return e.attr("aria-controls",n),e.attr("data-aui-trigger",""),K.init(e),i.setAttribute("id",n),i.setAttribute("alignment","right top"),i.setAttribute("hidden",""),i.setAttribute("contained-by","viewport"),t.isCollapsed()&&i.setAttribute("responds-to","hover"),r(i).addClass(Wo.prototype.inlineDialogClass),document.body.appendChild(i),K.init(i),function(t,e,i){i.addEventListener("aui-layer-show",(function(n){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(n)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(n)){var s=r.Event("aui-sidebar-submenu-before-show");e.trigger(s,i),s.isDefaultPrevented()?n.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=Qo;var i=t.is("a")?t.text():t.children(".aui-nav-heading").text(),n=r(e).find(".aui-navgroup-inner");function s(t){const e=No(t);return Ro(e,yi),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}n.children(".aui-nav-heading").attr("title",i).children("strong").text(i),s(Yo(t)).appendTo(n)}(e,i)}}else n.preventDefault()})),i.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,i),i}}Wo.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Vo(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Wo.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Vo(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Wo.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Wo.prototype.setTopPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",t>Ho(this.$el)),this},Wo.prototype.setPosition=I(Wo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Wo.prototype.setLeftPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Wo.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:r.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:r.noop,wide:r.noop},e.expanded.narrow={narrow:r.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:r.noop};var i=this.isCollapsed()?"collapsed":"expanded",n=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",s=this.isViewportNarrow(t)?"narrow":"wide";return e[i][n][s](this),this},Wo.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=r.Event(Bo+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),r(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(r.Event(Bo+"collapse-end",{isResponsive:t}))),this},Wo.prototype.collapse=function(){return this._collapse(!1)},Wo.prototype._expand=function(t,e){var i=r.Event(Bo+"expand-start",{isResponsive:e});if(this.$el.trigger(i),i.isDefaultPrevented())return this;var n=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",n),this.$el.toggleClass("aui-sidebar-fly-out",n),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),r(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(r.Event(Bo+"expand-end",{isResponsive:e})),this},Wo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Wo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Wo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Wo.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Wo.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Wo.prototype.reflow=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.innerWidth,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.pageXOffset;var r=Ho(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,r),this.setTopPosition(t))}s!==this._previousScrollLeft&&this.setLeftPosition(s);var c="false"!==this.$el.attr("data-aui-responsive");if(c)this.responsiveReflow(a,i);else{var u=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",u)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Wo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},Wo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Wo.prototype.collapsedTriggersSelector=[Wo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Wo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Wo.prototype.tooltipClassName="aui-sidebar-section-tooltip",Wo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Wo.prototype.inlineDialogSelector="."+Wo.prototype.inlineDialogClass,zo.prototype.submenu=function(t){return tl(),Yo(t)},zo.prototype.hasSubmenu=function(t){return tl(),Ko(t)},zo.prototype.submenuHeadingHeight=function(){return tl(),34},zo.prototype.isShowing=function(){return tl(),Wo.prototype.isSubmenuVisible()},zo.prototype.show=function(t,e){tl(),function(t){qo(t).open=!0}(e)},zo.prototype.hide=function(){tl(),Jo()},zo.prototype.inlineDialogShowHandler=function(){tl()},zo.prototype.inlineDialogHideHandler=function(){tl()},zo.prototype.moveSubmenuToInlineDialog=function(){tl()},zo.prototype.restoreSubmenu=function(){tl()},Wo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Uo(),(function(t){return t.open}))},Wo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Qo='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var Xo={gravity:"w",title:function(){var t=r(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var Zo=ht("sidebar",Wo);r((function(){Zo(".aui-sidebar")}));var tl=S("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});a("sidebar",Zo);var el=Zo;i(34),i(35);function il(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Y.ESCAPE&&i.is(":visible")&&u.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=r.extend({},t,arguments[3])),t=r.extend({},e,t);var i=r("<div></div>").addClass("aui-popup");t.id&&i.attr("id",t.id);var n=2600;r(".aui-dialog").each((function(){var t=r(this);n=t.css("z-index")>n?t.css("z-index"):n}));var s=function e(s,r){return t.width=s=s||t.width,t.height=r=r||t.height,i.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(s/2)+"px",width:s,height:r,"z-index":parseInt(n,10)+2}),e}(t.width,t.height);r("body").append(i),i.hide(),c(i);var a=r(".aui-blanket"),o=function(t,e){var i=r(t,e);return!!i.length&&(i.focus(),!0)},l=function(e){if(0===r(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var i=":input:visible:enabled:first";o(i,r(".dialog-page-body",e))||o(i,r(".dialog-button-panel",e))||o(i,r(".dialog-page-menu",e))}},u={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&s(e,i),this.show()},show:function(){var e=function(){r(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),B(),0!==(a=r(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){i.is(":visible")&&u.hide()})),i.show(),il.current=this,l(i),r(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){r(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===r(".aui-dialog:visible").length&&V();var e=document.activeElement;this.element.has(e).length&&e.blur(),r(document).trigger("hideLayer",["popup",this]),il.current=null,this.enable()},element:i,remove:function(){i.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=r("<div class='dialog-blanket'> </div>").css({height:i.height(),width:i.width()}),i.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return u}var nl=function(){function t(t,e,i,n){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=r("<button></button>").html(e).addClass("button-panel-button"),n&&this.item.addClass(n),"function"==typeof i&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,i,n,s){t.buttonpanel||t.addButtonPanel(),s||(s="#"),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=r("<a></a>").html(e).attr("href",s).addClass("button-panel-link"),n&&this.item.addClass(n),"function"==typeof i&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function i(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==e&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function n(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=i("left","button"),t.prototype.moveDown=t.prototype.moveRight=i("right","button"),t.prototype.remove=n("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var s=function(t,e,i,n,s){i instanceof r||(i=r(i)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=r("<button></button>").html(e).addClass("item-button"),s&&(this.button[0].id=s),this.item=r("<li></li>").append(this.button).addClass("page-menu-item"),this.body=r("<div></div>").append(i).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,n&&this.body.addClass(n);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(d("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};s.prototype.select=function(){this.button.click()},s.prototype.moveUp=s.prototype.moveLeft=i("left","panel"),s.prototype.moveDown=s.prototype.moveRight=i("right","panel"),s.prototype.remove=n("panel"),s.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},s.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=r("<div></div>").addClass("dialog-components"),this.body=r("<div></div>").addClass("dialog-page-body"),this.menu=r("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,i){var n={};+t||(t=(n=Object(t)).width,e=n.height,i=n.id),this.height=e||480,this.width=t||640,this.id=i,n=r.extend({},n,{width:this.width,height:this.height,id:this.id}),this.popup=il(n),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=r("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new s(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=r("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,s){return new e(this,t,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),_("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),_("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),_("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(t+"").replace(r,(function(t,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&e.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&e.push(d[h][n][r]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=r(window).height()-62-52-100,i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(i).body.outerHeight())),i!==this.page[this.curpage].curtab&&this.getPanel(i).body.css({display:"none"});for(i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=r(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();nl=N(nl,"Dialog constructor",{alternativeName:"Dialog2"}),il=N(il,"Dialog popup constructor",{alternatveName:"Dialog2"}),a("Dialog",nl),a("popup",il);const sl=!1;var rl=-1!==navigator.platform.indexOf("Mac"),al=-1!==navigator.userAgent.indexOf("Safari"),ol=/^(backspace|tab|r(ight|eturn)|s(hift|pace|croll)|c(trl|apslock)|alt|pa(use|ge(up|down))|e(sc|nd)|home|left|up|d(el|own)|insert|f\d\d?|numlock|meta)/i;const ll=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function cl(t){var e=[],i=r.Callbacks();function n(t){!il.current&&i&&i.fire(t)}function s(t){t.preventDefault()}function a(t){(t&&t.split?r.trim(t).split(" "):[t]).forEach((function(t){!function(t){var i=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(ol);n?(i+=n[0],t=t.substring(n[0].length)):s?(e.push(i+s[0]),t=t.substring(s[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(i)?"keydown":"keypress";e.push(i),r(document).on(a,sl,i,n),r(document).on(a+" keyup",sl,i,s)}(t)}))}function o(t,e,i){return i?e+=" ("+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=")"}return a(t),cl.makeShortcut({executor:i,bindKeys:a,addShortcutsToTitle:function(t){for(var i=r(t),n=i.attr("title")||"",s=e.slice(),a=i.data("boundKeyCombos")||[],l=i.data("kbShortcutAppended")||"",c=!l,u=c?n:n.substring(0,n.length-l.length);s.length;){var d=s.shift();a.some((function(t){return Object(Wt.isEqual)(d,t)}))||(l=o(d.slice(),l,c),c=!1)}rl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),i.attr("title",u+l),i.data("kbShortcutAppended",l),i.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=r(t),i=e.data("kbShortcutAppended");if(i){var n=e.attr("title");e.attr("title",n.replace(i,"")),e.removeData("kbShortcutAppended"),e.removeData("boundKeyCombos")}},keypressHandler:n,defaultPreventionHandler:s})}cl.makeShortcut=function(t){var e=t.executor,i=t.bindKeys,n=t.addShortcutsToTitle,s=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(i,n){var s=(n=n||{}).focusedClass||"focused",a=!n.hasOwnProperty("wrapAround")||n.wrapAround,o=!n.hasOwnProperty("escToCancel")||n.escToCancel;return e.add((function(){const e=r(i);let n=e.filter("."+s);const l=0===n.length?void 0:{transition:!0};o&&r(document).one("keydown",(function(t){t.keyCode===Y.ESCAPE&&n&&n.removeClass(s)})),n.length&&n.removeClass(s),n=t(n,e,a),n&&n.length>0&&(n.addClass(s),n.moveTo(l),n.is("a")?n.focus():n.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,i){var n;return i&&0===t.length?e.eq(0):(n=r.inArray(t.get(0),e))<e.length-1?(n+=1,e.eq(n)):i?e.eq(0):t})),moveToPrevItem:c((function(t,e,i){var n;return i&&0===t.length?e.filter(":last"):(n=r.inArray(t.get(0),e))>0?(n-=1,e.eq(n)):i?e.filter(":last"):t})),click:function(t){return l.push(t),n(t),e.add((function(){const e=r(t);ll(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),n(t),e.add((function(){var e=r(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),n(t),e.add((function(){const e=r(t);e.length>0&&(ll(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),n(t),e.add((function(e){var i=r(t);i.length>0&&(i.focus(),i.moveTo&&i.moveTo(),i.is(":input")&&e.preventDefault())})),this},or:function(t){return i(t),this},unbind:function(){r(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)s(l[t]);l=[]}}},cl.fromJSON=function(t,e){var i=[];return t&&r.each(t,(function(t,n){const s=n.op,a=n.param;let o;if("execute"===s||"evaluate"===s)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){p("When using a parameter array, array must be in strict JSON format: "+a)}r.isArray(o)||p("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];r.each(n.keys,(function(){var t=this;e&&rl&&(t=r.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var n=cl(t);n[s].apply(n,o),i.push(n)}))})),i},r(document).on("iframeAppended",(function(t,e){r(e).load((function(){r(e).contents().on("keyup keydown keypress",(function(t){al&&"keypress"===t.type||r(t.target).is(":input")||r.event.trigger(t,arguments,document,!0)}))}))})),a("whenIType",cl);var ul=cl;const{FocusManager:dl,InlineDialog2:hl,LayerManager:pl,ProgressiveDataSet:fl,clone:gl,debounce:ml,debounceImmediate:vl,dim:bl,escapeHtml:yl,formValidation:wl,id:_l,isClipped:Cl,keyCode:kl,layer:xl,messages:El,populateParameters:Dl,params:Tl,responsiveheader:Al,select:Sl,tablessortable:Ol,tabs:Il,undim:Nl,_addID:Pl}=window.AJS,{contextPath:Ml}=window.AJS}])}));
101
+ */s=[i(2),i(10),i(17),i(16),i(18),i(5),i(9)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",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},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,r=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1})),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),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},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.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(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,r,a=this.options,o=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?o=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(o=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?o=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(o=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==o&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),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"),i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].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(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,a=r+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||e+u>r&&e+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!s)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,r,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){a.push(this)}for(o.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,r,a,o,l,c,u=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=t(h[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(d.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=t(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,s,r;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,s,r,a,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,e[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[d]-l)<s&&(s=Math.abs(e[d]-l),r=this.items[n],this.direction=c?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.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 e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,r=e.pageX,a=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].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,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})})?n.apply(e,s):n)||(t.exports=r)},function(t,e){jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},function(t,e){!function(t){function e(t){this.num=0,this.timer=t>0&&t}function i(i){if(t.isPlainObject(i.data)||t.isArray(i.data)||"string"==typeof i.data){var s,r=i.handler,a={timer:700,combo:[]};"string"==typeof(s=i.data)?a.combo=[s]:t.isArray(s)?a.combo=s:t.extend(a,s),a.combo=t.map(a.combo,(function(t){return t.toLowerCase()})),i.index=new e(a.timer),i.handler=function(e){if(this===e.target||!/textarea|select|input/i.test(e.target.nodeName)&&"true"!==t(e.target).prop("contenteditable")){var s="keypress"!==e.type?t.hotkeys.specialKeys[e.which]:null,o=String.fromCharCode(e.which).toLowerCase(),l="",c={};e.altKey&&"alt"!==s&&(l+="alt+"),e.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==s&&(l+="meta+"),e.shiftKey&&"shift"!==s&&(l+="shift+"),e.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+t.hotkeys.shiftNums[s||o]]=!0);var u=i.index,d=a.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),r.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(t,e){for(var i=t.split(" "),n=0,s=i.length;n<s;n++)if(e[i[n]])return!0;return!1}t.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},t.each(t.hotkeys.keypressKeys,(function(e,i){t.hotkeys.shiftNums[i]=i})),e.prototype.val=function(){return this.num},e.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(t.proxy(e.prototype.reset,this),this.timer)),this.num++},e.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},t.each(["keydown","keyup","keypress"],(function(){t.event.special[this]={add:i}}))}(jQuery)},function(t,e){jQuery.fn.moveTo=function(t){var e,i=jQuery.extend({transition:!1,scrollOffset:35},t),n=this,s=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<s||jQuery(window).scrollTop()+i.scrollOffset>s)&&jQuery(window).height()>i.scrollOffset){if(e=jQuery(window).scrollTop()+i.scrollOffset>s?s-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:s-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:e},1e3,(function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating})),this;var r=jQuery("html, body");return r.is(":animated")&&(r.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(e),setTimeout((function(){jQuery(document).trigger("moveToFinished",n)}),100),this}return jQuery(document).trigger("moveToFinished",this),this}},function(t,e,i){"use strict";i.r(e),i.d(e,"format",(function(){return g})),i.d(e,"version",(function(){return v})),i.d(e,"bind",(function(){return y})),i.d(e,"unbind",(function(){return w})),i.d(e,"trigger",(function(){return _})),i.d(e,"$",(function(){return Lt})),i.d(e,"toInit",(function(){return $t})),i.d(e,"log",(function(){return d})),i.d(e,"error",(function(){return p})),i.d(e,"warn",(function(){return h})),i.d(e,"banner",(function(){return Ht})),i.d(e,"dialog2",(function(){return oe})),i.d(e,"DropdownEl",(function(){return Gi})),i.d(e,"ItemLinkEl",(function(){return Yi})),i.d(e,"ItemRadioEl",(function(){return Ki})),i.d(e,"ItemCheckboxEl",(function(){return qi})),i.d(e,"SectionEl",(function(){return Ji})),i.d(e,"flag",(function(){return pn})),i.d(e,"CheckboxMultiselectEl",(function(){return Fn})),i.d(e,"FancyFileInput",(function(){return Wn})),i.d(e,"LabelEl",(function(){return zn})),i.d(e,"SelectEl",(function(){return As})),i.d(e,"ToggleEl",(function(){return Bs})),i.d(e,"InlineDialogEl",(function(){return ur})),i.d(e,"MessageEl",(function(){return an})),i.d(e,"navigation",(function(){return fr})),i.d(e,"NavigationEl",(function(){return pr})),i.d(e,"progressBars",(function(){return Tr})),i.d(e,"ProgressBarEl",(function(){return Er})),i.d(e,"SpinnerEl",(function(){return Jt})),i.d(e,"TabContainerEl",(function(){return Jr})),i.d(e,"TabPaneEl",(function(){return Qr})),i.d(e,"TabItemEl",(function(){return Gr})),i.d(e,"I18n",(function(){})),i.d(e,"Header",(function(){return Xa})),i.d(e,"DatePicker",(function(){return lo})),i.d(e,"CalendarWidget",(function(){return ro})),i.d(e,"RestfulTable",(function(){return Oo})),i.d(e,"sidebar",(function(){return el})),i.d(e,"whenIType",(function(){return ul})),i.d(e,"FocusManager",(function(){return dl})),i.d(e,"InlineDialog2",(function(){return hl})),i.d(e,"LayerManager",(function(){return pl})),i.d(e,"ProgressiveDataSet",(function(){return fl})),i.d(e,"clone",(function(){return gl})),i.d(e,"debounce",(function(){return ml})),i.d(e,"debounceImmediate",(function(){return vl})),i.d(e,"dim",(function(){return bl})),i.d(e,"escapeHtml",(function(){return yl})),i.d(e,"formValidation",(function(){return wl})),i.d(e,"id",(function(){return _l})),i.d(e,"isClipped",(function(){return Cl})),i.d(e,"keyCode",(function(){return kl})),i.d(e,"layer",(function(){return xl})),i.d(e,"messages",(function(){return El})),i.d(e,"populateParameters",(function(){return Dl})),i.d(e,"params",(function(){return Tl})),i.d(e,"responsiveheader",(function(){return Al})),i.d(e,"select",(function(){return Sl})),i.d(e,"tablessortable",(function(){return Ol})),i.d(e,"tabs",(function(){return Il})),i.d(e,"undim",(function(){return Nl})),i.d(e,"_addID",(function(){return Pl})),i.d(e,"contextPath",(function(){return Ml}));var n=i(2),s=i.n(n),r=window.jQuery||window.Zepto||s.a;function a(t,e){return"object"!=typeof window.AJS&&(window.AJS={}),window.AJS[t]=e}var o=i(6),l=i.n(o);function c(t,e){var i=r(t);return void 0===e&&(e=!0),i.each((function(){this.disabled=!e}))}function u(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],console,arguments)}}l()("checkbox",{type:l.a.type.CLASSNAME,attached:function(t){s()("input[type=checkbox]",t).each((function(t,e){s()('<span class="aui-form-glyph"></span>').insertAfter(e)}))},detached:function(t){s()(".aui-form-glyph",t).remove()}}),l()("radio",{type:l.a.type.CLASSNAME,attached:function(t){s()("input[type=radio]",t).each((function(t,e){s()('<span class="aui-form-glyph"></span>').insertAfter(e)}))},detached:function(t){s()(".aui-form-glyph",t).remove()}}),a("enable",c),a("inlineHelp",(function(){r(document).on("click",".icon-inline-help",(function(){var t=r(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var d=u("log"),h=u("warn"),p=u("error");function f(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,g=0;g<u.length;g++){var m=u[g].match(r);if(null!=m){var v=parseInt(m[1],10);if(c<v){if(h){l=h;break}l=m[3];break}if(c==v&&"#"==m[2]){l=m[3];break}g==u.length-1&&(l=m[3]),h=m[3]}else d=!0}d&&p('The format "'+e+'" from message "'+t+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=f.apply(null,b)}}return l},o=function(t){for(var e=!1,i=-1,n=0,s=0;s<t.length;s++){var r=t.charAt(s);if("'"==r&&(e=!e),!e)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(t.substring(0,s+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,s)),a}}return null},l=function(t){var i=arguments,n="";if(!t)return n;for(var s=o(t);s;)t=t.substring(s[0].length),n+=s[1].replace(e,""),n+=a(s[2],i),s=o(t);return n+=t.replace(e,"")};return l.apply(null,arguments)}a("error",p),a("log",d),a("warn",h),a("format",f);var g=f,m="9.3.5";a("version",m);var v=m;const b=r(window);function y(t,e,i){try{return"function"==typeof i?b.on(t,false,e,i):b.on(t,false,e)}catch(t){d("error while binding: ",t.message)}}function w(t,e){try{return b.off(t,e)}catch(t){d("error while unbinding: ",t.message)}}function _(t,e){try{return b.trigger(t,e)}catch(t){d("error while triggering: "+t.message)}}a("bind",y),a("trigger",_),a("unbind",w);const C={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},k=new RegExp("[".concat(Object.keys(C).join(""),"]"),"g");function x(t){return t.replace(k,(t=>C[t]))}a("escapeHtml",x);var E=x,D=Object.prototype.hasOwnProperty,T=[];function A(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function S(t,e){if("function"==typeof t)return t;var i=!1;return e=e||{},function(n){var s,r=function(t){var e=new Error,i=e.stack||e.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[t+2]:n}(n||1)||"";if(!i||-1===T.indexOf(r)){T.push(r),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||!1)+"- "+(s=t,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion||"a future release")+".";e.alternativeName&&(a+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(a+=" "+e.extraInfo),r=""===r?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+r,e.extraObject?A(a+="\n",e.extraObject,r):A(a,r)}}}function O(t,e){var i=t.options.displayName;i=i?" ("+i+")":"";var n=r.extend({deprecationType:"CSS",extraObject:e},t.options);S("'"+t.selector+"' pattern"+i,n)()}function I(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=S(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function N(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=I(t,e,i);return n.prototype=t.prototype,r.extend(n,t),n}var P=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),P=!0)}catch(t){}function M(t,e,i){if("function"==typeof t[e]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||e;t[e]=I(t[e],n,i)}else!function(t,e,i){if(P){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=S(i.displayName||e,i);Object.defineProperty(t,e,{get:function(){return s(),n},set:function(t){return n=t,s(),t}})}}(t,e,i)}function L(t){return function(e){for(var i={selector:e,options:t||{}},n=document.querySelectorAll(e),s=0;s<n.length;s++)O(i,n[s]);!function(t){if($.push(t),!j){j=new MutationObserver((function(t){t.forEach((function(t){for(var e=t.addedNodes,i=0;i<e.length;i++){var n=e[i];1===n.nodeType&&$.forEach(R(n))}}))}));var e={childList:!0,subtree:!0};j.observe(document,e)}}(i)}}function R(t){return function(e){var i,n;i=t,n=e.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&O(e,t)}}const $=[];let j;function F(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var H;a("deprecate",{fn:I,construct:N,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(L(e))},prop:M,obj:function(t,e,i){for(var n in i=i||{},t)D.call(t,n)&&(i.deprecationType=i.deprecationType||"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,M(t,n,r.extend({},i)))},propertyDeprecationSupported:P,getMessageLogger:S});var W=[];function B(t,e){Array.prototype.forEach.call(document.body.children,(function(t){(function(t){return t.hasAttribute("aria-hidden")})(t)||function(t){return t.classList.contains("aui-layer")}(t)||(t.setAttribute("aria-hidden","true"),W.push(t))})),H||(H=document.body),!0===t&&U();var i=!!B.$dim&&!B.$dim[0].hasAttribute("hidden");return B.$dim&&(B.$dim.remove(),B.$dim=null),B.$dim=r('<div aria-hidden="true"></div>').addClass("aui-blanket"),B.$dim.attr("tabindex","0"),B.$dim.appendTo(document.body),i||(F(B.$dim),B.cachedOverflow={overflow:H.style.overflow,overflowX:H.style.overflowX,overflowY:H.style.overflowY},H.style.overflowX="hidden",H.style.overflowY="hidden",H.style.overflow="hidden"),B.$dim.removeAttr("hidden"),e&&B.$dim.css({zIndex:e}),B.$dim}function V(){W.forEach((function(t){t.removeAttribute("aria-hidden")})),W=[],B.$dim&&(B.$dim[0].setAttribute("hidden",""),H&&(H.style.overflow=B.cachedOverflow.overflow,H.style.overflowX=B.cachedOverflow.overflowX,H.style.overflowY=B.cachedOverflow.overflowY))}var U=S("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});a("dim",B),a("undim",V);var z={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,LEFT_SQUARE_BRACKET:91,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};a("keyCode",z);var Y=z,q=function(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e};var K=l.a.noConflict();var J=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function G(t){return J(t).get("last-trigger")||tt(t)[0]}function Q(t,e){var i=e&&e.nodeType&&1===e.nodeType;return J(t).set("last-trigger",!!i&&e)}function X(t,e){var i=G(t);i&&e(i)}function Z(t,e){return Array.prototype.forEach.call(tt(t),e)}function tt(t){const e=window.frames,i='[aria-controls="'.concat(t.id,'"]');let n=[],s=!1;for(let t=0;t<e.length;t++)try{let s=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(t){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&h(["No triggers found for element (".concat(t.id,") in iframes from the same origin."),"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function et(t){return document.getElementById(t.getAttribute("aria-controls"))}function it(t){return"true"!==t.getAttribute("aria-disabled")}function nt(t,e){if(it(t)){var i=et(t);i&&i.message&&i.message(e)}}const st={click(t,e){(function(t,e){var i=r(e).closest("a[href]",t);return!!i.length&&i[0]!==t})(t,e.target)||(nt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Y.ENTER&&i!==Y.SPACE||(e.preventDefault(),e.type="click",st.click(t,e))},mouseenter(t,e){nt(t,e)},mouseleave(t,e){nt(t,e)},focus(t,e){nt(t,e)},blur(t,e){(function(t,e){let i=e.relatedTarget;return i||(i=document.activeElement),r(et(t)).find(i).length>0})(t,e)||nt(t,e)}};Object.keys(st).forEach((function(t){const e=st[t];r(document).on("".concat(t,".aui-trigger"),"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:s}=t,{keyCode:r,which:a}=t;return{type:e,data:"keydown"===e?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>t.preventDefault()}}(i,t))}))})),K("data-aui-trigger",{type:K.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return it(this)}}}),q("aui/trigger"),function(){function t(t){return"visible"===r.css(t,"visibility")&&r(t).is(":visible")}function e(e,i){var n=e.nodeName.toLowerCase();if("aui-select"===n)return!0;if("area"===n){var s=e.parentNode,a=s.name,o=r("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==s.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(n),c="a"===n,u=e.href||i;return(l?!e.disabled:c?u:i)&&t(e)}r.extend(r.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(r.attr(t,"tabindex"))),"aui-tabbable":function(t){var i=r.attr(t,"tabindex"),n=isNaN(i);return(n||i>=0)&&e(t,!n)}})}();var rt="_aui-focus-restore";function at(t){return t.is(".aui-dialog2")}function ot(){this._focusTrapStack=[],this._handler}function lt(t,e){if(0===t.length)return;if(e.keyCode!==Y.TAB)return;const i=e.shiftKey?-1:1,n=e.target,s=t[t.length-1],a=s.find(":aui-tabbable");if(!a.length)return;const o=a.index(n);let l=-1;if(o>-1)l=o;else{let t;if(t=r(n).closest(".aui-layer"),!t.length){t=s.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(n)}if(t.length){const e=t.find(":aui-tabbable"),s=e.index(n)+i;if(!(s<0||s>=e.length))return;{const e=G(t.get(0));l=a.index(e)}}}l=l>-1?(l+i)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ct;function ut(){return ct||(ct=new ot),ct}ot.defaultFocusSelector=":aui-tabbable",ot.prototype.enter=function(t,e){if(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.activeElement;t.data(rt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var i=t.attr("data-aui-focus-selector")||ot.defaultFocusSelector;(t.is(i)?t:t.find(i)).first().trigger("focus")}at(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=lt.bind(void 0,this._focusTrapStack),r(document).on("keydown.aui-focus-manager",this._handler)))},ot.prototype.exit=function(t){at(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(r(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){r(e).trigger("blur");var i=function(t){return r(t.data(rt))}(t);i.length&&(t.removeData(rt),i.trigger("focus"))}},ut.global=ut(),a("FocusManager",ut);var dt=ut,ht=function(t,e){var i="_aui-widget-"+t;return function(t,n){var s,a;r.isPlainObject(t)?a=t:(s=t,a=n);var o,l=s&&r(s);return l&&l.data(i)?o=l.data(i):(l=(o=new e(l,a||{})).$el).data(i,o),o}};let pt;!function(){if(window.CustomEvent)try{const t=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default");if("name"!==t.type)throw new Error("Could not set custom name");if("y"!==t.detail.x)throw new Error("Could not set detail");return void(pt=window.CustomEvent)}catch(t){}pt=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented||(this.defaultPrevented=!0)}},i},pt.prototype=window.Event.prototype}();var ft=pt;const gt="_aui-internal-layer-",mt="_aui-internal-layer-global-";var vt=r(document);function bt(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function s(r){e===r.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",s))}))}function yt(t,e,i){var n=r.Event(gt+e),s=r.Event(mt+e),a=new ft("aui-layer-"+i,{bubbles:!0,cancelable:!0}),o=new ft("aui-"+i,{bubbles:!0,cancelable:!0});return t.trigger(n),t.trigger(s,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(n.isDefaultPrevented()||s.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function wt(t){this.$el=r(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function _t(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}wt.prototype={below:function(){return At.global.item(At.global.indexOf(this.$el)-1)},above:function(){return At.global.item(At.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(gt+t,e),this},off:function(t,e){return this.$el.off(gt+t,e),this},show:function(){return this.isVisible()||At.global.indexOf(this.$el)>-1?this:yt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),At.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;if(!yt(this.$el,"beforeHide","hide"))return this;const t=this;return bt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),At.global.popUntil(this.$el),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var t=_t(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=_t(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){(this.isPersistent()||this.isBlanketed())&&dt.global.exit(this.$el),t&&yt(this.$el,"beforeHide","hide"),this.el.removeAttribute("open"),this.$el.removeData("_aui-layer-shown"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(gt+"hide"),this.$el.trigger(mt+"hide",[this.$el])},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&dt.global.enter(this.$el),this.$el.trigger(gt+"show"),this.$el.trigger(mt+"show",[this.$el])}};var Ct=ht("layer",wt);function kt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function xt(t,e){return kt(t,(function(t){return t[0]===e[0]}))}function Et(t){return kt(t,(function(t){return Ct(t).isBlanketed()}))}function Dt(t,e){var i=Et(t);e!==i&&(i>-1?B(!1,t[i].css("z-index")-20):V())}function Tt(t,e,i){if(!(e<0))for(var n=t.length-1;n>=e;n--){var s=t[n],r=Ct(s);!i&&r.isPersistent()||(r._hideLayer(!0),t.splice(n,1))}}function At(){this._stack=[]}function St(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return At.global.indexOf(e)>-1}Ct.on=function(t,e,i){return vt.on(mt+t,e,i),this},Ct.off=function(t,e,i){return vt.off(mt+t,e,i),this},At.prototype={push:function(t){var e=t instanceof r?t:r(t);if(xt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var i=Ct(e),n=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return i._showLayer(n),i.isBlanketed()&&B(!1,n-20),this._stack.push(e),this},popLayersBeside:function(t){const e=r(t).get(0);if(!function(t){return!!G(t)}(e)){var i=Et(this._stack);return void Tt(this._stack,++i,!1)}const n=function(t){var e=G(t);if(e)return r(e).closest(".aui-layer").get(0)}(e);if(n){let t=this.indexOf(n);Tt(this._stack,++t,!1)}else Tt(this._stack,0,!1)},indexOf:function(t){return xt(this._stack,r(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=Ct(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,i=t instanceof r?t:r(t),n=xt(this._stack,i);if(n<0)return null;for(n--;n>=0;){e=this._stack[n];var s=Ct(e);if(!s.isPersistent()||s.isBlanketed())return e;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,i=t instanceof r?t:r(t),n=xt(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){e=this._stack[n];var s=Ct(e);if(!s.isPersistent()&&!s.isBlanketed())return e;n++}return null},popUntil:function(t){var e=t instanceof r?t:r(t),i=xt(this._stack,e);if(-1===i)return null;var n=Et(this._stack);return Tt(this._stack,i+1,Ct(e).isBlanketed()),this._stack.splice(i,1),Ct(e)._hideLayer(),Dt(this._stack,n),e},getTopLayer:function(){return this._stack.length?this._stack[this._stack.length-1]:null},popTopIfNonPersistent:function(){var t=this.getTopLayer(),e=Ct(t);return!t||e.isPersistent()?null:this.popUntil(t)},popUntilTopBlanketed:function(){var t=Et(this._stack);if(t<0)return null;var e=this._stack[t];if(Ct(e).isPersistent()){var i=this.getNextHigherNonPeristentAndNonBlanketedLayer(e);if(i){var n=xt(this._stack,i);return Tt(this._stack,n,!0),i}return null}return Tt(this._stack,t,!0),Dt(this._stack,t),e},popUntilTopPersistent:function(){var t=At.global.getTopLayer();if(t){var e,i=Et(this._stack),n=Ct(t);if(n.isPersistent()){if(n.isBlanketed())return;if(t=At.global.getNextLowerNonPersistentOrBlanketedLayer(t),n=Ct(t),!t||n.isPersistent())return;e=xt(this._stack,t),Tt(this._stack,e,!0),Dt(this._stack,i)}else e=xt(this._stack,t),Tt(this._stack,e,!0),Dt(this._stack,i)}}},vt.on("keydown",(function(t){t.keyCode===Y.ESCAPE&&(At.global.popUntilTopPersistent(),t.preventDefault())})),vt.on("click",".aui-blanket",(function(t){At.global.popUntilTopBlanketed()&&t.preventDefault()})),vt.on("click",(function(t){var e=r(t.target);if(!e.closest(".aui-blanket").length){var i=e.closest("[aria-controls]"),n=e.closest(".aui-layer");if(!n.length&&!St(i)){const e=r.Event("aui-close-layers-on-outer-click");return vt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void At.global.hideAll()}if(!St(i)&&n.length){var s=At.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);s&&Ct(s).hide()}}})),At.global=new At,Ct.Manager=At,a("layer",Ct);var Ot=Ct;a("LayerManager",Ot.Manager);Ot.Manager;const It={sinceVersion:"9.0.0",removeInVersion:"10.0.0"};var Nt=a("params",new Proxy({},{get:function(t,e){return S("AJS.params",It)(),t[e]}}));const Pt=I((function(t){t||(t=Nt),r(".parameters input").each((function(){var e=this.value,i=this.title||this.id;r(this).hasClass("list")?t[i]?t[i].push(e):t[i]=[e]:t[i]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});a("populateParameters",Pt);var Mt=Pt;r((function(){var t=r("body");t.data("auiVersion")||t.attr("data-aui-version",v),Mt()})),a("$",r);var Lt=r;function Rt(t){return r.when(r.ready).then((function(){setTimeout((function(){try{t.call(this,r)}catch(e){p("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}a("toInit",Rt);var $t=Rt;const I18n={keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.checkboxmultiselect.clear.selected":"Clear selected items","aui.select.no.suggestions":"No suggestions","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":""},getText:function(t){if(Object.prototype.hasOwnProperty.call(this.keys,t)){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return g.apply(null,[this.keys[t]].concat(i))}return t}};a("I18n",I18n);function jt(t){var e=function(t){let{body:e,type:i="error"}=t;return r('<div class="aui-banner" role="banner"></div>').append(r.parseHTML(e||"")).addClass("aui-banner-".concat(i))}(t);return Ft().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&r(t).remove()})),function(t){var e=Ft();if(!e.length)throw new Error("You must implement the application header");t.prependTo(e),F(t),t[0].removeAttribute("hidden")}(e),e[0]}function Ft(){return r("#header")}q("aui/banner",jt),a("banner",jt);var Ht=jt,Wt=i(3);const Bt={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},Vt={filled:!1,size:Bt.MEDIUM.name},Ut="Add CSS to the parent element of the <aui-spinner>.\nUse CSS flexbox or grid to vertically align it.\nSee https://css-tricks.com/centering-css-complete-guide/ for techniques.",zt=S("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ut}),Yt=S("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:Ut});function qt(t){let e=Bt.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Bt).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function Kt(t){const{px:e,radius:i}=Object(Wt.find)(Bt,(e=>e.name===t._data.size))||Bt.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),s=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(e));const r=e/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+e/2;t.querySelector("svg").style.top="".concat(r-a,"px")}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}var Jt=K("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',Kt(t)},attached(t){Kt(t)},attributes:{filled:{created:function(t){zt(),t._data.filled=!0,Kt(t)},removed:function(t){t._data.filled=!1,Kt(t)}},size(t,e){t._data.size=qt(e.newValue),Kt(t)}},prototype:{get _data(){return this.__data||(this._data=Object(Wt.defaults)({},Vt))},set _data(t){return this.__data=t},set filled(t){Yt(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=qt(t);this.setAttribute("size",e)}}});function Gt(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function Qt(t){return"INPUT"===t.nodeName}K("aui-button",{type:K.type.CLASSNAME,created:function(t){t._spinner=new Jt,t._spinner.setAttribute("size",Bt.SMALL.name)},prototype:{busy:function(){return Qt(this)||Gt(this)?(h("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return Qt(this)||!Gt(this)?(h("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return Qt(this)?(h("It is not valid to call isBusy() on an input button."),!1):Gt(this)}}}),q("aui/button");const Xt="aui-close-button",Zt=".".concat(Xt),te='<button type="button" class="'.concat(Xt,'" aria-label="').concat(I18n.getText("aui.words.close"),'">');var ee={"aui-focus":"false","aui-blanketed":"true"};function ie(t){var e;this._handlers=new WeakMap,this.$el=r(t||'\n <section role="dialog" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n '.concat(te,'\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>')),e=this.$el,r.each(ee,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}ie.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};Ot(i).on(t,n),this._handlers.set(e,n)}return this},ie.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(Ot(i).off(t,n),this._handlers.delete(e)),this},ie.prototype.show=function(){return Ot(this.$el).show(),this},ie.prototype.hide=function(){return Ot(this.$el).hide(),this},ie.prototype.remove=function(){return Ot(this.$el).remove(),this},ie.prototype.isVisible=function(){return Ot(this.$el).isVisible()};var ne=ht("dialog2",ie),se=new Set;ne.on=function(t,e){return se.has(e)||(Ot.on(t,".aui-dialog2",e),se.add(e)),this},ne.off=function(t,e){return se.has(e)&&(Ot.off(t,".aui-dialog2",e),se.delete(e)),this},r(document).on("click keydown",".aui-dialog2-header ".concat(Zt),(function(t){("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE)&&(t.preventDefault(),ne(r(t.target).closest(".aui-dialog2")).hide())})),ne.on("show",(function(t,e){e.find(Zt).attr("tabindex",0),e.attr("tabindex",-1);var i=e[0].hasAttribute("data-aui-focus-selector")&&e.attr("data-aui-focus-selector");if(i){var n=e.find(i);if(n.length>0)return n.first().focus()}e.focus()})),ne.on("hide",(function(t,e){var i=Ot(e);e.data("aui-remove-on-hide")&&i.remove()})),q("aui/dialog2",ne),a("dialog2",ne);var re,ae,oe=ne,le=i(4),ce=i.n(le),ue=navigator.userAgent.toLowerCase(),de=(/msie/.test(ue),/windows nt 5.1/.test(ue),/windows nt 6.0/.test(ue),/windows nt 6.1/.test(ue),/mac os x/.test(ue));function he(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function pe(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function fe(t){var e=pe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ge(t){return t instanceof pe(t).Element||t instanceof Element}function me(t){return t instanceof pe(t).HTMLElement||t instanceof HTMLElement}function ve(t){return t?(t.nodeName||"").toLowerCase():null}function be(t){return(ge(t)?t.ownerDocument:t.document).documentElement}function ye(t){return he(be(t)).left+fe(t).scrollLeft}function we(t){return pe(t).getComputedStyle(t)}function _e(t){var e=we(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ce(t,e,i){void 0===i&&(i=!1);var n,s,r=be(e),a=he(t),o=me(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==ve(e)||_e(r))&&(l=(n=e)!==pe(n)&&me(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:fe(n)),me(e)?((c=he(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=ye(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function ke(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function xe(t){return"html"===ve(t)?t:t.assignedSlot||t.parentNode||t.host||be(t)}function Ee(t){return["html","body","#document"].indexOf(ve(t))>=0?t.ownerDocument.body:me(t)&&_e(t)?t:Ee(xe(t))}function De(t,e){void 0===e&&(e=[]);var i=Ee(t),n="body"===ve(i),s=pe(i),r=n?[s].concat(s.visualViewport||[],_e(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(De(xe(r)))}function Te(t){return["table","td","th"].indexOf(ve(t))>=0}function Ae(t){if(!me(t)||"fixed"===we(t).position)return null;var e=t.offsetParent;if(e){var i=be(e);if("body"===ve(e)&&"static"===we(e).position&&"static"!==we(i).position)return i}return e}function Se(t){for(var e=pe(t),i=Ae(t);i&&Te(i)&&"static"===we(i).position;)i=Ae(i);return i&&"body"===ve(i)&&"static"===we(i).position?e:i||function(t){for(var e=xe(t);me(e)&&["html","body"].indexOf(ve(e))<0;){var i=we(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var Oe=i(0);function Ie(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}function Ne(t,e){var i=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(i){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Pe(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Me(t,e){return e===Oe.viewport?Pe(function(t){var e=pe(t),i=be(t),n=e.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,o=0;return n&&(s=n.width,r=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,o=n.offsetTop)),{width:s,height:r,x:a+ye(t),y:o}}(t)):me(e)?function(t){var e=he(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Pe(function(t){var e=be(t),i=fe(t),n=t.ownerDocument.body,s=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+ye(t),o=-i.scrollTop;return"rtl"===we(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:o}}(be(t)))}function Le(t,e,i){var n="clippingParents"===e?function(t){var e=De(xe(t)),i=["absolute","fixed"].indexOf(we(t).position)>=0&&me(t)?Se(t):t;return ge(i)?e.filter((function(t){return ge(t)&&Ne(t,i)&&"body"!==ve(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),r=s[0],a=s.reduce((function(e,i){var n=Me(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),Me(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Re(t){return t.split("-")[0]}function $e(t){return t.split("-")[1]}function je(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Fe(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Re(s):null,a=s?$e(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Oe.top:e={x:o,y:i.y-n.height};break;case Oe.bottom:e={x:o,y:i.y+i.height};break;case Oe.right:e={x:i.x+i.width,y:l};break;case Oe.left:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?je(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Oe.start:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case Oe.end:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function He(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function We(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Be(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.boundary,a=void 0===r?Oe.clippingParents:r,o=i.rootBoundary,l=void 0===o?Oe.viewport:o,c=i.elementContext,u=void 0===c?Oe.popper:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=He("number"!=typeof f?f:We(f,Oe.basePlacements)),m=u===Oe.popper?Oe.reference:Oe.popper,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=Le(ge(y)?y:y.contextElement||be(t.elements.popper),a,l),_=he(v),C=Fe({reference:_,element:b,strategy:"absolute",placement:s}),k=Pe(Object.assign(Object.assign({},b),C)),x=u===Oe.popper?k:_,E={top:w.top-x.top+g.top,bottom:x.bottom-w.bottom+g.bottom,left:w.left-x.left+g.left,right:x.right-w.right+g.right},D=t.modifiersData.offset;if(u===Oe.popper&&D){var T=D[s];Object.keys(E).forEach((function(t){var e=[Oe.right,Oe.bottom].indexOf(t)>=0?1:-1,i=[Oe.top,Oe.bottom].indexOf(t)>=0?"y":"x";E[t]+=T[i]*e}))}return E}var Ve={placement:"bottom",modifiers:[],strategy:"absolute"};function Ue(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ze(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Ve:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ve),r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){d(),o.options=Object.assign(Object.assign(Object.assign({},r),o.options),i),o.scrollParents={reference:ge(t)?De(t):t.contextElement?De(t.contextElement):[],popper:De(e)};var s=function(t){var e=Ie(t);return Oe.modifierPhases.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign(Object.assign(Object.assign({},i),e),{},{options:Object.assign(Object.assign({},i.options),e.options),data:Object.assign(Object.assign({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=s.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:o,name:e,instance:u,options:n}),a=function(){};l.push(r||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Ue(e,i)){o.rects={reference:Ce(e,Se(i),"fixed"===o.options.strategy),popper:ke(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(s())}))}))),a}),destroy:function(){d(),c=!0}};if(!Ue(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Ye={passive:!0};var qe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ke(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.offsets,a=t.position,o=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(r),u=c.x,d=c.y,h=r.hasOwnProperty("x"),p=r.hasOwnProperty("y"),f=Oe.left,g=Oe.top,m=window;if(l){var v=Se(i);v===pe(i)&&(v=be(i)),s===Oe.top&&(g=Oe.bottom,d-=v.clientHeight-n.height,d*=o?1:-1),s===Oe.left&&(f=Oe.right,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&qe);return o?Object.assign(Object.assign({},y),{},((b={})[g]=p?"0":"",b[f]=h?"0":"",b.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},y),{},((e={})[g]=p?d+"px":"",e[f]=h?u+"px":"",e.transform="",e))}var Je={left:"right",right:"left",bottom:"top",top:"bottom"};function Ge(t){return t.replace(/left|right|bottom|top/g,(function(t){return Je[t]}))}var Qe={start:"end",end:"start"};function Xe(t){return t.replace(/start|end/g,(function(t){return Qe[t]}))}function Ze(t,e,i){return Math.max(t,Math.min(e,i))}function ti(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function ei(t){return[Oe.top,Oe.right,Oe.bottom,Oe.left].some((function(e){return t[e]>=0}))}var ii=ze({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=pe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,Ye)})),o&&l.addEventListener("resize",i.update,Ye),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,Ye)})),o&&l.removeEventListener("resize",i.update,Ye)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Fe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o={placement:Re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Ke(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Ke(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];me(s)&&ve(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});me(n)&&ve(n)&&(Object.assign(n.style,r),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,a=Oe.placements.reduce((function(t,i){return t[i]=function(t,e,i){var n=Re(t),s=[Oe.left,Oe.top].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[Oe.left,Oe.right].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,r),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=Re(m),b=l||(v===m||!f?[Ge(m)]:function(t){if(Re(t)===Oe.auto)return[];var e=Ge(t);return[Xe(t),e,Xe(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Re(i)===Oe.auto?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Oe.placements:l,u=$e(n),d=u?o?Oe.variationPlacements:Oe.variationPlacements.filter((function(t){return $e(t)===u})):Oe.basePlacements,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=Be(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Re(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,C=new Map,k=!0,x=y[0],E=0;E<y.length;E++){var D=y[E],T=Re(D),A=$e(D)===Oe.start,S=[Oe.top,Oe.bottom].indexOf(T)>=0,O=S?"width":"height",I=Be(e,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?A?Oe.right:Oe.left:A?Oe.bottom:Oe.top;w[O]>_[O]&&(N=Ge(N));var P=Ge(N),M=[];if(r&&M.push(I[T]<=0),o&&M.push(I[N]<=0,I[P]<=0),M.every((function(t){return t}))){x=D,k=!1;break}C.set(D,M)}if(k)for(var L=function(t){var e=y.find((function(e){var i=C.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return x=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Be(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Re(e.placement),b=$e(e.placement),y=!b,w=je(v),_="x"===w?"y":"x",C=e.modifiersData.popperOffsets,k=e.rects.reference,x=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,D={x:0,y:0};if(C){if(r){var T="y"===w?Oe.top:Oe.left,A="y"===w?Oe.bottom:Oe.right,S="y"===w?"height":"width",O=C[w],I=C[w]+m[T],N=C[w]-m[A],P=p?-x[S]/2:0,M=b===Oe.start?k[S]:x[S],L=b===Oe.start?-x[S]:-k[S],R=e.elements.arrow,$=p&&R?ke(R):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=j[T],H=j[A],W=Ze(0,k[S],$[S]),B=y?k[S]/2-P-W-F-E:M-W-F-E,V=y?-k[S]/2+P+W+H+E:L+W+H+E,U=e.elements.arrow&&Se(e.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,q=C[w]+B-Y-z,K=C[w]+V-Y,J=Ze(p?Math.min(I,q):I,O,p?Math.max(N,K):N);C[w]=J,D[w]=J-O}if(o){var G="x"===w?Oe.top:Oe.left,Q="x"===w?Oe.bottom:Oe.right,X=C[_],Z=Ze(X+m[G],X,X-m[Q]);C[_]=Z,D[_]=Z-X}e.modifiersData[n]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Re(i.placement),o=je(a),l=[Oe.left,Oe.right].indexOf(a)>=0?"height":"width";if(s&&r){var c=i.modifiersData[n+"#persistent"].padding,u=ke(s),d="y"===o?Oe.top:Oe.left,h="y"===o?Oe.bottom:Oe.right,p=i.rects.reference[l]+i.rects.reference[o]-r[o]-i.rects.popper[l],f=r[o]-i.rects.reference[o],g=Se(s),m=g?"y"===o?g.clientHeight||0:g.clientWidth||0:0,v=p/2-f/2,b=c[d],y=m-u[l]-c[h],w=m/2-u[l]/2+v,_=Ze(b,w,y),C=o;i.modifiersData[n]=((e={})[C]=_,e.centerOffset=_-w,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,s=i.element,r=void 0===s?"[data-popper-arrow]":s,a=i.padding,o=void 0===a?0:a;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&Ne(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[n+"#persistent"]={padding:He("number"!=typeof o?o:We(o,Oe.basePlacements))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,a=Be(e,{elementContext:"reference"}),o=Be(e,{altBoundary:!0}),l=ti(a,n),c=ti(o,s,r),u=ei(l),d=ei(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const ni="aui-alignment-use-gpu",si={"top left":"top-start","top center":"top","top right":"top-end","right top":"right-start","right middle":"right","right bottom":"right-end","bottom right":"bottom-end","bottom center":"bottom","bottom left":"bottom-start","left bottom":"left-end","left middle":"left","left top":"left-start"};function ri(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function ai(t){return ri(t,"alignment")||"right middle"}function oi(t){let[e,i]=ai(t).split(" ");return{side:e,snap:i}}function li(t,e,i){const n="aui-alignment-side-"+e,s="aui-alignment-snap-"+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(s)||t.classList.add(s)}function ci(t){let e=function(t){let e=ri(t,"alignment-container")||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function ui(t,e){const i=oi(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=ai(t);return si[e]||"right"}(t):(i.snap=ci(e),n="submenu"===i.side?si["".concat("right"===i.snap?"left":"right"," top")]:si["".concat(i.side," ").concat(i.snap)]),n}const di={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function hi(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=oi(t),s=ui(t,e),r=di[s.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains(ni)}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:t=>{let{state:e}=t;e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={enabled:!0,fn:i.onUpdate}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return n.enabled&&n.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={fn:i.onEvents}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return this._triggerOnEvents&&(this._eventListenersEnabled?n.fn.enabled&&n.fn.enabled():n.fn.disabled&&n.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,s=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),r=s([e.top,i.paddingTop,i.borderTop]),o=s([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=r,t.offsets.popper.left+=o,t.offsets.popper.top+=r,t}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=ii(e,t,l),li(t,n.side,n.snap)}hi.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};var pi=hi;function fi(t){let e=new r.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var gi,mi,vi=0;function bi(t){if(gi=vi+++"",mi=t?t+gi:"aui-uid-"+gi,document.getElementById(mi)){if(mi=mi+"-"+(new Date).getTime(),document.getElementById(mi))throw new Error('Timestamped fallback ID "'+mi+'" exists.');return mi}return mi}a("id",bi);var yi=bi;function wi(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function _i(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Ci(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=e&&e.type&&(e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1);t.isSubmenu&&!i?t.focusItem(0):t.focus()}var ki="unloaded",xi="loading",Ei="error";function Di(t,e){J(t).set("loading-state","success"),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?"".concat(e,' ="true"'):""}function i(e){return t[e]?"".concat(e,'="').concat(t[e],'"'):""}var n="aui-item-"+t.type;return"\n <".concat(n," ").concat(i("for")," ").concat(i("href")," ").concat(e("interactive"),"\n ").concat(e("checked")," ").concat(e("disabled")," ").concat(e("hidden"),">\n ").concat(E(t.content),"\n </").concat(n,">")})).join(""),i=t.label?'label="'.concat(t.label,'"'):"";return"\n <aui-section ".concat(i,">\n ").concat(e,"\n </aui-section>")})).join("\n")}(e),K.init(t),X(t,(function(e){document.activeElement===e&&Ci(t)}))}function Ti(t){J(t).set("loading-state",Ei),J(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML='\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>'.concat(I18n.getText("aui.dropdown.async.error"),"</p>\n </div>\n ")}function Ai(t){t.src&&J(t).get("loading-state")!==xi&&(!function(t){J(t).set("loading-state",xi),J(t).set("hasErrorBeenShown",!1),X(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML='\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> '.concat(I18n.getText("aui.dropdown.async.loading"),"\n </div>\n ")}(t),r.ajax(t.src).done((function(e,i,n){200===n.status?Di(t,e):Ti(t)})).fail((function(){Ti(t)})).always((function(){!function(t){X(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Si(t,e){return r(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Oi(t){return Si(t,(()=>!0))}function Ii(t){return Si(t,((t,e)=>!wi(e)))}function Ni(t){Oi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||wi(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Pi(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Mi(t,e){var i=e&&e.hasSubmenu&&e.hasSubmenu(),n="submenu auto"===t.getAttribute("data-aui-alignment");!i&&n&&function(t){var e=r(t),i=e.data("previous-data-aui-alignment");i?t.setAttribute("data-aui-alignment",i):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var s=t.hasAttribute("data-aui-alignment");i&&!n?(!function(t){var e=r(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):s||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Pi(t),t._auiAlignment=new pi(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}r(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(K.init(this),S("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),r(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=r(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const i=e.closest(".aui-dropdown2-trigger-group"),n=i.find(".aui-dropdown2-active");n.length&&e.is(".aui-dropdown2-trigger")&&(n.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const s=i.find(":focus");s.length&&e.is(".aui-dropdown2-trigger")&&s.blur()}));var Li=!1;function Ri(){Li=!0}function $i(t){Ot(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=r(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(".".concat(t)).addClass("aui-dropdown2-".concat(t))}))}(t),Ni(t),r(t).trigger("aui-dropdown2-show"),X(t,(function(e){_i(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(r(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Oi(t).removeClass("active aui-dropdown2-active"),X(t,(function(t){var e;e=!0===Li,Li=!1,e?(t.focus(),_i(t,t.hasSubmenu&&t.hasSubmenu())):_i(t,!1)})),delete t.isSubmenu,Q(t,null))}))}function ji(t){var e=r(t);function i(e){return r(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){i(e.target)&&(e.keyCode===Y.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Y.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Y.LEFT?t.isSubmenu&&(Ri(),t.hide(e),e.preventDefault()):e.keyCode===Y.ESCAPE?Ri():e.keyCode===Y.TAB&&(Ri(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!i(e.target))return;const n=e.currentTarget,s=e.keyCode,a=s===Y.ENTER,o=s===Y.SPACE;a&&r(n).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){var i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();if(!(e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive"))){var n=t;do{var s=Ot(n);n=Ot(n).below(),s.$el.is(".aui-dropdown2")&&s.hide(e)}while(n)}}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(i(e.target)){var n=e.currentTarget,s=n.hasSubmenu&&n.hasSubmenu();if(!e.isDefaultPrevented()&&!s){var r=Ot(t).above();r&&Ot(r).hide()}}}))}function Fi(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),$i(t),ji(t),r(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),r(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Y.ENTER||t.keyCode===Y.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(r(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}r(window).on("resize",Object(Wt.debounce)((function(){r(".aui-dropdown2").each((function(t,e){K.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Hi={toggle:function(t){this.isVisible()?this.hide(t):this.show(t)},show:function(t){var e=this;return t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&Q(e,t.currentTarget),Ot(e).show(),X(e,(function(t){Mi(e,t)})),setTimeout((()=>Ci(e,t)),0),this},hide:function(){return Ot(this).hide(),this},focusNext:function(){var t,e=Ii(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=Ii(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=Ii(this);"number"==typeof t&&(t=e.get(t));const i=r(t);i.focus(),e.removeClass("active aui-dropdown2-active"),i.addClass("active aui-dropdown2-active")},isVisible:function(){return Ot(this).isVisible()}},Wi={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},Bi={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Vi={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new ft("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new ft("change",{bubbles:!0}))}},Ui={created:function(t){Wi.created(t)},removed:function(t){Wi.removed(t)}},zi=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const Yi=K("aui-item-link",{template:ce()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Wi,interactive:Bi,hidden:Ui,href:zi("href"),"item-id":zi("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),r(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),r(e).removeClass("aui-dropdown2-sub-trigger")}}}}),[qi,Ki]=["checkbox","radio"].map((t=>K("aui-item-".concat(t),{template:ce()('<span role="'.concat(t,'" class="aui-dropdown2-').concat(t,'" tabindex="-1"><content></content></span>')),attributes:{"item-id":zi("id"),disabled:Wi,interactive:Bi,checked:Vi,hidden:Ui}}))),Ji=K("aui-section",{template:ce()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=yi();var n=t.children[0],s=t.children[1];n.textContent=e.newValue,n.id=i,s.setAttribute("aria-labelledby",i)}},created:function(t){t.classList.add("aui-dropdown2-section")}}),Gi=K("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",Ot(t),J(t).set("loading-state",ki),K.init(t)},detached:function(t){fi(t).then((()=>Pi(t)))},attributes:{src:{}},prototype:Hi,events:{"aui-layer-show":function(t){var e=J(t).get("loading-state")===ki,i=J(t).get("hasErrorBeenShown");(e||i)&&Ai(t),J(t).get("loading-state")===Ei&&J(t).set("hasErrorBeenShown",!0)}}});K("aui-dropdown2",{type:K.type.CLASSNAME,created:Fi,prototype:Hi}),K("data-aui-dropdown2",{type:K.type.ATTRIBUTE,created:Fi,prototype:Hi}),K("aui-dropdown2-trigger",{type:K.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function i(i){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const s=document.getElementById(e);if(!s)return void p('Could not find a dropdown with id "'+e+'" in the DOM.');const a=r(t);return a.parent().hasClass("aui-buttons")&&s.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&s.classList.add("aui-dropdown2-in-header"),n?s.show(i):s.toggle(i),s.isSubmenu=t.hasSubmenu(),s}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):p('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href","#".concat(e)),r(t).on("aui-button-invoke",i).on("click",i).on("keydown",(function(e){if(e.currentTarget!==t)return;const n=e.keyCode===Y.ENTER||e.keyCode===Y.SPACE,s=e.keyCode===Y.RIGHT&&t.hasSubmenu(),r=(e.keyCode===Y.UP||e.keyCode===Y.DOWN)&&!t.hasSubmenu();n?i(e):(r||s)&&i(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=J(t).get("loading-state")===ki,i=J(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Ai(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;p('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),K("aui-dropdown2-sub-trigger",{type:K.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),K.init(t)}}),["checkbox","radio"].map((t=>K("aui-dropdown2-".concat(t),{type:K.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),de&&e.setAttribute("role",t)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.removeAttribute("checked"),r(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.setAttribute("checked",""),r(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var Qi=r(document),Xi=function(t){var e={};return e.$trigger=r(t.currentTarget),e.$content=Qi.find("#"+e.$trigger.attr("aria-controls")),e.triggerIsParent=0!==e.$content.parent().filter(e.$trigger).length,e.$shortContent=e.triggerIsParent?e.$trigger.find(".aui-expander-short-content"):null,e.height=e.$content.css("min-height"),e.isCollapsible=!1!==e.$trigger.data("collapsible"),e.replaceText=e.$trigger.attr("data-replace-text"),e.replaceSelector=e.$trigger.data("replace-selector"),e},Zi=function(t){if(t.replaceText){var e=t.replaceSelector?t.$trigger.find(t.replaceSelector):t.$trigger;t.$trigger.attr("data-replace-text",e.text()),e.text(t.replaceText)}},tn={"aui-expander-invoke":function(t){var e=r(t.currentTarget),i=Qi.find("#"+e.attr("aria-controls")),n=!1!==e.data("collapsible");"true"===i.attr("aria-expanded")&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=Xi(t);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),e.$content.get(0).removeAttribute("hidden"),Zi(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=Xi(t);"true"===e.$content.attr("aria-expanded")&&(Zi(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.get(0).setAttribute("hidden",""),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(t){r(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};Qi.on(tn,".aui-expander-trigger");function en(t){rn[t]=function(e,i){i||(i=e,e="#aui-message-bar"),i.closeable=null!==i.closeable&&!1!==i.closeable,i.title=(i.title||"").toString().trim();let n=function(t,e){let{id:i,closeable:n,fadeout:s,title:a,body:o}=t;const l=a?'<p class="title"><strong>'.concat(E(a),"</strong></p>"):"",c='<div class="aui-message">'.concat(l,"</div>"),u=r(c).append(r.parseHTML(o||"")).addClass(n?"closeable":"").addClass(s?"fadeout":"").addClass("aui-message-".concat(e));i&&(/[#\'\"\.\s]/g.test(i)?h("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):u.attr("id",i));return u}(i,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(n,i.insert,e),i.closeable&&nn(n),i.fadeout&&sn(n,i.delay,i.duration),n}}function nn(t){r(t||"div.aui-message.closeable").each((function(){var t,e=r(this),i=e.find(Zt),n=i.length>0?i.first():r(te);e.addClass("closeable"),e.append(n),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",Zt,(function(t){r(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Zt,(function(t){t.which!==Y.ENTER&&t.which!==Y.SPACE||(r(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function sn(t,e,i){e=void 0!==e?e:5e3,i=void 0!==i?i:500,r(t||"div.aui-message.fadeout").each((function(){var t=r(this),n=!1,s=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(i,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(100,1)}function l(){return!n&&!s}t.focusin((function(){n=!0,o()})).focusout((function(){n=!1,l()&&a()})).hover((function(){s=!0,o()}),(function(){s=!1,l()&&a()})),a()}))}var rn={setup:function(){nn(),sn()},makeCloseable:nn,makeFadeout:sn,createMessage:en};r.fn.closeMessage=function(){var t=r(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),r(document).trigger("aui-message-close",[this]))},en("generic"),en("error"),en("warning"),en("info"),en("confirmation"),en("change"),en("success"),en("hint");const an=K("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",rn[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});r((function(){rn.setup()})),M(rn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(rn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(rn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(rn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(rn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(rn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),a("messages",rn);var on="aui-flag-container",ln={body:"",close:"manual",title:"",type:"info"};function cn(t){(t=r.extend({},ln,t)).title=(t.title||"").toString().trim();var e=function(t){let{body:e,title:i,close:n,type:s}=t;const a=i?'<p class="title"><strong>'.concat(E(i),"</strong></p>"):"",o='<div class="aui-message">'.concat(a,"</div>"),l=r(o).append(r.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass("aui-message-".concat(s));return r('<div class="aui-flag" aria-live="polite"></div>').append(l)}(t);return function(t){t[0].close=function(){dn(t)}}(e),"auto"===t.close?(un(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),5e3)}(e)):"manual"===t.close&&un(e),function(){const t=hn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else r("body").prepend('<div id="aui-flag-container"></div>')}(),function(t){const e=hn();t.appendTo(e),F(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function un(t){var e=r(te);return e.on("click",(function(){dn(t)})),e.on("keypress",(function(e){e.which!==Y.ENTER&&e.which!==Y.SPACE||(dn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function dn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new ft("aui-flag-close",{bubbles:!0})),e}function hn(){return document.getElementById(on)}q("aui/flag",cn),a("flag",cn);var pn=cn;function fn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function gn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(i),!0).forEach((function(e){mn(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function mn(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const vn="aui-tooltip",bn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},yn="aui-tooltip",wn={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1};let _n;class Cn{constructor(t,e){this.triggerElement=t,this.$triggerElement=r(this.triggerElement),this.options=gn(gn({},wn),e),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),kn.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,e.attr("aria-describedby",vn),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".".concat(yn),t):this.$triggerElement.off(".".concat(yn))}getFloatingTip(){const t=this.options;let e="function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"";return void 0===_n&&(_n=r('<div id="'.concat(vn,'" class="').concat("aui-tooltip",' assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>')),r(document.body).append(_n)),t.html?_n.find(".aui-tooltip-content").html(e.call(this.triggerElement)):_n.find(".aui-tooltip-content").text(e.call(this.triggerElement)),_n}show(){if(!1===this.enabled)return;this.hide();const t=this.triggerElement,e=bn[this.options.gravity];clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(t)||(this.popperTimeout=setTimeout((()=>{const i=this.getFloatingTip().get(0);i.classList.remove("assistive"),this.popperInstance=ii(t,i,{placement:e,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),r(window).on("scroll.".concat(yn),(()=>this.hide()))}),300))}hide(){this.getFloatingTip().get(0).classList.add("assistive"),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),r(window).off("scroll.".concat(yn))}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const kn=new WeakMap,xn=(t,e)=>{let i=kn.get(t);return void 0===i&&(i=new Cn(t,e),"object"==typeof t&&kn.set(t,i)),i},En=t=>t.map((t=>"".concat(t,".").concat(yn))).join(" "),Dn=En(["mouseenter","focus"]),Tn=En(["click","mouseleave","blur"]);r.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return xn(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error("Method ".concat(n," does not exist on tooltip."));return i[n](),e}const i=t||{},n=function(){xn(this,i).show()},s=function(){xn(this,i).hide()},r=i.live;return void 0!==r?(i.$delegationRoot=e,e.on(Dn,r,n),e.on(Tn,r,s),e):(e.on(Dn,n),e.on(Tn,s),e)};var An=function(t){function e(){return r('<div class="aui-dropdown2-section">')}var i=e();r("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(i);var n=e(),s=r("<ul />").appendTo(n);return r.each(t,(function(t,e){var i=r("<li />").attr({class:e.styleClass||""}).appendTo(s),n=r("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);e.icon&&r("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(n),e.selected&&n.addClass("aui-dropdown2-checked")})),r("<div />").append(i).append(n).html()},Sn=function(t,e){var i=t+"-dropdown",n=r("<select />").attr({name:t,multiple:"multiple"}).html(e),s=r("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=r("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return r("<div />").append(n).append(a).append(s).html()};function On(t){var e=r(t.target);In(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function In(t,e,i){var n=t.$select.find("option").filter((function(){var t=r(this);return t.attr("value")===e&&t.prop("selected")!==i}));n.length&&(n.prop("selected",i),t.$select.trigger("change"))}function Nn(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Rn(t).length<1}))}function Pn(t){return t.map((function(){var t=r(this);return{value:t.val(),label:t.text(),icon:t.data("icon"),styleClass:t.data("styleClass"),title:t.attr("title"),disabled:t.attr("disabled"),selected:t.prop("selected")}}))}function Mn(t){t.$dropdown.html(An(function(t){return Pn(t.getOptions())}(t))),Nn(t)}function Ln(t){var e=$n(t),i=function(t){return 0===Rn(t).length}(t)?function(t){return r(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(i)}function Rn(t){return Pn(t.getSelectedOptions())}function $n(t){return r.map(Rn(t),(function(t){return t.label}))}const jn=K("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||yi("aui-checkbox-multiselect-");t.innerHTML=Sn(e,t.innerHTML),t.$select=r("select",t).on("change",(function(){Ln(t),Nn(t)})),t.$dropdown=r(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",On.bind(t)).on("aui-dropdown2-item-uncheck",On.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=r(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":$n(t).join(", ")}(t)}}),Ln(t),Mn(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){In(this,t,!0)},unselectOption:function(t){In(this,t,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(t){r("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),Ln(this),Mn(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),Ln(this),Mn(this)}}});q("aui/checkbox-multiselect",jn);var Fn=jn,Hn=i(19),Wn=i.n(Hn).a;var Bn=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var s=t.getAttribute(i);return n((function(){return document.getElementById(s)}),'an element with id set to "'+s+'" was not found')}function n(e,i){return!!e()||(t?p(i,t):p(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}};const Vn="-input";function Un(t){return t.querySelector("label")}var zn=K("aui-label",{template:ce()("<label><content></content></label>"),created:function(t){t._label=Un(t)},attached:function(t){Bn(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?Un(t).setAttribute("for","".concat(e.newValue).concat(Vn)):Un(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?Un(t).setAttribute("form",e.newValue):Un(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}}),Yn=(i(24),r.fn.select2),qn="aui-select2-container",Kn="aui-select2-drop aui-dropdown2",Jn="aui-has-avatar";r.fn.auiSelect2=function(t){var e;if(r.isPlainObject(t)){var i=r.extend({},t),n=i.hasAvatar?" "+Jn:"";i.containerCssClass=qn+n+(i.containerCssClass?" "+i.containerCssClass:""),i.dropdownCssClass=Kn+n+(i.dropdownCssClass?" "+i.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(i)}else e=arguments.length?arguments:[{containerCssClass:qn,dropdownCssClass:Kn}];return Yn.apply(this,e)},r.fn.spin=I((function(t,e){let i={size:"small"};return"object"==typeof e&&(i=r.extend(i,e)),"object"==typeof t&&(i=r.extend(i,t)),"string"==typeof t&&(i.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=r(this),e=t.data();if(e){const n=r("<aui-spinner filled></aui-spinner>");n.attr("size",i.size),n.css("color",i.color),t.spinStop(),t.append(n),K.init(this),e.spinner=n}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),r.fn.spinStop=I((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=r(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});var Gn=K("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||E(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=E(this.textContent),t}}}),Qn=i(1),Xn=i.n(Qn),Zn=Xn.a.Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,Object(Wt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=Object(Wt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=Object(Wt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return Xn.a.Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=Object(Wt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=Object(Wt.pluck)(s,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});a("ProgressiveDataSet",Zn);var ts=Zn,es=Xn.a.Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function is(){this._suggestions=[],this._activeIndex=-1}is.prototype={onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){var t=this._activeIndex,e=0===t?t:t-1;return this.highlight(e),this},highlightNext:function(){var t=this._activeIndex,e=t===this._suggestions.length-1?t:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};var ns=is;function ss(t,e){return t+"-"+e}function rs(t,e){this.el=t,this.anchor=e}function as(t){r(t).find(".aui-select-active").removeClass("aui-select-active")}rs.prototype={render:function(t,e,i){this.currListId=i;var n="";if(t.length){var s=e;t.forEach((function(t){var e=t.getLabel(),r=t.get("img-src"),a=r?'<img src="'.concat(encodeURI(r),'"/>'):"",o=t.get("new-value")?" (<em>".concat(I18n.getText("aui.select.new.value"),"</em>)"):"";n+='<li role="option" class="aui-select-suggestion" id="'.concat(ss(i,s),'">').concat(a).concat(e).concat(o,"</li>"),s++})),e?this.el.querySelector("ul").innerHTML+=n:this.el.querySelector("ul").innerHTML=n}else e||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'.concat(I18n.getText("aui.select.no.suggestions"),"</li>"));return this},setActive:function(t){as(this.el),r(this.el).find("#"+ss(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;r((t=this).el).css("min-width",r(t.anchor).outerWidth()),Ot(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new pi(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!0,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;as(this.el),Ot(this.el).hide(),(t=this)._auiAlignment&&t._auiAlignment.disable()},destroy:function(){var t;this.hide(),(t=this)._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment),delete this.currListId},isVisible:function(){return r(this.el).is(":visible")}};var os=rs,ls=ce()('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left" hidden>\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function cs(t){t._select.selectedIndex=-1,function(t){t._input.removeAttribute("style"),r(t._input).removeClass("aui-select-has-inline-image")}(t)}function us(t){return t._suggestionModel.getNumberOfResults()}function ds(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function hs(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function ps(t){var e=us(t)?0:-1;t._suggestionModel.highlight(e),hs(t)}function fs(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function gs(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){r(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function ms(t,e){if(e){var i,n=document.createElement("option"),s=t._select,r=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,t._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ft("change",{bubbles:!0}))}}function vs(t){ms(t,t._suggestionModel.highlighted()),gs(t),ps(t)}function bs(t){return new es(t.serialize())}function ys(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(bs(n))}return e}function ws(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function _s(t,e){return r.map(e,(function(t){return t.id})).indexOf(t)}function Cs(t){t._progressiveDataSet=new ts(ys(t),{model:es,matcher:ds,queryEndpoint:t._queryEndpoint,maxResults:20}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),J(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),J(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(J(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||J(t).set("should-cancel-response",!1));e.query||(e.results=ys(t));var i=-1!==_s(t._input.value,e.results),n=!t._input.value;if(!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new Gn;e.setAttribute("value",t._input.value);var i=bs(e);return i.set("new-value",!0),i}(t)),!J(t).get("should-include-selected")){var s=_s(t.value,e.results);s>=0&&e.results.splice(s,1)}const r=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=t._suggestionModel.highlighted()||e.results[0];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){t._input.setAttribute("aria-activedescendant",ws(t))}),50)),t._input.setAttribute("aria-expanded","true"),!t._isSync&&r&&t._suggestionsView.getActive()&&J(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function ks(t){var e=t.value?"":t._input.value,i=""===t._input.value;J(t).set("should-include-selected",i),fs(t,!0,e)}function xs(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&J(t).set("should-cancel-response",!0)}function Es(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function Ds(t){xs(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==Es(t);if(i||n)if(e)cs(t);else{var s=Es(t);void 0===s?cs(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(-1)}(t),hs(t)}const Ts=K("aui-select",{template:ls,created:function(t){t._listId=yi(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new os(t._dropdown,t._input),t._suggestionModel=new ns,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((function(e){return t.id===e.id}))||i.push(t)})),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",ws(t))}},attached:function(t){K.init(t),Cs(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),t.setAttribute("tabindex","-1"),function(t){r(t._dropdown).on("mouseover","li",(function(e){us(t)&&t._suggestionModel.highlight(r(e.target).index())}))}(t),function(t){let e=!1;r(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),r(t._dropdown).on("mousedown","li",(function(i){if(!us(t))return!1;t._suggestionModel.highlight(r(i.target).index()),vs(t),t._suggestionsView.hide(),r(t).closest(".aui-layer").length>0&&(e=!0),t._input.removeAttribute("aria-activedescendant")}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&ms(t,bs(e))}(t),ps(t),gs(t)},detached:function(t){r(document).off("aui-close-layers-on-outer-click"),fi(t).then((()=>{hs(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+Vn)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){Ds(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||J(t).set("prevent-open-on-button-click",!0)},"click input":function(t){ks(t)},"click button":function(t){var e=J(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(J(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?(J(t).set("should-include-selected",!0),fs(t,!0)):J(t).get("button-clicked-prevent-dropdown-hide")?J(t).set("button-clicked-prevent-dropdown-hide",!1):hs(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Y.ESCAPE)return xs(t),void hs(t);t._suggestionsView.isVisible()&&us(t)?e.keyCode===Y.ENTER?(xs(t),vs(t),e.preventDefault()):e.keyCode===Y.TAB?(!function(t){t._suggestionsView.isVisible()&&vs(t)}(t),n=!0):e.keyCode===Y.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Y.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Y.UP&&e.keyCode!==Y.DOWN||(ks(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new ft("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new es({value:t,label:t})),ms(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Ds(this),this},focus:function(){return this._input.focus(),ks(this),this}}});q("aui/select",Ts),a("select",Ts);var As=Ts;function Ss(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}var Os={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Ss,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,s=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:s?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function Is(t){return t._input||(t._input=t.querySelector("input"))}function Ns(t){return t._spinner||(t._spinner=new Jt)}function Ps(t,e){Is(e).removeAttribute(t)}function Ms(t,e,i){Is(e).setAttribute(t,i.newValue)}function Ls(t){return{removed:Ps.bind(this,t),fallback:Ms.bind(this,t)}}const Rs={removed:function(t){Ps.call(this,"form",t),t._formId=null},fallback:function(t,e){Ms.call(this,"form",t,e),t._formId=e.newValue}};var $s={removed:Ps.bind(void 0,"id"),fallback:function(t,e){const i="".concat(e.newValue).concat(Vn);Is(t).setAttribute("id",i)}},js={removed:function(t){Ps.call(this,"value",t),Is(t).value="on"},fallback:function(t,e){Ms.call(this,"value",t,e)}},Fs={removed:function(t){Is(t).checked=!1},fallback:function(t){Is(t).checked=!0}},Hs={removed:function(t){Is(t).removeAttribute("aria-label")},fallback:function(t,e){Is(t).setAttribute("aria-label",e.newValue)}};function Ws(t){Is(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Y.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Is(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===ae)try{document.querySelector(":focus-within"),ae=!0}catch(t){ae=!1}return ae}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}var Bs=K("aui-toggle",{template:ce()('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(t){Is(t),Ns(t).setAttribute("size",Bt.SMALL.name),r(Is(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Ws(t),t.hasAttribute("checked")&&Is(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){Bn(t).attributeExists("label")},events:{click:function(t,e){var i=Is(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new ft("change",{bubbles:!0}))}(t)),Ss(t,"checked",i.checked)}},attributes:{id:$s,checked:Fs,disabled:Ls("disabled"),form:Rs,name:Ls("name"),value:js,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Is(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Is(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Hs},prototype:{focus:function(){return Is(this).focus(),this},get checked(){return Is(this).checked},set checked(t){Is(this).checked!==t&&(Is(this).checked=t,Ss(this,"checked",t))},get disabled(){return Is(this).disabled},set disabled(t){return Ss(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return Rs.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Is(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Is(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Is(this).getAttribute("aria-busy")},set busy(t){const e=Is(this),i=Ns(this);var n,s;return Ss(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),r(this.querySelector(".aui-toggle-tick")).append(i)):r(this.querySelector(".aui-toggle-cross")).append(i)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),i.parentNode&&i.parentNode.removeChild(this._spinner)),s=!!t,(n=this).id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'.concat(n.id,'"]')),(function(t){t.disabled=s})),t}}});function Vs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Us(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Vs(Object(i),!0).forEach((function(e){zs(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vs(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function zs(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ys(t,e){X(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),Q(t,e)}function qs(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};i=Us(Us({},i),{onCreate:()=>{ar(t)&&dt().enter(r(t),r(e))},onEvents:{enabled:()=>{ar(t)&&dt().enter(r(t))},disabled:()=>{ar(t)&&dt().exit(r(t))}}}),t._auiAlignment=new pi(t,e,i)}}function Ks(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Js(t){return J(t).get("mouse-inside")||t.contains(document.activeElement)}function Gs(t,e){var i=e.currentTarget;i&&(Ys(t,i),qs(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Qs(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(e){e.open&&!Ot(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){Js(e)||(e.open=!1),e._closingTimeout=null}),t))}}const Xs={click(t,e){t.open&&!Ot(t).isPersistent()?t.open=!1:(Ys(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:Gs,mouseleave:Qs(1e3),focus:Gs,blur:Qs(0)};function Zs(t){var e=t.currentTarget;J(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function tr(t){var e=t.currentTarget;J(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function er(t){var e=t.currentTarget;"hover"===e.respondsTo&&Qs(1e3)(e)}function ir(t){J(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",Zs),t.removeEventListener("mouseleave",tr),t.removeEventListener("blur",er),"hover"===t.respondsTo&&(J(t).set("mouse-inside",!1),t.addEventListener("mouseenter",Zs),t.addEventListener("mouseleave",tr),t.addEventListener("blur",er))}function nr(t,e){return"".concat(t,".nested-layer-").concat(e)}function sr(t){return Ot(t).show(),!0===Ot(t).isVisible()}function rr(t){return Ot(t).hide(),!1===Ot(t).isVisible()}function ar(t){return"hover"!==t.respondsTo}function or(t){t.__initialised||(Ot(t),r(t).on({["".concat(gt,"show")]:function(){const t=this;!function(t){let e=r(t);const i=t.id,n=t=>e.find(G(t.target)).length<1;r(document).on(nr("aui-layer-show",i),(t=>{n(t)||e.attr("persistent","")})).on(nr("aui-layer-hide",i),(t=>{n(t)||e.removeAttr("persistent")})).on(nr("select2-opening",i),(()=>{e.attr("persistent","")})).on(nr("select2-close",i),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),X(t,(function(e){qs(t,e),e.setAttribute("aria-expanded","true")}))},["".concat(gt,"hide")]:function(){const t=this;!function(t){const e=t.id;r(document).off(nr("aui-layer-hide",e)).off(nr("aui-layer-show",e)).off(nr("select2-opening",e)).off(nr("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):Ks(t),X(t,(function(t){t.setAttribute("aria-expanded","false")})),Q(t,null)}}),t.__initialised=!0)}const lr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},cr=K("aui-inline-dialog",{prototype:{get open(){return Ot(this).isVisible()},set open(t){this.__propUpdate=!0,t?sr(this):rr(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Os.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=lr.attribute;return Os.computeEnumValue(lr,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Os.setEnumAttribute(this,lr,t),e!==this.respondsTo&&ir(this)},message:function(t){return function(t,e){var i={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[t.respondsTo];i&&i.indexOf(e.type)>-1&&Xs[e.type](t,e)}(this,t),this}},attributes:{open:function(t,e){if(or(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){sr(t)||Ss(t,"open",!1)}if("removed"===e.type){rr(t)||Ss(t,"open",!0)}}},"responds-to":function(t,e){Os.computeEnumValue(lr,e.oldValue)!==Os.computeEnumValue(lr,e.newValue)&&ir(t)}},created:or,attached:function(t){Bn(t).attributeExists("id"),t.setAttribute("tabindex",0),t.setAttribute("role","dialog"),X(t,(function(e){e.setAttribute("aria-expanded",t.open)})),Z(t,(function(t){t.setAttribute("aria-haspopup","true")})),ir(t)},detached:function(t){fi(t).then((()=>{Ks(t),Z(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){r('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});q("aui/inline-dialog2",cr),a("InlineDialog2",cr);var ur=cr;function dr(t){if(this.$el=r(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new dr(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){hr(r(this).children(".aui-nav")).expand()}));var i=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return i.on("click",(function(){hr(r(this).siblings(".aui-nav")).toggle()})),i.each((function(){var t=r(this).parent("li[aria-expanded]"),e=r(this).find(".aui-icon"),i="true"===t.attr("aria-expanded");e.text(i?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}dr.prototype.isNested=function(){return 1===this.$treeParent.length},dr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},dr.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(I18n.getText("aui.words.collapse")),this},dr.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(I18n.getText("aui.words.expand")),this},dr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const hr=ht("navigation",dr),pr=K("aui-nav",{type:K.type.CLASSNAME,attached:function(t){new dr(t)},detached:function(t){r(t).removeData()}});a("navigation",hr);var fr=hr;function gr(t,e,i){let{currentProgress:n,value:s}=i;const a=r(t),o=r(e);"number"==typeof s&&s<=1&&s>=0&&(o.trigger("aui-progress-indicator-before-update",[n,s]),a.one("transitionend webkitTransitionEnd",(function(){o.trigger("aui-progress-indicator-after-update",[n,s])})),function(t,e,i){F(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(a,o,s))}function mr(t){var e=r(t).first(),i=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),F(e),i.css("width","")}const vr={indeterminate:!1,max:1,val:0};function br(t){return Object(Wt.isNumber)(t)&&Object(Wt.isFinite)(t)&&!Object(Wt.isNaN)(t)}function yr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const i=parseFloat(t);return br(i)?i:Number(e)}function wr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number(parseFloat(t).toFixed(e))}function _r(t){const{val:e,max:i}=t,n=function(t){return t>0?t:vr.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=wr(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:wr(100*r,2)}}function Cr(t){const{val:e,valAsFraction:i,max:n}=_r(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),mr(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),gr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function kr(t,e){t._data.val=yr(e.newValue,e.oldValue||vr.val),Cr(t)}function xr(t,e){t._data.max=yr(e.newValue,e.oldValue||vr.max),Cr(t)}const Er=K("aui-progressbar",{template(t){t._data.max=yr(t.getAttribute("max"),vr.max),t._data.val=yr(t.getAttribute("value"),vr.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=_r(t._data),r=t._data.indeterminate?"":'data-value="'.concat(n,'"');t.innerHTML='<div class="aui-progress-indicator"\n '.concat(r,'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="').concat(e,'"\n aria-valuemax="').concat(i,'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ').concat(s,'%"></span>\n </div>')},attached(t){Cr(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:vr.val,fallback:function(t,e){if(t._updating)return!1;kr(t,e)}},max:{value:vr.max,fallback:function(t,e){if(t._updating)return!1;xr(t,e)}}},prototype:{get _data(){return this.__data||(this._data=Object(Wt.defaults)({},vr))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Cr(this)},get value(){const{val:t}=_r(this._data);return t},set value(t){if(!br(t))return!1;const e={newValue:wr(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,kr(this,e)},get max(){const{max:t}=_r(this._data);return t},set max(t){if(!br(t))return!1;const e={newValue:wr(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,xr(this,e)}}}),Dr={update:I((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var i=r(t).first(),n=i.children(".aui-progress-indicator-value"),s=i.attr("data-value"),a=!s,o=parseFloat(s)||0,l=s&&o===e;if(l){l=o===100*(parseFloat(n.get(0).style.width)||0)}if(!l)return a&&n.css("width",0),gr(n,i,{currentProgress:o,value:e}),i}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:I(mr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};a("progressBars",Dr);var Tr=Dr;i(25);const Ar={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Sr(t,e){let i=Object.assign({},Ar,e);return t.find("th").each((function(t,e){const n=r(e);i.headers[t]={},n.hasClass("aui-table-column-unsortable")?i.headers[t].sorter=!1:(n.attr("tabindex","0"),n.wrapInner("<span class='aui-table-header-content'/>"),n.hasClass("aui-table-column-issue-key")&&(i.headers[t].sorter="issue-key"))})),t.tablesorter(i)}let Or={setup:function(){r.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],s="..........",r="000000";let a=(i+s).slice(0,s.length);return a+=(r+n).slice(-r.length),a},type:"text"}),r.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),r.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),r(".aui-table-sortable").each((function(){Sr(r(this))}))},setTableSortable:function(t,e){return Sr(t,e)}};r(Or.setup),a("tablessortable",Or);function Ir(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var i=r(t),n=e||!1;i.each((function(){var t=r(this);t.attr("id")||t.attr("id",yi(n))}))}a("_addID",Ir);var Nr=Ir;function Pr(t){return(t=r(t)).prop("scrollWidth")>t.prop("clientWidth")}a("isClipped",Pr);var Mr=Pr,Lr=window.skateTemplateHtml;function Rr(t){let e=r(t),i=String(e.attr("href")||"").trim();return 0===i.indexOf("#")?i.substr(1):null}function $r(t){let e=Rr(t);return e?document.getElementById(e):null}var jr={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,i){e+=r(i).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i='<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-'.concat(e,'"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-').concat(e,'"\n href="#aui-tabs-responsive-dropdown-').concat(e,'">...</a>\n </li>');return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,i){function n(t,e,i){return t+e<=i}for(var s=0,a=0;n(s,i,e)&&a<t.length;a++){s+=r(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,i){for(var n=i.find("a").attr("aria-controls"),s=r("#"+n),a=this.findNewVisibleTabs(t,e.outerWidth(),i.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=r(t[l]);this.moveTabToResponsiveDropdown(c,s,i)}return r(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,i){function n(t){return t>0}for(var s=0;n(e)&&s<t.length;s++){var a=r(t[s]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,i),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Fr(t){var e=r(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var i=$r(e);if(i){var n=r(i);n.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var s=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=r(document.getElementById(s));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=n.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&n.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:n})}else p("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Hr(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Wr(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return"_internal-aui-tabs-"+(e||"")+(i&&"true"!==i?"-"+i:"")}function Br(t){Kr.change(r(t.target).closest("a")),t&&t.preventDefault()}function Vr(t){t.forEach((function(t,e){!function(t,e){var i=r(t),n=i.find(".tabs-menu").first(),s=n.find("li:not(.aui-tabs-responsive-trigger-item)"),a=n.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=r(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=jr.totalTabsWidth(s,c)>i.outerWidth();if(!u&&d&&(a=jr.createResponsiveDropdownTrigger(n,e),c=jr.createResponsiveDropdown(i,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=jr.moveVisibleTabs(s.toArray(),i,a),p=jr.totalVisibleTabWidth(h),f=i.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");jr.moveInvisibleTabs(g.toArray(),f,a)}i.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Br),n.is(":visible")&&n.hide().show()}u&&!d&&(c.find("li").each((function(){jr.moveTabOutOfDropdown(r(this),a)})),jr.removeResponsiveDropdown(c,a))}(t,e)}))}function Ur(){return r('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function zr(t){var e=r(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var i=e.children("ul.tabs-menu");i.attr("role","tablist"),i.children("li").attr("role","presentation"),i.find("> .menu-item a").each((function(){var t,e,i;e=r(t=this),i=$r(e),Rr(t)||p('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),i?(Nr(e),e.attr("role","tab"),r(i).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):h("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),i.on("click.aui-tabs","a",Br),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(qr)}(t)}}function Yr(){var t=r(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){zr(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Hr(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(Wr(n));if(r){var a=s.querySelector('a[href$="'.concat(r,'"]'));a&&Fr(a)}}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function qr(t){t.setAttribute("role","tabpanel")}var Kr={setup:function(){!function(){const t=Object(Wt.debounce)(Vr,200);t(Ur()),r(window).on("resize.aui-tabs",(()=>t(Ur())))}(),Yr(),r(".aui-tabs.vertical-tabs").find("a").each((function(){var t=r(this);t.attr("title")||Mr(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof r?t:document.querySelector(t),i=r(e).first(),n=i.closest(".aui-tabs");Fr(i),Hr(n)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=Rr(t);i&&window.localStorage.setItem(Wr(e),"#"+i)}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}(i)}};r(Kr.setup);const Jr=K("aui-tabs",{created:function(t){r(t).addClass("aui-tabs horizontal-tabs"),K.init(t),zr(t)},template:Lr('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e,i=r((e=this,e.querySelectorAll("aui-tabs-pane"))).index(t);return i>-1&&Kr.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[i].children[0]),this}}}),Gr=K("aui-tabs-tab",{extends:"li",created:function(t){r(t).addClass("menu-item")},template:Lr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),Qr=K("aui-tabs-pane",{attached:function(t){var e=r(function(t){return r(t).closest("aui-tabs").get(0)}(t)),i=r(t),n=e.find("aui-tabs-pane").index(i),s=new Gr,a=r(s);i.addClass("tabs-pane"),s.firstChild.setAttribute("href","#"+t.id),Lr.wrap(s).textContent=i.attr("title"),0===n&&i.addClass("active-pane"),i.hasClass("active-pane")&&a.addClass("active-tab"),i.siblings("ul").append(s)},template:Lr("<content></content>")});a("tabs",Kr);const Xr="_aui-form-notification-initialised",Zr="data-aui-notification-wait",ta="data-aui-notification-info",ea="data-aui-notification-error",ia=[ea,"data-aui-notification-success",Zr,ta];function na(t){sa(t)||(!function(t){t.addClass(Xr),ra(t)}(t),la(t))}function sa(t){return t.hasClass(Xr)}function ra(t,e){e=e||aa(t),oa(t)===ta&&t.after(function(t){if(t.length>1){let e=t.map((t=>"<li>".concat(t,"</li>"))).join("");return'<div class="description"><ul>'.concat(e,"</ul></div>")}return'<div class="description">'.concat(t,"</div>")}(e))}function aa(t){var e=oa(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function oa(t){var e;return ia.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function la(t){const e=r(t);if(!sa(e))return;const i=oa(e);da(e,i===Zr);const n=aa(e);n&&i===ea?ca(e,n):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(ea)||e.parent().find(".error").remove()}function ca(t,e){let i=ua(t,"error");i.length>0&&i.remove(),t.after(function(t){let e=t.map((t=>'<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">'.concat(t,"</span>").concat(t,"</li>"))).join("");return'<div class="error"><ul>'.concat(e,"</ul></div>")}(e))}function ua(t,e){return t.parent().find(".".concat(e))}function da(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const ha=S("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});K("data-aui-notification-field",{attached:function(t){ha(),na(r(t))},attributes:function(){const t={};return ia.forEach((function(e){t[e]=la})),t}(),type:K.type.ATTRIBUTE}),q("aui/form-notification");var pa=["displayfield","watchfield","when","novalidate","state"],fa=[];var ga={register:function(t,e){var i;if("string"==typeof t)i=t;else{var n=function(t){var e=!1;return t.some((function(t){var i=-1!==r.inArray(t,pa);return i&&(e=t),i})),e}(t);if(n)return h('Validators cannot be registered with the argument "'+n+'", as it is a reserved argument.'),!1;i="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var s={validatorFunction:e,validatorTrigger:i};return fa.push(s),s},validators:function(){return fa}};q("aui/form-validation/validator-register",ga);var ma=ga;function va(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),s=parseInt(t.args("maxlength"),10);if(n&&s&&n===s&&!i&&e!==n){const e=ka("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=ka("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=ka("maxlength",t.args);t.invalidate(e)}else t.validate()}function ba(t){return"password"===t.getAttribute("type")}function ya(t,e){var i=t.match(e);return!!i&&t===i[0]}function wa(t){var e=ka("pattern",t.args);ya(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function _a(t){var e=ka("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Ca(t){var e=ka("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),s=t.args("max");n&&i<parseInt(n,10)?t.invalidate(ka("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(ka("max",t.args)):t.validate()}}function ka(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:xa[t];var s=i;i||(s=[e(t)]);var r,a=e(t+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}ma.register(["maxlength","minlength"],va),ma.register("[maxlength],[minlength]",va),ma.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=ka("matchingfield",t.args,[e,n]);(ba(t.el)||ba(i))&&(s=ka("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),ma.register(["doesnotcontain"],(function(t){var e=ka("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),ma.register(["pattern"],wa),ma.register("[pattern]",wa),ma.register(["required"],_a),ma.register("[required]",_a),ma.register(["min","max"],Ca),ma.register("[min],[max]",Ca),ma.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=ka("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=e.split(""),r="";s.forEach((function(t){var e=n.hasOwnProperty(t);r+=e?n[t]:t}));var a=new RegExp(r+"$","i");ya(t.el.value,a)?t.validate():t.invalidate(i)})),ma.register(["minchecked","maxchecked"],(function(t){var e=r(t.el).find(":checked").length,i=!t.args("minchecked")||e>=t.args("minchecked"),n=!t.args("maxchecked")||e<=t.args("maxchecked"),s=ka("minchecked",t.args),a=ka("maxchecked",t.args);i&&n?t.validate():i?n||t.invalidate(a):t.invalidate(s)}));var xa={minlength:I18n.getText("aui.validation.message.minlength"),maxlength:I18n.getText("aui.validation.message.maxlength"),exactlength:I18n.getText("aui.validation.message.exactlength"),matchingfield:I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:I18n.getText("aui.validation.message.doesnotcontain"),pattern:I18n.getText("aui.validation.message.pattern"),required:I18n.getText("aui.validation.message.required"),validnumber:I18n.getText("aui.validation.message.validnumber"),min:I18n.getText("aui.validation.message.min"),max:I18n.getText("aui.validation.message.max"),dateformat:I18n.getText("aui.validation.message.dateformat"),minchecked:I18n.getText("aui.validation.message.minchecked"),maxchecked:I18n.getText("aui.validation.message.maxchecked")};q("aui/form-validation/basic-validators");const Ea="data-aui-notification-",Da="invalid",Ta="valid",Aa="validating",Sa="unvalidated",Oa="_aui-form-validation-initialised",Ia="_aui-internal-field-state-changed";function Na(t){(function(t){return t.hasClass(Oa)})(t)||(!function(t){t.addClass(Oa),ra(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=Ma(t,"when"),i=Ma(t,"watchfield");(i?t.add("#"+i):t).on(e,(function(){Pa(t)}))}(t)}(t),$a(t,Sa))}function Pa(t){if(!Ma(t,"novalidate"))return function(t){!function(t){ja(Ha(t),"none")}(t);var e=function(t){var e=[];return La().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);$a(t,Aa);var i=function(t,e){var i=[];return e.forEach((function(e){var n=La()[e].validatorFunction,s=new r.Deferred;n(function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){$a(t,Da,i),e.reject()},args:Ra(t),el:t[0],$el:t};return M(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,s)),i.push(s)})),i}(t,e),n=r.when.apply(r,i);return n.done((function(){$a(t,Ta)})),n}(t);$a(t,Ta)}function Ma(t,e){var i=t.attr("data-aui-validation-"+e);return i||(i={when:"change"}[e]),i}function La(){return ma.validators()}function Ra(t){return function(e){return t.attr("data-aui-validation-"+e)||t.attr(e)}}function $a(t,e,i){if(t.attr("data-aui-validation-state",e),e!==Sa){t.trigger(r.Event(Ia));var n=Ha(t),s={validating:"wait",invalid:"error",valid:"success"},a=s[e];e===Aa?function(t){setTimeout((function(){Wa(t)===Aa&&(ja(t,"wait"),da(t,!0))}),500)}(t):ja(n,a,i)}}function ja(t,e,i){const n=function(t){return t.is("[data-aui-notification-wait]")}(t);!function(t){Fa(t,"wait"),da(t,!1),Fa(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Fa(t,"error");else{const n=t.attr(Ea+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr(Ea+e,JSON.stringify(a)),"error"===e&&ca(t,a)}}function Fa(t,e){t.removeAttr(Ea+e),"error"===e&&ua(t,e).remove()}function Ha(t){var e=Ma(t,"displayfield");return void 0===e?t:r("#"+e)}function Wa(t){return t.attr("data-aui-validation-state")}function Ba(t,e){e.preventDefault(),t.one(Ia,(function(){t.trigger("submit")}))}function Va(t,e){var i="[data-aui-validation-state="+e+"]";return t.find(i)}r(document).on("submit",(function(t){var e=t.target,i=r(e),n=function(t){return a=t.find("."+Oa),e=r.map(a,(function(t){return Wa(r(t))})),i=-1!==e.indexOf(Da),n=-1!==e.indexOf(Sa),s=-1!==e.indexOf(Aa),i?Da:n?Sa:s?Aa:Ta;var e,i,n,s;var a}(i);if(n===Sa)Ba(i,t),function(t){Va(t,Sa).each((function(t,e){Ua.validate(r(e))}))}(i);else if(n===Aa)Ba(i,t);else if(n===Da)t.preventDefault(),function(t){Va(t,Da).first().focus()}(i);else if(n===Ta){var s=r.Event("aui-valid-submit");i.trigger(s),s.isDefaultPrevented()&&t.preventDefault()}}));const Ua={register:ma.register,validate:function(t){Pa(t=r(t))}};K("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Na(r(t)),K.init(t)},type:K.type.ATTRIBUTE}),q("aui/form-validation",Ua),a("formValidation",Ua);var za=I((function(t,e){var i,n;return function(){var s=arguments,r=this,a=function(){n=t.apply(r,s),r=s=null};return clearTimeout(i),i=setTimeout(a,e),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}),Ya=za;a("debounce",za),a("debounceImmediate",I((function(t,e){var i,n=null;return function(){var s=this,r=arguments,a=function(){n=s=r=null};return null===n&&(i=t.apply(s,r)),clearTimeout(n),n=setTimeout(a,e),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const qa=r(window);function Ka(t){var e,i=this;this.element=t,this.$element=r(t),this.index=r("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=r(i.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}Ka.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=r(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=r(this).parent(),i=e.outerWidth(!0);t.totalWidth+=i,t.menuItems.push({$element:e,outerWidth:i})})),this.rightMostNavItemIndex=this.menuItems.length-1,qa.on("resize",this._resizeHandler=Ya((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){qa.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id="aui-responsive-header-dropdown-".concat(this.index),K.init(e);var i=document.createElement("aui-section");i.id="aui-responsive-header-dropdown-list-".concat(this.index),K.init(i),e.appendChild(i);var n,s,a=(n=e,(s=document.createElement("a")).setAttribute("class","aui-dropdown2-trigger"),s.setAttribute("href","#"),s.id=n.id+"-trigger",s.setAttribute("aria-controls",n.id),s.innerHTML=I18n.getText("aui.words.more"),s);return t.appendChild(a),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=r(t).outerWidth(!0),r(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=r("#aui-responsive-header-dropdown-".concat(this.index)),i=this.rightMostNavItemIndex+1,n=this.rightMostNavItemIndex+t,s=i;s<=n;s++){var a=this.menuItems[s].$element,o=a.children("a");if(o.attr("aria-controls")){var l=r(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=ce.a.wrap(this.$moreMenu[0].querySelector("aui-section")),i=this.rightMostNavItemIndex,n=this.rightMostNavItemIndex-t+1,s=i;s>=n;s--){var a=this.menuItems[s].$element,o=a.children("a");K.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=r(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}K.init(l),ce.a.wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new ft("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};var Ja=function(t){let e=t._header;return e instanceof Ka||(e=new Ka(t),e.init(),t._header=e),e};function Ga(){r(".aui-header").each((function(){Ja(this)}))}r(Ga);const Qa={};Qa.setup=I(Ga,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),a("responsiveheader",Qa);var Xa=K("aui-header",{type:K.type.CLASSNAME,created:function(t){Ja(t)}}),Za=i(20),to=i.n(Za);const eo=t=>{let{minDate:e,maxDate:i,dateFormat:n,$field:s,onSelect:r,hide:a,onChangeMonthYear:o}=t;return{dateFormat:n,defaultDate:s.val(),maxDate:i||s.attr("max"),minDate:e||s.attr("min"),nextText:">",onSelect:function(t){s.val(t),s.trigger("change"),a(),r&&r.call(this,t)},onChangeMonthYear:o,prevText:"<"}},io=(t,e)=>{let i,n,s,a=!1;const o=r("body"),l=e=>{let i=r(e.target),s=i.closest(n).length||i.is(t),o=i.closest(".ui-datepicker-header").length;if(!s&&!o||e.keyCode===Y.ESCAPE)return h(),void(a=!1);i.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{i.get(0).open||d()},d=()=>{i.get(0).open=!0},h=()=>{i.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:t=>{let{$field:c}=t;return i=(t=>{let{horizontalAlignment:e,datePickerUUID:i}=t;const n=new ur;n.id=i;const s=r(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment","bottom ".concat(e)),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(c),datePickerUUID:e}),s=c.closest("aui-inline-dialog").get(0),s&&(s._datePickerPopup=i,r(s).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),s&&s._datePickerPopup&&delete s._datePickerPopup}))),o.append(i),n=i,i},handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(i.refresh,0)},getCalendarNode:()=>i.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},no=function(t){const e=t.getField(),i=t.getOptions(),n=t.getUUID();let s;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=io(e,n),g=t=>{r(t.currentTarget).val()&&s.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==s)return t(e)},n=i((()=>{s.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{p(),e.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{s.datepicker("setDate",t)})),t.getDate=i((()=>s.datepicker("getDate"))),t.setMin=i((t=>s.datepicker("option","minDate",t))),t.setMax=i((t=>s.datepicker("option","maxDate",t)))}i.languageCode in so.prototype.localisations||(i.languageCode="");const y=so.prototype.localisations;if(e.attr("aria-controls",n),void 0===s){void 0!==e.attr("step")&&d("WARNING: The date picker polyfill currently does not support the step attribute!");const n=eo({dateFormat:i.dateFormat,minDate:i.minDate,maxDate:i.maxDate,$field:e,onSelect:i.onSelect,hide:t.hide,onChangeMonthYear:u}),o=r.extend(void 0,n,y);i.firstDay>-1&&(o.firstDay=i.firstDay),s=(t=>{let{config:e,popupContents:i,getCalendarNode:n,hint:s}=t;const a=r(n());let o;return a.datepicker(e),s&&(o=r("<div/>").addClass("aui-datepicker-hint"),o.append("<span/>").text(s),i.append(o)),a})({config:o,popupContents:a({$field:e}),getCalendarNode:h,hint:i.hint}),f(),e.on("propertychange keyup input paste",g),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}e.on("focus click",o),e.attr("placeholder",i.placeholder),e.prop("type","text"),e.val(e.attr("value")),e.trigger("propertychange"),e.attr("data-aui-dp-uuid",n)};function so(t,e){let i={};const n=yi("date-picker"),s=r(t),a={getUUID:()=>n,getField:()=>s,getOptions:()=>i,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!so.prototype.browserSupportsDateField,e=!1!==i.overrideBrowserDefault;(t||e)&&no(a)},reconfigure:t=>{i=r.extend(void 0,so.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function ro(t,e){const i=r.extend({nextText:">",prevText:"<"},e),n=r(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(i);if(i.hint){const t=r("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(i.hint),n.append(t)}return n.reconfigure=t=>{n.datepicker("destroy"),n.datepicker(t)},n.destroy=()=>{n.datepicker("destroy")},n}so.prototype.browserSupportsDateField=function(){if(void 0===re){var t=document.createElement("input");t.setAttribute("type","date"),re="date"===t.type}return re}(),so.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:r("html").attr("lang")||"en-AU",dateFormat:to.a.W3C},so.prototype.localisations={dayNames:[I18n.getText("ajs.datepicker.localisations.day-names.sunday"),I18n.getText("ajs.datepicker.localisations.day-names.monday"),I18n.getText("ajs.datepicker.localisations.day-names.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names.thursday"),I18n.getText("ajs.datepicker.localisations.day-names.friday"),I18n.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[I18n.getText("ajs.datepicker.localisations.day-names-min.sunday"),I18n.getText("ajs.datepicker.localisations.day-names-min.monday"),I18n.getText("ajs.datepicker.localisations.day-names-min.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.thursday"),I18n.getText("ajs.datepicker.localisations.day-names-min.friday"),I18n.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:I18n.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===I18n.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[I18n.getText("ajs.datepicker.localisations.month-names.january"),I18n.getText("ajs.datepicker.localisations.month-names.february"),I18n.getText("ajs.datepicker.localisations.month-names.march"),I18n.getText("ajs.datepicker.localisations.month-names.april"),I18n.getText("ajs.datepicker.localisations.month-names.may"),I18n.getText("ajs.datepicker.localisations.month-names.june"),I18n.getText("ajs.datepicker.localisations.month-names.july"),I18n.getText("ajs.datepicker.localisations.month-names.august"),I18n.getText("ajs.datepicker.localisations.month-names.september"),I18n.getText("ajs.datepicker.localisations.month-names.october"),I18n.getText("ajs.datepicker.localisations.month-names.november"),I18n.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===I18n.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:I18n.getText("ajs.datepicker.localisations.year-suffix")};const ao="aui-datepicker",oo=t=>function(e){let i=this.data(ao);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(ao,i)),i};r.fn.datePicker=oo(so),a("DatePicker",so),r.fn.calendarWidget=oo(ro),a("CalendarWidget",ro);var lo=so,co=(i(27),i(9),i(10),i(28),i(32),{NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",STATUS:"aui-restfultable-status"}),uo=Xn.a.View,ho=Xn.a.View,po=Xn.a.View,fo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"},go=(i(33),{REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"});const mo='<aui-spinner size="small"></aui-spinner>',vo="aui-spinner";function bo(t){0===t.find(vo).length&&t.find(".".concat(co.STATUS)).append(mo)}function yo(t){t.find(".".concat(co.STATUS," ").concat(vo)).remove()}var wo=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),_o=Xn.a.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=r(this.el),this._event=go,this.classNames=co,this.dataKeys=fo,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?r("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return wo&&(e=this.$el.find(":submit")).length&&(t=r("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var t,e;return wo&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return bo(this.$el),this},hideLoading:function(){return yo(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,i=this;if(document.activeElement!==window&&r(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return i.trigger(i._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){i.isUpdateMode?i.trigger(i._event.UPDATED,i.model,t):(i.trigger(i._event.CREATED,i.model.toJSON()),i.model=new i._modelClass,i.render({errors:{},values:{}}),i.trigger(i._event.FOCUS)),i.trigger(i._event.SUBMIT_FINISHED)},error:function(t,e,n){400===n.status&&(i.renderErrors(e.errors),i.trigger(i._event.VALIDATION_ERROR,e.errors)),i.trigger(i._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return r("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&r.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&r('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),r.each(this.columns,(function(i,n){var s,a,o=t.values[n.id],l=[{name:n.id,ariaLabel:n.inputAriaLabel?n.inputAriaLabel:n.header,value:o,allowEdit:n.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+n.id,o),s=e.isCreateRow&&n.createView?new n.createView({model:e.model}).render(l[0]):n.editView?new n.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=r("<td />"),"object"==typeof s&&s.done?s.done((function(t){a.append(t)})):a.append(s),n.styleClass&&a.addClass(n.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=r('<td class="aui-restfultable-operations" />');return t?e.append(r('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(r('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(r('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(r('<td class="'.concat(this.classNames.STATUS,'" />')))}});const Co=document||{},ko=r(Co);function xo(t,e){ko.trigger(t,e)}function Eo(t,e,i){r(e).trigger(t,i),xo(t,i),e.id&&xo(e.id+"-"+t,i)}var Do=Xn.a.Model.extend({sync:function(t,e,i){var n=this,s=i.error;return i.error=function(t){n._serverErrorHandler(t,this),s&&s.apply(this,arguments)},Xn.a.sync.apply(Xn.a,arguments)},save:function(t,e){var i,n=this,s=(e=e||{}).error,a=e.success;e.error=function(t,e){var i=r.parseJSON(e.responseText||e.data);s&&s.call(n,n,i,e)},this.isNew()?Xn.a.Model.prototype.save.call(this,t,e):t&&((i=new(Do.extend({url:this.url()}))({id:this.id})).save=Xn.a.Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),a&&a.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,i=this.url();return r.ajax({url:i,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},i=this.toJSON();if(r.each(t,(function(t,n){i[t]?i[t]&&i[t]!==n&&("object"==typeof n&&Object(Wt.isEqual)(n,i[t])||(e[t]=n)):"string"==typeof n?""!==r.trim(n)&&(e[t]=n):r.isArray(n)?0!==n.length&&(e[t]=n):e[t]=n})),!Object(Wt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var i;400!==t.status&&(i=r.parseJSON(t.responseText||t.data),Eo(go.SERVER_ERROR,this,[i,t,e]))},fetch:function(t){t=t||{},this.clear(),Xn.a.Model.prototype.fetch.call(this,t)}}),To=Do,Ao=Xn.a.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=go,this.classNames=co,this.dataKeys=fo,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=r(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return r(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return r(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return bo(this.$el),this},hideLoading:function(){return yo(this.$el),this},edit:function(t){var e;return e=r(t.target).is("."+this.classNames.EDITABLE)?r(t.target).attr("data-field-name"):r(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return r("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),i=r("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),n=r('<td class="'.concat(this.classNames.STATUS,'" />'));return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&r('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),r.each(this.columns,(function(i,n){var s,a=r("<td />"),o=e[n.id],l=n.fieldName||n.id,c=[{name:l,value:o,allowEdit:n.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+n.id,o),s=n.readView?new n.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==n.allowEdit){var u=r("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(s).attr("data-field-name",l);a=r("<td />").append(u).appendTo(t.$el),s&&r.trim(s)||(a.addClass(t.classNames.NO_VALUE),u.html(r("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(s);n.styleClass&&a.addClass(n.styleClass),a.appendTo(t.$el)})),this.$el.append(i).append(n).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),So=Xn.a.View.extend({initialize:function(t){var e=this;if(e.options=r.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=go,e.classNames=co,e.dataKeys=fo,this.$table=r(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=r("<thead/>"),this.$theadRow=r("<tr />").appendTo(this.$thead),this.$tbody=r("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var i=r.isFunction(t.header)?t.header():t.header;void 0===i&&(h("You have not specified [header] for column ["+t.id+"]. Using id for now..."),i=t.id),e.$theadRow.append("<th>"+i+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,i){var n=r("<div/>").attr("class",i.attr("class")).addClass(e.classNames.MOVEABLE);return i.children().each((function(){var t=r(this),e=parseInt(0+t.css("border-left-width"),10),i=parseInt(0+t.css("border-right-width"),10),s=t[0].clientWidth+e+i;n.append(r("<div/>").html(t.html()).attr("class",t.attr("class")).width(s))})),n=r("<div class='aui-restfultable-readonly'/>").append(n),n.css({left:i.offset().left}),n.appendTo(document.body),n},start:function(t,i){var n=i.helper[0].clientHeight,s=i.placeholder.find("td");i.item.addClass(e.classNames.MOVEABLE).children().each((function(t){r(this).width(s.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'">&nbsp;</td>';i.placeholder.html(a).css({height:n,visibility:"visible"}),e.getRowFromElement(i.item[0]).trigger(e._event.MODAL)},stop:function(t,i){r(i.item[0]).is(":visible")&&(i.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),i.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(i.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!r(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=r('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;r.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):r.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,i=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var n=e.options.reverseOrder?i(t.nextItem):i(t.prevItem);r.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(n),complete:function(){t.row.hideLoading()},success:function(t){Eo(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=r.parseJSON(t.responseText||t.data);Eo(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this;return new(this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(){this.tableRows=t.getRows();for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return Xn.a.Collection.prototype.remove.apply(this,i),this.tableRows=void 0,this}}))([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),Eo(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=r('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+mo+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),Eo(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Eo(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return r(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=r("<tr>").addClass(this.classNames.NO_ENTRIES).append(r("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var i=r(this).data(t.dataKeys.ROW_VIEW);i&&e.push(i)})),e},_renderRow:function(t,e){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){Eo(this._event.EDIT_ROW,{},[this,s]),s.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==r.length?i.insertBefore(r[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach((function(t){s.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof Ao&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=r.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=t.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||To,allowEdit:!0,views:{editRow:_o,row:Ao},Collection:Xn.a.Collection.extend({url:t.resources.self,model:t.model||To}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});So.ClassNames=co,So.CustomCreateView=uo,So.CustomEditView=ho,So.CustomReadView=po,So.DataKeys=fo,So.EditRow=_o,So.EntryModel=To,So.Events=go,So.Row=Ao,a("RestfulTable",So);var Oo=So;function Io(t){return r(t).clone().removeAttr("id")}a("clone",Io);var No=Io,Po=window.DocumentTouch,Mo="ontouchstart"in window||Po&&document instanceof Po;function Lo(t,e,i,n){t.find("[".concat(n,"]")).attr(n,((t,n)=>e===n?i:void 0))}function Ro(t,e){let i=r("<div></div>");i.append(t),i.find("[id]").each(((t,n)=>{const s=e("".concat(n.id,"-"));!function(t,e,i){Lo(t,e,i,"aria-controls"),Lo(t,e,i,"aria-owns")}(i,n.id,s),n.id=s}))}function $o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function jo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?$o(Object(i),!0).forEach((function(e){Fo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):$o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Fo(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ho(t){return t.offset().top}function Wo(t){var e;(this.$el=r(t),this.$el.length)&&(this.$body=r("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new zo,function(t){if(!r(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const i=r(e.target);Go(t,i)}))})(t),Mo&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText="@media ".concat(t," { #testMedia { width: 1px; } }"),document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&r("body").addClass("aui-page-sidebar-touch");var e=null,i=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};r(window).on("scroll resize",i),i(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(r.Event(Bo+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),r(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var n=function(e){a(e)&&t.toggle()};function s(t){return t.keyCode===Y.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Y.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||(e=t.target,"value"in e||e.isContentEditable));var e}function o(t){return t.keyCode===Y.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}r(document).on("keypress",n),t._remove=function(){r(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),r(document).off("keypress",n),r(window).off("scroll resize",i)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(jo(jo({},Xo),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=r(this),i=!1===t.isCollapsed();return!0===Ko(e)||i}})),t.$el.tooltip(jo(jo({},Xo),{},{live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var i=e.target,n=qo(i);if(!n)return;var a=r(n);s(e)&&n.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||s(t)&&c(t.target,a))&&(i.focus(),r(this).off("keydown"),Jo())})))}}))}(this),r((e=this).collapsedTriggersSelector).each((function(){var t=r(this);Go(e,t)})))}var Bo="_aui-internal-sidebar-";function Vo(t){return r.map(t.split(" "),(function(t){return Bo+t})).join(" ")}function Uo(){return document.querySelectorAll(Wo.prototype.inlineDialogSelector)}function zo(){this.inlineDialog=null}function Yo(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function qo(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function Ko(t){return 0!==Yo(t).length}function Jo(){var t=Uo();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function Go(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),Ko(e))){var i=document.createElement("aui-inline-dialog"),n=yi("sidebar-submenu");return e.attr("aria-controls",n),e.attr("data-aui-trigger",""),K.init(e),i.setAttribute("id",n),i.setAttribute("alignment","right top"),i.setAttribute("hidden",""),i.setAttribute("contained-by","viewport"),t.isCollapsed()&&i.setAttribute("responds-to","hover"),r(i).addClass(Wo.prototype.inlineDialogClass),document.body.appendChild(i),K.init(i),function(t,e,i){i.addEventListener("aui-layer-show",(function(n){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(n)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(n)){var s=r.Event("aui-sidebar-submenu-before-show");e.trigger(s,i),s.isDefaultPrevented()?n.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=Qo;var i=t.is("a")?t.text():t.children(".aui-nav-heading").text(),n=r(e).find(".aui-navgroup-inner");function s(t){const e=No(t);return Ro(e,yi),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}n.children(".aui-nav-heading").attr("title",i).children("strong").text(i),s(Yo(t)).appendTo(n)}(e,i)}}else n.preventDefault()})),i.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,i),i}}Wo.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Vo(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Wo.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Vo(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Wo.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Wo.prototype.setTopPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",t>Ho(this.$el)),this},Wo.prototype.setPosition=I(Wo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Wo.prototype.setLeftPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Wo.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:r.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:r.noop,wide:r.noop},e.expanded.narrow={narrow:r.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:r.noop};var i=this.isCollapsed()?"collapsed":"expanded",n=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",s=this.isViewportNarrow(t)?"narrow":"wide";return e[i][n][s](this),this},Wo.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=r.Event(Bo+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),r(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(r.Event(Bo+"collapse-end",{isResponsive:t}))),this},Wo.prototype.collapse=function(){return this._collapse(!1)},Wo.prototype._expand=function(t,e){var i=r.Event(Bo+"expand-start",{isResponsive:e});if(this.$el.trigger(i),i.isDefaultPrevented())return this;var n=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",n),this.$el.toggleClass("aui-sidebar-fly-out",n),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),r(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(r.Event(Bo+"expand-end",{isResponsive:e})),this},Wo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Wo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Wo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Wo.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Wo.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Wo.prototype.reflow=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.innerWidth,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.pageXOffset;var r=Ho(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,r),this.setTopPosition(t))}s!==this._previousScrollLeft&&this.setLeftPosition(s);var c="false"!==this.$el.attr("data-aui-responsive");if(c)this.responsiveReflow(a,i);else{var u=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",u)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Wo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},Wo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Wo.prototype.collapsedTriggersSelector=[Wo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Wo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Wo.prototype.tooltipClassName="aui-sidebar-section-tooltip",Wo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Wo.prototype.inlineDialogSelector="."+Wo.prototype.inlineDialogClass,zo.prototype.submenu=function(t){return tl(),Yo(t)},zo.prototype.hasSubmenu=function(t){return tl(),Ko(t)},zo.prototype.submenuHeadingHeight=function(){return tl(),34},zo.prototype.isShowing=function(){return tl(),Wo.prototype.isSubmenuVisible()},zo.prototype.show=function(t,e){tl(),function(t){qo(t).open=!0}(e)},zo.prototype.hide=function(){tl(),Jo()},zo.prototype.inlineDialogShowHandler=function(){tl()},zo.prototype.inlineDialogHideHandler=function(){tl()},zo.prototype.moveSubmenuToInlineDialog=function(){tl()},zo.prototype.restoreSubmenu=function(){tl()},Wo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Uo(),(function(t){return t.open}))},Wo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Qo='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var Xo={gravity:"w",title:function(){var t=r(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var Zo=ht("sidebar",Wo);r((function(){Zo(".aui-sidebar")}));var tl=S("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});a("sidebar",Zo);var el=Zo;i(34),i(35);function il(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Y.ESCAPE&&i.is(":visible")&&u.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=r.extend({},t,arguments[3])),t=r.extend({},e,t);var i=r("<div></div>").addClass("aui-popup");t.id&&i.attr("id",t.id);var n=2600;r(".aui-dialog").each((function(){var t=r(this);n=t.css("z-index")>n?t.css("z-index"):n}));var s=function e(s,r){return t.width=s=s||t.width,t.height=r=r||t.height,i.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(s/2)+"px",width:s,height:r,"z-index":parseInt(n,10)+2}),e}(t.width,t.height);r("body").append(i),i.hide(),c(i);var a=r(".aui-blanket"),o=function(t,e){var i=r(t,e);return!!i.length&&(i.focus(),!0)},l=function(e){if(0===r(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var i=":input:visible:enabled:first";o(i,r(".dialog-page-body",e))||o(i,r(".dialog-button-panel",e))||o(i,r(".dialog-page-menu",e))}},u={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&s(e,i),this.show()},show:function(){var e=function(){r(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),B(),0!==(a=r(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){i.is(":visible")&&u.hide()})),i.show(),il.current=this,l(i),r(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){r(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===r(".aui-dialog:visible").length&&V();var e=document.activeElement;this.element.has(e).length&&e.blur(),r(document).trigger("hideLayer",["popup",this]),il.current=null,this.enable()},element:i,remove:function(){i.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=r("<div class='dialog-blanket'> </div>").css({height:i.height(),width:i.width()}),i.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return u}var nl=function(){function t(t,e,i,n){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=r("<button></button>").html(e).addClass("button-panel-button"),n&&this.item.addClass(n),"function"==typeof i&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,i,n,s){t.buttonpanel||t.addButtonPanel(),s||(s="#"),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=r("<a></a>").html(e).attr("href",s).addClass("button-panel-link"),n&&this.item.addClass(n),"function"==typeof i&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function i(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==e&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function n(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=i("left","button"),t.prototype.moveDown=t.prototype.moveRight=i("right","button"),t.prototype.remove=n("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var s=function(t,e,i,n,s){i instanceof r||(i=r(i)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=r("<button></button>").html(e).addClass("item-button"),s&&(this.button[0].id=s),this.item=r("<li></li>").append(this.button).addClass("page-menu-item"),this.body=r("<div></div>").append(i).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,n&&this.body.addClass(n);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(d("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};s.prototype.select=function(){this.button.click()},s.prototype.moveUp=s.prototype.moveLeft=i("left","panel"),s.prototype.moveDown=s.prototype.moveRight=i("right","panel"),s.prototype.remove=n("panel"),s.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},s.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=r("<div></div>").addClass("dialog-components"),this.body=r("<div></div>").addClass("dialog-page-body"),this.menu=r("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,i){var n={};+t||(t=(n=Object(t)).width,e=n.height,i=n.id),this.height=e||480,this.width=t||640,this.id=i,n=r.extend({},n,{width:this.width,height:this.height,id:this.id}),this.popup=il(n),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=r("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new s(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=r("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,s){return new e(this,t,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),_("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),_("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),_("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(t+"").replace(r,(function(t,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&e.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&e.push(d[h][n][r]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=r(window).height()-62-52-100,i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(i).body.outerHeight())),i!==this.page[this.curpage].curtab&&this.getPanel(i).body.css({display:"none"});for(i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=r(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();nl=N(nl,"Dialog constructor",{alternativeName:"Dialog2"}),il=N(il,"Dialog popup constructor",{alternatveName:"Dialog2"}),a("Dialog",nl),a("popup",il);const sl=!1;var rl=-1!==navigator.platform.indexOf("Mac"),al=-1!==navigator.userAgent.indexOf("Safari"),ol=/^(backspace|tab|r(ight|eturn)|s(hift|pace|croll)|c(trl|apslock)|alt|pa(use|ge(up|down))|e(sc|nd)|home|left|up|d(el|own)|insert|f\d\d?|numlock|meta)/i;const ll=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function cl(t){var e=[],i=r.Callbacks();function n(t){!il.current&&i&&i.fire(t)}function s(t){t.preventDefault()}function a(t){(t&&t.split?r.trim(t).split(" "):[t]).forEach((function(t){!function(t){var i=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(ol);n?(i+=n[0],t=t.substring(n[0].length)):s?(e.push(i+s[0]),t=t.substring(s[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(i)?"keydown":"keypress";e.push(i),r(document).on(a,sl,i,n),r(document).on(a+" keyup",sl,i,s)}(t)}))}function o(t,e,i){return i?e+=" ("+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=")"}return a(t),cl.makeShortcut({executor:i,bindKeys:a,addShortcutsToTitle:function(t){for(var i=r(t),n=i.attr("title")||"",s=e.slice(),a=i.data("boundKeyCombos")||[],l=i.data("kbShortcutAppended")||"",c=!l,u=c?n:n.substring(0,n.length-l.length);s.length;){var d=s.shift();a.some((function(t){return Object(Wt.isEqual)(d,t)}))||(l=o(d.slice(),l,c),c=!1)}rl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),i.attr("title",u+l),i.data("kbShortcutAppended",l),i.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=r(t),i=e.data("kbShortcutAppended");if(i){var n=e.attr("title");e.attr("title",n.replace(i,"")),e.removeData("kbShortcutAppended"),e.removeData("boundKeyCombos")}},keypressHandler:n,defaultPreventionHandler:s})}cl.makeShortcut=function(t){var e=t.executor,i=t.bindKeys,n=t.addShortcutsToTitle,s=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(i,n){var s=(n=n||{}).focusedClass||"focused",a=!n.hasOwnProperty("wrapAround")||n.wrapAround,o=!n.hasOwnProperty("escToCancel")||n.escToCancel;return e.add((function(){const e=r(i);let n=e.filter("."+s);const l=0===n.length?void 0:{transition:!0};o&&r(document).one("keydown",(function(t){t.keyCode===Y.ESCAPE&&n&&n.removeClass(s)})),n.length&&n.removeClass(s),n=t(n,e,a),n&&n.length>0&&(n.addClass(s),n.moveTo(l),n.is("a")?n.focus():n.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,i){var n;return i&&0===t.length?e.eq(0):(n=r.inArray(t.get(0),e))<e.length-1?(n+=1,e.eq(n)):i?e.eq(0):t})),moveToPrevItem:c((function(t,e,i){var n;return i&&0===t.length?e.filter(":last"):(n=r.inArray(t.get(0),e))>0?(n-=1,e.eq(n)):i?e.filter(":last"):t})),click:function(t){return l.push(t),n(t),e.add((function(){const e=r(t);ll(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),n(t),e.add((function(){var e=r(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),n(t),e.add((function(){const e=r(t);e.length>0&&(ll(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),n(t),e.add((function(e){var i=r(t);i.length>0&&(i.focus(),i.moveTo&&i.moveTo(),i.is(":input")&&e.preventDefault())})),this},or:function(t){return i(t),this},unbind:function(){r(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)s(l[t]);l=[]}}},cl.fromJSON=function(t,e){var i=[];return t&&r.each(t,(function(t,n){const s=n.op,a=n.param;let o;if("execute"===s||"evaluate"===s)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){p("When using a parameter array, array must be in strict JSON format: "+a)}r.isArray(o)||p("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];r.each(n.keys,(function(){var t=this;e&&rl&&(t=r.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var n=cl(t);n[s].apply(n,o),i.push(n)}))})),i},r(document).on("iframeAppended",(function(t,e){r(e).load((function(){r(e).contents().on("keyup keydown keypress",(function(t){al&&"keypress"===t.type||r(t.target).is(":input")||r.event.trigger(t,arguments,document,!0)}))}))})),a("whenIType",cl);var ul=cl;const{FocusManager:dl,InlineDialog2:hl,LayerManager:pl,ProgressiveDataSet:fl,clone:gl,debounce:ml,debounceImmediate:vl,dim:bl,escapeHtml:yl,formValidation:wl,id:_l,isClipped:Cl,keyCode:kl,layer:xl,messages:El,populateParameters:Dl,params:Tl,responsiveheader:Al,select:Sl,tablessortable:Ol,tabs:Il,undim:Nl,_addID:Pl}=window.AJS,{contextPath:Ml}=window.AJS}])}));
102
102
  //# sourceMappingURL=aui-prototyping.nodeps.js.map