@atlassian/aui
Version:
Atlassian User Interface library
60 lines • 415 kB
JavaScript
/*!!
* @atlassian/aui - Atlassian User Interface library
* @version v9.3.0
* @link https://aui.atlassian.com
* @license Apache-2.0
* @author Atlassian Pty Ltd.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("backbone"),require("jquery"),require("underscore")):"function"==typeof define&&define.amd?define("@atlassian/aui",["backbone","jquery","underscore"],e):"object"==typeof exports?exports["@atlassian/aui"]=e(require("backbone"),require("jquery"),require("underscore")):t.AJS=e(t.Backbone,t.jQuery,t._)}(window,(function(t,e,i){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=38)}([function(e,i){e.exports=t},function(t,i){t.exports=e},function(t,e){t.exports=i},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 c(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,u(i.childNodes)}function u(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 p(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 f(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=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)}}function v(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 b(t){var e,i,n=t.childNodes,s=n.length,r=[];for(e=0;e<s;e++){var a=n[e];if(8===a.nodeType){var o=v(a);if(o)if("open"===o.type){if(i)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i={container:a.parentNode,contentNode:a,defaultNodes:o.data.defaultContent&&c(o.data.defaultContent).childNodes||[],isDefault:o.data.isDefault,selector:o.data.selector,startNode:a}}else if("close"===o.type){if(!i)throw new Error('Unmatched closing content placeholder: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i.endNode=a,r.push(i),i=void 0}}else r=r.concat(b(a))}return r}function y(){var t=[].slice.call(arguments).join("");return function(e){var i=u(e.childNodes);e.innerHTML=t,m(e),i.childNodes.length&&y.wrap(e).appendChild(i)}}y.wrap=function(t){return o(t,"content")||l(t,"content",b(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,(i=o(e=t,"content"),n=i.length,{childNodes:{get:function(){for(var t=[],e=0;e<n;e++){var s=i[e];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 e=c(t),s=0;s<n;s++){for(var r=i[s],a=d(r.startNode,r.endNode),o=0;o<a.length;o++){var l=a[o];l.parentNode.removeChild(l)}for(var u=h(e,r.selector),g=0;g<u.length;g++)r.container.insertBefore(u[g],r.endNode);u.length?f(r):p(r)}}},lastChild:{get:function(){for(var t=n-1;t>-1;t--)if(!i[t].isDefault){var e=this.childNodes;return e[e.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)+"</"+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 e;this.innerHTML="";for(var s=0;s<n;s++){var r=i[s];if(!r.selector){e=r;break}}e&&(t?(f(e),e.container.insertBefore(document.createTextNode(t),e.endNode)):p(e))}},appendChild:{value:function(t){if(t instanceof s){var e=t.childNodes;return[].slice.call(e).forEach(function(t){this.appendChild(t)}.bind(this)),this}for(var r=0;r<n;r++){var o=i[r],l=o.selector;if(!l||t instanceof window.HTMLElement&&a.call(t,l)){f(o),o.endNode.parentNode.insertBefore(t,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(t,i){return"afterbegin"===t?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===t?this.appendChild(c(i)):e.insertAdjacentHTML(t,i),this}},insertBefore:{value:function(t,e){if(!e)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],e);return this}var c=!1;t:for(var u=0;u<n;u++)for(var h=i[u],p=d(h.startNode,h.endNode),f=p.length,g=0;g<f;g++){var m=p[g];if(m===e&&(c=!0),c){var v=h.selector;if(!v||a.call(t,v)){m.parentNode.insertBefore(t,m);break t}}}if(!c)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 e=!1,s=0;s<n;s++){var r=i[s];if(r.container===t.parentNode){r.container.removeChild(t),e=!0;break}r.startNode.nextSibling===r.endNode&&p(r)}if(!e)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,e){for(var s=0;s<n;s++){var r=i[s];if(r.container===e.parentNode){r.container.replaceChild(t,e);break}}return this}}}));var e,i,n},window.skateTemplateHtml=y,void 0===(n=function(){return y}.call(e,i,e,t))||(t.exports=n),t.exports=y}()},function(t,e,i){var n,s,r;s=[i(1)],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){var n,s,r;s=[e,t,i(6),i(23),i(12),i(14),i(7),i(11)],void 0===(r="function"==typeof(n=function(t,e,i,n,s,r,a,o){"use strict";var l=function(t){return t&&t.__esModule?t.default:t},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,d=i.TYPE_ELEMENT,h=l(n),p=s.triggerCreated,f=s.triggerAttached,g=s.triggerDetached,m=s.triggerAttributeChanged,v=s.initElements,b=l(r),y=a.debounce,w=a.inherit,_=l(o),C=window.HTMLElement,k=!!document.attachEvent;function x(){return k?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState}var E=y((function(){var t=function(){v(document.documentElement.childNodes)};x()?t():k?window.addEventListener("load",t):document.addEventListener("DOMContentLoaded",t)}));function D(t){function e(){var i,n=t.extends,s=t.id;return n?(i=document.createElement(n)).setAttribute("is",s):i=document.createElement(s),t.prototype=e.prototype,p(i,t),i}return e.prototype=t.prototype,e}function T(t,e){if(e=w({},e),(e=w(e,T.defaults)).id=t,b.set(t,e),b.isNativeCustomElement(t)){var i=e.extends?document.createElement(e.extends).constructor.prototype:C.prototype;i.isPrototypeOf(e.prototype)||(e.prototype=w(Object.create(i),e.prototype,!0));var n={prototype:w(e.prototype,{createdCallback:function(){p(this,e)},attachedCallback:function(){f(this,e)},detachedCallback:function(){g(this,e)},attributeChangedCallback:function(t,i,n){m(this,e,{name:t,oldValue:i,newValue:n})}})};return e.extends&&(n.extends=e.extends),document.registerElement(t,n)}if(E(),h.register(!!e.detached),b.isType(t,d))return D(e)}T.init=function(t){var e=t;return t?("string"==typeof t?e=t=document.querySelectorAll(t):t instanceof C&&(e=[t]),v(e),t):t},T.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:d},T.version=_,T.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:d,unresolvedAttribute:"unresolved"};var A=window.skate;T.noConflict=function(){return window.skate=A,T},window.skate=T,e.exports=T})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e],void 0===(r="function"==typeof(n=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e="data-skate-ignore";t.ATTR_IGNORE=e;var i="a";t.TYPE_ATTRIBUTE=i;var n="c";t.TYPE_CLASSNAME=n;var s="t";t.TYPE_ELEMENT=s})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e,i(6)],void 0===(r="function"==typeof(n=function(t,e){"use strict";t.hasOwn=r,t.camelCase=a,t.elementContains=o,t.debounce=l,t.getClosestIgnoredElement=c,t.inherit=u,t.objEach=d,t.supportsNativeCustomElements=h,t.isValidNativeCustomElementName=p,Object.defineProperty(t,"__esModule",{value:!0});var i=e.ATTR_IGNORE,n=window.HTMLElement.prototype;t.elementPrototype=n;var s=n.contains;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){return t.split(/-/g).map((function(t,e){return 0===e?t:t[0].toUpperCase()+t.substring(1)})).join("")}function o(t,e){return t!==document||t.contains?t.contains?t.contains(e):s.call(t,e):document.head.contains(e)||document.body.contains(e)}function l(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),1))}}function c(t){for(var e=t;e instanceof Element;){if(e.hasAttribute(i))return e;e=e.parentNode}}function u(t,e,i){for(var n=Object.getOwnPropertyNames(e),s=n.length,r=0;r<s;r++){var a=n[r];if(i||void 0===t[a]){var o=Object.getOwnPropertyDescriptor(e,a);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?t[a]=e[a]:Object.defineProperty(t,a,o)}}return t}function d(t,e){for(var i in t)r(t,i)&&e(t[i],i)}function h(){return"function"==typeof document.registerElement}function p(t){return t.indexOf("-")>0}})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;
/*!
* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/s=[i(1),i(4)],void 0===(r="function"==typeof(n=function(t){var e,i=0,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,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.widget=function(e,i,n){var s,r,a,o={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},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:c}),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 i,s,r=n.call(arguments,1),a=0,o=r.length;a<o;a++)for(i in r[a])s=r[a][i],r[a].hasOwnProperty(i)&&void 0!==s&&(t.isPlainObject(s)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):e[i]=s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(r){var a="string"==typeof r,o=n.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 i(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(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,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(),e),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={},n=e.split("."),e=n.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*(.*)$/),c=l[1]+r.eventNamespace,u=l[2];u?s.on(c,u,o):i.on(c,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){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,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,s,r;
/*!
* jQuery UI Mouse 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/s=[i(1),i(15),i(4),i(8)],void 0===(r="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,r=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(s&&!r&&this._mouseCapture(i)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e,t,i(11)],void 0===(r="function"==typeof(n=function(t,e,i){"use strict";var n,s="__skate_"+(n=i,n&&n.__esModule?n.default:n).replace(/[^\w]/g,"_");window[s]||(window[s]={observer:void 0,registry:{}}),e.exports=window[s]})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e,t],void 0===(r="function"==typeof(n=function(t,e){"use strict";e.exports="0.13.17"})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e,i(6),i(24),i(13),i(14),i(7)],void 0===(r="function"==typeof(n=function(t,e,i,n,s,r){"use strict";var a=function(t){return t&&t.__esModule?t.default:t};Object.defineProperty(t,"__esModule",{value:!0});var o=e.ATTR_IGNORE,l=a(i),c=a(s),u=r.camelCase,d=r.elementContains,h=r.hasOwn,p=r.inherit,f=r.objEach,g=window.Node,m=window.HTMLElement.prototype,v=m.matches||m.msMatchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector,b=!v.call(document.createElement("div"),"div"),y=function(t,e){if(b){var i=t.cloneNode();return document.createElement("div").appendChild(i),v.call(i,e)}return v.call(t,e)},w=/Edge/.test(navigator.userAgent);function _(t){var e=t.split(" ");return{name:e.shift(),delegate:e.join(" ")}}function C(t,e){var i=e.attributes;if("object"==typeof i)for(var n in i)if(h(i,n)&&h(i[n],"value")&&!t.hasAttribute(n)){var s=i[n].value;s="function"==typeof s?s(t):s,t.setAttribute(n,s)}}function k(t,e,i){Object.defineProperty(t,i,{get:function(){return this.getAttribute(e)},set:function(t){void 0===t?this.removeAttribute(e):this.setAttribute(e,t)}})}function x(t,e){var i=e.attributes;if("object"==typeof i)for(var n in i){var s=u(n);h(i,n)&&!h(t,s)&&k(t,n,s)}}function E(t,e,i){var n,s,r,a=i.name,o=i.newValue;w&&(r=l(t,"cachedAttributeOldValues"));var c=w&&h(r,a)?r[a]:i.oldValue,u="string"==typeof o,d="string"==typeof c,p=e.attributes,f=p&&p[a];!d&&u?s="created":d&&u?s="updated":d&&!u&&(s="removed"),w&&("removed"===s?delete r[a]:r[a]=o),f&&"function"==typeof f[s]?n=f[s]:f&&"function"==typeof f.fallback?n=f.fallback:"function"==typeof f?n=f:"function"==typeof p&&(n=p),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(t,{type:s,name:a,newValue:o,oldValue:c})}function D(t,e){var i,n=t.attributes,s=[],r=n.length;for(i=0;i<r;i++)s.push(n[i]);for(i=0;i<r;i++){var a=s[i];E(t,e,{name:a.nodeName,newValue:a.value||a.nodeValue})}}function T(t,e){var i=t.attributes;e.attributes&&!c.isNativeCustomElement(e.id)&&new window.MutationObserver((function(n){n.forEach((function(n){var s=n.attributeName,r=i[s];E(t,e,{name:s,newValue:r&&(r.value||r.nodeValue),oldValue:n.oldValue})}))})).observe(t,{attributes:!0,attributeOldValue:!0})}function A(t,e){function i(e,i){return function(n){if(!i)return e(t,n,t);for(var s=n.target;s&&s!==document&&s!==t.parentNode;){if(y(s,i))return e(t,n,s);s=s.parentNode}}}"object"==typeof e.events&&f(e.events,(function(e,n){var s=_(n),r=!!s.delegate&&("blur"===s.name||"focus"===s.name);t.addEventListener(s.name,i(e,s.delegate),r)}))}function S(t,e){var i=l(t,e.id);i.created||(i.created=!0,p(t,e.prototype,!0),e.template&&!t.hasAttribute(e.resolvedAttribute)&&e.template(t),t.removeAttribute(e.unresolvedAttribute),t.setAttribute(e.resolvedAttribute,""),A(t,e),T(t,e),x(t,e),C(t,e),D(t,e),e.created&&e.created(t))}function O(t,e){var i=l(t,e.id);i.attached||d(document,t)&&(i.attached=!0,e.attached&&e.attached(t),i.detached=!1)}function I(t,e){var i=l(t,e.id);i.detached||(i.detached=!0,e.detached&&e.detached(t),i.attached=!1)}function N(t,e){S(t,e),O(t,e)}function P(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.nodeType===g.ELEMENT_NODE&&!i.attributes[o]){for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)N(i,n[r]);var a=i.childNodes||[];a.length&&P(a)}}}function M(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.nodeType===g.ELEMENT_NODE){M(i.childNodes);for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)I(i,n[r])}}}t.initElements=P,t.removeElements=M,t.triggerAttached=O,t.triggerAttributeChanged=E,t.triggerCreated=S,t.triggerDetached=I})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e],void 0===(r="function"==typeof(n=function(t){"use strict";var e;e=window,
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
"undefined"==typeof WeakMap&&function(){var t=Object.defineProperty,e=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+e+++"__"};i.prototype={set:function(e,i){var n=e[this.name];return n&&n[0]===e?n[1]=i:t(e,this.name,{value:[e,i],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];return!(!e||e[0]!==t||(e[0]=e[1]=void 0,0))},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},window.WeakMap=i}(),function(t){if(!t.JsMutationObserver){var e,i=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],s=String(Math.random());window.addEventListener("message",(function(t){if(t.data===s){var e=n;n=[],e.forEach((function(t){t()}))}})),e=function(t){n.push(t),window.postMessage(s,"*")}}var r,a,o=!1,l=[],c=0;g.prototype={observe:function(t,e){if(t=d(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n,s=i.get(t);s||i.set(t,s=[]);for(var r=0;r<s.length;r++)if(s[r].observer===this){(n=s[r]).removeListeners(),n.options=e;break}n||(n=new k(this,t,e),s.push(n),this.nodes_.push(t)),n.addListeners()},disconnect:function(){this.nodes_.forEach((function(t){for(var e=i.get(t),n=0;n<e.length;n++){var s=e[n];if(s.observer===this){s.removeListeners(),e.splice(n,1);break}}}),this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},k.prototype={enqueue:function(t){var e=this.observer.records_,i=e.length;if(e.length>0){var n=C(e[i-1],t);if(n)return void(e[i-1]=n)}else u(this.observer);e[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=i.get(t);e||i.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach((function(t){this.removeListeners_(t);for(var e=i.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}}),this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,i=t.relatedNode.namespaceURI,n=t.target;(r=new b("attributes",n)).attributeName=e,r.attributeNamespace=i;var s=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;f(n,(function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(i)))return t.attributeOldValue?y(s):r}));break;case"DOMCharacterDataModified":var r=b("characterData",n=t.target);s=t.prevValue,f(n,(function(t){if(t.characterData)return t.characterDataOldValue?y(s):r}));break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,o,l=t.target;"DOMNodeInserted"===t.type?(a=[l],o=[]):(a=[],o=[l]);var c=l.previousSibling,u=l.nextSibling;(r=b("childList",t.target.parentNode)).addedNodes=a,r.removedNodes=o,r.previousSibling=c,r.nextSibling=u,f(t.relatedNode,(function(t){if(t.childList)return r}))}w()}},t.JsMutationObserver=g,t.MutationObserver||(t.MutationObserver=g,g._isPolyfilled=!0)}function u(t){l.push(t),o||(o=!0,e(h))}function d(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function h(){o=!1;var t=l;l=[],t.sort((function(t,e){return t.uid_-e.uid_}));var e=!1;t.forEach((function(t){var i=t.takeRecords();p(t),i.length&&(t.callback_(i,t),e=!0)})),e&&h()}function p(t){t.nodes_.forEach((function(e){var n=i.get(e);n&&n.forEach((function(e){e.observer===t&&e.removeTransientObservers()}))}))}function f(t,e){for(var n=t;n;n=n.parentNode){var s=i.get(n);if(s)for(var r=0;r<s.length;r++){var a=s[r],o=a.options;if(n===t||o.subtree){var l=e(o);l&&a.enqueue(l)}}}}function g(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++c}function m(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function v(t){var e=new m(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function b(t,e){return r=new m(t,e)}function y(t){return a||((a=v(r)).oldValue=t,a)}function w(){r=a=void 0}function _(t){return t===a||t===r}function C(t,e){return t===e?t:a&&_(t)?a:null}function k(t,e,i){this.observer=t,this.target=e,this.options=i,this.transientObservedNodes=[]}}(e)})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[e,t,i(6),i(10),i(7)],void 0===(r="function"==typeof(n=function(t,e,i,n,s){"use strict";var r=function(t){return t&&t.__esModule?t.default:t},a=i.TYPE_ATTRIBUTE,o=i.TYPE_CLASSNAME,l=i.TYPE_ELEMENT,c=r(n),u=s.hasOwn,d=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;function p(t){var e=t.classList;if(e)return e;var i=t.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}e.exports={clear:function(){return c.registry={},this},get:function(t){return u(c.registry,t)&&c.registry[t]},getForElement:function(t){var e,i,n=t.attributes,s=n.length,r=[],u=n.is,d=u&&(u.value||u.nodeValue),h=(t.tagName||t.localName).toLowerCase(),f=d||h;this.isType(f,l)&&(i=(e=c.registry[f]).extends,d?h===i&&r.push(e):i||r.push(e));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,a)&&((i=(e=c.registry[m]).extends)&&h!==i||r.push(e))}for(var v=p(t),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,o)&&((i=(e=c.registry[w]).extends)&&h!==i||r.push(e))}return r},isType:function(t,e){var i=this.get(t);return i&&i.type===e},isNativeCustomElement:function(t){return h()&&this.isType(t,l)&&d(t)},set:function(t,e){if(u(c.registry,t))throw new Error('A component definition of type "'+e.type+'" with the ID of "'+t+'" already exists.');return c.registry[t]=e,this}}})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;s=[i(1),i(4)],void 0===(r="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;
/*!
* jQuery UI :data 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/s=[i(1),i(4)],void 0===(r="function"==typeof(n=function(t){return t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;
/*!
* jQuery UI Scroll Parent 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/s=[i(1),i(4)],void 0===(r="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&r.length?r:t(this[0].ownerDocument||document)}})?n.apply(e,s):n)||(t.exports=r)},function(t,e,i){var n,s,r;
/*! jQuery Fancy File Input plugin - v2.0.4 - 2018-11-23
* Copyright (c) 2018 Atlassian Pty Ltd; Licensed Apache-2.0 */void 0===(r=this)&&void 0!==window&&(r=window),n=[i(1)],void 0===(s=function(t){return r.FancyFileInput=function(t){"use strict";var e=/^.*[\\\/]/,i=/\{0\}/gi,n=function(){var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(i[0]);return t>4?t:document.documentMode}();function s(e,i){var n=t(e).data("FancyFileInput");if(n)return n;i=t.extend({},s.defaults,i),this.el=e,this.$el=t(e),this.$label=this.createLabel(i.buttonText),this._addLabelText(),this.$clearButton=t("<button>",{text:this.$label.attr("data-ffi-clearButtonText")||i.clearButtonText,class:"ffi-clear",type:"button",tabindex:"-1"}),this.multipleFileTextPattern=this.$label.attr("data-ffi-multipleFileTextPattern")||i.multipleFileTextPattern,this._eventNamespace=".ffi",this.CLASSES={disabled:"is-disabled",focused:"is-focused",active:"is-active",valid:"is-valid",invalid:"is-invalid"},this[this.isDisabled()?"disable":"enable"](),this.isFocused=!1}return s.defaults={buttonText:"Browse…",clearButtonText:"Clear",multipleFileTextPattern:"{0} files"},s.prototype._addLabelText=function(){var e=t('label[for="'+this.el.id+'"]');e.length&&this.$el.attr("aria-label",e.text())},s.prototype.createLabel=function(e){var i=this.$el.parent(".ffi[data-ffi-button-text]");return i.length||(i=this.$el.wrap(t("<label>",{class:"ffi","data-ffi-button-text":e})).parent()),i},s.prototype.isDisabled=function(){return this.$el.is(":disabled")},s.prototype.formatMultipleFileText=function(t){return this.multipleFileTextPattern.replace(i,t)},s.prototype.bindEvents=function(){this.$el.on("invalid"+this._eventNamespace,t.proxy(this.checkValidity,this)).on("change"+this._eventNamespace,t.proxy(this.change,this)).on("keydown"+this._eventNamespace,t.proxy(this.keydown,this)).on("mousedown"+this._eventNamespace,t.proxy(this.mousedown,this)).on("mouseup"+this._eventNamespace,t.proxy(this.mouseup,this)).on("focus"+this._eventNamespace,t.proxy(this.focus,this)).on("blur"+this._eventNamespace,t.proxy(this.blur,this)),this.$clearButton.on("click"+this._eventNamespace,t.proxy(this.clear,this))},s.prototype.unbindEvents=function(){this.$el.off(this._eventNamespace),this.$clearButton.off(this._eventNamespace)},s.prototype.fireEvent=function(t){this.$el.trigger(t+this._eventNamespace)},s.prototype.enable=function(){this.bindEvents(),this.$el.prop("disabled",!1),this.$label.removeClass(this.CLASSES.disabled)},s.prototype.disable=function(){this.unbindEvents(),this.$el.prop("disabled",!0),this.$label.addClass(this.CLASSES.disabled)},s.prototype.clear=function(){return this.$el.wrap("<form>").closest("form").get(0).reset(),this.$el.unwrap(),this.el.value="",this.change(),!1},s.prototype.focus=function(){var t=this;this.$label.addClass(this.CLASSES.focused),n&&!this.isFocused&&(this.isFocused=!0,setTimeout((function(){t.$el.blur(),t.$el.focus()}),0))},s.prototype.blur=function(){n&&this.isFocused||(this.$label.removeClass(this.CLASSES.focused),this.isFocused=!1)},s.prototype.mousedown=function(){this.$label.addClass(this.CLASSES.active)},s.prototype.mouseup=function(){this.$label.removeClass(this.CLASSES.active)},s.prototype.keydown=function(t){var e=t.which,i=9;if(8!==e&&46!==e||(this.clear(),t.preventDefault()),n&&e===i){var s=this;this.isFocused=!1,this.$el.prop("disabled",!0),setTimeout((function(){s.$el.prop("disabled",!1).blur()}),0)}},s.prototype.checkValidity=function(){if(this.el.required){var t=this.$el.is(":invalid");this.$label.toggleClass(this.CLASSES.invalid,t).toggleClass(this.CLASSES.valid,!t)}},s.prototype.change=function(){var t,i="";this.checkValidity(),(t=this.el.multiple&&this.el.files.length>1?this.formatMultipleFileText(this.el.files.length):this.el.value).length?(i=t.replace(e,""),this.$clearButton.appendTo(this.$label)):this.$clearButton.detach(),this.$el.focus(),this.setFieldText(i),this.fireEvent("value-changed")},s.prototype.setFieldText=function(t){var e="data-ffi-value";t.length?(this.$label.attr(e,t),this.fireEvent("value-added")):(this.$label.removeAttr(e),this.fireEvent("value-cleared"))},t.fn.fancyFileInput=function(e){return this.each((function(){var i=new s(this,e);t(this).data("FancyFileInput",i)}))},s}(t)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s,r;
/*!
* jQuery UI Datepicker 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/s=[i(1),i(4),i(28)],void 0===(r="function"==typeof(n=function(t){var e;function i(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,r)}function r(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}return t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,r;s="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(r=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,r):s&&this._inlineDatepicker(e,r)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,r,a=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[o?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):t("<button type='button'></button>").addClass(this._triggerClass).html(r?t("<img/>").attr({src:r,alt:s,title:s}):s)),e[o?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,r=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},r.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,r){var o,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),a(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(i){var n,s=t(i),r=t.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),t.removeData(i,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||s.removeClass(this.markerClassName).empty(),e===r&&(e=null))},_enableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,r.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,r.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,r,o,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.extend({},c.settings):