@atlassian/aui 9.4.6 → 9.4.8
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.
- package/dist/aui/aui-prototyping.css +2 -2
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +2 -2
- package/dist/aui/aui-prototyping.nodeps.css +2 -2
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +2 -2
- package/package.json +1 -1
- package/src/css-vendor/jquery/plugins/jquery.select2.css +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!!
|
|
2
2
|
* @atlassian/aui - Atlassian User Interface library
|
|
3
|
-
* @version v9.4.
|
|
3
|
+
* @version v9.4.8
|
|
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
|
* @author Christian Bach/christian.bach@polyester.se
|
|
99
99
|
* @contributor Rob Garrison/https://github.com/Mottie/tablesorter
|
|
100
100
|
*/
|
|
101
|
-
!function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function s(t){for(var e in t)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=e.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,s,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(t,c=n[s].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var s,r,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=e.getData(c,u,"string")||g.stringTo||"max",d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&e.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&e.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(s).find(f.selectorHeaders).each((function(i){a=t(this),r=e.getColumnData(s,f.headers,i,!0),f.headerContent[i]=t(this).html(),c=f.headerTemplate.replace(/\{content\}/g,t(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=t(l),r=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,r,"sorter")||"false"===e.getData(l,r,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,r,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,r,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,t)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,t,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){e[0].isUpdating&&e.trigger("updateComplete"),t.isFunction(i)&&i(e[0])}function y(t,i,n){var s=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&s.length?t.trigger("sorton",[s,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,s){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(t,s,r){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,s,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(s),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(e,i){var n,s,r,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===e?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=t.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,s){e.stopPropagation(),c(i,s),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,s){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(t,s){t.stopPropagation(),e.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,s){t.stopPropagation(),e.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(t,n,s){t.stopPropagation(),e.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.7",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,s=t.extend(!0,{},e.defaults,i);s.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,s):e.setup(n,s)}))},e.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r,a="",c=t(n),u=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,t.data(n,"tablesorter",s),s.debug&&t.data(n,"startoveralltimer",new Date),s.supportsDataObject=((r=t.fn.jquery.split("."))[0]=parseInt(r[0],10),r[0]>1||1===r[0]&&parseInt(r[1],10)>=4),s.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(e.css.table+" "+s.tableClass+a).attr("role","grid"),s.$headers=c.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=c.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(e){if(e.config.widthFixed&&0===t(e).find("colgroup").length){var i=t("<colgroup>"),n=t(e).width();t(e.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),t(e).prepend(i)}}(n),o(n),s.totalRows=0,s.delayInit||l(n),e.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==c.data().sortlist?s.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(s.sortList=c.metadata().sortlist),e.applyWidget(n,!0),s.sortList.length>0?c.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&e.applyWidget(n,!1)),s.showProcessing&&c.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(t){clearTimeout(s.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(s.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},e.getColumnData=function(e,i,n,s){if(null!=i){var r,a=(e=t(e)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},e.computeColumnIndex=function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},e.isProcessing=function(i,n,s){var r=(i=t(i))[0].config,a=s||i.find("."+e.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+r.cssProcessing)},e.processTbody=function(e,i,n){var s;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=t.fn.detach?i.detach():i.remove();s=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var r,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,s){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var r=t(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),r.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,s,r,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((s=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,s=t?t.length:0,r=i+e;for(n=0;n<s;n++)r+=t.charCodeAt(n);return e*r}return 0},e.sortNumericAsc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),t-i)},e.sortNumericDesc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",s=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],e.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in s)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,s=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,s=e.widgets.length;for(i=0;i<s;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,s){var r,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},e.refreshWidgets=function(n,s,r){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&e.applyWidget(n,s)},e.getData=function(e,i,n){var s,r,a="",o=t(e);return o.length?(s=!!t.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=t.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,s=t?t.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return t?e.formatFloat(r,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,s){if(t){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return t(n).metadata()[r]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(r=h.eq(u)).children("tr").length>1&&(o=0,r.children("tr:visible").not(n.selectorRemove).each((function(){a=t(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])})));n.debug&&e.benchmark("Applying Zebra widget",c)},remove:function(e,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=t.tablesorter.processTbody(e,a.eq(s),!0)).children().removeClass(o),t.tablesorter.processTbody(e,r,!1)}})}(jQuery)},37:()=>{var t;void 0===(t=jQuery).fn.each2&&t.extend(t.fn,{each2:function(e){for(var i=t([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==e.call(i[0],n,i););return this}}),function(t,e){"use strict";if(window.Select2===e){var i,n,s,r,a,o,l,c,u={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},h={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z"};o=t(document),c=1,r=function(){return c++},o.on("mousemove",(function(t){u.x=t.pageX,u.y=t.pageY})),i=I(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var n,s,a,o,c,d=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(a=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=a(),c=!0),o}),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(S(i.containerCss)),this.container.addClass(S(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(d),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(i){var n=u;n!==e&&n.x===i.pageX&&n.y===i.pageY||t(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",d,this.bind(this.highlightUnderEvent)),function(t,e){var i=y(t,(function(t){e.trigger("scroll-debounced",t)}));e.on("scroll",(function(t){f(t.target,e.get())>=0&&i(t)}))}(80,this.results),this.dropdown.on("scroll-debounced",d,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",(function(t){t.stopPropagation()})),t(this.dropdown).on("change",".select2-input",(function(t){t.stopPropagation()})),t.fn.mousewheel&&n.mousewheel((function(t,e,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),w(t)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(t))})),b(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",(function(){s.addClass("select2-focused")})),s.on("blur",(function(){s.removeClass("select2-focused")})),this.dropdown.on("mouseup",d,this.bind((function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))}))),this.dropdown.on("click mouseup mousedown",(function(t){t.stopPropagation()})),t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var h=i.element.prop("disabled");h===e&&(h=!1),this.enable(!h);var p=i.element.prop("readonly");p===e&&(p=!1),this.readonly(p),l=l||function(){var e=t("<div class='select2-measure-scrollbar'></div>");e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=e},destroy:function(){var t=this.opts.element,i=t.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==e&&(i.container.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show())},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:g(t.attr("locked"),"locked")||g(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var n,s,r,a,o=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=t.extend({},{populateResults:function(n,s,r){var a,l=this.opts.id;(a=function(n,s,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,s,r)).length;u<d;u+=1)p=!(f=!0===(h=n[u]).disabled)&&l(h)!==e,g=h.children&&h.children.length>0,(m=t("<li></li>")).addClass("select2-results-dept-"+c),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(o.opts.formatResultCssClass(h)),(v=t(document.createElement("div"))).addClass("select2-result-label"),(y=i.formatResult(h,v,r,o.opts.escapeMarkup))!==e&&v.html(y),m.append(v),g&&((b=t("<ul></ul>")).addClass("select2-result-sub"),a(h.children,b,c+1),m.append(b)),m.data("select2-data",h),s.append(m)})(s,n,0)}},t.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(t){return t[r]}),t.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(s?(i.query=this.bind((function(t){var i,s,r,a={results:[],more:!1},l=t.term;r=function(e,i){var n;e.is("option")?t.matcher(l,e.text(),e)&&i.push(o.optionToData(e)):e.is("optgroup")&&(n=o.optionToData(e),e.children().each2((function(t,e){r(e,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==e&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(t,e){r(e,a.results)})),t.callback(a)})),i.id=function(t){return t.id},i.formatResultCssClass=function(t){return t.css}):"query"in i||("ajax"in i?((a=i.element.data("ajax-url"))&&a.length>0&&(i.ajax.url=a),i.query=C.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=T(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,n){var s=[];t(m(e.val(),i.separator)).each((function(){var e={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each((function(){if(g(this.id,e.id))return e=this,!1})),s.push(e)})),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var t,i,n=this.opts.element;n.on("change.select2",this.bind((function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),t=this.bind((function(){var t=n.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=n.prop("readonly");i===e&&(i=!1),this.readonly(i),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(S(this.opts.containerCssClass)),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(this.opts.dropdownCssClass))})),n.on("propertychange.select2",t),this.mutationCallback===e&&(this.mutationCallback=function(e){e.forEach(t)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){return t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,n,s,r,a=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),h=t(window),p=h.width(),f=h.height(),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,b=o.left,y=v+d<=m,w=o.top-d>=this.body().scrollTop(),_=a.outerWidth(!1),x=b+_<=g;a.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(a.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,x=(b=o.left)+(_=a.outerWidth(!1))<=g,a.show()),this.opts.dropdownAutoWidth?(r=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(_=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>u?u=_:_=u,x=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(e=this.body().offset()).top,b-=e.left),x||(b=o.left+u-_),s={left:b,width:u},i?(s.bottom=f-o.top,s.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(s.top=v,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=t.extend(s,S(this.opts.dropdownCss)),a.css(s)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var e,i=this.containerId,n="scroll."+i,s="resize."+i,r="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",(function(e){var i,n=t("#select2-drop");n.length>0&&((i=n.data("select2")).opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),e.preventDefault(),e.stopPropagation())}))),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){t(this).on(s+" "+n+" "+r,(function(t){a.positionDropdown()}))}))},close:function(){if(this.opened()){var e=this.containerId,i="scroll."+e,n="resize."+e,s="orientationchange."+e;this.container.parents().add(window).each((function(){t(this).off(i).off(n).off(s)})),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return S(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,i,n,s,r,a,o,l=this.results;(i=this.highlight())<0||(0!=i?(e=this.findHighlightableChoices().find(".select2-result-label"),s=(n=t(e[i])).offset().top+n.outerHeight(!0),i===e.length-1&&(o=l.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-r)),(a=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+a)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=t(i[n+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return f(s.filter(".select2-highlighted")[0],s.get());e>=s.length&&(e=s.length-1),e<0&&(e=0),this.removeHighlight(),(i=t(s[e])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,e=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,t,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):e.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=t.data(this.container,"select2-last-term");if((!0===i||!d||!g(u,d))&&(t.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),t.isArray(n)&&n.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=e&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;r==this.queryCount&&(this.opened()?(this.context=n.context===e?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==e&&null!==s&&c.id(s)!==e&&null!==c.id(s)&&0===t(n.results).filter((function(){return g(c.id(this),c.id(s))})).length&&n.results.unshift(s),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(a.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+c.opts.escapeMarkup(l.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+l.formatSelectionTooBig(h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown()}function f(t){o.html(t),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var t;(t=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var e,i=t[0],n=t.val().length;t.focus(),t.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))}),0)},selectHighlighted:function(t){var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.text()&&""===t.val())return t}},initContainerWidth:function(){var i=function(){var i,n,s,r,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==e)for(r=0,a=(n=i.split(";")).length;r<a;r+=1)if(null!==(s=n[r].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),n=I(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(i=this.search.get(0)).createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s)),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(t){this.opened()&&(this.parent.close.apply(this,arguments),t=t||{focus:!0},this.focusser.removeAttr("disabled"),t.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=this.container,n=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=i.find(".select2-choice"),this.focusser=i.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+r()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled())if(t.which!==d.PAGE_UP&&t.which!==d.PAGE_DOWN)switch(t.which){case d.UP:case d.DOWN:return this.moveHighlight(t.which===d.UP?-1:1),void w(t);case d.ENTER:return this.selectHighlighted(),void w(t);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(t),void w(t)}else w(t)}))),this.search.on("blur",this.bind((function(t){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind((function(){this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&t.which!==d.TAB&&!d.isControl(t)&&!d.isFunctionKey(t)&&t.which!==d.ESC){if(!1!==this.opts.openOnEnter||t.which!==d.ENTER){if(t.which==d.DOWN||t.which==d.UP||t.which==d.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void w(t)}return t.which==d.DELETE||t.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(t)):void 0}w(t)}}))),b(this.focusser),this.focusser.on("keyup-change input",this.bind((function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}}))),e.on("mousedown","abbr",this.bind((function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())}))),e.on("mousedown",this.bind((function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(e)}))),n.on("mousedown",this.bind((function(){this.search.focus()}))),e.on("focus",this.bind((function(t){w(t)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(t.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var n=t.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder())}))}},isPlaceholderOptionSelected:function(){var t;return!!this.getPlaceholder()&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=t.find("option").filter((function(){return this.selected}));e(i.optionToData(n))}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=i.val(),r=null;e.query({matcher:function(t,i,n){var a=g(s,e.id(n));return a&&(r=n),a},callback:t.isFunction(n)?function(){n(r)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var n=0,s=this;if(this.findHighlightableChoices().each2((function(t,e){if(g(s.id(e.data("select2-data")),s.opts.element.val()))return n=t,!1})),!1!==i&&(!0===e&&n>=0?this.highlight(n):this.highlight(0)),!0===e){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(A(t.results)>=r)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||this.focusser.focus(),g(i,this.id(t))||this.triggerChange({added:t,removed:n})}},updateSelection:function(t){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),s.empty(),null!==t&&(i=this.opts.formatSelection(t,s,this.opts.escapeMarkup)),i!==e&&s.append(i),(n=this.opts.formatSelectionCssClass(t,s))!==e&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,n=null,s=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter((function(){return this.selected})).each2((function(t,e){return n=s.optionToData(e),!1})),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,(function(t){s.opts.element.val(t?s.id(t):""),s.updateSelection(t),s.setPlaceholder(),i&&s.triggerChange({added:t,removed:r})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==e&&(i=null),i;arguments.length>1&&(n=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:i})):this.clear(n)}}),s=I(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find("option").filter((function(){return this.selected})).each2((function(t,e){n.push(i.optionToData(e))})),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=m(i.val(),e.separator),r=[];e.query({matcher:function(i,n,a){var o=t.grep(s,(function(t){return g(t,e.id(a))})).length;return o&&r.push(a),o},callback:t.isFunction(n)?function(){for(var t=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(g(a,e.id(l))){t.push(l),r.splice(o,1);break}}n(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(e){n.search[0].focus(),n.selectChoice(t(this))})),this.search.attr("id","s2id_autogen"+r()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=e.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var i=0,n=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,n=e.selectionEnd-i;else if("selection"in document){e.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-e.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:r):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),w(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void w(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void w(i);case d.ENTER:return this.selectHighlighted(),void w(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void w(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||w(i),i.which===d.ENTER&&w(i)}}}))),this.search.on("keyup",this.bind((function(t){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())}))}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i=[],n=[],s=this;t(e).each((function(){f(s.id(this),i)<0&&(i.push(s.id(this)),n.push(this))})),e=n,this.selection.find(".select2-search-choice").remove(),t(e).each((function(){s.addSelectedChoice(this)})),s.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,s,r=!i.locked,a=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i),u=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith("<div>"+n+"</div>"),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind((function(){this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()}))).dequeue(),w(e))}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),u.push(c),this.setVal(u)},unselect:function(e){var i,n,s=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){for(;(n=f(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();var r=t.Event("select2-removing");r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented()||(e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(t,e,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2((function(t,e){f(a.id(e.data("select2-data")),n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))})),r.each2((function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+a.opts.formatNoMatches(a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var e,i,n,s,r=v(this.search);e=function(e){if(!a){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(a=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),t("body").append(a)}return a.text(e.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<e&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=e),this.search.width(Math.floor(s))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:m(t=this.opts.element.val(),this.opts.separator)},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each((function(){f(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var i=0;i<e.length;i++)for(var n=0;n<t.length;n++)g(this.opts.id(e[i]),this.opts.id(t[n]))&&(e.splice(i,1),i>0&&i--,t.splice(n,1),n--);return{added:e,removed:t}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(e){var i=t.map(e,r.id);r.setVal(i),r.updateSelection(e),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){e.push(i.opts.id(t(this).data("select2-data")))})),this.setVal(e),this.triggerChange()},data:function(e,i){var n,s,r=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map((function(){return t(this).data("select2-data")})).get();s=this.data(),e||(e=[]),n=t.map(e,(function(t){return r.opts.id(t)})),this.setVal(n),this.updateSelection(e),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),t.fn.select2=function(){var i,r,a,o,l,c=Array.prototype.slice.call(arguments,0),u=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],d=["opened","isFocused","container","dropdown"],h=["val","data"],p={search:"externalSearch"};return this.each((function(){if(0===c.length||"object"==typeof c[0])(i=0===c.length?{}:t.extend({},c[0])).element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?l=i.element.prop("multiple"):(l=i.multiple||!1,"tags"in i&&(i.multiple=l=!0)),(r=l?new s:new n).init(i);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(f(c[0],u)<0)throw"Unknown method: "+c[0];if(o=e,(r=t(this).data("select2"))===e)return;if("container"===(a=c[0])?o=r.container:"dropdown"===a?o=r.dropdown:(p[a]&&(a=p[a]),o=r[a].apply(r,c.slice(1))),f(c[0],d)>=0||f(c[0],h)&&1==c.length)return!1}})),o===e?this:o},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,n){var s=[];return x(t.text,i.term,s,n),s.join("")},formatSelection:function(t,i,n){return t?n(t.text):e},sortResults:function(t,e,i){return t},formatResultCssClass:function(t){return e},formatSelectionCssClass:function(t,i){return e},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t.id},matcher:function(t,e){return p(""+e).toUpperCase().indexOf(p(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(t,i,n,s){var r,a,o,l,c,u=t,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return e;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=t.indexOf(c))>=0));o++);if(a<0)break;if(r=t.substring(0,a),t=t.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==e&&null!==r&&s.id(r)!==e&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(g(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==t?t:void 0},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,i){return e}},t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:C,local:E,tags:T},util:{debounce:y,markMatch:x,escapeMarkup:k,stripDiacritics:p},class:{abstract:i,single:n,multi:s}}}function p(t){var e,i,n,s;if(!t||t.length<1)return t;for(e="",i=0,n=t.length;i<n;i++)s=t.charAt(i),e+=h[s]||s;return e}function f(t,e){for(var i=0,n=e.length;i<n;i+=1)if(g(t,e[i]))return i;return-1}function g(t,i){return t===i||t!==e&&i!==e&&(null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+""))}function m(e,i){var n,s,r;if(null===e||e.length<1)return[];for(s=0,r=(n=e.split(i)).length;s<r;s+=1)n[s]=t.trim(n[s]);return n}function v(t){return t.outerWidth(!1)-t.width()}function b(i){var n="keyup-change-value";i.on("keydown",(function(){t.data(i,n)===e&&t.data(i,n,i.val())})),i.on("keyup",(function(){var s=t.data(i,n);s!==e&&i.val()!==s&&(t.removeData(i,n),i.trigger("keyup-change"))}))}function y(t,i,n){var s;return n=n||e,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout((function(){i.apply(n,e)}),t)}}function w(t){t.preventDefault(),t.stopPropagation()}function _(e,i,n){var s,r,a=[];(s=e.attr("class"))&&t((s=""+s).split(" ")).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(s=i.attr("class"))&&t((s=""+s).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)})),e.attr("class",a.join(" "))}function x(t,e,i,n){var s=p(t.toUpperCase()).indexOf(p(e.toUpperCase())),r=e.length;s<0?i.push(n(t)):(i.push(n(t.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(t.substring(s,s+r))),i.push("</span>"),i.push(n(t.substring(s+r,t.length))))}function k(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))}function C(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,r=a,c=i.transport||t.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},d=t.extend({},t.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&s.abort(),i.params&&(t.isFunction(i.params)?t.extend(d,i.params.call(o)):t.extend(d,i.params)),t.extend(d,{url:r,dataType:i.dataType,data:n,success:function(t){var e=i.results(t,l.page);l.callback(e)}}),s=c.call(o,d)}),r)}}function E(e){var i,n,s=e,r=function(t){return""+t.text};t.isArray(s)&&(s={results:n=s}),!1===t.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,t.isFunction(r)||(i=a.text,r=function(t){return t[i]})),function(e){var i,n=e.term,a={results:[]};""!==n?(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],t(s.children).each2((function(t,e){i(e,o.children)})),(o.children.length||e.matcher(n,r(o),s))&&a.push(o)}else e.matcher(n,r(s),s)&&a.push(s)},t(s().results).each2((function(t,e){i(e,a.results)})),e.callback(a)):e.callback(s())}}function T(i){var n=t.isFunction(i);return function(s){var r=s.term,a={results:[]};t(n?i():i).each((function(){var t=this.text!==e,i=t?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(t?this:{id:this,text:this})})),s.callback(a)}}function D(e,i){if(t.isFunction(e))return!0;if(!e)return!1;throw new Error(i+" must be a function or a falsy value")}function S(e){return t.isFunction(e)?e():e}function A(e){var i=0;return t.each(e,(function(t,e){e.children?i+=A(e.children):i++})),i}function I(e,i){var n=function(){};return(n.prototype=new e).constructor=n,n.prototype.parent=e.prototype,n.prototype=t.extend(n.prototype,i),n}}(jQuery)},562:()=>{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}},472:e=>{"use strict";e.exports=t},691:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});var n="1.13.1",s="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g||Function("return this")()||{},r=Array.prototype,a=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,f=Array.isArray,g=Object.keys,m=Object.create,v=h&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function k(t,e){return e=null==e?t.length-1:+e,function(){for(var i=Math.max(arguments.length-e,0),n=Array(i),s=0;s<i;s++)n[s]=arguments[s+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var r=Array(e+1);for(s=0;s<e;s++)r[s]=arguments[s];return r[e]=n,t.apply(this,r)}}function C(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function E(t){return null===t}function T(t){return void 0===t}function D(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)}function S(t){return!(!t||1!==t.nodeType)}function A(t){var e="[object "+t+"]";return function(t){return u.call(t)===e}}var I=A("String"),O=A("Number"),N=A("Date"),P=A("RegExp"),M=A("Error"),L=A("Symbol"),R=A("ArrayBuffer"),$=A("Function"),j=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&($=function(t){return"function"==typeof t||!1});var F=$,H=A("Object"),B=p&&H(new DataView(new ArrayBuffer(8))),W="undefined"!=typeof Map&&H(new Map),V=A("DataView");var U=B?function(t){return null!=t&&F(t.getInt8)&&R(t.buffer)}:V,z=f||A("Array");function q(t,e){return null!=t&&d.call(t,e)}var Y=A("Arguments");!function(){Y(arguments)||(Y=function(t){return q(t,"callee")})}();var K=Y;function J(t){return!L(t)&&y(t)&&!isNaN(parseFloat(t))}function G(t){return O(t)&&b(t)}function Q(t){return function(){return t}}function X(t){return function(e){var i=t(e);return"number"==typeof i&&i>=0&&i<=x}}function Z(t){return function(e){return null==e?void 0:e[t]}}var tt=Z("byteLength"),et=X(tt),it=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var nt=h?function(t){return v?v(t)&&!U(t):et(t)&&it.test(u.call(t))}:Q(!1),st=Z("length");function rt(t,e){e=function(t){for(var e={},i=t.length,n=0;n<i;++n)e[t[n]]=!0;return{contains:function(t){return e[t]},push:function(i){return e[i]=!0,t.push(i)}}}(e);var i=_.length,n=t.constructor,s=F(n)&&n.prototype||a,r="constructor";for(q(t,r)&&!e.contains(r)&&e.push(r);i--;)(r=_[i])in t&&t[r]!==s[r]&&!e.contains(r)&&e.push(r)}function at(t){if(!C(t))return[];if(g)return g(t);var e=[];for(var i in t)q(t,i)&&e.push(i);return w&&rt(t,e),e}function ot(t){if(null==t)return!0;var e=st(t);return"number"==typeof e&&(z(t)||I(t)||K(t))?0===e:0===st(at(t))}function lt(t,e){var i=at(e),n=i.length;if(null==t)return!n;for(var s=Object(t),r=0;r<n;r++){var a=i[r];if(e[a]!==s[a]||!(a in s))return!1}return!0}function ct(t){return t instanceof ct?t:this instanceof ct?void(this._wrapped=t):new ct(t)}function ut(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,tt(t))}ct.VERSION=n,ct.prototype.value=function(){return this._wrapped},ct.prototype.valueOf=ct.prototype.toJSON=ct.prototype.value,ct.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function ht(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var s=typeof t;return("function"===s||"object"===s||"object"==typeof e)&&pt(t,e,i,n)}function pt(t,e,i,n){t instanceof ct&&(t=t._wrapped),e instanceof ct&&(e=e._wrapped);var s=u.call(t);if(s!==u.call(e))return!1;if(B&&"[object Object]"==s&&U(t)){if(!U(e))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(e);case"[object ArrayBuffer]":case dt:return pt(ut(t),ut(e),i,n)}var r="[object Array]"===s;if(!r&&nt(t)){if(tt(t)!==tt(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,l=e.constructor;if(a!==l&&!(F(a)&&a instanceof a&&F(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var c=(i=i||[]).length;c--;)if(i[c]===t)return n[c]===e;if(i.push(t),n.push(e),r){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ht(t[c],e[c],i,n))return!1}else{var d,h=at(t);if(c=h.length,at(e).length!==c)return!1;for(;c--;)if(!q(e,d=h[c])||!ht(t[d],e[d],i,n))return!1}return i.pop(),n.pop(),!0}function ft(t,e){return ht(t,e)}function gt(t){if(!C(t))return[];var e=[];for(var i in t)e.push(i);return w&&rt(t,e),e}function mt(t){var e=st(t);return function(i){if(null==i)return!1;var n=gt(i);if(st(n))return!1;for(var s=0;s<e;s++)if(!F(i[t[s]]))return!1;return t!==_t||!F(i[vt])}}var vt="forEach",bt=["clear","delete"],yt=["get","has","set"],wt=bt.concat(vt,yt),_t=bt.concat(yt),xt=["add"].concat(bt,vt,"has"),kt=W?mt(wt):A("Map"),Ct=W?mt(_t):A("WeakMap"),Et=W?mt(xt):A("Set"),Tt=A("WeakSet");function Dt(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=t[e[s]];return n}function St(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=[e[s],t[e[s]]];return n}function At(t){for(var e={},i=at(t),n=0,s=i.length;n<s;n++)e[t[i[n]]]=i[n];return e}function It(t){var e=[];for(var i in t)F(t[i])&&e.push(i);return e.sort()}function Ot(t,e){return function(i){var n=arguments.length;if(e&&(i=Object(i)),n<2||null==i)return i;for(var s=1;s<n;s++)for(var r=arguments[s],a=t(r),o=a.length,l=0;l<o;l++){var c=a[l];e&&void 0!==i[c]||(i[c]=r[c])}return i}}var Nt=Ot(gt),Pt=Ot(at),Mt=Ot(gt,!0);function Lt(t){if(!C(t))return{};if(m)return m(t);var e=function(){};e.prototype=t;var i=new e;return e.prototype=null,i}function Rt(t,e){var i=Lt(t);return e&&Pt(i,e),i}function $t(t){return C(t)?z(t)?t.slice():Nt({},t):t}function jt(t,e){return e(t),t}function Ft(t){return z(t)?t:[t]}function Ht(t){return ct.toPath(t)}function Bt(t,e){for(var i=e.length,n=0;n<i;n++){if(null==t)return;t=t[e[n]]}return i?t:void 0}function Wt(t,e,i){var n=Bt(t,Ht(e));return T(n)?i:n}function Vt(t,e){for(var i=(e=Ht(e)).length,n=0;n<i;n++){var s=e[n];if(!q(t,s))return!1;t=t[s]}return!!i}function Ut(t){return t}function zt(t){return t=Pt({},t),function(e){return lt(e,t)}}function qt(t){return t=Ht(t),function(e){return Bt(e,t)}}function Yt(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,s){return t.call(e,i,n,s)};case 4:return function(i,n,s,r){return t.call(e,i,n,s,r)}}return function(){return t.apply(e,arguments)}}function Kt(t,e,i){return null==t?Ut:F(t)?Yt(t,e,i):C(t)&&!z(t)?zt(t):qt(t)}function Jt(t,e){return Kt(t,e,1/0)}function Gt(t,e,i){return ct.iteratee!==Jt?ct.iteratee(t,e):Kt(t,e,i)}function Qt(t,e,i){e=Gt(e,i);for(var n=at(t),s=n.length,r={},a=0;a<s;a++){var o=n[a];r[o]=e(t[o],o,t)}return r}function Xt(){}function Zt(t){return null==t?Xt:function(e){return Wt(t,e)}}function te(t,e,i){var n=Array(Math.max(0,t));e=Yt(e,i,1);for(var s=0;s<t;s++)n[s]=e(s);return n}function ee(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ct.toPath=Ft,ct.iteratee=Jt;var ie=Date.now||function(){return(new Date).getTime()};function ne(t){var e=function(e){return t[e]},i="(?:"+at(t).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(s,e):t}}var se={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},re=ne(se),ae=ne(At(se)),oe=ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},le=/(.)^/,ce={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ue=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+ce[t]}var he=/^\s*(\w|\$)+\s*$/;function pe(t,e,i){!e&&i&&(e=i),e=Mt({},e,ct.templateSettings);var n=RegExp([(e.escape||le).source,(e.interpolate||le).source,(e.evaluate||le).source].join("|")+"|$","g"),s=0,r="__p+='";t.replace(n,(function(e,i,n,a,o){return r+=t.slice(s,o).replace(ue,de),s=o+e.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?r+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),e})),r+="';\n";var a,o=e.variable;if(o){if(!he.test(o))throw new Error("variable is not a bare identifier: "+o)}else r="with(obj||{}){\n"+r+"}\n",o="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=new Function(o,"_",r)}catch(t){throw t.source=r,t}var l=function(t){return a.call(this,t,ct)};return l.source="function("+o+"){\n"+r+"}",l}function fe(t,e,i){var n=(e=Ht(e)).length;if(!n)return F(i)?i.call(t):i;for(var s=0;s<n;s++){var r=null==t?void 0:t[e[s]];void 0===r&&(r=i,s=n),t=F(r)?r.call(t):r}return t}var ge=0;function me(t){var e=++ge+"";return t?t+e:e}function ve(t){var e=ct(t);return e._chain=!0,e}function be(t,e,i,n,s){if(!(n instanceof e))return t.apply(i,s);var r=Lt(t.prototype),a=t.apply(r,s);return C(a)?a:r}var ye=k((function(t,e){var i=ye.placeholder,n=function(){for(var s=0,r=e.length,a=Array(r),o=0;o<r;o++)a[o]=e[o]===i?arguments[s++]:e[o];for(;s<arguments.length;)a.push(arguments[s++]);return be(t,n,this,this,a)};return n}));ye.placeholder=ct;var we=k((function(t,e,i){if(!F(t))throw new TypeError("Bind must be called on a function");var n=k((function(s){return be(t,n,e,this,i.concat(s))}));return n})),_e=X(st);function xe(t,e,i,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var s=n.length,r=0,a=st(t);r<a;r++){var o=t[r];if(_e(o)&&(z(o)||K(o)))if(e>1)xe(o,e-1,i,n),s=n.length;else for(var l=0,c=o.length;l<c;)n[s++]=o[l++];else i||(n[s++]=o)}return n}var ke=k((function(t,e){var i=(e=xe(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=e[i];t[n]=we(t[n],t)}return t}));function Ce(t,e){var i=function(n){var s=i.cache,r=""+(e?e.apply(this,arguments):n);return q(s,r)||(s[r]=t.apply(this,arguments)),s[r]};return i.cache={},i}var Ee=k((function(t,e,i){return setTimeout((function(){return t.apply(null,i)}),e)})),Te=ye(Ee,ct,1);function De(t,e,i){var n,s,r,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:ie(),n=null,a=t.apply(s,r),n||(s=r=null)},c=function(){var c=ie();o||!1!==i.leading||(o=c);var u=e-(c-o);return s=this,r=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),o=c,a=t.apply(s,r),n||(s=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=s=r=null},c}function Se(t,e,i){var n,s,r,a,o,l=function(){var c=ie()-s;e>c?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(o,r)),n||(r=o=null))},c=k((function(c){return o=this,r=c,s=ie(),n||(n=setTimeout(l,e),i&&(a=t.apply(o,r))),a}));return c.cancel=function(){clearTimeout(n),n=r=o=null},c}function Ae(t,e){return ye(e,t)}function Ie(t){return function(){return!t.apply(this,arguments)}}function Oe(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Pe(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}}var Me=ye(Pe,2);function Le(t,e,i){e=Gt(e,i);for(var n,s=at(t),r=0,a=s.length;r<a;r++)if(e(t[n=s[r]],n,t))return n}function Re(t){return function(e,i,n){i=Gt(i,n);for(var s=st(e),r=t>0?0:s-1;r>=0&&r<s;r+=t)if(i(e[r],r,e))return r;return-1}}var $e=Re(1),je=Re(-1);function Fe(t,e,i,n){for(var s=(i=Gt(i,n,1))(e),r=0,a=st(t);r<a;){var o=Math.floor((r+a)/2);i(t[o])<s?r=o+1:a=o}return r}function He(t,e,i){return function(n,s,r){var a=0,o=st(n);if("number"==typeof r)t>0?a=r>=0?r:Math.max(r+o,a):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return n[r=i(n,s)]===s?r:-1;if(s!=s)return(r=e(c.call(n,a,o),G))>=0?r+a:-1;for(r=t>0?a:o-1;r>=0&&r<o;r+=t)if(n[r]===s)return r;return-1}}var Be=He(1,$e,Fe),We=He(-1,je);function Ve(t,e,i){var n=(_e(t)?$e:Le)(t,e,i);if(void 0!==n&&-1!==n)return t[n]}function Ue(t,e){return Ve(t,zt(e))}function ze(t,e,i){var n,s;if(e=Yt(e,i),_e(t))for(n=0,s=t.length;n<s;n++)e(t[n],n,t);else{var r=at(t);for(n=0,s=r.length;n<s;n++)e(t[r[n]],r[n],t)}return t}function qe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=Array(s),a=0;a<s;a++){var o=n?n[a]:a;r[a]=e(t[o],o,t)}return r}function Ye(t){var e=function(e,i,n,s){var r=!_e(e)&&at(e),a=(r||e).length,o=t>0?0:a-1;for(s||(n=e[r?r[o]:o],o+=t);o>=0&&o<a;o+=t){var l=r?r[o]:o;n=i(n,e[l],l,e)}return n};return function(t,i,n,s){var r=arguments.length>=3;return e(t,Yt(i,s,4),n,r)}}var Ke=Ye(1),Je=Ye(-1);function Ge(t,e,i){var n=[];return e=Gt(e,i),ze(t,(function(t,i,s){e(t,i,s)&&n.push(t)})),n}function Qe(t,e,i){return Ge(t,Ie(Gt(e)),i)}function Xe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(!e(t[a],a,t))return!1}return!0}function Ze(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(e(t[a],a,t))return!0}return!1}function ti(t,e,i,n){return _e(t)||(t=Dt(t)),("number"!=typeof i||n)&&(i=0),Be(t,e,i)>=0}var ei=k((function(t,e,i){var n,s;return F(e)?s=e:(e=Ht(e),n=e.slice(0,-1),e=e[e.length-1]),qe(t,(function(t){var r=s;if(!r){if(n&&n.length&&(t=Bt(t,n)),null==t)return;r=t[e]}return null==r?r:r.apply(t,i)}))}));function ii(t,e){return qe(t,qt(e))}function ni(t,e){return Ge(t,zt(e))}function si(t,e,i){var n,s,r=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:Dt(t)).length;o<l;o++)null!=(n=t[o])&&n>r&&(r=n);else e=Gt(e,i),ze(t,(function(t,i,n){((s=e(t,i,n))>a||s===-1/0&&r===-1/0)&&(r=t,a=s)}));return r}function ri(t,e,i){var n,s,r=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:Dt(t)).length;o<l;o++)null!=(n=t[o])&&n<r&&(r=n);else e=Gt(e,i),ze(t,(function(t,i,n){((s=e(t,i,n))<a||s===1/0&&r===1/0)&&(r=t,a=s)}));return r}function ai(t,e,i){if(null==e||i)return _e(t)||(t=Dt(t)),t[ee(t.length-1)];var n=_e(t)?$t(t):Dt(t),s=st(n);e=Math.max(Math.min(e,s),0);for(var r=s-1,a=0;a<e;a++){var o=ee(a,r),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,e)}function oi(t){return ai(t,1/0)}function li(t,e,i){var n=0;return e=Gt(e,i),ii(qe(t,(function(t,i,s){return{value:t,index:n++,criteria:e(t,i,s)}})).sort((function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index})),"value")}function ci(t,e){return function(i,n,s){var r=e?[[],[]]:{};return n=Gt(n,s),ze(i,(function(e,s){var a=n(e,s,i);t(r,e,a)})),r}}var ui=ci((function(t,e,i){q(t,i)?t[i].push(e):t[i]=[e]})),di=ci((function(t,e,i){t[i]=e})),hi=ci((function(t,e,i){q(t,i)?t[i]++:t[i]=1})),pi=ci((function(t,e,i){t[i?0:1].push(e)}),!0),fi=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function gi(t){return t?z(t)?c.call(t):I(t)?t.match(fi):_e(t)?qe(t,Ut):Dt(t):[]}function mi(t){return null==t?0:_e(t)?t.length:at(t).length}function vi(t,e,i){return e in i}var bi=k((function(t,e){var i={},n=e[0];if(null==t)return i;F(n)?(e.length>1&&(n=Yt(n,e[1])),e=gt(t)):(n=vi,e=xe(e,!1,!1),t=Object(t));for(var s=0,r=e.length;s<r;s++){var a=e[s],o=t[a];n(o,a,t)&&(i[a]=o)}return i})),yi=k((function(t,e){var i,n=e[0];return F(n)?(n=Ie(n),e.length>1&&(i=e[1])):(e=qe(xe(e,!1,!1),String),n=function(t,i){return!ti(e,i)}),bi(t,n,i)}));function wi(t,e,i){return c.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))}function _i(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[0]:wi(t,t.length-e)}function xi(t,e,i){return c.call(t,null==e||i?1:e)}function ki(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[t.length-1]:xi(t,Math.max(0,t.length-e))}function Ci(t){return Ge(t,Boolean)}function Ei(t,e){return xe(t,e,!1)}var Ti=k((function(t,e){return e=xe(e,!0,!0),Ge(t,(function(t){return!ti(e,t)}))})),Di=k((function(t,e){return Ti(t,e)}));function Si(t,e,i,n){D(e)||(n=i,i=e,e=!1),null!=i&&(i=Gt(i,n));for(var s=[],r=[],a=0,o=st(t);a<o;a++){var l=t[a],c=i?i(l,a,t):l;e&&!i?(a&&r===c||s.push(l),r=c):i?ti(r,c)||(r.push(c),s.push(l)):ti(s,l)||s.push(l)}return s}var Ai=k((function(t){return Si(xe(t,!0,!0))}));function Ii(t){for(var e=[],i=arguments.length,n=0,s=st(t);n<s;n++){var r=t[n];if(!ti(e,r)){var a;for(a=1;a<i&&ti(arguments[a],r);a++);a===i&&e.push(r)}}return e}function Oi(t){for(var e=t&&si(t,st).length||0,i=Array(e),n=0;n<e;n++)i[n]=ii(t,n);return i}var Ni=k(Oi);function Pi(t,e){for(var i={},n=0,s=st(t);n<s;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i}function Mi(t,e,i){null==e&&(e=t||0,t=0),i||(i=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/i),0),s=Array(n),r=0;r<n;r++,t+=i)s[r]=t;return s}function Li(t,e){if(null==e||e<1)return[];for(var i=[],n=0,s=t.length;n<s;)i.push(c.call(t,n,n+=e));return i}function Ri(t,e){return t._chain?ct(e).chain():e}function $i(t){return ze(It(t),(function(e){var i=ct[e]=t[e];ct.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),Ri(this,i.apply(ct,t))}})),ct}ze(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=r[t];ct.prototype[t]=function(){var i=this._wrapped;return null!=i&&(e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0]),Ri(this,i)}})),ze(["concat","join","slice"],(function(t){var e=r[t];ct.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Ri(this,t)}}));var ji=$i({__proto__:null,VERSION:n,restArguments:k,isObject:C,isNull:E,isUndefined:T,isBoolean:D,isElement:S,isString:I,isNumber:O,isDate:N,isRegExp:P,isError:M,isSymbol:L,isArrayBuffer:R,isDataView:U,isArray:z,isFunction:F,isArguments:K,isFinite:J,isNaN:G,isTypedArray:nt,isEmpty:ot,isMatch:lt,isEqual:ft,isMap:kt,isWeakMap:Ct,isSet:Et,isWeakSet:Tt,keys:at,allKeys:gt,values:Dt,pairs:St,invert:At,functions:It,methods:It,extend:Nt,extendOwn:Pt,assign:Pt,defaults:Mt,create:Rt,clone:$t,tap:jt,get:Wt,has:Vt,mapObject:Qt,identity:Ut,constant:Q,noop:Xt,toPath:Ft,property:qt,propertyOf:Zt,matcher:zt,matches:zt,times:te,random:ee,now:ie,escape:re,unescape:ae,templateSettings:oe,template:pe,result:fe,uniqueId:me,chain:ve,iteratee:Jt,partial:ye,bind:we,bindAll:ke,memoize:Ce,delay:Ee,defer:Te,throttle:De,debounce:Se,wrap:Ae,negate:Ie,compose:Oe,after:Ne,before:Pe,once:Me,findKey:Le,findIndex:$e,findLastIndex:je,sortedIndex:Fe,indexOf:Be,lastIndexOf:We,find:Ve,detect:Ve,findWhere:Ue,each:ze,forEach:ze,map:qe,collect:qe,reduce:Ke,foldl:Ke,inject:Ke,reduceRight:Je,foldr:Je,filter:Ge,select:Ge,reject:Qe,every:Xe,all:Xe,some:Ze,any:Ze,contains:ti,includes:ti,include:ti,invoke:ei,pluck:ii,where:ni,max:si,min:ri,shuffle:oi,sample:ai,sortBy:li,groupBy:ui,indexBy:di,countBy:hi,partition:pi,toArray:gi,size:mi,pick:bi,omit:yi,first:_i,head:_i,take:_i,initial:wi,last:ki,rest:xi,tail:xi,drop:xi,compact:Ci,flatten:Ei,without:Di,uniq:Si,unique:Si,union:Ai,intersection:Ii,difference:Ti,unzip:Oi,transpose:Oi,zip:Ni,object:Pi,range:Mi,chunk:Li,mixin:$i,default:ct});ji._=ji,e.VERSION=n,e._=ji,e._escape=re,e._unescape=ae,e.after=Ne,e.allKeys=gt,e.before=Pe,e.bind=we,e.bindAll=ke,e.chain=ve,e.chunk=Li,e.clone=$t,e.compact=Ci,e.compose=Oe,e.constant=Q,e.contains=ti,e.countBy=hi,e.create=Rt,e.debounce=Se,e.defaults=Mt,e.defer=Te,e.delay=Ee,e.difference=Ti,e.each=ze,e.every=Xe,e.extend=Nt,e.extendOwn=Pt,e.filter=Ge,e.find=Ve,e.findIndex=$e,e.findKey=Le,e.findLastIndex=je,e.findWhere=Ue,e.first=_i,e.flatten=Ei,e.functions=It,e.get=Wt,e.groupBy=ui,e.has=Vt,e.identity=Ut,e.indexBy=di,e.indexOf=Be,e.initial=wi,e.intersection=Ii,e.invert=At,e.invoke=ei,e.isArguments=K,e.isArray=z,e.isArrayBuffer=R,e.isBoolean=D,e.isDataView=U,e.isDate=N,e.isElement=S,e.isEmpty=ot,e.isEqual=ft,e.isError=M,e.isFinite=J,e.isFunction=F,e.isMap=kt,e.isMatch=lt,e.isNaN=G,e.isNull=E,e.isNumber=O,e.isObject=C,e.isRegExp=P,e.isSet=Et,e.isString=I,e.isSymbol=L,e.isTypedArray=nt,e.isUndefined=T,e.isWeakMap=Ct,e.isWeakSet=Tt,e.iteratee=Jt,e.keys=at,e.last=ki,e.lastIndexOf=We,e.map=qe,e.mapObject=Qt,e.matcher=zt,e.max=si,e.memoize=Ce,e.min=ri,e.mixin=$i,e.negate=Ie,e.noop=Xt,e.now=ie,e.object=Pi,e.omit=yi,e.once=Me,e.pairs=St,e.partial=ye,e.partition=pi,e.pick=bi,e.pluck=ii,e.property=qt,e.propertyOf=Zt,e.random=ee,e.range=Mi,e.reduce=Ke,e.reduceRight=Je,e.reject=Qe,e.rest=xi,e.restArguments=k,e.result=fe,e.sample=ai,e.shuffle=oi,e.size=mi,e.some=Ze,e.sortBy=li,e.sortedIndex=Fe,e.tap=jt,e.template=pe,e.templateSettings=oe,e.throttle=De,e.times=te,e.toArray=gi,e.toPath=Ft,e.union=Ai,e.uniq=Si,e.uniqueId=me,e.unzip=Oi,e.values=Dt,e.where=ni,e.without=Di,e.wrap=Ae,e.zip=Ni},303:(t,e,i)=>{var n=i(691);t.exports=n._}},i={};function n(t){var s=i[t];if(void 0!==s)return s.exports;var r=i[t]={exports:{}};return e[t].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{$:()=>Lt,CalendarWidget:()=>vo,CheckboxMultiselectEl:()=>Qn,DatePicker:()=>wo,DropdownEl:()=>cn,FancyFileInput:()=>Zn,FocusManager:()=>xl,Header:()=>co,I18n:()=>I18n,InlineDialog2:()=>kl,InlineDialogEl:()=>_r,ItemCheckboxEl:()=>an,ItemLinkEl:()=>rn,ItemRadioEl:()=>on,LabelEl:()=>ns,LayerManager:()=>Cl,MessageEl:()=>bn,NavigationEl:()=>Cr,ProgressBarEl:()=>Rr,ProgressiveDataSet:()=>El,RestfulTable:()=>Bo,SectionEl:()=>ln,SelectEl:()=>Hs,SpinnerEl:()=>Qt,TabContainerEl:()=>aa,TabItemEl:()=>oa,TabPaneEl:()=>la,ToggleEl:()=>tr,_addID:()=>Ul,banner:()=>Wt,bind:()=>y,clone:()=>Tl,contextPath:()=>zl,debounce:()=>Dl,debounceImmediate:()=>Sl,dialog2:()=>ae,dim:()=>Al,error:()=>p,escapeHtml:()=>Il,flag:()=>En,formValidation:()=>Ol,format:()=>g,id:()=>Nl,isClipped:()=>Pl,keyCode:()=>Ml,layer:()=>Ll,log:()=>d,messages:()=>Rl,navigation:()=>Er,params:()=>jl,populateParameters:()=>$l,progressBars:()=>jr,responsiveheader:()=>Fl,select:()=>Hl,sidebar:()=>hl,tablessortable:()=>Bl,tabs:()=>Wl,toInit:()=>$t,trigger:()=>_,unbind:()=>w,undim:()=>Vl,version:()=>v,warn:()=>h,whenIType:()=>_l});var t=n(472),e=n.n(t);const i=window.jQuery||window.Zepto||e();function r(){"object"!=typeof window.AJS&&(window.AJS={})}function a(t,e){return r(),window.AJS[t]=e}var o=n(953),l=n.n(o);function c(t,e){var n=i(t);return void 0===e&&(e=!0),n.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().type.CLASSNAME,attached:function(t){e()("input[type=checkbox]",t).each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(t){e()(".aui-form-glyph",t).remove()}}),l()("radio",{type:l().type.CLASSNAME,attached:function(t){e()("input[type=radio]",t).each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(t){e()(".aui-form-glyph",t).remove()}}),a("enable",c),a("inlineHelp",(function(){i(document).on("click",".icon-inline-help",(function(){var t=i(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);const g=f;var m="9.4.6";a("version",m);const v=m,b=i(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 x={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},k=new RegExp(`[${Object.keys(x).join("")}]`,"g");function C(t){return t.replace(k,(t=>x[t]))}a("escapeHtml",C);const E=C;var T=Object.prototype.hasOwnProperty,D=[];function S(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function A(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===D.indexOf(r)){D.push(r),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||0)+"- "+(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?S(a+="\n",e.extraObject,r):S(a,r)}}}function I(t,e){var n=t.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:e},t.options);A("'"+t.selector+"' pattern"+n,s)()}function O(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=A(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function N(t,e,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=O(t,e,n);return s.prototype=t.prototype,i.extend(s,t),s}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]=O(t[e],n,i)}else!function(t,e,i){if(P){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=A(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++)I(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)&&I(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:O,construct:N,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(L(e))},prop:M,obj:function(t,e,n){for(var s in n=n||{},t)T.call(t,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=e+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,M(t,s,i.extend({},n)))},propertyDeprecationSupported:P,getMessageLogger:A});var B=[];function W(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"),B.push(t))})),H||(H=document.body),!0===t&&U();var n=!!W.$dim&&!W.$dim[0].hasAttribute("hidden");return W.$dim&&(W.$dim.remove(),W.$dim=null),W.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),W.$dim.attr("tabindex","0"),W.$dim.appendTo(document.body),n||(F(W.$dim),W.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"),W.$dim.removeAttr("hidden"),e&&W.$dim.css({zIndex:e}),W.$dim}function V(){B.forEach((function(t){t.removeAttribute("aria-hidden")})),B=[],W.$dim&&(W.$dim[0].setAttribute("hidden",""),H&&(H.style.overflow=W.cachedOverflow.overflow,H.style.overflowX=W.cachedOverflow.overflowX,H.style.overflowY=W.cachedOverflow.overflowY))}var U=A("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});a("dim",W),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);const q=z;function Y(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e}const K=l().noConflict();const 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="${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 (${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 n=i(e).closest("a[href]",t);return!!n.length&&n[0]!==t})(t,e.target)||(nt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==q.ENTER&&i!==q.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 n=e.relatedTarget;return n||(n=document.activeElement),i(et(t)).find(n).length>0})(t,e)||nt(t,e)}};Object.keys(st).forEach((function(t){const e=st[t];i(document).on(`${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)}}}),Y("aui/trigger"),function(){function t(t){return"visible"===i.css(t,"visibility")&&i(t).is(":visible")}function e(e,n){var s=e.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=e.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=e.href||n;return(l?!e.disabled:c?u:n)&&t(e)}i.extend(i.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(i.attr(t,"tabindex"))),"aui-tabbable":function(t){var n=i.attr(t,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(t,!s)}})}();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!==q.TAB)return;const n=e.shiftKey?-1:1,s=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let t;if(t=i(s).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(t.length){const e=t.find(":aui-tabbable"),i=e.index(s)+n;if(!(i<0||i>=e.length))return;{const e=G(t.get(0));l=a.index(e)}}}l=l>-1?(l+n)%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,e=document.activeElement){t.data(rt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var n=t.attr("data-aui-focus-selector")||ot.defaultFocusSelector;(t.is(n)?t:t.find(n)).first().trigger("focus")}at(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=lt.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ot.prototype.exit=function(t){at(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){i(e).trigger("blur");var n=function(t){return i(t.data(rt))}(t);n.length&&(t.removeData(rt),n.trigger("focus"))}},ut.global=ut(),a("FocusManager",ut);const dt=ut;function ht(t,e){var n="_aui-widget-"+t;return function(t,s){var r,a;i.isPlainObject(t)?a=t:(r=t,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new e(l,a||{})).$el).data(n,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}();const ft=pt,gt="_aui-internal-layer-",mt="_aui-internal-layer-global-";var vt=i(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,n){var s=i.Event(gt+e),r=i.Event(mt+e),a=new ft("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new ft("aui-"+n,{bubbles:!0,cancelable:!0});return t.trigger(s),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function wt(t){this.$el=i(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 St.global.item(St.global.indexOf(this.$el)-1)},above:function(){return St.global.item(St.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()||St.global.indexOf(this.$el)>-1?this:yt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),St.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const t=this;return bt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),St.global.popUntil(this.$el,!0),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){return!(t&&!yt(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&dt.global.exit(this.$el),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]),!0)},_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 xt=ht("layer",wt);function kt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function Ct(t,e){return kt(t,(function(t){return t[0]===e[0]}))}function Et(t){return kt(t,(function(t){return xt(t).isBlanketed()}))}function Tt(t,e){var i=Et(t);e!==i&&(i>-1?W(!1,t[i].css("z-index")-20):V())}function Dt(t,e,i,n=!0){if(e<0)return[!1,null];for(var s,r=t.length-1;r>=e;r--){s=t[r];var a=xt(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];t.splice(r,1)}}return[!0,s]}function St(){this._stack=[]}function At(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return St.global.indexOf(e)>-1}xt.on=function(t,e,i){return vt.on(mt+t,e,i),this},xt.off=function(t,e,i){return vt.off(mt+t,e,i),this},St.prototype={push:function(t){var e=t instanceof i?t:i(t);if(Ct(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var n=xt(e),s=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 n._showLayer(s),n.isBlanketed()&&W(!1,s-20),this._stack.push(e),this},popLayersBeside:function(t){const e=i(t).get(0);if(!function(t){return!!G(t)}(e)){var n=Et(this._stack);return void Dt(this._stack,++n,!1)}const s=function(t){var e=G(t);if(e)return i(e).closest(".aui-layer").get(0)}(e);if(s){let t=this.indexOf(s);Dt(this._stack,++t,!1)}else Dt(this._stack,0,!1)},indexOf:function(t){return Ct(this._stack,i(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=xt(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=Ct(this._stack,n);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=xt(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=Ct(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=xt(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},popUntil:function(t,e=!1){var n=t instanceof i?t:i(t),s=Ct(this._stack,n);if(-1===s)return null;const r=Et(this._stack),a=xt(n),[o,l]=Dt(this._stack,s+1,a.isBlanketed(),e);return o&&a._hideLayer(e)?(this._stack.splice(s,1),Tt(this._stack,r),n):l},popTopIfNonPersistent:function(t=!1){var e=this.getTopLayer(),i=xt(e);return!e||i.isPersistent()?null:this.popUntil(e,t)},popUntilTopBlanketed:function(t=!1){var e=Et(this._stack);if(e<0)return null;var i=this._stack[e];if(xt(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Ct(this._stack,n);return Dt(this._stack,s,!0,t),n}return null}return Dt(this._stack,e,!0),Tt(this._stack,e),i},popUntilTopPersistent:function(t=!1){var e=St.global.getTopLayer();if(e){var i,n=Et(this._stack),s=xt(e);if(s.isPersistent()){if(s.isBlanketed())return;if(e=St.global.getNextLowerNonPersistentOrBlanketedLayer(e),s=xt(e),!e||s.isPersistent())return;i=Ct(this._stack,e),Dt(this._stack,i,!0,t),Tt(this._stack,n)}else i=Ct(this._stack,e),Dt(this._stack,i,!0,t),Tt(this._stack,n)}}},vt.on("keydown",(function(t){t.keyCode===q.ESCAPE&&(St.global.popUntilTopPersistent(!0),t.preventDefault())})),vt.on("click",".aui-blanket",(function(t){St.global.popUntilTopBlanketed(!0)&&t.preventDefault()})),vt.on("click",(function(t){var e=i(t.target);if(!e.closest(".aui-blanket").length){var n=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(!s.length&&!At(n)){const e=i.Event("aui-close-layers-on-outer-click");return vt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void St.global.hideAll()}if(!At(n)&&s.length){var r=St.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&xt(r).hide()}}})),St.global=new St,xt.Manager=St,a("layer",xt);const It=xt;a("LayerManager",It.Manager);It.Manager;const Ot={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Nt=a("params",new Proxy({},{get:function(t,e){return A("AJS.params",Ot)(),t[e]}}));const Pt=O((function(t){t||(t=Nt),i(".parameters input").each((function(){var e=this.value,n=this.title||this.id;i(this).hasClass("list")?t[n]?t[n].push(e):t[n]=[e]:t[n]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});a("populateParameters",Pt);const Mt=Pt;i((function(){var t=i("body");t.data("auiVersion")||t.attr("data-aui-version",v),Mt()})),a("$",i);const Lt=i;function Rt(t){return i.when(i.ready).then((function(){setTimeout((function(){try{t.call(this,i)}catch(e){p("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}a("toInit",Rt);const $t=Rt,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,...e){return Object.prototype.hasOwnProperty.call(this.keys,t)?g.apply(null,[this.keys[t]].concat(e)):t}};for(const t in I18n)jt=t,Ft=I18n[t],r(),"object"!=typeof window.AJS.I18n&&(window.AJS.I18n={}),void 0===window.AJS.I18n[jt]&&(window.AJS.I18n[jt]=Ft);var jt,Ft;function Ht(t){var e=function({body:t,type:e="error"}){return i('<div class="aui-banner" role="banner"></div>').append(i.parseHTML(t||"")).addClass(`aui-banner-${e}`)}(t);return Bt().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&i(t).remove()})),function(t){var e=Bt();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 Bt(){return i("#header")}Y("aui/banner",Ht),a("banner",Ht);const Wt=Ht;var Vt=n(303);const Ut={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},zt={filled:!1,size:Ut.MEDIUM.name},qt="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.",Yt=A("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:qt}),Kt=A("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:qt});function Jt(t){let e=Ut.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Ut).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function Gt(t){const{px:e,radius:i}=(0,Vt.find)(Ut,(e=>e.name===t._data.size))||Ut.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 ${e} ${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=r-a+"px"}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}const Qt=K("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',Gt(t)},attached(t){Gt(t)},attributes:{filled:{created:function(t){Yt(),t._data.filled=!0,Gt(t)},removed:function(t){t._data.filled=!1,Gt(t)}},size(t,e){t._data.size=Jt(e.newValue),Gt(t)}},prototype:{get _data(){return this.__data||(this._data=(0,Vt.defaults)({},zt))},set _data(t){return this.__data=t},set filled(t){Kt(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=Jt(t);this.setAttribute("size",e)}}});function Xt(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function Zt(t){return"INPUT"===t.nodeName}K("aui-button",{type:K.type.CLASSNAME,created:function(t){t._spinner=new Qt,t._spinner.setAttribute("size",Ut.SMALL.name)},prototype:{busy:function(){return Zt(this)||Xt(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 Zt(this)||!Xt(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 Zt(this)?(h("It is not valid to call isBusy() on an input button."),!1):Xt(this)}}}),Y("aui/button");const te=".aui-close-button",ee=`<button type="button" class="aui-close-button" aria-label="${I18n.getText("aui.words.close")}">`;var ie={"aui-focus":"false","aui-blanketed":"true"};function ne(t){var e;this._handlers=new WeakMap,this.$el=i(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 ${ee}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),e=this.$el,i.each(ie,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}ne.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)};It(i).on(t,n),this._handlers.set(e,n)}return this},ne.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(It(i).off(t,n),this._handlers.delete(e)),this},ne.prototype.show=function(){return It(this.$el).show(),this},ne.prototype.hide=function(){return It(this.$el).hide(),this},ne.prototype.remove=function(){return It(this.$el).remove(),this},ne.prototype.isVisible=function(){return It(this.$el).isVisible()};var se=ht("dialog2",ne),re=new Set;se.on=function(t,e){return re.has(e)||(It.on(t,".aui-dialog2",e),re.add(e)),this},se.off=function(t,e){return re.has(e)&&(It.off(t,".aui-dialog2",e),re.delete(e)),this},i(document).on("click keydown",".aui-dialog2-header .aui-close-button",(function(t){("click"===t.type||t.keyCode===q.ENTER||t.keyCode===q.SPACE)&&(t.preventDefault(),se(i(t.target).closest(".aui-dialog2")).hide())})),se.on("show",(function(t,e){e.find(te).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()})),se.on("hide",(function(t,e){var i=It(e);e.data("aui-remove-on-hide")&&i.remove()})),Y("aui/dialog2",se),a("dialog2",se);const ae=se;var oe,le,ce=n(596),ue=n.n(ce),de=navigator.userAgent.toLowerCase(),he=(/msie/.test(de),/windows nt 5.1/.test(de),/windows nt 6.0/.test(de),/windows nt 6.1/.test(de),/mac os x/.test(de));function pe(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 fe(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function ge(t){var e=fe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(t){return t instanceof fe(t).Element||t instanceof Element}function ve(t){return t instanceof fe(t).HTMLElement||t instanceof HTMLElement}function be(t){return t?(t.nodeName||"").toLowerCase():null}function ye(t){return(me(t)?t.ownerDocument:t.document).documentElement}function we(t){return pe(ye(t)).left+ge(t).scrollLeft}function _e(t){return fe(t).getComputedStyle(t)}function xe(t){var e=_e(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ke(t,e,i){void 0===i&&(i=!1);var n,s,r=ye(e),a=pe(t),o=ve(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==be(e)||xe(r))&&(l=(n=e)!==fe(n)&&ve(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ge(n)),ve(e)?((c=pe(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=we(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ce(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Ee(t){return"html"===be(t)?t:t.assignedSlot||t.parentNode||t.host||ye(t)}function Te(t){return["html","body","#document"].indexOf(be(t))>=0?t.ownerDocument.body:ve(t)&&xe(t)?t:Te(Ee(t))}function De(t,e){void 0===e&&(e=[]);var i=Te(t),n="body"===be(i),s=fe(i),r=n?[s].concat(s.visualViewport||[],xe(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(De(Ee(r)))}function Se(t){return["table","td","th"].indexOf(be(t))>=0}function Ae(t){if(!ve(t)||"fixed"===_e(t).position)return null;var e=t.offsetParent;if(e){var i=ye(e);if("body"===be(e)&&"static"===_e(e).position&&"static"!==_e(i).position)return i}return e}function Ie(t){for(var e=fe(t),i=Ae(t);i&&Se(i)&&"static"===_e(i).position;)i=Ae(i);return i&&"body"===be(i)&&"static"===_e(i).position?e:i||function(t){for(var e=Ee(t);ve(e)&&["html","body"].indexOf(be(e))<0;){var i=_e(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var Oe="top",Ne="bottom",Pe="right",Me="left",Le="auto",Re=[Oe,Ne,Pe,Me],$e="start",je="end",Fe="viewport",He="popper",Be=Re.reduce((function(t,e){return t.concat([e+"-"+$e,e+"-"+je])}),[]),We=[].concat(Re,[Le]).reduce((function(t,e){return t.concat([e,e+"-"+$e,e+"-"+je])}),[]),Ve=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ue(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 ze(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 qe(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ye(t,e){return e===Fe?qe(function(t){var e=fe(t),i=ye(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+we(t),y:o}}(t)):ve(e)?function(t){var e=pe(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):qe(function(t){var e=ye(t),i=ge(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+we(t),o=-i.scrollTop;return"rtl"===_e(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:o}}(ye(t)))}function Ke(t,e,i){var n="clippingParents"===e?function(t){var e=De(Ee(t)),i=["absolute","fixed"].indexOf(_e(t).position)>=0&&ve(t)?Ie(t):t;return me(i)?e.filter((function(t){return me(t)&&ze(t,i)&&"body"!==be(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),r=s[0],a=s.reduce((function(e,i){var n=Ye(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}),Ye(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 Je(t){return t.split("-")[0]}function Ge(t){return t.split("-")[1]}function Qe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Xe(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Je(s):null,a=s?Ge(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Oe:e={x:o,y:i.y-n.height};break;case Ne:e={x:o,y:i.y+i.height};break;case Pe:e={x:i.x+i.width,y:l};break;case Me:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?Qe(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case $e:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case je:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function Ze(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function ti(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function ei(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?"clippingParents":r,o=i.rootBoundary,l=void 0===o?Fe:o,c=i.elementContext,u=void 0===c?He:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Ze("number"!=typeof f?f:ti(f,Re)),m=u===He?"reference":He,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=Ke(me(y)?y:y.contextElement||ye(t.elements.popper),a,l),_=pe(v),x=Xe({reference:_,element:b,strategy:"absolute",placement:s}),k=qe(Object.assign(Object.assign({},b),x)),C=u===He?k:_,E={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},T=t.modifiersData.offset;if(u===He&&T){var D=T[s];Object.keys(E).forEach((function(t){var e=[Pe,Ne].indexOf(t)>=0?1:-1,i=[Oe,Ne].indexOf(t)>=0?"y":"x";E[t]+=D[i]*e}))}return E}var ii={placement:"bottom",modifiers:[],strategy:"absolute"};function ni(){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 si(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?ii:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ii),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:me(t)?De(t):t.contextElement?De(t.contextElement):[],popper:De(e)};var s=function(t){var e=Ue(t);return Ve.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(ni(e,i)){o.rects={reference:ke(e,Ie(i),"fixed"===o.options.strategy),popper:Ce(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(!ni(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 ri={passive:!0};var ai={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oi(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=Me,g=Oe,m=window;if(l){var v=Ie(i);v===fe(i)&&(v=ye(i)),s===Oe&&(g=Ne,d-=v.clientHeight-n.height,d*=o?1:-1),s===Me&&(f=Pe,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&ai);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 li={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(t){return t.replace(/left|right|bottom|top/g,(function(t){return li[t]}))}var ui={start:"end",end:"start"};function di(t){return t.replace(/start|end/g,(function(t){return ui[t]}))}function hi(t,e,i){return Math.max(t,Math.min(e,i))}function pi(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 fi(t){return[Oe,Pe,Ne,Me].some((function(e){return t[e]>=0}))}var gi=si({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=fe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,ri)})),o&&l.addEventListener("resize",i.update,ri),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ri)})),o&&l.removeEventListener("resize",i.update,ri)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Xe({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:Je(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),oi(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),oi(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];ve(s)&&be(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}),{});ve(n)&&be(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=We.reduce((function(t,i){return t[i]=function(t,e,i){var n=Je(t),s=[Me,Oe].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,[Me,Pe].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=Je(m),b=l||(v===m||!f?[ci(m)]:function(t){if(Je(t)===Le)return[];var e=ci(t);return[di(t),e,di(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Je(i)===Le?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?We:l,u=Ge(n),d=u?o?Be:Be.filter((function(t){return Ge(t)===u})):Re,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]=ei(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Je(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,x=new Map,k=!0,C=y[0],E=0;E<y.length;E++){var T=y[E],D=Je(T),S=Ge(T)===$e,A=[Oe,Ne].indexOf(D)>=0,I=A?"width":"height",O=ei(e,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=A?S?Pe:Me:S?Ne:Oe;w[I]>_[I]&&(N=ci(N));var P=ci(N),M=[];if(r&&M.push(O[D]<=0),o&&M.push(O[N]<=0,O[P]<=0),M.every((function(t){return t}))){C=T,k=!1;break}x.set(T,M)}if(k)for(var L=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,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=ei(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Je(e.placement),b=Ge(e.placement),y=!b,w=Qe(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,T={x:0,y:0};if(x){if(r){var D="y"===w?Oe:Me,S="y"===w?Ne:Pe,A="y"===w?"height":"width",I=x[w],O=x[w]+m[D],N=x[w]-m[S],P=p?-C[A]/2:0,M=b===$e?k[A]:C[A],L=b===$e?-C[A]:-k[A],R=e.elements.arrow,$=p&&R?Ce(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[D],H=j[S],B=hi(0,k[A],$[A]),W=y?k[A]/2-P-B-F-E:M-B-F-E,V=y?-k[A]/2+P+B+H+E:L+B+H+E,U=e.elements.arrow&&Ie(e.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,q=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,Y=x[w]+W-q-z,K=x[w]+V-q,J=hi(p?Math.min(O,Y):O,I,p?Math.max(N,K):N);x[w]=J,T[w]=J-I}if(o){var G="x"===w?Oe:Me,Q="x"===w?Ne:Pe,X=x[_],Z=hi(X+m[G],X,X-m[Q]);x[_]=Z,T[_]=Z-X}e.modifiersData[n]=T}},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=Je(i.placement),o=Qe(a),l=[Me,Pe].indexOf(a)>=0?"height":"width";if(s&&r){var c=i.modifiersData[n+"#persistent"].padding,u=Ce(s),d="y"===o?Oe:Me,h="y"===o?Ne:Pe,p=i.rects.reference[l]+i.rects.reference[o]-r[o]-i.rects.popper[l],f=r[o]-i.rects.reference[o],g=Ie(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,_=hi(b,w,y),x=o;i.modifiersData[n]=((e={})[x]=_,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)))&&ze(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[n+"#persistent"]={padding:Ze("number"!=typeof o?o:ti(o,Re))})},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=ei(e,{elementContext:"reference"}),o=ei(e,{altBoundary:!0}),l=pi(a,n),c=pi(o,s,r),u=fi(l),d=fi(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 mi={"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 vi(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function bi(t){return vi(t,"alignment")||"right middle"}function yi(t){let[e,i]=bi(t).split(" ");return{side:e,snap:i}}function wi(t){let e=function(t){let e=vi(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 _i(t,e){const i=yi(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=bi(t);return mi[e]||"right"}(t):(i.snap=wi(e),n="submenu"===i.side?mi[("right"===i.snap?"left":"right")+" top"]:mi[`${i.side} ${i.snap}`]),n}const xi={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function ki(t,e,i={}){const n=yi(t),s=_i(t,e),r=xi[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("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{t.elements.popper&&t.elements.popper.setAttribute("x-placement",t.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return i.enabled&&i.fn(),t}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={fn:i.onEvents}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),t}}];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=gi(e,t,l),function(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)}(t,n.side,n.snap)}ki.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}};const Ci=ki;function Ei(t){let e=new i.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var Ti,Di,Si=0;function Ai(t){if(Ti=Si+++"",Di=t?t+Ti:"aui-uid-"+Ti,document.getElementById(Di)){if(Di=Di+"-"+(new Date).getTime(),document.getElementById(Di))throw new Error('Timestamped fallback ID "'+Di+'" exists.');return Di}return Di}a("id",Ai);const Ii=Ai;function Oi(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function Ni(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Pi(t,e={}){const i=e&&e.type&&(e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1);t.isSubmenu&&!i?t.focusItem(0):t.focus()}var Mi="unloaded",Li="loading",Ri="error";function $i(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]?`${e} ="true"`:""}function i(e){return t[e]?`${e}="${t[e]}"`:""}var n="aui-item-"+t.type;return`\n <${n} ${i("for")} ${i("href")} ${e("interactive")}\n ${e("checked")} ${e("disabled")} ${e("hidden")}>\n ${E(t.content)}\n </${n}>`})).join("");return`\n <aui-section ${t.label?`label="${t.label}"`:""}>\n ${e}\n </aui-section>`})).join("\n")}(e),K.init(t),X(t,(function(e){document.activeElement===e&&Pi(t)}))}function ji(t){J(t).set("loading-state",Ri),J(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Fi(t){t.src&&J(t).get("loading-state")!==Li&&(!function(t){J(t).set("loading-state",Li),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> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(t),i.ajax(t.src).done((function(e,i,n){200===n.status?$i(t,e):ji(t)})).fail((function(){ji(t)})).always((function(){!function(t){X(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Hi(t,e){return i(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 Bi(t){return Hi(t,(()=>!0))}function Wi(t){return Hi(t,((t,e)=>!Oi(e)))}function Vi(t){Bi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Oi(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ui(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function zi(t,e){var n=e&&e.hasSubmenu&&e.hasSubmenu(),s="submenu auto"===t.getAttribute("data-aui-alignment");!n&&s&&function(t){var e=i(t),n=e.data("previous-data-aui-alignment");n?t.setAttribute("data-aui-alignment",n):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 r=t.hasAttribute("data-aui-alignment");n&&!s?(!function(t){var e=i(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)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Ui(t),t._auiAlignment=new Ci(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(K.init(this),A("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"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=i(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const n=e.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&e.is(".aui-dropdown2-trigger")&&(s.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=n.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var qi=!1;function Yi(){qi=!0}function Ki(t){It(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=i(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(`.${t}`).addClass(`aui-dropdown2-${t}`)}))}(t),Vi(t),i(t).trigger("aui-dropdown2-show"),X(t,(function(e){Ni(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&&(i(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"),Bi(t).removeClass("active aui-dropdown2-active"),X(t,(function(t){var e;e=!0===qi,qi=!1,e?(t.focus(),Ni(t,t.hasSubmenu&&t.hasSubmenu())):Ni(t,!1)})),delete t.isSubmenu,Q(t,null))}))}function Ji(t){var e=i(t);function n(e){return i(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){n(e.target)&&(e.keyCode===q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===q.LEFT?t.isSubmenu&&(Yi(),t.hide(e),e.preventDefault()):e.keyCode===q.ESCAPE?Yi():e.keyCode===q.TAB&&(Yi(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;const s=e.currentTarget,r=e.keyCode,a=r===q.ENTER,o=r===q.SPACE;a&&i(s).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=It(n);n=It(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(n(e.target)){var i=e.currentTarget,s=i.hasSubmenu&&i.hasSubmenu();if(!e.isDefaultPrevented()&&!s){var r=It(t).above();r&&It(r).hide()}}}))}function Gi(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")),Ki(t),Ji(t),i(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===q.ENTER||t.keyCode===q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),i(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===q.ENTER||t.keyCode===q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}i(window).on("resize",(0,Vt.debounce)((function(){i(".aui-dropdown2").each((function(t,e){K.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Qi={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),It(e).show(),X(e,(function(t){zi(e,t)})),setTimeout((()=>Pi(e,t)),0),this},hide:function(){return It(this).hide(),this},focusNext:function(){var t,e=Wi(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=Wi(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=Wi(this);"number"==typeof t&&(t=e.get(t));const n=i(t);n.focus(),e.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return It(this).isVisible()}},Xi={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")}},Zi={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},tn={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}))}},en={created:function(t){Xi.created(t)},removed:function(t){Xi.removed(t)}},nn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const sn=function(t=""){return t.split(" ").map((t=>t.trim())).filter((t=>t))},rn=K("aui-item-link",{template:ue()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Xi,interactive:Zi,hidden:en,href:nn("href"),"item-id":nn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),i(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"),i(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...sn(e.oldValue)),e.newValue&&i.classList.add(...sn(e.newValue))}}}),[an,on]=["checkbox","radio"].map((t=>K(`aui-item-${t}`,{template:ue()(`<span role="${t}" class="aui-dropdown2-${t}" tabindex="-1"><content></content></span>`),attributes:{"item-id":nn("id"),disabled:Xi,interactive:Zi,checked:tn,hidden:en}}))),ln=K("aui-section",{template:ue()('\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=Ii();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")}}),cn=K("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",It(t),J(t).set("loading-state",Mi),K.init(t)},detached:function(t){Ei(t).then((()=>Ui(t)))},attributes:{src:{}},prototype:Qi,events:{"aui-layer-show":function(t){var e=J(t).get("loading-state")===Mi,i=J(t).get("hasErrorBeenShown");(e||i)&&Fi(t),J(t).get("loading-state")===Ri&&J(t).set("hasErrorBeenShown",!0)}}});K("aui-dropdown2",{type:K.type.CLASSNAME,created:Gi,prototype:Qi}),K("data-aui-dropdown2",{type:K.type.ATTRIBUTE,created:Gi,prototype:Qi}),K("aui-dropdown2-trigger",{type:K.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==t)return;if(n.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void p('Could not find a dropdown with id "'+e+'" in the DOM.');const a=i(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=t.hasSubmenu(),r}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",`#${e}`),i(t).on("aui-button-invoke",n).on("click",n).on("keydown",(function(e){if(e.currentTarget!==t)return;const i=e.keyCode===q.ENTER||e.keyCode===q.SPACE,s=e.keyCode===q.RIGHT&&t.hasSubmenu(),r=(e.keyCode===q.UP||e.keyCode===q.DOWN)&&!t.hasSubmenu();i?n(e):(r||s)&&n(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")===Mi,i=J(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Fi(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-${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"),he&&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-${t}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var un=i(document),dn=function(t){var e={};return e.$trigger=i(t.currentTarget),e.$content=un.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},hn=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)}},pn={"aui-expander-invoke":function(t){var e=i(t.currentTarget),n=un.find("#"+e.attr("aria-controls")),s=!1!==e.data("collapsible");"true"===n.attr("aria-expanded")&&s?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=dn(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"),hn(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=dn(t);"true"===e.$content.attr("aria-expanded")&&(hn(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){i(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};un.on(pn,".aui-expander-trigger");function fn(t){vn[t]=function(e,n){n||(n=e,e="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function({id:t,closeable:e,fadeout:n,title:s,body:r},a){const o=s?`<p class="title"><strong>${E(s)}</strong></p>`:"",l=i(`<div class="aui-message">${o}</div>`).append(i.parseHTML(r||"")).addClass(e?"closeable":"").addClass(n?"fadeout":"").addClass(`aui-message-${a}`);t&&(/[#\'\"\.\s]/g.test(t)?h("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):l.attr("id",t));return l}(n,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(s,n.insert,e),n.closeable&&gn(s),n.fadeout&&mn(s,n.delay,n.duration),s}}function gn(t){i(t||"div.aui-message.closeable").each((function(){var t,e=i(this),n=e.find(te),s=n.length>0?n.first():i(ee);e.addClass("closeable"),e.append(s),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",te,(function(t){i(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",te,(function(t){t.which!==q.ENTER&&t.which!==q.SPACE||(i(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function mn(t,e,n){e=void 0!==e?e:5e3,n=void 0!==n?n:500,i(t||"div.aui-message.fadeout").each((function(){var t=i(this),s=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(n,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!r}t.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var vn={setup:function(){gn(),mn()},makeCloseable:gn,makeFadeout:mn,createMessage:fn};i.fn.closeMessage=function(){var t=i(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),i(document).trigger("aui-message-close",[this]))},fn("generic"),fn("error"),fn("warning"),fn("info"),fn("confirmation"),fn("change"),fn("success"),fn("hint");const bn=K("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",vn[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});i((function(){vn.setup()})),M(vn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(vn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(vn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),a("messages",vn);var yn="aui-flag-container",wn={body:"",close:"manual",title:"",type:"info"};function _n(t){(t=i.extend({},wn,t)).title=(t.title||"").toString().trim();var e=function({body:t,title:e,close:n,type:s}){const r=e?`<p class="title"><strong>${E(e)}</strong></p>`:"",a=i(`<div class="aui-message">${r}</div>`).append(i.parseHTML(t||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(a)}(t);return function(t){t[0].close=function(){kn(t)}}(e),"auto"===t.close?(xn(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),5e3)}(e)):"manual"===t.close&&xn(e),function(){const t=Cn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else i("body").prepend('<div id="aui-flag-container"></div>')}(),function(t){const e=Cn();t.appendTo(e),F(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function xn(t){var e=i(ee);return e.on("click",(function(){kn(t)})),e.on("keypress",(function(e){e.which!==q.ENTER&&e.which!==q.SPACE||(kn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function kn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new ft("aui-flag-close",{bubbles:!0})),e}function Cn(){return document.getElementById(yn)}Y("aui/flag",_n),a("flag",_n);const En=_n;function Tn(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 Dn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Tn(Object(i),!0).forEach((function(e){Sn(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Tn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Sn(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const An="aui-tooltip",In={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},On={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1};let Nn;const Pn=(t=!1)=>{const e=Nn&&Nn.get(0);e&&e.classList.toggle("assistive",t)};class Mn{constructor(t,e){this.triggerElement=t,this.$triggerElement=i(this.triggerElement),this.options=Dn(Dn({},On),e),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),Ln.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,e.attr("aria-describedby",An),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".aui-tooltip",t):this.$triggerElement.off(".aui-tooltip")}buildTip(t){const e=this.options;return void 0===Nn&&(Nn=i('<div id="aui-tooltip" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>'),i(document.body).append(Nn)),e.html?Nn.find(".aui-tooltip-content").html(t):Nn.find(".aui-tooltip-content").text(t),Nn}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return 0===e.trim().length?void 0:e}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;this.hide();const e=this.triggerElement,n=In[this.options.gravity];if(clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const s=this.buildTip(t).get(0);this.popperTimeout=setTimeout((()=>{this.showTooltip(),this.popperInstance=gi(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on("scroll.aui-tooltip",(()=>this.hide()))}),300)}hide(){this.hideTooltip(),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off("scroll.aui-tooltip")}showTooltip(){Pn(!1)}hideTooltip(){Pn(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Ln=new WeakMap,Rn=(t,e)=>{let i=Ln.get(t);return void 0===i&&(i=new Mn(t,e),"object"==typeof t&&Ln.set(t,i)),i},$n=t=>t.map((t=>`${t}.aui-tooltip`)).join(" "),jn=$n(["mouseenter","focus"]),Fn=$n(["click","mouseleave","blur"]);i.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return Rn(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),e}const i=t||{},n=function(){Rn(this,i).show()},s=function(){Rn(this,i).hide()},r=i.live;return void 0!==r?(i.$delegationRoot=e,e.on(jn,r,n),e.on(Fn,r,s),e):(e.on(jn,n),e.on(Fn,s),e)};var Hn=function(t){function e(){return i('<div class="aui-dropdown2-section">')}var n=e();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=e(),r=i("<ul />").appendTo(s);return i.each(t,(function(t,e){var n=i("<li />").attr({class:e.styleClass||""}).appendTo(r),s=i("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);e.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(s),e.selected&&s.addClass("aui-dropdown2-checked")})),i("<div />").append(n).append(s).html()},Bn=function(t,e){var n=t+"-dropdown",s=i("<select />").attr({name:t,multiple:"multiple"}).html(e),r=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(a).append(r).html()};function Wn(t){var e=i(t.target);Vn(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function Vn(t,e,n){var s=t.$select.find("option").filter((function(){var t=i(this);return t.attr("value")===e&&t.prop("selected")!==n}));s.length&&(s.prop("selected",n),t.$select.trigger("change"))}function Un(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Kn(t).length<1}))}function zn(t){return t.map((function(){var t=i(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 qn(t){t.$dropdown.html(Hn(function(t){return zn(t.getOptions())}(t))),Un(t)}function Yn(t){var e=Jn(t),n=function(t){return 0===Kn(t).length}(t)?function(t){return i(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(n)}function Kn(t){return zn(t.getSelectedOptions())}function Jn(t){return i.map(Kn(t),(function(t){return t.label}))}const Gn=K("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||Ii("aui-checkbox-multiselect-");t.innerHTML=Bn(e,t.innerHTML),t.$select=i("select",t).on("change",(function(){Yn(t),Un(t)})),t.$dropdown=i(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",Wn.bind(t)).on("aui-dropdown2-item-uncheck",Wn.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=i(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":Jn(t).join(", ")}(t)}}),Yn(t),qn(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){Vn(this,t,!0)},unselectOption:function(t){Vn(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){i("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),Yn(this),qn(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),Yn(this),qn(this)}}});Y("aui/checkbox-multiselect",Gn);const Qn=Gn;var Xn=n(726);const Zn=n.n(Xn)();const ts=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")}}},es="-input";function is(t){return t.querySelector("label")}const ns=K("aui-label",{template:ue()("<label><content></content></label>"),created:function(t){t._label=is(t)},attached:function(t){ts(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?is(t).setAttribute("for",`${e.newValue}-input`):is(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?is(t).setAttribute("form",e.newValue):is(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()}}});n(37);var ss=i.fn.select2,rs="aui-select2-container",as="aui-select2-drop aui-dropdown2",os="aui-has-avatar";i.fn.auiSelect2=function(t){var e;if(i.isPlainObject(t)){var n=i.extend({},t),s=n.hasAvatar?" "+os:"";n.containerCssClass=rs+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=as+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(n)}else e=arguments.length?arguments:[{containerCssClass:rs,dropdownCssClass:as}];return ss.apply(this,e)},i.fn.spin=O((function(t,e){let n={size:"small"};return"object"==typeof e&&(n=i.extend(n,e)),"object"==typeof t&&(n=i.extend(n,t)),"string"==typeof t&&(n.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=i(this),e=t.data();if(e){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),t.spinStop(),t.append(s),K.init(this),e.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=O((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=i(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>"});const ls=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}}});var cs=n(823),us=n.n(cs),ds=us().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,(0,Vt.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=(0,Vt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=(0,Vt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return us().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=(0,Vt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=(0,Vt.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",ds);const hs=ds,ps=us().Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function fs(){this._suggestions=[],this._activeIndex=-1}fs.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}};const gs=fs;function ms(t,e){return t+"-"+e}function vs(t,e){this.el=t,this.anchor=e}function bs(t){i(t).find(".aui-select-active").removeClass("aui-select-active")}vs.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="${encodeURI(r)}"/>`:"",o=t.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";n+=`<li role="option" class="aui-select-suggestion" id="${ms(i,s)}">${a}${e}${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">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(t){bs(this.el),i(this.el).find("#"+ms(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;i((t=this).el).css("min-width",i(t.anchor).outerWidth()),It(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new Ci(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;bs(this.el),It(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 i(this.el).is(":visible")}};const ys=vs,ws=ue()('\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 _s(t){t._select.selectedIndex=-1,function(t){t._input.removeAttribute("style"),i(t._input).removeClass("aui-select-has-inline-image")}(t)}function xs(t){return t._suggestionModel.getNumberOfResults()}function ks(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function Cs(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function Es(t){var e=xs(t)?0:-1;t._suggestionModel.highlight(e),Cs(t)}function Ts(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Ds(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){i(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function Ss(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 As(t){Ss(t,t._suggestionModel.highlighted()),Ds(t),Es(t)}function Is(t){return new ps(t.serialize())}function Os(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Is(n))}return e}function Ns(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function Ps(t,e){return i.map(e,(function(t){return t.id})).indexOf(t)}function Ms(t){t._progressiveDataSet=new hs(Os(t),{model:ps,matcher:ks,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=Os(t));var i=-1!==Ps(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 ls;e.setAttribute("value",t._input.value);var i=Is(e);return i.set("new-value",!0),i}(t)),!J(t).get("should-include-selected")){var s=Ps(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",Ns(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 Ls(t){var e=t.value?"":t._input.value,i=""===t._input.value;J(t).set("should-include-selected",i),Ts(t,!0,e)}function Rs(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&J(t).set("should-cancel-response",!0)}function $s(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function js(t){Rs(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==$s(t);if(i||n)if(e)_s(t);else{var s=$s(t);void 0===s?_s(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(-1)}(t),Cs(t)}const Fs=K("aui-select",{template:ws,created:function(t){t._listId=Ii(),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 ys(t._dropdown,t._input),t._suggestionModel=new gs,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",Ns(t))}},attached:function(t){K.init(t),Ms(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){i(t._dropdown).on("mouseover","li",(function(e){xs(t)&&t._suggestionModel.highlight(i(e.target).index())}))}(t),function(t){let e=!1;i(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),i(t._dropdown).on("mousedown","li",(function(n){if(!xs(t))return!1;t._suggestionModel.highlight(i(n.target).index()),As(t),t._suggestionsView.hide(),i(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&&Ss(t,Is(e))}(t),Es(t),Ds(t)},detached:function(t){i(document).off("aui-close-layers-on-outer-click"),Ei(t).then((()=>{Cs(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+es)},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){js(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){Ls(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),Ts(t,!0)):J(t).get("button-clicked-prevent-dropdown-hide")?J(t).set("button-clicked-prevent-dropdown-hide",!1):Cs(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===q.ESCAPE)return Rs(t),void Cs(t);t._suggestionsView.isVisible()&&xs(t)?e.keyCode===q.ENTER?(Rs(t),As(t),e.preventDefault()):e.keyCode===q.TAB?(!function(t){t._suggestionsView.isVisible()&&As(t)}(t),n=!0):e.keyCode===q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==q.UP&&e.keyCode!==q.DOWN||(Ls(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 ps({value:t,label:t})),Ss(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),js(this),this},focus:function(){return this._input.focus(),Ls(this),this}}});Y("aui/select",Fs),a("select",Fs);const Hs=Fs;function Bs(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}const Ws={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Bs,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 Vs(t){return t._input||(t._input=t.querySelector("input"))}function Us(t){return t._spinner||(t._spinner=new Qt)}function zs(t,e){Vs(e).removeAttribute(t)}function qs(t,e,i){Vs(e).setAttribute(t,i.newValue)}function Ys(t){return{removed:zs.bind(this,t),fallback:qs.bind(this,t)}}const Ks={removed:function(t){zs.call(this,"form",t),t._formId=null},fallback:function(t,e){qs.call(this,"form",t,e),t._formId=e.newValue}};var Js={removed:zs.bind(void 0,"id"),fallback:function(t,e){const i=`${e.newValue}-input`;Vs(t).setAttribute("id",i)}},Gs={removed:function(t){zs.call(this,"value",t),Vs(t).value="on"},fallback:function(t,e){qs.call(this,"value",t,e)}},Qs={removed:function(t){Vs(t).checked=!1},fallback:function(t){Vs(t).checked=!0}},Xs={removed:function(t){Vs(t).removeAttribute("aria-label")},fallback:function(t,e){Vs(t).setAttribute("aria-label",e.newValue)}};function Zs(t){Vs(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===q.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Vs(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===le)try{document.querySelector(":focus-within"),le=!0}catch(t){le=!1}return le}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const tr=K("aui-toggle",{template:ue()('<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){Vs(t),Us(t).setAttribute("size",Ut.SMALL.name),i(Vs(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Zs(t),t.hasAttribute("checked")&&Vs(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){ts(t).attributeExists("label")},events:{click:function(t,e){var i=Vs(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new ft("change",{bubbles:!0}))}(t)),Bs(t,"checked",i.checked)}},attributes:{id:Js,checked:Qs,disabled:Ys("disabled"),form:Ks,name:Ys("name"),value:Gs,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Vs(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Vs(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Xs},prototype:{focus:function(){return Vs(this).focus(),this},get checked(){return Vs(this).checked},set checked(t){Vs(this).checked!==t&&(Vs(this).checked=t,Bs(this,"checked",t))},get disabled(){return Vs(this).disabled},set disabled(t){return Bs(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return Ks.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Vs(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Vs(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Vs(this).getAttribute("aria-busy")},set busy(t){const e=Vs(this),n=Us(this);var s,r;return Bs(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!t,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(t){t.disabled=r})),t}}});function er(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 ir(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?er(Object(i),!0).forEach((function(e){nr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):er(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function nr(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function sr(t,e){X(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),Q(t,e)}function rr(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let n={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};n=ir(ir({},n),{onCreate:()=>{vr(t)&&dt().enter(i(t),i(e))},onEvents:{enabled:()=>{vr(t)&&dt().enter(i(t))},disabled:()=>{vr(t)&&dt().exit(i(t))}}}),t._auiAlignment=new Ci(t,e,n)}}function ar(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function or(t,e){var i=e.currentTarget;i&&(sr(t,i),rr(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function lr(t=0){return function(e){e.open&&!It(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return J(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const cr={click(t,e){t.open&&!It(t).isPersistent()?t.open=!1:(sr(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:or,mouseleave:lr(1e3),focus:or,blur:lr(0)};function ur(t){var e=t.currentTarget;J(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function dr(t){var e=t.currentTarget;J(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function hr(t){var e=t.currentTarget;"hover"===e.respondsTo&&lr(1e3)(e)}function pr(t){J(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",ur),t.removeEventListener("mouseleave",dr),t.removeEventListener("blur",hr),"hover"===t.respondsTo&&(J(t).set("mouse-inside",!1),t.addEventListener("mouseenter",ur),t.addEventListener("mouseleave",dr),t.addEventListener("blur",hr))}function fr(t,e){return`${t}.nested-layer-${e}`}function gr(t){return It(t).show(),!0===It(t).isVisible()}function mr(t){return It(t).hide(),!1===It(t).isVisible()}function vr(t){return"hover"!==t.respondsTo}function br(t){t.__initialised||(It(t),i(t).on({[`${gt}show`]:function(){const t=this;!function(t){let e=i(t);const n=t.id,s=t=>e.find(G(t.target)).length<1;i(document).on(fr("aui-layer-show",n),(t=>{s(t)||e.attr("persistent","")})).on(fr("aui-layer-hide",n),(t=>{s(t)||e.removeAttr("persistent")})).on(fr("select2-opening",n),(()=>{e.attr("persistent","")})).on(fr("select2-close",n),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),X(t,(function(e){rr(t,e),e.setAttribute("aria-expanded","true")}))},[`${gt}hide`]:function(){const t=this;!function(t){const e=t.id;i(document).off(fr("aui-layer-hide",e)).off(fr("aui-layer-show",e)).off(fr("select2-opening",e)).off(fr("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):ar(t),X(t,(function(t){t.setAttribute("aria-expanded","false")})),Q(t,null)}}),t.__initialised=!0)}const yr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},wr=K("aui-inline-dialog",{prototype:{get open(){return It(this).isVisible()},set open(t){this.__propUpdate=!0,t?gr(this):mr(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Ws.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=yr.attribute;return Ws.computeEnumValue(yr,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Ws.setEnumAttribute(this,yr,t),e!==this.respondsTo&&pr(this)},message:function(t){var e,i,n;return i=t,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(e=this).respondsTo])&&n.indexOf(i.type)>-1&&cr[i.type](e,i),this}},attributes:{open:function(t,e){if(br(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){gr(t)||Bs(t,"open",!1)}if("removed"===e.type){mr(t)||Bs(t,"open",!0)}}},"responds-to":function(t,e){Ws.computeEnumValue(yr,e.oldValue)!==Ws.computeEnumValue(yr,e.newValue)&&pr(t)}},created:br,attached:function(t){ts(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")})),pr(t)},detached:function(t){Ei(t).then((()=>{ar(t),Z(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){i('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});Y("aui/inline-dialog2",wr),a("InlineDialog2",wr);const _r=wr;function xr(t){if(this.$el=i(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new xr(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(){kr(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){kr(i(this).siblings(".aui-nav")).toggle()})),n.each((function(){var t=i(this).parent("li[aria-expanded]"),e=i(this).find(".aui-icon"),n="true"===t.attr("aria-expanded");e.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}xr.prototype.isNested=function(){return 1===this.$treeParent.length},xr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},xr.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},xr.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},xr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const kr=ht("navigation",xr),Cr=K("aui-nav",{type:K.type.CLASSNAME,attached:function(t){new xr(t)},detached:function(t){i(t).removeData()}});a("navigation",kr);const Er=kr;function Tr(t,e,{currentProgress:n,value:s}){const r=i(t),a=i(e);"number"==typeof s&&s<=1&&s>=0&&(a.trigger("aui-progress-indicator-before-update",[n,s]),r.one("transitionend webkitTransitionEnd",(function(){a.trigger("aui-progress-indicator-after-update",[n,s])})),function(t,e,i){F(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(r,a,s))}function Dr(t){var e=i(t).first(),n=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),F(e),n.css("width","")}const Sr={indeterminate:!1,max:1,val:0};function Ar(t){return(0,Vt.isNumber)(t)&&(0,Vt.isFinite)(t)&&!(0,Vt.isNaN)(t)}function Ir(t,e=1){const i=parseFloat(t);return Ar(i)?i:Number(e)}function Or(t,e=1){return Number(parseFloat(t).toFixed(e))}function Nr(t){const{val:e,max:i}=t,n=function(t){return t>0?t:Sr.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=Or(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:Or(100*r,2)}}function Pr(t){const{val:e,valAsFraction:i,max:n}=Nr(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),Dr(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),Tr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Mr(t,e){t._data.val=Ir(e.newValue,e.oldValue||Sr.val),Pr(t)}function Lr(t,e){t._data.max=Ir(e.newValue,e.oldValue||Sr.max),Pr(t)}const Rr=K("aui-progressbar",{template(t){t._data.max=Ir(t.getAttribute("max"),Sr.max),t._data.val=Ir(t.getAttribute("value"),Sr.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=Nr(t._data),r=t._data.indeterminate?"":`data-value="${n}"`;t.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${e}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(t){Pr(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:Sr.val,fallback:function(t,e){if(t._updating)return!1;Mr(t,e)}},max:{value:Sr.max,fallback:function(t,e){if(t._updating)return!1;Lr(t,e)}}},prototype:{get _data(){return this.__data||(this._data=(0,Vt.defaults)({},Sr))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Pr(this)},get value(){const{val:t}=Nr(this._data);return t},set value(t){if(!Ar(t))return!1;const e={newValue:Or(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,Mr(this,e)},get max(){const{max:t}=Nr(this._data);return t},set max(t){if(!Ar(t))return!1;const e={newValue:Or(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,Lr(this,e)}}}),$r={update:O((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var n=i(t).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),Tr(s,n,{currentProgress:o,value:e}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:O(Dr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};a("progressBars",$r);const jr=$r;n(473);const Fr={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Hr(t,e){let n=Object.assign({},Fr,e);return t.find("th").each((function(t,e){const s=i(e);n.headers[t]={},s.hasClass("aui-table-column-unsortable")?n.headers[t].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[t].sorter="issue-key"))})),t.tablesorter(n)}let Br={setup:function(){i.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"}),i.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"}),i.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"}),i(".aui-table-sortable").each((function(){Hr(i(this))}))},setTableSortable:function(t,e){return Hr(t,e)}};i(Br.setup),a("tablessortable",Br);function Wr(t,e=""){var n=i(t),s=e||!1;n.each((function(){var t=i(this);t.attr("id")||t.attr("id",Ii(s))}))}a("_addID",Wr);const Vr=Wr;function Ur(t){return(t=i(t)).prop("scrollWidth")>t.prop("clientWidth")}a("isClipped",Ur);const zr=Ur;var qr=window.skateTemplateHtml;function Yr(t){let e=i(t),n=String(e.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Kr(t){let e=Yr(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,n){e+=i(n).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-${e}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${e}"\n href="#aui-tabs-responsive-dropdown-${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,n){function s(t,e,i){return t+e<=i}for(var r=0,a=0;s(r,n,e)&&a<t.length;a++){r+=i(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(t,e.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=i(t[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(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,n){function s(t){return t>0}for(var r=0;s(e)&&r<t.length;r++){var a=i(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,n),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 Gr(t){var e=i(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var n=Kr(e);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));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=s.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")&&s.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:s})}else p("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Qr(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Xr(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return"_internal-aui-tabs-"+(e||"")+(i&&"true"!==i?"-"+i:"")}function Zr(t){ra.change(i(t.target).closest("a")),t&&t.preventDefault()}function ta(t){t.forEach((function(t,e){!function(t,e){var n=i(t),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Jr.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=Jr.createResponsiveDropdownTrigger(s,e),c=Jr.createResponsiveDropdown(n,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(r.toArray(),n,a),p=Jr.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Jr.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Zr),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Jr.moveTabOutOfDropdown(i(this),a)})),Jr.removeResponsiveDropdown(c,a))}(t,e)}))}function ea(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function ia(t){var e=i(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var n=e.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each((function(){var t,e,n;e=i(t=this),n=Kr(e),Yr(t)||p('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),n?(Vr(e),e.attr("role","tab"),i(n).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)})),n.on("click.aui-tabs","a",Zr),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(sa)}(t)}}function na(){var t=i(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){ia(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Qr(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(Xr(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&Gr(a)}}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function sa(t){t.setAttribute("role","tabpanel")}var ra={setup:function(){!function(){const t=(0,Vt.debounce)(ta,200);t(ea()),i(window).on("resize.aui-tabs",(()=>t(ea())))}(),na(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var t=i(this);t.attr("title")||zr(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof i?t:document.querySelector(t),n=i(e).first(),s=n.closest(".aui-tabs");Gr(n),Qr(s)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=Yr(t);i&&window.localStorage.setItem(Xr(e),"#"+i)}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(ra.setup);const aa=K("aui-tabs",{created:function(t){i(t).addClass("aui-tabs horizontal-tabs"),K.init(t),ia(t)},template:qr('<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(function(t){return t.querySelectorAll("aui-tabs-pane")}(this)).index(t);return e>-1&&ra.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[e].children[0]),this}}}),oa=K("aui-tabs-tab",{extends:"li",created:function(t){i(t).addClass("menu-item")},template:qr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),la=K("aui-tabs-pane",{attached:function(t){var e=i(function(t){return i(t).closest("aui-tabs").get(0)}(t)),n=i(t),s=e.find("aui-tabs-pane").index(n),r=new oa,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),qr.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:qr("<content></content>")});a("tabs",ra);const ca="_aui-form-notification-initialised",ua="data-aui-notification-wait",da="data-aui-notification-info",ha="data-aui-notification-error",pa=[ha,"data-aui-notification-success",ua,da];function fa(t){ga(t)||(!function(t){t.addClass(ca),ma(t)}(t),ya(t))}function ga(t){return t.hasClass(ca)}function ma(t,e){e=e||va(t),ba(t)===da&&t.after(function(t){if(t.length>1){return`<div class="description"><ul>${t.map((t=>`<li>${t}</li>`)).join("")}</ul></div>`}return`<div class="description">${t}</div>`}(e))}function va(t){var e=ba(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 ba(t){var e;return pa.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function ya(t){const e=i(t);if(!ga(e))return;const n=ba(e);xa(e,n===ua);const s=va(e);s&&n===ha?wa(e,s):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(ha)||e.parent().find(".error").remove()}function wa(t,e){let i=_a(t,"error");i.length>0&&i.remove(),t.after(function(t){return`<div class="error"><ul>${t.map((t=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">${t}</span>${t}</li>`)).join("")}</ul></div>`}(e))}function _a(t,e){return t.parent().find(`.${e}`)}function xa(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 ka=A("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});K("data-aui-notification-field",{attached:function(t){ka(),fa(i(t))},attributes:function(){const t={};return pa.forEach((function(e){t[e]=ya})),t}(),type:K.type.ATTRIBUTE}),Y("aui/form-notification");var Ca=["displayfield","watchfield","when","novalidate","state"],Ea=[];var Ta={register:function(t,e){var n;if("string"==typeof t)n=t;else{var s=function(t){var e=!1;return t.some((function(t){var n=-1!==i.inArray(t,Ca);return n&&(e=t),n})),e}(t);if(s)return h('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:n};return Ea.push(r),r},validators:function(){return Ea}};Y("aui/form-validation/validator-register",Ta);const Da=Ta;function Sa(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=Ma("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=Ma("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=Ma("maxlength",t.args);t.invalidate(e)}else t.validate()}function Aa(t){return"password"===t.getAttribute("type")}function Ia(t,e){var i=t.match(e);return!!i&&t===i[0]}function Oa(t){var e=Ma("pattern",t.args);Ia(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function Na(t){var e=Ma("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Pa(t){var e=Ma("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(Ma("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(Ma("max",t.args)):t.validate()}}function Ma(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:La[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)}Da.register(["maxlength","minlength"],Sa),Da.register("[maxlength],[minlength]",Sa),Da.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=Ma("matchingfield",t.args,[e,n]);(Aa(t.el)||Aa(i))&&(s=Ma("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),Da.register(["doesnotcontain"],(function(t){var e=Ma("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),Da.register(["pattern"],Oa),Da.register("[pattern]",Oa),Da.register(["required"],Na),Da.register("[required]",Na),Da.register(["min","max"],Pa),Da.register("[min],[max]",Pa),Da.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=Ma("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");Ia(t.el.value,a)?t.validate():t.invalidate(i)})),Da.register(["minchecked","maxchecked"],(function(t){var e=i(t.el).find(":checked").length,n=!t.args("minchecked")||e>=t.args("minchecked"),s=!t.args("maxchecked")||e<=t.args("maxchecked"),r=Ma("minchecked",t.args),a=Ma("maxchecked",t.args);n&&s?t.validate():n?s||t.invalidate(a):t.invalidate(r)}));var La={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")};Y("aui/form-validation/basic-validators");const Ra="data-aui-notification-",$a="invalid",ja="valid",Fa="validating",Ha="unvalidated",Ba="_aui-form-validation-initialised",Wa="_aui-internal-field-state-changed";function Va(t){(function(t){return t.hasClass(Ba)})(t)||(!function(t){t.addClass(Ba),ma(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=za(t,"when"),i=za(t,"watchfield");(i?t.add("#"+i):t).on(e,(function(){Ua(t)}))}(t)}(t),Ka(t,Ha))}function Ua(t){if(!za(t,"novalidate"))return function(t){!function(t){Ja(Qa(t),"none")}(t);var e=function(t){var e=[];return qa().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);Ka(t,Fa);var n=function(t,e){var n=[];return e.forEach((function(e){var s=qa()[e].validatorFunction,r=new i.Deferred;s(function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Ka(t,$a,i),e.reject()},args:Ya(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,r)),n.push(r)})),n}(t,e),s=i.when.apply(i,n);return s.done((function(){Ka(t,ja)})),s}(t);Ka(t,ja)}function za(t,e){var i=t.attr("data-aui-validation-"+e);return i||(i={when:"change"}[e]),i}function qa(){return Da.validators()}function Ya(t){return function(e){return t.attr("data-aui-validation-"+e)||t.attr(e)}}function Ka(t,e,n){if(t.attr("data-aui-validation-state",e),e!==Ha){t.trigger(i.Event(Wa));var s=Qa(t),r={validating:"wait",invalid:"error",valid:"success"},a=r[e];e===Fa?function(t){setTimeout((function(){Xa(t)===Fa&&(Ja(t,"wait"),xa(t,!0))}),500)}(t):Ja(s,a,n)}}function Ja(t,e,i){const n=function(t){return t.is("[data-aui-notification-wait]")}(t);!function(t){Ga(t,"wait"),xa(t,!1),Ga(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Ga(t,"error");else{const n=t.attr(Ra+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr(Ra+e,JSON.stringify(a)),"error"===e&&wa(t,a)}}function Ga(t,e){t.removeAttr(Ra+e),"error"===e&&_a(t,e).remove()}function Qa(t){var e=za(t,"displayfield");return void 0===e?t:i("#"+e)}function Xa(t){return t.attr("data-aui-validation-state")}function Za(t,e){e.preventDefault(),t.one(Wa,(function(){t.trigger("submit")}))}function to(t,e){var i="[data-aui-validation-state="+e+"]";return t.find(i)}i(document).on("submit",(function(t){var e=t.target,n=i(e),s=function(t){return a=t.find("."+Ba),e=i.map(a,(function(t){return Xa(i(t))})),n=-1!==e.indexOf($a),s=-1!==e.indexOf(Ha),r=-1!==e.indexOf(Fa),n?$a:s?Ha:r?Fa:ja;var e,n,s,r;var a}(n);if(s===Ha)Za(n,t),function(t){to(t,Ha).each((function(t,e){eo.validate(i(e))}))}(n);else if(s===Fa)Za(n,t);else if(s===$a)t.preventDefault(),function(t){to(t,$a).first().focus()}(n);else if(s===ja){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const eo={register:Da.register,validate:function(t){Ua(t=i(t))}};K("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Va(i(t)),K.init(t)},type:K.type.ATTRIBUTE}),Y("aui/form-validation",eo),a("formValidation",eo);var io=O((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"});const no=io;a("debounce",io),a("debounceImmediate",O((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 so=i(window);function ro(t){var e,n=this;this.element=t,this.$element=i(t),this.index=i("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=i(n.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}ro.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=i(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=i(this).parent(),n=e.outerWidth(!0);t.totalWidth+=n,t.menuItems.push({$element:e,outerWidth:n})})),this.rightMostNavItemIndex=this.menuItems.length-1,so.on("resize",this._resizeHandler=no((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(){so.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-${this.index}`,K.init(e);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,K.init(n),e.appendChild(n);var s=function(t){var e=document.createElement("a");return e.setAttribute("class","aui-dropdown2-trigger"),e.setAttribute("href","#"),e.id=t.id+"-trigger",e.setAttribute("aria-controls",t.id),e.innerHTML=I18n.getText("aui.words.more"),e}(e);return t.appendChild(s),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=i(t).outerWidth(!0),i(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+t,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(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=ue().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-t+1,r=n;r>=s;r--){var a=this.menuItems[r].$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=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}K.init(l),ue().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()}};const ao=function(t){let e=t._header;return e instanceof ro||(e=new ro(t),e.init(),t._header=e),e};function oo(){i(".aui-header").each((function(){ao(this)}))}i(oo);const lo={};lo.setup=O(oo,"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",lo);const co=K("aui-header-end",{type:K.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?ao(e):console.log("Could not async. initialise aui-header")}});var uo=n(207),ho=n.n(uo);const po=({minDate:t,maxDate:e,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:e||n.attr("max"),minDate:t||n.attr("min"),nextText:">",onSelect:function(t){n.val(t),n.trigger("change"),r(),s&&s.call(this,t)},onChangeMonthYear:a,prevText:"<"}),fo=(t,e)=>{let n,s,r,a=!1;const o=i("body"),l=e=>{let n=i(e.target),r=n.closest(s).length||n.is(t),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===q.ESCAPE)return h(),void(a=!1);n.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:t})=>(n=(({horizontalAlignment:t,datePickerUUID:e})=>{const n=new _r;n.id=e;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${t}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(t),datePickerUUID:e}),r=t.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.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)}}},go=function(t){const e=t.getField(),n=t.getOptions(),s=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=fo(e,s),g=t=>{i(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.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=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}n.languageCode in mo.prototype.localisations||(n.languageCode="");const y=mo.prototype.localisations;if(e.attr("aria-controls",s),void 0===r){void 0!==e.attr("step")&&d("WARNING: The date picker polyfill currently does not support the step attribute!");const s=po({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:e,onSelect:n.onSelect,hide:t.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:t,popupContents:e,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(t),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),e.append(a)),r})({config:o,popupContents:a({$field:e}),getCalendarNode:h,hint:n.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",n.placeholder),e.prop("type","text"),e.val(e.attr("value")),e.trigger("propertychange"),e.attr("data-aui-dp-uuid",s)};function mo(t,e){let n={};const s=Ii("date-picker"),r=i(t),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!mo.prototype.browserSupportsDateField,e=!1!==n.overrideBrowserDefault;(t||e)&&go(a)},reconfigure:t=>{n=i.extend(void 0,mo.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function vo(t,e){const n=i.extend({nextText:">",prevText:"<"},e),s=i(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const t=i("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(n.hint),s.append(t)}return s.reconfigure=t=>{s.datepicker("destroy"),s.datepicker(t)},s.destroy=()=>{s.datepicker("destroy")},s}mo.prototype.browserSupportsDateField=function(){if(void 0===oe){var t=document.createElement("input");t.setAttribute("type","date"),oe="date"===t.type}return oe}(),mo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:ho().W3C},mo.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 bo="aui-datepicker",yo=t=>function(e){let i=this.data(bo);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(bo,i)),i};i.fn.datePicker=yo(mo),a("DatePicker",mo),i.fn.calendarWidget=yo(vo),a("CalendarWidget",vo);const wo=mo;n(251),n(993),n(927),n(757),n(940);const _o={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"},xo=us().View,ko=us().View,Co=us().View,Eo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};n(562);const To={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"},Do='<aui-spinner size="small"></aui-spinner>',So="aui-spinner";function Ao(t){0===t.find(So).length&&t.find(`.${_o.STATUS}`).append(Do)}function Io(t){t.find(`.${_o.STATUS} aui-spinner`).remove()}var Oo=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const No=us().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=i(this.el),this._event=To,this.classNames=_o,this.dataKeys=Eo,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?i("<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 Oo&&(e=this.$el.find(":submit")).length&&(t=i("<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 Oo&&(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 Ao(this.$el),this},hideLoading:function(){return Io(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,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,t):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(t,e,i){400===i.status&&(n.renderErrors(e.errors),n.trigger(n._event.VALIDATION_ERROR,e.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return i("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&i.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&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),i.each(this.columns,(function(n,s){var r,a,o=t.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+s.id,o),r=e.isCreateRow&&s.createView?new s.createView({model:e.model}).render(l[0]):s.editView?new s.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),s.styleClass&&a.addClass(s.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=i('<td class="aui-restfultable-operations" />');return t?e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Po=document||{},Mo=i(Po);function Lo(t,e){Mo.trigger(t,e)}function Ro(t,e,n){i(e).trigger(t,n),Lo(t,n),e.id&&Lo(e.id+"-"+t,n)}var $o=us().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)},us().sync.apply(us(),arguments)},save:function(t,e){var n,s=this,r=(e=e||{}).error,a=e.success;e.error=function(t,e){var n=i.parseJSON(e.responseText||e.data);r&&r.call(s,s,n,e)},this.isNew()?us().Model.prototype.save.call(this,t,e):t&&((n=new($o.extend({url:this.url()}))({id:this.id})).save=us().Model.prototype.save,e.success=function(t,e){s.clear().set(t.toJSON()),a&&a.call(s,s,e)},n.save(t,e))},destroy:function(t){t=t||{};var e=this,n=this.url();return i.ajax({url:n,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={},n=this.toJSON();if(i.each(t,(function(t,s){n[t]?n[t]&&n[t]!==s&&("object"==typeof s&&(0,Vt.isEqual)(s,n[t])||(e[t]=s)):"string"==typeof s?""!==i.trim(s)&&(e[t]=s):i.isArray(s)?0!==s.length&&(e[t]=s):e[t]=s})),!(0,Vt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var n;400!==t.status&&(n=i.parseJSON(t.responseText||t.data),Ro(To.SERVER_ERROR,this,[n,t,e]))},fetch:function(t){t=t||{},this.clear(),us().Model.prototype.fetch.call(this,t)}});const jo=$o,Fo=us().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=To,this.classNames=_o,this.dataKeys=Eo,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=i(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 i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Ao(this.$el),this},hideLoading:function(){return Io(this.$el),this},edit:function(t){var e;return e=i(t.target).is("."+this.classNames.EDITABLE)?i(t.target).attr("data-field-name"):i(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 i("<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(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),s=i(`<td class="${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&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=e[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(t.$el),r&&i.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(n).append(s).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}});var Ho=us().View.extend({initialize:function(t){var e=this;if(e.options=i.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=To,e.classNames=_o,e.dataKeys=Eo,this.$table=i(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<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 n=i.isFunction(t.header)?t.header():t.header;void 0===n&&(h("You have not specified [header] for column ["+t.id+"]. Using id for now..."),n=t.id),e.$theadRow.append("<th>"+n+"</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,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(e.classNames.MOVEABLE);return n.children().each((function(){var t=i(this),e=parseInt(0+t.css("border-left-width"),10),n=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+n;s.append(i("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(t,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(e.classNames.MOVEABLE).children().each((function(t){i(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'"> </td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),e.getRowFromElement(n.item[0]).trigger(e._event.MODAL)},stop:function(t,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(n.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!i(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=i('<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;i.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):i.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,n=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var s=e.options.reverseOrder?n(t.nextItem):n(t.prevItem);i.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){t.row.hideLoading()},success:function(t){Ro(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var n=i.parseJSON(t.responseText||t.data);Ro(e._event.SERVER_ERROR,e,[n,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(...e){return this.tableRows=t.getRows(),us().Collection.prototype.remove.apply(this,e),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]),Ro(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=i('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+Do+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(),Ro(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Ro(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 i(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<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 n=i(this).data(t.dataKeys.ROW_VIEW);n&&e.push(n)})),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){Ro(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 Fo&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=i.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(t=[]){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||jo,allowEdit:!0,views:{editRow:No,row:Fo},Collection:us().Collection.extend({url:t.resources.self,model:t.model||jo}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});Ho.ClassNames=_o,Ho.CustomCreateView=xo,Ho.CustomEditView=ko,Ho.CustomReadView=Co,Ho.DataKeys=Eo,Ho.EditRow=No,Ho.EntryModel=jo,Ho.Events=To,Ho.Row=Fo,a("RestfulTable",Ho);const Bo=Ho;function Wo(t){return i(t).clone().removeAttr("id")}a("clone",Wo);const Vo=Wo;var Uo=window.DocumentTouch;const zo="ontouchstart"in window||Uo&&document instanceof Uo;function qo(t,e,i,n){t.find(`[${n}]`).attr(n,((t,n)=>e===n?i:void 0))}function Yo(t,e){let n=i("<div></div>");n.append(t),n.find("[id]").each(((t,i)=>{const s=e(`${i.id}-`);!function(t,e,i){qo(t,e,i,"aria-controls"),qo(t,e,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Ko(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?Ko(Object(i),!0).forEach((function(e){Go(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ko(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Go(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Qo(t){return t.offset().top}function Xo(t){this.$el=i(t),this.$el.length&&(this.$body=i("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 il,function(t){if(!i(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const n=i(e.target);ol(t,n)}))})(t),zo&&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 ${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)")&&i("body").addClass("aui-page-sidebar-touch");var e=null,n=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};i(window).on("scroll resize",n),n(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(i.Event(Zo+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),i(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var s=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==q.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===q.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)}i(document).on("keypress",s),t._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(Jo(Jo({},cl),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=i(this),n=!1===t.isCollapsed();return!0===rl(e)||n}})),t.$el.tooltip(Jo(Jo({},cl),{},{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 n=e.target,s=sl(n);if(!s)return;var a=i(s);r(e)&&s.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(n.focus(),i(this).off("keydown"),al())})))}}))}(this),function(t){i(t.collapsedTriggersSelector).each((function(){var e=i(this);ol(t,e)}))}(this))}var Zo="_aui-internal-sidebar-";function tl(t){return i.map(t.split(" "),(function(t){return Zo+t})).join(" ")}function el(){return document.querySelectorAll(Xo.prototype.inlineDialogSelector)}function il(){this.inlineDialog=null}function nl(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function sl(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function rl(t){return 0!==nl(t).length}function al(){var t=el();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function ol(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),rl(e))){var n=document.createElement("aui-inline-dialog"),s=Ii("sidebar-submenu");return e.attr("aria-controls",s),e.attr("data-aui-trigger",""),K.init(e),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),t.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(Xo.prototype.inlineDialogClass),document.body.appendChild(n),K.init(n),function(t,e,n){n.addEventListener("aui-layer-show",(function(s){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(s)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");e.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=ll;var n=t.is("a")?t.text():t.children(".aui-nav-heading").text(),s=i(e).find(".aui-navgroup-inner");function r(t){const e=Vo(t);return Yo(e,Ii),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}s.children(".aui-nav-heading").attr("title",n).children("strong").text(n),r(nl(t)).appendTo(s)}(e,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,n),n}}Xo.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tl(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Xo.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tl(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Xo.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Xo.prototype.setTopPosition=function(t=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",t>Qo(this.$el)),this},Xo.prototype.setPosition=O(Xo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Xo.prototype.setLeftPosition=function(t=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Xo.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:i.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:i.noop,wide:i.noop},e.expanded.narrow={narrow:i.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:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[n][s][r](this),this},Xo.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=i.Event(Zo+"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),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(Zo+"collapse-end",{isResponsive:t}))),this},Xo.prototype.collapse=function(){return this._collapse(!1)},Xo.prototype._expand=function(t,e){var n=i.Event(Zo+"expand-start",{isResponsive:e});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(Zo+"expand-end",{isResponsive:e})),this},Xo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Xo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Xo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Xo.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Xo.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)},Xo.prototype.reflow=function(t=window.pageYOffset,e=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=Qo(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))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Xo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},Xo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Xo.prototype.collapsedTriggersSelector=[Xo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Xo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Xo.prototype.tooltipClassName="aui-sidebar-section-tooltip",Xo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Xo.prototype.inlineDialogSelector="."+Xo.prototype.inlineDialogClass,il.prototype.submenu=function(t){return dl(),nl(t)},il.prototype.hasSubmenu=function(t){return dl(),rl(t)},il.prototype.submenuHeadingHeight=function(){return dl(),34},il.prototype.isShowing=function(){return dl(),Xo.prototype.isSubmenuVisible()},il.prototype.show=function(t,e){dl(),function(t){sl(t).open=!0}(e)},il.prototype.hide=function(){dl(),al()},il.prototype.inlineDialogShowHandler=function(){dl()},il.prototype.inlineDialogHideHandler=function(){dl()},il.prototype.moveSubmenuToInlineDialog=function(){dl()},il.prototype.restoreSubmenu=function(){dl()},Xo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(el(),(function(t){return t.open}))},Xo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const ll='<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 cl={gravity:"w",title:function(){var t=i(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 ul=ht("sidebar",Xo);i((function(){ul(".aui-sidebar")}));var dl=A("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});a("sidebar",ul);const hl=ul;n(42),n(529);function pl(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===q.ESCAPE&&n.is(":visible")&&u.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=i.extend({},t,arguments[3])),t=i.extend({},e,t);var n=i("<div></div>").addClass("aui-popup");t.id&&n.attr("id",t.id);var s=2600;i(".aui-dialog").each((function(){var t=i(this);s=t.css("z-index")>s?t.css("z-index"):s}));var r=function e(i,r){return t.width=i=i||t.width,t.height=r=r||t.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),e}(t.width,t.height);i("body").append(n),n.hide(),c(n);var a=i(".aui-blanket"),o=function(t,e){var n=i(t,e);return!!n.length&&(n.focus(),!0)},l=function(e){if(0===i(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",e))||o(n,i(".dialog-button-panel",e))||o(n,i(".dialog-page-menu",e))}},u={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){i(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),W(),0!==(a=i(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&u.hide()})),n.show(),pl.current=this,l(n),i(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){i(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&V();var e=document.activeElement;this.element.has(e).length&&e.blur(),i(document).trigger("hideLayer",["popup",this]),pl.current=null,this.enable()},element:n,remove:function(){n.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=i("<div class='dialog-blanket'> </div>").css({height:n.height(),width:n.width()}),n.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return u}var fl=function(){function t(t,e,n,s){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<button></button>").html(e).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&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,n,s,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function n(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 s(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=n("left","button"),t.prototype.moveDown=t.prototype.moveRight=n("right","button"),t.prototype.remove=s("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 r=function(t,e,n,s,r){n instanceof i||(n=i(n)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=i("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);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()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.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=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<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,n){var s={};+t||(t=(s=Object(t)).width,e=s.height,n=s.id),this.height=e||480,this.width=t||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=pl(s),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=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=i("<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=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).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()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();fl=N(fl,"Dialog constructor",{alternativeName:"Dialog2"}),pl=N(pl,"Dialog popup constructor",{alternatveName:"Dialog2"}),a("Dialog",fl),a("popup",pl);const gl=!1;var ml=-1!==navigator.platform.indexOf("Mac"),vl=-1!==navigator.userAgent.indexOf("Safari"),bl=/^(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 yl=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 wl(t){var e=[],n=i.Callbacks();function s(t){!pl.current&&n&&n.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?i.trim(t).split(" "):[t]).forEach((function(t){!function(t){var n=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(bl);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}(n)?"keydown":"keypress";e.push(n),i(document).on(a,gl,n,s),i(document).on(a+" keyup",gl,n,r)}(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),wl.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(t){for(var n=i(t),s=n.attr("title")||"",r=e.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=!l,u=c?s:s.substring(0,s.length-l.length);r.length;){var d=r.shift();a.some((function(t){return(0,Vt.isEqual)(d,t)}))||(l=o(d.slice(),l,c),c=!1)}ml&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",u+l),n.data("kbShortcutAppended",l),n.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=i(t),n=e.data("kbShortcutAppended");if(n){var s=e.attr("title");e.attr("title",s.replace(n,"")),e.removeData("kbShortcutAppended"),e.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}wl.makeShortcut=function(t){var e=t.executor,n=t.bindKeys,s=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return e.add((function(){const e=i(n);let s=e.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(t){t.keyCode===q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=t(s,e,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,n){var s;return n&&0===t.length?e.eq(0):(s=i.inArray(t.get(0),e))<e.length-1?(s+=1,e.eq(s)):n?e.eq(0):t})),moveToPrevItem:c((function(t,e,n){var s;return n&&0===t.length?e.filter(":last"):(s=i.inArray(t.get(0),e))>0?(s-=1,e.eq(s)):n?e.filter(":last"):t})),click:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);yl(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),s(t),e.add((function(){var e=i(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),s(t),e.add((function(){const e=i(t);e.length>0&&(yl(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),s(t),e.add((function(e){var n=i(t);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&e.preventDefault())})),this},or:function(t){return n(t),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},wl.fromJSON=function(t,e){var n=[];return t&&i.each(t,(function(t,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)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)}i.isArray(o)||p("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,(function(){var t=this;e&&ml&&(t=i.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var s=wl(t);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(t,e){i(e).load((function(){i(e).contents().on("keyup keydown keypress",(function(t){vl&&"keypress"===t.type||i(t.target).is(":input")||i.event.trigger(t,arguments,document,!0)}))}))})),a("whenIType",wl);const _l=wl,{FocusManager:xl,InlineDialog2:kl,LayerManager:Cl,ProgressiveDataSet:El,clone:Tl,debounce:Dl,debounceImmediate:Sl,dim:Al,escapeHtml:Il,formValidation:Ol,id:Nl,isClipped:Pl,keyCode:Ml,layer:Ll,messages:Rl,populateParameters:$l,params:jl,responsiveheader:Fl,select:Hl,tablessortable:Bl,tabs:Wl,undim:Vl,_addID:Ul}=window.AJS,{contextPath:zl}=window.AJS})(),s})()}));
|
|
101
|
+
!function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function s(t){for(var e in t)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=e.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,s,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(t,c=n[s].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var s,r,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=e.getData(c,u,"string")||g.stringTo||"max",d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&e.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&e.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(s).find(f.selectorHeaders).each((function(i){a=t(this),r=e.getColumnData(s,f.headers,i,!0),f.headerContent[i]=t(this).html(),c=f.headerTemplate.replace(/\{content\}/g,t(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,s,r,a=i.config;a.$headers.each((function(o,l){s=t(l),r=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,r,"sorter")||"false"===e.getData(l,r,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))}))}function f(i){var n,s,r,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout((function(){m(i,n,s)}),50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,r,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort((function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,t)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,t,m)),d)return d}return n[m.columns].order-s[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){e[0].isUpdating&&e.trigger("updateComplete"),t.isFunction(i)&&i(e[0])}function y(t,i,n){var s=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&s.length?t.trigger("sorton",[s,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,s){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(s)&&s(i)})).bind("updateAll"+n.namespace,(function(t,s,r){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,s,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(s),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?r(i,s,h):n.extractors[h].format(r(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(e,i){var n,s,r,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===e?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=t.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}}))}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,s){e.stopPropagation(),c(i,s),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,s){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(s)&&s(i)})).bind("applyWidgetId"+n.namespace,(function(t,s){t.stopPropagation(),e.getWidgetById(s).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,s){t.stopPropagation(),e.refreshWidgets(i,n,s)})).bind("destroy"+n.namespace,(function(t,n,s){t.stopPropagation(),e.destroy(i,n,s)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.7",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,s=t.extend(!0,{},e.defaults,i);s.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,s):e.setup(n,s)}))},e.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var r,a="",c=t(n),u=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,t.data(n,"tablesorter",s),s.debug&&t.data(n,"startoveralltimer",new Date),s.supportsDataObject=((r=t.fn.jquery.split("."))[0]=parseInt(r[0],10),r[0]>1||1===r[0]&&parseInt(r[1],10)>=4),s.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=c.addClass(e.css.table+" "+s.tableClass+a).attr("role","grid"),s.$headers=c.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=c.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(e){if(e.config.widthFixed&&0===t(e).find("colgroup").length){var i=t("<colgroup>"),n=t(e).width();t(e.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),t(e).prepend(i)}}(n),o(n),s.totalRows=0,s.delayInit||l(n),e.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==c.data().sortlist?s.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(s.sortList=c.metadata().sortlist),e.applyWidget(n,!0),s.sortList.length>0?c.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&e.applyWidget(n,!1)),s.showProcessing&&c.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,(function(t){clearTimeout(s.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(s.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},e.getColumnData=function(e,i,n,s){if(null!=i){var r,a=(e=t(e)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},e.computeColumnIndex=function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},e.isProcessing=function(i,n,s){var r=(i=t(i))[0].config,a=s||i.find("."+e.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),r.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+r.cssProcessing)},e.processTbody=function(e,i,n){var s;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=t.fn.detach?i.detach():i.remove();s=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var r,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,s){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var r=t(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),r.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,s,r,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((s=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,s=t?t.length:0,r=i+e;for(n=0;n<s;n++)r+=t.charCodeAt(n);return e*r}return 0},e.sortNumericAsc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),t-i)},e.sortNumericDesc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",s=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],e.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in s)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,s=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,s=e.widgets.length;for(i=0;i<s;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,s){var r,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},e.refreshWidgets=function(n,s,r){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&e.applyWidget(n,s)},e.getData=function(e,i,n){var s,r,a="",o=t(e);return o.length?(s=!!t.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=t.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,s=t?t.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return t?e.formatFloat(r,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,s){if(t){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return t(n).metadata()[r]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(r=h.eq(u)).children("tr").length>1&&(o=0,r.children("tr:visible").not(n.selectorRemove).each((function(){a=t(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(s.zebra[l?1:0]).addClass(s.zebra[l?0:1])})));n.debug&&e.benchmark("Applying Zebra widget",c)},remove:function(e,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=t.tablesorter.processTbody(e,a.eq(s),!0)).children().removeClass(o),t.tablesorter.processTbody(e,r,!1)}})}(jQuery)},37:()=>{var t;void 0===(t=jQuery).fn.each2&&t.extend(t.fn,{each2:function(e){for(var i=t([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==e.call(i[0],n,i););return this}}),function(t,e){"use strict";if(window.Select2===e){var i,n,s,r,a,o,l,c,u={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},h={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z"};o=t(document),c=1,r=function(){return c++},o.on("mousemove",(function(t){u.x=t.pageX,u.y=t.pageY})),i=I(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var n,s,a,o,c,d=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(a=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=a(),c=!0),o}),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(S(i.containerCss)),this.container.addClass(S(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(d),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(i){var n=u;n!==e&&n.x===i.pageX&&n.y===i.pageY||t(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",d,this.bind(this.highlightUnderEvent)),function(t,e){var i=y(t,(function(t){e.trigger("scroll-debounced",t)}));e.on("scroll",(function(t){f(t.target,e.get())>=0&&i(t)}))}(80,this.results),this.dropdown.on("scroll-debounced",d,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",(function(t){t.stopPropagation()})),t(this.dropdown).on("change",".select2-input",(function(t){t.stopPropagation()})),t.fn.mousewheel&&n.mousewheel((function(t,e,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),w(t)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(t))})),b(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",(function(){s.addClass("select2-focused")})),s.on("blur",(function(){s.removeClass("select2-focused")})),this.dropdown.on("mouseup",d,this.bind((function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))}))),this.dropdown.on("click mouseup mousedown",(function(t){t.stopPropagation()})),t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var h=i.element.prop("disabled");h===e&&(h=!1),this.enable(!h);var p=i.element.prop("readonly");p===e&&(p=!1),this.readonly(p),l=l||function(){var e=t("<div class='select2-measure-scrollbar'></div>");e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=e},destroy:function(){var t=this.opts.element,i=t.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==e&&(i.container.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show())},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:g(t.attr("locked"),"locked")||g(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var n,s,r,a,o=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=t.extend({},{populateResults:function(n,s,r){var a,l=this.opts.id;(a=function(n,s,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,s,r)).length;u<d;u+=1)p=!(f=!0===(h=n[u]).disabled)&&l(h)!==e,g=h.children&&h.children.length>0,(m=t("<li></li>")).addClass("select2-results-dept-"+c),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(o.opts.formatResultCssClass(h)),(v=t(document.createElement("div"))).addClass("select2-result-label"),(y=i.formatResult(h,v,r,o.opts.escapeMarkup))!==e&&v.html(y),m.append(v),g&&((b=t("<ul></ul>")).addClass("select2-result-sub"),a(h.children,b,c+1),m.append(b)),m.data("select2-data",h),s.append(m)})(s,n,0)}},t.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(t){return t[r]}),t.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(s?(i.query=this.bind((function(t){var i,s,r,a={results:[],more:!1},l=t.term;r=function(e,i){var n;e.is("option")?t.matcher(l,e.text(),e)&&i.push(o.optionToData(e)):e.is("optgroup")&&(n=o.optionToData(e),e.children().each2((function(t,e){r(e,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==e&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2((function(t,e){r(e,a.results)})),t.callback(a)})),i.id=function(t){return t.id},i.formatResultCssClass=function(t){return t.css}):"query"in i||("ajax"in i?((a=i.element.data("ajax-url"))&&a.length>0&&(i.ajax.url=a),i.query=C.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=T(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,n){var s=[];t(m(e.val(),i.separator)).each((function(){var e={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each((function(){if(g(this.id,e.id))return e=this,!1})),s.push(e)})),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var t,i,n=this.opts.element;n.on("change.select2",this.bind((function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),t=this.bind((function(){var t=n.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=n.prop("readonly");i===e&&(i=!1),this.readonly(i),_(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(S(this.opts.containerCssClass)),_(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(this.opts.dropdownCssClass))})),n.on("propertychange.select2",t),this.mutationCallback===e&&(this.mutationCallback=function(e){e.forEach(t)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){return t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,n,s,r,a=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),h=t(window),p=h.width(),f=h.height(),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,b=o.left,y=v+d<=m,w=o.top-d>=this.body().scrollTop(),_=a.outerWidth(!1),x=b+_<=g;a.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(a.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,x=(b=o.left)+(_=a.outerWidth(!1))<=g,a.show()),this.opts.dropdownAutoWidth?(r=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(_=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>u?u=_:_=u,x=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(e=this.body().offset()).top,b-=e.left),x||(b=o.left+u-_),s={left:b,width:u},i?(s.bottom=f-o.top,s.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(s.top=v,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=t.extend(s,S(this.opts.dropdownCss)),a.css(s)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var e,i=this.containerId,n="scroll."+i,s="resize."+i,r="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",(function(e){var i,n=t("#select2-drop");n.length>0&&((i=n.data("select2")).opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),e.preventDefault(),e.stopPropagation())}))),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){t(this).on(s+" "+n+" "+r,(function(t){a.positionDropdown()}))}))},close:function(){if(this.opened()){var e=this.containerId,i="scroll."+e,n="resize."+e,s="orientationchange."+e;this.container.parents().add(window).each((function(){t(this).off(i).off(n).off(s)})),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return S(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,i,n,s,r,a,o,l=this.results;(i=this.highlight())<0||(0!=i?(e=this.findHighlightableChoices().find(".select2-result-label"),s=(n=t(e[i])).offset().top+n.outerHeight(!0),i===e.length-1&&(o=l.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(s-r)),(a=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+a)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=t(i[n+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return f(s.filter(".select2-highlighted")[0],s.get());e>=s.length&&(e=s.length-1),e<0&&(e=0),this.removeHighlight(),(i=t(s[e])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,e=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,t,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):e.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=t.data(this.container,"select2-last-term");if((!0===i||!d||!g(u,d))&&(t.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),t.isArray(n)&&n.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=e&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var s;r==this.queryCount&&(this.opened()?(this.context=n.context===e?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==e&&null!==s&&c.id(s)!==e&&null!==c.id(s)&&0===t(n.results).filter((function(){return g(c.id(this),c.id(s))})).length&&n.results.unshift(s),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(a.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+c.opts.escapeMarkup(l.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+l.formatSelectionTooBig(h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown()}function f(t){o.html(t),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var t;(t=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var e,i=t[0],n=t.val().length;t.focus(),t.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))}),0)},selectHighlighted:function(t){var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.text()&&""===t.val())return t}},initContainerWidth:function(){var i=function(){var i,n,s,r,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==e)for(r=0,a=(n=i.split(";")).length;r<a;r+=1)if(null!==(s=n[r].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),n=I(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(i=this.search.get(0)).createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s)),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(t){this.opened()&&(this.parent.close.apply(this,arguments),t=t||{focus:!0},this.focusser.removeAttr("disabled"),t.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=this.container,n=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=i.find(".select2-choice"),this.focusser=i.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+r()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled())if(t.which!==d.PAGE_UP&&t.which!==d.PAGE_DOWN)switch(t.which){case d.UP:case d.DOWN:return this.moveHighlight(t.which===d.UP?-1:1),void w(t);case d.ENTER:return this.selectHighlighted(),void w(t);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(t),void w(t)}else w(t)}))),this.search.on("blur",this.bind((function(t){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind((function(){this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&t.which!==d.TAB&&!d.isControl(t)&&!d.isFunctionKey(t)&&t.which!==d.ESC){if(!1!==this.opts.openOnEnter||t.which!==d.ENTER){if(t.which==d.DOWN||t.which==d.UP||t.which==d.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void w(t)}return t.which==d.DELETE||t.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(t)):void 0}w(t)}}))),b(this.focusser),this.focusser.on("keyup-change input",this.bind((function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}}))),e.on("mousedown","abbr",this.bind((function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())}))),e.on("mousedown",this.bind((function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(e)}))),n.on("mousedown",this.bind((function(){this.search.focus()}))),e.on("focus",this.bind((function(t){w(t)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(t.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var n=t.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder())}))}},isPlaceholderOptionSelected:function(){var t;return!!this.getPlaceholder()&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=t.find("option").filter((function(){return this.selected}));e(i.optionToData(n))}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=i.val(),r=null;e.query({matcher:function(t,i,n){var a=g(s,e.id(n));return a&&(r=n),a},callback:t.isFunction(n)?function(){n(r)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var n=0,s=this;if(this.findHighlightableChoices().each2((function(t,e){if(g(s.id(e.data("select2-data")),s.opts.element.val()))return n=t,!1})),!1!==i&&(!0===e&&n>=0?this.highlight(n):this.highlight(0)),!0===e){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(A(t.results)>=r)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||this.focusser.focus(),g(i,this.id(t))||this.triggerChange({added:t,removed:n})}},updateSelection:function(t){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),s.empty(),null!==t&&(i=this.opts.formatSelection(t,s,this.opts.escapeMarkup)),i!==e&&s.append(i),(n=this.opts.formatSelectionCssClass(t,s))!==e&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,n=null,s=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter((function(){return this.selected})).each2((function(t,e){return n=s.optionToData(e),!1})),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,(function(t){s.opts.element.val(t?s.id(t):""),s.updateSelection(t),s.setPlaceholder(),i&&s.triggerChange({added:t,removed:r})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==e&&(i=null),i;arguments.length>1&&(n=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:i})):this.clear(n)}}),s=I(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find("option").filter((function(){return this.selected})).each2((function(t,e){n.push(i.optionToData(e))})),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=m(i.val(),e.separator),r=[];e.query({matcher:function(i,n,a){var o=t.grep(s,(function(t){return g(t,e.id(a))})).length;return o&&r.push(a),o},callback:t.isFunction(n)?function(){for(var t=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(g(a,e.id(l))){t.push(l),r.splice(o,1);break}}n(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(e){n.search[0].focus(),n.selectChoice(t(this))})),this.search.attr("id","s2id_autogen"+r()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=e.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var i=0,n=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,n=e.selectionEnd-i;else if("selection"in document){e.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-e.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:r):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),w(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void w(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void w(i);case d.ENTER:return this.selectHighlighted(),void w(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void w(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||w(i),i.which===d.ENTER&&w(i)}}}))),this.search.on("keyup",this.bind((function(t){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())}))}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i=[],n=[],s=this;t(e).each((function(){f(s.id(this),i)<0&&(i.push(s.id(this)),n.push(this))})),e=n,this.selection.find(".select2-search-choice").remove(),t(e).each((function(){s.addSelectedChoice(this)})),s.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,s,r=!i.locked,a=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i),u=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith("<div>"+n+"</div>"),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind((function(){this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()}))).dequeue(),w(e))}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),u.push(c),this.setVal(u)},unselect:function(e){var i,n,s=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){for(;(n=f(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();var r=t.Event("select2-removing");r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented()||(e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(t,e,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2((function(t,e){f(a.id(e.data("select2-data")),n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))})),r.each2((function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+a.opts.formatNoMatches(a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var e,i,n,s,r=v(this.search);e=function(e){if(!a){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(a=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),t("body").append(a)}return a.text(e.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<e&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=e),this.search.width(Math.floor(s))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:m(t=this.opts.element.val(),this.opts.separator)},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each((function(){f(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var i=0;i<e.length;i++)for(var n=0;n<t.length;n++)g(this.opts.id(e[i]),this.opts.id(t[n]))&&(e.splice(i,1),i>0&&i--,t.splice(n,1),n--);return{added:e,removed:t}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(e){var i=t.map(e,r.id);r.setVal(i),r.updateSelection(e),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){e.push(i.opts.id(t(this).data("select2-data")))})),this.setVal(e),this.triggerChange()},data:function(e,i){var n,s,r=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map((function(){return t(this).data("select2-data")})).get();s=this.data(),e||(e=[]),n=t.map(e,(function(t){return r.opts.id(t)})),this.setVal(n),this.updateSelection(e),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),t.fn.select2=function(){var i,r,a,o,l,c=Array.prototype.slice.call(arguments,0),u=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],d=["opened","isFocused","container","dropdown"],h=["val","data"],p={search:"externalSearch"};return this.each((function(){if(0===c.length||"object"==typeof c[0])(i=0===c.length?{}:t.extend({},c[0])).element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?l=i.element.prop("multiple"):(l=i.multiple||!1,"tags"in i&&(i.multiple=l=!0)),(r=l?new s:new n).init(i);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(f(c[0],u)<0)throw"Unknown method: "+c[0];if(o=e,(r=t(this).data("select2"))===e)return;if("container"===(a=c[0])?o=r.container:"dropdown"===a?o=r.dropdown:(p[a]&&(a=p[a]),o=r[a].apply(r,c.slice(1))),f(c[0],d)>=0||f(c[0],h)&&1==c.length)return!1}})),o===e?this:o},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,n){var s=[];return x(t.text,i.term,s,n),s.join("")},formatSelection:function(t,i,n){return t?n(t.text):e},sortResults:function(t,e,i){return t},formatResultCssClass:function(t){return e},formatSelectionCssClass:function(t,i){return e},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t.id},matcher:function(t,e){return p(""+e).toUpperCase().indexOf(p(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(t,i,n,s){var r,a,o,l,c,u=t,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return e;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=t.indexOf(c))>=0));o++);if(a<0)break;if(r=t.substring(0,a),t=t.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==e&&null!==r&&s.id(r)!==e&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(g(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==t?t:void 0},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,i){return e}},t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:C,local:E,tags:T},util:{debounce:y,markMatch:x,escapeMarkup:k,stripDiacritics:p},class:{abstract:i,single:n,multi:s}}}function p(t){var e,i,n,s;if(!t||t.length<1)return t;for(e="",i=0,n=t.length;i<n;i++)s=t.charAt(i),e+=h[s]||s;return e}function f(t,e){for(var i=0,n=e.length;i<n;i+=1)if(g(t,e[i]))return i;return-1}function g(t,i){return t===i||t!==e&&i!==e&&(null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+""))}function m(e,i){var n,s,r;if(null===e||e.length<1)return[];for(s=0,r=(n=e.split(i)).length;s<r;s+=1)n[s]=t.trim(n[s]);return n}function v(t){return t.outerWidth(!1)-t.width()}function b(i){var n="keyup-change-value";i.on("keydown",(function(){t.data(i,n)===e&&t.data(i,n,i.val())})),i.on("keyup",(function(){var s=t.data(i,n);s!==e&&i.val()!==s&&(t.removeData(i,n),i.trigger("keyup-change"))}))}function y(t,i,n){var s;return n=n||e,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout((function(){i.apply(n,e)}),t)}}function w(t){t.preventDefault(),t.stopPropagation()}function _(e,i,n){var s,r,a=[];(s=e.attr("class"))&&t((s=""+s).split(" ")).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(s=i.attr("class"))&&t((s=""+s).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)})),e.attr("class",a.join(" "))}function x(t,e,i,n){var s=p(t.toUpperCase()).indexOf(p(e.toUpperCase())),r=e.length;s<0?i.push(n(t)):(i.push(n(t.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(t.substring(s,s+r))),i.push("</span>"),i.push(n(t.substring(s+r,t.length))))}function k(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))}function C(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,r=a,c=i.transport||t.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},d=t.extend({},t.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&s.abort(),i.params&&(t.isFunction(i.params)?t.extend(d,i.params.call(o)):t.extend(d,i.params)),t.extend(d,{url:r,dataType:i.dataType,data:n,success:function(t){var e=i.results(t,l.page);l.callback(e)}}),s=c.call(o,d)}),r)}}function E(e){var i,n,s=e,r=function(t){return""+t.text};t.isArray(s)&&(s={results:n=s}),!1===t.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,t.isFunction(r)||(i=a.text,r=function(t){return t[i]})),function(e){var i,n=e.term,a={results:[]};""!==n?(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],t(s.children).each2((function(t,e){i(e,o.children)})),(o.children.length||e.matcher(n,r(o),s))&&a.push(o)}else e.matcher(n,r(s),s)&&a.push(s)},t(s().results).each2((function(t,e){i(e,a.results)})),e.callback(a)):e.callback(s())}}function T(i){var n=t.isFunction(i);return function(s){var r=s.term,a={results:[]};t(n?i():i).each((function(){var t=this.text!==e,i=t?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(t?this:{id:this,text:this})})),s.callback(a)}}function D(e,i){if(t.isFunction(e))return!0;if(!e)return!1;throw new Error(i+" must be a function or a falsy value")}function S(e){return t.isFunction(e)?e():e}function A(e){var i=0;return t.each(e,(function(t,e){e.children?i+=A(e.children):i++})),i}function I(e,i){var n=function(){};return(n.prototype=new e).constructor=n,n.prototype.parent=e.prototype,n.prototype=t.extend(n.prototype,i),n}}(jQuery)},562:()=>{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}},472:e=>{"use strict";e.exports=t},691:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});var n="1.13.1",s="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g||Function("return this")()||{},r=Array.prototype,a=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,f=Array.isArray,g=Object.keys,m=Object.create,v=h&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function k(t,e){return e=null==e?t.length-1:+e,function(){for(var i=Math.max(arguments.length-e,0),n=Array(i),s=0;s<i;s++)n[s]=arguments[s+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var r=Array(e+1);for(s=0;s<e;s++)r[s]=arguments[s];return r[e]=n,t.apply(this,r)}}function C(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function E(t){return null===t}function T(t){return void 0===t}function D(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)}function S(t){return!(!t||1!==t.nodeType)}function A(t){var e="[object "+t+"]";return function(t){return u.call(t)===e}}var I=A("String"),O=A("Number"),N=A("Date"),P=A("RegExp"),M=A("Error"),L=A("Symbol"),R=A("ArrayBuffer"),$=A("Function"),j=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&($=function(t){return"function"==typeof t||!1});var F=$,H=A("Object"),B=p&&H(new DataView(new ArrayBuffer(8))),W="undefined"!=typeof Map&&H(new Map),V=A("DataView");var U=B?function(t){return null!=t&&F(t.getInt8)&&R(t.buffer)}:V,z=f||A("Array");function q(t,e){return null!=t&&d.call(t,e)}var Y=A("Arguments");!function(){Y(arguments)||(Y=function(t){return q(t,"callee")})}();var K=Y;function J(t){return!L(t)&&y(t)&&!isNaN(parseFloat(t))}function G(t){return O(t)&&b(t)}function Q(t){return function(){return t}}function X(t){return function(e){var i=t(e);return"number"==typeof i&&i>=0&&i<=x}}function Z(t){return function(e){return null==e?void 0:e[t]}}var tt=Z("byteLength"),et=X(tt),it=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var nt=h?function(t){return v?v(t)&&!U(t):et(t)&&it.test(u.call(t))}:Q(!1),st=Z("length");function rt(t,e){e=function(t){for(var e={},i=t.length,n=0;n<i;++n)e[t[n]]=!0;return{contains:function(t){return e[t]},push:function(i){return e[i]=!0,t.push(i)}}}(e);var i=_.length,n=t.constructor,s=F(n)&&n.prototype||a,r="constructor";for(q(t,r)&&!e.contains(r)&&e.push(r);i--;)(r=_[i])in t&&t[r]!==s[r]&&!e.contains(r)&&e.push(r)}function at(t){if(!C(t))return[];if(g)return g(t);var e=[];for(var i in t)q(t,i)&&e.push(i);return w&&rt(t,e),e}function ot(t){if(null==t)return!0;var e=st(t);return"number"==typeof e&&(z(t)||I(t)||K(t))?0===e:0===st(at(t))}function lt(t,e){var i=at(e),n=i.length;if(null==t)return!n;for(var s=Object(t),r=0;r<n;r++){var a=i[r];if(e[a]!==s[a]||!(a in s))return!1}return!0}function ct(t){return t instanceof ct?t:this instanceof ct?void(this._wrapped=t):new ct(t)}function ut(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,tt(t))}ct.VERSION=n,ct.prototype.value=function(){return this._wrapped},ct.prototype.valueOf=ct.prototype.toJSON=ct.prototype.value,ct.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function ht(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var s=typeof t;return("function"===s||"object"===s||"object"==typeof e)&&pt(t,e,i,n)}function pt(t,e,i,n){t instanceof ct&&(t=t._wrapped),e instanceof ct&&(e=e._wrapped);var s=u.call(t);if(s!==u.call(e))return!1;if(B&&"[object Object]"==s&&U(t)){if(!U(e))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(e);case"[object ArrayBuffer]":case dt:return pt(ut(t),ut(e),i,n)}var r="[object Array]"===s;if(!r&&nt(t)){if(tt(t)!==tt(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,l=e.constructor;if(a!==l&&!(F(a)&&a instanceof a&&F(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var c=(i=i||[]).length;c--;)if(i[c]===t)return n[c]===e;if(i.push(t),n.push(e),r){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ht(t[c],e[c],i,n))return!1}else{var d,h=at(t);if(c=h.length,at(e).length!==c)return!1;for(;c--;)if(!q(e,d=h[c])||!ht(t[d],e[d],i,n))return!1}return i.pop(),n.pop(),!0}function ft(t,e){return ht(t,e)}function gt(t){if(!C(t))return[];var e=[];for(var i in t)e.push(i);return w&&rt(t,e),e}function mt(t){var e=st(t);return function(i){if(null==i)return!1;var n=gt(i);if(st(n))return!1;for(var s=0;s<e;s++)if(!F(i[t[s]]))return!1;return t!==_t||!F(i[vt])}}var vt="forEach",bt=["clear","delete"],yt=["get","has","set"],wt=bt.concat(vt,yt),_t=bt.concat(yt),xt=["add"].concat(bt,vt,"has"),kt=W?mt(wt):A("Map"),Ct=W?mt(_t):A("WeakMap"),Et=W?mt(xt):A("Set"),Tt=A("WeakSet");function Dt(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=t[e[s]];return n}function St(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=[e[s],t[e[s]]];return n}function At(t){for(var e={},i=at(t),n=0,s=i.length;n<s;n++)e[t[i[n]]]=i[n];return e}function It(t){var e=[];for(var i in t)F(t[i])&&e.push(i);return e.sort()}function Ot(t,e){return function(i){var n=arguments.length;if(e&&(i=Object(i)),n<2||null==i)return i;for(var s=1;s<n;s++)for(var r=arguments[s],a=t(r),o=a.length,l=0;l<o;l++){var c=a[l];e&&void 0!==i[c]||(i[c]=r[c])}return i}}var Nt=Ot(gt),Pt=Ot(at),Mt=Ot(gt,!0);function Lt(t){if(!C(t))return{};if(m)return m(t);var e=function(){};e.prototype=t;var i=new e;return e.prototype=null,i}function Rt(t,e){var i=Lt(t);return e&&Pt(i,e),i}function $t(t){return C(t)?z(t)?t.slice():Nt({},t):t}function jt(t,e){return e(t),t}function Ft(t){return z(t)?t:[t]}function Ht(t){return ct.toPath(t)}function Bt(t,e){for(var i=e.length,n=0;n<i;n++){if(null==t)return;t=t[e[n]]}return i?t:void 0}function Wt(t,e,i){var n=Bt(t,Ht(e));return T(n)?i:n}function Vt(t,e){for(var i=(e=Ht(e)).length,n=0;n<i;n++){var s=e[n];if(!q(t,s))return!1;t=t[s]}return!!i}function Ut(t){return t}function zt(t){return t=Pt({},t),function(e){return lt(e,t)}}function qt(t){return t=Ht(t),function(e){return Bt(e,t)}}function Yt(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,s){return t.call(e,i,n,s)};case 4:return function(i,n,s,r){return t.call(e,i,n,s,r)}}return function(){return t.apply(e,arguments)}}function Kt(t,e,i){return null==t?Ut:F(t)?Yt(t,e,i):C(t)&&!z(t)?zt(t):qt(t)}function Jt(t,e){return Kt(t,e,1/0)}function Gt(t,e,i){return ct.iteratee!==Jt?ct.iteratee(t,e):Kt(t,e,i)}function Qt(t,e,i){e=Gt(e,i);for(var n=at(t),s=n.length,r={},a=0;a<s;a++){var o=n[a];r[o]=e(t[o],o,t)}return r}function Xt(){}function Zt(t){return null==t?Xt:function(e){return Wt(t,e)}}function te(t,e,i){var n=Array(Math.max(0,t));e=Yt(e,i,1);for(var s=0;s<t;s++)n[s]=e(s);return n}function ee(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ct.toPath=Ft,ct.iteratee=Jt;var ie=Date.now||function(){return(new Date).getTime()};function ne(t){var e=function(e){return t[e]},i="(?:"+at(t).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(s,e):t}}var se={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},re=ne(se),ae=ne(At(se)),oe=ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},le=/(.)^/,ce={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ue=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+ce[t]}var he=/^\s*(\w|\$)+\s*$/;function pe(t,e,i){!e&&i&&(e=i),e=Mt({},e,ct.templateSettings);var n=RegExp([(e.escape||le).source,(e.interpolate||le).source,(e.evaluate||le).source].join("|")+"|$","g"),s=0,r="__p+='";t.replace(n,(function(e,i,n,a,o){return r+=t.slice(s,o).replace(ue,de),s=o+e.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?r+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),e})),r+="';\n";var a,o=e.variable;if(o){if(!he.test(o))throw new Error("variable is not a bare identifier: "+o)}else r="with(obj||{}){\n"+r+"}\n",o="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=new Function(o,"_",r)}catch(t){throw t.source=r,t}var l=function(t){return a.call(this,t,ct)};return l.source="function("+o+"){\n"+r+"}",l}function fe(t,e,i){var n=(e=Ht(e)).length;if(!n)return F(i)?i.call(t):i;for(var s=0;s<n;s++){var r=null==t?void 0:t[e[s]];void 0===r&&(r=i,s=n),t=F(r)?r.call(t):r}return t}var ge=0;function me(t){var e=++ge+"";return t?t+e:e}function ve(t){var e=ct(t);return e._chain=!0,e}function be(t,e,i,n,s){if(!(n instanceof e))return t.apply(i,s);var r=Lt(t.prototype),a=t.apply(r,s);return C(a)?a:r}var ye=k((function(t,e){var i=ye.placeholder,n=function(){for(var s=0,r=e.length,a=Array(r),o=0;o<r;o++)a[o]=e[o]===i?arguments[s++]:e[o];for(;s<arguments.length;)a.push(arguments[s++]);return be(t,n,this,this,a)};return n}));ye.placeholder=ct;var we=k((function(t,e,i){if(!F(t))throw new TypeError("Bind must be called on a function");var n=k((function(s){return be(t,n,e,this,i.concat(s))}));return n})),_e=X(st);function xe(t,e,i,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var s=n.length,r=0,a=st(t);r<a;r++){var o=t[r];if(_e(o)&&(z(o)||K(o)))if(e>1)xe(o,e-1,i,n),s=n.length;else for(var l=0,c=o.length;l<c;)n[s++]=o[l++];else i||(n[s++]=o)}return n}var ke=k((function(t,e){var i=(e=xe(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=e[i];t[n]=we(t[n],t)}return t}));function Ce(t,e){var i=function(n){var s=i.cache,r=""+(e?e.apply(this,arguments):n);return q(s,r)||(s[r]=t.apply(this,arguments)),s[r]};return i.cache={},i}var Ee=k((function(t,e,i){return setTimeout((function(){return t.apply(null,i)}),e)})),Te=ye(Ee,ct,1);function De(t,e,i){var n,s,r,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:ie(),n=null,a=t.apply(s,r),n||(s=r=null)},c=function(){var c=ie();o||!1!==i.leading||(o=c);var u=e-(c-o);return s=this,r=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),o=c,a=t.apply(s,r),n||(s=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=s=r=null},c}function Se(t,e,i){var n,s,r,a,o,l=function(){var c=ie()-s;e>c?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(o,r)),n||(r=o=null))},c=k((function(c){return o=this,r=c,s=ie(),n||(n=setTimeout(l,e),i&&(a=t.apply(o,r))),a}));return c.cancel=function(){clearTimeout(n),n=r=o=null},c}function Ae(t,e){return ye(e,t)}function Ie(t){return function(){return!t.apply(this,arguments)}}function Oe(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Pe(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}}var Me=ye(Pe,2);function Le(t,e,i){e=Gt(e,i);for(var n,s=at(t),r=0,a=s.length;r<a;r++)if(e(t[n=s[r]],n,t))return n}function Re(t){return function(e,i,n){i=Gt(i,n);for(var s=st(e),r=t>0?0:s-1;r>=0&&r<s;r+=t)if(i(e[r],r,e))return r;return-1}}var $e=Re(1),je=Re(-1);function Fe(t,e,i,n){for(var s=(i=Gt(i,n,1))(e),r=0,a=st(t);r<a;){var o=Math.floor((r+a)/2);i(t[o])<s?r=o+1:a=o}return r}function He(t,e,i){return function(n,s,r){var a=0,o=st(n);if("number"==typeof r)t>0?a=r>=0?r:Math.max(r+o,a):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return n[r=i(n,s)]===s?r:-1;if(s!=s)return(r=e(c.call(n,a,o),G))>=0?r+a:-1;for(r=t>0?a:o-1;r>=0&&r<o;r+=t)if(n[r]===s)return r;return-1}}var Be=He(1,$e,Fe),We=He(-1,je);function Ve(t,e,i){var n=(_e(t)?$e:Le)(t,e,i);if(void 0!==n&&-1!==n)return t[n]}function Ue(t,e){return Ve(t,zt(e))}function ze(t,e,i){var n,s;if(e=Yt(e,i),_e(t))for(n=0,s=t.length;n<s;n++)e(t[n],n,t);else{var r=at(t);for(n=0,s=r.length;n<s;n++)e(t[r[n]],r[n],t)}return t}function qe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=Array(s),a=0;a<s;a++){var o=n?n[a]:a;r[a]=e(t[o],o,t)}return r}function Ye(t){var e=function(e,i,n,s){var r=!_e(e)&&at(e),a=(r||e).length,o=t>0?0:a-1;for(s||(n=e[r?r[o]:o],o+=t);o>=0&&o<a;o+=t){var l=r?r[o]:o;n=i(n,e[l],l,e)}return n};return function(t,i,n,s){var r=arguments.length>=3;return e(t,Yt(i,s,4),n,r)}}var Ke=Ye(1),Je=Ye(-1);function Ge(t,e,i){var n=[];return e=Gt(e,i),ze(t,(function(t,i,s){e(t,i,s)&&n.push(t)})),n}function Qe(t,e,i){return Ge(t,Ie(Gt(e)),i)}function Xe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(!e(t[a],a,t))return!1}return!0}function Ze(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(e(t[a],a,t))return!0}return!1}function ti(t,e,i,n){return _e(t)||(t=Dt(t)),("number"!=typeof i||n)&&(i=0),Be(t,e,i)>=0}var ei=k((function(t,e,i){var n,s;return F(e)?s=e:(e=Ht(e),n=e.slice(0,-1),e=e[e.length-1]),qe(t,(function(t){var r=s;if(!r){if(n&&n.length&&(t=Bt(t,n)),null==t)return;r=t[e]}return null==r?r:r.apply(t,i)}))}));function ii(t,e){return qe(t,qt(e))}function ni(t,e){return Ge(t,zt(e))}function si(t,e,i){var n,s,r=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:Dt(t)).length;o<l;o++)null!=(n=t[o])&&n>r&&(r=n);else e=Gt(e,i),ze(t,(function(t,i,n){((s=e(t,i,n))>a||s===-1/0&&r===-1/0)&&(r=t,a=s)}));return r}function ri(t,e,i){var n,s,r=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:Dt(t)).length;o<l;o++)null!=(n=t[o])&&n<r&&(r=n);else e=Gt(e,i),ze(t,(function(t,i,n){((s=e(t,i,n))<a||s===1/0&&r===1/0)&&(r=t,a=s)}));return r}function ai(t,e,i){if(null==e||i)return _e(t)||(t=Dt(t)),t[ee(t.length-1)];var n=_e(t)?$t(t):Dt(t),s=st(n);e=Math.max(Math.min(e,s),0);for(var r=s-1,a=0;a<e;a++){var o=ee(a,r),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,e)}function oi(t){return ai(t,1/0)}function li(t,e,i){var n=0;return e=Gt(e,i),ii(qe(t,(function(t,i,s){return{value:t,index:n++,criteria:e(t,i,s)}})).sort((function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index})),"value")}function ci(t,e){return function(i,n,s){var r=e?[[],[]]:{};return n=Gt(n,s),ze(i,(function(e,s){var a=n(e,s,i);t(r,e,a)})),r}}var ui=ci((function(t,e,i){q(t,i)?t[i].push(e):t[i]=[e]})),di=ci((function(t,e,i){t[i]=e})),hi=ci((function(t,e,i){q(t,i)?t[i]++:t[i]=1})),pi=ci((function(t,e,i){t[i?0:1].push(e)}),!0),fi=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function gi(t){return t?z(t)?c.call(t):I(t)?t.match(fi):_e(t)?qe(t,Ut):Dt(t):[]}function mi(t){return null==t?0:_e(t)?t.length:at(t).length}function vi(t,e,i){return e in i}var bi=k((function(t,e){var i={},n=e[0];if(null==t)return i;F(n)?(e.length>1&&(n=Yt(n,e[1])),e=gt(t)):(n=vi,e=xe(e,!1,!1),t=Object(t));for(var s=0,r=e.length;s<r;s++){var a=e[s],o=t[a];n(o,a,t)&&(i[a]=o)}return i})),yi=k((function(t,e){var i,n=e[0];return F(n)?(n=Ie(n),e.length>1&&(i=e[1])):(e=qe(xe(e,!1,!1),String),n=function(t,i){return!ti(e,i)}),bi(t,n,i)}));function wi(t,e,i){return c.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))}function _i(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[0]:wi(t,t.length-e)}function xi(t,e,i){return c.call(t,null==e||i?1:e)}function ki(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[t.length-1]:xi(t,Math.max(0,t.length-e))}function Ci(t){return Ge(t,Boolean)}function Ei(t,e){return xe(t,e,!1)}var Ti=k((function(t,e){return e=xe(e,!0,!0),Ge(t,(function(t){return!ti(e,t)}))})),Di=k((function(t,e){return Ti(t,e)}));function Si(t,e,i,n){D(e)||(n=i,i=e,e=!1),null!=i&&(i=Gt(i,n));for(var s=[],r=[],a=0,o=st(t);a<o;a++){var l=t[a],c=i?i(l,a,t):l;e&&!i?(a&&r===c||s.push(l),r=c):i?ti(r,c)||(r.push(c),s.push(l)):ti(s,l)||s.push(l)}return s}var Ai=k((function(t){return Si(xe(t,!0,!0))}));function Ii(t){for(var e=[],i=arguments.length,n=0,s=st(t);n<s;n++){var r=t[n];if(!ti(e,r)){var a;for(a=1;a<i&&ti(arguments[a],r);a++);a===i&&e.push(r)}}return e}function Oi(t){for(var e=t&&si(t,st).length||0,i=Array(e),n=0;n<e;n++)i[n]=ii(t,n);return i}var Ni=k(Oi);function Pi(t,e){for(var i={},n=0,s=st(t);n<s;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i}function Mi(t,e,i){null==e&&(e=t||0,t=0),i||(i=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/i),0),s=Array(n),r=0;r<n;r++,t+=i)s[r]=t;return s}function Li(t,e){if(null==e||e<1)return[];for(var i=[],n=0,s=t.length;n<s;)i.push(c.call(t,n,n+=e));return i}function Ri(t,e){return t._chain?ct(e).chain():e}function $i(t){return ze(It(t),(function(e){var i=ct[e]=t[e];ct.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),Ri(this,i.apply(ct,t))}})),ct}ze(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=r[t];ct.prototype[t]=function(){var i=this._wrapped;return null!=i&&(e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0]),Ri(this,i)}})),ze(["concat","join","slice"],(function(t){var e=r[t];ct.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Ri(this,t)}}));var ji=$i({__proto__:null,VERSION:n,restArguments:k,isObject:C,isNull:E,isUndefined:T,isBoolean:D,isElement:S,isString:I,isNumber:O,isDate:N,isRegExp:P,isError:M,isSymbol:L,isArrayBuffer:R,isDataView:U,isArray:z,isFunction:F,isArguments:K,isFinite:J,isNaN:G,isTypedArray:nt,isEmpty:ot,isMatch:lt,isEqual:ft,isMap:kt,isWeakMap:Ct,isSet:Et,isWeakSet:Tt,keys:at,allKeys:gt,values:Dt,pairs:St,invert:At,functions:It,methods:It,extend:Nt,extendOwn:Pt,assign:Pt,defaults:Mt,create:Rt,clone:$t,tap:jt,get:Wt,has:Vt,mapObject:Qt,identity:Ut,constant:Q,noop:Xt,toPath:Ft,property:qt,propertyOf:Zt,matcher:zt,matches:zt,times:te,random:ee,now:ie,escape:re,unescape:ae,templateSettings:oe,template:pe,result:fe,uniqueId:me,chain:ve,iteratee:Jt,partial:ye,bind:we,bindAll:ke,memoize:Ce,delay:Ee,defer:Te,throttle:De,debounce:Se,wrap:Ae,negate:Ie,compose:Oe,after:Ne,before:Pe,once:Me,findKey:Le,findIndex:$e,findLastIndex:je,sortedIndex:Fe,indexOf:Be,lastIndexOf:We,find:Ve,detect:Ve,findWhere:Ue,each:ze,forEach:ze,map:qe,collect:qe,reduce:Ke,foldl:Ke,inject:Ke,reduceRight:Je,foldr:Je,filter:Ge,select:Ge,reject:Qe,every:Xe,all:Xe,some:Ze,any:Ze,contains:ti,includes:ti,include:ti,invoke:ei,pluck:ii,where:ni,max:si,min:ri,shuffle:oi,sample:ai,sortBy:li,groupBy:ui,indexBy:di,countBy:hi,partition:pi,toArray:gi,size:mi,pick:bi,omit:yi,first:_i,head:_i,take:_i,initial:wi,last:ki,rest:xi,tail:xi,drop:xi,compact:Ci,flatten:Ei,without:Di,uniq:Si,unique:Si,union:Ai,intersection:Ii,difference:Ti,unzip:Oi,transpose:Oi,zip:Ni,object:Pi,range:Mi,chunk:Li,mixin:$i,default:ct});ji._=ji,e.VERSION=n,e._=ji,e._escape=re,e._unescape=ae,e.after=Ne,e.allKeys=gt,e.before=Pe,e.bind=we,e.bindAll=ke,e.chain=ve,e.chunk=Li,e.clone=$t,e.compact=Ci,e.compose=Oe,e.constant=Q,e.contains=ti,e.countBy=hi,e.create=Rt,e.debounce=Se,e.defaults=Mt,e.defer=Te,e.delay=Ee,e.difference=Ti,e.each=ze,e.every=Xe,e.extend=Nt,e.extendOwn=Pt,e.filter=Ge,e.find=Ve,e.findIndex=$e,e.findKey=Le,e.findLastIndex=je,e.findWhere=Ue,e.first=_i,e.flatten=Ei,e.functions=It,e.get=Wt,e.groupBy=ui,e.has=Vt,e.identity=Ut,e.indexBy=di,e.indexOf=Be,e.initial=wi,e.intersection=Ii,e.invert=At,e.invoke=ei,e.isArguments=K,e.isArray=z,e.isArrayBuffer=R,e.isBoolean=D,e.isDataView=U,e.isDate=N,e.isElement=S,e.isEmpty=ot,e.isEqual=ft,e.isError=M,e.isFinite=J,e.isFunction=F,e.isMap=kt,e.isMatch=lt,e.isNaN=G,e.isNull=E,e.isNumber=O,e.isObject=C,e.isRegExp=P,e.isSet=Et,e.isString=I,e.isSymbol=L,e.isTypedArray=nt,e.isUndefined=T,e.isWeakMap=Ct,e.isWeakSet=Tt,e.iteratee=Jt,e.keys=at,e.last=ki,e.lastIndexOf=We,e.map=qe,e.mapObject=Qt,e.matcher=zt,e.max=si,e.memoize=Ce,e.min=ri,e.mixin=$i,e.negate=Ie,e.noop=Xt,e.now=ie,e.object=Pi,e.omit=yi,e.once=Me,e.pairs=St,e.partial=ye,e.partition=pi,e.pick=bi,e.pluck=ii,e.property=qt,e.propertyOf=Zt,e.random=ee,e.range=Mi,e.reduce=Ke,e.reduceRight=Je,e.reject=Qe,e.rest=xi,e.restArguments=k,e.result=fe,e.sample=ai,e.shuffle=oi,e.size=mi,e.some=Ze,e.sortBy=li,e.sortedIndex=Fe,e.tap=jt,e.template=pe,e.templateSettings=oe,e.throttle=De,e.times=te,e.toArray=gi,e.toPath=Ft,e.union=Ai,e.uniq=Si,e.uniqueId=me,e.unzip=Oi,e.values=Dt,e.where=ni,e.without=Di,e.wrap=Ae,e.zip=Ni},303:(t,e,i)=>{var n=i(691);t.exports=n._}},i={};function n(t){var s=i[t];if(void 0!==s)return s.exports;var r=i[t]={exports:{}};return e[t].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{$:()=>Lt,CalendarWidget:()=>vo,CheckboxMultiselectEl:()=>Qn,DatePicker:()=>wo,DropdownEl:()=>cn,FancyFileInput:()=>Zn,FocusManager:()=>xl,Header:()=>co,I18n:()=>I18n,InlineDialog2:()=>kl,InlineDialogEl:()=>_r,ItemCheckboxEl:()=>an,ItemLinkEl:()=>rn,ItemRadioEl:()=>on,LabelEl:()=>ns,LayerManager:()=>Cl,MessageEl:()=>bn,NavigationEl:()=>Cr,ProgressBarEl:()=>Rr,ProgressiveDataSet:()=>El,RestfulTable:()=>Bo,SectionEl:()=>ln,SelectEl:()=>Hs,SpinnerEl:()=>Qt,TabContainerEl:()=>aa,TabItemEl:()=>oa,TabPaneEl:()=>la,ToggleEl:()=>tr,_addID:()=>Ul,banner:()=>Wt,bind:()=>y,clone:()=>Tl,contextPath:()=>zl,debounce:()=>Dl,debounceImmediate:()=>Sl,dialog2:()=>ae,dim:()=>Al,error:()=>p,escapeHtml:()=>Il,flag:()=>En,formValidation:()=>Ol,format:()=>g,id:()=>Nl,isClipped:()=>Pl,keyCode:()=>Ml,layer:()=>Ll,log:()=>d,messages:()=>Rl,navigation:()=>Er,params:()=>jl,populateParameters:()=>$l,progressBars:()=>jr,responsiveheader:()=>Fl,select:()=>Hl,sidebar:()=>hl,tablessortable:()=>Bl,tabs:()=>Wl,toInit:()=>$t,trigger:()=>_,unbind:()=>w,undim:()=>Vl,version:()=>v,warn:()=>h,whenIType:()=>_l});var t=n(472),e=n.n(t);const i=window.jQuery||window.Zepto||e();function r(){"object"!=typeof window.AJS&&(window.AJS={})}function a(t,e){return r(),window.AJS[t]=e}var o=n(953),l=n.n(o);function c(t,e){var n=i(t);return void 0===e&&(e=!0),n.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().type.CLASSNAME,attached:function(t){e()("input[type=checkbox]",t).each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(t){e()(".aui-form-glyph",t).remove()}}),l()("radio",{type:l().type.CLASSNAME,attached:function(t){e()("input[type=radio]",t).each((function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)}))},detached:function(t){e()(".aui-form-glyph",t).remove()}}),a("enable",c),a("inlineHelp",(function(){i(document).on("click",".icon-inline-help",(function(){var t=i(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);const g=f;var m="9.4.8";a("version",m);const v=m,b=i(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 x={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},k=new RegExp(`[${Object.keys(x).join("")}]`,"g");function C(t){return t.replace(k,(t=>x[t]))}a("escapeHtml",C);const E=C;var T=Object.prototype.hasOwnProperty,D=[];function S(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function A(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===D.indexOf(r)){D.push(r),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||0)+"- "+(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?S(a+="\n",e.extraObject,r):S(a,r)}}}function I(t,e){var n=t.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:e},t.options);A("'"+t.selector+"' pattern"+n,s)()}function O(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=A(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function N(t,e,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=O(t,e,n);return s.prototype=t.prototype,i.extend(s,t),s}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]=O(t[e],n,i)}else!function(t,e,i){if(P){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=A(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++)I(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)&&I(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:O,construct:N,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(L(e))},prop:M,obj:function(t,e,n){for(var s in n=n||{},t)T.call(t,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=e+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,M(t,s,i.extend({},n)))},propertyDeprecationSupported:P,getMessageLogger:A});var B=[];function W(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"),B.push(t))})),H||(H=document.body),!0===t&&U();var n=!!W.$dim&&!W.$dim[0].hasAttribute("hidden");return W.$dim&&(W.$dim.remove(),W.$dim=null),W.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),W.$dim.attr("tabindex","0"),W.$dim.appendTo(document.body),n||(F(W.$dim),W.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"),W.$dim.removeAttr("hidden"),e&&W.$dim.css({zIndex:e}),W.$dim}function V(){B.forEach((function(t){t.removeAttribute("aria-hidden")})),B=[],W.$dim&&(W.$dim[0].setAttribute("hidden",""),H&&(H.style.overflow=W.cachedOverflow.overflow,H.style.overflowX=W.cachedOverflow.overflowX,H.style.overflowY=W.cachedOverflow.overflowY))}var U=A("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});a("dim",W),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);const q=z;function Y(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e}const K=l().noConflict();const 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="${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 (${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 n=i(e).closest("a[href]",t);return!!n.length&&n[0]!==t})(t,e.target)||(nt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==q.ENTER&&i!==q.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 n=e.relatedTarget;return n||(n=document.activeElement),i(et(t)).find(n).length>0})(t,e)||nt(t,e)}};Object.keys(st).forEach((function(t){const e=st[t];i(document).on(`${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)}}}),Y("aui/trigger"),function(){function t(t){return"visible"===i.css(t,"visibility")&&i(t).is(":visible")}function e(e,n){var s=e.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=e.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=e.href||n;return(l?!e.disabled:c?u:n)&&t(e)}i.extend(i.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(i.attr(t,"tabindex"))),"aui-tabbable":function(t){var n=i.attr(t,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(t,!s)}})}();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!==q.TAB)return;const n=e.shiftKey?-1:1,s=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let t;if(t=i(s).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(s)}if(t.length){const e=t.find(":aui-tabbable"),i=e.index(s)+n;if(!(i<0||i>=e.length))return;{const e=G(t.get(0));l=a.index(e)}}}l=l>-1?(l+n)%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,e=document.activeElement){t.data(rt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var n=t.attr("data-aui-focus-selector")||ot.defaultFocusSelector;(t.is(n)?t:t.find(n)).first().trigger("focus")}at(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=lt.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ot.prototype.exit=function(t){at(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){i(e).trigger("blur");var n=function(t){return i(t.data(rt))}(t);n.length&&(t.removeData(rt),n.trigger("focus"))}},ut.global=ut(),a("FocusManager",ut);const dt=ut;function ht(t,e){var n="_aui-widget-"+t;return function(t,s){var r,a;i.isPlainObject(t)?a=t:(r=t,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new e(l,a||{})).$el).data(n,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}();const ft=pt,gt="_aui-internal-layer-",mt="_aui-internal-layer-global-";var vt=i(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,n){var s=i.Event(gt+e),r=i.Event(mt+e),a=new ft("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new ft("aui-"+n,{bubbles:!0,cancelable:!0});return t.trigger(s),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function wt(t){this.$el=i(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 St.global.item(St.global.indexOf(this.$el)-1)},above:function(){return St.global.item(St.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()||St.global.indexOf(this.$el)>-1?this:yt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),St.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const t=this;return bt(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),St.global.popUntil(this.$el,!0),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){return!(t&&!yt(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&dt.global.exit(this.$el),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]),!0)},_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 xt=ht("layer",wt);function kt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function Ct(t,e){return kt(t,(function(t){return t[0]===e[0]}))}function Et(t){return kt(t,(function(t){return xt(t).isBlanketed()}))}function Tt(t,e){var i=Et(t);e!==i&&(i>-1?W(!1,t[i].css("z-index")-20):V())}function Dt(t,e,i,n=!0){if(e<0)return[!1,null];for(var s,r=t.length-1;r>=e;r--){s=t[r];var a=xt(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];t.splice(r,1)}}return[!0,s]}function St(){this._stack=[]}function At(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return St.global.indexOf(e)>-1}xt.on=function(t,e,i){return vt.on(mt+t,e,i),this},xt.off=function(t,e,i){return vt.off(mt+t,e,i),this},St.prototype={push:function(t){var e=t instanceof i?t:i(t);if(Ct(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var n=xt(e),s=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 n._showLayer(s),n.isBlanketed()&&W(!1,s-20),this._stack.push(e),this},popLayersBeside:function(t){const e=i(t).get(0);if(!function(t){return!!G(t)}(e)){var n=Et(this._stack);return void Dt(this._stack,++n,!1)}const s=function(t){var e=G(t);if(e)return i(e).closest(".aui-layer").get(0)}(e);if(s){let t=this.indexOf(s);Dt(this._stack,++t,!1)}else Dt(this._stack,0,!1)},indexOf:function(t){return Ct(this._stack,i(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=xt(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=Ct(this._stack,n);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=xt(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=Ct(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=xt(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},popUntil:function(t,e=!1){var n=t instanceof i?t:i(t),s=Ct(this._stack,n);if(-1===s)return null;const r=Et(this._stack),a=xt(n),[o,l]=Dt(this._stack,s+1,a.isBlanketed(),e);return o&&a._hideLayer(e)?(this._stack.splice(s,1),Tt(this._stack,r),n):l},popTopIfNonPersistent:function(t=!1){var e=this.getTopLayer(),i=xt(e);return!e||i.isPersistent()?null:this.popUntil(e,t)},popUntilTopBlanketed:function(t=!1){var e=Et(this._stack);if(e<0)return null;var i=this._stack[e];if(xt(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Ct(this._stack,n);return Dt(this._stack,s,!0,t),n}return null}return Dt(this._stack,e,!0),Tt(this._stack,e),i},popUntilTopPersistent:function(t=!1){var e=St.global.getTopLayer();if(e){var i,n=Et(this._stack),s=xt(e);if(s.isPersistent()){if(s.isBlanketed())return;if(e=St.global.getNextLowerNonPersistentOrBlanketedLayer(e),s=xt(e),!e||s.isPersistent())return;i=Ct(this._stack,e),Dt(this._stack,i,!0,t),Tt(this._stack,n)}else i=Ct(this._stack,e),Dt(this._stack,i,!0,t),Tt(this._stack,n)}}},vt.on("keydown",(function(t){t.keyCode===q.ESCAPE&&(St.global.popUntilTopPersistent(!0),t.preventDefault())})),vt.on("click",".aui-blanket",(function(t){St.global.popUntilTopBlanketed(!0)&&t.preventDefault()})),vt.on("click",(function(t){var e=i(t.target);if(!e.closest(".aui-blanket").length){var n=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(!s.length&&!At(n)){const e=i.Event("aui-close-layers-on-outer-click");return vt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void St.global.hideAll()}if(!At(n)&&s.length){var r=St.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&xt(r).hide()}}})),St.global=new St,xt.Manager=St,a("layer",xt);const It=xt;a("LayerManager",It.Manager);It.Manager;const Ot={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Nt=a("params",new Proxy({},{get:function(t,e){return A("AJS.params",Ot)(),t[e]}}));const Pt=O((function(t){t||(t=Nt),i(".parameters input").each((function(){var e=this.value,n=this.title||this.id;i(this).hasClass("list")?t[n]?t[n].push(e):t[n]=[e]:t[n]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});a("populateParameters",Pt);const Mt=Pt;i((function(){var t=i("body");t.data("auiVersion")||t.attr("data-aui-version",v),Mt()})),a("$",i);const Lt=i;function Rt(t){return i.when(i.ready).then((function(){setTimeout((function(){try{t.call(this,i)}catch(e){p("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}a("toInit",Rt);const $t=Rt,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,...e){return Object.prototype.hasOwnProperty.call(this.keys,t)?g.apply(null,[this.keys[t]].concat(e)):t}};for(const t in I18n)jt=t,Ft=I18n[t],r(),"object"!=typeof window.AJS.I18n&&(window.AJS.I18n={}),void 0===window.AJS.I18n[jt]&&(window.AJS.I18n[jt]=Ft);var jt,Ft;function Ht(t){var e=function({body:t,type:e="error"}){return i('<div class="aui-banner" role="banner"></div>').append(i.parseHTML(t||"")).addClass(`aui-banner-${e}`)}(t);return Bt().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&i(t).remove()})),function(t){var e=Bt();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 Bt(){return i("#header")}Y("aui/banner",Ht),a("banner",Ht);const Wt=Ht;var Vt=n(303);const Ut={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},zt={filled:!1,size:Ut.MEDIUM.name},qt="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.",Yt=A("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:qt}),Kt=A("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:qt});function Jt(t){let e=Ut.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Ut).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function Gt(t){const{px:e,radius:i}=(0,Vt.find)(Ut,(e=>e.name===t._data.size))||Ut.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 ${e} ${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=r-a+"px"}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}const Qt=K("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',Gt(t)},attached(t){Gt(t)},attributes:{filled:{created:function(t){Yt(),t._data.filled=!0,Gt(t)},removed:function(t){t._data.filled=!1,Gt(t)}},size(t,e){t._data.size=Jt(e.newValue),Gt(t)}},prototype:{get _data(){return this.__data||(this._data=(0,Vt.defaults)({},zt))},set _data(t){return this.__data=t},set filled(t){Kt(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=Jt(t);this.setAttribute("size",e)}}});function Xt(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function Zt(t){return"INPUT"===t.nodeName}K("aui-button",{type:K.type.CLASSNAME,created:function(t){t._spinner=new Qt,t._spinner.setAttribute("size",Ut.SMALL.name)},prototype:{busy:function(){return Zt(this)||Xt(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 Zt(this)||!Xt(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 Zt(this)?(h("It is not valid to call isBusy() on an input button."),!1):Xt(this)}}}),Y("aui/button");const te=".aui-close-button",ee=`<button type="button" class="aui-close-button" aria-label="${I18n.getText("aui.words.close")}">`;var ie={"aui-focus":"false","aui-blanketed":"true"};function ne(t){var e;this._handlers=new WeakMap,this.$el=i(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 ${ee}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),e=this.$el,i.each(ie,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}ne.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)};It(i).on(t,n),this._handlers.set(e,n)}return this},ne.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(It(i).off(t,n),this._handlers.delete(e)),this},ne.prototype.show=function(){return It(this.$el).show(),this},ne.prototype.hide=function(){return It(this.$el).hide(),this},ne.prototype.remove=function(){return It(this.$el).remove(),this},ne.prototype.isVisible=function(){return It(this.$el).isVisible()};var se=ht("dialog2",ne),re=new Set;se.on=function(t,e){return re.has(e)||(It.on(t,".aui-dialog2",e),re.add(e)),this},se.off=function(t,e){return re.has(e)&&(It.off(t,".aui-dialog2",e),re.delete(e)),this},i(document).on("click keydown",".aui-dialog2-header .aui-close-button",(function(t){("click"===t.type||t.keyCode===q.ENTER||t.keyCode===q.SPACE)&&(t.preventDefault(),se(i(t.target).closest(".aui-dialog2")).hide())})),se.on("show",(function(t,e){e.find(te).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()})),se.on("hide",(function(t,e){var i=It(e);e.data("aui-remove-on-hide")&&i.remove()})),Y("aui/dialog2",se),a("dialog2",se);const ae=se;var oe,le,ce=n(596),ue=n.n(ce),de=navigator.userAgent.toLowerCase(),he=(/msie/.test(de),/windows nt 5.1/.test(de),/windows nt 6.0/.test(de),/windows nt 6.1/.test(de),/mac os x/.test(de));function pe(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 fe(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function ge(t){var e=fe(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function me(t){return t instanceof fe(t).Element||t instanceof Element}function ve(t){return t instanceof fe(t).HTMLElement||t instanceof HTMLElement}function be(t){return t?(t.nodeName||"").toLowerCase():null}function ye(t){return(me(t)?t.ownerDocument:t.document).documentElement}function we(t){return pe(ye(t)).left+ge(t).scrollLeft}function _e(t){return fe(t).getComputedStyle(t)}function xe(t){var e=_e(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ke(t,e,i){void 0===i&&(i=!1);var n,s,r=ye(e),a=pe(t),o=ve(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==be(e)||xe(r))&&(l=(n=e)!==fe(n)&&ve(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ge(n)),ve(e)?((c=pe(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=we(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ce(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Ee(t){return"html"===be(t)?t:t.assignedSlot||t.parentNode||t.host||ye(t)}function Te(t){return["html","body","#document"].indexOf(be(t))>=0?t.ownerDocument.body:ve(t)&&xe(t)?t:Te(Ee(t))}function De(t,e){void 0===e&&(e=[]);var i=Te(t),n="body"===be(i),s=fe(i),r=n?[s].concat(s.visualViewport||[],xe(i)?i:[]):i,a=e.concat(r);return n?a:a.concat(De(Ee(r)))}function Se(t){return["table","td","th"].indexOf(be(t))>=0}function Ae(t){if(!ve(t)||"fixed"===_e(t).position)return null;var e=t.offsetParent;if(e){var i=ye(e);if("body"===be(e)&&"static"===_e(e).position&&"static"!==_e(i).position)return i}return e}function Ie(t){for(var e=fe(t),i=Ae(t);i&&Se(i)&&"static"===_e(i).position;)i=Ae(i);return i&&"body"===be(i)&&"static"===_e(i).position?e:i||function(t){for(var e=Ee(t);ve(e)&&["html","body"].indexOf(be(e))<0;){var i=_e(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var Oe="top",Ne="bottom",Pe="right",Me="left",Le="auto",Re=[Oe,Ne,Pe,Me],$e="start",je="end",Fe="viewport",He="popper",Be=Re.reduce((function(t,e){return t.concat([e+"-"+$e,e+"-"+je])}),[]),We=[].concat(Re,[Le]).reduce((function(t,e){return t.concat([e,e+"-"+$e,e+"-"+je])}),[]),Ve=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ue(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 ze(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 qe(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ye(t,e){return e===Fe?qe(function(t){var e=fe(t),i=ye(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+we(t),y:o}}(t)):ve(e)?function(t){var e=pe(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):qe(function(t){var e=ye(t),i=ge(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+we(t),o=-i.scrollTop;return"rtl"===_e(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:o}}(ye(t)))}function Ke(t,e,i){var n="clippingParents"===e?function(t){var e=De(Ee(t)),i=["absolute","fixed"].indexOf(_e(t).position)>=0&&ve(t)?Ie(t):t;return me(i)?e.filter((function(t){return me(t)&&ze(t,i)&&"body"!==be(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),r=s[0],a=s.reduce((function(e,i){var n=Ye(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}),Ye(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 Je(t){return t.split("-")[0]}function Ge(t){return t.split("-")[1]}function Qe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Xe(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?Je(s):null,a=s?Ge(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case Oe:e={x:o,y:i.y-n.height};break;case Ne:e={x:o,y:i.y+i.height};break;case Pe:e={x:i.x+i.width,y:l};break;case Me:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?Qe(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case $e:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case je:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function Ze(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function ti(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function ei(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?"clippingParents":r,o=i.rootBoundary,l=void 0===o?Fe:o,c=i.elementContext,u=void 0===c?He:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Ze("number"!=typeof f?f:ti(f,Re)),m=u===He?"reference":He,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=Ke(me(y)?y:y.contextElement||ye(t.elements.popper),a,l),_=pe(v),x=Xe({reference:_,element:b,strategy:"absolute",placement:s}),k=qe(Object.assign(Object.assign({},b),x)),C=u===He?k:_,E={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},T=t.modifiersData.offset;if(u===He&&T){var D=T[s];Object.keys(E).forEach((function(t){var e=[Pe,Ne].indexOf(t)>=0?1:-1,i=[Oe,Ne].indexOf(t)>=0?"y":"x";E[t]+=D[i]*e}))}return E}var ii={placement:"bottom",modifiers:[],strategy:"absolute"};function ni(){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 si(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?ii:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ii),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:me(t)?De(t):t.contextElement?De(t.contextElement):[],popper:De(e)};var s=function(t){var e=Ue(t);return Ve.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(ni(e,i)){o.rects={reference:ke(e,Ie(i),"fixed"===o.options.strategy),popper:Ce(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(!ni(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 ri={passive:!0};var ai={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oi(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=Me,g=Oe,m=window;if(l){var v=Ie(i);v===fe(i)&&(v=ye(i)),s===Oe&&(g=Ne,d-=v.clientHeight-n.height,d*=o?1:-1),s===Me&&(f=Pe,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&ai);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 li={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(t){return t.replace(/left|right|bottom|top/g,(function(t){return li[t]}))}var ui={start:"end",end:"start"};function di(t){return t.replace(/start|end/g,(function(t){return ui[t]}))}function hi(t,e,i){return Math.max(t,Math.min(e,i))}function pi(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 fi(t){return[Oe,Pe,Ne,Me].some((function(e){return t[e]>=0}))}var gi=si({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=fe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",i.update,ri)})),o&&l.addEventListener("resize",i.update,ri),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ri)})),o&&l.removeEventListener("resize",i.update,ri)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Xe({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:Je(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),oi(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),oi(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];ve(s)&&be(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}),{});ve(n)&&be(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=We.reduce((function(t,i){return t[i]=function(t,e,i){var n=Je(t),s=[Me,Oe].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,[Me,Pe].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=Je(m),b=l||(v===m||!f?[ci(m)]:function(t){if(Je(t)===Le)return[];var e=ci(t);return[di(t),e,di(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Je(i)===Le?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?We:l,u=Ge(n),d=u?o?Be:Be.filter((function(t){return Ge(t)===u})):Re,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]=ei(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[Je(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,x=new Map,k=!0,C=y[0],E=0;E<y.length;E++){var T=y[E],D=Je(T),S=Ge(T)===$e,A=[Oe,Ne].indexOf(D)>=0,I=A?"width":"height",O=ei(e,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=A?S?Pe:Me:S?Ne:Oe;w[I]>_[I]&&(N=ci(N));var P=ci(N),M=[];if(r&&M.push(O[D]<=0),o&&M.push(O[N]<=0,O[P]<=0),M.every((function(t){return t}))){C=T,k=!1;break}x.set(T,M)}if(k)for(var L=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,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=ei(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Je(e.placement),b=Ge(e.placement),y=!b,w=Qe(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,T={x:0,y:0};if(x){if(r){var D="y"===w?Oe:Me,S="y"===w?Ne:Pe,A="y"===w?"height":"width",I=x[w],O=x[w]+m[D],N=x[w]-m[S],P=p?-C[A]/2:0,M=b===$e?k[A]:C[A],L=b===$e?-C[A]:-k[A],R=e.elements.arrow,$=p&&R?Ce(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[D],H=j[S],B=hi(0,k[A],$[A]),W=y?k[A]/2-P-B-F-E:M-B-F-E,V=y?-k[A]/2+P+B+H+E:L+B+H+E,U=e.elements.arrow&&Ie(e.elements.arrow),z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,q=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,Y=x[w]+W-q-z,K=x[w]+V-q,J=hi(p?Math.min(O,Y):O,I,p?Math.max(N,K):N);x[w]=J,T[w]=J-I}if(o){var G="x"===w?Oe:Me,Q="x"===w?Ne:Pe,X=x[_],Z=hi(X+m[G],X,X-m[Q]);x[_]=Z,T[_]=Z-X}e.modifiersData[n]=T}},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=Je(i.placement),o=Qe(a),l=[Me,Pe].indexOf(a)>=0?"height":"width";if(s&&r){var c=i.modifiersData[n+"#persistent"].padding,u=Ce(s),d="y"===o?Oe:Me,h="y"===o?Ne:Pe,p=i.rects.reference[l]+i.rects.reference[o]-r[o]-i.rects.popper[l],f=r[o]-i.rects.reference[o],g=Ie(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,_=hi(b,w,y),x=o;i.modifiersData[n]=((e={})[x]=_,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)))&&ze(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[n+"#persistent"]={padding:Ze("number"!=typeof o?o:ti(o,Re))})},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=ei(e,{elementContext:"reference"}),o=ei(e,{altBoundary:!0}),l=pi(a,n),c=pi(o,s,r),u=fi(l),d=fi(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 mi={"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 vi(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function bi(t){return vi(t,"alignment")||"right middle"}function yi(t){let[e,i]=bi(t).split(" ");return{side:e,snap:i}}function wi(t){let e=function(t){let e=vi(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 _i(t,e){const i=yi(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=bi(t);return mi[e]||"right"}(t):(i.snap=wi(e),n="submenu"===i.side?mi[("right"===i.snap?"left":"right")+" top"]:mi[`${i.side} ${i.snap}`]),n}const xi={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function ki(t,e,i={}){const n=yi(t),s=_i(t,e),r=xi[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("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{t.elements.popper&&t.elements.popper.setAttribute("x-placement",t.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return i.enabled&&i.fn(),t}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={fn:i.onEvents}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),t}}];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=gi(e,t,l),function(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)}(t,n.side,n.snap)}ki.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}};const Ci=ki;function Ei(t){let e=new i.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),12):e.reject(),e.promise()}var Ti,Di,Si=0;function Ai(t){if(Ti=Si+++"",Di=t?t+Ti:"aui-uid-"+Ti,document.getElementById(Di)){if(Di=Di+"-"+(new Date).getTime(),document.getElementById(Di))throw new Error('Timestamped fallback ID "'+Di+'" exists.');return Di}return Di}a("id",Ai);const Ii=Ai;function Oi(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function Ni(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Pi(t,e={}){const i=e&&e.type&&(e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1);t.isSubmenu&&!i?t.focusItem(0):t.focus()}var Mi="unloaded",Li="loading",Ri="error";function $i(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]?`${e} ="true"`:""}function i(e){return t[e]?`${e}="${t[e]}"`:""}var n="aui-item-"+t.type;return`\n <${n} ${i("for")} ${i("href")} ${e("interactive")}\n ${e("checked")} ${e("disabled")} ${e("hidden")}>\n ${E(t.content)}\n </${n}>`})).join("");return`\n <aui-section ${t.label?`label="${t.label}"`:""}>\n ${e}\n </aui-section>`})).join("\n")}(e),K.init(t),X(t,(function(e){document.activeElement===e&&Pi(t)}))}function ji(t){J(t).set("loading-state",Ri),J(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Fi(t){t.src&&J(t).get("loading-state")!==Li&&(!function(t){J(t).set("loading-state",Li),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> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(t),i.ajax(t.src).done((function(e,i,n){200===n.status?$i(t,e):ji(t)})).fail((function(){ji(t)})).always((function(){!function(t){X(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Hi(t,e){return i(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 Bi(t){return Hi(t,(()=>!0))}function Wi(t){return Hi(t,((t,e)=>!Oi(e)))}function Vi(t){Bi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Oi(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ui(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function zi(t,e){var n=e&&e.hasSubmenu&&e.hasSubmenu(),s="submenu auto"===t.getAttribute("data-aui-alignment");!n&&s&&function(t){var e=i(t),n=e.data("previous-data-aui-alignment");n?t.setAttribute("data-aui-alignment",n):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 r=t.hasAttribute("data-aui-alignment");n&&!s?(!function(t){var e=i(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)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),Ui(t),t._auiAlignment=new Ci(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(K.init(this),A("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"})())})),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=i(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const n=e.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&e.is(".aui-dropdown2-trigger")&&(s.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=n.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var qi=!1;function Yi(){qi=!0}function Ki(t){It(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=i(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(`.${t}`).addClass(`aui-dropdown2-${t}`)}))}(t),Vi(t),i(t).trigger("aui-dropdown2-show"),X(t,(function(e){Ni(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&&(i(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"),Bi(t).removeClass("active aui-dropdown2-active"),X(t,(function(t){var e;e=!0===qi,qi=!1,e?(t.focus(),Ni(t,t.hasSubmenu&&t.hasSubmenu())):Ni(t,!1)})),delete t.isSubmenu,Q(t,null))}))}function Ji(t){var e=i(t);function n(e){return i(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){n(e.target)&&(e.keyCode===q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===q.LEFT?t.isSubmenu&&(Yi(),t.hide(e),e.preventDefault()):e.keyCode===q.ESCAPE?Yi():e.keyCode===q.TAB&&(Yi(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!n(e.target))return;const s=e.currentTarget,r=e.keyCode,a=r===q.ENTER,o=r===q.SPACE;a&&i(s).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=It(n);n=It(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(n(e.target)){var i=e.currentTarget,s=i.hasSubmenu&&i.hasSubmenu();if(!e.isDefaultPrevented()&&!s){var r=It(t).above();r&&It(r).hide()}}}))}function Gi(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")),Ki(t),Ji(t),i(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===q.ENTER||t.keyCode===q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),i(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===q.ENTER||t.keyCode===q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}i(window).on("resize",(0,Vt.debounce)((function(){i(".aui-dropdown2").each((function(t,e){K.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var Qi={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),It(e).show(),X(e,(function(t){zi(e,t)})),setTimeout((()=>Pi(e,t)),0),this},hide:function(){return It(this).hide(),this},focusNext:function(){var t,e=Wi(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=Wi(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=Wi(this);"number"==typeof t&&(t=e.get(t));const n=i(t);n.focus(),e.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return It(this).isVisible()}},Xi={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")}},Zi={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},tn={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}))}},en={created:function(t){Xi.created(t)},removed:function(t){Xi.removed(t)}},nn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const sn=function(t=""){return t.split(" ").map((t=>t.trim())).filter((t=>t))},rn=K("aui-item-link",{template:ue()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Xi,interactive:Zi,hidden:en,href:nn("href"),"item-id":nn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),i(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"),i(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...sn(e.oldValue)),e.newValue&&i.classList.add(...sn(e.newValue))}}}),[an,on]=["checkbox","radio"].map((t=>K(`aui-item-${t}`,{template:ue()(`<span role="${t}" class="aui-dropdown2-${t}" tabindex="-1"><content></content></span>`),attributes:{"item-id":nn("id"),disabled:Xi,interactive:Zi,checked:tn,hidden:en}}))),ln=K("aui-section",{template:ue()('\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=Ii();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")}}),cn=K("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",It(t),J(t).set("loading-state",Mi),K.init(t)},detached:function(t){Ei(t).then((()=>Ui(t)))},attributes:{src:{}},prototype:Qi,events:{"aui-layer-show":function(t){var e=J(t).get("loading-state")===Mi,i=J(t).get("hasErrorBeenShown");(e||i)&&Fi(t),J(t).get("loading-state")===Ri&&J(t).set("hasErrorBeenShown",!0)}}});K("aui-dropdown2",{type:K.type.CLASSNAME,created:Gi,prototype:Qi}),K("data-aui-dropdown2",{type:K.type.ATTRIBUTE,created:Gi,prototype:Qi}),K("aui-dropdown2-trigger",{type:K.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==t)return;if(n.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void p('Could not find a dropdown with id "'+e+'" in the DOM.');const a=i(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=t.hasSubmenu(),r}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",`#${e}`),i(t).on("aui-button-invoke",n).on("click",n).on("keydown",(function(e){if(e.currentTarget!==t)return;const i=e.keyCode===q.ENTER||e.keyCode===q.SPACE,s=e.keyCode===q.RIGHT&&t.hasSubmenu(),r=(e.keyCode===q.UP||e.keyCode===q.DOWN)&&!t.hasSubmenu();i?n(e):(r||s)&&n(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")===Mi,i=J(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Fi(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-${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"),he&&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-${t}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var un=i(document),dn=function(t){var e={};return e.$trigger=i(t.currentTarget),e.$content=un.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},hn=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)}},pn={"aui-expander-invoke":function(t){var e=i(t.currentTarget),n=un.find("#"+e.attr("aria-controls")),s=!1!==e.data("collapsible");"true"===n.attr("aria-expanded")&&s?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=dn(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"),hn(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=dn(t);"true"===e.$content.attr("aria-expanded")&&(hn(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){i(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};un.on(pn,".aui-expander-trigger");function fn(t){vn[t]=function(e,n){n||(n=e,e="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function({id:t,closeable:e,fadeout:n,title:s,body:r},a){const o=s?`<p class="title"><strong>${E(s)}</strong></p>`:"",l=i(`<div class="aui-message">${o}</div>`).append(i.parseHTML(r||"")).addClass(e?"closeable":"").addClass(n?"fadeout":"").addClass(`aui-message-${a}`);t&&(/[#\'\"\.\s]/g.test(t)?h("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):l.attr("id",t));return l}(n,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(s,n.insert,e),n.closeable&&gn(s),n.fadeout&&mn(s,n.delay,n.duration),s}}function gn(t){i(t||"div.aui-message.closeable").each((function(){var t,e=i(this),n=e.find(te),s=n.length>0?n.first():i(ee);e.addClass("closeable"),e.append(s),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",te,(function(t){i(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",te,(function(t){t.which!==q.ENTER&&t.which!==q.SPACE||(i(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function mn(t,e,n){e=void 0!==e?e:5e3,n=void 0!==n?n:500,i(t||"div.aui-message.fadeout").each((function(){var t=i(this),s=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(n,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!r}t.focusin((function(){s=!0,o()})).focusout((function(){s=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var vn={setup:function(){gn(),mn()},makeCloseable:gn,makeFadeout:mn,createMessage:fn};i.fn.closeMessage=function(){var t=i(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),i(document).trigger("aui-message-close",[this]))},fn("generic"),fn("error"),fn("warning"),fn("info"),fn("confirmation"),fn("change"),fn("success"),fn("hint");const bn=K("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",vn[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});i((function(){vn.setup()})),M(vn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(vn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),M(vn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),M(vn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),a("messages",vn);var yn="aui-flag-container",wn={body:"",close:"manual",title:"",type:"info"};function _n(t){(t=i.extend({},wn,t)).title=(t.title||"").toString().trim();var e=function({body:t,title:e,close:n,type:s}){const r=e?`<p class="title"><strong>${E(e)}</strong></p>`:"",a=i(`<div class="aui-message">${r}</div>`).append(i.parseHTML(t||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`);return i('<div class="aui-flag" aria-live="polite"></div>').append(a)}(t);return function(t){t[0].close=function(){kn(t)}}(e),"auto"===t.close?(xn(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),5e3)}(e)):"manual"===t.close&&xn(e),function(){const t=Cn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else i("body").prepend('<div id="aui-flag-container"></div>')}(),function(t){const e=Cn();t.appendTo(e),F(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function xn(t){var e=i(ee);return e.on("click",(function(){kn(t)})),e.on("keypress",(function(e){e.which!==q.ENTER&&e.which!==q.SPACE||(kn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function kn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new ft("aui-flag-close",{bubbles:!0})),e}function Cn(){return document.getElementById(yn)}Y("aui/flag",_n),a("flag",_n);const En=_n;function Tn(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 Dn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Tn(Object(i),!0).forEach((function(e){Sn(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Tn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Sn(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const An="aui-tooltip",In={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},On={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1};let Nn;const Pn=(t=!1)=>{const e=Nn&&Nn.get(0);e&&e.classList.toggle("assistive",t)};class Mn{constructor(t,e){this.triggerElement=t,this.$triggerElement=i(this.triggerElement),this.options=Dn(Dn({},On),e),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),Ln.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,e.attr("aria-describedby",An),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".aui-tooltip",t):this.$triggerElement.off(".aui-tooltip")}buildTip(t){const e=this.options;return void 0===Nn&&(Nn=i('<div id="aui-tooltip" class="aui-tooltip assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>'),i(document.body).append(Nn)),e.html?Nn.find(".aui-tooltip-content").html(t):Nn.find(".aui-tooltip-content").text(t),Nn}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return 0===e.trim().length?void 0:e}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;this.hide();const e=this.triggerElement,n=In[this.options.gravity];if(clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const s=this.buildTip(t).get(0);this.popperTimeout=setTimeout((()=>{this.showTooltip(),this.popperInstance=gi(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on("scroll.aui-tooltip",(()=>this.hide()))}),300)}hide(){this.hideTooltip(),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off("scroll.aui-tooltip")}showTooltip(){Pn(!1)}hideTooltip(){Pn(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Ln=new WeakMap,Rn=(t,e)=>{let i=Ln.get(t);return void 0===i&&(i=new Mn(t,e),"object"==typeof t&&Ln.set(t,i)),i},$n=t=>t.map((t=>`${t}.aui-tooltip`)).join(" "),jn=$n(["mouseenter","focus"]),Fn=$n(["click","mouseleave","blur"]);i.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return Rn(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),e}const i=t||{},n=function(){Rn(this,i).show()},s=function(){Rn(this,i).hide()},r=i.live;return void 0!==r?(i.$delegationRoot=e,e.on(jn,r,n),e.on(Fn,r,s),e):(e.on(jn,n),e.on(Fn,s),e)};var Hn=function(t){function e(){return i('<div class="aui-dropdown2-section">')}var n=e();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=e(),r=i("<ul />").appendTo(s);return i.each(t,(function(t,e){var n=i("<li />").attr({class:e.styleClass||""}).appendTo(r),s=i("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);e.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(s),e.selected&&s.addClass("aui-dropdown2-checked")})),i("<div />").append(n).append(s).html()},Bn=function(t,e){var n=t+"-dropdown",s=i("<select />").attr({name:t,multiple:"multiple"}).html(e),r=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(a).append(r).html()};function Wn(t){var e=i(t.target);Vn(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function Vn(t,e,n){var s=t.$select.find("option").filter((function(){var t=i(this);return t.attr("value")===e&&t.prop("selected")!==n}));s.length&&(s.prop("selected",n),t.$select.trigger("change"))}function Un(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return Kn(t).length<1}))}function zn(t){return t.map((function(){var t=i(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 qn(t){t.$dropdown.html(Hn(function(t){return zn(t.getOptions())}(t))),Un(t)}function Yn(t){var e=Jn(t),n=function(t){return 0===Kn(t).length}(t)?function(t){return i(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(n)}function Kn(t){return zn(t.getSelectedOptions())}function Jn(t){return i.map(Kn(t),(function(t){return t.label}))}const Gn=K("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||Ii("aui-checkbox-multiselect-");t.innerHTML=Bn(e,t.innerHTML),t.$select=i("select",t).on("change",(function(){Yn(t),Un(t)})),t.$dropdown=i(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",Wn.bind(t)).on("aui-dropdown2-item-uncheck",Wn.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=i(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":Jn(t).join(", ")}(t)}}),Yn(t),qn(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){Vn(this,t,!0)},unselectOption:function(t){Vn(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){i("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),Yn(this),qn(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),Yn(this),qn(this)}}});Y("aui/checkbox-multiselect",Gn);const Qn=Gn;var Xn=n(726);const Zn=n.n(Xn)();const ts=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")}}},es="-input";function is(t){return t.querySelector("label")}const ns=K("aui-label",{template:ue()("<label><content></content></label>"),created:function(t){t._label=is(t)},attached:function(t){ts(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?is(t).setAttribute("for",`${e.newValue}-input`):is(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?is(t).setAttribute("form",e.newValue):is(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()}}});n(37);var ss=i.fn.select2,rs="aui-select2-container",as="aui-select2-drop aui-dropdown2",os="aui-has-avatar";i.fn.auiSelect2=function(t){var e;if(i.isPlainObject(t)){var n=i.extend({},t),s=n.hasAvatar?" "+os:"";n.containerCssClass=rs+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=as+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(n)}else e=arguments.length?arguments:[{containerCssClass:rs,dropdownCssClass:as}];return ss.apply(this,e)},i.fn.spin=O((function(t,e){let n={size:"small"};return"object"==typeof e&&(n=i.extend(n,e)),"object"==typeof t&&(n=i.extend(n,t)),"string"==typeof t&&(n.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=i(this),e=t.data();if(e){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),t.spinStop(),t.append(s),K.init(this),e.spinner=s}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=O((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=i(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>"});const ls=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}}});var cs=n(823),us=n.n(cs),ds=us().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,(0,Vt.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=(0,Vt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=(0,Vt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return us().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=(0,Vt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=(0,Vt.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",ds);const hs=ds,ps=us().Model.extend({idAttribute:"label",getLabel:function(){return this.get("label")||this.get("value")}});function fs(){this._suggestions=[],this._activeIndex=-1}fs.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}};const gs=fs;function ms(t,e){return t+"-"+e}function vs(t,e){this.el=t,this.anchor=e}function bs(t){i(t).find(".aui-select-active").removeClass("aui-select-active")}vs.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="${encodeURI(r)}"/>`:"",o=t.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";n+=`<li role="option" class="aui-select-suggestion" id="${ms(i,s)}">${a}${e}${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">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(t){bs(this.el),i(this.el).find("#"+ms(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;i((t=this).el).css("min-width",i(t.anchor).outerWidth()),It(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new Ci(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;bs(this.el),It(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 i(this.el).is(":visible")}};const ys=vs,ws=ue()('\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 _s(t){t._select.selectedIndex=-1,function(t){t._input.removeAttribute("style"),i(t._input).removeClass("aui-select-has-inline-image")}(t)}function xs(t){return t._suggestionModel.getNumberOfResults()}function ks(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function Cs(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function Es(t){var e=xs(t)?0:-1;t._suggestionModel.highlight(e),Cs(t)}function Ts(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Ds(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){i(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function Ss(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 As(t){Ss(t,t._suggestionModel.highlighted()),Ds(t),Es(t)}function Is(t){return new ps(t.serialize())}function Os(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Is(n))}return e}function Ns(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function Ps(t,e){return i.map(e,(function(t){return t.id})).indexOf(t)}function Ms(t){t._progressiveDataSet=new hs(Os(t),{model:ps,matcher:ks,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=Os(t));var i=-1!==Ps(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 ls;e.setAttribute("value",t._input.value);var i=Is(e);return i.set("new-value",!0),i}(t)),!J(t).get("should-include-selected")){var s=Ps(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",Ns(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 Ls(t){var e=t.value?"":t._input.value,i=""===t._input.value;J(t).set("should-include-selected",i),Ts(t,!0,e)}function Rs(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&J(t).set("should-cancel-response",!0)}function $s(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function js(t){Rs(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==$s(t);if(i||n)if(e)_s(t);else{var s=$s(t);void 0===s?_s(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(-1)}(t),Cs(t)}const Fs=K("aui-select",{template:ws,created:function(t){t._listId=Ii(),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 ys(t._dropdown,t._input),t._suggestionModel=new gs,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",Ns(t))}},attached:function(t){K.init(t),Ms(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){i(t._dropdown).on("mouseover","li",(function(e){xs(t)&&t._suggestionModel.highlight(i(e.target).index())}))}(t),function(t){let e=!1;i(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),i(t._dropdown).on("mousedown","li",(function(n){if(!xs(t))return!1;t._suggestionModel.highlight(i(n.target).index()),As(t),t._suggestionsView.hide(),i(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&&Ss(t,Is(e))}(t),Es(t),Ds(t)},detached:function(t){i(document).off("aui-close-layers-on-outer-click"),Ei(t).then((()=>{Cs(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+es)},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){js(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){Ls(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),Ts(t,!0)):J(t).get("button-clicked-prevent-dropdown-hide")?J(t).set("button-clicked-prevent-dropdown-hide",!1):Cs(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===q.ESCAPE)return Rs(t),void Cs(t);t._suggestionsView.isVisible()&&xs(t)?e.keyCode===q.ENTER?(Rs(t),As(t),e.preventDefault()):e.keyCode===q.TAB?(!function(t){t._suggestionsView.isVisible()&&As(t)}(t),n=!0):e.keyCode===q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==q.UP&&e.keyCode!==q.DOWN||(Ls(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 ps({value:t,label:t})),Ss(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),js(this),this},focus:function(){return this._input.focus(),Ls(this),this}}});Y("aui/select",Fs),a("select",Fs);const Hs=Fs;function Bs(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}const Ws={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:Bs,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 Vs(t){return t._input||(t._input=t.querySelector("input"))}function Us(t){return t._spinner||(t._spinner=new Qt)}function zs(t,e){Vs(e).removeAttribute(t)}function qs(t,e,i){Vs(e).setAttribute(t,i.newValue)}function Ys(t){return{removed:zs.bind(this,t),fallback:qs.bind(this,t)}}const Ks={removed:function(t){zs.call(this,"form",t),t._formId=null},fallback:function(t,e){qs.call(this,"form",t,e),t._formId=e.newValue}};var Js={removed:zs.bind(void 0,"id"),fallback:function(t,e){const i=`${e.newValue}-input`;Vs(t).setAttribute("id",i)}},Gs={removed:function(t){zs.call(this,"value",t),Vs(t).value="on"},fallback:function(t,e){qs.call(this,"value",t,e)}},Qs={removed:function(t){Vs(t).checked=!1},fallback:function(t){Vs(t).checked=!0}},Xs={removed:function(t){Vs(t).removeAttribute("aria-label")},fallback:function(t,e){Vs(t).setAttribute("aria-label",e.newValue)}};function Zs(t){Vs(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===q.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&Vs(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===le)try{document.querySelector(":focus-within"),le=!0}catch(t){le=!1}return le}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const tr=K("aui-toggle",{template:ue()('<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){Vs(t),Us(t).setAttribute("size",Ut.SMALL.name),i(Vs(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Zs(t),t.hasAttribute("checked")&&Vs(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){ts(t).attributeExists("label")},events:{click:function(t,e){var i=Vs(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new ft("change",{bubbles:!0}))}(t)),Bs(t,"checked",i.checked)}},attributes:{id:Js,checked:Qs,disabled:Ys("disabled"),form:Ks,name:Ys("name"),value:Gs,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){Vs(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){Vs(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Xs},prototype:{focus:function(){return Vs(this).focus(),this},get checked(){return Vs(this).checked},set checked(t){Vs(this).checked!==t&&(Vs(this).checked=t,Bs(this,"checked",t))},get disabled(){return Vs(this).disabled},set disabled(t){return Bs(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return Ks.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return Vs(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return Vs(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===Vs(this).getAttribute("aria-busy")},set busy(t){const e=Vs(this),n=Us(this);var s,r;return Bs(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!t,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),(function(t){t.disabled=r})),t}}});function er(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 ir(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?er(Object(i),!0).forEach((function(e){nr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):er(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function nr(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function sr(t,e){X(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),Q(t,e)}function rr(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let n={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};n=ir(ir({},n),{onCreate:()=>{vr(t)&&dt().enter(i(t),i(e))},onEvents:{enabled:()=>{vr(t)&&dt().enter(i(t))},disabled:()=>{vr(t)&&dt().exit(i(t))}}}),t._auiAlignment=new Ci(t,e,n)}}function ar(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function or(t,e){var i=e.currentTarget;i&&(sr(t,i),rr(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function lr(t=0){return function(e){e.open&&!It(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return J(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const cr={click(t,e){t.open&&!It(t).isPersistent()?t.open=!1:(sr(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:or,mouseleave:lr(1e3),focus:or,blur:lr(0)};function ur(t){var e=t.currentTarget;J(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function dr(t){var e=t.currentTarget;J(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function hr(t){var e=t.currentTarget;"hover"===e.respondsTo&&lr(1e3)(e)}function pr(t){J(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",ur),t.removeEventListener("mouseleave",dr),t.removeEventListener("blur",hr),"hover"===t.respondsTo&&(J(t).set("mouse-inside",!1),t.addEventListener("mouseenter",ur),t.addEventListener("mouseleave",dr),t.addEventListener("blur",hr))}function fr(t,e){return`${t}.nested-layer-${e}`}function gr(t){return It(t).show(),!0===It(t).isVisible()}function mr(t){return It(t).hide(),!1===It(t).isVisible()}function vr(t){return"hover"!==t.respondsTo}function br(t){t.__initialised||(It(t),i(t).on({[`${gt}show`]:function(){const t=this;!function(t){let e=i(t);const n=t.id,s=t=>e.find(G(t.target)).length<1;i(document).on(fr("aui-layer-show",n),(t=>{s(t)||e.attr("persistent","")})).on(fr("aui-layer-hide",n),(t=>{s(t)||e.removeAttr("persistent")})).on(fr("select2-opening",n),(()=>{e.attr("persistent","")})).on(fr("select2-close",n),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),X(t,(function(e){rr(t,e),e.setAttribute("aria-expanded","true")}))},[`${gt}hide`]:function(){const t=this;!function(t){const e=t.id;i(document).off(fr("aui-layer-hide",e)).off(fr("aui-layer-show",e)).off(fr("select2-opening",e)).off(fr("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):ar(t),X(t,(function(t){t.setAttribute("aria-expanded","false")})),Q(t,null)}}),t.__initialised=!0)}const yr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},wr=K("aui-inline-dialog",{prototype:{get open(){return It(this).isVisible()},set open(t){this.__propUpdate=!0,t?gr(this):mr(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){Ws.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=yr.attribute;return Ws.computeEnumValue(yr,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;Ws.setEnumAttribute(this,yr,t),e!==this.respondsTo&&pr(this)},message:function(t){var e,i,n;return i=t,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(e=this).respondsTo])&&n.indexOf(i.type)>-1&&cr[i.type](e,i),this}},attributes:{open:function(t,e){if(br(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){gr(t)||Bs(t,"open",!1)}if("removed"===e.type){mr(t)||Bs(t,"open",!0)}}},"responds-to":function(t,e){Ws.computeEnumValue(yr,e.oldValue)!==Ws.computeEnumValue(yr,e.newValue)&&pr(t)}},created:br,attached:function(t){ts(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")})),pr(t)},detached:function(t){Ei(t).then((()=>{ar(t),Z(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){i('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});Y("aui/inline-dialog2",wr),a("InlineDialog2",wr);const _r=wr;function xr(t){if(this.$el=i(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new xr(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(){kr(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){kr(i(this).siblings(".aui-nav")).toggle()})),n.each((function(){var t=i(this).parent("li[aria-expanded]"),e=i(this).find(".aui-icon"),n="true"===t.attr("aria-expanded");e.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}xr.prototype.isNested=function(){return 1===this.$treeParent.length},xr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},xr.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},xr.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},xr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const kr=ht("navigation",xr),Cr=K("aui-nav",{type:K.type.CLASSNAME,attached:function(t){new xr(t)},detached:function(t){i(t).removeData()}});a("navigation",kr);const Er=kr;function Tr(t,e,{currentProgress:n,value:s}){const r=i(t),a=i(e);"number"==typeof s&&s<=1&&s>=0&&(a.trigger("aui-progress-indicator-before-update",[n,s]),r.one("transitionend webkitTransitionEnd",(function(){a.trigger("aui-progress-indicator-after-update",[n,s])})),function(t,e,i){F(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(r,a,s))}function Dr(t){var e=i(t).first(),n=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),F(e),n.css("width","")}const Sr={indeterminate:!1,max:1,val:0};function Ar(t){return(0,Vt.isNumber)(t)&&(0,Vt.isFinite)(t)&&!(0,Vt.isNaN)(t)}function Ir(t,e=1){const i=parseFloat(t);return Ar(i)?i:Number(e)}function Or(t,e=1){return Number(parseFloat(t).toFixed(e))}function Nr(t){const{val:e,max:i}=t,n=function(t){return t>0?t:Sr.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=Or(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:Or(100*r,2)}}function Pr(t){const{val:e,valAsFraction:i,max:n}=Nr(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),Dr(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),Tr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function Mr(t,e){t._data.val=Ir(e.newValue,e.oldValue||Sr.val),Pr(t)}function Lr(t,e){t._data.max=Ir(e.newValue,e.oldValue||Sr.max),Pr(t)}const Rr=K("aui-progressbar",{template(t){t._data.max=Ir(t.getAttribute("max"),Sr.max),t._data.val=Ir(t.getAttribute("value"),Sr.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=Nr(t._data),r=t._data.indeterminate?"":`data-value="${n}"`;t.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${e}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(t){Pr(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:Sr.val,fallback:function(t,e){if(t._updating)return!1;Mr(t,e)}},max:{value:Sr.max,fallback:function(t,e){if(t._updating)return!1;Lr(t,e)}}},prototype:{get _data(){return this.__data||(this._data=(0,Vt.defaults)({},Sr))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,Pr(this)},get value(){const{val:t}=Nr(this._data);return t},set value(t){if(!Ar(t))return!1;const e={newValue:Or(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,Mr(this,e)},get max(){const{max:t}=Nr(this._data);return t},set max(t){if(!Ar(t))return!1;const e={newValue:Or(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,Lr(this,e)}}}),$r={update:O((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var n=i(t).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),Tr(s,n,{currentProgress:o,value:e}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:O(Dr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};a("progressBars",$r);const jr=$r;n(473);const Fr={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Hr(t,e){let n=Object.assign({},Fr,e);return t.find("th").each((function(t,e){const s=i(e);n.headers[t]={},s.hasClass("aui-table-column-unsortable")?n.headers[t].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[t].sorter="issue-key"))})),t.tablesorter(n)}let Br={setup:function(){i.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"}),i.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"}),i.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"}),i(".aui-table-sortable").each((function(){Hr(i(this))}))},setTableSortable:function(t,e){return Hr(t,e)}};i(Br.setup),a("tablessortable",Br);function Wr(t,e=""){var n=i(t),s=e||!1;n.each((function(){var t=i(this);t.attr("id")||t.attr("id",Ii(s))}))}a("_addID",Wr);const Vr=Wr;function Ur(t){return(t=i(t)).prop("scrollWidth")>t.prop("clientWidth")}a("isClipped",Ur);const zr=Ur;var qr=window.skateTemplateHtml;function Yr(t){let e=i(t),n=String(e.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Kr(t){let e=Yr(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,n){e+=i(n).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-${e}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${e}"\n href="#aui-tabs-responsive-dropdown-${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,n){function s(t,e,i){return t+e<=i}for(var r=0,a=0;s(r,n,e)&&a<t.length;a++){r+=i(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(t,e.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=i(t[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(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,n){function s(t){return t>0}for(var r=0;s(e)&&r<t.length;r++){var a=i(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,n),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 Gr(t){var e=i(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var n=Kr(e);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));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=s.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")&&s.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:s})}else p("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Qr(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Xr(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return"_internal-aui-tabs-"+(e||"")+(i&&"true"!==i?"-"+i:"")}function Zr(t){ra.change(i(t.target).closest("a")),t&&t.preventDefault()}function ta(t){t.forEach((function(t,e){!function(t,e){var n=i(t),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Jr.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=Jr.createResponsiveDropdownTrigger(s,e),c=Jr.createResponsiveDropdown(n,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(r.toArray(),n,a),p=Jr.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Jr.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Zr),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Jr.moveTabOutOfDropdown(i(this),a)})),Jr.removeResponsiveDropdown(c,a))}(t,e)}))}function ea(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function ia(t){var e=i(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var n=e.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each((function(){var t,e,n;e=i(t=this),n=Kr(e),Yr(t)||p('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),n?(Vr(e),e.attr("role","tab"),i(n).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)})),n.on("click.aui-tabs","a",Zr),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(sa)}(t)}}function na(){var t=i(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){ia(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Qr(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(Xr(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&Gr(a)}}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function sa(t){t.setAttribute("role","tabpanel")}var ra={setup:function(){!function(){const t=(0,Vt.debounce)(ta,200);t(ea()),i(window).on("resize.aui-tabs",(()=>t(ea())))}(),na(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var t=i(this);t.attr("title")||zr(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof i?t:document.querySelector(t),n=i(e).first(),s=n.closest(".aui-tabs");Gr(n),Qr(s)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=Yr(t);i&&window.localStorage.setItem(Xr(e),"#"+i)}else h("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(ra.setup);const aa=K("aui-tabs",{created:function(t){i(t).addClass("aui-tabs horizontal-tabs"),K.init(t),ia(t)},template:qr('<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(function(t){return t.querySelectorAll("aui-tabs-pane")}(this)).index(t);return e>-1&&ra.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[e].children[0]),this}}}),oa=K("aui-tabs-tab",{extends:"li",created:function(t){i(t).addClass("menu-item")},template:qr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),la=K("aui-tabs-pane",{attached:function(t){var e=i(function(t){return i(t).closest("aui-tabs").get(0)}(t)),n=i(t),s=e.find("aui-tabs-pane").index(n),r=new oa,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),qr.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:qr("<content></content>")});a("tabs",ra);const ca="_aui-form-notification-initialised",ua="data-aui-notification-wait",da="data-aui-notification-info",ha="data-aui-notification-error",pa=[ha,"data-aui-notification-success",ua,da];function fa(t){ga(t)||(!function(t){t.addClass(ca),ma(t)}(t),ya(t))}function ga(t){return t.hasClass(ca)}function ma(t,e){e=e||va(t),ba(t)===da&&t.after(function(t){if(t.length>1){return`<div class="description"><ul>${t.map((t=>`<li>${t}</li>`)).join("")}</ul></div>`}return`<div class="description">${t}</div>`}(e))}function va(t){var e=ba(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 ba(t){var e;return pa.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function ya(t){const e=i(t);if(!ga(e))return;const n=ba(e);xa(e,n===ua);const s=va(e);s&&n===ha?wa(e,s):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(ha)||e.parent().find(".error").remove()}function wa(t,e){let i=_a(t,"error");i.length>0&&i.remove(),t.after(function(t){return`<div class="error"><ul>${t.map((t=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">${t}</span>${t}</li>`)).join("")}</ul></div>`}(e))}function _a(t,e){return t.parent().find(`.${e}`)}function xa(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 ka=A("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});K("data-aui-notification-field",{attached:function(t){ka(),fa(i(t))},attributes:function(){const t={};return pa.forEach((function(e){t[e]=ya})),t}(),type:K.type.ATTRIBUTE}),Y("aui/form-notification");var Ca=["displayfield","watchfield","when","novalidate","state"],Ea=[];var Ta={register:function(t,e){var n;if("string"==typeof t)n=t;else{var s=function(t){var e=!1;return t.some((function(t){var n=-1!==i.inArray(t,Ca);return n&&(e=t),n})),e}(t);if(s)return h('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:n};return Ea.push(r),r},validators:function(){return Ea}};Y("aui/form-validation/validator-register",Ta);const Da=Ta;function Sa(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=Ma("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=Ma("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=Ma("maxlength",t.args);t.invalidate(e)}else t.validate()}function Aa(t){return"password"===t.getAttribute("type")}function Ia(t,e){var i=t.match(e);return!!i&&t===i[0]}function Oa(t){var e=Ma("pattern",t.args);Ia(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function Na(t){var e=Ma("required",t.args);t.el.value?t.validate():t.invalidate(e)}function Pa(t){var e=Ma("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(Ma("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(Ma("max",t.args)):t.validate()}}function Ma(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:La[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)}Da.register(["maxlength","minlength"],Sa),Da.register("[maxlength],[minlength]",Sa),Da.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=Ma("matchingfield",t.args,[e,n]);(Aa(t.el)||Aa(i))&&(s=Ma("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()})),Da.register(["doesnotcontain"],(function(t){var e=Ma("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),Da.register(["pattern"],Oa),Da.register("[pattern]",Oa),Da.register(["required"],Na),Da.register("[required]",Na),Da.register(["min","max"],Pa),Da.register("[min],[max]",Pa),Da.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=Ma("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");Ia(t.el.value,a)?t.validate():t.invalidate(i)})),Da.register(["minchecked","maxchecked"],(function(t){var e=i(t.el).find(":checked").length,n=!t.args("minchecked")||e>=t.args("minchecked"),s=!t.args("maxchecked")||e<=t.args("maxchecked"),r=Ma("minchecked",t.args),a=Ma("maxchecked",t.args);n&&s?t.validate():n?s||t.invalidate(a):t.invalidate(r)}));var La={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")};Y("aui/form-validation/basic-validators");const Ra="data-aui-notification-",$a="invalid",ja="valid",Fa="validating",Ha="unvalidated",Ba="_aui-form-validation-initialised",Wa="_aui-internal-field-state-changed";function Va(t){(function(t){return t.hasClass(Ba)})(t)||(!function(t){t.addClass(Ba),ma(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=za(t,"when"),i=za(t,"watchfield");(i?t.add("#"+i):t).on(e,(function(){Ua(t)}))}(t)}(t),Ka(t,Ha))}function Ua(t){if(!za(t,"novalidate"))return function(t){!function(t){Ja(Qa(t),"none")}(t);var e=function(t){var e=[];return qa().forEach((function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)})),e}(t);Ka(t,Fa);var n=function(t,e){var n=[];return e.forEach((function(e){var s=qa()[e].validatorFunction,r=new i.Deferred;s(function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Ka(t,$a,i),e.reject()},args:Ya(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,r)),n.push(r)})),n}(t,e),s=i.when.apply(i,n);return s.done((function(){Ka(t,ja)})),s}(t);Ka(t,ja)}function za(t,e){var i=t.attr("data-aui-validation-"+e);return i||(i={when:"change"}[e]),i}function qa(){return Da.validators()}function Ya(t){return function(e){return t.attr("data-aui-validation-"+e)||t.attr(e)}}function Ka(t,e,n){if(t.attr("data-aui-validation-state",e),e!==Ha){t.trigger(i.Event(Wa));var s=Qa(t),r={validating:"wait",invalid:"error",valid:"success"},a=r[e];e===Fa?function(t){setTimeout((function(){Xa(t)===Fa&&(Ja(t,"wait"),xa(t,!0))}),500)}(t):Ja(s,a,n)}}function Ja(t,e,i){const n=function(t){return t.is("[data-aui-notification-wait]")}(t);!function(t){Ga(t,"wait"),xa(t,!1),Ga(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Ga(t,"error");else{const n=t.attr(Ra+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr(Ra+e,JSON.stringify(a)),"error"===e&&wa(t,a)}}function Ga(t,e){t.removeAttr(Ra+e),"error"===e&&_a(t,e).remove()}function Qa(t){var e=za(t,"displayfield");return void 0===e?t:i("#"+e)}function Xa(t){return t.attr("data-aui-validation-state")}function Za(t,e){e.preventDefault(),t.one(Wa,(function(){t.trigger("submit")}))}function to(t,e){var i="[data-aui-validation-state="+e+"]";return t.find(i)}i(document).on("submit",(function(t){var e=t.target,n=i(e),s=function(t){return a=t.find("."+Ba),e=i.map(a,(function(t){return Xa(i(t))})),n=-1!==e.indexOf($a),s=-1!==e.indexOf(Ha),r=-1!==e.indexOf(Fa),n?$a:s?Ha:r?Fa:ja;var e,n,s,r;var a}(n);if(s===Ha)Za(n,t),function(t){to(t,Ha).each((function(t,e){eo.validate(i(e))}))}(n);else if(s===Fa)Za(n,t);else if(s===$a)t.preventDefault(),function(t){to(t,$a).first().focus()}(n);else if(s===ja){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const eo={register:Da.register,validate:function(t){Ua(t=i(t))}};K("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Va(i(t)),K.init(t)},type:K.type.ATTRIBUTE}),Y("aui/form-validation",eo),a("formValidation",eo);var io=O((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"});const no=io;a("debounce",io),a("debounceImmediate",O((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 so=i(window);function ro(t){var e,n=this;this.element=t,this.$element=i(t),this.index=i("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=i(n.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}ro.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=i(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=i(this).parent(),n=e.outerWidth(!0);t.totalWidth+=n,t.menuItems.push({$element:e,outerWidth:n})})),this.rightMostNavItemIndex=this.menuItems.length-1,so.on("resize",this._resizeHandler=no((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(){so.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-${this.index}`,K.init(e);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,K.init(n),e.appendChild(n);var s=function(t){var e=document.createElement("a");return e.setAttribute("class","aui-dropdown2-trigger"),e.setAttribute("href","#"),e.id=t.id+"-trigger",e.setAttribute("aria-controls",t.id),e.innerHTML=I18n.getText("aui.words.more"),e}(e);return t.appendChild(s),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=i(t).outerWidth(!0),i(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+t,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(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=ue().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-t+1,r=n;r>=s;r--){var a=this.menuItems[r].$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=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}K.init(l),ue().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()}};const ao=function(t){let e=t._header;return e instanceof ro||(e=new ro(t),e.init(),t._header=e),e};function oo(){i(".aui-header").each((function(){ao(this)}))}i(oo);const lo={};lo.setup=O(oo,"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",lo);const co=K("aui-header-end",{type:K.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?ao(e):console.log("Could not async. initialise aui-header")}});var uo=n(207),ho=n.n(uo);const po=({minDate:t,maxDate:e,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:e||n.attr("max"),minDate:t||n.attr("min"),nextText:">",onSelect:function(t){n.val(t),n.trigger("change"),r(),s&&s.call(this,t)},onChangeMonthYear:a,prevText:"<"}),fo=(t,e)=>{let n,s,r,a=!1;const o=i("body"),l=e=>{let n=i(e.target),r=n.closest(s).length||n.is(t),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===q.ESCAPE)return h(),void(a=!1);n.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:t})=>(n=(({horizontalAlignment:t,datePickerUUID:e})=>{const n=new _r;n.id=e;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${t}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(t),datePickerUUID:e}),r=t.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.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)}}},go=function(t){const e=t.getField(),n=t.getOptions(),s=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:h,destroyPolyfill:p,createPolyfill:f}=fo(e,s),g=t=>{i(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.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=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}n.languageCode in mo.prototype.localisations||(n.languageCode="");const y=mo.prototype.localisations;if(e.attr("aria-controls",s),void 0===r){void 0!==e.attr("step")&&d("WARNING: The date picker polyfill currently does not support the step attribute!");const s=po({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:e,onSelect:n.onSelect,hide:t.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:t,popupContents:e,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(t),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),e.append(a)),r})({config:o,popupContents:a({$field:e}),getCalendarNode:h,hint:n.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",n.placeholder),e.prop("type","text"),e.val(e.attr("value")),e.trigger("propertychange"),e.attr("data-aui-dp-uuid",s)};function mo(t,e){let n={};const s=Ii("date-picker"),r=i(t),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!mo.prototype.browserSupportsDateField,e=!1!==n.overrideBrowserDefault;(t||e)&&go(a)},reconfigure:t=>{n=i.extend(void 0,mo.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function vo(t,e){const n=i.extend({nextText:">",prevText:"<"},e),s=i(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const t=i("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(n.hint),s.append(t)}return s.reconfigure=t=>{s.datepicker("destroy"),s.datepicker(t)},s.destroy=()=>{s.datepicker("destroy")},s}mo.prototype.browserSupportsDateField=function(){if(void 0===oe){var t=document.createElement("input");t.setAttribute("type","date"),oe="date"===t.type}return oe}(),mo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:ho().W3C},mo.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 bo="aui-datepicker",yo=t=>function(e){let i=this.data(bo);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(bo,i)),i};i.fn.datePicker=yo(mo),a("DatePicker",mo),i.fn.calendarWidget=yo(vo),a("CalendarWidget",vo);const wo=mo;n(251),n(993),n(927),n(757),n(940);const _o={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"},xo=us().View,ko=us().View,Co=us().View,Eo={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};n(562);const To={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"},Do='<aui-spinner size="small"></aui-spinner>',So="aui-spinner";function Ao(t){0===t.find(So).length&&t.find(`.${_o.STATUS}`).append(Do)}function Io(t){t.find(`.${_o.STATUS} aui-spinner`).remove()}var Oo=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const No=us().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=i(this.el),this._event=To,this.classNames=_o,this.dataKeys=Eo,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?i("<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 Oo&&(e=this.$el.find(":submit")).length&&(t=i("<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 Oo&&(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 Ao(this.$el),this},hideLoading:function(){return Io(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,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,t):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(t,e,i){400===i.status&&(n.renderErrors(e.errors),n.trigger(n._event.VALIDATION_ERROR,e.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return i("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&i.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&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),i.each(this.columns,(function(n,s){var r,a,o=t.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+s.id,o),r=e.isCreateRow&&s.createView?new s.createView({model:e.model}).render(l[0]):s.editView?new s.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=i("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),s.styleClass&&a.addClass(s.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=i('<td class="aui-restfultable-operations" />');return t?e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Po=document||{},Mo=i(Po);function Lo(t,e){Mo.trigger(t,e)}function Ro(t,e,n){i(e).trigger(t,n),Lo(t,n),e.id&&Lo(e.id+"-"+t,n)}var $o=us().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)},us().sync.apply(us(),arguments)},save:function(t,e){var n,s=this,r=(e=e||{}).error,a=e.success;e.error=function(t,e){var n=i.parseJSON(e.responseText||e.data);r&&r.call(s,s,n,e)},this.isNew()?us().Model.prototype.save.call(this,t,e):t&&((n=new($o.extend({url:this.url()}))({id:this.id})).save=us().Model.prototype.save,e.success=function(t,e){s.clear().set(t.toJSON()),a&&a.call(s,s,e)},n.save(t,e))},destroy:function(t){t=t||{};var e=this,n=this.url();return i.ajax({url:n,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={},n=this.toJSON();if(i.each(t,(function(t,s){n[t]?n[t]&&n[t]!==s&&("object"==typeof s&&(0,Vt.isEqual)(s,n[t])||(e[t]=s)):"string"==typeof s?""!==i.trim(s)&&(e[t]=s):i.isArray(s)?0!==s.length&&(e[t]=s):e[t]=s})),!(0,Vt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var n;400!==t.status&&(n=i.parseJSON(t.responseText||t.data),Ro(To.SERVER_ERROR,this,[n,t,e]))},fetch:function(t){t=t||{},this.clear(),us().Model.prototype.fetch.call(this,t)}});const jo=$o,Fo=us().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=To,this.classNames=_o,this.dataKeys=Eo,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=i(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 i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Ao(this.$el),this},hideLoading:function(){return Io(this.$el),this},edit:function(t){var e;return e=i(t.target).is("."+this.classNames.EDITABLE)?i(t.target).attr("data-field-name"):i(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 i("<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(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),s=i(`<td class="${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&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,(function(n,s){var r,a=i("<td />"),o=e[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(t.$el),r&&i.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)})),this.$el.append(n).append(s).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}});var Ho=us().View.extend({initialize:function(t){var e=this;if(e.options=i.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=To,e.classNames=_o,e.dataKeys=Eo,this.$table=i(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<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 n=i.isFunction(t.header)?t.header():t.header;void 0===n&&(h("You have not specified [header] for column ["+t.id+"]. Using id for now..."),n=t.id),e.$theadRow.append("<th>"+n+"</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,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(e.classNames.MOVEABLE);return n.children().each((function(){var t=i(this),e=parseInt(0+t.css("border-left-width"),10),n=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+n;s.append(i("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(t,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(e.classNames.MOVEABLE).children().each((function(t){i(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'"> </td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),e.getRowFromElement(n.item[0]).trigger(e._event.MODAL)},stop:function(t,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(n.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!i(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=i('<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;i.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):i.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,n=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var s=e.options.reverseOrder?n(t.nextItem):n(t.prevItem);i.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){t.row.hideLoading()},success:function(t){Ro(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var n=i.parseJSON(t.responseText||t.data);Ro(e._event.SERVER_ERROR,e,[n,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(...e){return this.tableRows=t.getRows(),us().Collection.prototype.remove.apply(this,e),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]),Ro(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=i('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+Do+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(),Ro(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Ro(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 i(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<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 n=i(this).data(t.dataKeys.ROW_VIEW);n&&e.push(n)})),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){Ro(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 Fo&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=i.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(t=[]){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||jo,allowEdit:!0,views:{editRow:No,row:Fo},Collection:us().Collection.extend({url:t.resources.self,model:t.model||jo}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});Ho.ClassNames=_o,Ho.CustomCreateView=xo,Ho.CustomEditView=ko,Ho.CustomReadView=Co,Ho.DataKeys=Eo,Ho.EditRow=No,Ho.EntryModel=jo,Ho.Events=To,Ho.Row=Fo,a("RestfulTable",Ho);const Bo=Ho;function Wo(t){return i(t).clone().removeAttr("id")}a("clone",Wo);const Vo=Wo;var Uo=window.DocumentTouch;const zo="ontouchstart"in window||Uo&&document instanceof Uo;function qo(t,e,i,n){t.find(`[${n}]`).attr(n,((t,n)=>e===n?i:void 0))}function Yo(t,e){let n=i("<div></div>");n.append(t),n.find("[id]").each(((t,i)=>{const s=e(`${i.id}-`);!function(t,e,i){qo(t,e,i,"aria-controls"),qo(t,e,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Ko(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?Ko(Object(i),!0).forEach((function(e){Go(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ko(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Go(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Qo(t){return t.offset().top}function Xo(t){this.$el=i(t),this.$el.length&&(this.$body=i("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 il,function(t){if(!i(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const n=i(e.target);ol(t,n)}))})(t),zo&&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 ${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)")&&i("body").addClass("aui-page-sidebar-touch");var e=null,n=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};i(window).on("scroll resize",n),n(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(i.Event(Zo+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),i(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var s=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==q.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===q.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)}i(document).on("keypress",s),t._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(Jo(Jo({},cl),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=i(this),n=!1===t.isCollapsed();return!0===rl(e)||n}})),t.$el.tooltip(Jo(Jo({},cl),{},{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 n=e.target,s=sl(n);if(!s)return;var a=i(s);r(e)&&s.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(n.focus(),i(this).off("keydown"),al())})))}}))}(this),function(t){i(t.collapsedTriggersSelector).each((function(){var e=i(this);ol(t,e)}))}(this))}var Zo="_aui-internal-sidebar-";function tl(t){return i.map(t.split(" "),(function(t){return Zo+t})).join(" ")}function el(){return document.querySelectorAll(Xo.prototype.inlineDialogSelector)}function il(){this.inlineDialog=null}function nl(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function sl(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function rl(t){return 0!==nl(t).length}function al(){var t=el();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function ol(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),rl(e))){var n=document.createElement("aui-inline-dialog"),s=Ii("sidebar-submenu");return e.attr("aria-controls",s),e.attr("data-aui-trigger",""),K.init(e),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),t.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(Xo.prototype.inlineDialogClass),document.body.appendChild(n),K.init(n),function(t,e,n){n.addEventListener("aui-layer-show",(function(s){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(s)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");e.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=ll;var n=t.is("a")?t.text():t.children(".aui-nav-heading").text(),s=i(e).find(".aui-navgroup-inner");function r(t){const e=Vo(t);return Yo(e,Ii),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}s.children(".aui-nav-heading").attr("title",n).children("strong").text(n),r(nl(t)).appendTo(s)}(e,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,n),n}}Xo.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tl(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Xo.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=tl(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Xo.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Xo.prototype.setTopPosition=function(t=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",t>Qo(this.$el)),this},Xo.prototype.setPosition=O(Xo.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Xo.prototype.setLeftPosition=function(t=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Xo.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:i.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:i.noop,wide:i.noop},e.expanded.narrow={narrow:i.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:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[n][s][r](this),this},Xo.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=i.Event(Zo+"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),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(Zo+"collapse-end",{isResponsive:t}))),this},Xo.prototype.collapse=function(){return this._collapse(!1)},Xo.prototype._expand=function(t,e){var n=i.Event(Zo+"expand-start",{isResponsive:e});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(Zo+"expand-end",{isResponsive:e})),this},Xo.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Xo.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Xo.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Xo.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Xo.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)},Xo.prototype.reflow=function(t=window.pageYOffset,e=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=Qo(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))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Xo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this},Xo.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Xo.prototype.collapsedTriggersSelector=[Xo.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Xo.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Xo.prototype.tooltipClassName="aui-sidebar-section-tooltip",Xo.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Xo.prototype.inlineDialogSelector="."+Xo.prototype.inlineDialogClass,il.prototype.submenu=function(t){return dl(),nl(t)},il.prototype.hasSubmenu=function(t){return dl(),rl(t)},il.prototype.submenuHeadingHeight=function(){return dl(),34},il.prototype.isShowing=function(){return dl(),Xo.prototype.isSubmenuVisible()},il.prototype.show=function(t,e){dl(),function(t){sl(t).open=!0}(e)},il.prototype.hide=function(){dl(),al()},il.prototype.inlineDialogShowHandler=function(){dl()},il.prototype.inlineDialogHideHandler=function(){dl()},il.prototype.moveSubmenuToInlineDialog=function(){dl()},il.prototype.restoreSubmenu=function(){dl()},Xo.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(el(),(function(t){return t.open}))},Xo.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const ll='<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 cl={gravity:"w",title:function(){var t=i(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 ul=ht("sidebar",Xo);i((function(){ul(".aui-sidebar")}));var dl=A("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});a("sidebar",ul);const hl=ul;n(42),n(529);function pl(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===q.ESCAPE&&n.is(":visible")&&u.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=i.extend({},t,arguments[3])),t=i.extend({},e,t);var n=i("<div></div>").addClass("aui-popup");t.id&&n.attr("id",t.id);var s=2600;i(".aui-dialog").each((function(){var t=i(this);s=t.css("z-index")>s?t.css("z-index"):s}));var r=function e(i,r){return t.width=i=i||t.width,t.height=r=r||t.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),e}(t.width,t.height);i("body").append(n),n.hide(),c(n);var a=i(".aui-blanket"),o=function(t,e){var n=i(t,e);return!!n.length&&(n.focus(),!0)},l=function(e){if(0===i(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",e))||o(n,i(".dialog-button-panel",e))||o(n,i(".dialog-page-menu",e))}},u={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){i(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),W(),0!==(a=i(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){n.is(":visible")&&u.hide()})),n.show(),pl.current=this,l(n),i(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){i(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&V();var e=document.activeElement;this.element.has(e).length&&e.blur(),i(document).trigger("hideLayer",["popup",this]),pl.current=null,this.enable()},element:n,remove:function(){n.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=i("<div class='dialog-blanket'> </div>").css({height:n.height(),width:n.width()}),n.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return u}var fl=function(){function t(t,e,n,s){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<button></button>").html(e).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&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,n,s,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function n(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 s(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=n("left","button"),t.prototype.moveDown=t.prototype.moveRight=n("right","button"),t.prototype.remove=s("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 r=function(t,e,n,s,r){n instanceof i||(n=i(n)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=i("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);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()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.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=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<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,n){var s={};+t||(t=(s=Object(t)).width,e=s.height,n=s.id),this.height=e||480,this.width=t||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=pl(s),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=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=i("<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=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).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()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();fl=N(fl,"Dialog constructor",{alternativeName:"Dialog2"}),pl=N(pl,"Dialog popup constructor",{alternatveName:"Dialog2"}),a("Dialog",fl),a("popup",pl);const gl=!1;var ml=-1!==navigator.platform.indexOf("Mac"),vl=-1!==navigator.userAgent.indexOf("Safari"),bl=/^(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 yl=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 wl(t){var e=[],n=i.Callbacks();function s(t){!pl.current&&n&&n.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?i.trim(t).split(" "):[t]).forEach((function(t){!function(t){var n=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(bl);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}(n)?"keydown":"keypress";e.push(n),i(document).on(a,gl,n,s),i(document).on(a+" keyup",gl,n,r)}(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),wl.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(t){for(var n=i(t),s=n.attr("title")||"",r=e.slice(),a=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=!l,u=c?s:s.substring(0,s.length-l.length);r.length;){var d=r.shift();a.some((function(t){return(0,Vt.isEqual)(d,t)}))||(l=o(d.slice(),l,c),c=!1)}ml&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",u+l),n.data("kbShortcutAppended",l),n.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=i(t),n=e.data("kbShortcutAppended");if(n){var s=e.attr("title");e.attr("title",s.replace(n,"")),e.removeData("kbShortcutAppended"),e.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}wl.makeShortcut=function(t){var e=t.executor,n=t.bindKeys,s=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return e.add((function(){const e=i(n);let s=e.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",(function(t){t.keyCode===q.ESCAPE&&s&&s.removeClass(r)})),s.length&&s.removeClass(r),s=t(s,e,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,n){var s;return n&&0===t.length?e.eq(0):(s=i.inArray(t.get(0),e))<e.length-1?(s+=1,e.eq(s)):n?e.eq(0):t})),moveToPrevItem:c((function(t,e,n){var s;return n&&0===t.length?e.filter(":last"):(s=i.inArray(t.get(0),e))>0?(s-=1,e.eq(s)):n?e.filter(":last"):t})),click:function(t){return l.push(t),s(t),e.add((function(){const e=i(t);yl(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),s(t),e.add((function(){var e=i(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),s(t),e.add((function(){const e=i(t);e.length>0&&(yl(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),s(t),e.add((function(e){var n=i(t);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&e.preventDefault())})),this},or:function(t){return n(t),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},wl.fromJSON=function(t,e){var n=[];return t&&i.each(t,(function(t,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)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)}i.isArray(o)||p("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,(function(){var t=this;e&&ml&&(t=i.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var s=wl(t);s[r].apply(s,o),n.push(s)}))})),n},i(document).on("iframeAppended",(function(t,e){i(e).load((function(){i(e).contents().on("keyup keydown keypress",(function(t){vl&&"keypress"===t.type||i(t.target).is(":input")||i.event.trigger(t,arguments,document,!0)}))}))})),a("whenIType",wl);const _l=wl,{FocusManager:xl,InlineDialog2:kl,LayerManager:Cl,ProgressiveDataSet:El,clone:Tl,debounce:Dl,debounceImmediate:Sl,dim:Al,escapeHtml:Il,formValidation:Ol,id:Nl,isClipped:Pl,keyCode:Ml,layer:Ll,messages:Rl,populateParameters:$l,params:jl,responsiveheader:Fl,select:Hl,tablessortable:Bl,tabs:Wl,undim:Vl,_addID:Ul}=window.AJS,{contextPath:zl}=window.AJS})(),s})()}));
|
|
102
102
|
//# sourceMappingURL=aui-prototyping.js.map
|