@atlassian/aui
Version:
Atlassian User Interface Framework
1 lines • 475 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define("aui",["jquery"],e):"object"==typeof exports?exports.aui=e(require("jquery")):t.AJS=e(t.jQuery)}(window,function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=298)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=window.jQuery||window.Zepto,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t,e){"object"!==n(window[s])&&(window[s]={});return window[s][t]=e};var s="AJS";t.exports=e.default},function(t,e,i){"use strict";i(284)},function(t,e,i){"use strict";i(2),i(282)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(236)).default.noConflict();e.default=n,t.exports=e.default},function(t,e,i){"use strict";i(2),i(3),i(268)},function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.error=e.warn=e.log=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i(1));function s(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],console,arguments)}}var r=s("log"),a=s("warn"),o=s("error");(0,n.default)("error",o),(0,n.default)("log",r),(0,n.default)("warn",a),e.log=r,e.warn=a,e.error=o},function(t,e,i){var n,s,r;s=[i(6)],void 0===(r="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.12.1"})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){window.define&&(0,window.define)(t,[],function(){return e});return e},t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageLogger=e.propertyDeprecationSupported=e.obj=e.prop=e.css=e.construct=e.fn=void 0;var n=r(i(0)),s=r(i(1));function r(t){return t&&t.__esModule?t:{default:t}}var a=Object.prototype.hasOwnProperty,o=[],l=[];function u(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function c(t,e){if("function"==typeof t)return t;var i=!1;return e=e||{},function(n){var s=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===o.indexOf(s)){o.push(s),i=!0;var r="DEPRECATED "+(e.deprecationType+" "||"")+"- "+function(t){return(t+="")?t.charAt(0).toUpperCase()+t.substring(1):""}(t)+" has been deprecated"+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion||"a future release")+".";e.alternativeName&&(r+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(r+=" "+e.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+s,e.extraObject?u(r+="\n",e.extraObject,s):u(r,s)}}}function d(t,e){var i=t.options.displayName;i=i?" ("+i+")":"";var s=n.default.extend({deprecationType:"CSS",extraObject:e},t.options);c("'"+t.selector+"' pattern"+i,s)()}function h(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=c(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function f(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var s=h(t,e,i);return s.prototype=t.prototype,n.default.extend(s,t),s}var p=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),e.propertyDeprecationSupported=p=!0)}catch(t){}function g(t,e,i){if("function"==typeof t[e]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||e;t[e]=h(t[e],n,i)}else!function(t,e,i){if(p){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=c(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 m(t,e,i){for(var s in i=i||{},t)a.call(t,s)&&(i.deprecationType=i.deprecationType||"JS",i.displayName=e+s,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+s,g(t,s,n.default.extend({},i)))}function v(t,e){window.MutationObserver?("string"==typeof t&&(t=[t]),t.forEach(function(t){return function(e){var i={selector:e,options:t||{}};l.push(i);for(var n=document.querySelectorAll(e),s=0;s<n.length;s++)d(i,n[s])}}(e))):u("CSS could not be deprecated as Mutation Observer was not found.")}function b(t){return function(e){(function(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector).call(t,e)})(t,e.selector)&&d(e,t)}}if(window.MutationObserver){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&&l.forEach(b(n))}})}).observe(document,{childList:!0,subtree:!0})}var y={fn:h,construct:f,css:v,prop:g,obj:m,propertyDeprecationSupported:p,getMessageLogger:c};(0,s.default)("deprecate",y),e.fn=h,e.construct=f,e.css=v,e.prop=g,e.obj=m,e.propertyDeprecationSupported=p,e.getMessageLogger=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(i(56)),s=r(i(1));function r(t){return t&&t.__esModule?t:{default:t}}var a={keys:r(i(226)).default,getText:function(t){var e=Array.prototype.slice.call(arguments,1);return Object.prototype.hasOwnProperty.call(this.keys,t)?n.default.apply(null,[this.keys[t]].concat(e)):t}};(0,s.default)("I18n",a),e.default=a,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={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};(0,function(t){return t&&t.__esModule?t:{default:t}}(i(1)).default)("keyCode",n),e.default=n,t.exports=e.default},function(t,e,i){var n,s;!function(r,a){n=[i(22),i(6),e],void 0===(s=function(t,e,i){r.Backbone=function(t,e,i,n){var s=t.Backbone,r=[],a=r.slice;e.VERSION="1.1.2",e.$=n,e.noConflict=function(){return t.Backbone=s,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o=e.Events={on:function(t,e,i){if(!u(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var n=this._events[t]||(this._events[t]=[]);return n.push({callback:e,context:i,ctx:i||this}),this},once:function(t,e,n){if(!u(this,"once",t,[e,n])||!e)return this;var s=this,r=i.once(function(){s.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,n)},off:function(t,e,n){var s,r,a,o,l,c,d,h;if(!this._events||!u(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(o=t?[t]:i.keys(this._events),l=0,c=o.length;l<c;l++)if(t=o[l],a=this._events[t]){if(this._events[t]=s=[],e||n)for(d=0,h=a.length;d<h;d++)r=a[d],(e&&e!==r.callback&&e!==r.callback._callback||n&&n!==r.context)&&s.push(r);s.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=a.call(arguments,1);if(!u(this,"trigger",t,e))return this;var i=this._events[t],n=this._events.all;return i&&c(i,e),n&&c(n,arguments),this},stopListening:function(t,e,n){var s=this._listeningTo;if(!s)return this;var r=!e&&!n;for(var a in n||"object"!=typeof e||(n=this),t&&((s={})[t._listenId]=t),s)(t=s[a]).off(e,n,this),(r||i.isEmpty(t._events))&&delete this._listeningTo[a];return this}},l=/\s+/,u=function(t,e,i,n){if(!i)return!0;if("object"==typeof i){for(var s in i)t[e].apply(t,[s,i[s]].concat(n));return!1}if(l.test(i)){for(var r=i.split(l),a=0,o=r.length;a<o;a++)t[e].apply(t,[r[a]].concat(n));return!1}return!0},c=function(t,e){var i,n=-1,s=t.length,r=e[0],a=e[1],o=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,a);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,a,o);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}};i.each({listenTo:"on",listenToOnce:"once"},function(t,e){o[e]=function(e,n,s){var r=this._listeningTo||(this._listeningTo={}),a=e._listenId||(e._listenId=i.uniqueId("l"));return r[a]=e,s||"object"!=typeof n||(s=this),e[t](n,s,this),this}}),o.bind=o.on,o.unbind=o.off,i.extend(e,o);var d=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(d.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var s,r,a,o,l,u,c,d;if(null==t)return this;if("object"==typeof t?(r=t,n=e):(r={})[t]=e,n||(n={}),!this._validate(r,n))return!1;for(s in a=n.unset,l=n.silent,o=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=i.clone(this.attributes),this.changed={}),d=this.attributes,c=this._previousAttributes,this.idAttribute in r&&(this.id=r[this.idAttribute]),r)e=r[s],i.isEqual(d[s],e)||o.push(s),i.isEqual(c[s],e)?delete this.changed[s]:this.changed[s]=e,a?delete d[s]:d[s]=e;if(!l){o.length&&(this._pending=n);for(var h=0,f=o.length;h<f;h++)this.trigger("change:"+o[h],this,d[o[h]],n)}if(u)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e,n=!1,s=this._changing?this._previousAttributes:this.attributes;for(var r in t)i.isEqual(s[r],e=t[r])||((n||(n={}))[r]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){void 0===(t=t?i.clone(t):{}).parse&&(t.parse=!0);var e=this,n=t.success;return t.success=function(i){if(!e.set(e.parse(i,t),t))return!1;n&&n(e,i,t),e.trigger("sync",e,i,t)},P(this,t),this.sync("read",this,t)},save:function(t,e,n){var s,r,a,o=this.attributes;if(null==t||"object"==typeof t?(s=t,n=e):(s={})[t]=e,n=i.extend({validate:!0},n),s&&!n.wait){if(!this.set(s,n))return!1}else if(!this._validate(s,n))return!1;s&&n.wait&&(this.attributes=i.extend({},o,s)),void 0===n.parse&&(n.parse=!0);var l=this,u=n.success;return n.success=function(t){l.attributes=o;var e=l.parse(t,n);if(n.wait&&(e=i.extend(s||{},e)),i.isObject(e)&&!l.set(e,n))return!1;u&&u(l,t,n),l.trigger("sync",l,t,n)},P(this,n),"patch"===(r=this.isNew()?"create":n.patch?"patch":"update")&&(n.attrs=s),a=this.sync(r,this,n),s&&n.wait&&(this.attributes=o),a},destroy:function(t){var e=this,n=(t=t?i.clone(t):{}).success,s=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(i){(t.wait||e.isNew())&&s(),n&&n(e,i,t),e.isNew()||e.trigger("sync",e,i,t)},this.isNew())return t.success(),!1;P(this,t);var r=this.sync("delete",this,t);return t.wait||s(),r},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||O();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1)}});i.each(["keys","values","pairs","invert","pick","omit"],function(t){d.prototype[t]=function(){var e=a.call(arguments);return e.unshift(this.attributes),i[t].apply(i,e)}});var h=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},f={add:!0,remove:!0,merge:!0},p={add:!0,remove:!1};i.extend(h.prototype,o,{model:d,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,p))},remove:function(t,e){var n,s,r,a,o=!i.isArray(t);for(t=o?[t]:i.clone(t),e||(e={}),n=0,s=t.length;n<s;n++)(a=t[n]=this.get(t[n]))&&(delete this._byId[a.id],delete this._byId[a.cid],r=this.indexOf(a),this.models.splice(r,1),this.length--,e.silent||(e.index=r,a.trigger("remove",a,this,e)),this._removeReference(a,e));return o?t[0]:t},set:function(t,e){(e=i.defaults({},e,f)).parse&&(t=this.parse(t,e));var n,s,r,a,o,l,u,c=!i.isArray(t);t=c?t?[t]:[]:i.clone(t);var h=e.at,p=this.model,g=this.comparator&&null==h&&!1!==e.sort,m=i.isString(this.comparator)?this.comparator:null,v=[],b=[],y={},_=e.add,w=e.merge,C=e.remove,x=!(g||!_||!C)&&[];for(n=0,s=t.length;n<s;n++){if(o=t[n]||{},r=o instanceof d?a=o:o[p.prototype.idAttribute||"id"],l=this.get(r))C&&(y[l.cid]=!0),w&&(o=o===a?a.attributes:o,e.parse&&(o=l.parse(o,e)),l.set(o,e),g&&!u&&l.hasChanged(m)&&(u=!0)),t[n]=l;else if(_){if(!(a=t[n]=this._prepareModel(o,e)))continue;v.push(a),this._addReference(a,e)}a=l||a,!x||!a.isNew()&&y[a.id]||x.push(a),y[a.id]=!0}if(C){for(n=0,s=this.length;n<s;++n)y[(a=this.models[n]).cid]||b.push(a);b.length&&this.remove(b,e)}if(v.length||x&&x.length)if(g&&(u=!0),this.length+=v.length,null!=h)for(n=0,s=v.length;n<s;n++)this.models.splice(h+n,0,v[n]);else{x&&(this.models.length=0);var k=x||v;for(n=0,s=k.length;n<s;n++)this.models.push(k[n])}if(u&&this.sort({silent:!0}),!e.silent){for(n=0,s=v.length;n<s;n++)(a=v[n]).trigger("add",a,this,e);(u||x&&x.length)&&this.trigger("sort",this,e)}return c?t[0]:t},reset:function(t,e){e||(e={});for(var n=0,s=this.models.length;n<s;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return a.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return i.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var i in t)if(t[i]!==e.get(i))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){void 0===(t=t?i.clone(t):{}).parse&&(t.parse=!0);var e=t.success,n=this;return t.success=function(i){var s=t.reset?"reset":"set";n[s](i,t),e&&e(n,i,t),n.trigger("sync",n,i,t)},P(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?i.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var n=this,s=e.success;return e.success=function(t,i){e.wait&&n.add(t,e),s&&s(t,i,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof d)return t;(e=e?i.clone(e):{}).collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){("add"!==t&&"remove"!==t||i===this)&&("destroy"===t&&this.remove(e,n),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});i.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],function(t){h.prototype[t]=function(){var e=a.call(arguments);return e.unshift(this.models),i[t].apply(i,e)}});i.each(["groupBy","countBy","sortBy","indexBy"],function(t){h.prototype[t]=function(e,n){var s=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,s,n)}});var g=e.View=function(t){this.cid=i.uniqueId("view"),t||(t={}),i.extend(this,i.pick(t,v)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},m=/^(\S+)\s*(.*)$/,v=["model","collection","el","id","attributes","className","tagName","events"];i.extend(g.prototype,o,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,i){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],!1!==i&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=i.result(this,"events")))return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var s=e.match(m),r=s[1],a=s[2];n=i.bind(n,this),r+=".delegateEvents"+this.cid,""===a?this.$el.on(r,n):this.$el.on(r,a,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className"));var n=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,s){var r=y[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:r,dataType:"json"};if(s.url||(a.url=i.result(n,"url")||O()),null!=s.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),s.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){a.type="POST",s.emulateJSON&&(a.data._method=r);var o=s.beforeSend;s.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",r),o)return o.apply(this,arguments)}}"GET"===a.type||s.emulateJSON||(a.processData=!1),"PATCH"===a.type&&b&&(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=s.xhr=e.ajax(i.extend(a,s));return n.trigger("request",n,l,s),l};var b=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),y={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var _=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},w=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,x=/\*\w+/g,k=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(_.prototype,o,{initialize:function(){},route:function(t,n,s){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var r=this;return e.history.route(t,function(i){var a=r._extractParameters(t,i);r.execute(s,a),r.trigger.apply(r,["route:"+n].concat(a)),r.trigger("route",n,a),e.history.trigger("route",r,n,a)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(k,"\\$&").replace(w,"(?:$1)?").replace(C,function(t,e){return e?t:"([^/?]+)"}).replace(x,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var E=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},S=/^[#\/]|\s+$/g,A=/^\/+|\/+$/g,T=/msie [\w.]+/,D=/\/$/,M=/#.*$/;E.started=!1,i.extend(E.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(D,"");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(S,"")},start:function(t){if(E.started)throw new Error("Backbone.history has already been started");E.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),s=document.documentMode,r=T.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);if(this.root=("/"+this.root+"/").replace(A,"/"),r&&this._wantsHashChange){var a=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow,this.navigate(n)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!r?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&o.hash&&(this.fragment=this.getHash().replace(S,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),E.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return t=this.fragment=this.getFragment(t),i.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(t,e){if(!E.started)return!1;e&&!0!==e||(e={trigger:!!e});var i=this.root+(t=this.getFragment(t||""));if(t=t.replace(M,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==i&&(i=i.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new E;d.extend=h.extend=_.extend=g.extend=E.extend=function(t,e){var n,s=this;n=t&&i.has(t,"constructor")?t.constructor:function(){return s.apply(this,arguments)};i.extend(n,s,e);var r=function(){this.constructor=n};r.prototype=s.prototype,n.prototype=new r,t&&i.extend(n.prototype,t);return n.__super__=s.prototype,n};var O=function(){throw new Error('A "url" property or function must be specified')},P=function(t,e){var i=e.error;e.error=function(n){i&&i(t,n,e),t.trigger("error",t,n,e)}};return e}(r,i,t,e)}.apply(e,n))||(t.exports=s)}(this)},function(t,e,i){"use strict";i(2),i(3),i(18),i(5),i(24),i(31),i(250)},function(t,e,i){"use strict";i(2),i(3),i(5),i(16),i(258)},function(t,e,i){"use strict";i(276)},function(t,e,i){var n;!function(){"use strict";var s=window.DocumentFragment,r=window.HTMLElement.prototype,a=r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector;function o(t,e){if(t.__SKATE_TEMPLATE_HTML_DATA)return t.__SKATE_TEMPLATE_HTML_DATA[e]}function l(t,e,i){return t.__SKATE_TEMPLATE_HTML_DATA||(t.__SKATE_TEMPLATE_HTML_DATA={}),t.__SKATE_TEMPLATE_HTML_DATA[e]=i,t}function u(t){var e=t.match(/\s*<([^\s>]+)/),i=document.createElement(e&&{caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"}[e[1]]||"div");return i.innerHTML=t,c(i.childNodes)}function c(t){for(var e=document.createDocumentFragment();t&&t.length;)e.appendChild(t[0]);return e}function d(t,e){for(var i=[],n=t.nextSibling;n!==e;)i.push(n),n=n.nextSibling;return i}function h(t,e){if(e){for(var i=t.querySelectorAll(e),n=i.length,s=[],r=0;r<n;r++){var a=i[r];a.parentNode===t&&s.push(a)}return s}return[].slice.call(t.childNodes)||[]}function f(t){for(var e=t.defaultNodes,i=e.length,n=0;n<i;n++)t.container.insertBefore(e[n],t.endNode);t.isDefault=!0}function p(t){for(var e=t.defaultNodes,i=e.length,n=0;n<i;n++){var s=e[n];s.parentNode.removeChild(s)}t.isDefault=!1}function g(t,e){return{get:function(){var i=t[e];return"function"==typeof i?i.bind(t):i},set:function(i){t[e]=i}}}function m(t){var e,i=t.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{e=JSON.parse(i[2])}catch(e){throw new Error('Unable to parse content comment data: "'+e+'" in "\x3c!--'+t.textContent+'--\x3e".')}return{data:e||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}function v(){var t=[].slice.call(arguments).join("");return function(e){var i=c(e.childNodes);e.innerHTML=t,function(t){var e=t.getElementsByTagName("content");if(e&&e.length){for(var i=[];e.length;){var n=e[0],s=n.parentNode,r=n.getAttribute("select"),a=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:r,startNode:a}),s.replaceChild(o,n),s.insertBefore(a,o),a.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:r})+" "}l(t,"content",i)}}(e),i.childNodes.length&&v.wrap(e).appendChild(i)}}v.wrap=function(t){return o(t,"content")||l(t,"content",function t(e){var i,n,s=e.childNodes,r=s.length,a=[];for(i=0;i<r;i++){var o=s[i];if(8===o.nodeType){var l=m(o);if(l)if("open"===l.type){if(n)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n={container:o.parentNode,contentNode:o,defaultNodes:l.data.defaultContent&&u(l.data.defaultContent).childNodes||[],isDefault:l.data.isDefault,selector:l.data.selector,startNode:o}}else if("close"===l.type){if(!n)throw new Error('Unmatched closing content placeholder: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n.endNode=o,a.push(n),n=void 0}}else a=a.concat(t(o))}return a}(t)),function(t,e){var i={};for(var n in t)n in e?Object.defineProperty(i,n,e[n]):Object.defineProperty(i,n,g(t,n));return i}(t,function(t){var e=o(t,"content"),i=e.length;return{childNodes:{get:function(){for(var t=[],n=0;n<i;n++){var s=e[n];s.isDefault||(t=t.concat(d(s.startNode,s.endNode)))}return t}},firstChild:{get:function(){var t=this.childNodes;return t.length&&t[0]||null}},innerHTML:{get:function(){for(var t="",e=this.childNodes,i=e.length,n=0;n<i;n++){var s=e[n];t+=s.outerHTML||s.textContent}return t},set:function(t){for(var n=u(t),s=0;s<i;s++){for(var r=e[s],a=d(r.startNode,r.endNode),o=0;o<a.length;o++){var l=a[o];l.parentNode.removeChild(l)}for(var c=h(n,r.selector),g=0;g<c.length;g++)r.container.insertBefore(c[g],r.endNode);c.length?p(r):f(r)}}},lastChild:{get:function(){for(var t=i-1;t>-1;t--)if(!e[t].isDefault){var n=this.childNodes;return n[n.length-1]}return null}},outerHTML:{get:function(){var t=this.tagName.toLowerCase(),e="<"+t,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var r=i[s];e+=" "+r.nodeName+'="'+r.nodeValue+'"'}return e+=">",e+=this.innerHTML,e+="</"+t+">"}},textContent:{get:function(){for(var t="",e=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)t+=e[n].textContent;return t},set:function(t){var n;this.innerHTML="";for(var s=0;s<i;s++){var r=e[s];if(!r.selector){n=r;break}}n&&(t?(p(n),n.container.insertBefore(document.createTextNode(t),n.endNode)):f(n))}},appendChild:{value:function(t){if(t instanceof s){var n=t.childNodes;return[].slice.call(n).forEach(function(t){this.appendChild(t)}.bind(this)),this}for(var r=0;r<i;r++){var o=e[r],l=o.selector;if(!l||t instanceof window.HTMLElement&&a.call(t,l)){p(o),o.endNode.parentNode.insertBefore(t,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(e,i){return"afterbegin"===e?this.insertBefore(u(i),this.childNodes[0]):"beforeend"===e?this.appendChild(u(i)):t.insertAdjacentHTML(e,i),this}},insertBefore:{value:function(t,n){if(!n)return this.appendChild(t);if(t instanceof s){var r=t.childNodes;if(r)for(var o=r.length,l=0;l<o;l++)this.insertBefore(r[l],n);return this}var u=!1;t:for(var c=0;c<i;c++)for(var h=e[c],f=d(h.startNode,h.endNode),p=f.length,g=0;g<p;g++){var m=f[g];if(m===n&&(u=!0),u){var v=h.selector;if(!v||a.call(t,v)){m.parentNode.insertBefore(t,m);break t}}}if(!u)throw new Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return t}},removeChild:{value:function(t){for(var n=!1,s=0;s<i;s++){var r=e[s];if(r.container===t.parentNode){r.container.removeChild(t),n=!0;break}r.startNode.nextSibling===r.endNode&&f(r)}if(!n)throw new Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return t}},replaceChild:{value:function(t,n){for(var s=0;s<i;s++){var r=e[s];if(r.container===n.parentNode){r.container.replaceChild(t,n);break}}return this}}}}(t))},window.skateTemplateHtml=v,void 0===(n=function(){return v}.call(e,i,e,t))||(t.exports=n),t.exports=v}()},function(t,e,i){"use strict";i(2),i(54),i(16),i(274),i(272),i(270)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;!function(){if(window.CustomEvent)try{var 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(n=window.CustomEvent)}catch(t){}(n=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=!0}},i}).prototype=window.Event.prototype}(),e.default=n,t.exports=e.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=c(i(0)),s=i(82),r=c(i(289)),a=c(i(1)),o=c(i(12)),l=c(i(55)),u=c(i(19));function c(t){return t&&t.__esModule?t:{default:t}}var d="_aui-internal-layer-",h="_aui-internal-layer-global-",f="aui-layer-",p="aui-",g=(0,n.default)(document);function m(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 v(t,e,i){var s=n.default.Event(d+e),r=n.default.Event(h+e),a=new u.default(f+i,{bubbles:!0,cancelable:!0}),o=new u.default(p+i,{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 b(t){this.$el=(0,n.default)(t||'<div class="aui-layer" aria-hidden="true"></div>'),this.$el.addClass("aui-layer")}b.prototype={below:function(){return S.global.item(S.global.indexOf(this.$el)-1)},above:function(){return S.global.item(S.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(d+t,e),this},off:function(t,e){return this.$el.off(d+t,e),this},show:function(){return this.isVisible()?(function(t){t.attr("aria-hidden","false")}(this.$el),this):v(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),S.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return function(t){t.attr("aria-hidden","true")}(this.$el),this;if(!v(this.$el,"beforeHide","hide"))return this;var t=this;return function(t,e,i){m(t,e,i,!0)}(this.$el.get(0),"opacity",function(){t.isVisible()||(this.style.display="none")}),S.global.popUntil(this.$el),this},isVisible:function(){return"false"===this.$el.attr("aria-hidden")},remove:function(){this.hide(),this.$el.remove(),this.$el=null},isBlanketed:function(){return"true"===this.$el.attr("data-aui-blanketed")},isPersistent:function(){var t=this.$el.attr("modal")||this.$el.attr("data-aui-modal"),e=this.$el[0].hasAttribute("persistent");return"true"===t||e},_hideLayer:function(t){(this.isPersistent()||this.isBlanketed())&&r.default.global.exit(this.$el),t&&v(this.$el,"beforeHide","hide"),this.$el.attr("aria-hidden","true"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(d+"hide"),this.$el.trigger(h+"hide",[this.$el])},_showLayer:function(t){this.$el.parent().is("body")||this.$el.appendTo(document.body),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.$el.attr("aria-hidden","false"),(this.isPersistent()||this.isBlanketed())&&r.default.global.enter(this.$el),this.$el.trigger(d+"show"),this.$el.trigger(h+"show",[this.$el])}};var y=(0,l.default)("layer",b);function _(t){return(0,n.default)('[aria-controls="'+t.attr("id")+'"]')}function w(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function C(t,e){return w(t,function(t){return t[0]===e[0]})}function x(t){return w(t,function(t){return y(t).isBlanketed()})}function k(t,e){var i=x(t);e!==i&&(i>-1?(0,s.dim)(!1,t[i].css("z-index")-20):(0,s.undim)())}function E(t,e,i){if(!(e<0))for(var n=t.length-1;n>=e;n--){var s=t[n],r=y(s);!i&&r.isPersistent()||(r._hideLayer(!0),t.splice(n,1))}}function S(){this._stack=[]}function A(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return S.global.indexOf(e)>-1}y.on=function(t,e,i){return g.on(h+t,e,i),this},y.off=function(t,e,i){return g.off(h+t,e,i),this},S.prototype={push:function(t){var e=t instanceof n.default?t:(0,n.default)(t);if(C(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var i=y(e),r=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return i._showLayer(r),i.isBlanketed()&&(0,s.dim)(!1,r-20),this._stack.push(e),this},popLayersBeside:function(t){var e=t instanceof n.default?t:(0,n.default)(t);if(function(t){return _(t).length>0}(e)){var i=function(t){var e=_(t);if(e.length>0)return e.closest(".aui-layer")}(e);if(i){var s=this.indexOf(i);E(this._stack,++s,!1)}else E(this._stack,0,!1)}else{var r=x(this._stack);E(this._stack,++r,!1)}},indexOf:function(t){return C(this._stack,(0,n.default)(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.reverse().forEach(function(t){var e=y(t);e.isBlanketed()||e.isPersistent()||e.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,i=t instanceof n.default?t:(0,n.default)(t),s=C(this._stack,i);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=y(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,i=t instanceof n.default?t:(0,n.default)(t),s=C(this._stack,i);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=y(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},popUntil:function(t){var e=t instanceof n.default?t:(0,n.default)(t),i=C(this._stack,e);if(-1===i)return null;var s=x(this._stack);return E(this._stack,i+1,y(e).isBlanketed()),y(e)._hideLayer(),this._stack.splice(i,1),k(this._stack,s),e},getTopLayer:function(){return this._stack.length?this._stack[this._stack.length-1]:null},popTopIfNonPersistent:function(){var t=this.getTopLayer(),e=y(t);return!t||e.isPersistent()?null:this.popUntil(t)},popUntilTopBlanketed:function(){var t=x(this._stack);if(t<0)return null;var e=this._stack[t];if(y(e).isPersistent()){var i=this.getNextHigherNonPeristentAndNonBlanketedLayer(e);if(i){var n=C(this._stack,i);return E(this._stack,n,!0),i}return null}return E(this._stack,t,!0),k(this._stack,t),e},popUntilTopPersistent:function(){var t=S.global.getTopLayer();if(t){var e,i=x(this._stack),n=y(t);if(n.isPersistent()){if(n.isBlanketed())return;if(t=S.global.getNextLowerNonPersistentOrBlanketedLayer(t),n=y(t),!t||n.isPersistent())return;e=C(this._stack,t),E(this._stack,e,!0),k(this._stack,i)}else e=C(this._stack,t),E(this._stack,e,!0),k(this._stack,i)}}},g.on("keydown",function(t){t.keyCode===o.default.ESCAPE&&(S.global.popUntilTopPersistent(),t.preventDefault())}),g.on("click",".aui-blanket",function(t){S.global.popUntilTopBlanketed()&&t.preventDefault()}),g.on("click",function(t){var e=(0,n.default)(t.target);if(!e.closest(".aui-blanket").length){var i=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(s.length||A(i)){if(!A(i)&&s.length){var r=S.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&y(r).hide()}}else S.global.hideAll()}}),S.global=new S,y.Manager=S,(0,a.default)("layer",y),e.default=y,t.exports=e.default},function(t,e,i){var n,s,r;s=[i(6),i(8)],void 0===(r="function"==typeof(n=function(t){var e=0,i=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,s,r;for(r=0;null!=(s=i[r]);r++)try{(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var s,r,a,o={},l=e.split(".")[0],u=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},s=t[l][e],r=t[l][e]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(e,n){t.isFunction(n)?o[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,r=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=r,e}}():o[e]=n}),r.prototype=t.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||e},o,{constructor:r,namespace:l,widgetName:e,widgetFullName:u}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var n,s,r=i.call(arguments,1),a=0,o=r.length;a<o;a++)for(n in r[a])s=r[a][n],r[a].hasOwnProperty(n)&&void 0!==s&&(t.isPlainObject(s)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],s):t.widget.extend({},s):e[n]=s);return e},t.widget.bridge=function(e,n){var s=n.prototype.widgetFullName||e;t.fn[e]=function(r){var a="string"==typeof r,o=i.call(arguments,1),l=this;return a?this.length||"instance"!==r?this.each(function(){var i,n=t.data(this,s);return"instance"===r?(l=n,!1):n?t.isFunction(n[r])&&"_"!==r.charAt(0)?(i=n[r].apply(n,o))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(o.length&&(r=t.widget.extend.apply(null,[r].concat(o))),this.each(function(){var e=t.data(this,s);e?(e.option(r||{}),e._init&&e._init()):t.data(this,s,new n(r,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,r,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},e=(n=e.split(".")).shift(),n.length){for(s=a[e]=t.widget.extend({},this.options[e]),r=0;r<n.length-1;r++)s[n[r]]=s[n[r]]||{},s=s[n[r]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(n=t(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function s(s,r){var a,o;for(o=0;o<s.length;o++)a=n.classesElementLookup[s[o]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[s[o]]=a,i.push(s[o]),r&&e.classes[s[o]]&&i.push(e.classes[s[o]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&s(e.keys.match(/\S+/g)||[],!0),e.extra&&s(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,s){-1!==t.inArray(e.target,s)&&(i.classesElementLookup[n]=t(s.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof t||null===t,r={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n};return r.element.toggleClass(this._classes(r),n),this},_on:function(e,i,n){var s,r=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,a){function o(){if(e||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?r[a]:a).apply(r,arguments)}"string"!=typeof a&&(o.guid=a.guid=a.guid||o.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?s.on(u,c,o):i.on(u,o)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var s,r,a=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(s in r)s in i||(i[s]=r[s]);return this.element.trigger(i,n),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,r){var a;"string"==typeof s&&(s={effect:s});var o=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})&&(s={duration:s}),a=!t.isEmptyObject(s),s.complete=r,s.delay&&n.delay(s.delay),a&&t.effects&&t.effects.effect[o]?n[e](s):o!==e&&n[o]?n[o](s.duration,s.easing,r):n.queue(function(i){t(this)[e](),r&&r.call(n[0]),i()})}}),t.widget})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n;(function(){var i=this,s=i._,r={},a=Array.prototype,o=Object.prototype,l=Function.prototype,u=a.push,c=a.slice,d=a.concat,h=o.toString,f=o.hasOwnProperty,p=a.forEach,g=a.map,m=a.reduce,v=a.reduceRight,b=a.filter,y=a.every,_=a.some,w=a.indexOf,C=a.lastIndexOf,x=Array.isArray,k=Object.keys,E=l.bind,S=function(t){return t instanceof S?t:this instanceof S?void(this._wrapped=t):new S(t)};void 0!==t&&t.exports&&(e=t.exports=S),e._=S,S.VERSION="1.6.0";var A=S.each=S.forEach=function(t,e,i){if(null==t)return t;if(p&&t.forEach===p)t.forEach(e,i);else if(t.length===+t.length){for(var n=0,s=t.length;n<s;n++)if(e.call(i,t[n],n,t)===r)return}else{var a=S.keys(t);for(n=0,s=a.length;n<s;n++)if(e.call(i,t[a[n]],a[n],t)===r)return}return t};S.map=S.collect=function(t,e,i){var n=[];return null==t?n:g&&t.map===g?t.map(e,i):(A(t,function(t,s,r){n.push(e.call(i,t,s,r))}),n)};var T="Reduce of empty array with no initial value";S.reduce=S.foldl=S.inject=function(t,e,i,n){var s=arguments.length>2;if(null==t&&(t=[]),m&&t.reduce===m)return n&&(e=S.bind(e,n)),s?t.reduce(e,i):t.reduce(e);if(A(t,function(t,r,a){s?i=e.call(n,i,t,r,a):(i=t,s=!0)}),!s)throw new TypeError(T);return i},S.reduceRight=S.foldr=function(t,e,i,n){var s=arguments.length>2;if(null==t&&(t=[]),v&&t.reduceRight===v)return n&&(e=S.bind(e,n)),s?t.reduceRight(e,i):t.reduceRight(e);var r=t.length;if(r!==+r){var a=S.keys(t);r=a.length}if(A(t,function(o,l,u){l=a?a[--r]:--r,s?i=e.call(n,i,t[l],l,u):(i=t[l],s=!0