var Trestle=function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=13)}([function(t,e,n){(function(e){t.exports=e.jQuery=n(7)}).call(this,n(2))},function(e,t,n){ /* flatpickr v4.6.3, @license MIT */ e.exports=function(){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var Ee=function(){Ee=Object.assign||function e(t){for(var n,i=1,r=arguments.length;i",noCalendar:false,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:undefined,prevArrow:"",shorthandCurrentMonth:false,showMonths:1,static:false,time_24hr:false,weekNumbers:false,wrap:false},Se={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:false},xe=function(e){return("0"+e).slice(-2)},Ae=function(e){return e===true?1:0};function Oe(n,i,r){if(r===void 0){r=false}var o;return function(){var e=this,t=arguments;o!==null&&clearTimeout(o);o=window.setTimeout(function(){o=null;if(!r)n.apply(e,t)},i);if(r&&!o)n.apply(e,t)}}var Ie=function(e){return e instanceof Array?e:[e]};function ke(e,t,n){if(n===true)return e.classList.add(t);e.classList.remove(t)}function Ne(e,t,n){var i=window.document.createElement(e);t=t||"";n=n||"";i.className=t;if(n!==undefined)i.textContent=n;return i}function Me(e){while(e.firstChild)e.removeChild(e.firstChild)}function Le(e,t){if(t(e))return e;else if(e.parentNode)return Le(e.parentNode,t);return undefined}function Pe(e,t){var n=Ne("div","numInputWrapper"),i=Ne("input","numInput "+e),r=Ne("span","arrowUp"),o=Ne("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1){i.type="number"}else{i.type="text";i.pattern="\\d*"}if(t!==undefined)for(var a in t)i.setAttribute(a,t[a]);n.appendChild(i);n.appendChild(r);n.appendChild(o);return n}function je(e){if(typeof e.composedPath==="function"){var t=e.composedPath();return t[0]}return e.target}var e=function(){return undefined},He=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},_={D:e,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Ae(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(parseFloat(t)*1e3)},W:function(e,t,n){var i=parseInt(t);var r=new Date(e.getFullYear(),0,2+(i-1)*7,0,0,0,0);r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek);return r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:e,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},Re={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},s={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[s.w(e,t,n)]},F:function(e,t,n){return He(s.n(e,t,n)-1,false,t)},G:function(e,t,n){return xe(s.h(e,t,n))},H:function(e){return xe(e.getHours())},J:function(e,t){return t.ordinal!==undefined?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Ae(e.getHours()>11)]},M:function(e,t){return He(e.getMonth(),true,t)},S:function(e){return xe(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return xe(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return xe(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return xe(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},Fe=function(e){var t=e.config,o=t===void 0?De:t,n=e.l10n,a=n===void 0?Se:n;return function(i,e,t){var r=t||a;if(o.formatDate!==undefined){return o.formatDate(i,e,r)}return e.split("").map(function(e,t,n){return s[e]&&n[t-1]!=="\\"?s[e](i,r,o):e!=="\\"?e:""}).join("")}},$e=function(e){var t=e.config,y=t===void 0?De:t,n=e.l10n,b=n===void 0?Se:n;return function(e,t,n,i){if(e!==0&&!e)return undefined;var r=i||b;var o;var a=e;if(e instanceof Date)o=new Date(e.getTime());else if(typeof e!=="string"&&e.toFixed!==undefined)o=new Date(e);else if(typeof e==="string"){var s=t||(y||De).dateFormat;var l=String(e).trim();if(l==="today"){o=new Date;n=true}else if(/Z$/.test(l)||/GMT$/.test(l))o=new Date(e);else if(y&&y.parseDate)o=y.parseDate(e,s);else{o=!y||!y.noCalendar?new Date((new Date).getFullYear(),0,1,0,0,0,0):new Date((new Date).setHours(0,0,0,0));var c=void 0,u=[];for(var f=0,d=0,p="";fMath.min(t,n)&&e0||C.config.noCalendar;var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(!C.isMobile&&e){te()}he("onReady")}function d(e){return e.bind(C)}function n(){var t=C.config;if(t.weekNumbers===false&&t.showMonths===1)return;else if(t.noCalendar!==true){window.requestAnimationFrame(function(){if(C.calendarContainer!==undefined){C.calendarContainer.style.visibility="hidden";C.calendarContainer.style.display="block"}if(C.daysContainer!==undefined){var e=(C.days.offsetWidth+1)*t.showMonths;C.daysContainer.style.width=e+"px";C.calendarContainer.style.width=e+(C.weekWrapper!==undefined?C.weekWrapper.offsetWidth:0)+"px";C.calendarContainer.style.removeProperty("visibility");C.calendarContainer.style.removeProperty("display")}})}}function p(e){if(C.selectedDates.length===0){X()}if(e!==undefined&&e.type!=="blur"){Ce(e)}var t=C._input.value;h();_e();if(C._input.value!==t){C._debouncedChange()}}function s(e,t){return e%12+12*Ae(t===C.l10n.amPM[1])}function r(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}function h(){if(C.hourElement===undefined||C.minuteElement===undefined)return;var e=(parseInt(C.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(C.minuteElement.value,10)||0)%60,n=C.secondElement!==undefined?(parseInt(C.secondElement.value,10)||0)%60:0;if(C.amPM!==undefined){e=s(e,C.amPM.textContent)}var i=C.config.minTime!==undefined||C.config.minDate&&C.minDateHasTime&&C.latestSelectedDateObj&&qe(C.latestSelectedDateObj,C.config.minDate,true)===0;var r=C.config.maxTime!==undefined||C.config.maxDate&&C.maxDateHasTime&&C.latestSelectedDateObj&&qe(C.latestSelectedDateObj,C.config.maxDate,true)===0;if(r){var o=C.config.maxTime!==undefined?C.config.maxTime:C.config.maxDate;e=Math.min(e,o.getHours());if(e===o.getHours())t=Math.min(t,o.getMinutes());if(t===o.getMinutes())n=Math.min(n,o.getSeconds())}if(i){var a=C.config.minTime!==undefined?C.config.minTime:C.config.minDate;e=Math.max(e,a.getHours());if(e===a.getHours())t=Math.max(t,a.getMinutes());if(t===a.getMinutes())n=Math.max(n,a.getSeconds())}l(e,t,n)}function o(e){var t=e||C.latestSelectedDateObj;if(t)l(t.getHours(),t.getMinutes(),t.getSeconds())}function i(){var e=C.config.defaultHour;var t=C.config.defaultMinute;var n=C.config.defaultSeconds;if(C.config.minDate!==undefined){var i=C.config.minDate.getHours();var r=C.config.minDate.getMinutes();e=Math.max(e,i);if(e===i)t=Math.max(r,t);if(e===i&&t===r)n=C.config.minDate.getSeconds()}if(C.config.maxDate!==undefined){var o=C.config.maxDate.getHours();var a=C.config.maxDate.getMinutes();e=Math.min(e,o);if(e===o)t=Math.min(a,t);if(e===o&&t===a)n=C.config.maxDate.getSeconds()}l(e,t,n)}function l(e,t,n){if(C.latestSelectedDateObj!==undefined){C.latestSelectedDateObj.setHours(e%24,t,n||0,0)}if(!C.hourElement||!C.minuteElement||C.isMobile)return;C.hourElement.value=xe(!C.config.time_24hr?(12+e)%12+12*Ae(e%12===0):e);C.minuteElement.value=xe(t);if(C.amPM!==undefined)C.amPM.textContent=C.l10n.amPM[Ae(e>=12)];if(C.secondElement!==undefined)C.secondElement.value=xe(n)}function a(e){var t=parseInt(e.target.value)+(e.delta||0);if(t/1e3>1||e.key==="Enter"&&!/[^\d]/.test(t.toString())){U(t)}}function c(t,n,i,r){if(n instanceof Array)return n.forEach(function(e){return c(t,e,i,r)});if(t instanceof Array)return t.forEach(function(e){return c(e,n,i,r)});t.addEventListener(n,i,r);C._handlers.push({element:t,event:n,handler:i,options:r})}function m(t){return function(e){e.which===1&&t(e)}}function g(){he("onChange")}function v(){if(C.config.wrap){["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(C.element.querySelectorAll("[data-"+t+"]"),function(e){return c(e,"click",C[t])})})}if(C.isMobile){de();return}var e=Oe(K,50);C._debouncedChange=Oe(g,Ue);if(C.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent))c(C.daysContainer,"mouseover",function(e){if(C.config.mode==="range")V(e.target)});c(window.document.body,"keydown",G);if(!C.config.inline&&!C.config.static)c(window,"resize",e);if(window.ontouchstart!==undefined)c(window.document,"touchstart",B);else c(window.document,"mousedown",m(B));c(window.document,"focus",B,{capture:true});if(C.config.clickOpens===true){c(C._input,"focus",C.open);c(C._input,"mousedown",m(C.open))}if(C.daysContainer!==undefined){c(C.monthNav,"mousedown",m(we));c(C.monthNav,["keyup","increment"],a);c(C.daysContainer,"mousedown",m(re))}if(C.timeContainer!==undefined&&C.minuteElement!==undefined&&C.hourElement!==undefined){var t=function(e){return e.target.select()};c(C.timeContainer,["increment"],p);c(C.timeContainer,"blur",p,{capture:true});c(C.timeContainer,"mousedown",m(b));c([C.hourElement,C.minuteElement],["focus","click"],t);if(C.secondElement!==undefined)c(C.secondElement,"focus",function(){return C.secondElement&&C.secondElement.select()});if(C.amPM!==undefined){c(C.amPM,"mousedown",m(function(e){p(e);g()}))}}}function y(e,t){var n=e!==undefined?C.parseDate(e):C.latestSelectedDateObj||(C.config.minDate&&C.config.minDate>C.now?C.config.minDate:C.config.maxDate&&C.config.maxDate1);C.calendarContainer.appendChild(e);var r=C.config.appendTo!==undefined&&C.config.appendTo.nodeType!==undefined;if(C.config.inline||C.config.static){C.calendarContainer.classList.add(C.config.inline?"inline":"static");if(C.config.inline){if(!r&&C.element.parentNode)C.element.parentNode.insertBefore(C.calendarContainer,C._input.nextSibling);else if(C.config.appendTo!==undefined)C.config.appendTo.appendChild(C.calendarContainer)}if(C.config.static){var o=Ne("div","flatpickr-wrapper");if(C.element.parentNode)C.element.parentNode.insertBefore(o,C.element);o.appendChild(C.element);if(C.altInput)o.appendChild(C.altInput);o.appendChild(C.calendarContainer)}}if(!C.config.static&&!C.config.inline)(C.config.appendTo!==undefined?C.config.appendTo:window.document.body).appendChild(C.calendarContainer)}function E(e,t,n,i){var r=Y(t,true),o=Ne("span","flatpickr-day "+e,t.getDate().toString());o.dateObj=t;o.$i=i;o.setAttribute("aria-label",C.formatDate(t,C.config.ariaDateFormat));if(e.indexOf("hidden")===-1&&qe(t,C.now)===0){C.todayDateElem=o;o.classList.add("today");o.setAttribute("aria-current","date")}if(r){o.tabIndex=-1;if(ge(t)){o.classList.add("selected");C.selectedDateElem=o;if(C.config.mode==="range"){ke(o,"startRange",C.selectedDates[0]&&qe(t,C.selectedDates[0],true)===0);ke(o,"endRange",C.selectedDates[1]&&qe(t,C.selectedDates[1],true)===0);if(e==="nextMonthDay")o.classList.add("inRange")}}}else{o.classList.add("flatpickr-disabled")}if(C.config.mode==="range"){if(ve(t)&&!ge(t))o.classList.add("inRange")}if(C.weekNumbers&&C.config.showMonths===1&&e!=="prevMonthDay"&&n%7===1){C.weekNumbers.insertAdjacentHTML("beforeend",""+C.config.getWeek(t)+"")}he("onDayCreate",o);return o}function T(e){e.focus();if(C.config.mode==="range")V(e)}function D(e){var t=e>0?0:C.config.showMonths-1;var n=e>0?C.config.showMonths:-1;for(var i=t;i!=n;i+=e){var r=C.daysContainer.children[i];var o=e>0?0:r.children.length-1;var a=e>0?r.children.length:-1;for(var s=o;s!=a;s+=e){var l=r.children[s];if(l.className.indexOf("hidden")===-1&&Y(l.dateObj))return l}}return undefined}function S(e,t){var n=e.className.indexOf("Month")===-1?e.dateObj.getMonth():C.currentMonth;var i=t>0?C.config.showMonths:-1;var r=t>0?1:-1;for(var o=n-C.currentMonth;o!=i;o+=r){var a=C.daysContainer.children[o];var s=n-C.currentMonth===o?e.$i+t:t<0?a.children.length-1:0;var l=a.children.length;for(var c=s;c>=0&&c0?l:-1);c+=r){var u=a.children[c];if(u.className.indexOf("hidden")===-1&&Y(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return T(u)}}C.changeMonth(r);x(D(r),0);return undefined}function x(e,t){var n=z(document.activeElement||document.body);var i=e!==undefined?e:n?document.activeElement:C.selectedDateElem!==undefined&&z(C.selectedDateElem)?C.selectedDateElem:C.todayDateElem!==undefined&&z(C.todayDateElem)?C.todayDateElem:D(t>0?1:-1);if(i===undefined)return C._input.focus();if(!n)return T(i);S(i,t)}function A(e,t){var n=(new Date(e,t,1).getDay()-C.l10n.firstDayOfWeek+7)%7;var i=C.utils.getDaysInMonth((t-1+12)%12);var r=C.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),a=C.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay";var c=i+1-n,u=0;for(;c<=i;c++,u++){o.appendChild(E(s,new Date(e,t-1,c),c,u))}for(c=1;c<=r;c++,u++){o.appendChild(E("",new Date(e,t,c),c,u))}for(var f=r+1;f<=42-n&&(C.config.showMonths===1||u%7!==0);f++,u++){o.appendChild(E(l,new Date(e,t+1,f%r),f,u))}var d=Ne("div","dayContainer");d.appendChild(o);return d}function O(){if(C.daysContainer===undefined){return}Me(C.daysContainer);if(C.weekNumbers)Me(C.weekNumbers);var e=document.createDocumentFragment();for(var t=0;t1||C.config.monthSelectorType!=="dropdown")return;var e=function(e){if(C.config.minDate!==undefined&&C.currentYear===C.config.minDate.getFullYear()&&eC.config.maxDate.getMonth())};C.monthsDropdownContainer.tabIndex=-1;C.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++){if(!e(t))continue;var n=Ne("option","flatpickr-monthDropdown-month");n.value=new Date(C.currentYear,t).getMonth().toString();n.textContent=He(t,C.config.shorthandCurrentMonth,C.l10n);n.tabIndex=-1;if(C.currentMonth===t){n.selected=true}C.monthsDropdownContainer.appendChild(n)}}function k(){var e=Ne("div","flatpickr-month");var t=window.document.createDocumentFragment();var n;if(C.config.showMonths>1||C.config.monthSelectorType==="static"){n=Ne("span","cur-month")}else{C.monthsDropdownContainer=Ne("select","flatpickr-monthDropdown-months");c(C.monthsDropdownContainer,"change",function(e){var t=e.target;var n=parseInt(t.value,10);C.changeMonth(n-C.currentMonth);he("onMonthChange")});I();n=C.monthsDropdownContainer}var i=Pe("cur-year",{tabindex:"-1"});var r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",C.l10n.yearAriaLabel);if(C.config.minDate){r.setAttribute("min",C.config.minDate.getFullYear().toString())}if(C.config.maxDate){r.setAttribute("max",C.config.maxDate.getFullYear().toString());r.disabled=!!C.config.minDate&&C.config.minDate.getFullYear()===C.config.maxDate.getFullYear()}var o=Ne("div","flatpickr-current-month");o.appendChild(n);o.appendChild(i);t.appendChild(o);e.appendChild(t);return{container:e,yearElement:r,monthElement:n}}function N(){Me(C.monthNav);C.monthNav.appendChild(C.prevMonthNav);if(C.config.showMonths){C.yearElements=[];C.monthElements=[]}for(var e=C.config.showMonths;e--;){var t=k();C.yearElements.push(t.yearElement);C.monthElements.push(t.monthElement);C.monthNav.appendChild(t.container)}C.monthNav.appendChild(C.nextMonthNav)}function M(){C.monthNav=Ne("div","flatpickr-months");C.yearElements=[];C.monthElements=[];C.prevMonthNav=Ne("span","flatpickr-prev-month");C.prevMonthNav.innerHTML=C.config.prevArrow;C.nextMonthNav=Ne("span","flatpickr-next-month");C.nextMonthNav.innerHTML=C.config.nextArrow;N();Object.defineProperty(C,"_hidePrevMonthArrow",{get:function(){return C.__hidePrevMonthArrow},set:function(e){if(C.__hidePrevMonthArrow!==e){ke(C.prevMonthNav,"flatpickr-disabled",e);C.__hidePrevMonthArrow=e}}});Object.defineProperty(C,"_hideNextMonthArrow",{get:function(){return C.__hideNextMonthArrow},set:function(e){if(C.__hideNextMonthArrow!==e){ke(C.nextMonthNav,"flatpickr-disabled",e);C.__hideNextMonthArrow=e}}});C.currentYearElement=C.yearElements[0];ye();return C.monthNav}function L(){C.calendarContainer.classList.add("hasTime");if(C.config.noCalendar)C.calendarContainer.classList.add("noCalendar");C.timeContainer=Ne("div","flatpickr-time");C.timeContainer.tabIndex=-1;var e=Ne("span","flatpickr-time-separator",":");var t=Pe("flatpickr-hour",{"aria-label":C.l10n.hourAriaLabel});C.hourElement=t.getElementsByTagName("input")[0];var n=Pe("flatpickr-minute",{"aria-label":C.l10n.minuteAriaLabel});C.minuteElement=n.getElementsByTagName("input")[0];C.hourElement.tabIndex=C.minuteElement.tabIndex=-1;C.hourElement.value=xe(C.latestSelectedDateObj?C.latestSelectedDateObj.getHours():C.config.time_24hr?C.config.defaultHour:r(C.config.defaultHour));C.minuteElement.value=xe(C.latestSelectedDateObj?C.latestSelectedDateObj.getMinutes():C.config.defaultMinute);C.hourElement.setAttribute("step",C.config.hourIncrement.toString());C.minuteElement.setAttribute("step",C.config.minuteIncrement.toString());C.hourElement.setAttribute("min",C.config.time_24hr?"0":"1");C.hourElement.setAttribute("max",C.config.time_24hr?"23":"12");C.minuteElement.setAttribute("min","0");C.minuteElement.setAttribute("max","59");C.timeContainer.appendChild(t);C.timeContainer.appendChild(e);C.timeContainer.appendChild(n);if(C.config.time_24hr)C.timeContainer.classList.add("time24hr");if(C.config.enableSeconds){C.timeContainer.classList.add("hasSeconds");var i=Pe("flatpickr-second");C.secondElement=i.getElementsByTagName("input")[0];C.secondElement.value=xe(C.latestSelectedDateObj?C.latestSelectedDateObj.getSeconds():C.config.defaultSeconds);C.secondElement.setAttribute("step",C.minuteElement.getAttribute("step"));C.secondElement.setAttribute("min","0");C.secondElement.setAttribute("max","59");C.timeContainer.appendChild(Ne("span","flatpickr-time-separator",":"));C.timeContainer.appendChild(i)}if(!C.config.time_24hr){C.amPM=Ne("span","flatpickr-am-pm",C.l10n.amPM[Ae((C.latestSelectedDateObj?C.hourElement.value:C.config.defaultHour)>11)]);C.amPM.title=C.l10n.toggleTitle;C.amPM.tabIndex=-1;C.timeContainer.appendChild(C.amPM)}return C.timeContainer}function P(){if(!C.weekdayContainer)C.weekdayContainer=Ne("div","flatpickr-weekdays");else Me(C.weekdayContainer);for(var e=C.config.showMonths;e--;){var t=Ne("div","flatpickr-weekdaycontainer");C.weekdayContainer.appendChild(t)}j();return C.weekdayContainer}function j(){if(!C.weekdayContainer){return}var e=C.l10n.firstDayOfWeek;var t=C.l10n.weekdays.shorthand.slice();if(e>0&&e\n "+t.join("")+"\n \n "}}function H(){C.calendarContainer.classList.add("hasWeeks");var e=Ne("div","flatpickr-weekwrapper");e.appendChild(Ne("span","flatpickr-weekday",C.l10n.weekAbbreviation));var t=Ne("div","flatpickr-weeks");e.appendChild(t);return{weekWrapper:e,weekNumbers:t}}function R(e,t){if(t===void 0){t=true}var n=t?e:e-C.currentMonth;if(n<0&&C._hidePrevMonthArrow===true||n>0&&C._hideNextMonthArrow===true)return;C.currentMonth+=n;if(C.currentMonth<0||C.currentMonth>11){C.currentYear+=C.currentMonth>11?1:-1;C.currentMonth=(C.currentMonth+12)%12;he("onYearChange");I()}O();he("onMonthChange");ye()}function F(e,t){if(e===void 0){e=true}if(t===void 0){t=true}C.input.value="";if(C.altInput!==undefined)C.altInput.value="";if(C.mobileInput!==undefined)C.mobileInput.value="";C.selectedDates=[];C.latestSelectedDateObj=undefined;if(t===true){C.currentYear=C._initialDate.getFullYear();C.currentMonth=C._initialDate.getMonth()}C.showTimeInput=false;if(C.config.enableTime===true){i()}C.redraw();if(e)he("onChange")}function $(){C.isOpen=false;if(!C.isMobile){if(C.calendarContainer!==undefined){C.calendarContainer.classList.remove("open")}if(C._input!==undefined){C._input.classList.remove("active")}}he("onClose")}function q(){if(C.config!==undefined)he("onDestroy");for(var e=C._handlers.length;e--;){var t=C._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}C._handlers=[];if(C.mobileInput){if(C.mobileInput.parentNode)C.mobileInput.parentNode.removeChild(C.mobileInput);C.mobileInput=undefined}else if(C.calendarContainer&&C.calendarContainer.parentNode){if(C.config.static&&C.calendarContainer.parentNode){var n=C.calendarContainer.parentNode;n.lastChild&&n.removeChild(n.lastChild);if(n.parentNode){while(n.firstChild)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else C.calendarContainer.parentNode.removeChild(C.calendarContainer)}if(C.altInput){C.input.type="text";if(C.altInput.parentNode)C.altInput.parentNode.removeChild(C.altInput);delete C.altInput}if(C.input){C.input.type=C.input._type;C.input.classList.remove("flatpickr-input");C.input.removeAttribute("readonly");C.input.value=""}["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete C[e]}catch(e){}})}function W(e){if(C.config.appendTo&&C.config.appendTo.contains(e))return true;return C.calendarContainer.contains(e)}function B(e){if(C.isOpen&&!C.config.inline){var t=je(e);var n=W(t);var i=t===C.input||t===C.altInput||C.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(C.input)||~e.path.indexOf(C.altInput));var r=e.type==="blur"?i&&e.relatedTarget&&!W(e.relatedTarget):!i&&!n&&!W(e.relatedTarget);var o=!C.config.ignoredFocusElements.some(function(e){return e.contains(t)});if(r&&o){if(C.timeContainer!==undefined&&C.minuteElement!==undefined&&C.hourElement!==undefined){p()}C.close();if(C.config.mode==="range"&&C.selectedDates.length===1){C.clear(false);C.redraw()}}}}function U(e){if(!e||C.config.minDate&&eC.config.maxDate.getFullYear())return;var t=e,n=C.currentYear!==t;C.currentYear=t||C.currentYear;if(C.config.maxDate&&C.currentYear===C.config.maxDate.getFullYear()){C.currentMonth=Math.min(C.config.maxDate.getMonth(),C.currentMonth)}else if(C.config.minDate&&C.currentYear===C.config.minDate.getFullYear()){C.currentMonth=Math.max(C.config.minDate.getMonth(),C.currentMonth)}if(n){C.redraw();he("onYearChange");I()}}function Y(e,t){if(t===void 0){t=true}var n=C.parseDate(e,undefined,t);if(C.config.minDate&&n&&qe(n,C.config.minDate,t!==undefined?t:!C.minDateHasTime)<0||C.config.maxDate&&n&&qe(n,C.config.maxDate,t!==undefined?t:!C.maxDateHasTime)>0)return false;if(C.config.enable.length===0&&C.config.disable.length===0)return true;if(n===undefined)return false;var i=C.config.enable.length>0,r=i?C.config.enable:C.config.disable;for(var o=0,a=void 0;o=a.from.getTime()&&n.getTime()<=a.to.getTime())return i}return!i}function z(e){if(C.daysContainer!==undefined)return e.className.indexOf("hidden")===-1&&C.daysContainer.contains(e);return false}function G(e){var t=e.target===C._input;var n=C.config.allowInput;var i=C.isOpen&&(!n||!t);var r=C.config.inline&&t&&!n;if(e.keyCode===13&&t){if(n){C.setDate(C._input.value,true,e.target===C.altInput?C.config.altFormat:C.config.dateFormat);return e.target.blur()}else{C.open()}}else if(W(e.target)||i||r){var o=!!C.timeContainer&&C.timeContainer.contains(e.target);switch(e.keyCode){case 13:if(o){e.preventDefault();p();ie()}else re(e);break;case 27:e.preventDefault();ie();break;case 8:case 46:if(t&&!C.config.allowInput){e.preventDefault();C.clear()}break;case 37:case 39:if(!o&&!t){e.preventDefault();if(C.daysContainer!==undefined&&(n===false||document.activeElement&&z(document.activeElement))){var a=e.keyCode===39?1:-1;if(!e.ctrlKey)x(undefined,a);else{e.stopPropagation();R(a);x(D(1),0)}}}else if(C.hourElement)C.hourElement.focus();break;case 38:case 40:e.preventDefault();var s=e.keyCode===40?1:-1;if(C.daysContainer&&e.target.$i!==undefined||e.target===C.input||e.target===C.altInput){if(e.ctrlKey){e.stopPropagation();U(C.currentYear-s);x(D(1),0)}else if(!o)x(undefined,s*7)}else if(e.target===C.currentYearElement){U(C.currentYear-s)}else if(C.config.enableTime){if(!o&&C.hourElement)C.hourElement.focus();p(e);C._debouncedChange()}break;case 9:if(o){var l=[C.hourElement,C.minuteElement,C.secondElement,C.amPM].concat(C.pluginElements).filter(function(e){return e});var c=l.indexOf(e.target);if(c!==-1){var u=l[c+(e.shiftKey?-1:1)];e.preventDefault();(u||C._input).focus()}}else if(!C.config.noCalendar&&C.daysContainer&&C.daysContainer.contains(e.target)&&e.shiftKey){e.preventDefault();C._input.focus()}break;default:break}}if(C.amPM!==undefined&&e.target===C.amPM){switch(e.key){case C.l10n.amPM[0].charAt(0):case C.l10n.amPM[0].charAt(0).toLowerCase():C.amPM.textContent=C.l10n.amPM[0];h();_e();break;case C.l10n.amPM[1].charAt(0):case C.l10n.amPM[1].charAt(0).toLowerCase():C.amPM.textContent=C.l10n.amPM[1];h();_e();break}}if(t||W(e.target)){he("onKeyDown",e)}}function V(a){if(C.selectedDates.length!==1||a&&(!a.classList.contains("flatpickr-day")||a.classList.contains("flatpickr-disabled")))return;var s=a?a.dateObj.getTime():C.days.firstElementChild.dateObj.getTime(),l=C.parseDate(C.selectedDates[0],undefined,true).getTime(),e=Math.min(s,C.selectedDates[0].getTime()),t=Math.max(s,C.selectedDates[0].getTime());var c=false;var u=0,f=0;for(var n=e;ne&&nu))u=n;else if(n>l&&(!f||n0&&r0&&r>f;if(o){n.classList.add("notAllowed");["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)});return"continue"}else if(c&&!o)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)});if(a!==undefined){a.classList.add(s<=C.selectedDates[0].getTime()?"startRange":"endRange");if(ls&&r===l)n.classList.add("endRange");if(r>=u&&(f===0||r<=f)&&We(r,l,s))n.classList.add("inRange")}};for(var o=0,p=d.children.length;o0||t.getMinutes()>0||t.getSeconds()>0}if(C.selectedDates){C.selectedDates=C.selectedDates.filter(function(e){return Y(e)});if(!C.selectedDates.length&&i==="min")o(t);_e()}if(C.daysContainer){ne();if(t!==undefined)C.currentYearElement[i]=t.getFullYear().toString();else C.currentYearElement.removeAttribute(i);C.currentYearElement.disabled=!!n&&t!==undefined&&n.getFullYear()===t.getFullYear()}}}function J(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"];var t=Ee({},f,JSON.parse(JSON.stringify(u.dataset||{})));var n={};C.config.parseDate=t.parseDate;C.config.formatDate=t.formatDate;Object.defineProperty(C.config,"enable",{get:function(){return C.config._enable},set:function(e){C.config._enable=ce(e)}});Object.defineProperty(C.config,"disable",{get:function(){return C.config._disable},set:function(e){C.config._disable=ce(e)}});var i=t.mode==="time";if(!t.dateFormat&&(t.enableTime||i)){var r=Ye.defaultConfig.dateFormat||De.dateFormat;n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):r+" H:i"+(t.enableSeconds?":S":"")}if(t.altInput&&(t.enableTime||i)&&!t.altFormat){var o=Ye.defaultConfig.altFormat||De.altFormat;n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):o+(" h:i"+(t.enableSeconds?":S":"")+" K")}if(!t.altInputClass){C.config.altInputClass=C.input.className+" "+C.config.altInputClass}Object.defineProperty(C.config,"minDate",{get:function(){return C.config._minDate},set:Z("min")});Object.defineProperty(C.config,"maxDate",{get:function(){return C.config._maxDate},set:Z("max")});var a=function(t){return function(e){C.config[t==="min"?"_minTime":"_maxTime"]=C.parseDate(e,"H:i:S")}};Object.defineProperty(C.config,"minTime",{get:function(){return C.config._minTime},set:a("min")});Object.defineProperty(C.config,"maxTime",{get:function(){return C.config._maxTime},set:a("max")});if(t.mode==="time"){C.config.noCalendar=true;C.config.enableTime=true}Object.assign(C.config,n,t);for(var s=0;s-1){C.config[c]=Ie(l[c]).map(d).concat(C.config[c])}else if(typeof t[c]==="undefined")C.config[c]=l[c]}}he("onParseConfig")}function ee(){if(typeof C.config.locale!=="object"&&typeof Ye.l10ns[C.config.locale]==="undefined")C.config.errorHandler(new Error("flatpickr: invalid locale "+C.config.locale));C.l10n=Ee({},Ye.l10ns["default"],typeof C.config.locale==="object"?C.config.locale:C.config.locale!=="default"?Ye.l10ns[C.config.locale]:undefined);Re.K="("+C.l10n.amPM[0]+"|"+C.l10n.amPM[1]+"|"+C.l10n.amPM[0].toLowerCase()+"|"+C.l10n.amPM[1].toLowerCase()+")";var e=Ee({},f,JSON.parse(JSON.stringify(u.dataset||{})));if(e.time_24hr===undefined&&Ye.defaultConfig.time_24hr===undefined){C.config.time_24hr=C.l10n.time_24hr}C.formatDate=Fe(C);C.parseDate=$e({config:C.config,l10n:C.l10n})}function te(e){if(C.calendarContainer===undefined)return;he("onPreCalendarPosition");var t=e||C._positionElement;var n=Array.prototype.reduce.call(C.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=C.calendarContainer.offsetWidth,r=C.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,c=o==="above"||o!=="below"&&ln;var u=window.pageYOffset+s.top+(!c?t.offsetHeight+2:-n-2);ke(C.calendarContainer,"arrowTop",!c);ke(C.calendarContainer,"arrowBottom",c);if(C.config.inline)return;var f=window.pageXOffset+s.left-(a!=null&&a==="center"?(i-s.width)/2:0);var d=window.document.body.offsetWidth-(window.pageXOffset+s.right);var p=f+i>window.document.body.offsetWidth;var h=d+i>window.document.body.offsetWidth;ke(C.calendarContainer,"rightMost",p);if(C.config.static)return;C.calendarContainer.style.top=u+"px";if(!p){C.calendarContainer.style.left=f+"px";C.calendarContainer.style.right="auto"}else if(!h){C.calendarContainer.style.left="auto";C.calendarContainer.style.right=d+"px"}else{var m=document.styleSheets[0];if(m===undefined)return;var g=window.document.body.offsetWidth;var v=Math.max(0,g/2-i/2);var y=".flatpickr-calendar.centerMost:before";var b=".flatpickr-calendar.centerMost:after";var _=m.cssRules.length;var w="{left:"+s.left+"px;right:auto;}";ke(C.calendarContainer,"rightMost",false);ke(C.calendarContainer,"centerMost",true);m.insertRule(y+","+b+w,_);C.calendarContainer.style.left=v+"px";C.calendarContainer.style.right="auto"}}function ne(){if(C.config.noCalendar||C.isMobile)return;ye();O()}function ie(){C._input.focus();if(window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==undefined){setTimeout(C.close,0)}else{C.close()}}function re(e){e.preventDefault();e.stopPropagation();var t=function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")};var n=Le(e.target,t);if(n===undefined)return;var i=n;var r=C.latestSelectedDateObj=new Date(i.dateObj.getTime());var o=(r.getMonth()C.currentMonth+C.config.showMonths-1)&&C.config.mode!=="range";C.selectedDateElem=i;if(C.config.mode==="single")C.selectedDates=[r];else if(C.config.mode==="multiple"){var a=ge(r);if(a)C.selectedDates.splice(parseInt(a),1);else C.selectedDates.push(r)}else if(C.config.mode==="range"){if(C.selectedDates.length===2){C.clear(false,false)}C.latestSelectedDateObj=r;C.selectedDates.push(r);if(qe(r,C.selectedDates[0],true)!==0)C.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}h();if(o){var s=C.currentYear!==r.getFullYear();C.currentYear=r.getFullYear();C.currentMonth=r.getMonth();if(s){he("onYearChange");I()}he("onMonthChange")}ye();O();_e();if(C.config.enableTime)setTimeout(function(){return C.showTimeInput=true},50);if(!o&&C.config.mode!=="range"&&C.config.showMonths===1)T(i);else if(C.selectedDateElem!==undefined&&C.hourElement===undefined){C.selectedDateElem&&C.selectedDateElem.focus()}if(C.hourElement!==undefined)C.hourElement!==undefined&&C.hourElement.focus();if(C.config.closeOnSelect){var l=C.config.mode==="single"&&!C.config.enableTime;var c=C.config.mode==="range"&&C.selectedDates.length===2&&!C.config.enableTime;if(l||c){ie()}}g()}var oe={locale:[ee,j],showMonths:[N,n,P],minDate:[y],maxDate:[y]};function ae(e,t){if(e!==null&&typeof e==="object"){Object.assign(C.config,e);for(var n in e){if(oe[n]!==undefined)oe[n].forEach(function(e){return e()})}}else{C.config[e]=t;if(oe[e]!==undefined)oe[e].forEach(function(e){return e()});else if(Te.indexOf(e)>-1)C.config[e]=Ie(t)}C.redraw();_e(false)}function se(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return C.parseDate(e,t)});else if(e instanceof Date||typeof e==="number")n=[C.parseDate(e,t)];else if(typeof e==="string"){switch(C.config.mode){case"single":case"time":n=[C.parseDate(e,t)];break;case"multiple":n=e.split(C.config.conjunction).map(function(e){return C.parseDate(e,t)});break;case"range":n=e.split(C.l10n.rangeSeparator).map(function(e){return C.parseDate(e,t)});break;default:break}}else C.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));C.selectedDates=n.filter(function(e){return e instanceof Date&&Y(e,false)});if(C.config.mode==="range")C.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function le(e,t,n){if(t===void 0){t=false}if(n===void 0){n=C.config.dateFormat}if(e!==0&&!e||e instanceof Array&&e.length===0)return C.clear(t);se(e,n);C.showTimeInput=C.selectedDates.length>0;C.latestSelectedDateObj=C.selectedDates[C.selectedDates.length-1];C.redraw();y();o();if(C.selectedDates.length===0){C.clear(false)}_e(t);if(t)he("onChange")}function ce(e){return e.slice().map(function(e){if(typeof e==="string"||typeof e==="number"||e instanceof Date){return C.parseDate(e,undefined,true)}else if(e&&typeof e==="object"&&e.from&&e.to)return{from:C.parseDate(e.from,undefined),to:C.parseDate(e.to,undefined)};return e}).filter(function(e){return e})}function ue(){C.selectedDates=[];C.now=C.parseDate(C.config.now)||new Date;var e=C.config.defaultDate||((C.input.nodeName==="INPUT"||C.input.nodeName==="TEXTAREA")&&C.input.placeholder&&C.input.value===C.input.placeholder?null:C.input.value);if(e)se(e,C.config.dateFormat);C._initialDate=C.selectedDates.length>0?C.selectedDates[0]:C.config.minDate&&C.config.minDate.getTime()>C.now.getTime()?C.config.minDate:C.config.maxDate&&C.config.maxDate.getTime()0)C.latestSelectedDateObj=C.selectedDates[0];if(C.config.minTime!==undefined)C.config.minTime=C.parseDate(C.config.minTime,"H:i");if(C.config.maxTime!==undefined)C.config.maxTime=C.parseDate(C.config.maxTime,"H:i");C.minDateHasTime=!!C.config.minDate&&(C.config.minDate.getHours()>0||C.config.minDate.getMinutes()>0||C.config.minDate.getSeconds()>0);C.maxDateHasTime=!!C.config.maxDate&&(C.config.maxDate.getHours()>0||C.config.maxDate.getMinutes()>0||C.config.maxDate.getSeconds()>0);Object.defineProperty(C,"showTimeInput",{get:function(){return C._showTimeInput},set:function(e){C._showTimeInput=e;if(C.calendarContainer)ke(C.calendarContainer,"showTimeInput",e);C.isOpen&&te()}})}function fe(){C.input=C.config.wrap?u.querySelector("[data-input]"):u;if(!C.input){C.config.errorHandler(new Error("Invalid input element specified"));return}C.input._type=C.input.type;C.input.type="text";C.input.classList.add("flatpickr-input");C._input=C.input;if(C.config.altInput){C.altInput=Ne(C.input.nodeName,C.config.altInputClass);C._input=C.altInput;C.altInput.placeholder=C.input.placeholder;C.altInput.disabled=C.input.disabled;C.altInput.required=C.input.required;C.altInput.tabIndex=C.input.tabIndex;C.altInput.type="text";C.input.setAttribute("type","hidden");if(!C.config.static&&C.input.parentNode)C.input.parentNode.insertBefore(C.altInput,C.input.nextSibling)}if(!C.config.allowInput)C._input.setAttribute("readonly","readonly");C._positionElement=C.config.positionElement||C._input}function de(){var e=C.config.enableTime?C.config.noCalendar?"time":"datetime-local":"date";C.mobileInput=Ne("input",C.input.className+" flatpickr-mobile");C.mobileInput.step=C.input.getAttribute("step")||"any";C.mobileInput.tabIndex=1;C.mobileInput.type=e;C.mobileInput.disabled=C.input.disabled;C.mobileInput.required=C.input.required;C.mobileInput.placeholder=C.input.placeholder;C.mobileFormatStr=e==="datetime-local"?"Y-m-d\\TH:i:S":e==="date"?"Y-m-d":"H:i:S";if(C.selectedDates.length>0){C.mobileInput.defaultValue=C.mobileInput.value=C.formatDate(C.selectedDates[0],C.mobileFormatStr)}if(C.config.minDate)C.mobileInput.min=C.formatDate(C.config.minDate,"Y-m-d");if(C.config.maxDate)C.mobileInput.max=C.formatDate(C.config.maxDate,"Y-m-d");C.input.type="hidden";if(C.altInput!==undefined)C.altInput.type="hidden";try{if(C.input.parentNode)C.input.parentNode.insertBefore(C.mobileInput,C.input.nextSibling)}catch(e){}c(C.mobileInput,"change",function(e){C.setDate(e.target.value,false,C.mobileFormatStr);he("onChange");he("onClose")})}function pe(e){if(C.isOpen===true)return C.close();C.open(e)}function he(e,t){if(C.config===undefined)return;var n=C.config[e];if(n!==undefined&&n.length>0){for(var i=0;n[i]&&i=0&&qe(e,C.selectedDates[1])<=0}function ye(){if(C.config.noCalendar||C.isMobile||!C.monthNav)return;C.yearElements.forEach(function(e,t){var n=new Date(C.currentYear,C.currentMonth,1);n.setMonth(C.currentMonth+t);if(C.config.showMonths>1||C.config.monthSelectorType==="static"){C.monthElements[t].textContent=He(n.getMonth(),C.config.shorthandCurrentMonth,C.l10n)+" "}else{C.monthsDropdownContainer.value=n.getMonth().toString()}e.value=n.getFullYear().toString()});C._hidePrevMonthArrow=C.config.minDate!==undefined&&(C.currentYear===C.config.minDate.getFullYear()?C.currentMonth<=C.config.minDate.getMonth():C.currentYearC.config.maxDate.getMonth():C.currentYear>C.config.maxDate.getFullYear())}function be(t){return C.selectedDates.map(function(e){return C.formatDate(e,t)}).filter(function(e,t,n){return C.config.mode!=="range"||C.config.enableTime||n.indexOf(e)===t}).join(C.config.mode!=="range"?C.config.conjunction:C.l10n.rangeSeparator)}function _e(e){if(e===void 0){e=true}if(C.mobileInput!==undefined&&C.mobileFormatStr){C.mobileInput.value=C.latestSelectedDateObj!==undefined?C.formatDate(C.latestSelectedDateObj,C.mobileFormatStr):""}C.input.value=be(C.config.dateFormat);if(C.altInput!==undefined){C.altInput.value=be(C.config.altFormat)}if(e!==false)he("onValueUpdate")}function we(e){var t=C.prevMonthNav.contains(e.target);var n=C.nextMonthNav.contains(e.target);if(t||n){R(t?-1:1)}else if(C.yearElements.indexOf(e.target)>=0){e.target.select()}else if(e.target.classList.contains("arrowUp")){C.changeYear(C.currentYear+1)}else if(e.target.classList.contains("arrowDown")){C.changeYear(C.currentYear-1)}}function Ce(e){e.preventDefault();var t=e.type==="keydown",n=e.target;if(C.amPM!==undefined&&e.target===C.amPM){C.amPM.textContent=C.l10n.amPM[Ae(C.amPM.textContent===C.l10n.amPM[0])]}var i=parseFloat(n.getAttribute("min")),r=parseFloat(n.getAttribute("max")),o=parseFloat(n.getAttribute("step")),a=parseInt(n.value,10),s=e.delta||(t?e.which===38?1:-1:0);var l=a+o*s;if(typeof n.value!=="undefined"&&n.value.length===2){var c=n===C.hourElement,u=n===C.minuteElement;if(lr){l=n===C.hourElement?l-r-Ae(!C.amPM):i;if(u)_(undefined,1,C.hourElement)}if(C.amPM&&c&&(o===1?l+a===23:Math.abs(l-a)>o)){C.amPM.textContent=C.l10n.amPM[Ae(C.amPM.textContent===C.l10n.amPM[0])]}n.value=xe(l)}}e();return C}function n(e,t){var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement});var i=[];for(var r=0;r=a){throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}}};v.jQueryDetection(),h();var m="alert",y="4.4.1",b="bs.alert",_="."+b,w=".data-api",C=g.fn[m],E={DISMISS:'[data-dismiss="alert"]'},T={CLOSE:"close"+_,CLOSED:"closed"+_,CLICK_DATA_API:"click"+_+w},D={ALERT:"alert",FADE:"fade",SHOW:"show"},S=function(){function i(e){this._element=e}var e=i.prototype;e.close=function e(t){var n=this._element;if(t){n=this._getRootElement(t)}var i=this._triggerCloseEvent(n);if(i.isDefaultPrevented()){return}this._removeElement(n)};e.dispose=function e(){g.removeData(this._element,b);this._element=null};e._getRootElement=function e(t){var n=v.getSelectorFromElement(t);var i=false;if(n){i=document.querySelector(n)}if(!i){i=g(t).closest("."+D.ALERT)[0]}return i};e._triggerCloseEvent=function e(t){var n=g.Event(T.CLOSE);g(t).trigger(n);return n};e._removeElement=function e(t){var n=this;g(t).removeClass(D.SHOW);if(!g(t).hasClass(D.FADE)){this._destroyElement(t);return}var i=v.getTransitionDurationFromElement(t);g(t).one(v.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(i)};e._destroyElement=function e(t){g(t).detach().trigger(T.CLOSED).remove()};i._jQueryInterface=function e(n){return this.each(function(){var e=g(this);var t=e.data(b);if(!t){t=new i(this);e.data(b,t)}if(n==="close"){t[n](this)}})};i._handleDismiss=function e(t){return function(e){if(e){e.preventDefault()}t.close(this)}};o(i,null,[{key:"VERSION",get:function e(){return y}}]);return i}();g(document).on(T.CLICK_DATA_API,E.DISMISS,S._handleDismiss(new S)),g.fn[m]=S._jQueryInterface,g.fn[m].Constructor=S,g.fn[m].noConflict=function(){g.fn[m]=C;return S._jQueryInterface};var x="button",A="4.4.1",O="bs.button",I="."+O,k=".data-api",N=g.fn[x],M={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},L={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLES:'[data-toggle="buttons"]',DATA_TOGGLE:'[data-toggle="button"]',DATA_TOGGLES_BUTTONS:'[data-toggle="buttons"] .btn',INPUT:'input:not([type="hidden"])',ACTIVE:".active",BUTTON:".btn"},P={CLICK_DATA_API:"click"+I+k,FOCUS_BLUR_DATA_API:"focus"+I+k+" "+("blur"+I+k),LOAD_DATA_API:"load"+I+k},j=function(){function n(e){this._element=e}var e=n.prototype;e.toggle=function e(){var t=true;var n=true;var i=g(this._element).closest(L.DATA_TOGGLES)[0];if(i){var r=this._element.querySelector(L.INPUT);if(r){if(r.type==="radio"){if(r.checked&&this._element.classList.contains(M.ACTIVE)){t=false}else{var o=i.querySelector(L.ACTIVE);if(o){g(o).removeClass(M.ACTIVE)}}}else if(r.type==="checkbox"){if(this._element.tagName==="LABEL"&&r.checked===this._element.classList.contains(M.ACTIVE)){t=false}}else{t=false}if(t){r.checked=!this._element.classList.contains(M.ACTIVE);g(r).trigger("change")}r.focus();n=false}}if(!(this._element.hasAttribute("disabled")||this._element.classList.contains("disabled"))){if(n){this._element.setAttribute("aria-pressed",!this._element.classList.contains(M.ACTIVE))}if(t){g(this._element).toggleClass(M.ACTIVE)}}};e.dispose=function e(){g.removeData(this._element,O);this._element=null};n._jQueryInterface=function e(t){return this.each(function(){var e=g(this).data(O);if(!e){e=new n(this);g(this).data(O,e)}if(t==="toggle"){e[t]()}})};o(n,null,[{key:"VERSION",get:function e(){return A}}]);return n}();g(document).on(P.CLICK_DATA_API,L.DATA_TOGGLE_CARROT,function(e){var t=e.target;if(!g(t).hasClass(M.BUTTON)){t=g(t).closest(L.BUTTON)[0]}if(!t||t.hasAttribute("disabled")||t.classList.contains("disabled")){e.preventDefault()}else{var n=t.querySelector(L.INPUT);if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled"))){e.preventDefault();return}j._jQueryInterface.call(g(t),"toggle")}}).on(P.FOCUS_BLUR_DATA_API,L.DATA_TOGGLE_CARROT,function(e){var t=g(e.target).closest(L.BUTTON)[0];g(t).toggleClass(M.FOCUS,/^focus(in)?$/.test(e.type))}),g(window).on(P.LOAD_DATA_API,function(){var e=[].slice.call(document.querySelectorAll(L.DATA_TOGGLES_BUTTONS));for(var t=0,n=e.length;t0;this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent);this._addEventListeners()}var e=a.prototype;e.next=function e(){if(!this._isSliding){this._slide(K.NEXT)}};e.nextWhenVisible=function e(){if(!document.hidden&&g(this._element).is(":visible")&&g(this._element).css("visibility")!=="hidden"){this.next()}};e.prev=function e(){if(!this._isSliding){this._slide(K.PREV)}};e.pause=function e(t){if(!t){this._isPaused=true}if(this._element.querySelector(Z.NEXT_PREV)){v.triggerTransitionEnd(this._element);this.cycle(true)}clearInterval(this._interval);this._interval=null};e.cycle=function e(t){if(!t){this._isPaused=false}if(this._interval){clearInterval(this._interval);this._interval=null}if(this._config.interval&&!this._isPaused){this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)}};e.to=function e(t){var n=this;this._activeElement=this._element.querySelector(Z.ACTIVE_ITEM);var i=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0){return}if(this._isSliding){g(this._element).one(X.SLID,function(){return n.to(t)});return}if(i===t){this.pause();this.cycle();return}var r=t>i?K.NEXT:K.PREV;this._slide(r,this._items[t])};e.dispose=function e(){g(this._element).off($);g.removeData(this._element,F);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null};e._getConfig=function e(t){t=s({},G,{},t);v.typeCheckConfig(H,t,V);return t};e._handleSwipe=function e(){var t=Math.abs(this.touchDeltaX);if(t<=z){return}var n=t/this.touchDeltaX;this.touchDeltaX=0;if(n>0){this.prev()}if(n<0){this.next()}};e._addEventListeners=function e(){var t=this;if(this._config.keyboard){g(this._element).on(X.KEYDOWN,function(e){return t._keydown(e)})}if(this._config.pause==="hover"){g(this._element).on(X.MOUSEENTER,function(e){return t.pause(e)}).on(X.MOUSELEAVE,function(e){return t.cycle(e)})}if(this._config.touch){this._addTouchEventListeners()}};e._addTouchEventListeners=function e(){var n=this;if(!this._touchSupported){return}var t=function e(t){if(n._pointerEvent&&J[t.originalEvent.pointerType.toUpperCase()]){n.touchStartX=t.originalEvent.clientX}else if(!n._pointerEvent){n.touchStartX=t.originalEvent.touches[0].clientX}};var i=function e(t){if(t.originalEvent.touches&&t.originalEvent.touches.length>1){n.touchDeltaX=0}else{n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}};var r=function e(t){if(n._pointerEvent&&J[t.originalEvent.pointerType.toUpperCase()]){n.touchDeltaX=t.originalEvent.clientX-n.touchStartX}n._handleSwipe();if(n._config.pause==="hover"){n.pause();if(n.touchTimeout){clearTimeout(n.touchTimeout)}n.touchTimeout=setTimeout(function(e){return n.cycle(e)},Y+n._config.interval)}};g(this._element.querySelectorAll(Z.ITEM_IMG)).on(X.DRAG_START,function(e){return e.preventDefault()});if(this._pointerEvent){g(this._element).on(X.POINTERDOWN,function(e){return t(e)});g(this._element).on(X.POINTERUP,function(e){return r(e)});this._element.classList.add(Q.POINTER_EVENT)}else{g(this._element).on(X.TOUCHSTART,function(e){return t(e)});g(this._element).on(X.TOUCHMOVE,function(e){return i(e)});g(this._element).on(X.TOUCHEND,function(e){return r(e)})}};e._keydown=function e(t){if(/input|textarea/i.test(t.target.tagName)){return}switch(t.which){case B:t.preventDefault();this.prev();break;case U:t.preventDefault();this.next();break}};e._getItemIndex=function e(t){this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Z.ITEM)):[];return this._items.indexOf(t)};e._getItemByDirection=function e(t,n){var i=t===K.NEXT;var r=t===K.PREV;var o=this._getItemIndex(n);var a=this._items.length-1;var s=r&&o===0||i&&o===a;if(s&&!this._config.wrap){return n}var l=t===K.PREV?-1:1;var c=(o+l)%this._items.length;return c===-1?this._items[this._items.length-1]:this._items[c]};e._triggerSlideEvent=function e(t,n){var i=this._getItemIndex(t);var r=this._getItemIndex(this._element.querySelector(Z.ACTIVE_ITEM));var o=g.Event(X.SLIDE,{relatedTarget:t,direction:n,from:r,to:i});g(this._element).trigger(o);return o};e._setActiveIndicatorElement=function e(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Z.ACTIVE));g(n).removeClass(Q.ACTIVE);var i=this._indicatorsElement.children[this._getItemIndex(t)];if(i){g(i).addClass(Q.ACTIVE)}}};e._slide=function e(t,n){var i=this;var r=this._element.querySelector(Z.ACTIVE_ITEM);var o=this._getItemIndex(r);var a=n||r&&this._getItemByDirection(t,r);var s=this._getItemIndex(a);var l=Boolean(this._interval);var c;var u;var f;if(t===K.NEXT){c=Q.LEFT;u=Q.NEXT;f=K.LEFT}else{c=Q.RIGHT;u=Q.PREV;f=K.RIGHT}if(a&&g(a).hasClass(Q.ACTIVE)){this._isSliding=false;return}var d=this._triggerSlideEvent(a,f);if(d.isDefaultPrevented()){return}if(!r||!a){return}this._isSliding=true;if(l){this.pause()}this._setActiveIndicatorElement(a);var p=g.Event(X.SLID,{relatedTarget:a,direction:f,from:o,to:s});if(g(this._element).hasClass(Q.SLIDE)){g(a).addClass(u);v.reflow(a);g(r).addClass(c);g(a).addClass(c);var h=parseInt(a.getAttribute("data-interval"),10);if(h){this._config.defaultInterval=this._config.defaultInterval||this._config.interval;this._config.interval=h}else{this._config.interval=this._config.defaultInterval||this._config.interval}var m=v.getTransitionDurationFromElement(r);g(r).one(v.TRANSITION_END,function(){g(a).removeClass(c+" "+u).addClass(Q.ACTIVE);g(r).removeClass(Q.ACTIVE+" "+u+" "+c);i._isSliding=false;setTimeout(function(){return g(i._element).trigger(p)},0)}).emulateTransitionEnd(m)}else{g(r).removeClass(Q.ACTIVE);g(a).addClass(Q.ACTIVE);this._isSliding=false;g(this._element).trigger(p)}if(l){this.cycle()}};a._jQueryInterface=function e(i){return this.each(function(){var e=g(this).data(F);var t=s({},G,{},g(this).data());if(typeof i==="object"){t=s({},t,{},i)}var n=typeof i==="string"?i:t.slide;if(!e){e=new a(this,t);g(this).data(F,e)}if(typeof i==="number"){e.to(i)}else if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}else if(t.interval&&t.ride){e.pause();e.cycle()}})};a._dataApiClickHandler=function e(t){var n=v.getSelectorFromElement(this);if(!n){return}var i=g(n)[0];if(!i||!g(i).hasClass(Q.CAROUSEL)){return}var r=s({},g(i).data(),{},g(this).data());var o=this.getAttribute("data-slide-to");if(o){r.interval=false}a._jQueryInterface.call(g(i),r);if(o){g(i).data(F).to(o)}t.preventDefault()};o(a,null,[{key:"VERSION",get:function e(){return R}},{key:"Default",get:function e(){return G}}]);return a}();g(document).on(X.CLICK_DATA_API,Z.DATA_SLIDE,ee._dataApiClickHandler),g(window).on(X.LOAD_DATA_API,function(){var e=[].slice.call(document.querySelectorAll(Z.DATA_RIDE));for(var t=0,n=e.length;t0){this._selector=a;this._triggerArray.push(o)}}this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}if(this._config.toggle){this.toggle()}}var e=u.prototype;e.toggle=function e(){if(g(this._element).hasClass(ue.SHOW)){this.hide()}else{this.show()}};e.show=function e(){var t=this;if(this._isTransitioning||g(this._element).hasClass(ue.SHOW)){return}var n;var i;if(this._parent){n=[].slice.call(this._parent.querySelectorAll(de.ACTIVES)).filter(function(e){if(typeof t._config.parent==="string"){return e.getAttribute("data-parent")===t._config.parent}return e.classList.contains(ue.COLLAPSE)});if(n.length===0){n=null}}if(n){i=g(n).not(this._selector).data(ie);if(i&&i._isTransitioning){return}}var r=g.Event(ce.SHOW);g(this._element).trigger(r);if(r.isDefaultPrevented()){return}if(n){u._jQueryInterface.call(g(n).not(this._selector),"hide");if(!i){g(n).data(ie,null)}}var o=this._getDimension();g(this._element).removeClass(ue.COLLAPSE).addClass(ue.COLLAPSING);this._element.style[o]=0;if(this._triggerArray.length){g(this._triggerArray).removeClass(ue.COLLAPSED).attr("aria-expanded",true)}this.setTransitioning(true);var a=function e(){g(t._element).removeClass(ue.COLLAPSING).addClass(ue.COLLAPSE).addClass(ue.SHOW);t._element.style[o]="";t.setTransitioning(false);g(t._element).trigger(ce.SHOWN)};var s=o[0].toUpperCase()+o.slice(1);var l="scroll"+s;var c=v.getTransitionDurationFromElement(this._element);g(this._element).one(v.TRANSITION_END,a).emulateTransitionEnd(c);this._element.style[o]=this._element[l]+"px"};e.hide=function e(){var t=this;if(this._isTransitioning||!g(this._element).hasClass(ue.SHOW)){return}var n=g.Event(ce.HIDE);g(this._element).trigger(n);if(n.isDefaultPrevented()){return}var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px";v.reflow(this._element);g(this._element).addClass(ue.COLLAPSING).removeClass(ue.COLLAPSE).removeClass(ue.SHOW);var r=this._triggerArray.length;if(r>0){for(var o=0;o0};e._getOffset=function e(){var t=this;var n={};if(typeof this._config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,{},t._config.offset(e.offsets,t._element)||{});return e}}else{n.offset=this._config.offset}return n};e._getPopperConfig=function e(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==="static"){t.modifiers.applyStyle={enabled:false}}return s({},t,{},this._config.popperConfig)};u._jQueryInterface=function e(n){return this.each(function(){var e=g(this).data(ge);var t=typeof n==="object"?n:null;if(!e){e=new u(this,t);g(this).data(ge,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};u._clearMenus=function e(t){if(t&&(t.which===De||t.type==="keyup"&&t.which!==Ce)){return}var n=[].slice.call(document.querySelectorAll(Oe.DATA_TOGGLE));for(var i=0,r=n.length;i0){a--}if(t.which===Te&&adocument.documentElement.clientHeight;if(!this._isBodyOverflowing&&t){this._element.style.paddingLeft=this._scrollbarWidth+"px"}if(this._isBodyOverflowing&&!t){this._element.style.paddingRight=this._scrollbarWidth+"px"}};e._resetAdjustments=function e(){this._element.style.paddingLeft="";this._element.style.paddingRight=""};e._checkScrollbar=function e(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right'+'
'+'
',trigger:"hover focus",title:"",delay:0,html:false,selector:false,placement:"top",offset:0,container:false,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:true,sanitizeFn:null,whiteList:Ke,popperConfig:null},ft={SHOW:"show",OUT:"out"},dt={HIDE:"hide"+it,HIDDEN:"hidden"+it,SHOW:"show"+it,SHOWN:"shown"+it,INSERTED:"inserted"+it,CLICK:"click"+it,FOCUSIN:"focusin"+it,FOCUSOUT:"focusout"+it,MOUSEENTER:"mouseenter"+it,MOUSELEAVE:"mouseleave"+it},pt={FADE:"fade",SHOW:"show"},ht={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},mt={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},gt=function(){function i(e,t){if(typeof d==="undefined"){throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)")}this._isEnabled=true;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=e;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var e=i.prototype;e.enable=function e(){this._isEnabled=true};e.disable=function e(){this._isEnabled=false};e.toggleEnabled=function e(){this._isEnabled=!this._isEnabled};e.toggle=function e(t){if(!this._isEnabled){return}if(t){var n=this.constructor.DATA_KEY;var i=g(t.currentTarget).data(n);if(!i){i=new this.constructor(t.currentTarget,this._getDelegateConfig());g(t.currentTarget).data(n,i)}i._activeTrigger.click=!i._activeTrigger.click;if(i._isWithActiveTrigger()){i._enter(null,i)}else{i._leave(null,i)}}else{if(g(this.getTipElement()).hasClass(pt.SHOW)){this._leave(null,this);return}this._enter(null,this)}};e.dispose=function e(){clearTimeout(this._timeout);g.removeData(this.element,this.constructor.DATA_KEY);g(this.element).off(this.constructor.EVENT_KEY);g(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler);if(this.tip){g(this.tip).remove()}this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper){this._popper.destroy()}this._popper=null;this.element=null;this.config=null;this.tip=null};e.show=function e(){var n=this;if(g(this.element).css("display")==="none"){throw new Error("Please use show on visible elements")}var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var i=v.findShadowRoot(this.element);var r=g.contains(i!==null?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!r){return}var o=this.getTipElement();var a=v.getUID(this.constructor.NAME);o.setAttribute("id",a);this.element.setAttribute("aria-describedby",a);this.setContent();if(this.config.animation){g(o).addClass(pt.FADE)}var s=typeof this.config.placement==="function"?this.config.placement.call(this,o,this.element):this.config.placement;var l=this._getAttachment(s);this.addAttachmentClass(l);var c=this._getContainer();g(o).data(this.constructor.DATA_KEY,this);if(!g.contains(this.element.ownerDocument.documentElement,this.tip)){g(o).appendTo(c)}g(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new d(this.element,o,this._getPopperConfig(l));g(o).addClass(pt.SHOW);if("ontouchstart"in document.documentElement){g(document.body).children().on("mouseover",null,g.noop)}var u=function e(){if(n.config.animation){n._fixTransition()}var t=n._hoverState;n._hoverState=null;g(n.element).trigger(n.constructor.Event.SHOWN);if(t===ft.OUT){n._leave(null,n)}};if(g(this.tip).hasClass(pt.FADE)){var f=v.getTransitionDurationFromElement(this.tip);g(this.tip).one(v.TRANSITION_END,u).emulateTransitionEnd(f)}else{u()}}};e.hide=function e(t){var n=this;var i=this.getTipElement();var r=g.Event(this.constructor.Event.HIDE);var o=function e(){if(n._hoverState!==ft.SHOW&&i.parentNode){i.parentNode.removeChild(i)}n._cleanTipClass();n.element.removeAttribute("aria-describedby");g(n.element).trigger(n.constructor.Event.HIDDEN);if(n._popper!==null){n._popper.destroy()}if(t){t()}};g(this.element).trigger(r);if(r.isDefaultPrevented()){return}g(i).removeClass(pt.SHOW);if("ontouchstart"in document.documentElement){g(document.body).children().off("mouseover",null,g.noop)}this._activeTrigger[mt.CLICK]=false;this._activeTrigger[mt.FOCUS]=false;this._activeTrigger[mt.HOVER]=false;if(g(this.tip).hasClass(pt.FADE)){var a=v.getTransitionDurationFromElement(i);g(i).one(v.TRANSITION_END,o).emulateTransitionEnd(a)}else{o()}this._hoverState=""};e.update=function e(){if(this._popper!==null){this._popper.scheduleUpdate()}};e.isWithContent=function e(){return Boolean(this.getTitle())};e.addAttachmentClass=function e(t){g(this.getTipElement()).addClass(ot+"-"+t)};e.getTipElement=function e(){this.tip=this.tip||g(this.config.template)[0];return this.tip};e.setContent=function e(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(ht.TOOLTIP_INNER)),this.getTitle());g(t).removeClass(pt.FADE+" "+pt.SHOW)};e.setElementContent=function e(t,n){if(typeof n==="object"&&(n.nodeType||n.jquery)){if(this.config.html){if(!g(n).parent().is(t)){t.empty().append(n)}}else{t.text(g(n).text())}return}if(this.config.html){if(this.config.sanitize){n=Je(n,this.config.whiteList,this.config.sanitizeFn)}t.html(n)}else{t.text(n)}};e.getTitle=function e(){var t=this.element.getAttribute("data-original-title");if(!t){t=typeof this.config.title==="function"?this.config.title.call(this.element):this.config.title}return t};e._getPopperConfig=function e(t){var n=this;var i={placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ht.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function e(t){if(t.originalPlacement!==t.placement){n._handlePopperPlacementChange(t)}},onUpdate:function e(t){return n._handlePopperPlacementChange(t)}};return s({},i,{},this.config.popperConfig)};e._getOffset=function e(){var t=this;var n={};if(typeof this.config.offset==="function"){n.fn=function(e){e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{});return e}}else{n.offset=this.config.offset}return n};e._getContainer=function e(){if(this.config.container===false){return document.body}if(v.isElement(this.config.container)){return g(this.config.container)}return g(document).find(this.config.container)};e._getAttachment=function e(t){return ct[t.toUpperCase()]};e._setListeners=function e(){var i=this;var t=this.config.trigger.split(" ");t.forEach(function(e){if(e==="click"){g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)})}else if(e!==mt.MANUAL){var t=e===mt.HOVER?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN;var n=e===mt.HOVER?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}});this._hideModalHandler=function(){if(i.element){i.hide()}};g(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler);if(this.config.selector){this.config=s({},this.config,{trigger:"manual",selector:""})}else{this._fixTitle()}};e._fixTitle=function e(){var t=typeof this.element.getAttribute("data-original-title");if(this.element.getAttribute("title")||t!=="string"){this.element.setAttribute("data-original-title",this.element.getAttribute("title")||"");this.element.setAttribute("title","")}};e._enter=function e(t,n){var i=this.constructor.DATA_KEY;n=n||g(t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());g(t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusin"?mt.FOCUS:mt.HOVER]=true}if(g(n.getTipElement()).hasClass(pt.SHOW)||n._hoverState===ft.SHOW){n._hoverState=ft.SHOW;return}clearTimeout(n._timeout);n._hoverState=ft.SHOW;if(!n.config.delay||!n.config.delay.show){n.show();return}n._timeout=setTimeout(function(){if(n._hoverState===ft.SHOW){n.show()}},n.config.delay.show)};e._leave=function e(t,n){var i=this.constructor.DATA_KEY;n=n||g(t.currentTarget).data(i);if(!n){n=new this.constructor(t.currentTarget,this._getDelegateConfig());g(t.currentTarget).data(i,n)}if(t){n._activeTrigger[t.type==="focusout"?mt.FOCUS:mt.HOVER]=false}if(n._isWithActiveTrigger()){return}clearTimeout(n._timeout);n._hoverState=ft.OUT;if(!n.config.delay||!n.config.delay.hide){n.hide();return}n._timeout=setTimeout(function(){if(n._hoverState===ft.OUT){n.hide()}},n.config.delay.hide)};e._isWithActiveTrigger=function e(){for(var t in this._activeTrigger){if(this._activeTrigger[t]){return true}}return false};e._getConfig=function e(t){var n=g(this.element).data();Object.keys(n).forEach(function(e){if(st.indexOf(e)!==-1){delete n[e]}});t=s({},this.constructor.Default,{},n,{},typeof t==="object"&&t?t:{});if(typeof t.delay==="number"){t.delay={show:t.delay,hide:t.delay}}if(typeof t.title==="number"){t.title=t.title.toString()}if(typeof t.content==="number"){t.content=t.content.toString()}v.typeCheckConfig(et,t,this.constructor.DefaultType);if(t.sanitize){t.template=Je(t.template,t.whiteList,t.sanitizeFn)}return t};e._getDelegateConfig=function e(){var t={};if(this.config){for(var n in this.config){if(this.constructor.Default[n]!==this.config[n]){t[n]=this.config[n]}}}return t};e._cleanTipClass=function e(){var t=g(this.getTipElement());var n=t.attr("class").match(at);if(n!==null&&n.length){t.removeClass(n.join(""))}};e._handlePopperPlacementChange=function e(t){var n=t.instance;this.tip=n.popper;this._cleanTipClass();this.addAttachmentClass(this._getAttachment(t.placement))};e._fixTransition=function e(){var t=this.getTipElement();var n=this.config.animation;if(t.getAttribute("x-placement")!==null){return}g(t).removeClass(pt.FADE);this.config.animation=false;this.hide();this.show();this.config.animation=n};i._jQueryInterface=function e(n){return this.each(function(){var e=g(this).data(nt);var t=typeof n==="object"&&n;if(!e&&/dispose|hide/.test(n)){return}if(!e){e=new i(this,t);g(this).data(nt,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return tt}},{key:"Default",get:function e(){return ut}},{key:"NAME",get:function e(){return et}},{key:"DATA_KEY",get:function e(){return nt}},{key:"Event",get:function e(){return dt}},{key:"EVENT_KEY",get:function e(){return it}},{key:"DefaultType",get:function e(){return lt}}]);return i}();g.fn[et]=gt._jQueryInterface,g.fn[et].Constructor=gt,g.fn[et].noConflict=function(){g.fn[et]=rt;return gt._jQueryInterface};var vt="popover",yt="4.4.1",bt="bs.popover",_t="."+bt,wt=g.fn[vt],Ct="bs-popover",Et=new RegExp("(^|\\s)"+Ct+"\\S+","g"),Tt=s({},gt.Default,{placement:"right",trigger:"click",content:"",template:''}),Dt=s({},gt.DefaultType,{content:"(string|element|function)"}),St={FADE:"fade",SHOW:"show"},xt={TITLE:".popover-header",CONTENT:".popover-body"},At={HIDE:"hide"+_t,HIDDEN:"hidden"+_t,SHOW:"show"+_t,SHOWN:"shown"+_t,INSERTED:"inserted"+_t,CLICK:"click"+_t,FOCUSIN:"focusin"+_t,FOCUSOUT:"focusout"+_t,MOUSEENTER:"mouseenter"+_t,MOUSELEAVE:"mouseleave"+_t},Ot=function(e){n(i,e);function i(){return e.apply(this,arguments)||this}var t=i.prototype;t.isWithContent=function e(){return this.getTitle()||this._getContent()};t.addAttachmentClass=function e(t){g(this.getTipElement()).addClass(Ct+"-"+t)};t.getTipElement=function e(){this.tip=this.tip||g(this.config.template)[0];return this.tip};t.setContent=function e(){var t=g(this.getTipElement());this.setElementContent(t.find(xt.TITLE),this.getTitle());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(xt.CONTENT),n);t.removeClass(St.FADE+" "+St.SHOW)};t._getContent=function e(){return this.element.getAttribute("data-content")||this.config.content};t._cleanTipClass=function e(){var t=g(this.getTipElement());var n=t.attr("class").match(Et);if(n!==null&&n.length>0){t.removeClass(n.join(""))}};i._jQueryInterface=function e(n){return this.each(function(){var e=g(this).data(bt);var t=typeof n==="object"?n:null;if(!e&&/dispose|hide/.test(n)){return}if(!e){e=new i(this,t);g(this).data(bt,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return yt}},{key:"Default",get:function e(){return Tt}},{key:"NAME",get:function e(){return vt}},{key:"DATA_KEY",get:function e(){return bt}},{key:"Event",get:function e(){return At}},{key:"EVENT_KEY",get:function e(){return _t}},{key:"DefaultType",get:function e(){return Dt}}]);return i}(gt);g.fn[vt]=Ot._jQueryInterface,g.fn[vt].Constructor=Ot,g.fn[vt].noConflict=function(){g.fn[vt]=wt;return Ot._jQueryInterface};var It="scrollspy",kt="4.4.1",Nt="bs.scrollspy",Mt="."+Nt,Lt=".data-api",Pt=g.fn[It],jt={offset:10,method:"auto",target:""},Ht={offset:"number",method:"string",target:"(string|element)"},Rt={ACTIVATE:"activate"+Mt,SCROLL:"scroll"+Mt,LOAD_DATA_API:"load"+Mt+Lt},Ft={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},$t={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},qt={OFFSET:"offset",POSITION:"position"},Wt=function(){function i(e,t){var n=this;this._element=e;this._scrollElement=e.tagName==="BODY"?window:e;this._config=this._getConfig(t);this._selector=this._config.target+" "+$t.NAV_LINKS+","+(this._config.target+" "+$t.LIST_ITEMS+",")+(this._config.target+" "+$t.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;g(this._scrollElement).on(Rt.SCROLL,function(e){return n._process(e)});this.refresh();this._process()}var e=i.prototype;e.refresh=function e(){var t=this;var n=this._scrollElement===this._scrollElement.window?qt.OFFSET:qt.POSITION;var r=this._config.method==="auto"?n:this._config.method;var o=r===qt.POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var i=[].slice.call(document.querySelectorAll(this._selector));i.map(function(e){var t;var n=v.getSelectorFromElement(e);if(n){t=document.querySelector(n)}if(t){var i=t.getBoundingClientRect();if(i.width||i.height){return[g(t)[r]().top+o,n]}}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]);t._targets.push(e[1])})};e.dispose=function e(){g.removeData(this._element,Nt);g(this._scrollElement).off(Mt);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null};e._getConfig=function e(t){t=s({},jt,{},typeof t==="object"&&t?t:{});if(typeof t.target!=="string"){var n=g(t.target).attr("id");if(!n){n=v.getUID(It);g(t.target).attr("id",n)}t.target="#"+n}v.typeCheckConfig(It,t,Ht);return t};e._getScrollTop=function e(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop};e._getScrollHeight=function e(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};e._getOffsetHeight=function e(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height};e._process=function e(){var t=this._getScrollTop()+this._config.offset;var n=this._getScrollHeight();var i=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n){this.refresh()}if(t>=i){var r=this._targets[this._targets.length-1];if(this._activeTarget!==r){this._activate(r)}return}if(this._activeTarget&&t0){this._activeTarget=null;this._clear();return}var o=this._offsets.length;for(var a=o;a--;){var s=this._activeTarget!==this._targets[a]&&t>=this._offsets[a]&&(typeof this._offsets[a+1]==="undefined"||t li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},Zt=function(){function i(e){this._element=e}var e=i.prototype;e.show=function e(){var i=this;if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(Xt.ACTIVE)||g(this._element).hasClass(Xt.DISABLED)){return}var t;var r;var n=g(this._element).closest(Qt.NAV_LIST_GROUP)[0];var o=v.getSelectorFromElement(this._element);if(n){var a=n.nodeName==="UL"||n.nodeName==="OL"?Qt.ACTIVE_UL:Qt.ACTIVE;r=g.makeArray(g(n).find(a));r=r[r.length-1]}var s=g.Event(Kt.HIDE,{relatedTarget:this._element});var l=g.Event(Kt.SHOW,{relatedTarget:r});if(r){g(r).trigger(s)}g(this._element).trigger(l);if(l.isDefaultPrevented()||s.isDefaultPrevented()){return}if(o){t=document.querySelector(o)}this._activate(this._element,n);var c=function e(){var t=g.Event(Kt.HIDDEN,{relatedTarget:i._element});var n=g.Event(Kt.SHOWN,{relatedTarget:r});g(r).trigger(t);g(i._element).trigger(n)};if(t){this._activate(t,t.parentNode,c)}else{c()}};e.dispose=function e(){g.removeData(this._element,Yt);this._element=null};e._activate=function e(t,n,i){var r=this;var o=n&&(n.nodeName==="UL"||n.nodeName==="OL")?g(n).find(Qt.ACTIVE_UL):g(n).children(Qt.ACTIVE);var a=o[0];var s=i&&a&&g(a).hasClass(Xt.FADE);var l=function e(){return r._transitionComplete(t,a,i)};if(a&&s){var c=v.getTransitionDurationFromElement(a);g(a).removeClass(Xt.SHOW).one(v.TRANSITION_END,l).emulateTransitionEnd(c)}else{l()}};e._transitionComplete=function e(t,n,i){if(n){g(n).removeClass(Xt.ACTIVE);var r=g(n.parentNode).find(Qt.DROPDOWN_ACTIVE_CHILD)[0];if(r){g(r).removeClass(Xt.ACTIVE)}if(n.getAttribute("role")==="tab"){n.setAttribute("aria-selected",false)}}g(t).addClass(Xt.ACTIVE);if(t.getAttribute("role")==="tab"){t.setAttribute("aria-selected",true)}v.reflow(t);if(t.classList.contains(Xt.FADE)){t.classList.add(Xt.SHOW)}if(t.parentNode&&g(t.parentNode).hasClass(Xt.DROPDOWN_MENU)){var o=g(t).closest(Qt.DROPDOWN)[0];if(o){var a=[].slice.call(o.querySelectorAll(Qt.DROPDOWN_TOGGLE));g(a).addClass(Xt.ACTIVE)}t.setAttribute("aria-expanded",true)}if(i){i()}};i._jQueryInterface=function e(n){return this.each(function(){var e=g(this);var t=e.data(Yt);if(!t){t=new i(this);e.data(Yt,t)}if(typeof n==="string"){if(typeof t[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}t[n]()}})};o(i,null,[{key:"VERSION",get:function e(){return Ut}}]);return i}();g(document).on(Kt.CLICK_DATA_API,Qt.DATA_TOGGLE,function(e){e.preventDefault();Zt._jQueryInterface.call(g(this),"show")}),g.fn[Bt]=Zt._jQueryInterface,g.fn[Bt].Constructor=Zt,g.fn[Bt].noConflict=function(){g.fn[Bt]=Vt;return Zt._jQueryInterface};var Jt="toast",en="4.4.1",tn="bs.toast",nn="."+tn,rn=g.fn[Jt],on={CLICK_DISMISS:"click.dismiss"+nn,HIDE:"hide"+nn,HIDDEN:"hidden"+nn,SHOW:"show"+nn,SHOWN:"shown"+nn},an={FADE:"fade",HIDE:"hide",SHOW:"show",SHOWING:"showing"},sn={animation:"boolean",autohide:"boolean",delay:"number"},ln={animation:true,autohide:true,delay:500},cn={DATA_DISMISS:'[data-dismiss="toast"]'},un=function(){function r(e,t){this._element=e;this._config=this._getConfig(t);this._timeout=null;this._setListeners()}var e=r.prototype;e.show=function e(){var t=this;var n=g.Event(on.SHOW);g(this._element).trigger(n);if(n.isDefaultPrevented()){return}if(this._config.animation){this._element.classList.add(an.FADE)}var i=function e(){t._element.classList.remove(an.SHOWING);t._element.classList.add(an.SHOW);g(t._element).trigger(on.SHOWN);if(t._config.autohide){t._timeout=setTimeout(function(){t.hide()},t._config.delay)}};this._element.classList.remove(an.HIDE);v.reflow(this._element);this._element.classList.add(an.SHOWING);if(this._config.animation){var r=v.getTransitionDurationFromElement(this._element);g(this._element).one(v.TRANSITION_END,i).emulateTransitionEnd(r)}else{i()}};e.hide=function e(){if(!this._element.classList.contains(an.SHOW)){return}var t=g.Event(on.HIDE);g(this._element).trigger(t);if(t.isDefaultPrevented()){return}this._close()};e.dispose=function e(){clearTimeout(this._timeout);this._timeout=null;if(this._element.classList.contains(an.SHOW)){this._element.classList.remove(an.SHOW)}g(this._element).off(on.CLICK_DISMISS);g.removeData(this._element,tn);this._element=null;this._config=null};e._getConfig=function e(t){t=s({},ln,{},g(this._element).data(),{},typeof t==="object"&&t?t:{});v.typeCheckConfig(Jt,t,this.constructor.DefaultType);return t};e._setListeners=function e(){var t=this;g(this._element).on(on.CLICK_DISMISS,cn.DATA_DISMISS,function(){return t.hide()})};e._close=function e(){var t=this;var n=function e(){t._element.classList.add(an.HIDE);g(t._element).trigger(on.HIDDEN)};this._element.classList.remove(an.SHOW);if(this._config.animation){var i=v.getTransitionDurationFromElement(this._element);g(this._element).one(v.TRANSITION_END,n).emulateTransitionEnd(i)}else{n()}};r._jQueryInterface=function e(i){return this.each(function(){var e=g(this);var t=e.data(tn);var n=typeof i==="object"&&i;if(!t){t=new r(this,n);e.data(tn,t)}if(typeof i==="string"){if(typeof t[i]==="undefined"){throw new TypeError('No method named "'+i+'"')}t[i](this)}})};o(r,null,[{key:"VERSION",get:function e(){return en}},{key:"DefaultType",get:function e(){return sn}},{key:"Default",get:function e(){return ln}}]);return r}();g.fn[Jt]=un._jQueryInterface,g.fn[Jt].Constructor=un,g.fn[Jt].noConflict=function(){g.fn[Jt]=rn;return un._jQueryInterface},e.Alert=S,e.Button=j,e.Carousel=ee,e.Collapse=pe,e.Dropdown=Me,e.Modal=ze,e.Popover=Ot,e.Scrollspy=Wt,e.Tab=Zt,e.Toast=un,e.Tooltip=gt,e.Util=v,Object.defineProperty(e,"__esModule",{value:true})}(t,n(0),n(9))},function(e,t,n){var i,r;(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(this);var y=this.Rails;(function(){(function(){var t;t=null,y.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},y.cspNonce=function(){return null!=t?t:y.loadCSPNonce()}}).call(this),function(){var i,n;n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,y.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},i="_ujsData",y.getData=function(e,t){var n;return null!=(n=e[i])?n[t]:void 0},y.setData=function(e,t,n){return null==e[i]&&(e[i]={}),e[i][t]=n},y.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}.call(this),function(){var n,i,r;n=y.$,r=y.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},i=y.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},y.CSRFProtection=function(e){var t;if(null!=(t=r()))return e.setRequestHeader("X-CSRF-Token",t)},y.refreshCSRFTokens=function(){var e,t;if(t=r(),e=i(),null!=t&&null!=e)return n('form input[name="'+e+'"]').forEach(function(e){return e.value=t})}}.call(this),function(){var r,t,o,n;o=y.matches,"function"!=typeof(r=window.CustomEvent)&&((r=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype,n=r.prototype.preventDefault,r.prototype.preventDefault=function(){var e;return e=n.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),e}),t=y.fire=function(e,t,n){var i;return i=new r(t,{bubbles:!0,cancelable:!0,detail:n}),e.dispatchEvent(i),!i.defaultPrevented},y.stopEverything=function(e){return t(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},y.delegate=function(e,n,t,i){return e.addEventListener(t,function(e){var t;for(t=e.target;t instanceof Element&&!o(t,n);)t=t.parentNode;if(t instanceof Element&&!1===i.call(t,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,i,e,r,o,a;r=y.cspNonce,i=y.CSRFProtection,y.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},y.ajax=function(n){var i;return n=o(n),i=e(n,function(){var e,t;return t=a(null!=(e=i.response)?e:i.responseText,i.getResponseHeader("Content-Type")),2===Math.floor(i.status/100)?"function"==typeof n.success&&n.success(t,i.statusText,i):"function"==typeof n.error&&n.error(t,i.statusText,i),"function"==typeof n.complete?n.complete(i,i.statusText):void 0}),!(null!=n.beforeSend&&!n.beforeSend(i,n))&&(i.readyState===XMLHttpRequest.OPENED?i.send(n.data):void 0)},o=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},e=function(e,t){var n;return(n=new XMLHttpRequest).open(e.type,e.url,!0),n.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||n.setRequestHeader("X-Requested-With","XMLHttpRequest"),i(n),n.withCredentials=!!e.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return t(n)},n},a=function(e,t){var n,i;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(e){}else if(t.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",r()),i.text=e,document.head.appendChild(i).parentNode.removeChild(i);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(e){}}return e},y.href=function(e){return e.href},y.isCrossDomain=function(e){var t,n;(t=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=e,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(e){return!0}}}.call(this),function(){var r,o;r=y.matches,o=function(e){return Array.prototype.slice.call(e)},y.serializeElement=function(e,t){var n,i;return n=[e],r(e,"form")&&(n=o(e.elements)),i=[],n.forEach(function(t){if(t.name&&!t.disabled&&!r(t,"fieldset[disabled] *"))return r(t,"select")?o(t.options).forEach(function(e){if(e.selected)return i.push({name:t.name,value:e.value})}):t.checked||-1===["radio","checkbox","submit"].indexOf(t.type)?i.push({name:t.name,value:t.value}):void 0}),t&&i.push(t),i.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},y.formElements=function(e,t){return r(e,"form")?o(e.elements).filter(function(e){return r(e,t)}):o(e.querySelectorAll(t))}}.call(this),function(){var t,r,n;r=y.fire,n=y.stopEverything,y.handleConfirm=function(e){if(!t(this))return n(e)},y.confirm=function(e,t){return confirm(e)},t=function(e){var t,n,i;if(!(i=e.getAttribute("data-confirm")))return!0;if(t=!1,r(e,"confirm")){try{t=y.confirm(i,e)}catch(e){}n=r(e,"confirm:complete",[t])}return t&&n}}.call(this),function(){var n,i,r,o,a,s,t,l,c,u,f,d;u=y.matches,l=y.getData,f=y.setData,d=y.stopEverything,t=y.formElements,y.handleDisabledElement=function(e){if(this.disabled)return d(e)},y.enableElement=function(e){var t;if(e instanceof Event){if(c(e))return;t=e.target}else t=e;return u(t,y.linkDisableSelector)?s(t):u(t,y.buttonDisableSelector)||u(t,y.formEnableSelector)?o(t):u(t,y.formSubmitSelector)?a(t):void 0},y.disableElement=function(e){var t;return t=e instanceof Event?e.target:e,u(t,y.linkDisableSelector)?r(t):u(t,y.buttonDisableSelector)||u(t,y.formDisableSelector)?n(t):u(t,y.formSubmitSelector)?i(t):void 0},r=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",d),f(e,"ujs:disabled",!0)},s=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,f(e,"ujs:enable-with",null)),e.removeEventListener("click",d),f(e,"ujs:disabled",null)},i=function(e){return t(e,y.formDisableSelector).forEach(n)},n=function(e){var t;if(!l(e,"ujs:disabled"))return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"button")?(f(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(f(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,f(e,"ujs:disabled",!0)},a=function(e){return t(e,y.formEnableSelector).forEach(o)},o=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(u(e,"button")?e.innerHTML=t:e.value=t,f(e,"ujs:enable-with",null)),e.disabled=!1,f(e,"ujs:disabled",null)},c=function(e){var t,n;return null!=(null!=(n=null!=(t=e.detail)?t[0]:void 0)?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var s;s=y.stopEverything,y.handleMethod=function(e){var t,n,i,r,o,a;if(a=this.getAttribute("data-method"))return o=y.href(this),n=y.csrfToken(),t=y.csrfParam(),i=document.createElement("form"),r="",null==t||null==n||y.isCrossDomain(o)||(r+=""),r+='',i.method="post",i.action=o,i.target=this.target,i.innerHTML=r,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),s(e)}}.call(this),function(){var l,c,u,f,d,p,h,m,g,v=[].slice;p=y.matches,u=y.getData,m=y.setData,c=y.fire,g=y.stopEverything,l=y.ajax,f=y.isCrossDomain,h=y.serializeElement,d=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},y.handleRemote=function(e){var t,n,i,r,o,a,s;return!d(r=this)||(c(r,"ajax:before")?(s=r.getAttribute("data-with-credentials"),i=r.getAttribute("data-type")||"script",p(r,y.formSubmitSelector)?(t=u(r,"ujs:submit-button"),o=u(r,"ujs:submit-button-formmethod")||r.method,a=u(r,"ujs:submit-button-formaction")||r.getAttribute("action")||location.href,"GET"===o.toUpperCase()&&(a=a.replace(/\?.*$/,"")),"multipart/form-data"===r.enctype?(n=new FormData(r),null!=t&&n.append(t.name,t.value)):n=h(r,t),m(r,"ujs:submit-button",null),m(r,"ujs:submit-button-formmethod",null),m(r,"ujs:submit-button-formaction",null)):n=p(r,y.buttonClickSelector)||p(r,y.inputChangeSelector)?(o=r.getAttribute("data-method"),a=r.getAttribute("data-url"),h(r,r.getAttribute("data-params"))):(o=r.getAttribute("data-method"),a=y.href(r),r.getAttribute("data-params")),l({type:o||"GET",url:a,data:n,dataType:i,beforeSend:function(e,t){return c(r,"ajax:beforeSend",[e,t])?c(r,"ajax:send",[e]):(c(r,"ajax:stopped"),!1)},success:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(r,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(r,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?v.call(arguments,0):[],c(r,"ajax:complete",e)},crossDomain:f(a),withCredentials:null!=s&&"false"!==s}),g(e)):(c(r,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(e){var t,n;if(n=(t=this).form)return t.name&&m(n,"ujs:submit-button",{name:t.name,value:t.value}),m(n,"ujs:formnovalidate-button",t.formNoValidate),m(n,"ujs:submit-button-formaction",t.getAttribute("formaction")),m(n,"ujs:submit-button-formmethod",t.getAttribute("formmethod"))},y.preventInsignificantClick=function(e){var t,n,i;if(i=(this.getAttribute("data-method")||"GET").toUpperCase(),t=this.getAttribute("data-params"),n=(e.metaKey||e.ctrlKey)&&"GET"===i&&!t,null!=e.button&&0!==e.button||n)return e.stopImmediatePropagation()}}.call(this),function(){var e,i,t,n,r,o,a,s,l,c,u,f,d,p,h;if(o=y.fire,t=y.delegate,s=y.getData,e=y.$,h=y.refreshCSRFTokens,i=y.CSRFProtection,d=y.loadCSPNonce,r=y.enableElement,n=y.disableElement,c=y.handleDisabledElement,l=y.handleConfirm,p=y.preventInsignificantClick,f=y.handleRemote,a=y.formSubmitButtonClick,u=y.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(e,t,n){if(!e.crossDomain)return i(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return e(y.formEnableSelector).forEach(function(e){if(s(e,"ujs:disabled"))return r(e)}),e(y.linkDisableSelector).forEach(function(e){if(s(e,"ujs:disabled"))return r(e)})}),t(document,y.linkDisableSelector,"ajax:complete",r),t(document,y.linkDisableSelector,"ajax:stopped",r),t(document,y.buttonDisableSelector,"ajax:complete",r),t(document,y.buttonDisableSelector,"ajax:stopped",r),t(document,y.linkClickSelector,"click",p),t(document,y.linkClickSelector,"click",c),t(document,y.linkClickSelector,"click",l),t(document,y.linkClickSelector,"click",n),t(document,y.linkClickSelector,"click",f),t(document,y.linkClickSelector,"click",u),t(document,y.buttonClickSelector,"click",p),t(document,y.buttonClickSelector,"click",c),t(document,y.buttonClickSelector,"click",l),t(document,y.buttonClickSelector,"click",n),t(document,y.buttonClickSelector,"click",f),t(document,y.inputChangeSelector,"change",c),t(document,y.inputChangeSelector,"change",l),t(document,y.inputChangeSelector,"change",f),t(document,y.formSubmitSelector,"submit",c),t(document,y.formSubmitSelector,"submit",l),t(document,y.formSubmitSelector,"submit",f),t(document,y.formSubmitSelector,"submit",function(e){return setTimeout(function(){return n(e)},13)}),t(document,y.formSubmitSelector,"ajax:send",n),t(document,y.formSubmitSelector,"ajax:complete",r),t(document,y.formInputClickSelector,"click",p),t(document,y.formInputClickSelector,"click",c),t(document,y.formInputClickSelector,"click",l),t(document,y.formInputClickSelector,"click",a),document.addEventListener("DOMContentLoaded",h),document.addEventListener("DOMContentLoaded",d),window._rails_loaded=!0},window.Rails===y&&o(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),e.exports?e.exports=y:void 0===(r="function"==typeof(i=y)?i.call(t,n,t,e):i)||(e.exports=r)}).call(this)},function(e,t,n){ /*! * bsCustomFileInput v1.3.2 (https://github.com/Johann-S/bs-custom-file-input) * Copyright 2018 - 2019 Johann-S * Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE) */ e.exports=function(){"use strict";var u={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},o=3,f=function e(t){var n="";var i=t.parentNode.querySelector(u.CUSTOMFILELABEL);if(i){n=i.innerHTML}return n},a=function e(t){if(t.childNodes.length>0){var n=[].slice.call(t.childNodes);for(var i=0;i>10|55296,1023&i|56320)}function r(){C()}var e,p,_,o,a,h,d,m,w,l,c,C,E,s,T,g,u,v,y,D="sizzle"+1*new Date,b=n.document,S=0,i=0,x=le(),A=le(),O=le(),I=le(),k=function(e,t){return e===t&&(c=!0),0},N={}.hasOwnProperty,t=[],M=t.pop,L=t.push,P=t.push,j=t.slice,H=function(e,t){for(var n=0,i=e.length;n+~]|"+F+")"+F+"*"),G=new RegExp(F+"|>"),V=new RegExp(W),K=new RegExp("^"+$+"$"),X={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,ie=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=j.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){L.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(t,e,n,i){var r,o,a,s,l,c,u,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&((e?e.ownerDocument||e:b)!==E&&C(e),e=e||E,T)){if(11!==d&&(l=te.exec(t)))if(r=l[1]){if(9===d){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&y(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return P.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(r)),n}if(p.qsa&&!I[t+" "]&&(!g||!g.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(u=t,f=e,1===d&&G.test(t)){for((s=e.getAttribute("id"))?s=s.replace(re,oe):e.setAttribute("id",s=D),o=(c=h(t)).length;o--;)c[o]="#"+s+" "+be(c[o]);u=c.join(","),f=ne.test(t)&&ve(e.parentNode)||e}try{return P.apply(n,f.querySelectorAll(u)),n}catch(e){I(t,!0)}finally{s===D&&e.removeAttribute("id")}}}return m(t.replace(U,"$1"),e,n,i)}function le(){var i=[];return function e(t,n){return i.push(t+" ")>_.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ce(e){return e[D]=!0,e}function ue(e){var t=E.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)_.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ge(a){return ce(function(o){return o=+o,ce(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Q.test(t||n&&n.nodeName||"HTML")},C=se.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!==E&&9===i.nodeType&&i.documentElement&&(s=(E=i).documentElement,T=!a(E),b!==E&&(n=E.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),p.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=ue(function(e){return e.appendChild(E.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=ee.test(E.getElementsByClassName),p.getById=ue(function(e){return s.appendChild(e).id=D,!E.getElementsByName||!E.getElementsByName(D).length}),p.getById?(_.filter.ID=function(e){var t=e.replace(ie,f);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n=t.getElementById(e);return n?[n]:[]}}):(_.filter.ID=function(e){var n=e.replace(ie,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&T){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),_.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},_.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&T)return t.getElementsByClassName(e)},u=[],g=[],(p.qsa=ee.test(E.querySelectorAll))&&(ue(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+D+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+D+"+*").length||g.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=E.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=ee.test(v=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ue(function(e){p.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),u.push("!=",W)}),g=g.length&&new RegExp(g.join("|")),u=u.length&&new RegExp(u.join("|")),t=ee.test(s.compareDocumentPosition),y=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===E||e.ownerDocument===b&&y(b,e)?-1:t===E||t.ownerDocument===b&&y(b,t)?1:l?H(l,e)-H(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===E?-1:t===E?1:r?-1:o?1:l?H(l,e)-H(l,t):0;if(r===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?de(a[i],s[i]):a[i]===b?-1:s[i]===b?1:0}),E},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==E&&C(e),p.matchesSelector&&T&&!I[t+" "]&&(!u||!u.test(t))&&(!g||!g.test(t)))try{var n=v.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){I(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,f),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=se.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,n,i){return b(n)?D.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?D.grep(e,function(e){return e===n!==i}):"string"!=typeof n?D.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(D.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||I,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(D):D.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof D?t[0]:t,D.merge(this,D.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),A.test(i[1])&&D.isPlainObject(t))for(i in t)b(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=T.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=D.fn,I=D(T);var N=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}D.fn.extend({has:function(e){var t=D(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,he={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?D.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;nx",y.noCloneChecked=!!ve.cloneNode(!0).lastChild.defaultValue;var we=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function De(){return!1}function Se(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function xe(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)xe(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=De;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return D().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=D.guid++)),e.each(function(){D.event.add(this,t,r,i,n)})}function Ae(e,r,o){o?(K.set(e,r,!1),D.event.add(e,r,{namespace:!1,handler:function(e){var t,n,i=K.get(this,r);if(1&e.isTrigger&&this[r]){if(i.length)(D.event.special[r]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),K.set(this,r,i),t=o(this,r),this[r](),i!==(n=K.get(this,r))||t?K.set(this,r,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else i.length&&(K.set(this,r,{value:D.event.trigger(D.extend(i[0],D.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,r)&&D.event.add(e,r,Te)}D.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,f,d,p,h,m,g=K.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&D.find.matchesSelector(ie,r),n.guid||(n.guid=D.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==D&&D.event.triggered!==e.type?D.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(P)||[""]).length;c--;)p=m=(s=Ee.exec(e[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(f=D.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=D.event.special[p]||{},u=D.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&D.expr.match.needsContext.test(r),namespace:h.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,h,a)||t.addEventListener&&t.addEventListener(p,a)),f.add&&(f.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),D.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,l,c,u,f,d,p,h,m,g=K.hasData(e)&&K.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(P)||[""]).length;c--;)if(p=m=(s=Ee.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(f=D.event.special[p]||{},d=l[p=(i?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(e,u));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||D.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)D.event.remove(e,p+t[c],n,i,!0);D.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,a,s=D.event.fix(e),l=new Array(arguments.length),c=(K.get(this,"events")||{})[s.type]||[],u=D.event.special[s.type]||{};for(l[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ie=/\s*$/g;function Me(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&D(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,i,r,o,a,s,l,c;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),a=K.set(t,o),c=o.events))for(r in delete a.handle,a.events={},c)for(n=0,i=c[r].length;n")},clone:function(e,t,n){var i,r,o,a,s,l,c,u=e.cloneNode(!0),f=re(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||D.isXMLDoc(e)))for(a=me(u),i=0,r=(o=me(e)).length;i").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(i[0])},abort:function(){r&&r()}}});var tn,nn=[],rn=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||D.expando+"_"+Mt++;return this[e]=!0,e}}),D.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(rn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(rn,"$1"+i):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||D.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=E[i],E[i]=function(){o=arguments},n.always(function(){void 0===r?D(E).removeProp(i):E[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,nn.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((tn=T.implementation.createHTMLDocument("").body).innerHTML="
",2===tn.childNodes.length),D.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),o=!n&&[],(r=A.exec(e))?[t.createElement(r[1])]:(r=_e([e],t,o),o&&o.length&&D(o).remove(),D.merge([],r.childNodes)));var i,r,o},D.fn.load=function(e,t,n){var i,r,o,a=this,s=e.indexOf(" ");return-1").append(D.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){D.fn[t]=function(e){return this.on(t,e)}}),D.expr.pseudos.animated=function(t){return D.grep(D.timers,function(e){return t===e.elem}).length},D.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,c=D.css(e,"position"),u=D(e),f={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=D.css(e,"top"),l=D.css(e,"left"),r=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(i=u.position()).top,i.left):(a=parseFloat(o)||0,parseFloat(l)||0),b(t)&&(t=t.call(e,n,D.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):u.css(f)}},D.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){D.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===D.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===D.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=D(e).offset()).top+=D.css(e,"borderTopWidth",!0),r.left+=D.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-D.css(i,"marginTop",!0),left:t.left-r.left-D.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===D.css(e,"position");)e=e.offsetParent;return e||ie})}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;D.fn[t]=function(e){return W(this,function(e,t,n){var i;if(m(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),D.each(["top","left"],function(e,n){D.cssHooks[n]=Ze(y.pixelPosition,function(e,t){if(t)return t=Qe(e,n),ze.test(t)?D(e).position()[n]+"px":t})}),D.each({Height:"height",Width:"width"},function(a,s){D.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){D.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,n){var i;return m(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?D.css(e,t,r):D.style(e,t,n,r)},s,n?e:void 0,n)}})}),D.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){D.fn[n]=function(e,t){return 0=i.clientWidth&&n>=i.clientHeight}),f=0l[e]&&!i.escapeWithReference&&(n=Math.min(u[t],l[e]-("right"===e?u.width:u.height))),E({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=T({},u,f[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!U(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",f=u.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",h=I(i)[c];s[p]-ha[p]&&(e.offsets.popper[f]+=s[f]+h-a[p]),e.offsets.popper=D(e.offsets.popper);var m=s[f]+s[c]/2-h/2,g=_(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),b=m-e.offsets.popper[f]-v-y;return b=Math.max(Math.min(a[c]-h,b),0),e.arrowElement=i,e.offsets.arrow=(E(n={},f,Math.round(b)),E(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(g,v){if(P(g.instance.modifiers,"inner"))return g;if(g.flipped&&g.placement===g.originalPlacement)return g;var y=p(g.instance.popper,g.instance.reference,v.padding,v.boundariesElement,g.positionFixed),b=g.placement.split("-")[0],_=k(b),w=g.placement.split("-")[1]||"",C=[];switch(v.behavior){case V:C=[b,_];break;case K:C=G(b);break;case X:C=G(b,!0);break;default:C=v.behavior}return C.forEach(function(e,t){if(b!==e||C.length===t+1)return g;b=g.placement.split("-")[0],_=k(b);var n,i=g.offsets.popper,r=g.offsets.reference,o=Math.floor,a="left"===b&&o(i.right)>o(r.left)||"right"===b&&o(i.left)o(r.top)||"bottom"===b&&o(i.top)o(y.right),c=o(i.top)o(y.bottom),f="left"===b&&s||"right"===b&&l||"top"===b&&c||"bottom"===b&&u,d=-1!==["top","bottom"].indexOf(b),p=!!v.flipVariations&&(d&&"start"===w&&s||d&&"end"===w&&l||!d&&"start"===w&&c||!d&&"end"===w&&u),h=!!v.flipVariationsByContent&&(d&&"start"===w&&l||d&&"end"===w&&s||!d&&"start"===w&&u||!d&&"end"===w&&c),m=p||h;(a||f||m)&&(g.flipped=!0,(a||f)&&(b=C[t+1]),m&&(w="end"===(n=w)?"start":"start"===n?"end":n),g.placement=b+(w?"-"+w:""),g.offsets.popper=T({},g.offsets.popper,N(g.instance.popper,g.offsets.reference,g.placement)),g=L(g.instance.modifiers,g,"flip"))}),g},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=k(t),e.offsets.popper=D(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!U(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right * @copyright 2014-2018 Damien "Mistic" Sorel * @licence Apache License, Version 2.0 */ !function(s){"use strict";function i(e,t){for(var n=0;n\n
\n

\n
\n

\n
\n
\n
\n
\n'});if(m.whiteList){m.whiteList["*"].push("data-apply","data-dismiss")}var g={FADE:"fade",SHOW:"show"},v={TITLE:".popover-header",CONTENT:".confirmation-content",BUTTONS:".confirmation-buttons .btn-group"},y={13:"Enter",27:"Escape",39:"ArrowRight",40:"ArrowDown"},b={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u,CONFIRMED:"confirmed"+u,CANCELED:"canceled"+u,KEYUP:"keyup"+u},_,w=function(i){n(r,i);t(r,null,[{key:"VERSION",get:function e(){return l}},{key:"Default",get:function e(){return m}},{key:"NAME",get:function e(){return a}},{key:"DATA_KEY",get:function e(){return c}},{key:"Event",get:function e(){return b}},{key:"EVENT_KEY",get:function e(){return u}},{key:"DefaultType",get:function e(){return h}}]);function r(e,t){var n;n=i.call(this,e,t)||this;if((n.config.popout||n.config.singleton)&&!n.config.rootSelector){throw new Error("The rootSelector option is required to use popout and singleton features since jQuery 3.")}n._isDelegate=false;if(t.selector){t._selector=t.rootSelector+" "+t.selector;n.config._selector=t._selector}else if(t._selector){n.config._selector=t._selector;n._isDelegate=true}else{n.config._selector=t.rootSelector}if(n.config.confirmationEvent===undefined){n.config.confirmationEvent=n.config.trigger}if(!n.config.selector){n._copyAttributes()}n._setConfirmationListeners();return n}var e=r.prototype;e.isWithContent=function e(){return true};e.setContent=function e(){var t=s(this.getTipElement());var n=this._getContent();if(typeof n==="function"){n=n.call(this.element)}this.setElementContent(t.find(v.TITLE),this.getTitle());t.find(v.CONTENT).toggle(!!n);if(n){this.setElementContent(t.find(v.CONTENT),n)}if(this.config.buttons.length>0){this._setButtons(t,this.config.buttons)}else{this._setStandardButtons(t)}t.removeClass(g.FADE+" "+g.SHOW);this._setupKeyupEvent()};e.dispose=function e(){s("body").off(b.CLICK+"."+this.uid);this.eventBody=false;this._cleanKeyupEvent();i.prototype.dispose.call(this)};e.hide=function e(t){this._cleanKeyupEvent();i.prototype.hide.call(this,t)};e._copyAttributes=function e(){var t=this;this.config._attributes={};if(this.config.copyAttributes){if(typeof this.config.copyAttributes==="string"){this.config.copyAttributes=this.config.copyAttributes.split(" ")}}else{this.config.copyAttributes=[]}this.config.copyAttributes.forEach(function(e){t.config._attributes[e]=s(t.element).attr(e)})};e._setConfirmationListeners=function e(){var t=this;if(!this.config.selector){s(this.element).on(this.config.trigger,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}});s(this.element).on(b.SHOWN,function(){if(t.config.singleton){s(t.config._selector).not(s(this)).filter(function(){return s(this).data(c)!==undefined}).confirmation("hide")}})}else{s(this.element).on(this.config.trigger,this.config.selector,function(e,t){if(!t){e.preventDefault();e.stopPropagation();e.stopImmediatePropagation()}})}if(!this._isDelegate){this.eventBody=false;this.uid=this.element.id||r.getUID(a+"_group");s(this.element).on(b.SHOWN,function(){if(t.config.popout&&!t.eventBody){t.eventBody=s("body").on(b.CLICK+"."+t.uid,function(e){if(s(t.config._selector).is(e.target)||s(t.config._selector).has(e.target).length>0){return}s(t.config._selector).filter(function(){return s(this).data(c)!==undefined}).confirmation("hide");s("body").off(b.CLICK+"."+t.uid);t.eventBody=false})}})}};e._setStandardButtons=function e(t){var n=[{class:this.config.btnOkClass,label:this.config.btnOkLabel,iconClass:this.config.btnOkIconClass,iconContent:this.config.btnOkIconContent,attr:this.config._attributes},{class:this.config.btnCancelClass,label:this.config.btnCancelLabel,iconClass:this.config.btnCancelIconClass,iconContent:this.config.btnCancelIconContent,cancel:true}];this._setButtons(t,n)};e._setButtons=function e(t,n){var i=this;var r=t.find(v.BUTTONS).empty();n.forEach(function(t){var e=s('').addClass(d).addClass(t.class||p+" btn-secondary").html(t.label||"").attr(t.attr||{});if(t.iconClass||t.iconContent){e.prepend(s("").addClass(t.iconClass||"").text(t.iconContent||""))}e.one("click",function(e){if(s(this).attr("href")==="#"){e.preventDefault()}if(t.onClick){t.onClick.call(s(i.element))}if(t.cancel){i.config.onCancel.call(i.element,t.value);s(i.element).trigger(b.CANCELED,[t.value])}else{i.config.onConfirm.call(i.element,t.value);s(i.element).trigger(b.CONFIRMED,[t.value]);s(i.element).trigger(i.config.confirmationEvent,[true])}i.hide()});r.append(e)})};e._setupKeyupEvent=function e(){_=this;s(window).off(b.KEYUP).on(b.KEYUP,this._onKeyup.bind(this))};e._cleanKeyupEvent=function e(){if(_===this){_=undefined;s(window).off(b.KEYUP)}};e._onKeyup=function e(t){if(!this.tip){this._cleanKeyupEvent();return}var n=s(this.getTipElement());var i=t.key||y[t.keyCode||t.which];var r=n.find(v.BUTTONS);var o=r.find(".active");var a;switch(i){case"Escape":this.hide();break;case"ArrowRight":if(o.length&&o.next().length){a=o.next()}else{a=r.children().first()}o.removeClass("active");a.addClass("active").focus();break;case"ArrowLeft":if(o.length&&o.prev().length){a=o.prev()}else{a=r.children().last()}o.removeClass("active");a.addClass("active").focus();break;default:break}};r.getUID=function e(t){var n=t;do{n+=~~(Math.random()*1e6)}while(document.getElementById(n));return n};r._jQueryInterface=function e(n){return this.each(function(){var e=s(this).data(c);var t=typeof n==="object"?n:{};t.rootSelector=s(this).selector||t.rootSelector;if(!e&&/destroy|hide/.test(n)){return}if(!e){e=new r(this,t);s(this).data(c,e)}if(typeof n==="string"){if(typeof e[n]==="undefined"){throw new TypeError('No method named "'+n+'"')}e[n]()}})};return r}(o);s.fn[a]=w._jQueryInterface,s.fn[a].Constructor=w,s.fn[a].noConflict=function(){s.fn[a]=f;return w._jQueryInterface}}(n(0),n(3))},function(e,t,n){var i,r,o; /*! Magnific Popup - v1.1.0 - 2016-02-20 * http://dimsemenov.com/plugins/magnific-popup/ * Copyright (c) 2016 Dmitry Semenov; */r=[n(0)],void 0===(o="function"==typeof(i=function(u){var l="Close",c="BeforeClose",n="AfterClose",i="BeforeAppend",f="MarkupParse",d="Open",r="Change",o="mfp",p="."+o,h="mfp-ready",a="mfp-removing",s="mfp-prevent-close",m,e=function(){},g=!!window.jQuery,v,y=u(window),b,_,w,t,C=function(e,t){m.ev.on(o+e+p,t)},E=function(e,t,n,i){var r=document.createElement("div");r.className="mfp-"+e;if(n){r.innerHTML=n}if(!i){r=u(r);if(t){r.appendTo(t)}}else if(t){t.appendChild(r)}return r},T=function(e,t){m.ev.triggerHandler(o+e,t);if(m.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(m.st.callbacks[e]){m.st.callbacks[e].apply(m,u.isArray(t)?t:[t])}}},D=function(e){if(e!==t||!m.currTemplate.closeBtn){m.currTemplate.closeBtn=u(m.st.closeMarkup.replace("%title%",m.st.tClose));t=e}return m.currTemplate.closeBtn},S=function(){if(!u.magnificPopup.instance){m=new e;m.init();u.magnificPopup.instance=m}},x=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(e["transition"]!==undefined){return true}while(t.length){if(t.pop()+"Transition"in e){return true}}return false};e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener;m.isAndroid=/android/gi.test(e);m.isIOS=/iphone|ipad|ipod/gi.test(e);m.supportsTransition=x();m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);b=u(document);m.popupsCache={}},open:function(e){var t;if(e.isObj===false){m.items=e.items.toArray();m.index=0;var n=e.items,i;for(t=0;t(e||y.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).focus()},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!u.contains(m.wrap[0],e.target)){m._setFocus();return false}},_parseMarkup:function(r,e,t){var o;if(t.data){e=u.extend(t.data,e)}T(f,[r,e,t]);u.each(e,function(e,t){if(t===undefined||t===false){return true}o=e.split("_");if(o.length>1){var n=r.find(p+"-"+o[0]);if(n.length>0){var i=o[1];if(i==="replaceWith"){if(n[0]!==t[0]){n.replaceWith(t)}}else if(i==="img"){if(n.is("img")){n.attr("src",t)}else{n.replaceWith(u("").attr("src",t).attr("class",n.attr("class")))}}else{n.attr(o[1],t)}}}else{r.find(p+"-"+e).html(t)}})},_getScrollbarSize:function(){if(m.scrollbarSize===undefined){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(e);m.scrollbarSize=e.offsetWidth-e.clientWidth;document.body.removeChild(e)}return m.scrollbarSize}},u.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){S();if(!e){e={}}else{e=u.extend(true,{},e)}e.isObj=true;e.index=t||0;return this.instance.open(e)},close:function(){return u.magnificPopup.instance&&u.magnificPopup.instance.close()},registerModule:function(e,t){if(t.options){u.magnificPopup.defaults[e]=t.options}u.extend(this.proto,t.proto);this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:false,mainClass:"",preloader:true,focus:"",closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:true}},u.fn.magnificPopup=function(e){S();var t=u(this);if(typeof e==="string"){if(e==="open"){var n,i=g?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;if(i.items){n=i.items[r]}else{n=t;if(i.delegate){n=n.find(i.delegate)}n=n.eq(r)}m._openClick({mfpEl:n},t,i)}else{if(m.isOpen)m[e].apply(m,Array.prototype.slice.call(arguments,1))}}else{e=u.extend(true,{},e);if(g){t.data("magnificPopup",e)}else{t[0].magnificPopup=e}m.addGroup(t,e)}return t};var A="inline",O,I,k,N=function(){if(k){I.after(k.addClass(O)).detach();k=null}};u.magnificPopup.registerModule(A,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(A);C(l+"."+A,function(){N()})},getInline:function(e,t){N();if(e.src){var n=m.st.inline,i=u(e.src);if(i.length){var r=i[0].parentNode;if(r&&r.tagName){if(!I){O=n.hiddenClass;I=E(O);O="mfp-"+O}k=i.after(I).detach().removeClass(O)}m.updateStatus("ready")}else{m.updateStatus("error",n.tNotFound);i=u("
")}e.inlineElement=i;return i}m.updateStatus("ready");m._parseMarkup(t,{},e);return t}}});var M="ajax",L,P=function(){if(L){u(document.body).removeClass(L)}},j=function(){P();if(m.req){m.req.abort()}};u.magnificPopup.registerModule(M,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){m.types.push(M);L=m.st.ajax.cursor;C(l+"."+M,j);C("BeforeChange."+M,j)},getAjax:function(r){if(L){u(document.body).addClass(L)}m.updateStatus("loading");var e=u.extend({url:r.src,success:function(e,t,n){var i={data:e,xhr:n};T("ParseAjax",i);m.appendContent(u(i.data),M);r.finished=true;P();m._setFocus();setTimeout(function(){m.wrap.addClass(h)},16);m.updateStatus("ready");T("AjaxContentAdded")},error:function(){P();r.finished=r.loadError=true;m.updateStatus("error",m.st.ajax.tError.replace("%url%",r.src))}},m.st.ajax.settings);m.req=u.ajax(e);return""}}});var H,R=function(e){if(e.data&&e.data.title!==undefined)return e.data.title;var t=m.st.image.titleSrc;if(t){if(u.isFunction(t)){return t.call(m,e)}else if(e.el){return e.el.attr(t)||""}}return""};u.magnificPopup.registerModule("image",{options:{markup:'
'+'
'+"
"+'
'+"
"+'
'+'
'+'
'+"
"+"
"+"
"+"
",cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:true,tError:'The image could not be loaded.'},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image");C(d+t,function(){if(m.currItem.type==="image"&&e.cursor){u(document.body).addClass(e.cursor)}});C(l+t,function(){if(e.cursor){u(document.body).removeClass(e.cursor)}y.off("resize"+p)});C("Resize"+t,m.resizeImage);if(m.isLowIE){C("AfterChange",m.resizeImage)}},resizeImage:function(){var e=m.currItem;if(!e||!e.img)return;if(m.st.image.verticalFit){var t=0;if(m.isLowIE){t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)}e.img.css("max-height",m.wH-t)}},_onImageHasSize:function(e){if(e.img){e.hasSize=true;if(H){clearInterval(H)}e.isCheckingImgSize=false;T("ImageHasSize",e);if(e.imgHidden){if(m.content)m.content.removeClass("mfp-loading");e.imgHidden=false}}},findImageSize:function(t){var n=0,i=t.img[0],r=function(e){if(H){clearInterval(H)}H=setInterval(function(){if(i.naturalWidth>0){m._onImageHasSize(t);return}if(n>200){clearInterval(H)}n++;if(n===3){r(10)}else if(n===40){r(50)}else if(n===100){r(500)}},e)};r(1)},getImage:function(e,t){var n=0,i=function(){if(e){if(e.img[0].complete){e.img.off(".mfploader");if(e===m.currItem){m._onImageHasSize(e);m.updateStatus("ready")}e.hasSize=true;e.loaded=true;T("ImageLoadComplete")}else{n++;if(n<200){setTimeout(i,100)}else{r()}}}},r=function(){if(e){e.img.off(".mfploader");if(e===m.currItem){m._onImageHasSize(e);m.updateStatus("error",o.tError.replace("%url%",e.src))}e.hasSize=true;e.loaded=true;e.loadError=true}},o=m.st.image;var a=t.find(".mfp-img");if(a.length){var s=document.createElement("img");s.className="mfp-img";if(e.el&&e.el.find("img").length){s.alt=e.el.find("img").attr("alt")}e.img=u(s).on("load.mfploader",i).on("error.mfploader",r);s.src=e.src;if(a.is("img")){e.img=e.img.clone()}s=e.img[0];if(s.naturalWidth>0){e.hasSize=true}else if(!s.width){e.hasSize=false}}m._parseMarkup(t,{title:R(e),img_replaceWith:e.img},e);m.resizeImage();if(e.hasSize){if(H)clearInterval(H);if(e.loadError){t.addClass("mfp-loading");m.updateStatus("error",o.tError.replace("%url%",e.src))}else{t.removeClass("mfp-loading");m.updateStatus("ready")}return t}m.updateStatus("loading");e.loading=true;if(!e.hasSize){e.imgHidden=true;t.addClass("mfp-loading");m.findImageSize(e)}return t}}});var F,$=function(){if(F===undefined){F=document.createElement("p").style.MozTransform!==undefined}return F};u.magnificPopup.registerModule("zoom",{options:{enabled:false,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var o=m.st.zoom,e=".zoom",t;if(!o.enabled||!m.supportsTransition){return}var n=o.duration,i=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+o.duration/1e3+"s "+o.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=n;t.css(i);return t},r=function(){m.content.css("visibility","visible")},a,s;C("BuildControls"+e,function(){if(m._allowZoom()){clearTimeout(a);m.content.css("visibility","hidden");t=m._getItemToZoom();if(!t){r();return}s=i(t);s.css(m._getOffset());m.wrap.append(s);a=setTimeout(function(){s.css(m._getOffset(true));a=setTimeout(function(){r();setTimeout(function(){s.remove();t=s=null;T("ZoomAnimationEnded")},16)},n)},16)}});C(c+e,function(){if(m._allowZoom()){clearTimeout(a);m.st.removalDelay=n;if(!t){t=m._getItemToZoom();if(!t){return}s=i(t)}s.css(m._getOffset(true));m.wrap.append(s);m.content.css("visibility","hidden");setTimeout(function(){s.css(m._getOffset())},16)}});C(l+e,function(){if(m._allowZoom()){r();if(s){s.remove()}t=null}})},_allowZoom:function(){return m.currItem.type==="image"},_getItemToZoom:function(){if(m.currItem.hasSize){return m.currItem.img}else{return false}},_getOffset:function(e){var t;if(e){t=m.currItem.img}else{t=m.st.zoom.opener(m.currItem.el||m.currItem)}var n=t.offset();var i=parseInt(t.css("padding-top"),10);var r=parseInt(t.css("padding-bottom"),10);n.top-=u(window).scrollTop()-i;var o={width:t.width(),height:(g?t.innerHeight():t[0].offsetHeight)-r-i};if($()){o["-moz-transform"]=o["transform"]="translate("+n.left+"px,"+n.top+"px)"}else{o.left=n.left;o.top=n.top}return o}}});var q="iframe",W="//about:blank",B=function(e){if(m.currTemplate[q]){var t=m.currTemplate[q].find("iframe");if(t.length){if(!e){t[0].src=W}if(m.isIE8){t.css("display",e?"block":"none")}}}};u.magnificPopup.registerModule(q,{options:{markup:'
'+'
'+''+"
",srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(q);C("BeforeChange",function(e,t,n){if(t!==n){if(t===q){B()}else if(n===q){B(true)}}});C(l+"."+q,function(){B()})},getIframe:function(e,t){var n=e.src;var i=m.st.iframe;u.each(i.patterns,function(){if(n.indexOf(this.index)>-1){if(this.id){if(typeof this.id==="string"){n=n.substr(n.lastIndexOf(this.id)+this.id.length,n.length)}else{n=this.id.call(this,n)}}n=this.src.replace("%id%",n);return false}});var r={};if(i.srcAction){r[i.srcAction]=n}m._parseMarkup(t,r,e);m.updateStatus("ready");return t}}});var U=function(e){var t=m.items.length;if(e>t-1){return e-t}else if(e<0){return t+e}return e},Y=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};u.magnificPopup.registerModule("gallery",{options:{enabled:false,arrowMarkup:'',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=m.st.gallery,e=".mfp-gallery";m.direction=true;if(!o||!o.enabled)return false;w+=" mfp-gallery";C(d+e,function(){if(o.navigateByImgClick){m.wrap.on("click"+e,".mfp-img",function(){if(m.items.length>1){m.next();return false}})}b.on("keydown"+e,function(e){if(e.keyCode===37){m.prev()}else if(e.keyCode===39){m.next()}})});C("UpdateStatus"+e,function(e,t){if(t.text){t.text=Y(t.text,m.currItem.index,m.items.length)}});C(f+e,function(e,t,n,i){var r=m.items.length;n.counter=r>1?Y(o.tCounter,i.index,r):""});C("BuildControls"+e,function(){if(m.items.length>1&&o.arrows&&!m.arrowLeft){var e=o.arrowMarkup,t=m.arrowLeft=u(e.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,"left")).addClass(s),n=m.arrowRight=u(e.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,"right")).addClass(s);t.click(function(){m.prev()});n.click(function(){m.next()});m.container.append(t.add(n))}});C(r+e,function(){if(m._preloadTimeout)clearTimeout(m._preloadTimeout);m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages();m._preloadTimeout=null},16)});C(l+e,function(){b.off(e);m.wrap.off("click"+e);m.arrowRight=m.arrowLeft=null})},next:function(){m.direction=true;m.index=U(m.index+1);m.updateItemHTML()},prev:function(){m.direction=false;m.index=U(m.index-1);m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index;m.index=e;m.updateItemHTML()},preloadNearbyImages:function(){var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),i;for(i=1;i<=(m.direction?n:t);i++){m._preloadItem(m.index+i)}for(i=1;i<=(m.direction?t:n);i++){m._preloadItem(m.index-i)}},_preloadItem:function(e){e=U(e);if(m.items[e].preloaded){return}var t=m.items[e];if(!t.parsed){t=m.parseEl(e)}T("LazyLoad",t);if(t.type==="image"){t.img=u('').on("load.mfploader",function(){t.hasSize=true}).on("error.mfploader",function(){t.hasSize=true;t.loadError=true;T("LazyLoadError",t)}).attr("src",t.src)}t.preloaded=true}}});var z="retina";u.magnificPopup.registerModule(z,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var n=m.st.retina,i=n.ratio;i=!isNaN(i)?i:i();if(i>1){C("ImageHasSize"+"."+z,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})});C("ElementParse"+"."+z,function(e,t){t.src=n.replaceSrc(t,i)})}}}}}),S()})?i.apply(t,r):i)||(e.exports=o)},function(i,e,t){var n,r,o;r=[t(0)],void 0===(o="function"==typeof(n=function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd){var t=n.fn.select2.amd}var t;(function(){if(!t||!t.requirejs){if(!t){t={}}else{r=t} /** * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. * Released under MIT license, http://github.com/requirejs/almond/LICENSE */var e,r,u;(function(p){var o,a,h,m,g={},v={},y={},b={},n=Object.prototype.hasOwnProperty,i=[].slice,_=/\.js$/;function w(e,t){return n.call(e,t)}function s(e,t){var n,i,r,o,a,s,l,c,u,f,d,p,h=t&&t.split("/"),m=y.map,g=m&&m["*"]||{};if(e){e=e.split("/");a=e.length-1;if(y.nodeIdCompat&&_.test(e[a])){e[a]=e[a].replace(_,"")}if(e[0].charAt(0)==="."&&h){p=h.slice(0,h.length-1);e=p.concat(e)}for(u=0;u0){e.splice(u-1,2);u-=2}}}e=e.join("/")}if((h||g)&&m){n=e.split("/");for(u=n.length;u>0;u-=1){i=n.slice(0,u).join("/");if(h){for(f=h.length;f>0;f-=1){r=m[h.slice(0,f).join("/")];if(r){r=r[i];if(r){o=r;s=u;break}}}}if(o){break}if(!l&&g&&g[i]){l=g[i];c=u}}if(!o&&l){o=l;s=c}if(o){n.splice(0,s,o);e=n.join("/")}}return e}function C(t,n){return function(){var e=i.call(arguments,0);if(typeof e[0]!=="string"&&e.length===1){e.push(null)}return a.apply(p,e.concat([t,n]))}}function l(t){return function(e){return s(e,t)}}function E(t){return function(e){g[t]=e}}function T(e){if(w(v,e)){var t=v[e];delete v[e];b[e]=true;o.apply(p,t)}if(!w(g,e)&&!w(b,e)){throw new Error("No "+e)}return g[e]}function c(e){var t,n=e?e.indexOf("!"):-1;if(n>-1){t=e.substring(0,n);e=e.substring(n+1,e.length)}return[t,e]}function D(e){return e?c(e):[]}h=function(e,t){var n,i=c(e),r=i[0],o=t[1];e=i[1];if(r){r=s(r,o);n=T(r)}if(r){if(n&&n.normalize){e=n.normalize(e,l(o))}else{e=s(e,o)}}else{e=s(e,o);i=c(e);r=i[0];e=i[1];if(r){n=T(r)}}return{f:r?r+"!"+e:e,n:e,pr:r,p:n}};function t(e){return function(){return y&&y.config&&y.config[e]||{}}}m={require:function(e){return C(e)},exports:function(e){var t=g[e];if(typeof t!=="undefined"){return t}else{return g[e]={}}},module:function(e){return{id:e,uri:"",exports:g[e],config:t(e)}}};o=function(e,t,n,i){var r,o,a,s,l,c,u=[],f=typeof n,d;i=i||e;c=D(i);if(f==="undefined"||f==="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(l=0;l0){e.call(arguments,i.prototype.constructor);n=r.prototype.constructor}n.apply(this,arguments)}r.displayName=i.displayName;function n(){this.constructor=o}o.prototype=new n;for(var a=0;a":">",'"':""","'":"'","/":"/"};if(typeof e!=="string"){return e}return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})};r.appendMany=function(e,t){if(o.fn.jquery.substr(0,3)==="1.7"){var n=o();o.map(t,function(e){n=n.add(e)});t=n}e.append(t)};r.__cache={};var n=0;r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");if(t==null){if(e.id){t=e.id;e.setAttribute("data-select2-id",t)}else{e.setAttribute("data-select2-id",++n);t=n.toString()}}return t};r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);if(!r.__cache[i]){r.__cache[i]={}}r.__cache[i][t]=n};r.GetData=function(e,t){var n=r.GetUniqueElementId(e);if(t){if(r.__cache[n]){if(r.__cache[n][t]!=null){return r.__cache[n][t]}return o(e).data(t)}return o(e).data(t)}else{return r.__cache[n]}};r.RemoveData=function(e){var t=r.GetUniqueElementId(e);if(r.__cache[t]!=null){delete r.__cache[t]}e.removeAttribute("data-select2-id")};return r});t.define("select2/results",["jquery","./utils"],function(h,m){function i(e,t,n){this.$element=e;this.data=n;this.options=t;i.__super__.constructor.call(this)}m.Extend(i,m.Observable);i.prototype.render=function(){var e=h('
    ');if(this.options.get("multiple")){e.attr("aria-multiselectable","true")}this.$results=e;return e};i.prototype.clear=function(){this.$results.empty()};i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear();this.hideLoading();var n=h('');var i=this.options.get("translations").get(e.message);n.append(t(i(e.args)));n[0].className+=" select2-results__message";this.$results.append(n)};i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()};i.prototype.append=function(e){this.hideLoading();var t=[];if(e.results==null||e.results.length===0){if(this.$results.children().length===0){this.trigger("results:message",{message:"noResults"})}return}e.results=this.sort(e.results);for(var n=0;n0){t.first().trigger("mouseenter")}else{e.first().trigger("mouseenter")}this.ensureHighlightVisible()};i.prototype.setClasses=function(){var n=this;this.data.current(function(e){var i=h.map(e,function(e){return e.id.toString()});var t=n.$results.find(".select2-results__option[aria-selected]");t.each(function(){var e=h(this);var t=m.GetData(this,"data");var n=""+t.id;if(t.element!=null&&t.element.selected||t.element==null&&h.inArray(n,i)>-1){e.attr("aria-selected","true")}else{e.attr("aria-selected","false")}})})};i.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching");var n={disabled:true,loading:true,text:t(e)};var i=this.option(n);i.className+=" loading-results";this.$results.prepend(i)};i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()};i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"};var i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;if(e.element!=null&&i.call(e.element,":disabled")||e.element==null&&e.disabled){delete n["aria-selected"];n["aria-disabled"]="true"}if(e.id==null){delete n["aria-selected"]}if(e._resultId!=null){t.id=e._resultId}if(e.title){t.title=e.title}if(e.children){n.role="group";n["aria-label"]=e.text;delete n["aria-selected"]}for(var r in n){var o=n[r];t.setAttribute(r,o)}if(e.children){var a=h(t);var s=document.createElement("strong");s.className="select2-results__group";var l=h(s);this.template(e,s);var c=[];for(var u=0;u",{class:"select2-results__options select2-results__options--nested"});p.append(c);a.append(s);a.append(p)}else{this.template(e,t)}m.StoreData(t,"data",e);return t};i.prototype.bind=function(t,e){var l=this;var n=t.id+"-results";this.$results.attr("id",n);t.on("results:all",function(e){l.clear();l.append(e.data);if(t.isOpen()){l.setClasses();l.highlightFirstItem()}});t.on("results:append",function(e){l.append(e.data);if(t.isOpen()){l.setClasses()}});t.on("query",function(e){l.hideMessages();l.showLoading(e)});t.on("select",function(){if(!t.isOpen()){return}l.setClasses();if(l.options.get("scrollAfterSelect")){l.highlightFirstItem()}});t.on("unselect",function(){if(!t.isOpen()){return}l.setClasses();if(l.options.get("scrollAfterSelect")){l.highlightFirstItem()}});t.on("open",function(){l.$results.attr("aria-expanded","true");l.$results.attr("aria-hidden","false");l.setClasses();l.ensureHighlightVisible()});t.on("close",function(){l.$results.attr("aria-expanded","false");l.$results.attr("aria-hidden","true");l.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var e=l.getHighlightedResults();if(e.length===0){return}e.trigger("mouseup")});t.on("results:select",function(){var e=l.getHighlightedResults();if(e.length===0){return}var t=m.GetData(e[0],"data");if(e.attr("aria-selected")=="true"){l.trigger("close",{})}else{l.trigger("select",{data:t})}});t.on("results:previous",function(){var e=l.getHighlightedResults();var t=l.$results.find("[aria-selected]");var n=t.index(e);if(n<=0){return}var i=n-1;if(e.length===0){i=0}var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top;var a=r.offset().top;var s=l.$results.scrollTop()+(a-o);if(i===0){l.$results.scrollTop(0)}else if(a-o<0){l.$results.scrollTop(s)}});t.on("results:next",function(){var e=l.getHighlightedResults();var t=l.$results.find("[aria-selected]");var n=t.index(e);var i=n+1;if(i>=t.length){return}var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top+l.$results.outerHeight(false);var a=r.offset().top+r.outerHeight(false);var s=l.$results.scrollTop()+a-o;if(i===0){l.$results.scrollTop(0)}else if(a>o){l.$results.scrollTop(s)}});t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(e){l.displayMessage(e)});if(h.fn.mousewheel){this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop();var n=l.$results.get(0).scrollHeight-t+e.deltaY;var i=e.deltaY>0&&t-e.deltaY<=0;var r=e.deltaY<0&&n<=l.$results.height();if(i){l.$results.scrollTop(0);e.preventDefault();e.stopPropagation()}else if(r){l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height());e.preventDefault();e.stopPropagation()}})}this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this);var n=m.GetData(this,"data");if(t.attr("aria-selected")==="true"){if(l.options.get("multiple")){l.trigger("unselect",{originalEvent:e,data:n})}else{l.trigger("close",{})}return}l.trigger("select",{originalEvent:e,data:n})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=m.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted");l.trigger("results:focus",{data:t,element:h(this)})})};i.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e};i.prototype.destroy=function(){this.$results.remove()};i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(e.length===0){return}var t=this.$results.find("[aria-selected]");var n=t.index(e);var i=this.$results.offset().top;var r=e.offset().top;var o=this.$results.scrollTop()+(r-i);var a=r-i;o-=e.outerHeight(false)*2;if(n<=2){this.$results.scrollTop(0)}else if(a>this.$results.outerHeight()||a<0){this.$results.scrollTop(o)}};i.prototype.template=function(e,t){var n=this.options.get("templateResult");var i=this.options.get("escapeMarkup");var r=n(e,t);if(r==null){t.style.display="none"}else if(typeof r==="string"){t.innerHTML=i(r)}else{h(t).append(r)}};return i});t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e});t.define("select2/selection/base",["jquery","../utils","../keys"],function(r,o,a){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}o.Extend(n,o.Observable);n.prototype.render=function(){var e=r('");this._tabindex=0;if(o.GetData(this.$element[0],"old-tabindex")!=null){this._tabindex=o.GetData(this.$element[0],"old-tabindex")}else if(this.$element.attr("tabindex")!=null){this._tabindex=this.$element.attr("tabindex")}e.attr("title",this.$element.attr("title"));e.attr("tabindex",this._tabindex);e.attr("aria-disabled","false");this.$selection=e;return e};n.prototype.bind=function(e,t){var n=this;var i=e.id+"-results";this.container=e;this.$selection.on("focus",function(e){n.trigger("focus",e)});this.$selection.on("blur",function(e){n._handleBlur(e)});this.$selection.on("keydown",function(e){n.trigger("keypress",e);if(e.which===a.SPACE){e.preventDefault()}});e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)});e.on("selection:update",function(e){n.update(e.data)});e.on("open",function(){n.$selection.attr("aria-expanded","true");n.$selection.attr("aria-owns",i);n._attachCloseHandler(e)});e.on("close",function(){n.$selection.attr("aria-expanded","false");n.$selection.removeAttr("aria-activedescendant");n.$selection.removeAttr("aria-owns");n.$selection.trigger("focus");n._detachCloseHandler(e)});e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex);n.$selection.attr("aria-disabled","false")});e.on("disable",function(){n.$selection.attr("tabindex","-1");n.$selection.attr("aria-disabled","true")})};n.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){if(document.activeElement==t.$selection[0]||r.contains(t.$selection[0],document.activeElement)){return}t.trigger("blur",e)},1)};n.prototype._attachCloseHandler=function(e){r(document.body).on("mousedown.select2."+e.id,function(e){var t=r(e.target);var n=t.closest(".select2");var i=r(".select2.select2-container--open");i.each(function(){if(this==n[0]){return}var e=o.GetData(this,"element");e.select2("close")})})};n.prototype._detachCloseHandler=function(e){r(document.body).off("mousedown.select2."+e.id)};n.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)};n.prototype.destroy=function(){this._detachCloseHandler(this.container)};n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")};return n});t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}n.Extend(r,t);r.prototype.render=function(){var e=r.__super__.render.call(this);e.addClass("select2-selection--single");e.html(''+''+''+"");return e};r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true");this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(e){if(e.which!==1){return}n.trigger("toggle",{originalEvent:e})});this.$selection.on("focus",function(e){});this.$selection.on("blur",function(e){});t.on("focus",function(e){if(!t.isOpen()){n.$selection.trigger("focus")}})};r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty();e.removeAttr("title")};r.prototype.display=function(e,t){var n=this.options.get("templateSelection");var i=this.options.get("escapeMarkup");return i(n(e,t))};r.prototype.selectionContainer=function(){return e("")};r.prototype.update=function(e){if(e.length===0){this.clear();return}var t=e[0];var n=this.$selection.find(".select2-selection__rendered");var i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;if(r){n.attr("title",r)}else{n.removeAttr("title")}};return r});t.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}l.Extend(n,e);n.prototype.render=function(){var e=n.__super__.render.call(this);e.addClass("select2-selection--multiple");e.html('
      ');return e};n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments);this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})});this.$selection.on("click",".select2-selection__choice__remove",function(e){if(r.options.get("disabled")){return}var t=o(this);var n=t.parent();var i=l.GetData(n[0],"data");r.trigger("unselect",{originalEvent:e,data:i})})};n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty();e.removeAttr("title")};n.prototype.display=function(e,t){var n=this.options.get("templateSelection");var i=this.options.get("escapeMarkup");return i(n(e,t))};n.prototype.selectionContainer=function(){var e=o('
    • '+''+"×"+""+"
    • ");return e};n.prototype.update=function(e){this.clear();if(e.length===0){return}var t=[];for(var n=0;n1;if(i||n){return e.call(this,t)}this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)};return t});t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(r,i,s){function e(){}e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n);if(this.placeholder==null){if(this.options.get("debug")&&window.console&&console.error){console.error("Select2: The `allowClear` option should be used in combination "+"with the `placeholder` option.")}}this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)});t.on("keypress",function(e){i._handleKeyboardClear(e,t)})};e.prototype._handleClear=function(e,t){if(this.options.get("disabled")){return}var n=this.$selection.find(".select2-selection__clear");if(n.length===0){return}t.stopPropagation();var i=s.GetData(n[0],"data");var r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};this.trigger("clear",o);if(o.prevented){this.$element.val(r);return}for(var a=0;a0||t.length===0){return}var n=this.options.get("translations").get("removeAllItems");var i=r(''+"×"+"");s.StoreData(i[0],"data",t);this.$selection.find(".select2-selection__rendered").prepend(i)};return e});t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,s,l){function e(e,t,n){e.call(this,t,n)}e.prototype.render=function(e){var t=i('");this.$searchContainer=t;this.$search=t.find("input");var n=e.call(this);this._transferTabIndex();return n};e.prototype.bind=function(e,t,n){var r=this;var i=t.id+"-results";e.call(this,t,n);t.on("open",function(){r.$search.attr("aria-controls",i);r.$search.trigger("focus")});t.on("close",function(){r.$search.val("");r.$search.removeAttr("aria-controls");r.$search.removeAttr("aria-activedescendant");r.$search.trigger("focus")});t.on("enable",function(){r.$search.prop("disabled",false);r._transferTabIndex()});t.on("disable",function(){r.$search.prop("disabled",true)});t.on("focus",function(e){r.$search.trigger("focus")});t.on("results:focus",function(e){if(e.data._resultId){r.$search.attr("aria-activedescendant",e.data._resultId)}else{r.$search.removeAttr("aria-activedescendant")}});this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)});this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)});this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation();r.trigger("keypress",e);r._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===l.BACKSPACE&&r.$search.val()===""){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var i=s.GetData(n[0],"data");r.searchRemoveChoice(i);e.preventDefault()}}});this.$selection.on("click",".select2-search--inline",function(e){if(r.$search.val()){e.stopPropagation()}});var o=document.documentMode;var a=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){if(a){r.$selection.off("input.search input.searchcheck");return}r.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&e.type==="input"){r.$selection.off("input.search input.searchcheck");return}var t=e.which;if(t==l.SHIFT||t==l.CTRL||t==l.ALT){return}if(t==l.TAB){return}r.handleSearch(e)})};e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")};e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)};e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");e.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();if(n){this.$search.trigger("focus")}};e.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=false};e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()};e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(this.$search.attr("placeholder")!==""){e=this.$selection.find(".select2-selection__rendered").width()}else{var t=this.$search.val().length+1;e=t*.75+"em"}this.$search.css("width",e)};return e});t.define("select2/selection/eventRelay",["jquery"],function(a){function e(){}e.prototype.bind=function(e,t,n){var i=this;var r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"];var o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n);t.on("*",function(e,t){if(a.inArray(e,r)===-1){return}t=t||{};var n=a.Event("select2:"+e,{params:t});i.$element.trigger(n);if(a.inArray(e,o)===-1){return}t.prevented=n.isDefaultPrevented()})};return e});t.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}i.prototype.all=function(){return this.dict};i.prototype.get=function(e){return this.dict[e]};i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)};i._cache={};i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])};return i});t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"};return e});t.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}i.Extend(n,i.Observable);n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")};n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")};n.prototype.bind=function(e,t){};n.prototype.destroy=function(){};n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";n+=i.generateChars(4);if(t.id!=null){n+="-"+t.id.toString()}else{n+="-"+i.generateChars(4)}return n};return n});t.define("select2/data/select",["./base","../utils","jquery"],function(e,s,l){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}s.Extend(n,e);n.prototype.current=function(e){var n=[];var i=this;this.$element.find(":selected").each(function(){var e=l(this);var t=i.item(e);n.push(t)});e(n)};n.prototype.select=function(r){var o=this;r.selected=true;if(l(r.element).is("option")){r.element.selected=true;this.$element.trigger("change");return}if(this.$element.prop("multiple")){this.current(function(e){var t=[];r=[r];r.push.apply(r,e);for(var n=0;n=0){var l=n.filter(o(s));var c=this.item(l);var u=m.extend(true,{},s,c);var f=this.option(u);l.replaceWith(f);continue}var d=this.option(s);if(s.children){var p=this.convertToOptions(s.children);h.appendMany(d,p)}r.push(d)}return r};return i});t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,a){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults}n.__super__.constructor.call(this,e,t)}t.Extend(n,e);n.prototype._applyDefaults=function(e){var t={data:function(e){return a.extend({},e,{q:e.term})},transport:function(e,t,n){var i=a.ajax(e);i.then(t);i.fail(n);return i}};return a.extend({},t,e,true)};n.prototype.processResults=function(e){return e};n.prototype.query=function(n,i){var e=[];var r=this;if(this._request!=null){if(a.isFunction(this._request.abort)){this._request.abort()}this._request=null}var t=a.extend({type:"GET"},this.ajaxOptions);if(typeof t.url==="function"){t.url=t.url.call(this.$element,n)}if(typeof t.data==="function"){t.data=t.data.call(this.$element,n)}function o(){var e=t.transport(t,function(e){var t=r.processResults(e,n);if(r.options.get("debug")&&window.console&&console.error){if(!t||!t.results||!a.isArray(t.results)){console.error("Select2: The AJAX results did not return an array in the "+"`results` key of the response.")}}i(t)},function(){if("status"in e&&(e.status===0||e.status==="0")){return}r.trigger("results:message",{message:"errorLoading"})});r._request=e}if(this.ajaxOptions.delay&&n.term!=null){if(this._queryTimeout){window.clearTimeout(this._queryTimeout)}this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)}else{o()}};return n});t.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var i=n.get("tags");var r=n.get("createTag");if(r!==undefined){this.createTag=r}var o=n.get("insertTag");if(o!==undefined){this.insertTag=o}e.call(this,t,n);if(u.isArray(i)){for(var a=0;a0&&t.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});return}e.call(this,t,n)};return e});t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength");e.call(this,t,n)}e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n);t.on("select",function(){i._checkIfMaximumSelected()})};e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})};e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=e!=null?e.length:0;if(i.maximumSelectionLength>0&&t>=i.maximumSelectionLength){i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}});return}if(n){n()}})};return e});t.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e;this.options=t;n.__super__.constructor.call(this)}e.Extend(n,e.Observable);n.prototype.render=function(){var e=t(''+''+"");e.attr("dir",this.options.get("dir"));this.$dropdown=e;return e};n.prototype.bind=function(){};n.prototype.position=function(e,t){};n.prototype.destroy=function(){this.$dropdown.remove()};return n});t.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}t.prototype.render=function(e){var t=e.call(this);var n=o(''+''+"");this.$searchContainer=n;this.$search=n.find("input");t.prepend(n);return t};t.prototype.bind=function(e,t,n){var i=this;var r=t.id+"-results";e.call(this,t,n);this.$search.on("keydown",function(e){i.trigger("keypress",e);i._keyUpPrevented=e.isDefaultPrevented()});this.$search.on("input",function(e){o(this).off("keyup")});this.$search.on("keyup input",function(e){i.handleSearch(e)});t.on("open",function(){i.$search.attr("tabindex",0);i.$search.attr("aria-controls",r);i.$search.trigger("focus");window.setTimeout(function(){i.$search.trigger("focus")},0)});t.on("close",function(){i.$search.attr("tabindex",-1);i.$search.removeAttr("aria-controls");i.$search.removeAttr("aria-activedescendant");i.$search.val("");i.$search.trigger("blur")});t.on("focus",function(){if(!t.isOpen()){i.$search.trigger("focus")}});t.on("results:all",function(e){if(e.query.term==null||e.query.term===""){var t=i.showSearch(e);if(t){i.$searchContainer.removeClass("select2-search--hide")}else{i.$searchContainer.addClass("select2-search--hide")}}});t.on("results:focus",function(e){if(e.data._resultId){i.$search.attr("aria-activedescendant",e.data._resultId)}else{i.$search.removeAttr("aria-activedescendant")}})};t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=false};t.prototype.showSearch=function(e,t){return true};return t});t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder"));e.call(this,t,n,i)}e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results);e.call(this,t)};e.prototype.normalizePlaceholder=function(e,t){if(typeof t==="string"){t={id:"",text:t}}return t};e.prototype.removePlaceholder=function(e,t){var n=t.slice(0);for(var i=t.length-1;i>=0;i--){var r=t[i];if(this.placeholder.id===r.id){n.splice(i,1)}}return n};return e});t.define("select2/dropdown/infiniteScroll",["jquery"],function(i){function e(e,t,n,i){this.lastParams={};e.call(this,t,n,i);this.$loadingMore=this.createLoadingMore();this.loading=false}e.prototype.append=function(e,t){this.$loadingMore.remove();this.loading=false;e.call(this,t);if(this.showLoadingMore(t)){this.$results.append(this.$loadingMore);this.loadMoreIfNeeded()}};e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n);t.on("query",function(e){i.lastParams=e;i.loading=true});t.on("query:append",function(e){i.lastParams=e;i.loading=true});this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))};e.prototype.loadMoreIfNeeded=function(){var e=i.contains(document.documentElement,this.$loadingMore[0]);if(this.loading||!e){return}var t=this.$results.offset().top+this.$results.outerHeight(false);var n=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(false);if(t+50>=n){this.loadMore()}};e.prototype.loadMore=function(){this.loading=true;var e=i.extend({},{page:1},this.lastParams);e.page++;this.trigger("query:append",e)};e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more};e.prototype.createLoadingMore=function(){var e=i("
    • ');var t=this.options.get("translations").get("loadingMore");e.html(t(this.lastParams));return e};return e});t.define("select2/dropdown/attachBody",["jquery","../utils"],function(p,s){function e(e,t,n){this.$dropdownParent=p(n.get("dropdownParent")||document.body);e.call(this,t,n)}e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n);t.on("open",function(){i._showDropdown();i._attachPositioningHandler(t);i._bindContainerResultHandlers(t)});t.on("close",function(){i._hideDropdown();i._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})};e.prototype.destroy=function(e){e.call(this);this.$dropdownContainer.remove()};e.prototype.position=function(e,t,n){t.attr("class",n.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=n};e.prototype.render=function(e){var t=p("");var n=e.call(this);t.append(n);this.$dropdownContainer=t;return t};e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()};e.prototype._bindContainerResultHandlers=function(e,t){if(this._containerResultsHandlersBound){return}var n=this;t.on("results:all",function(){n._positionDropdown();n._resizeDropdown()});t.on("results:append",function(){n._positionDropdown();n._resizeDropdown()});t.on("results:message",function(){n._positionDropdown();n._resizeDropdown()});t.on("select",function(){n._positionDropdown();n._resizeDropdown()});t.on("unselect",function(){n._positionDropdown();n._resizeDropdown()});this._containerResultsHandlersBound=true};e.prototype._attachPositioningHandler=function(e,t){var n=this;var i="scroll.select2."+t.id;var r="resize.select2."+t.id;var o="orientationchange.select2."+t.id;var a=this.$container.parents().filter(s.hasScroll);a.each(function(){s.StoreData(this,"select2-scroll-position",{x:p(this).scrollLeft(),y:p(this).scrollTop()})});a.on(i,function(e){var t=s.GetData(this,"select2-scroll-position");p(this).scrollTop(t.y)});p(window).on(i+" "+r+" "+o,function(e){n._positionDropdown();n._resizeDropdown()})};e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id;var i="resize.select2."+t.id;var r="orientationchange.select2."+t.id;var o=this.$container.parents().filter(s.hasScroll);o.off(n);p(window).off(n+" "+i+" "+r)};e.prototype._positionDropdown=function(){var e=p(window);var t=this.$dropdown.hasClass("select2-dropdown--above");var n=this.$dropdown.hasClass("select2-dropdown--below");var i=null;var r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(false);var o={height:this.$container.outerHeight(false)};o.top=r.top;o.bottom=r.top+o.height;var a={height:this.$dropdown.outerHeight(false)};var s={top:e.scrollTop(),bottom:e.scrollTop()+e.height()};var l=s.topr.bottom+a.height;var u={left:r.left,top:o.bottom};var f=this.$dropdownParent;if(f.css("position")==="static"){f=f.offsetParent()}var d={top:0,left:0};if(p.contains(document.body,f[0])||f[0].isConnected){d=f.offset()}u.top-=d.top;u.left-=d.left;if(!t&&!n){i="below"}if(!c&&l&&!t){i="above"}else if(!l&&c&&t){i="below"}if(i=="above"||t&&i!=="below"){u.top=o.top-d.top-a.height}if(i!=null){this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i);this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)}this.$dropdownContainer.css(u)};e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(false)+"px"};if(this.options.get("dropdownAutoWidth")){e.minWidth=e.width;e.position="relative";e.width="auto"}this.$dropdown.css(e)};e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()};return e});t.define("select2/dropdown/minimumResultsForSearch",[],function(){function r(e){var t=0;for(var n=0;n0){e.dataAdapter=y.Decorate(e.dataAdapter,T)}if(e.maximumInputLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,D)}if(e.maximumSelectionLength>0){e.dataAdapter=y.Decorate(e.dataAdapter,S)}if(e.tags){e.dataAdapter=y.Decorate(e.dataAdapter,C)}if(e.tokenSeparators!=null||e.tokenizer!=null){e.dataAdapter=y.Decorate(e.dataAdapter,E)}if(e.query!=null){var t=c(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(e.initSelection!=null){var n=c(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(e.resultsAdapter==null){e.resultsAdapter=f;if(e.ajax!=null){e.resultsAdapter=y.Decorate(e.resultsAdapter,I)}if(e.placeholder!=null){e.resultsAdapter=y.Decorate(e.resultsAdapter,O)}if(e.selectOnClose){e.resultsAdapter=y.Decorate(e.resultsAdapter,M)}}if(e.dropdownAdapter==null){if(e.multiple){e.dropdownAdapter=x}else{var i=y.Decorate(x,A);e.dropdownAdapter=i}if(e.minimumResultsForSearch!==0){e.dropdownAdapter=y.Decorate(e.dropdownAdapter,N)}if(e.closeOnSelect){e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)}if(e.dropdownCssClass!=null||e.dropdownCss!=null||e.adaptDropdownCssClass!=null){var r=c(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,r)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,k)}if(e.selectionAdapter==null){if(e.multiple){e.selectionAdapter=p}else{e.selectionAdapter=d}if(e.placeholder!=null){e.selectionAdapter=y.Decorate(e.selectionAdapter,h)}if(e.allowClear){e.selectionAdapter=y.Decorate(e.selectionAdapter,m)}if(e.multiple){e.selectionAdapter=y.Decorate(e.selectionAdapter,g)}if(e.containerCssClass!=null||e.containerCss!=null||e.adaptContainerCssClass!=null){var o=c(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language);e.language.push("en");var a=[];for(var s=0;s0){var n=u.extend(true,{},t);for(var i=t.children.length-1;i>=0;i--){var r=t.children[i];var o=c(e,r);if(o==null){n.children.splice(i,1)}}if(n.children.length>0){return n}return c(e,n)}var a=l(t.text).toUpperCase();var s=l(e.term).toUpperCase();if(a.indexOf(s)>-1){return t}return null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:y.escapeMarkup,language:{},matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,scrollAfterSelect:false,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}};t.prototype.applyFromElement=function(e,t){var n=e.language;var i=this.defaults.language;var r=t.prop("lang");var o=t.closest("[lang]").prop("lang");var a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));e.language=a;return e};t.prototype._resolveLanguage=function(e){if(!e){return[]}if(u.isEmptyObject(e)){return[]}if(u.isPlainObject(e)){return[e]}var t;if(!u.isArray(e)){t=[e]}else{t=e}var n=[];for(var i=0;i0){var r=t[i].split("-");var o=r[0];n.push(o)}}return n};t.prototype._processTranslations=function(e,t){var n=new a;for(var i=0;i-1){continue}if(d.isPlainObject(this.options[f])){d.extend(this.options[f],u[f])}else{this.options[f]=u[f]}}return this};e.prototype.get=function(e){return this.options[e]};e.prototype.set=function(e,t){this.options[e]=t};return e});t.define("select2/core",["jquery","./options","./utils","./keys"],function(r,c,u,i){var f=function(e,t){if(u.GetData(e[0],"select2")!=null){u.GetData(e[0],"select2").destroy()}this.$element=e;this.id=this._generateId(e);t=t||{};this.options=new c(t,e);f.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n);e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);var a=this.options.get("dropdownAdapter");this.dropdown=new a(e,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);var s=this.options.get("resultsAdapter");this.results=new s(e,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})});e.addClass("select2-hidden-accessible");e.attr("aria-hidden","true");this._syncAttributes();u.StoreData(e[0],"select2",this);e.data("select2",this)};u.Extend(f,u.Observable);f.prototype._generateId=function(e){var t="";if(e.attr("id")!=null){t=e.attr("id")}else if(e.attr("name")!=null){t=e.attr("name")+"-"+u.generateChars(2)}else{t=u.generateChars(4)}t=t.replace(/(:|\.|\[|\]|,)/g,"");t="select2-"+t;return t};f.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));if(t!=null){e.css("width",t)}};f.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(t=="resolve"){var i=this._resolveWidth(e,"style");if(i!=null){return i}return this._resolveWidth(e,"element")}if(t=="element"){var r=e.outerWidth(false);if(r<=0){return"auto"}return r+"px"}if(t=="style"){var o=e.attr("style");if(typeof o!=="string"){return null}var a=o.split(";");for(var s=0,l=a.length;s=1){return u[1]}}return null}if(t=="computedstyle"){var f=window.getComputedStyle(e[0]);return f.width}return t};f.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)};f.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})});this.$element.on("focus.select2",function(e){t.trigger("focus",e)});this._syncA=u.bind(this._syncAttributes,this);this._syncS=u.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent("onpropertychange",this._syncA)}var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(e!=null){this._observer=new e(function(e){r.each(e,t._syncA);r.each(e,t._syncS)});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false})}else if(this.$element[0].addEventListener){this.$element[0].addEventListener("DOMAttrModified",t._syncA,false);this.$element[0].addEventListener("DOMNodeInserted",t._syncS,false);this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,false)}};f.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})};f.prototype._registerSelectionEvents=function(){var n=this;var i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()});this.selection.on("focus",function(e){n.focus(e)});this.selection.on("*",function(e,t){if(r.inArray(e,i)!==-1){return}n.trigger(e,t)})};f.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})};f.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})};f.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){if(!n.isOpen()){n.trigger("open",{})}this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})});this.on("keypress",function(e){var t=e.which;if(n.isOpen()){if(t===i.ESC||t===i.TAB||t===i.UP&&e.altKey){n.close();e.preventDefault()}else if(t===i.ENTER){n.trigger("results:select",{});e.preventDefault()}else if(t===i.SPACE&&e.ctrlKey){n.trigger("results:toggle",{});e.preventDefault()}else if(t===i.UP){n.trigger("results:previous",{});e.preventDefault()}else if(t===i.DOWN){n.trigger("results:next",{});e.preventDefault()}}else{if(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey){n.open();e.preventDefault()}}})};f.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));if(this.options.get("disabled")){if(this.isOpen()){this.close()}this.trigger("disable",{})}else{this.trigger("enable",{})}};f.prototype._syncSubtree=function(e,t){var n=false;var i=this;if(e&&e.target&&(e.target.nodeName!=="OPTION"&&e.target.nodeName!=="OPTGROUP")){return}if(!t){n=true}else if(t.addedNodes&&t.addedNodes.length>0){for(var r=0;r0){n=true}if(n){this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}};f.prototype.trigger=function(e,t){var n=f.__super__.trigger;var i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(t===undefined){t={}}if(e in i){var r=i[e];var o={prevented:false,name:e,args:t};n.call(this,r,o);if(o.prevented){t.prevented=true;return}}n.call(this,e,t)};f.prototype.toggleDropdown=function(){if(this.options.get("disabled")){return}if(this.isOpen()){this.close()}else{this.open()}};f.prototype.open=function(){if(this.isOpen()){return}this.trigger("query",{})};f.prototype.close=function(){if(!this.isOpen()){return}this.trigger("close",{})};f.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")};f.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")};f.prototype.focus=function(e){if(this.hasFocus()){return}this.$container.addClass("select2-container--focus");this.trigger("focus",{})};f.prototype.enable=function(e){if(this.options.get("debug")&&window.console&&console.warn){console.warn('Select2: The `select2("enable")` method has been deprecated and will'+' be removed in later Select2 versions. Use $element.prop("disabled")'+" instead.")}if(e==null||e.length===0){e=[true]}var t=!e[0];this.$element.prop("disabled",t)};f.prototype.data=function(){if(this.options.get("debug")&&arguments.length>0&&window.console&&console.warn){console.warn('Select2: Data can no longer be set using `select2("data")`. You '+"should consider setting the value instead using `$element.val()`.")}var t=[];this.dataAdapter.current(function(e){t=e});return t};f.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn){console.warn('Select2: The `select2("val")` method has been deprecated and will be'+" removed in later Select2 versions. Use $element.val() instead.")}if(e==null||e.length===0){return this.$element.val()}var t=e[0];if(r.isArray(t)){t=r.map(t,function(e){return e.toString()})}this.$element.val(t).trigger("change")};f.prototype.destroy=function(){this.$container.remove();if(this.$element[0].detachEvent){this.$element[0].detachEvent("onpropertychange",this._syncA)}if(this._observer!=null){this._observer.disconnect();this._observer=null}else if(this.$element[0].removeEventListener){this.$element[0].removeEventListener("DOMAttrModified",this._syncA,false);this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,false);this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,false)}this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");u.RemoveData(this.$element[0]);this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null};f.prototype.render=function(){var e=r(''+''+''+"");e.attr("dir",this.options.get("dir"));this.$container=e;this.$container.addClass("select2-container--"+this.options.get("theme"));u.StoreData(e[0],"element",this.$element);return e};return f});t.define("select2/compat/utils",["jquery"],function(a){function e(e,t,n){var i,r=[],o;i=a.trim(e.attr("class"));if(i){i=""+i;a(i.split(/\s+/)).each(function(){if(this.indexOf("select2-")===0){r.push(this)}})}i=a.trim(t.attr("class"));if(i){i=""+i;a(i.split(/\s+/)).each(function(){if(this.indexOf("select2-")!==0){o=n(this);if(o!=null){r.push(o)}}})}e.attr("class",r.join(" "))}return{syncCssClasses:e}});t.define("select2/compat/containerCss",["jquery","./utils"],function(a,s){function l(e){return null}function e(){}e.prototype.render=function(e){var t=e.call(this);var n=this.options.get("containerCssClass")||"";if(a.isFunction(n)){n=n(this.$element)}var i=this.options.get("adaptContainerCssClass");i=i||l;if(n.indexOf(":all:")!==-1){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);if(t!=null){return t+" "+e}return e}}var o=this.options.get("containerCss")||{};if(a.isFunction(o)){o=o(this.$element)}s.syncCssClasses(t,this.$element,i);t.css(o);t.addClass(n);return t};return e});t.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,s){function l(e){return null}function e(){}e.prototype.render=function(e){var t=e.call(this);var n=this.options.get("dropdownCssClass")||"";if(a.isFunction(n)){n=n(this.$element)}var i=this.options.get("adaptDropdownCssClass");i=i||l;if(n.indexOf(":all:")!==-1){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);if(t!=null){return t+" "+e}return e}}var o=this.options.get("dropdownCss")||{};if(a.isFunction(o)){o=o(this.$element)}s.syncCssClasses(t,this.$element,i);t.css(o);t.addClass(n);return t};return e});t.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){if(n.get("debug")&&window.console&&console.warn){console.warn("Select2: The `initSelection` option has been deprecated in favor"+" of a custom data adapter that overrides the `current` method. "+"This method is now called multiple times instead of a single "+"time when the instance is initialized. Support will be removed "+"for the `initSelection` option in future versions of Select2")}this.initSelection=n.get("initSelection");this._isInitialized=false;e.call(this,t,n)}e.prototype.current=function(e,t){var n=this;if(this._isInitialized){e.call(this,t);return}this.initSelection.call(null,this.$element,function(e){n._isInitialized=true;if(!i.isArray(e)){e=[e]}t(e)})};return e});t.define("select2/compat/inputData",["jquery","../utils"],function(a,i){function e(e,t,n){this._currentData=[];this._valueSeparator=n.get("valueSeparator")||",";if(t.prop("type")==="hidden"){if(n.get("debug")&&console&&console.warn){console.warn("Select2: Using a hidden input with Select2 is no longer "+"supported and may stop working in the future. It is recommended "+"to use a `