!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,c={},l=c.toString,C=c.hasOwnProperty,u=C.toString,d=u.call(Object),h={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},p=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function g(e,t,n){var r,i,a=(n=n||m).createElement("script");if(a.text=e,t)for(r in v)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function M(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[l.call(e)]||"object":typeof e}var z="3.6.0",L=function(e,t){return new L.fn.init(e,t)};function y(e){var t=!!e&&"length"in e&&e.length,n=M(e);return!f(e)&&!p(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),q=new RegExp(j),B=new RegExp("^"+N+"$"),G={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){d()},oe=ze((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{E.apply(x=A.call(L.childNodes),L.childNodes),x[L.childNodes.length].nodeType}catch(t){E={apply:x.length?function(e,t){T.apply(e,A.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var a,s,l,C,u,f,v,g=t&&t.ownerDocument,L=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==L&&9!==L&&11!==L)return r;if(!i&&(d(t),t=t||h,p)){if(11!==L&&(u=Q.exec(e)))if(a=u[1]){if(9===L){if(!(l=t.getElementById(a)))return r;if(l.id===a)return r.push(l),r}else if(g&&(l=g.getElementById(a))&&M(t,l)&&l.id===a)return r.push(l),r}else{if(u[2])return E.apply(r,t.getElementsByTagName(e)),r;if((a=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!S[e+" "]&&(!m||!m.test(e))&&(1!==L||"object"!==t.nodeName.toLowerCase())){if(v=e,g=t,1===L&&(U.test(e)||W.test(e))){for((g=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((C=t.getAttribute("id"))?C=C.replace(re,ie):t.setAttribute("id",C=z)),s=(f=o(e)).length;s--;)f[s]=(C?"#"+C:":scope")+" "+Me(f[s]);v=f.join(",")}try{return E.apply(r,g.querySelectorAll(v)),r}catch(t){S(e,!0)}finally{C===z&&t.removeAttribute("id")}}}return c(e.replace($,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[z]=!0,e}function Ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le((function(t){return t=+t,le((function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},a=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:L;return o!=h&&9===o.nodeType&&o.documentElement&&(f=(h=o).documentElement,p=!a(h),L!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ae,!1):i.attachEvent&&i.attachEvent("onunload",ae)),n.scope=Ce((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=Ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=Ce((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=Ce((function(e){return f.appendChild(e).id=z,!h.getElementsByName||!h.getElementsByName(z).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&p){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&p)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(h.querySelectorAll))&&(Ce((function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+P+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+z+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),Ce((function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&Ce((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),v.push("!=",j)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),M=t||J.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return u=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==L&&M(L,e)?-1:t==h||t.ownerDocument==L&&M(L,t)?1:C?O(C,e)-O(C,t):0:4&r?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e==h?-1:t==h?1:i?-1:a?1:C?O(C,e)-O(C,t):0;if(i===a)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?de(o[r],s[r]):o[r]==L?-1:s[r]==L?1:0}),h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&p&&!S[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){S(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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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 G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=o(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=V[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&V(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return f(t)?L.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?L.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?L.grep(e,(function(e){return-1)[^>]*|#([\w-]+))$/;(L.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||x,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof L?t[0]:t,L.merge(this,L.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),_.test(r[1])&&L.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=m.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(L):L.makeArray(e,this)}).prototype=L.fn,x=L(m);var T=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}L.fn.extend({has:function(e){var t=L(e,this),n=t.length;return this.filter((function(){for(var e=0;e\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;Ce=m.createDocumentFragment().appendChild(m.createElement("div")),(ue=m.createElement("input")).setAttribute("type","radio"),ue.setAttribute("checked","checked"),ue.setAttribute("name","t"),Ce.appendChild(ue),h.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="",h.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="",h.option=!!Ce.lastChild;var pe={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&&S(e,t)?L.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var ge=/<|&#?\w+;/;function Me(e,t,n,r,i){for(var a,o,s,c,l,C,u=t.createDocumentFragment(),d=[],h=0,f=e.length;h\s*$/g;function De(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&L(e).children("tbody")[0]||e}function xe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ke(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Te(e,t){var n,r,i,a,o,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(i in X.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Wt=[],Ut=/(=)\?(?=&|$)|\?\?/;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||L.expando+"_"+Lt.guid++;return this[e]=!0,e}}),L.ajaxPrefilter("json jsonp",(function(t,n,r){var i,a,o,s=!1!==t.jsonp&&(Ut.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ut,"$1"+i):!1!==t.jsonp&&(t.url+=(yt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||L.error(i+" was not called"),o[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){o=arguments},r.always((function(){void 0===a?L(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(i)),o&&f(a)&&a(o[0]),o=a=void 0})),"script"})),h.createHTMLDocument=((Yt=m.implementation.createHTMLDocument("").body).innerHTML="
",2===Yt.childNodes.length),L.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((r=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(r)):t=m),a=!n&&[],(i=_.exec(e))?[t.createElement(i[1])]:(i=Me([e],t,a),a&&a.length&&L(a).remove(),L.merge([],i.childNodes)));var r,i,a},L.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return-1").append(L.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},L.expr.pseudos.animated=function(e){return L.grep(L.timers,(function(t){return e===t.elem})).length},L.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l=L.css(e,"position"),C=L(e),u={};"static"===l&&(e.style.position="relative"),s=C.offset(),a=L.css(e,"top"),c=L.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(a+c).indexOf("auto")?(o=(r=C.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),f(t)&&(t=t.call(e,n,L.extend({},s))),null!=t.top&&(u.top=t.top-s.top+o),null!=t.left&&(u.left=t.left-s.left+i),"using"in t?t.using.call(e,u):C.css(u)}},L.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){L.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===L.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===L.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=L(e).offset()).top+=L.css(e,"borderTopWidth",!0),i.left+=L.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-L.css(r,"marginTop",!0),left:t.left-i.left-L.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===L.css(e,"position");)e=e.offsetParent;return e||re}))}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;L.fn[e]=function(r){return $(this,(function(e,r,i){var a;if(p(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i}),e,r,arguments.length)}})),L.each(["top","left"],(function(e,t){L.cssHooks[t]=je(h.pixelPosition,(function(e,n){if(n)return n=Ie(e,t),Oe.test(n)?L(e).position()[t]+"px":n}))})),L.each({Height:"height",Width:"width"},(function(e,t){L.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){L.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return $(this,(function(t,n,i){var a;return p(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?L.css(t,n,s):L.style(t,n,i,s)}),t,o?i:void 0,o)}}))})),L.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){L.fn[t]=function(e){return this.on(t,e)}})),L.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),L.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,t){L.fn[t]=function(e,n){return 0{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t},n=e=>{const n=t(e);return n&&document.querySelector(n)?n:null},r=e=>{const n=t(e);return n?document.querySelector(n):null},i=t=>{t.dispatchEvent(new Event(e))},a=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),o=e=>a(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,s=(e,t,n)=>{Object.keys(n).forEach((r=>{const i=n[r],o=t[r],s=o&&a(o)?"element":null==(c=o)?`${c}`:{}.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase();var c;if(!new RegExp(i).test(s))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${i}".`)}))},c=e=>!(!a(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),C=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?C(e.parentNode):null},u=()=>{},d=e=>{e.offsetHeight},h=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},f=[],p=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=h();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{f.forEach((e=>e()))})),f.push(t)):t()},v=e=>{"function"==typeof e&&e()},g=(t,n,r=!0)=>{if(!r)return void v(t);const a=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(n)+5;let o=!1;const s=({target:r})=>{r===n&&(o=!0,n.removeEventListener(e,s),v(t))};n.addEventListener(e,s),setTimeout((()=>{o||i(n)}),a)},M=(e,t,n,r)=>{let i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];const a=e.length;return i+=n?1:-1,r&&(i=(i+a)%a),e[Math.max(0,Math.min(i,a-1))]},z=/[^.]*(?=\..*)\.|.*/,L=/\..*/,y=/::\d+$/,H={};let V=1;const b={mouseenter:"mouseover",mouseleave:"mouseout"},w=/^(mouseenter|mouseleave)/i,S=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function _(e,t){return t&&`${t}::${V++}`||e.uidEvent||V++}function D(e){const t=_(e);return e.uidEvent=t,H[t]=H[t]||{},H[t]}function x(e,t,n=null){const r=Object.keys(e);for(let i=0,a=r.length;ifunction(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r?r=e(r):n=e(n)}const[a,o,s]=k(t,n,r),c=D(e),l=c[s]||(c[s]={}),C=x(l,o,a?n:null);if(C)return void(C.oneOff=C.oneOff&&i);const u=_(o,t.replace(z,"")),d=a?function(e,t,n){return function r(i){const a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s=a.length;s--;)if(a[s]===o)return i.delegateTarget=o,r.oneOff&&O.off(e,i.type,t,n),n.apply(o,[i]);return null}}(e,n,r):function(e,t){return function n(r){return r.delegateTarget=e,n.oneOff&&O.off(e,r.type,t),t.apply(e,[r])}}(e,n);d.delegationSelector=a?n:null,d.originalHandler=o,d.oneOff=i,d.uidEvent=u,l[u]=d,e.addEventListener(s,d,a)}function E(e,t,n,r,i){const a=x(t[n],r,i);a&&(e.removeEventListener(n,a,Boolean(i)),delete t[n][a.uidEvent])}function A(e){return e=e.replace(L,""),b[e]||e}const O={on(e,t,n,r){T(e,t,n,r,!1)},one(e,t,n,r){T(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[i,a,o]=k(t,n,r),s=o!==t,c=D(e),l=t.startsWith(".");if(void 0!==a){if(!c||!c[o])return;return void E(e,c,o,a,i?n:null)}l&&Object.keys(c).forEach((n=>{!function(e,t,n,r){const i=t[n]||{};Object.keys(i).forEach((a=>{if(a.includes(r)){const r=i[a];E(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,c,n,t.slice(1))}));const C=c[o]||{};Object.keys(C).forEach((n=>{const r=n.replace(y,"");if(!s||t.includes(r)){const t=C[n];E(e,c,o,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!=typeof t||!e)return null;const r=h(),i=A(t),a=t!==i,o=S.has(i);let s,c=!0,l=!0,C=!1,u=null;return a&&r&&(s=r.Event(t,n),r(e).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),C=s.isDefaultPrevented()),o?(u=document.createEvent("HTMLEvents"),u.initEvent(i,c,!0)):u=new CustomEvent(t,{bubbles:c,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(u,e,{get:()=>n[e]})})),C&&u.preventDefault(),l&&e.dispatchEvent(u),u.defaultPrevented&&void 0!==s&&s.preventDefault(),u}},R=new Map,P={set(e,t,n){R.has(e)||R.set(e,new Map);const r=R.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>R.has(e)&&R.get(e).get(t)||null,remove(e,t){if(!R.has(e))return;const n=R.get(e);n.delete(t),0===n.size&&R.delete(e)}};class N{constructor(e){(e=o(e))&&(this._element=e,P.set(this._element,this.constructor.DATA_KEY,this))}dispose(){P.remove(this._element,this.constructor.DATA_KEY),O.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,n=!0){g(e,t,n)}static getInstance(e){return P.get(o(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const I=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;O.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),l(this))return;const a=r(this)||this.closest(`.${i}`);e.getOrCreateInstance(a)[t]()}))};class j extends N{static get NAME(){return"alert"}close(){if(O.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),O.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=j.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}I(j,"close"),m(j);const F='[data-bs-toggle="button"]';class $ extends N{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=$.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function Y(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function W(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}O.on(document,"click.bs.button.data-api",F,(e=>{e.preventDefault();const t=e.target.closest(F);$.getOrCreateInstance(t).toggle()})),m($);const U={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${W(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${W(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=Y(e.dataset[n])})),t},getDataAttribute:(e,t)=>Y(e.getAttribute(`data-bs-${W(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},q={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!l(e)&&c(e)))}},B="carousel",G={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},X={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Z="next",K="prev",J="left",Q="right",ee={ArrowLeft:Q,ArrowRight:J},te="slid.bs.carousel",ne="active",re=".active.carousel-item";class ie extends N{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=q.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return G}static get NAME(){return B}next(){this._slide(Z)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(K)}pause(e){e||(this._isPaused=!0),q.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(i(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=q.findOne(re,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void O.one(this._element,te,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?Z:K;this._slide(n,this._items[e])}_getConfig(e){return e={...G,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},s(B,e,X),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?Q:J)}_addEventListeners(){this._config.keyboard&&O.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(O.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),O.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},n=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},r=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};q.find(".carousel-item img",this._element).forEach((e=>{O.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(O.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),O.on(this._element,"pointerup.bs.carousel",(e=>r(e))),this._element.classList.add("pointer-event")):(O.on(this._element,"touchstart.bs.carousel",(e=>t(e))),O.on(this._element,"touchmove.bs.carousel",(e=>n(e))),O.on(this._element,"touchend.bs.carousel",(e=>r(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ee[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?q.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===Z;return M(this._items,t,n,this._config.wrap)}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),r=this._getItemIndex(q.findOne(re,this._element));return O.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=q.findOne(".active",this._indicatorsElement);t.classList.remove(ne),t.removeAttribute("aria-current");const n=q.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t{O.trigger(this._element,te,{relatedTarget:a,direction:u,from:i,to:o})};if(this._element.classList.contains("slide")){a.classList.add(C),d(a),r.classList.add(l),a.classList.add(l);const e=()=>{a.classList.remove(l,C),a.classList.add(ne),r.classList.remove(ne,C,l),this._isSliding=!1,setTimeout(h,0)};this._queueCallback(e,r,!0)}else r.classList.remove(ne),a.classList.add(ne),this._isSliding=!1,h();s&&this.cycle()}_directionToOrder(e){return[Q,J].includes(e)?p()?e===J?K:Z:e===J?Z:K:e}_orderToDirection(e){return[Z,K].includes(e)?p()?e===K?J:Q:e===K?Q:J:e}static carouselInterface(e,t){const n=ie.getOrCreateInstance(e,t);let{_config:r}=n;"object"==typeof t&&(r={...r,...t});const i="string"==typeof t?t:r.slide;if("number"==typeof t)n.to(t);else if("string"==typeof i){if(void 0===n[i])throw new TypeError(`No method named "${i}"`);n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){ie.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=r(this);if(!t||!t.classList.contains("carousel"))return;const n={...U.getDataAttributes(t),...U.getDataAttributes(this)},i=this.getAttribute("data-bs-slide-to");i&&(n.interval=!1),ie.carouselInterface(t,n),i&&ie.getInstance(t).to(i),e.preventDefault()}}O.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",ie.dataApiClickHandler),O.on(window,"load.bs.carousel.data-api",(()=>{const e=q.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;te===this._element));null!==i&&a.length&&(this._selector=i,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return oe}static get NAME(){return ae}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=q.find(de,this._config.parent);t=q.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const n=q.findOne(this._selector);if(t.length){const r=t.find((e=>n!==e));if(e=r?fe.getInstance(r):null,e&&e._isTransitioning)return}if(O.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{n!==t&&fe.getOrCreateInstance(t,{toggle:!1}).hide(),e||P.set(t,"bs.collapse",null)}));const r=this._getDimension();this._element.classList.remove(le),this._element.classList.add(Ce),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(Ce),this._element.classList.add(le,ce),this._element.style[r]="",O.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(O.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,d(this._element),this._element.classList.add(Ce),this._element.classList.remove(le,ce);const t=this._triggerArray.length;for(let e=0;e{this._isTransitioning=!1,this._element.classList.remove(Ce),this._element.classList.add(le),O.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ce)}_getConfig(e){return(e={...oe,...U.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=o(e.parent),s(ae,e,se),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=q.find(de,this._config.parent);q.find(he,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=r(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(ue):e.classList.add(ue),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const n=fe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}O.on(document,"click.bs.collapse.data-api",he,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=n(this);q.find(t).forEach((e=>{fe.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),m(fe);var pe="top",me="bottom",ve="right",ge="left",Me="auto",ze=[pe,me,ve,ge],Le="start",ye="end",He="clippingParents",Ve="viewport",be="popper",we="reference",Se=ze.reduce((function(e,t){return e.concat([t+"-"+Le,t+"-"+ye])}),[]),_e=[].concat(ze,[Me]).reduce((function(e,t){return e.concat([t,t+"-"+Le,t+"-"+ye])}),[]),De="beforeRead",xe="read",ke="afterRead",Te="beforeMain",Ee="main",Ae="afterMain",Oe="beforeWrite",Re="write",Pe="afterWrite",Ne=[De,xe,ke,Te,Ee,Ae,Oe,Re,Pe];function Ie(e){return e?(e.nodeName||"").toLowerCase():null}function je(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fe(e){return e instanceof je(e).Element||e instanceof Element}function $e(e){return e instanceof je(e).HTMLElement||e instanceof HTMLElement}function Ye(e){return"undefined"!=typeof ShadowRoot&&(e instanceof je(e).ShadowRoot||e instanceof ShadowRoot)}const We={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];$e(i)&&Ie(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});$e(r)&&Ie(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ue(e){return e.split("-")[0]}function qe(e,t){var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function Be(e){var t=qe(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ge(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ye(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Xe(e){return je(e).getComputedStyle(e)}function Ze(e){return["table","td","th"].indexOf(Ie(e))>=0}function Ke(e){return((Fe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return"html"===Ie(e)?e:e.assignedSlot||e.parentNode||(Ye(e)?e.host:null)||Ke(e)}function Qe(e){return $e(e)&&"fixed"!==Xe(e).position?e.offsetParent:null}function et(e){for(var t=je(e),n=Qe(e);n&&Ze(n)&&"static"===Xe(n).position;)n=Qe(n);return n&&("html"===Ie(n)||"body"===Ie(n)&&"static"===Xe(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&$e(e)&&"fixed"===Xe(e).position)return null;for(var n=Je(e);$e(n)&&["html","body"].indexOf(Ie(n))<0;){var r=Xe(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var nt=Math.max,rt=Math.min,it=Math.round;function at(e,t,n){return nt(e,rt(t,n))}function ot(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function st(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const ct={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Ue(n.placement),c=tt(s),l=[ge,ve].indexOf(s)>=0?"height":"width";if(a&&o){var C=function(e,t){return ot("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:st(e,ze))}(i.padding,n),u=Be(a),d="y"===c?pe:ge,h="y"===c?me:ve,f=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],p=o[c]-n.rects.reference[c],m=et(a),v=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,g=f/2-p/2,M=C[d],z=v-u[l]-C[h],L=v/2-u[l]/2+g,y=at(M,L,z),H=c;n.modifiersData[r]=((t={})[H]=y,t.centerOffset=y-L,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ge(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lt(e){return e.split("-")[1]}var Ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ut(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,C=e.roundOffsets,u=!0===C?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:it(it(t*r)/r)||0,y:it(it(n*r)/r)||0}}(o):"function"==typeof C?C(o):o,d=u.x,h=void 0===d?0:d,f=u.y,p=void 0===f?0:f,m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),g=ge,M=pe,z=window;if(l){var L=et(n),y="clientHeight",H="clientWidth";L===je(n)&&"static"!==Xe(L=Ke(n)).position&&"absolute"===s&&(y="scrollHeight",H="scrollWidth"),i!==pe&&(i!==ge&&i!==ve||a!==ye)||(M=me,p-=L[y]-r.height,p*=c?1:-1),i!==ge&&(i!==pe&&i!==me||a!==ye)||(g=ve,h-=L[H]-r.width,h*=c?1:-1)}var V,b=Object.assign({position:s},l&&Ct);return c?Object.assign({},b,((V={})[M]=v?"0":"",V[g]=m?"0":"",V.transform=(z.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",V)):Object.assign({},b,((t={})[M]=v?p+"px":"",t[g]=m?h+"px":"",t.transform="",t))}const dt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,l={placement:Ue(t.placement),variation:lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ht={passive:!0};const ft={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,c=je(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,ht)})),s&&c.addEventListener("resize",n.update,ht),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,ht)})),s&&c.removeEventListener("resize",n.update,ht)}},data:{}};var pt={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(e){return e.replace(/left|right|bottom|top/g,(function(e){return pt[e]}))}var vt={start:"end",end:"start"};function gt(e){return e.replace(/start|end/g,(function(e){return vt[e]}))}function Mt(e){var t=je(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zt(e){return qe(Ke(e)).left+Mt(e).scrollLeft}function Lt(e){var t=Xe(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yt(e){return["html","body","#document"].indexOf(Ie(e))>=0?e.ownerDocument.body:$e(e)&&Lt(e)?e:yt(Je(e))}function Ht(e,t){var n;void 0===t&&(t=[]);var r=yt(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=je(r),o=i?[a].concat(a.visualViewport||[],Lt(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Ht(Je(o)))}function Vt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bt(e,t){return t===Ve?Vt(function(e){var t=je(e),n=Ke(e),r=t.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,s=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:i,height:a,x:o+zt(e),y:s}}(e)):$e(t)?function(e){var t=qe(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Vt(function(e){var t,n=Ke(e),r=Mt(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=nt(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=nt(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+zt(e),c=-r.scrollTop;return"rtl"===Xe(i||n).direction&&(s+=nt(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}(Ke(e)))}function wt(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?Ue(i):null,o=i?lt(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(a){case pe:t={x:s,y:n.y-r.height};break;case me:t={x:s,y:n.y+n.height};break;case ve:t={x:n.x+n.width,y:c};break;case ge:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=a?tt(a):null;if(null!=l){var C="y"===l?"height":"width";switch(o){case Le:t[l]=t[l]-(n[C]/2-r[C]/2);break;case ye:t[l]=t[l]+(n[C]/2-r[C]/2)}}return t}function St(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.boundary,o=void 0===a?He:a,s=n.rootBoundary,c=void 0===s?Ve:s,l=n.elementContext,C=void 0===l?be:l,u=n.altBoundary,d=void 0!==u&&u,h=n.padding,f=void 0===h?0:h,p=ot("number"!=typeof f?f:st(f,ze)),m=C===be?we:be,v=e.rects.popper,g=e.elements[d?m:C],M=function(e,t,n){var r="clippingParents"===t?function(e){var t=Ht(Je(e)),n=["absolute","fixed"].indexOf(Xe(e).position)>=0&&$e(e)?et(e):e;return Fe(n)?t.filter((function(e){return Fe(e)&&Ge(e,n)&&"body"!==Ie(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],o=i.reduce((function(t,n){var r=bt(e,n);return t.top=nt(r.top,t.top),t.right=rt(r.right,t.right),t.bottom=rt(r.bottom,t.bottom),t.left=nt(r.left,t.left),t}),bt(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(Fe(g)?g:g.contextElement||Ke(e.elements.popper),o,c),z=qe(e.elements.reference),L=wt({reference:z,element:v,strategy:"absolute",placement:i}),y=Vt(Object.assign({},v,L)),H=C===be?y:z,V={top:M.top-H.top+p.top,bottom:H.bottom-M.bottom+p.bottom,left:M.left-H.left+p.left,right:H.right-M.right+p.right},b=e.modifiersData.offset;if(C===be&&b){var w=b[i];Object.keys(V).forEach((function(e){var t=[ve,me].indexOf(e)>=0?1:-1,n=[pe,me].indexOf(e)>=0?"y":"x";V[e]+=w[n]*t}))}return V}const _t={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,c=n.fallbackPlacements,l=n.padding,C=n.boundary,u=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,f=void 0===h||h,p=n.allowedAutoPlacements,m=t.options.placement,v=Ue(m),g=c||(v!==m&&f?function(e){if(Ue(e)===Me)return[];var t=mt(e);return[gt(e),t,gt(t)]}(m):[mt(m)]),M=[m].concat(g).reduce((function(e,n){return e.concat(Ue(n)===Me?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?_e:c,C=lt(r),u=C?s?Se:Se.filter((function(e){return lt(e)===C})):ze,d=u.filter((function(e){return l.indexOf(e)>=0}));0===d.length&&(d=u);var h=d.reduce((function(t,n){return t[n]=St(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Ue(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:C,rootBoundary:u,padding:l,flipVariations:f,allowedAutoPlacements:p}):n)}),[]),z=t.rects.reference,L=t.rects.popper,y=new Map,H=!0,V=M[0],b=0;b=0,x=D?"width":"height",k=St(t,{placement:w,boundary:C,rootBoundary:u,altBoundary:d,padding:l}),T=D?_?ve:ge:_?me:pe;z[x]>L[x]&&(T=mt(T));var E=mt(T),A=[];if(a&&A.push(k[S]<=0),s&&A.push(k[T]<=0,k[E]<=0),A.every((function(e){return e}))){V=w,H=!1;break}y.set(w,A)}if(H)for(var O=function(e){var t=M.find((function(t){var n=y.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return V=t,"break"},R=f?3:1;R>0&&"break"!==O(R);R--);t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Dt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xt(e){return[pe,ve,me,ge].some((function(t){return e[t]>=0}))}const kt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=St(t,{elementContext:"reference"}),s=St(t,{altBoundary:!0}),c=Dt(o,r),l=Dt(s,i,a),C=xt(c),u=xt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:C,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":u})}},Tt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=_e.reduce((function(e,n){return e[n]=function(e,t,n){var r=Ue(e),i=[ge,pe].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[ge,ve].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}},Et={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=wt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,c=n.boundary,l=n.rootBoundary,C=n.altBoundary,u=n.padding,d=n.tether,h=void 0===d||d,f=n.tetherOffset,p=void 0===f?0:f,m=St(t,{boundary:c,rootBoundary:l,padding:u,altBoundary:C}),v=Ue(t.placement),g=lt(t.placement),M=!g,z=tt(v),L="x"===z?"y":"x",y=t.modifiersData.popperOffsets,H=t.rects.reference,V=t.rects.popper,b="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,w={x:0,y:0};if(y){if(a||s){var S="y"===z?pe:ge,_="y"===z?me:ve,D="y"===z?"height":"width",x=y[z],k=y[z]+m[S],T=y[z]-m[_],E=h?-V[D]/2:0,A=g===Le?H[D]:V[D],O=g===Le?-V[D]:-H[D],R=t.elements.arrow,P=h&&R?Be(R):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=N[S],j=N[_],F=at(0,H[D],P[D]),$=M?H[D]/2-E-F-I-b:A-F-I-b,Y=M?-H[D]/2+E+F+j+b:O+F+j+b,W=t.elements.arrow&&et(t.elements.arrow),U=W?"y"===z?W.clientTop||0:W.clientLeft||0:0,q=t.modifiersData.offset?t.modifiersData.offset[t.placement][z]:0,B=y[z]+$-q-U,G=y[z]+Y-q;if(a){var X=at(h?rt(k,B):k,x,h?nt(T,G):T);y[z]=X,w[z]=X-x}if(s){var Z="x"===z?pe:ge,K="x"===z?me:ve,J=y[L],Q=J+m[Z],ee=J-m[K],te=at(h?rt(Q,B):Q,J,h?nt(ee,G):ee);y[L]=te,w[L]=te-J}}t.modifiersData[r]=w}},requiresIfExists:["offset"]};function Ot(e,t,n){void 0===n&&(n=!1);var r=$e(t);$e(t)&&function(e){var t=e.getBoundingClientRect();t.width,e.offsetWidth,t.height,e.offsetHeight}(t);var i,a,o=Ke(t),s=qe(e),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ie(t)||Lt(o))&&(c=(i=t)!==je(i)&&$e(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:Mt(i)),$e(t)?((l=qe(t)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=zt(o))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Rt(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Pt={placement:"bottom",modifiers:[],strategy:"absolute"};function Nt(){for(var e=arguments.length,t=new Array(e),n=0;nO.on(e,"mouseover",u))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Jt),this._element.classList.add(Jt),O.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(l(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){O.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>O.off(e,"mouseover",u))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Jt),this._element.classList.remove(Jt),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),O.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...U.getDataAttributes(this._element),...e},s(Wt,e,this.constructor.DefaultType),"object"==typeof e.reference&&!a(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Wt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===Yt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:a(this._config.reference)?t=o(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig(),r=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=$t(t,this._menu,n),r&&U.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Jt)}_getMenuElement(){return q.next(this._element,en)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return on;if(e.classList.contains("dropstart"))return sn;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?nn:tn:t?an:rn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const n=q.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(c);n.length&&M(n,t,e===Gt,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Cn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=q.find(Qt);for(let n=0,r=t.length;nt+e)),this._setElementAttributes(un,"paddingRight",(t=>t+e)),this._setElementAttributes(dn,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const i=window.getComputedStyle(e)[t];e.style[t]=`${n(Number.parseFloat(i))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(un,"paddingRight"),this._resetElementAttributes(dn,"marginRight")}_saveInitialAttribute(e,t){const n=e.style[t];n&&U.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=U.getDataAttribute(e,t);void 0===n?e.style.removeProperty(t):(U.removeDataAttribute(e,t),e.style[t]=n)}))}_applyManipulationCallback(e,t){a(e)?t(e):q.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const fn={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},pn={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},mn="show",vn="mousedown.bs.backdrop";class gn{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&d(this._getElement()),this._getElement().classList.add(mn),this._emulateAnimation((()=>{v(e)}))):v(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation((()=>{this.dispose(),v(e)}))):v(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...fn,..."object"==typeof e?e:{}}).rootElement=o(e.rootElement),s("backdrop",e,pn),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),O.on(this._getElement(),vn,(()=>{v(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(O.off(this._element,vn),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){g(e,this._getElement(),this._config.isAnimated)}}const Mn={trapElement:null,autofocus:!0},zn={trapElement:"element",autofocus:"boolean"},Ln=".bs.focustrap",yn="backward";class Hn{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),O.off(document,Ln),O.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),O.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,O.off(document,Ln))}_handleFocusin(e){const{target:t}=e,{trapElement:n}=this._config;if(t===document||t===n||n.contains(t))return;const r=q.focusableChildren(n);0===r.length?n.focus():this._lastTabNavDirection===yn?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?yn:"forward")}_getConfig(e){return e={...Mn,..."object"==typeof e?e:{}},s("focustrap",e,zn),e}}const Vn="modal",bn="Escape",wn={backdrop:!0,keyboard:!0,focus:!0},Sn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},_n="hidden.bs.modal",Dn="show.bs.modal",xn="resize.bs.modal",kn="click.dismiss.bs.modal",Tn="keydown.dismiss.bs.modal",En="mousedown.dismiss.bs.modal",An="modal-open",On="show",Rn="modal-static";class Pn extends N{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=q.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new hn}static get Default(){return wn}static get NAME(){return Vn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||O.trigger(this._element,Dn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(An),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),O.on(this._dialog,En,(()=>{O.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(O.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(On),O.off(this._element,kn),O.off(this._dialog,En),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>O.off(e,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new gn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Hn({trapElement:this._element})}_getConfig(e){return e={...wn,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},s(Vn,e,Sn),e}_showElement(e){const t=this._isAnimated(),n=q.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),t&&d(this._element),this._element.classList.add(On),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,O.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?O.on(this._element,Tn,(e=>{this._config.keyboard&&e.key===bn?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==bn||this._triggerBackdropTransition()})):O.off(this._element,Tn)}_setResizeEvent(){this._isShown?O.on(window,xn,(()=>this._adjustDialog())):O.off(window,xn)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(An),this._resetAdjustments(),this._scrollBar.reset(),O.trigger(this._element,_n)}))}_showBackdrop(e){O.on(this._element,kn,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(O.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:n}=this._element,r=t>document.documentElement.clientHeight;!r&&"hidden"===n.overflowY||e.contains(Rn)||(r||(n.overflowY="hidden"),e.add(Rn),this._queueCallback((()=>{e.remove(Rn),r||this._queueCallback((()=>{n.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!p()||n&&!e&&p())&&(this._element.style.paddingLeft=`${t}px`),(n&&!e&&!p()||!n&&e&&p())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Pn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}O.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=r(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),O.one(t,Dn,(e=>{e.defaultPrevented||O.one(t,_n,(()=>{c(this)&&this.focus()}))}));const n=q.findOne(".modal.show");n&&Pn.getInstance(n).hide(),Pn.getOrCreateInstance(t).toggle(this)})),I(Pn),m(Pn);const Nn="offcanvas",In={backdrop:!0,keyboard:!0,scroll:!1},jn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Fn="show",$n=".offcanvas.show",Yn="hidden.bs.offcanvas";class Wn extends N{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Nn}static get Default(){return In}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||O.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new hn).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Fn),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),O.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(O.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Fn),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new hn).reset(),O.trigger(this._element,Yn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...In,...U.getDataAttributes(this._element),..."object"==typeof e?e:{}},s(Nn,e,jn),e}_initializeBackDrop(){return new gn({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Hn({trapElement:this._element})}_addEventListeners(){O.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Wn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}O.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=r(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;O.one(t,Yn,(()=>{c(this)&&this.focus()}));const n=q.findOne($n);n&&n!==t&&Wn.getInstance(n).hide(),Wn.getOrCreateInstance(t).toggle(this)})),O.on(window,"load.bs.offcanvas.data-api",(()=>q.find($n).forEach((e=>Wn.getOrCreateInstance(e).show())))),I(Wn),m(Wn);const Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Bn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Gn=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return!Un.has(n)||Boolean(qn.test(e.nodeValue)||Bn.test(e.nodeValue));const r=t.filter((e=>e instanceof RegExp));for(let e=0,t=r.length;e{Gn(e,o)||n.removeAttribute(e.nodeName)}))}return r.body.innerHTML}const Zn="tooltip",Kn=new Set(["sanitize","allowList","sanitizeFn"]),Jn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Qn={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},er={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},tr={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},nr="fade",rr="show",ir="show",ar="out",or=".tooltip-inner",sr=".modal",cr="hide.bs.modal",lr="hover",Cr="focus";class ur extends N{constructor(e,t){if(void 0===Yt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return er}static get NAME(){return Zn}static get Event(){return tr}static get DefaultType(){return Jn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(rr))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),O.off(this._element.closest(sr),cr,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=O.trigger(this._element,this.constructor.Event.SHOW),t=C(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(or).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const r=this.getTipElement(),i=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);r.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this._config.animation&&r.classList.add(nr);const a="function"==typeof this._config.placement?this._config.placement.call(this,r,this._element):this._config.placement,o=this._getAttachment(a);this._addAttachmentClass(o);const{container:s}=this._config;P.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(r),O.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=$t(this._element,r,this._getPopperConfig(o)),r.classList.add(rr);const c=this._resolvePossibleFunction(this._config.customClass);c&&r.classList.add(...c.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{O.on(e,"mouseover",u)}));const l=this.tip.classList.contains(nr);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,O.trigger(this._element,this.constructor.Event.SHOWN),e===ar&&this._leave(null,this)}),this.tip,l)}hide(){if(!this._popper)return;const e=this.getTipElement();if(O.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(rr),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>O.off(e,"mouseover",u))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(nr);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==ir&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),O.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(nr,rr),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),or)}_sanitizeAndSetContent(e,t,n){const r=q.findOne(n,e);t||!r?this.setElementContent(r,t):r.remove()}setElementContent(e,t){if(null!==e)return a(t)?(t=o(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Xn(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return Qn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)O.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===lr?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===lr?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;O.on(this._element,t,this._config.selector,(e=>this._enter(e))),O.on(this._element,n,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},O.on(this._element.closest(sr),cr,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?Cr:lr]=!0),t.getTipElement().classList.contains(rr)||t._hoverState===ir?t._hoverState=ir:(clearTimeout(t._timeout),t._hoverState=ir,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===ir&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?Cr:lr]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=ar,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===ar&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=U.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{Kn.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:o(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),s(Zn,e,this.constructor.DefaultType),e.sanitize&&(e.template=Xn(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=ur.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(ur);const dr={...ur.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},hr={...ur.DefaultType,content:"(string|element|function)"},fr={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class pr extends ur{static get Default(){return dr}static get NAME(){return"popover"}static get Event(){return fr}static get DefaultType(){return hr}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=pr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(pr);const mr="scrollspy",vr={offset:10,method:"auto",target:""},gr={offset:"number",method:"string",target:"(string|element)"},Mr="active",zr=".nav-link, .list-group-item, .dropdown-item",Lr="position";class yr extends N{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,O.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return vr}static get NAME(){return mr}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":Lr,t="auto"===this._config.method?e:this._config.method,r=t===Lr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),q.find(zr,this._config.target).map((e=>{const i=n(e),a=i?q.findOne(i):null;if(a){const e=a.getBoundingClientRect();if(e.width||e.height)return[U[t](a).top+r,i]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){O.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={...vr,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=o(e.target)||document.documentElement,s(mr,e,gr),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),n=q.findOne(t.join(","),this._config.target);n.classList.add(Mr),n.classList.contains("dropdown-item")?q.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(Mr):q.parents(n,".nav, .list-group").forEach((e=>{q.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(Mr))),q.prev(e,".nav-item").forEach((e=>{q.children(e,".nav-link").forEach((e=>e.classList.add(Mr)))}))})),O.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){q.find(zr,this._config.target).filter((e=>e.classList.contains(Mr))).forEach((e=>e.classList.remove(Mr)))}static jQueryInterface(e){return this.each((function(){const t=yr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}O.on(window,"load.bs.scrollspy.data-api",(()=>{q.find('[data-bs-spy="scroll"]').forEach((e=>new yr(e)))})),m(yr);const Hr="active",Vr="fade",br="show",wr=".active",Sr=":scope > li > .active";class _r extends N{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Hr))return;let e;const t=r(this._element),n=this._element.closest(".nav, .list-group");if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Sr:wr;e=q.find(t,n),e=e[e.length-1]}const i=e?O.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(O.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==i&&i.defaultPrevented)return;this._activate(this._element,n);const a=()=>{O.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),O.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,a):a()}_activate(e,t,n){const r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?q.children(t,wr):q.find(Sr,t))[0],i=n&&r&&r.classList.contains(Vr),a=()=>this._transitionComplete(e,r,n);r&&i?(r.classList.remove(br),this._queueCallback(a,e,!0)):a()}_transitionComplete(e,t,n){if(t){t.classList.remove(Hr);const e=q.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(Hr),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(Hr),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),d(e),e.classList.contains(Vr)&&e.classList.add(br);let r=e.parentNode;if(r&&"LI"===r.nodeName&&(r=r.parentNode),r&&r.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&q.find(".dropdown-toggle",t).forEach((e=>e.classList.add(Hr))),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(e){return this.each((function(){const t=_r.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}O.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||_r.getOrCreateInstance(this).show()})),m(_r);const Dr="toast",xr="hide",kr="show",Tr="showing",Er={animation:"boolean",autohide:"boolean",delay:"number"},Ar={animation:!0,autohide:!0,delay:5e3};class Or extends N{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Er}static get Default(){return Ar}static get NAME(){return Dr}show(){O.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(xr),d(this._element),this._element.classList.add(kr),this._element.classList.add(Tr),this._queueCallback((()=>{this._element.classList.remove(Tr),O.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(kr)&&(O.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Tr),this._queueCallback((()=>{this._element.classList.add(xr),this._element.classList.remove(Tr),this._element.classList.remove(kr),O.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(kr)&&this._element.classList.remove(kr),super.dispose()}_getConfig(e){return e={...Ar,...U.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},s(Dr,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){O.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),O.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),O.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),O.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=Or.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return I(Or),m(Or),{Alert:j,Button:$,Carousel:ie,Collapse:fe,Dropdown:Cn,Modal:Pn,Offcanvas:Wn,Popover:pr,ScrollSpy:yr,Tab:_r,Toast:Or,Tooltip:ur}})),function(){"use strict";var e={},t={};try{"undefined"!=typeof window&&(e=window),"undefined"!=typeof document&&(t=document)}catch(e){}var n=void 0===(d=(e.navigator||{}).userAgent)?"":d,r=e,i=t;function a(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0;n--;)t[n]=e[n];return t}function X(e){return e.classList?G(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Z(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function K(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function J(e){return e.size!==q.size||e.x!==q.x||e.y!==q.y||e.rotate!==q.rotate||e.flipX||e.flipY}function Q(){var e,t,n=z,r=Y.familyPrefix,i=Y.replacementClass,a=':host,:root{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Solid";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Regular";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Light";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Thin";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands"}svg:not(:host).svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible;box-sizing:content-box}.svg-inline--fa{display:var(--fa-display,inline-block);height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.0714285705em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);overflow:hidden;padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);-webkit-transform:scale(var(--fa-counter-scale,.25));transform:scale(var(--fa-counter-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);top:auto;-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);right:auto;top:auto;-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top left;transform-origin:top left}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width,2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,steps(8));animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}100%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}100%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@-webkit-keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}24%,8%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}100%,40%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}24%,8%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}100%,40%{-webkit-transform:rotate(0);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle,none));transform:rotate(var(--fa-rotate-angle,none))}.fa-stack{display:inline-block;vertical-align:middle;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;z-index:var(--fa-stack-z-index,auto)}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:var(--fa-inverse,#fff)}.fa-sr-only,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fa-sr-only-focusable:not(:focus),.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fa-duotone.fa-inverse,.fad.fa-inverse{color:var(--fa-inverse,#fff)}';return"fa"===r&&i===n||(e=new RegExp("\\.".concat("fa","\\-"),"g"),t=new RegExp("\\--".concat("fa","\\-"),"g"),n=new RegExp("\\.".concat(n),"g"),a=a.replace(e,".".concat(r,"-")).replace(t,"--".concat(r,"-")).replace(n,".".concat(i))),a}var ee=!1;function te(){Y.autoAddCss&&!ee&&(function(e){if(e&&g){var t=f.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=f.head.childNodes,r=null,i=n.length-1;-1").concat(i.map(oe).join(""),"")}function se(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ce(e,t,n,r){for(var i,a,o=Object.keys(e),s=o.length,c=void 0!==r?le(t,r):t,l=void 0===n?(i=1,e[o[0]]):(i=0,n);i":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var i=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++i).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,r){e=t.GetUniqueElementId(e),t.__cache[e]||(t.__cache[e]={}),t.__cache[e][n]=r},t.GetData=function(n,r){var i=t.GetUniqueElementId(n);return r?t.__cache[i]&&null!=t.__cache[i][r]?t.__cache[i][r]:e(n).data(r):t.__cache[i]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0===e.indexOf("select2-")}));t=(t=t.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0!==e.indexOf("select2-")})),t=n.concat(t),e.setAttribute("class",t.join(" "))},t})),y.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,r){this.$element=e,this.data=r,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('
    ');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e(''),i=this.options.get("translations").get(t.message);r.append(n(i(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(C),c.append(l),c.append(o)}else this.template(n,r);return t.StoreData(r,"data",n),r},n.prototype.bind=function(n,r){var i=this,a=n.id+"-results";this.$results.attr("id",a),n.on("results:all",(function(e){i.clear(),i.append(e.data),n.isOpen()&&(i.setClasses(),i.highlightFirstItem())})),n.on("results:append",(function(e){i.append(e.data),n.isOpen()&&i.setClasses()})),n.on("query",(function(e){i.hideMessages(),i.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())})),n.on("open",(function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()})),n.on("close",(function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e,n=i.getHighlightedResults();0!==n.length&&(e=t.GetData(n[0],"data"),n.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}))})),n.on("results:previous",(function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),r=n.index(t);r<=0||(e=r-1,0===t.length&&(e=0),(r=n.eq(e)).trigger("mouseenter"),t=i.$results.offset().top,n=r.offset().top,r=i.$results.scrollTop()+(n-t),0===e?i.$results.scrollTop(0):n-t<0&&i.$results.scrollTop(r))})),n.on("results:next",(function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),r=n.index(t)+1;r>=n.length||((e=n.eq(r)).trigger("mouseenter"),t=i.$results.offset().top+i.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=i.$results.scrollTop()+n-t,0===r?i.$results.scrollTop(0):tthis.$results.outerHeight()||r<0)&&this.$results.scrollTop(n))},n.prototype.template=function(t,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup");null==(t=r(t,n))?n.style.display="none":"string"==typeof t?n.innerHTML=i(t):e(n).append(t)},n})),y.define("select2/keys",[],(function(){return{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}})),y.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var n=e('');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},r.prototype.bind=function(e,t){var r=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){r.trigger("focus",e)})),this.$selection.on("blur",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",(function(e){r.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){r.update(e.data)})),e.on("open",(function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(e)})),e.on("close",(function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.trigger("focus"),r._detachCloseHandler(e)})),e.on("enable",(function(){r.$selection.attr("tabindex",r._tabindex),r.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){r.$selection.attr("tabindex","-1"),r.$selection.attr("aria-disabled","true")}))},r.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},r.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var r=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=r[0]&&t.GetData(this,"element").select2("close")}))}))},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r})),y.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html(''),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.attr("aria-controls",r),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("")},i.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},i})),y.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function r(e,t){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('
      '),e},r.prototype.bind=function(t,i){var a=this;r.__super__.bind.apply(this,arguments);var o=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.on("click",(function(e){a.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){var r;a.isDisabled()||(r=e(this).parent(),r=n.GetData(r[0],"data"),a.trigger("unselect",{originalEvent:t,data:r}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){a.isDisabled()||e.stopPropagation()}))},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");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e('
    • ')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i')).attr("title",a()),t.attr("aria-label",a()),t.attr("aria-describedby",i),n.StoreData(t[0],"data",r),this.$selection.prepend(t),this.$selection[0].classList.add("select2-selection--clearable"))},r})),y.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=this.options.get("translations").get("search"),r=e('');return this.$searchContainer=r,this.$search=r.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t=t.call(this),this._transferTabIndex(),t.append(this.$searchContainer),t},r.prototype.bind=function(e,r,i){var a=this,o=r.id+"-results",s=r.id+"-container";e.call(this,r,i),a.$search.attr("aria-describedby",s),r.on("open",(function(){a.$search.attr("aria-controls",o),a.$search.trigger("focus")})),r.on("close",(function(){a.$search.val(""),a.resizeSearch(),a.$search.removeAttr("aria-controls"),a.$search.removeAttr("aria-activedescendant"),a.$search.trigger("focus")})),r.on("enable",(function(){a.$search.prop("disabled",!1),a._transferTabIndex()})),r.on("disable",(function(){a.$search.prop("disabled",!0)})),r.on("focus",(function(e){a.$search.trigger("focus")})),r.on("results:focus",(function(e){e.data._resultId?a.$search.attr("aria-activedescendant",e.data._resultId):a.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){a.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){a._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){var r;e.stopPropagation(),a.trigger("keypress",e),a._keyUpPrevented=e.isDefaultPrevented(),e.which!==n.BACKSPACE||""!==a.$search.val()||0<(r=a.$selection.find(".select2-selection__choice").last()).length&&(r=t.GetData(r[0],"data"),a.searchRemoveChoice(r),e.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(e){a.$search.val()&&e.stopPropagation()}));var c=(r=document.documentMode)&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?a.$selection.off("input.search input.searchcheck"):a.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){var t;c&&"input"===e.type?a.$selection.off("input.search input.searchcheck"):(t=e.which)!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&a.handleSearch(e)}))},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},r})),y.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this);return-1!==(t=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(t=t.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(t),n},t})),y.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,r){var i=this,a=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,r),n.on("*",(function(t,n){var r;-1!==a.indexOf(t)&&(n=n||{},r=e.Event("select2:"+t,{params:n}),i.$element.trigger(r),-1!==o.indexOf(t)&&(n.prevented=r.isDefaultPrevented()))}))},t})),y.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){var r;return e in n._cache||(r=t(e),n._cache[e]=r),new n(n._cache[e])},n})),y.define("select2/diacritics",[],(function(){return{"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),y.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){return t=t.id+"-result-",t+=e.generateChars(4),null!=n.id?t+="-"+n.id.toString():t+="-"+e.generateChars(4),t},t})),y.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},r.prototype.select=function(e){var t,n=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(t){var r=[];(e=[e]).push.apply(e,t);for(var i=0;ithis.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),y.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",(function(){r._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected((function(){e.call(r,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){e=null!=e?e.length:0,0=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),y.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),y.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),r=this.options.get("translations").get("search");return t=e(''),this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",r()),n.prepend(t),n},t.prototype.bind=function(t,n,r){var i=this,a=n.id+"-results";t.call(this,n,r),this.$search.on("keydown",(function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){i.handleSearch(e)})),n.on("open",(function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",a),i.$search.trigger("focus"),window.setTimeout((function(){i.$search.trigger("focus")}),0)})),n.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")})),n.on("focus",(function(){n.isOpen()||i.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),y.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e})),y.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",(function(e){r.lastParams=e,r.loading=!0})),t.on("query:append",(function(e){r.lastParams=e,r.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(t=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('
    • '),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),y.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,r){this.$dropdownParent=e(r.get("dropdownParent")||document.body),t.call(this,n,r)}return n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",(function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)})),t.on("close",(function(){r._hideDropdown(),r._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("");return t=t.call(this),n.append(t),this.$dropdownContainer=n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(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=!0)},n.prototype._attachPositioningHandler=function(n,r){var i=this,a="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id;(r=this.$container.parents().filter(t.hasScroll)).each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),r.on(a,(function(n){var r=t.GetData(this,"select2-scroll-position");e(this).scrollTop(r.y)})),e(window).on(a+" "+o+" "+s,(function(e){i._positionDropdown(),i._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,a="resize.select2."+r.id;r="orientationchange.select2."+r.id,this.$container.parents().filter(t.hasScroll).off(i),e(window).off(i+" "+a+" "+r)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),r=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=a.top,o.bottom=a.top+o.height;var s=this.$dropdown.outerHeight(!1),c=t.scrollTop(),l=t.scrollTop()+t.height(),C=ca.bottom+s,c={left:a.left,top:o.bottom},"static"===(l=this.$dropdownParent).css("position")&&(l=l.offsetParent()),a={top:0,left:0},(e.contains(document.body,l[0])||l[0].isConnected)&&(a=l.offset()),c.top-=a.top,c.left-=a.left,n||r||(i="below"),t||!C||n?!C&&t&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(c.top=o.top-a.top-s),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(c)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),y.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},i})),y.define("jquery-mousewheel",["jquery"],(function(e){return e})),y.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,r,i){var a;return null==e.fn.select2&&(a=["open","close","destroy"],e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var r=e.extend(!0,{},t);new n(e(this),r)})),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var r,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=i.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=e[t].apply(e,o)})),-1").attr("id",t.containerId).addClass(t.positionClass)).appendTo(e(t.target)),c}(t)),c}function n(t){for(var n=c.children(),i=n.length-1;i>=0;i--)r(e(n[i]),t)}function r(t,n,r){var i=!(!r||!r.force)&&r.force;return!(!t||!i&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){s(t)}}),0))}function i(e){l&&l(e)}function a(n){function r(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function a(t){var n=t&&!1!==l.closeMethod?l.closeMethod:l.hideMethod,r=t&&!1!==l.closeDuration?l.closeDuration:l.hideDuration,a=t&&!1!==l.closeEasing?l.closeEasing:l.hideEasing;if(!e(":focus",f).length||t)return clearTimeout(M.intervalId),f[n]({duration:r,easing:a,complete:function(){s(f),clearTimeout(h),l.onHidden&&"hidden"!==z.state&&l.onHidden(),z.state="hidden",z.endTime=new Date,i(z)}})}var l=o(),d=n.iconClass||l.iconClass;if(void 0!==n.optionsOverride&&(l=e.extend(l,n.optionsOverride),d=n.optionsOverride.iconClass||d),!function(e,t){if(e.preventDuplicates){if(t.message===C)return!0;C=t.message}return!1}(l,n)){u++,c=t(l,!0);var h=null,f=e("
      "),p=e("
      "),m=e("
      "),v=e("
      "),g=e(l.closeHtml),M={intervalId:null,hideEta:null,maxHideTime:null},z={toastId:u,state:"visible",startTime:new Date,options:l,map:n};return n.iconClass&&f.addClass(l.toastClass).addClass(d),function(){if(n.title){var e=n.title;l.escapeHtml&&(e=r(n.title)),p.append(e).addClass(l.titleClass),f.append(p)}}(),function(){if(n.message){var e=n.message;l.escapeHtml&&(e=r(n.message)),m.append(e).addClass(l.messageClass),f.append(m)}}(),l.closeButton&&(g.addClass(l.closeClass).attr("role","button"),f.prepend(g)),l.progressBar&&(v.addClass(l.progressClass),f.prepend(v)),l.rtl&&f.addClass("rtl"),l.newestOnTop?c.prepend(f):c.append(f),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}f.attr("aria-live",e)}(),f.hide(),f[l.showMethod]({duration:l.showDuration,easing:l.showEasing,complete:l.onShown}),l.timeOut>0&&(h=setTimeout(a,l.timeOut),M.maxHideTime=parseFloat(l.timeOut),M.hideEta=(new Date).getTime()+M.maxHideTime,l.progressBar&&(M.intervalId=setInterval((function(){var e=(M.hideEta-(new Date).getTime())/M.maxHideTime*100;v.width(e+"%")}),10))),l.closeOnHover&&f.hover((function(){clearTimeout(h),M.hideEta=0,f.stop(!0,!0)[l.showMethod]({duration:l.showDuration,easing:l.showEasing})}),(function(){(l.timeOut>0||l.extendedTimeOut>0)&&(h=setTimeout(a,l.extendedTimeOut),M.maxHideTime=parseFloat(l.extendedTimeOut),M.hideEta=(new Date).getTime()+M.maxHideTime)})),!l.onclick&&l.tapToDismiss&&f.click(a),l.closeButton&&g&&g.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),l.onCloseClick&&l.onCloseClick(e),a(!0)})),l.onclick&&f.click((function(e){l.onclick(e),a()})),i(z),l.debug&&console&&console.log(z),f}}function o(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},m.options)}function s(e){c||(c=t()),e.is(":visible")||(e.remove(),e=null,0===c.children().length&&(c.remove(),C=void 0))}var c,l,C,u=0,d="error",h="info",f="success",p="warning",m={clear:function(e,i){var a=o();c||t(a),r(e,a,i)||n(a)},remove:function(n){var r=o();return c||t(r),n&&0===e(":focus",n).length?void s(n):void(c.children().length&&c.remove())},error:function(e,t,n){return a({type:d,iconClass:o().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:t,info:function(e,t,n){return a({type:h,iconClass:o().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){l=e},success:function(e,t,n){return a({type:f,iconClass:o().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return a({type:p,iconClass:o().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return m}()}))}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={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",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},o=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(r,i)}),t)}}var c=function(e){return e instanceof Array?e:[e]};function l(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function C(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function d(e,t){return t(e)?e:e.parentNode?d(e.parentNode,t):void 0}function h(e,t){var n=C("div","numInputWrapper"),r=C("input","numInput "+e),i=C("span","arrowUp"),a=C("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var o in t)r.setAttribute(o,t[o]);return n.appendChild(r),n.appendChild(i),n.appendChild(a),n}function f(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var p=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:p,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+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*o(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(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},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((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:p,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:p,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},g={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},M={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[M.w(e,t,n)]},F:function(e,t,n){return m(M.n(e,t,n)-1,!1,t)},G:function(e,t,n){return a(M.h(e,t,n))},H:function(e){return a(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return a(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return a(e.getFullYear(),4)},d:function(e){return a(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return a(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return a(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)}},z=function(e){var t=e.config,n=void 0===t?r:t,a=e.l10n,o=void 0===a?i:a,s=e.isMobile,c=void 0!==s&&s;return function(e,t,r){var i=r||o;return void 0===n.formatDate||c?t.split("").map((function(t,r,a){return M[t]&&"\\"!==a[r-1]?M[t](e,i,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,i)}},L=function(e){var t=e.config,n=void 0===t?r:t,a=e.l10n,o=void 0===a?i:a;return function(e,t,i,a){if(0===e||e){var s,c=a||o,l=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var C=t||(n||r).dateFormat,u=String(e).trim();if("today"===u)s=new Date,i=!0;else if(n&&n.parseDate)s=n.parseDate(e,C);else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(e);else{for(var d=void 0,h=[],f=0,p=0,m="";f=0?new Date:new Date(M.config.minDate.getTime()),n=V(M.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),M.selectedDates=[t],M.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=f(e),r=n;void 0!==M.amPM&&n===M.amPM&&(M.amPM.textContent=M.l10n.amPM[o(M.amPM.textContent===M.l10n.amPM[0])]);var i=parseFloat(r.getAttribute("min")),s=parseFloat(r.getAttribute("max")),c=parseFloat(r.getAttribute("step")),l=parseInt(r.value,10),C=l+c*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==r.value&&2===r.value.length){var u=r===M.hourElement,d=r===M.minuteElement;Cs&&(C=r===M.hourElement?C-s-o(!M.amPM):i,d&&N(void 0,1,M.hourElement)),M.amPM&&u&&(1===c?C+l===23:Math.abs(C-l)>c)&&(M.amPM.textContent=M.l10n.amPM[o(M.amPM.textContent===M.l10n.amPM[0])]),r.value=a(C)}}(e);var r=M._input.value;x(),ye(),M._input.value!==r&&M._debouncedChange()}function x(){if(void 0!==M.hourElement&&void 0!==M.minuteElement){var e,t,n=(parseInt(M.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(M.minuteElement.value,10)||0)%60,i=void 0!==M.secondElement?(parseInt(M.secondElement.value,10)||0)%60:0;void 0!==M.amPM&&(e=n,t=M.amPM.textContent,n=e%12+12*o(t===M.l10n.amPM[1]));var a=void 0!==M.config.minTime||M.config.minDate&&M.minDateHasTime&&M.latestSelectedDateObj&&0===y(M.latestSelectedDateObj,M.config.minDate,!0),s=void 0!==M.config.maxTime||M.config.maxDate&&M.maxDateHasTime&&M.latestSelectedDateObj&&0===y(M.latestSelectedDateObj,M.config.maxDate,!0);if(void 0!==M.config.maxTime&&void 0!==M.config.minTime&&M.config.minTime>M.config.maxTime){var c=H(M.config.minTime.getHours(),M.config.minTime.getMinutes(),M.config.minTime.getSeconds()),l=H(M.config.maxTime.getHours(),M.config.maxTime.getMinutes(),M.config.maxTime.getSeconds()),C=H(n,r,i);if(C>l&&C=12)]),void 0!==M.secondElement&&(M.secondElement.value=a(n)))}function E(e){var t=f(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&Q(n)}function A(e,t,n,r){return t instanceof Array?t.forEach((function(t){return A(e,t,n,r)})):e instanceof Array?e.forEach((function(e){return A(e,t,n,r)})):(e.addEventListener(t,n,r),void M._handlers.push({remove:function(){return e.removeEventListener(t,n,r)}}))}function O(){ve("onChange")}function R(e,t){var n=void 0!==e?M.parseDate(e):M.latestSelectedDateObj||(M.config.minDate&&M.config.minDate>M.now?M.config.minDate:M.config.maxDate&&M.config.maxDate=0&&y(e,M.selectedDates[1])<=0}(t)&&!Me(t)&&a.classList.add("inRange"),M.weekNumbers&&1===M.config.showMonths&&"prevMonthDay"!==e&&r%7==6&&M.weekNumbers.insertAdjacentHTML("beforeend",""+M.config.getWeek(t)+""),ve("onDayCreate",a),a}function j(e){e.focus(),"range"===M.config.mode&&ie(e)}function F(e){for(var t=e>0?0:M.config.showMonths-1,n=e>0?M.config.showMonths:-1,r=t;r!=n;r+=e)for(var i=M.daysContainer.children[r],a=e>0?0:i.children.length-1,o=e>0?i.children.length:-1,s=a;s!=o;s+=e){var c=i.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj))return c}}function $(e,t){var n=b(),r=te(n||document.body),i=void 0!==e?e:r?n:void 0!==M.selectedDateElem&&te(M.selectedDateElem)?M.selectedDateElem:void 0!==M.todayDateElem&&te(M.todayDateElem)?M.todayDateElem:F(t>0?1:-1);void 0===i?M._input.focus():r?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():M.currentMonth,r=t>0?M.config.showMonths:-1,i=t>0?1:-1,a=n-M.currentMonth;a!=r;a+=i)for(var o=M.daysContainer.children[a],s=n-M.currentMonth===a?e.$i+t:t<0?o.children.length-1:0,c=o.children.length,l=s;l>=0&&l0?c:-1);l+=i){var C=o.children[l];if(-1===C.className.indexOf("hidden")&&ee(C.dateObj)&&Math.abs(e.$i-l)>=Math.abs(t))return j(C)}M.changeMonth(i),$(F(i),0)}(i,t):j(i)}function Y(e,t){for(var n=(new Date(e,t,1).getDay()-M.l10n.firstDayOfWeek+7)%7,r=M.utils.getDaysInMonth((t-1+12)%12,e),i=M.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),o=M.config.showMonths>1,s=o?"prevMonthDay hidden":"prevMonthDay",c=o?"nextMonthDay hidden":"nextMonthDay",l=r+1-n,u=0;l<=r;l++,u++)a.appendChild(I("flatpickr-day "+s,new Date(e,t-1,l),0,u));for(l=1;l<=i;l++,u++)a.appendChild(I("flatpickr-day",new Date(e,t,l),0,u));for(var d=i+1;d<=42-n&&(1===M.config.showMonths||u%7!=0);d++,u++)a.appendChild(I("flatpickr-day "+c,new Date(e,t+1,d%i),0,u));var h=C("div","dayContainer");return h.appendChild(a),h}function W(){if(void 0!==M.daysContainer){u(M.daysContainer),M.weekNumbers&&u(M.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==M.config.monthSelectorType)){var e=function(e){return!(void 0!==M.config.minDate&&M.currentYear===M.config.minDate.getFullYear()&&eM.config.maxDate.getMonth())};M.monthsDropdownContainer.tabIndex=-1,M.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=C("option","flatpickr-monthDropdown-month");n.value=new Date(M.currentYear,t).getMonth().toString(),n.textContent=m(t,M.config.shorthandCurrentMonth,M.l10n),n.tabIndex=-1,M.currentMonth===t&&(n.selected=!0),M.monthsDropdownContainer.appendChild(n)}}}function q(){var e,t=C("div","flatpickr-month"),n=window.document.createDocumentFragment();M.config.showMonths>1||"static"===M.config.monthSelectorType?e=C("span","cur-month"):(M.monthsDropdownContainer=C("select","flatpickr-monthDropdown-months"),M.monthsDropdownContainer.setAttribute("aria-label",M.l10n.monthAriaLabel),A(M.monthsDropdownContainer,"change",(function(e){var t=f(e),n=parseInt(t.value,10);M.changeMonth(n-M.currentMonth),ve("onMonthChange")})),U(),e=M.monthsDropdownContainer);var r=h("cur-year",{tabindex:"-1"}),i=r.getElementsByTagName("input")[0];i.setAttribute("aria-label",M.l10n.yearAriaLabel),M.config.minDate&&i.setAttribute("min",M.config.minDate.getFullYear().toString()),M.config.maxDate&&(i.setAttribute("max",M.config.maxDate.getFullYear().toString()),i.disabled=!!M.config.minDate&&M.config.minDate.getFullYear()===M.config.maxDate.getFullYear());var a=C("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(r),n.appendChild(a),t.appendChild(n),{container:t,yearElement:i,monthElement:e}}function B(){u(M.monthNav),M.monthNav.appendChild(M.prevMonthNav),M.config.showMonths&&(M.yearElements=[],M.monthElements=[]);for(var e=M.config.showMonths;e--;){var t=q();M.yearElements.push(t.yearElement),M.monthElements.push(t.monthElement),M.monthNav.appendChild(t.container)}M.monthNav.appendChild(M.nextMonthNav)}function G(){M.weekdayContainer?u(M.weekdayContainer):M.weekdayContainer=C("div","flatpickr-weekdays");for(var e=M.config.showMonths;e--;){var t=C("div","flatpickr-weekdaycontainer");M.weekdayContainer.appendChild(t)}return X(),M.weekdayContainer}function X(){if(M.weekdayContainer){var e=M.l10n.firstDayOfWeek,n=t(M.l10n.weekdays.shorthand);e>0&&e\n "+n.join("")+"\n \n "}}function Z(e,t){void 0===t&&(t=!0);var n=t?e:e-M.currentMonth;n<0&&!0===M._hidePrevMonthArrow||n>0&&!0===M._hideNextMonthArrow||(M.currentMonth+=n,(M.currentMonth<0||M.currentMonth>11)&&(M.currentYear+=M.currentMonth>11?1:-1,M.currentMonth=(M.currentMonth+12)%12,ve("onYearChange"),U()),W(),ve("onMonthChange"),ze())}function K(e){return M.calendarContainer.contains(e)}function J(e){if(M.isOpen&&!M.config.inline){var t=f(e),n=K(t),r=!(t===M.input||t===M.altInput||M.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(M.input)||~e.path.indexOf(M.altInput))||n||K(e.relatedTarget)),i=!M.config.ignoredFocusElements.some((function(e){return e.contains(t)}));r&&i&&(M.config.allowInput&&M.setDate(M._input.value,!1,M.config.altInput?M.config.altFormat:M.config.dateFormat),void 0!==M.timeContainer&&void 0!==M.minuteElement&&void 0!==M.hourElement&&""!==M.input.value&&void 0!==M.input.value&&D(),M.close(),M.config&&"range"===M.config.mode&&1===M.selectedDates.length&&M.clear(!1))}}function Q(e){if(!(!e||M.config.minDate&&eM.config.maxDate.getFullYear())){var t=e,n=M.currentYear!==t;M.currentYear=t||M.currentYear,M.config.maxDate&&M.currentYear===M.config.maxDate.getFullYear()?M.currentMonth=Math.min(M.config.maxDate.getMonth(),M.currentMonth):M.config.minDate&&M.currentYear===M.config.minDate.getFullYear()&&(M.currentMonth=Math.max(M.config.minDate.getMonth(),M.currentMonth)),n&&(M.redraw(),ve("onYearChange"),U())}}function ee(e,t){var n;void 0===t&&(t=!0);var r=M.parseDate(e,void 0,t);if(M.config.minDate&&r&&y(r,M.config.minDate,void 0!==t?t:!M.minDateHasTime)<0||M.config.maxDate&&r&&y(r,M.config.maxDate,void 0!==t?t:!M.maxDateHasTime)>0)return!1;if(!M.config.enable&&0===M.config.disable.length)return!0;if(void 0===r)return!1;for(var i=!!M.config.enable,a=null!==(n=M.config.enable)&&void 0!==n?n:M.config.disable,o=0,s=void 0;o=s.from.getTime()&&r.getTime()<=s.to.getTime())return i}return!i}function te(e){return void 0!==M.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&M.daysContainer.contains(e)}function ne(e){var t=e.target===M._input,n=M._input.value.trimEnd()!==Le();!t||!n||e.relatedTarget&&K(e.relatedTarget)||M.setDate(M._input.value,!0,e.target===M.altInput?M.config.altFormat:M.config.dateFormat)}function re(e){var t=f(e),n=M.config.wrap?p.contains(t):t===M._input,r=M.config.allowInput,i=M.isOpen&&(!r||!n),a=M.config.inline&&n&&!r;if(13===e.keyCode&&n){if(r)return M.setDate(M._input.value,!0,t===M.altInput?M.config.altFormat:M.config.dateFormat),M.close(),t.blur();M.open()}else if(K(t)||i||a){var o=!!M.timeContainer&&M.timeContainer.contains(t);switch(e.keyCode){case 13:o?(e.preventDefault(),D(),ue()):de(e);break;case 27:e.preventDefault(),ue();break;case 8:case 46:n&&!M.config.allowInput&&(e.preventDefault(),M.clear());break;case 37:case 39:if(o||n)M.hourElement&&M.hourElement.focus();else{e.preventDefault();var s=b();if(void 0!==M.daysContainer&&(!1===r||s&&te(s))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Z(c),$(F(1),0)):$(void 0,c)}}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;M.daysContainer&&void 0!==t.$i||t===M.input||t===M.altInput?e.ctrlKey?(e.stopPropagation(),Q(M.currentYear-l),$(F(1),0)):o||$(void 0,7*l):t===M.currentYearElement?Q(M.currentYear-l):M.config.enableTime&&(!o&&M.hourElement&&M.hourElement.focus(),D(e),M._debouncedChange());break;case 9:if(o){var C=[M.hourElement,M.minuteElement,M.secondElement,M.amPM].concat(M.pluginElements).filter((function(e){return e})),u=C.indexOf(t);if(-1!==u){var d=C[u+(e.shiftKey?-1:1)];e.preventDefault(),(d||M._input).focus()}}else!M.config.noCalendar&&M.daysContainer&&M.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),M._input.focus())}}if(void 0!==M.amPM&&t===M.amPM)switch(e.key){case M.l10n.amPM[0].charAt(0):case M.l10n.amPM[0].charAt(0).toLowerCase():M.amPM.textContent=M.l10n.amPM[0],x(),ye();break;case M.l10n.amPM[1].charAt(0):case M.l10n.amPM[1].charAt(0).toLowerCase():M.amPM.textContent=M.l10n.amPM[1],x(),ye()}(n||K(t))&&ve("onKeyDown",e)}function ie(e,t){if(void 0===t&&(t="flatpickr-day"),1===M.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():M.days.firstElementChild.dateObj.getTime(),r=M.parseDate(M.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,M.selectedDates[0].getTime()),a=Math.max(n,M.selectedDates[0].getTime()),o=!1,s=0,c=0,l=i;li&&ls)?s=l:l>r&&(!c||l ."+t)).forEach((function(t){var i,a,l,C=t.dateObj.getTime(),u=s>0&&C0&&C>c;if(u)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));o&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=M.selectedDates[0].getTime()?"startRange":"endRange"),rn&&C===r&&t.classList.add("endRange"),C>=s&&(0===c||C<=c)&&(a=r,l=n,(i=C)>Math.min(a,l)&&i0||n.getMinutes()>0||n.getSeconds()>0),M.selectedDates&&(M.selectedDates=M.selectedDates.filter((function(e){return ee(e)})),M.selectedDates.length||"min"!==e||k(n),ye()),M.daysContainer&&(Ce(),void 0!==n?M.currentYearElement[e]=n.getFullYear().toString():M.currentYearElement.removeAttribute(e),M.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function se(){return M.config.wrap?p.querySelector("[data-input]"):p}function ce(){"object"!=typeof M.config.locale&&void 0===S.l10ns[M.config.locale]&&M.config.errorHandler(new Error("flatpickr: invalid locale "+M.config.locale)),M.l10n=e(e({},S.l10ns.default),"object"==typeof M.config.locale?M.config.locale:"default"!==M.config.locale?S.l10ns[M.config.locale]:void 0),g.D="("+M.l10n.weekdays.shorthand.join("|")+")",g.l="("+M.l10n.weekdays.longhand.join("|")+")",g.M="("+M.l10n.months.shorthand.join("|")+")",g.F="("+M.l10n.months.longhand.join("|")+")",g.K="("+M.l10n.amPM[0]+"|"+M.l10n.amPM[1]+"|"+M.l10n.amPM[0].toLowerCase()+"|"+M.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(p.dataset||{}))).time_24hr&&void 0===S.defaultConfig.time_24hr&&(M.config.time_24hr=M.l10n.time_24hr),M.formatDate=z(M),M.parseDate=L({config:M.config,l10n:M.l10n})}function le(e){if("function"!=typeof M.config.position){if(void 0!==M.calendarContainer){ve("onPreCalendarPosition");var t=e||M._positionElement,n=Array.prototype.reduce.call(M.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),r=M.calendarContainer.offsetWidth,i=M.config.position.split(" "),a=i[0],o=i.length>1?i[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,C="above"===a||"below"!==a&&cn,u=window.pageYOffset+s.top+(C?-n-2:t.offsetHeight+2);if(l(M.calendarContainer,"arrowTop",!C),l(M.calendarContainer,"arrowBottom",C),!M.config.inline){var d=window.pageXOffset+s.left,h=!1,f=!1;"center"===o?(d-=(r-s.width)/2,h=!0):"right"===o&&(d-=r-s.width,f=!0),l(M.calendarContainer,"arrowLeft",!h&&!f),l(M.calendarContainer,"arrowCenter",h),l(M.calendarContainer,"arrowRight",f);var p=window.document.body.offsetWidth-(window.pageXOffset+s.right),m=d+r>window.document.body.offsetWidth,v=p+r>window.document.body.offsetWidth;if(l(M.calendarContainer,"rightMost",m),!M.config.static)if(M.calendarContainer.style.top=u+"px",m)if(v){var g=function(){for(var e=null,t=0;tM.currentMonth+M.config.showMonths-1)&&"range"!==M.config.mode;if(M.selectedDateElem=n,"single"===M.config.mode)M.selectedDates=[r];else if("multiple"===M.config.mode){var a=Me(r);a?M.selectedDates.splice(parseInt(a),1):M.selectedDates.push(r)}else"range"===M.config.mode&&(2===M.selectedDates.length&&M.clear(!1,!1),M.latestSelectedDateObj=r,M.selectedDates.push(r),0!==y(r,M.selectedDates[0],!0)&&M.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(x(),i){var o=M.currentYear!==r.getFullYear();M.currentYear=r.getFullYear(),M.currentMonth=r.getMonth(),o&&(ve("onYearChange"),U()),ve("onMonthChange")}if(ze(),W(),ye(),i||"range"===M.config.mode||1!==M.config.showMonths?void 0!==M.selectedDateElem&&void 0===M.hourElement&&M.selectedDateElem&&M.selectedDateElem.focus():j(n),void 0!==M.hourElement&&void 0!==M.hourElement&&M.hourElement.focus(),M.config.closeOnSelect){var s="single"===M.config.mode&&!M.config.enableTime,c="range"===M.config.mode&&2===M.selectedDates.length&&!M.config.enableTime;(s||c)&&ue()}O()}}M.parseDate=L({config:M.config,l10n:M.l10n}),M._handlers=[],M.pluginElements=[],M.loadedPlugins=[],M._bind=A,M._setHoursFromDate=k,M._positionCalendar=le,M.changeMonth=Z,M.changeYear=Q,M.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),M.input.value="",void 0!==M.altInput&&(M.altInput.value=""),void 0!==M.mobileInput&&(M.mobileInput.value=""),M.selectedDates=[],M.latestSelectedDateObj=void 0,!0===t&&(M.currentYear=M._initialDate.getFullYear(),M.currentMonth=M._initialDate.getMonth()),!0===M.config.enableTime){var n=V(M.config);T(n.hours,n.minutes,n.seconds)}M.redraw(),e&&ve("onChange")},M.close=function(){M.isOpen=!1,M.isMobile||(void 0!==M.calendarContainer&&M.calendarContainer.classList.remove("open"),void 0!==M._input&&M._input.classList.remove("active")),ve("onClose")},M.onMouseOver=ie,M._createElement=C,M.createDay=I,M.destroy=function(){void 0!==M.config&&ve("onDestroy");for(var e=M._handlers.length;e--;)M._handlers[e].remove();if(M._handlers=[],M.mobileInput)M.mobileInput.parentNode&&M.mobileInput.parentNode.removeChild(M.mobileInput),M.mobileInput=void 0;else if(M.calendarContainer&&M.calendarContainer.parentNode)if(M.config.static&&M.calendarContainer.parentNode){var t=M.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else M.calendarContainer.parentNode.removeChild(M.calendarContainer);M.altInput&&(M.input.type="text",M.altInput.parentNode&&M.altInput.parentNode.removeChild(M.altInput),delete M.altInput),M.input&&(M.input.type=M.input._type,M.input.classList.remove("flatpickr-input"),M.input.removeAttribute("readonly")),["_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 M[e]}catch(e){}}))},M.isEnabled=ee,M.jumpToDate=R,M.updateValue=ye,M.open=function(e,t){if(void 0===t&&(t=M._positionElement),!0===M.isMobile){if(e){e.preventDefault();var n=f(e);n&&n.blur()}return void 0!==M.mobileInput&&(M.mobileInput.focus(),M.mobileInput.click()),void ve("onOpen")}if(!M._input.disabled&&!M.config.inline){var r=M.isOpen;M.isOpen=!0,r||(M.calendarContainer.classList.add("open"),M._input.classList.add("active"),ve("onOpen"),le(t)),!0===M.config.enableTime&&!0===M.config.noCalendar&&(!1!==M.config.allowInput||void 0!==e&&M.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return M.hourElement.select()}),50))}},M.redraw=Ce,M.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(M.config,e),e)void 0!==he[r]&&he[r].forEach((function(e){return e()}));else M.config[e]=t,void 0!==he[e]?he[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(M.config[e]=c(t));M.redraw(),ye(!0)},M.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=M.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return M.clear(t);fe(e,n),M.latestSelectedDateObj=M.selectedDates[M.selectedDates.length-1],M.redraw(),R(void 0,t),k(),0===M.selectedDates.length&&M.clear(!1),ye(t),t&&ve("onChange")},M.toggle=function(e){if(!0===M.isOpen)return M.close();M.open(e)};var he={locale:[ce,X],showMonths:[B,_,G],minDate:[R],maxDate:[R],positionElement:[me],clickOpens:[function(){!0===M.config.clickOpens?(A(M._input,"focus",M.open),A(M._input,"click",M.open)):(M._input.removeEventListener("focus",M.open),M._input.removeEventListener("click",M.open))}]};function fe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return M.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[M.parseDate(e,t)];else if("string"==typeof e)switch(M.config.mode){case"single":case"time":n=[M.parseDate(e,t)];break;case"multiple":n=e.split(M.config.conjunction).map((function(e){return M.parseDate(e,t)}));break;case"range":n=e.split(M.l10n.rangeSeparator).map((function(e){return M.parseDate(e,t)}))}else M.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));M.selectedDates=M.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===M.config.mode&&M.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function pe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?M.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:M.parseDate(e.from,void 0),to:M.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function me(){M._positionElement=M.config.positionElement||M._input}function ve(e,t){if(void 0!==M.config){var n=M.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r1||"static"===M.config.monthSelectorType?M.monthElements[t].textContent=m(n.getMonth(),M.config.shorthandCurrentMonth,M.l10n)+" ":M.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),M._hidePrevMonthArrow=void 0!==M.config.minDate&&(M.currentYear===M.config.minDate.getFullYear()?M.currentMonth<=M.config.minDate.getMonth():M.currentYearM.config.maxDate.getMonth():M.currentYear>M.config.maxDate.getFullYear()))}function Le(e){var t=e||(M.config.altInput?M.config.altFormat:M.config.dateFormat);return M.selectedDates.map((function(e){return M.formatDate(e,t)})).filter((function(e,t,n){return"range"!==M.config.mode||M.config.enableTime||n.indexOf(e)===t})).join("range"!==M.config.mode?M.config.conjunction:M.l10n.rangeSeparator)}function ye(e){void 0===e&&(e=!0),void 0!==M.mobileInput&&M.mobileFormatStr&&(M.mobileInput.value=void 0!==M.latestSelectedDateObj?M.formatDate(M.latestSelectedDateObj,M.mobileFormatStr):""),M.input.value=Le(M.config.dateFormat),void 0!==M.altInput&&(M.altInput.value=Le(M.config.altFormat)),!1!==e&&ve("onValueUpdate")}function He(e){var t=f(e),n=M.prevMonthNav.contains(t),r=M.nextMonthNav.contains(t);n||r?Z(n?-1:1):M.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?M.changeYear(M.currentYear+1):t.classList.contains("arrowDown")&&M.changeYear(M.currentYear-1)}return function(){M.element=M.input=p,M.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),v),a={};M.config.parseDate=i.parseDate,M.config.formatDate=i.formatDate,Object.defineProperty(M.config,"enable",{get:function(){return M.config._enable},set:function(e){M.config._enable=pe(e)}}),Object.defineProperty(M.config,"disable",{get:function(){return M.config._disable},set:function(e){M.config._disable=pe(e)}});var o="time"===i.mode;if(!i.dateFormat&&(i.enableTime||o)){var s=S.defaultConfig.dateFormat||r.dateFormat;a.dateFormat=i.noCalendar||o?"H:i"+(i.enableSeconds?":S":""):s+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||o)&&!i.altFormat){var l=S.defaultConfig.altFormat||r.altFormat;a.altFormat=i.noCalendar||o?"h:i"+(i.enableSeconds?":S K":" K"):l+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(M.config,"minDate",{get:function(){return M.config._minDate},set:oe("min")}),Object.defineProperty(M.config,"maxDate",{get:function(){return M.config._maxDate},set:oe("max")});var C=function(e){return function(t){M.config["min"===e?"_minTime":"_maxTime"]=M.parseDate(t,"H:i:S")}};Object.defineProperty(M.config,"minTime",{get:function(){return M.config._minTime},set:C("min")}),Object.defineProperty(M.config,"maxTime",{get:function(){return M.config._maxTime},set:C("max")}),"time"===i.mode&&(M.config.noCalendar=!0,M.config.enableTime=!0),Object.assign(M.config,a,i);for(var u=0;u-1?M.config[h]=c(d[h]).map(w).concat(M.config[h]):void 0===i[h]&&(M.config[h]=d[h])}i.altInputClass||(M.config.altInputClass=se().className+" "+M.config.altInputClass),ve("onParseConfig")}(),ce(),M.input=se(),M.input?(M.input._type=M.input.type,M.input.type="text",M.input.classList.add("flatpickr-input"),M._input=M.input,M.config.altInput&&(M.altInput=C(M.input.nodeName,M.config.altInputClass),M._input=M.altInput,M.altInput.placeholder=M.input.placeholder,M.altInput.disabled=M.input.disabled,M.altInput.required=M.input.required,M.altInput.tabIndex=M.input.tabIndex,M.altInput.type="text",M.input.setAttribute("type","hidden"),!M.config.static&&M.input.parentNode&&M.input.parentNode.insertBefore(M.altInput,M.input.nextSibling)),M.config.allowInput||M._input.setAttribute("readonly","readonly"),me()):M.config.errorHandler(new Error("Invalid input element specified")),function(){M.selectedDates=[],M.now=M.parseDate(M.config.now)||new Date;var e=M.config.defaultDate||("INPUT"!==M.input.nodeName&&"TEXTAREA"!==M.input.nodeName||!M.input.placeholder||M.input.value!==M.input.placeholder?M.input.value:null);e&&fe(e,M.config.dateFormat),M._initialDate=M.selectedDates.length>0?M.selectedDates[0]:M.config.minDate&&M.config.minDate.getTime()>M.now.getTime()?M.config.minDate:M.config.maxDate&&M.config.maxDate.getTime()0&&(M.latestSelectedDateObj=M.selectedDates[0]),void 0!==M.config.minTime&&(M.config.minTime=M.parseDate(M.config.minTime,"H:i")),void 0!==M.config.maxTime&&(M.config.maxTime=M.parseDate(M.config.maxTime,"H:i")),M.minDateHasTime=!!M.config.minDate&&(M.config.minDate.getHours()>0||M.config.minDate.getMinutes()>0||M.config.minDate.getSeconds()>0),M.maxDateHasTime=!!M.config.maxDate&&(M.config.maxDate.getHours()>0||M.config.maxDate.getMinutes()>0||M.config.maxDate.getSeconds()>0)}(),M.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=M.currentMonth),void 0===t&&(t=M.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:M.l10n.daysInMonth[e]}},M.isMobile||function(){var e=window.document.createDocumentFragment();if(M.calendarContainer=C("div","flatpickr-calendar"),M.calendarContainer.tabIndex=-1,!M.config.noCalendar){if(e.appendChild((M.monthNav=C("div","flatpickr-months"),M.yearElements=[],M.monthElements=[],M.prevMonthNav=C("span","flatpickr-prev-month"),M.prevMonthNav.innerHTML=M.config.prevArrow,M.nextMonthNav=C("span","flatpickr-next-month"),M.nextMonthNav.innerHTML=M.config.nextArrow,B(),Object.defineProperty(M,"_hidePrevMonthArrow",{get:function(){return M.__hidePrevMonthArrow},set:function(e){M.__hidePrevMonthArrow!==e&&(l(M.prevMonthNav,"flatpickr-disabled",e),M.__hidePrevMonthArrow=e)}}),Object.defineProperty(M,"_hideNextMonthArrow",{get:function(){return M.__hideNextMonthArrow},set:function(e){M.__hideNextMonthArrow!==e&&(l(M.nextMonthNav,"flatpickr-disabled",e),M.__hideNextMonthArrow=e)}}),M.currentYearElement=M.yearElements[0],ze(),M.monthNav)),M.innerContainer=C("div","flatpickr-innerContainer"),M.config.weekNumbers){var t=function(){M.calendarContainer.classList.add("hasWeeks");var e=C("div","flatpickr-weekwrapper");e.appendChild(C("span","flatpickr-weekday",M.l10n.weekAbbreviation));var t=C("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,r=t.weekNumbers;M.innerContainer.appendChild(n),M.weekNumbers=r,M.weekWrapper=n}M.rContainer=C("div","flatpickr-rContainer"),M.rContainer.appendChild(G()),M.daysContainer||(M.daysContainer=C("div","flatpickr-days"),M.daysContainer.tabIndex=-1),W(),M.rContainer.appendChild(M.daysContainer),M.innerContainer.appendChild(M.rContainer),e.appendChild(M.innerContainer)}M.config.enableTime&&e.appendChild(function(){M.calendarContainer.classList.add("hasTime"),M.config.noCalendar&&M.calendarContainer.classList.add("noCalendar");var e=V(M.config);M.timeContainer=C("div","flatpickr-time"),M.timeContainer.tabIndex=-1;var t=C("span","flatpickr-time-separator",":"),n=h("flatpickr-hour",{"aria-label":M.l10n.hourAriaLabel});M.hourElement=n.getElementsByTagName("input")[0];var r=h("flatpickr-minute",{"aria-label":M.l10n.minuteAriaLabel});if(M.minuteElement=r.getElementsByTagName("input")[0],M.hourElement.tabIndex=M.minuteElement.tabIndex=-1,M.hourElement.value=a(M.latestSelectedDateObj?M.latestSelectedDateObj.getHours():M.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),M.minuteElement.value=a(M.latestSelectedDateObj?M.latestSelectedDateObj.getMinutes():e.minutes),M.hourElement.setAttribute("step",M.config.hourIncrement.toString()),M.minuteElement.setAttribute("step",M.config.minuteIncrement.toString()),M.hourElement.setAttribute("min",M.config.time_24hr?"0":"1"),M.hourElement.setAttribute("max",M.config.time_24hr?"23":"12"),M.hourElement.setAttribute("maxlength","2"),M.minuteElement.setAttribute("min","0"),M.minuteElement.setAttribute("max","59"),M.minuteElement.setAttribute("maxlength","2"),M.timeContainer.appendChild(n),M.timeContainer.appendChild(t),M.timeContainer.appendChild(r),M.config.time_24hr&&M.timeContainer.classList.add("time24hr"),M.config.enableSeconds){M.timeContainer.classList.add("hasSeconds");var i=h("flatpickr-second");M.secondElement=i.getElementsByTagName("input")[0],M.secondElement.value=a(M.latestSelectedDateObj?M.latestSelectedDateObj.getSeconds():e.seconds),M.secondElement.setAttribute("step",M.minuteElement.getAttribute("step")),M.secondElement.setAttribute("min","0"),M.secondElement.setAttribute("max","59"),M.secondElement.setAttribute("maxlength","2"),M.timeContainer.appendChild(C("span","flatpickr-time-separator",":")),M.timeContainer.appendChild(i)}return M.config.time_24hr||(M.amPM=C("span","flatpickr-am-pm",M.l10n.amPM[o((M.latestSelectedDateObj?M.hourElement.value:M.config.defaultHour)>11)]),M.amPM.title=M.l10n.toggleTitle,M.amPM.tabIndex=-1,M.timeContainer.appendChild(M.amPM)),M.timeContainer}()),l(M.calendarContainer,"rangeMode","range"===M.config.mode),l(M.calendarContainer,"animate",!0===M.config.animate),l(M.calendarContainer,"multiMonth",M.config.showMonths>1),M.calendarContainer.appendChild(e);var i=void 0!==M.config.appendTo&&void 0!==M.config.appendTo.nodeType;if((M.config.inline||M.config.static)&&(M.calendarContainer.classList.add(M.config.inline?"inline":"static"),M.config.inline&&(!i&&M.element.parentNode?M.element.parentNode.insertBefore(M.calendarContainer,M._input.nextSibling):void 0!==M.config.appendTo&&M.config.appendTo.appendChild(M.calendarContainer)),M.config.static)){var s=C("div","flatpickr-wrapper");M.element.parentNode&&M.element.parentNode.insertBefore(s,M.element),s.appendChild(M.element),M.altInput&&s.appendChild(M.altInput),s.appendChild(M.calendarContainer)}M.config.static||M.config.inline||(void 0!==M.config.appendTo?M.config.appendTo:window.document.body).appendChild(M.calendarContainer)}(),function(){if(M.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(M.element.querySelectorAll("[data-"+e+"]"),(function(t){return A(t,"click",M[e])}))})),M.isMobile)!function(){var e=M.config.enableTime?M.config.noCalendar?"time":"datetime-local":"date";M.mobileInput=C("input",M.input.className+" flatpickr-mobile"),M.mobileInput.tabIndex=1,M.mobileInput.type=e,M.mobileInput.disabled=M.input.disabled,M.mobileInput.required=M.input.required,M.mobileInput.placeholder=M.input.placeholder,M.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",M.selectedDates.length>0&&(M.mobileInput.defaultValue=M.mobileInput.value=M.formatDate(M.selectedDates[0],M.mobileFormatStr)),M.config.minDate&&(M.mobileInput.min=M.formatDate(M.config.minDate,"Y-m-d")),M.config.maxDate&&(M.mobileInput.max=M.formatDate(M.config.maxDate,"Y-m-d")),M.input.getAttribute("step")&&(M.mobileInput.step=String(M.input.getAttribute("step"))),M.input.type="hidden",void 0!==M.altInput&&(M.altInput.type="hidden");try{M.input.parentNode&&M.input.parentNode.insertBefore(M.mobileInput,M.input.nextSibling)}catch(e){}A(M.mobileInput,"change",(function(e){M.setDate(f(e).value,!1,M.mobileFormatStr),ve("onChange"),ve("onClose")}))}();else{var e=s(ae,50);M._debouncedChange=s(O,300),M.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&A(M.daysContainer,"mouseover",(function(e){"range"===M.config.mode&&ie(f(e))})),A(M._input,"keydown",re),void 0!==M.calendarContainer&&A(M.calendarContainer,"keydown",re),M.config.inline||M.config.static||A(window,"resize",e),void 0!==window.ontouchstart?A(window.document,"touchstart",J):A(window.document,"mousedown",J),A(window.document,"focus",J,{capture:!0}),!0===M.config.clickOpens&&(A(M._input,"focus",M.open),A(M._input,"click",M.open)),void 0!==M.daysContainer&&(A(M.monthNav,"click",He),A(M.monthNav,["keyup","increment"],E),A(M.daysContainer,"click",de)),void 0!==M.timeContainer&&void 0!==M.minuteElement&&void 0!==M.hourElement&&(A(M.timeContainer,["increment"],D),A(M.timeContainer,"blur",D,{capture:!0}),A(M.timeContainer,"click",P),A([M.hourElement,M.minuteElement],["focus","click"],(function(e){return f(e).select()})),void 0!==M.secondElement&&A(M.secondElement,"focus",(function(){return M.secondElement&&M.secondElement.select()})),void 0!==M.amPM&&A(M.amPM,"click",(function(e){D(e)}))),M.config.allowInput&&A(M._input,"blur",ne)}}(),(M.selectedDates.length||M.config.noCalendar)&&(M.config.enableTime&&k(M.config.noCalendar?M.latestSelectedDateObj:void 0),ye(!1)),_();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!M.isMobile&&t&&le(),ve("onReady")}(),M}function w(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),r=[],i=0;i]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var i=this.o=e.extend({},this._o),a=i.language;f[a]||(a=a.split("-")[0],f[a]||(a=d.language)),i.language=a,i.startView=this._resolveViewName(i.startView),i.minViewMode=this._resolveViewName(i.minViewMode),i.maxViewMode=this._resolveViewName(i.maxViewMode),i.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,i.startView)),!0!==i.multidate&&(i.multidate=Number(i.multidate)||!1,!1!==i.multidate&&(i.multidate=Math.max(0,i.multidate))),i.multidateSeparator=String(i.multidateSeparator),i.weekStart%=7,i.weekEnd=(i.weekStart+6)%7;var o=p.parseFormat(i.format);i.startDate!==-1/0&&(i.startDate?i.startDate instanceof Date?i.startDate=this._local_to_utc(this._zero_time(i.startDate)):i.startDate=p.parseDate(i.startDate,o,i.language,i.assumeNearbyYear):i.startDate=-1/0),i.endDate!==1/0&&(i.endDate?i.endDate instanceof Date?i.endDate=this._local_to_utc(this._zero_time(i.endDate)):i.endDate=p.parseDate(i.endDate,o,i.language,i.assumeNearbyYear):i.endDate=1/0),i.daysOfWeekDisabled=this._resolveDaysOfWeek(i.daysOfWeekDisabled||[]),i.daysOfWeekHighlighted=this._resolveDaysOfWeek(i.daysOfWeekHighlighted||[]),i.datesDisabled=i.datesDisabled||[],e.isArray(i.datesDisabled)||(i.datesDisabled=i.datesDisabled.split(",")),i.datesDisabled=e.map(i.datesDisabled,(function(e){return p.parseDate(e,o,i.language,i.assumeNearbyYear)}));var s=String(i.orientation).toLowerCase().split(/\s+/g),c=i.orientation.toLowerCase();if(s=e.grep(s,(function(e){return/^auto|left|right|top|bottom$/.test(e)})),i.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===s.length)switch(s[0]){case"top":case"bottom":i.orientation.y=s[0];break;case"left":case"right":i.orientation.x=s[0]}else c=e.grep(s,(function(e){return/^left|right$/.test(e)})),i.orientation.x=c[0]||"auto",c=e.grep(s,(function(e){return/^top|bottom$/.test(e)})),i.orientation.y=c[0]||"auto";if(i.defaultViewDate instanceof Date||"string"==typeof i.defaultViewDate)i.defaultViewDate=p.parseDate(i.defaultViewDate,o,i.language,i.assumeNearbyYear);else if(i.defaultViewDate){var l=i.defaultViewDate.year||(new Date).getFullYear(),C=i.defaultViewDate.month||0,u=i.defaultViewDate.day||1;i.defaultViewDate=n(l,C,u)}else i.defaultViewDate=r()},_applyEvents:function(e){for(var n,r,i,a=0;ai?(this.picker.addClass("datepicker-orient-right"),d+=u-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-a+h-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?h-=n+parseInt(this.picker.css("padding-top")):h+=C,this.o.rtl){var p=i-(d+u);this.picker.css({top:h,right:p,zIndex:c})}else this.picker.css({top:h,left:d,zIndex:c});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],r=!1;return arguments.length?(e.each(arguments,e.proxy((function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)}),this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy((function(e){return p.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=e.grep(n,e.proxy((function(e){return!this.dateWithinRange(e)||!e}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');t";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+f[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,(function(e){return e.valueOf()})):delete this.range,this.fill()},getClassNames:function(t){var n=[],a=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),s=r();return t.getUTCFullYear()a||t.getUTCFullYear()===a&&t.getUTCMonth()>o)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&i(t,s)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&ts)&&l.push("disabled"),M===v&&l.push("focused"),c!==e.noop&&((u=c(new Date(M,0,1)))===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&l.push("disabled"),u.classes&&(l=l.concat(u.classes.split(/\s+/))),u.tooltip&&(C=u.tooltip)),d+='"+M+"";f.find(".datepicker-switch").text(p+"-"+m),f.find("td").html(d)},fill:function(){var i,a,o=new Date(this.viewDate),s=o.getUTCFullYear(),c=o.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,C=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=f[this.o.language].today||f.en.today||"",m=f[this.o.language].clear||f.en.clear||"",v=f[this.o.language].titleFormat||f.en.titleFormat,g=r(),M=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&g>=this.o.startDate&&g<=this.o.endDate&&!this.weekOfDateIsDisabled(g);if(!isNaN(s)&&!isNaN(c)){this.picker.find(".datepicker-days .datepicker-switch").text(p.formatDate(o,v,this.o.language)),this.picker.find("tfoot .today").text(h).css("display",M?"table-cell":"none"),this.picker.find("tfoot .clear").text(m).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var z=n(s,c,0),L=z.getUTCDate();z.setUTCDate(L-(z.getUTCDay()-this.o.weekStart+7)%7);var y=new Date(z);z.getUTCFullYear()<100&&y.setUTCFullYear(z.getUTCFullYear()),y.setUTCDate(y.getUTCDate()+42),y=y.valueOf();for(var H,V,b=[];z.valueOf()"),this.o.calendarWeeks)){var w=new Date(+z+(this.o.weekStart-H-7)%7*864e5),S=new Date(Number(w)+(11-w.getUTCDay())%7*864e5),_=new Date(Number(_=n(S.getUTCFullYear(),0,1))+(11-_.getUTCDay())%7*864e5),D=(S-_)/864e5/7+1;b.push(''+D+"")}(V=this.getClassNames(z)).push("day");var x=z.getUTCDate();this.o.beforeShowDay!==e.noop&&((a=this.o.beforeShowDay(this._utc_to_local(z)))===t?a={}:"boolean"==typeof a?a={enabled:a}:"string"==typeof a&&(a={classes:a}),!1===a.enabled&&V.push("disabled"),a.classes&&(V=V.concat(a.classes.split(/\s+/))),a.tooltip&&(i=a.tooltip),a.content&&(x=a.content)),V=e.isFunction(e.uniqueSort)?e.uniqueSort(V):e.unique(V),b.push(''+x+""),i=null,H===this.o.weekEnd&&b.push(""),z.setUTCDate(z.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(b.join(""));var k=f[this.o.language].monthsTitle||f.en.monthsTitle||"Months",T=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?k:s).end().find("tbody span").removeClass("active");if(e.each(this.dates,(function(e,t){t.getUTCFullYear()===s&&T.eq(t.getUTCMonth()).addClass("active")})),(su)&&T.addClass("disabled"),s===l&&T.slice(0,C).addClass("disabled"),s===u&&T.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each(T,(function(n,r){var i=new Date(s,n,1),a=E.o.beforeShowMonth(i);a===t?a={}:"boolean"==typeof a?a={enabled:a}:"string"==typeof a&&(a={classes:a}),!1!==a.enabled||e(r).hasClass("disabled")||e(r).addClass("disabled"),a.classes&&e(r).addClass(a.classes),a.tooltip&&e(r).prop("title",a.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,s,l,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,l,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,l,u,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),i=n.getUTCMonth(),a=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:e=Math.floor(r/l)*l<=a,t=Math.floor(r/l)*l+l>s;break;case 0:e=r<=a&&i<=o,t=r>=s&&i>=c}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var i,a,o;t.preventDefault(),t.stopPropagation(),(i=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),i.hasClass("today")&&!i.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),i.hasClass("clear")&&this.clearDates(),i.hasClass("disabled")||(i.hasClass("month")||i.hasClass("year")||i.hasClass("decade")||i.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(o=i.parent().find("span").index(i),a=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o)):(o=0,a=Number(i.text()),this.viewDate.setUTCFullYear(a)),this._trigger(p.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(a,o,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*p.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(p.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var n,r,i=new Date(e.valueOf()),a=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)r=-1===t?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==n},n=o+t,i.setUTCMonth(n),n=(n+12)%12;else{for(var c=0;c0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,i=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(i,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(i,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(i,t,"moveDay"):this.weekOfDateIsDisabled(i)||(n=this.moveAvailableDate(i,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(i,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(i,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;i=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(i),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+p.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,(function(e){return e.jquery?e[0]:e})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,u.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,(function(t){return e.data(t,"datepicker")})),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,(function(e){return e.getUTCDate()})),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,(function(e){return e.valueOf()}));e.each(this.pickers,(function(e,n){n.setRange(t)}))},clearDates:function(){e.each(this.pickers,(function(e,t){t.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=e.data(n.target,"datepicker");if(r!==t){var i=r.getUTCDate(),a=this.keepEmptyValues,o=e.inArray(n.target,this.inputs),s=o-1,c=o+1,l=this.inputs.length;if(-1!==o){if(e.each(this.pickers,(function(e,t){t.getUTCDate()||t!==r&&a||t.setUTCDate(i)})),i=0&&ithis.dates[c])for(;cthis.dates[c];)this.pickers[c++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,(function(e){e.destroy()})),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:a("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var C=e.fn.datepicker,u=function(n){var r,i=Array.apply(null,arguments);if(i.shift(),this.each((function(){var t=e(this),a=t.data("datepicker"),s="object"==typeof n&&n;if(!a){var C=function(t,n){function r(e,t){return t.toLowerCase()}var i=e(t).data(),a={},o=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var s in n=new RegExp("^"+n.toLowerCase()),i)n.test(s)&&(a[s.replace(o,r)]=i[s]);return a}(this,"date"),u=o(e.extend({},d,C,s).language),h=e.extend({},d,u,C,s);t.hasClass("input-daterange")||h.inputs?(e.extend(h,{inputs:h.inputs||t.find("input").toArray()}),a=new l(this,h)):a=new c(this,h),t.data("datepicker",a)}"string"==typeof n&&"function"==typeof a[n]&&(r=a[n].apply(a,i))})),r===t||r instanceof c||r instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};e.fn.datepicker=u;var d=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},h=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=c;var f=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},p={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,i,a,o){function s(){var e=this.slice(0,l[d].length),t=l[d].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!n)return t;if(n instanceof Date)return n;if("string"==typeof i&&(i=p.parseFormat(i)),i.toValue)return i.toValue(n,i,a);var l,C,u,d,h,m={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},v={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in v&&(n=v[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(l=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,d=0;d(new Date).getFullYear()+t&&(e-=100),e}(t,o):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};y.yy=y.yyyy,y.M=y.MM=y.mm=y.m,y.dd=y.d,n=r();var H=i.parts.slice();if(l.length!==H.length&&(H=e(H).filter((function(t,n){return-1!==e.inArray(n,L)})).toArray()),l.length===H.length){var V,b,w;for(d=0,V=H.length;d'+d.templates.leftArrow+''+d.templates.rightArrow+"",contTemplate:'',footTemplate:''};p.template='
      '+p.headTemplate+""+p.footTemplate+'
      '+p.headTemplate+p.contTemplate+p.footTemplate+'
      '+p.headTemplate+p.contTemplate+p.footTemplate+'
      '+p.headTemplate+p.contTemplate+p.footTemplate+'
      '+p.headTemplate+p.contTemplate+p.footTemplate+"
      ",e.fn.datepicker.DPGlobal=p,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=C,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),u.call(n,"show"))})),e((function(){u.call(e('[data-provide="datepicker-inline"]'))}))})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(i(e,t))return;return 1}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){for(var n=[],r=e.length,i=0;i>>0,r=0;r_e(e)?(a=e+1,t-_e(e)):(a=e,t),{year:a,dayOfYear:n}}function Ae(e,t,n){var r,i,a=Te(e.year(),t,n);return(a=Math.floor((e.dayOfYear()-a-1)/7)+1)<1?r=a+Oe(i=e.year()-1,t,n):a>Oe(e.year(),t,n)?(r=a-Oe(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Oe(e,t,n){var r=Te(e,t,n);return t=Te(e+1,t,n),(_e(e)-r+t)/7}function Re(e,t){return e.slice(t,7).concat(e.slice(0,t))}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),$("week",5),$("isoWeek",5),ue("w",ee),ue("ww",ee,Z),ue("W",ee),ue("WW",ee,Z),ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=U(e)})),A("d",0,"do","day"),A("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),A("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),A("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),$("day",11),$("weekday",11),$("isoWeekday",11),ue("d",ee),ue("e",ee),ue("E",ee),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,r){null!=(r=n._locale.weekdaysParse(e,r,n._strict))?t.d=r:d(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,r){t[r]=U(e)}));var Pe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),je=Ce,Fe=Ce,$e=Ce;function Ye(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],a=[],o=[],s=[],c=0;c<7;c++)r=u([2e3,1]).day(c),t=he(this.weekdaysMin(r,"")),n=he(this.weekdaysShort(r,"")),r=he(this.weekdays(r,"")),i.push(t),a.push(n),o.push(r),s.push(t),s.push(n),s.push(r);i.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function We(){return this.hours()%12||12}function Ue(e,t){A(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function qe(e,t){return t._meridiemParse}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,We),A("k",["kk",2],0,(function(){return this.hours()||24})),A("hmm",0,0,(function(){return""+We.apply(this)+D(this.minutes(),2)})),A("hmmss",0,0,(function(){return""+We.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),A("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),A("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Ue("a",!0),Ue("A",!1),N("hour","h"),$("hour",13),ue("a",qe),ue("A",qe),ue("H",ee),ue("h",ee),ue("k",ee),ue("HH",ee,Z),ue("hh",ee,Z),ue("kk",ee,Z),ue("hmm",te),ue("hmmss",ne),ue("Hmm",te),ue("Hmmss",ne),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,n){e=U(e),t[3]=24===e?0:e})),ve(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ve(["h","hh"],(function(e,t,n){t[3]=U(e),d(n).bigHour=!0})),ve("hmm",(function(e,t,n){var r=e.length-2;t[3]=U(e.substr(0,r)),t[4]=U(e.substr(r)),d(n).bigHour=!0})),ve("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=U(e.substr(0,r)),t[4]=U(e.substr(r,2)),t[5]=U(e.substr(i)),d(n).bigHour=!0})),ve("Hmm",(function(e,t,n){var r=e.length-2;t[3]=U(e.substr(0,r)),t[4]=U(e.substr(r))})),ve("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=U(e.substr(0,r)),t[4]=U(e.substr(r,2)),t[5]=U(e.substr(i))})),Ce=q("Hours",!0);var Be,Ge={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ze,monthsShort:Le,week:{dow:0,doy:6},weekdays:Pe,weekdaysMin:Ie,weekdaysShort:Ne,meridiemParse:/[ap]\.?m?\.?/i},Xe={},Ze={};function Ke(e){return e&&e.toLowerCase().replace("_","-")}function Je(e){var t;if(void 0===Xe[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=Be._abbr,require("./locale/"+e),Qe(t)}catch(t){Xe[e]=null}return Xe[e]}function Qe(e,t){return e&&((t=o(t)?tt(e):et(e,t))?Be=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Be._abbr}function et(e,t){if(null===t)return delete Xe[e],null;var n,r=Ge;if(t.abbr=e,null!=Xe[e])V("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Xe[e]._config;else if(null!=t.parentLocale)if(null!=Xe[t.parentLocale])r=Xe[t.parentLocale]._config;else{if(null==(n=Je(t.parentLocale)))return Ze[t.parentLocale]||(Ze[t.parentLocale]=[]),Ze[t.parentLocale].push({name:e,config:t}),null;r=n._config}return Xe[e]=new S(w(r,t)),Ze[e]&&Ze[e].forEach((function(e){et(e.name,e.config)})),Qe(e),Xe[e]}function tt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return Be;if(!n(e)){if(t=Je(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r=t-1)break;t--}a++}return Be}(e)}function nt(e){var t=e._a;return t&&-2===d(e).overflow&&(t=t[1]<0||11Me(t[0],t[1])?2:t[3]<0||24Oe(o,l,C)?d(i)._overflowWeeks=!0:null!=u?d(i)._overflowWeekday=!0:(h=Ee(o,s,c,l,C),i._a[0]=h.year,i._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(a=ht(e._a[0],r[0]),(e._dayOfYear>_e(a)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),u=ke(a,0,e._dayOfYear),e._a[1]=u.getUTCMonth(),e._a[2]=u.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=f[n]=r[n];for(;n<7;n++)e._a[n]=f[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?ke:xe).apply(null,f),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(d(e).weekdayMismatch=!0)}}function pt(e){if(e._f===t.ISO_8601)ut(e);else if(e._f===t.RFC_2822)dt(e);else{e._a=[],d(e).empty=!0;for(var n,r,a,o,s,c=""+e._i,l=c.length,C=0,u=R(e._f,e._locale).match(x)||[],h=u.length,f=0;fe.valueOf():e.valueOf()"}),X.toJSON=function(){return this.isValid()?this.toISOString():null},X.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},X.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},X.eraName=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},X.isLocal=function(){return!!this.isValid()&&!this._isUTC},X.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},X.isUtc=Dt,X.isUTC=Dt,X.zoneAbbr=function(){return this._isUTC?"UTC":""},X.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},X.dates=y("dates accessor is deprecated. Use date instead.",ie),X.months=y("months accessor is deprecated. Use month instead",we),X.years=y("years accessor is deprecated. Use year instead",De),X.zone=y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()})),X.isDSTShifted=y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return g(t,this),(t=mt(t))._a?(e=(t._isUTC?u:gt)(t._a),this._isDSTShifted=this.isValid()&&00;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),o--;var s,c,l;if(void 0===r.startDate&&void 0===r.endDate&&t(this.element).is(":text")){var C=t(this.element).val(),u=C.split(this.locale.separator);s=c=null,2==u.length?(s=e(u[0],this.locale.format),c=e(u[1],this.locale.format)):this.singleDatePicker&&""!==C&&(s=e(C,this.locale.format),c=e(C,this.locale.format)),null!==s&&null!==c&&(this.setStartDate(s),this.setEndDate(c))}if("object"==typeof r.ranges){for(l in r.ranges){s="string"==typeof r.ranges[l][0]?e(r.ranges[l][0],this.locale.format):e(r.ranges[l][0]),c="string"==typeof r.ranges[l][1]?e(r.ranges[l][1],this.locale.format):e(r.ranges[l][1]),this.minDate&&s.isBefore(this.minDate)&&(s=this.minDate.clone());var d,h=this.maxDate;if(this.maxSpan&&h&&s.clone().add(this.maxSpan).isAfter(h)&&(h=s.clone().add(this.maxSpan)),h&&c.isAfter(h)&&(c=h.clone()),!(this.minDate&&c.isBefore(this.minDate,this.timepicker?"minute":"day")||h&&s.isAfter(h,this.timepicker?"minute":"day")))(d=document.createElement("textarea")).innerHTML=l,a=d.value,this.ranges[a]=[s,c]}var f="
        ";for(l in this.ranges)f+='
      • '+l+"
      • ";this.showCustomRangeLabel&&(f+='
      • '+this.locale.customRangeLabel+"
      • "),f+="
      ",this.container.find(".ranges").prepend(f)}"function"==typeof i&&(this.callback=i),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof r.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===r.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",t.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",t.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",t.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",t.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",t.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",t.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",t.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",t.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":t.proxy(this.show,this),"focus.daterangepicker":t.proxy(this.show,this),"keyup.daterangepicker":t.proxy(this.elementChanged,this),"keydown.daterangepicker":t.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",t.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",t.proxy(this.toggle,this))),this.updateElement()};return n.prototype={constructor:n,setStartDate:function(t){"string"==typeof t&&(this.startDate=e(t,this.locale.format)),"object"==typeof t&&(this.startDate=e(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=e(t,this.locale.format)),"object"==typeof t&&(this.endDate=e(t)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){var e,t,n,r;this.timePicker&&(this.endDate?(e=parseInt(this.container.find(".left .hourselect").val(),10),t=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,this.timePicker24Hour||("PM"===(r=this.container.find(".left .ampmselect").val())&&e<12&&(e+=12),"AM"===r&&12===e&&(e=0))):(e=parseInt(this.container.find(".right .hourselect").val(),10),t=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,this.timePicker24Hour||("PM"===(r=this.container.find(".right .ampmselect").val())&&e<12&&(e+=12),"AM"===r&&12===e&&(e=0))),this.leftCalendar.month.hour(e).minute(t).second(n),this.rightCalendar.month.hour(e).minute(t).second(n));this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(n){var r,i=(r="left"==n?this.leftCalendar:this.rightCalendar).month.month(),a=r.month.year(),o=r.month.hour(),s=r.month.minute(),c=r.month.second(),l=e([a,i]).daysInMonth(),C=e([a,i,1]),u=e([a,i,l]),d=e(C).subtract(1,"month").month(),h=e(C).subtract(1,"month").year(),f=e([h,d]).daysInMonth(),p=C.day();(r=[]).firstDay=C,r.lastDay=u;for(var m=0;m<6;m++)r[m]=[];var v=f-p+this.locale.firstDay+1;v>f&&(v-=7),p==this.locale.firstDay&&(v=f-6);for(var g=e([h,d,v,12,s,c]),M=(m=0,0),z=0;m<42;m++,M++,g=e(g).add(24,"hour"))m>0&&M%7==0&&(M=0,z++),r[z][M]=g.clone().hour(o).minute(s).second(c),g.hour(12),this.minDate&&r[z][M].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&r[z][M].isBefore(this.minDate)&&"left"==n&&(r[z][M]=this.minDate.clone()),this.maxDate&&r[z][M].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&r[z][M].isAfter(this.maxDate)&&"right"==n&&(r[z][M]=this.maxDate.clone());"left"==n?this.leftCalendar.calendar=r:this.rightCalendar.calendar=r;var L="left"==n?this.minDate:this.startDate,y=this.maxDate,H=("left"==n?this.startDate:this.endDate,this.locale.direction,'');H+="",H+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(H+=""),L&&!L.isBefore(r.firstDay)||this.linkedCalendars&&"left"!=n?H+="":H+='';var V=this.locale.monthNames[r[1][1].month()]+r[1][1].format(" YYYY");if(this.showDropdowns){for(var b=r[1][1].month(),w=r[1][1].year(),S=y&&y.year()||this.maxYear,_=L&&L.year()||this.minYear,D=w==_,x=w==S,k='";for(var E='")}if(H+='",y&&!y.isAfter(r.lastDay)||this.linkedCalendars&&"right"!=n&&!this.singleDatePicker?H+="":H+='',H+="",H+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(H+='"),t.each(this.locale.daysOfWeek,(function(e,t){H+=""})),H+="",H+="",H+="",null==this.endDate&&this.maxSpan){var O=this.startDate.clone().add(this.maxSpan).endOf("day");y&&!O.isBefore(y)||(y=O)}for(z=0;z<6;z++){for(H+="",this.showWeekNumbers?H+='":this.showISOWeekNumbers&&(H+='"),M=0;M<7;M++){var R=[];r[z][M].isSame(new Date,"day")&&R.push("today"),r[z][M].isoWeekday()>5&&R.push("weekend"),r[z][M].month()!=r[1][1].month()&&R.push("off","ends"),this.minDate&&r[z][M].isBefore(this.minDate,"day")&&R.push("off","disabled"),y&&r[z][M].isAfter(y,"day")&&R.push("off","disabled"),this.isInvalidDate(r[z][M])&&R.push("off","disabled"),r[z][M].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&R.push("active","start-date"),null!=this.endDate&&r[z][M].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&R.push("active","end-date"),null!=this.endDate&&r[z][M]>this.startDate&&r[z][M]'+r[z][M].date()+""}H+=""}H+="",H+="
      '+V+"
      '+this.locale.weekLabel+""+t+"
      '+r[z][0].week()+"'+r[z][0].isoWeek()+"
      ",this.container.find(".drp-calendar."+n+" .calendar-table").html(H)},renderTimePicker:function(e){if("right"!=e||this.endDate){var t,n,r,i=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(i=this.startDate.clone().add(this.maxSpan)),"left"==e)n=this.startDate.clone(),r=this.minDate;else if("right"==e){n=this.endDate.clone(),r=this.startDate;var a=this.container.find(".drp-calendar.right .calendar-time");if(""!=a.html()&&(n.hour(isNaN(n.hour())?a.find(".hourselect option:selected").val():n.hour()),n.minute(isNaN(n.minute())?a.find(".minuteselect option:selected").val():n.minute()),n.second(isNaN(n.second())?a.find(".secondselect option:selected").val():n.second()),!this.timePicker24Hour)){var o=a.find(".ampmselect option:selected").val();"PM"===o&&n.hour()<12&&n.hour(n.hour()+12),"AM"===o&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),i&&n.isAfter(i)&&(n=i.clone())}t=' ",t+=': ",this.timePickerSeconds){for(t+=': "}if(!this.timePicker24Hour){t+='"}this.container.find(".drp-calendar."+e+" .calendar-time").html(t)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var e,n={top:0,left:0},r=this.drops,i=t(window).width();switch(this.parentEl.is("body")||(n={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},i=this.parentEl[0].clientWidth+this.parentEl.offset().left),r){case"auto":(e=this.element.offset().top+this.element.outerHeight()-n.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(e=this.element.offset().top-this.container.outerHeight()-n.top,r="up");break;case"up":e=this.element.offset().top-this.container.outerHeight()-n.top;break;default:e=this.element.offset().top+this.element.outerHeight()-n.top}this.container.css({top:0,left:0,right:"auto"});var a=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==r),"left"==this.opens){var o=i-this.element.offset().left-this.element.outerWidth();a+o>t(window).width()?this.container.css({top:e,right:"auto",left:9}):this.container.css({top:e,right:o,left:"auto"})}else if("center"==this.opens)(s=this.element.offset().left-n.left+this.element.outerWidth()/2-a/2)<0?this.container.css({top:e,right:"auto",left:9}):s+a>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:s,right:"auto"});else{var s;(s=this.element.offset().left-n.left)+a>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:s,right:"auto"})}},show:function(e){this.isShowing||(this._outsideClickProxy=t.proxy((function(e){this.outsideClick(e)}),this),t(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),t(window).on("resize.daterangepicker",t.proxy((function(e){this.move(e)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(e){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),t(document).off(".daterangepicker"),t(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(e){this.isShowing?this.hide():this.show()},outsideClick:function(e){var n=t(e.target);"focusin"==e.type||n.closest(this.element).length||n.closest(this.container).length||n.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(e){var t=e.target.getAttribute("data-range-key");if(this.chosenLabel=t,t==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[t];this.startDate=n[0],this.endDate=n[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(e){t(e.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(e){t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(e){if(t(e.target).hasClass("available")){var n=t(e.target).attr("data-title"),r=n.substr(1,1),i=n.substr(3,1),a=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[r][i]:this.rightCalendar.calendar[r][i],o=this.leftCalendar,s=this.rightCalendar,c=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(e,n){if(!t(n).hasClass("week")){var r=t(n).attr("data-title"),i=r.substr(1,1),l=r.substr(3,1),C=t(n).parents(".drp-calendar").hasClass("left")?o.calendar[i][l]:s.calendar[i][l];C.isAfter(c)&&C.isBefore(a)||C.isSame(a,"day")?t(n).addClass("in-range"):t(n).removeClass("in-range")}}))}},clickDate:function(e){if(t(e.target).hasClass("available")){var n=t(e.target).attr("data-title"),r=n.substr(1,1),i=n.substr(3,1),a=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[r][i]:this.rightCalendar.calendar[r][i];if(this.endDate||a.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);this.timePicker24Hour||("PM"===(l=this.container.find(".left .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0));var s=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var c=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;a=a.clone().hour(o).minute(s).second(c)}this.endDate=null,this.setStartDate(a.clone())}else if(!this.endDate&&a.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{var l;if(this.timePicker)o=parseInt(this.container.find(".right .hourselect").val(),10),this.timePicker24Hour||("PM"===(l=this.container.find(".right .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0)),s=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(s)&&(s=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),c=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,a=a.clone().hour(o).minute(s).second(c);this.setEndDate(a.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),e.stopPropagation()}},calculateChosenLabel:function(){var e=!0,t=0;for(var n in this.ranges){if(this.timePicker){var r=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(r)==this.ranges[n][0].format(r)&&this.endDate.format(r)==this.ranges[n][1].format(r)){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}t++}e&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(e){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(e){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(e){var n=t(e.target).closest(".drp-calendar").hasClass("left"),r=n?"left":"right",i=this.container.find(".drp-calendar."+r),a=parseInt(i.find(".monthselect").val(),10),o=i.find(".yearselect").val();n||(othis.maxDate.year()||o==this.maxDate.year()&&a>this.maxDate.month())&&(a=this.maxDate.month(),o=this.maxDate.year()),n?(this.leftCalendar.month.month(a).year(o),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(a).year(o),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(e){var n=t(e.target).closest(".drp-calendar"),r=n.hasClass("left"),i=parseInt(n.find(".hourselect").val(),10),a=parseInt(n.find(".minuteselect").val(),10);isNaN(a)&&(a=parseInt(n.find(".minuteselect option:last").val(),10));var o=this.timePickerSeconds?parseInt(n.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var s=n.find(".ampmselect").val();"PM"===s&&i<12&&(i+=12),"AM"===s&&12===i&&(i=0)}if(r){var c=this.startDate.clone();c.hour(i),c.minute(a),c.second(o),this.setStartDate(c),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==c.format("YYYY-MM-DD")&&this.endDate.isBefore(c)&&this.setEndDate(c.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(i),l.minute(a),l.second(o),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),n=null,r=null;2===t.length&&(n=e(t[0],this.locale.format),r=e(t[1],this.locale.format)),(this.singleDatePicker||null===n||null===r)&&(r=n=e(this.element.val(),this.locale.format)),n.isValid()&&r.isValid()&&(this.setStartDate(n),this.setEndDate(r),this.updateView())}},keydown:function(e){9!==e.keyCode&&13!==e.keyCode||this.hide(),27===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var e=this.startDate.format(this.locale.format);this.singleDatePicker||(e+=this.locale.separator+this.endDate.format(this.locale.format)),e!==this.element.val()&&this.element.val(e).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},t.fn.daterangepicker=function(e,r){var i=t.extend(!0,{},t.fn.daterangepicker.defaultOptions,e);return this.each((function(){var e=t(this);e.data("daterangepicker")&&e.data("daterangepicker").remove(),e.data("daterangepicker",new n(e,i,r))})),this},n})),function(e){"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t,window,document)})):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}((function(e,t,n,r){function i(t){var n,r,a={};e.each(t,(function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),a[r]=e,"o"===n[1]&&i(t[e]))})),t._hungarianMap=a}function a(t,n,o){var s;t._hungarianMap||i(t),e.each(n,(function(i){(s=t._hungarianMap[i])===r||!o&&n[s]!==r||("o"===s.charAt(0)?(n[s]||(n[s]={}),e.extend(!0,n[s],n[i]),a(t[s],n[s],o)):n[s]=n[i])}))}function o(e){var t=qe.defaults.oLanguage,n=t.sDecimal;if(n&&je(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&ke(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&ke(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&je(e)}}function s(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
      ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
      ").css({width:"100%",height:10}))).appendTo("body"),a=i.children(),o=a.children();r.barWidth=a[0].offsetWidth-a[0].clientWidth,r.bScrollOversize=100===o[0].offsetWidth&&100!==a[0].clientWidth,r.bScrollbarLeft=1!==Math.round(o.offset().left),r.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}e.extend(n.oBrowser,qe.__browser),n.oScroll.iBarWidth=qe.__browser.barWidth}function C(e,t,n,i,a,o){var s,c=!1;for(n!==r&&(s=n,c=!0);i!==a;)e.hasOwnProperty(i)&&(s=c?t(s,e[i],i,e):e[i],c=!0,i+=o);return s}function u(t,r){var i=qe.defaults.column,a=t.aoColumns.length;i=e.extend({},qe.models.oColumn,i,{nTh:r||n.createElement("th"),sTitle:i.sTitle?i.sTitle:r?r.innerHTML:"",aDataSort:i.aDataSort?i.aDataSort:[a],mData:i.mData?i.mData:a,idx:a}),t.aoColumns.push(i),(i=t.aoPreSearchCols)[a]=e.extend({},qe.models.oSearch,i[a]),d(t,a,e(r).data())}function d(t,n,i){n=t.aoColumns[n];var o=t.oClasses,s=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var l=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(n.sWidthOrig=l[1])}i!==r&&null!==i&&(c(i),a(qe.defaults.column,i),i.mDataProp!==r&&!i.mData&&(i.mData=i.mDataProp),i.sType&&(n._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),i.sClass&&s.addClass(i.sClass),e.extend(n,i),ke(n,i,"sWidth","sWidthOrig"),i.iDataSort!==r&&(n.aDataSort=[i.iDataSort]),ke(n,i,"aDataSort"));var C=n.mData,u=b(C),d=n.mRender?b(n.mRender):null;i=function(e){return"string"==typeof e&&-1!==e.indexOf("@")},n._bAttrSrc=e.isPlainObject(C)&&(i(C.sort)||i(C.type)||i(C.filter)),n._setter=null,n.fnGetData=function(e,t,n){var i=u(e,t,r,n);return d&&t?d(i,t,e,n):i},n.fnSetData=function(e,t,n){return w(C)(e,t,n)},"number"!=typeof C&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,s.addClass(o.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),i=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||i)?t&&!i?(n.sSortingClass=o.sSortableAsc,n.sSortingClassJUI=o.sSortJUIAscAllowed):!t&&i?(n.sSortingClass=o.sSortableDesc,n.sSortingClassJUI=o.sSortJUIDescAllowed):(n.sSortingClass=o.sSortable,n.sSortingClassJUI=o.sSortJUI):(n.sSortingClass=o.sSortableNone,n.sSortingClassJUI="")}function h(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;pe(e);for(var n=0,r=t.length;nf[s])a(h.length+f[s],d);else if("string"==typeof f[s])for(l=0,C=h.length;lt&&e[a]--;-1!=i&&n===r&&e.splice(i,1)}function x(e,t,n,i){var a,o=e.aoData[t],s=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=y(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==o.src)){var c=o.anCells;if(c)if(i!==r)s(c[i],i);else for(n=0,a=c.length;n").appendTo(s)),n=0,r=u.length;ntr").attr("role","row"),e(s).find(">tr>th, >tr>td").addClass(C.sHeaderTH),e(c).find(">tr>th, >tr>td").addClass(C.sFooterTH),null!==c)for(n=0,r=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:c,t.iInitDisplayStart=-1),c=t._iDisplayStart;var u=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,ue(t,!1);else if(l){if(!t.bDestroying&&!$(t))return}else t.iDraw++;if(0!==C.length)for(s=l?t.aoData.length:u,l=l?0:c;l",{class:o?a[0]:""}).append(e("",{valign:"top",colSpan:m(t),class:t.oClasses.sRowEmpty}).html(i))[0];Oe(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],S(t),c,u,C]),Oe(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],S(t),c,u,C]),(a=e(t.nTBody)).children().detach(),a.append(e(n)),Oe(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function P(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&Le(e),r?B(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,R(e),e._drawHold=!1}function N(t){var n=t.oClasses,r=e(t.nTable),i=(r=e("
      ").insertBefore(r),t.oFeatures),a=e("
      ",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=a[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var o,s,c,l,C,u,d=t.sDom.split(""),h=0;h")[0],"'"==(l=d[h+1])||'"'==l){for(C="",u=2;d[h+u]!=l;)C+=d[h+u],u++;"H"==C?C=n.sJUIHeader:"F"==C&&(C=n.sJUIFooter),-1!=C.indexOf(".")?(l=C.split("."),c.id=l[0].substr(1,l[0].length-1),c.className=l[1]):"#"==C.charAt(0)?c.id=C.substr(1,C.length-1):c.className=C,h+=u}a.append(c),a=e(c)}else if(">"==s)a=a.parent();else if("l"==s&&i.bPaginate&&i.bLengthChange)o=se(t);else if("f"==s&&i.bFilter)o=q(t);else if("r"==s&&i.bProcessing)o=Ce(t);else if("t"==s)o=de(t);else if("i"==s&&i.bInfo)o=te(t);else if("p"==s&&i.bPaginate)o=ce(t);else if(0!==qe.ext.feature.length)for(u=0,l=(c=qe.ext.feature).length;u',l=(l=a.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",c):l+c,C=(r=e("
      ",{id:s.f?null:i+"_filter",class:r.sFilter}).append(e("
      ").addClass(n.sLength);return t.aanFeatures.l||(l[0].id=r+"_length"),l.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),e("select",l).val(t._iDisplayLength).on("change.DT",(function(){oe(t,e(this).val()),R(t)})),e(t.nTable).on("length.dt.DT",(function(n,r,i){t===r&&e("select",l).val(i)})),l[0]}function ce(t){var n=t.sPaginationType,r=qe.ext.pager[n],i="function"==typeof r,a=function(e){R(e)},o=(n=e("
      ").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return i||r.fnInit(t,n,a),o.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(i){var t,n=e._iDisplayStart,s=e._iDisplayLength,c=e.fnRecordsDisplay(),l=(n=(l=-1===s)?0:Math.ceil(n/s),s=l?1:Math.ceil(c/s),c=r(n,s),0);for(t=o.p.length;la&&(r=0):"first"==t?r=0:"previous"==t?0>(r=0<=i?r-i:0)&&(r=0):"next"==t?r+i",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function ue(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Oe(t,null,"processing",[t,n])}function de(t){(u=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,i=n.sY,a=t.oClasses,o=u.children("caption"),s=o.length?o[0]._captionSide:null,c=e(u[0].cloneNode(!1)),l=e(u[0].cloneNode(!1)),C=u.children("tfoot");C.length||(C=null),c=e("
      ",{class:a.sScrollWrapper}).append(e("
      ",{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?Me(r):null:"100%"}).append(e("
      ",{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===s?o:null).append(u.children("thead"))))).append(e("
      ",{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:r?Me(r):null}).append(u)),C&&c.append(e("
      ",{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?Me(r):null:"100%"}).append(e("
      ",{class:a.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===s?o:null).append(u.children("tfoot")))));var u,d=(u=c.children())[0],h=(a=u[1],C?u[2]:null);return r&&e(a).on("scroll.DT",(function(){var e=this.scrollLeft;d.scrollLeft=e,C&&(h.scrollLeft=e)})),e(a).css(i&&n.bCollapse?"max-height":"height",i),t.nScrollHead=d,t.nScrollBody=a,t.nScrollFoot=h,t.aoDrawCallback.push({fn:he,sName:"scrolling"}),c[0]}function he(t){var n,i,a,o,s,c=(u=t.oScroll).sX,l=u.sXInner,C=u.sY,u=u.iBarWidth,d=e(t.nScrollHead),p=d[0].style,m=(g=d.children("div"))[0].style,v=g.children("table"),g=t.nScrollBody,M=e(g),z=g.style,L=e(t.nScrollFoot).children("div"),y=L.children("table"),H=e(t.nTHead),V=e(t.nTable),b=V[0],w=b.style,S=t.nTFoot?e(t.nTFoot):null,_=t.oBrowser,D=_.bScrollOversize,x=it(t.aoColumns,"nTh"),k=[],T=[],E=[],A=[],O=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};i=g.scrollHeight>g.clientHeight,t.scrollBarVis!==i&&t.scrollBarVis!==r?(t.scrollBarVis=i,h(t)):(t.scrollBarVis=i,V.children("thead, tfoot").remove(),S&&(a=S.clone().prependTo(V),n=S.find("tr"),a=a.find("tr")),o=H.clone().prependTo(V),H=H.find("tr"),i=o.find("tr"),o.find("th, td").removeAttr("tabindex"),c||(z.width="100%",d[0].style.width="100%"),e.each(j(t,o),(function(e,n){s=f(t,e),n.style.width=t.aoColumns[s].sWidth})),S&&fe((function(e){e.style.width=""}),a),d=V.outerWidth(),""===c?(w.width="100%",D&&(V.find("tbody").height()>g.offsetHeight||"scroll"==M.css("overflow-y"))&&(w.width=Me(V.outerWidth()-u)),d=V.outerWidth()):""!==l&&(w.width=Me(l),d=V.outerWidth()),fe(O,i),fe((function(t){E.push(t.innerHTML),k.push(Me(e(t).css("width")))}),i),fe((function(t,n){-1!==e.inArray(t,x)&&(t.style.width=k[n])}),H),e(i).height(0),S&&(fe(O,a),fe((function(t){A.push(t.innerHTML),T.push(Me(e(t).css("width")))}),a),fe((function(e,t){e.style.width=T[t]}),n),e(a).height(0)),fe((function(e,t){e.innerHTML='
      '+E[t]+"
      ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=k[t]}),i),S&&fe((function(e,t){e.innerHTML='
      '+A[t]+"
      ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=T[t]}),a),V.outerWidth()g.offsetHeight||"scroll"==M.css("overflow-y")?d+u:d,D&&(g.scrollHeight>g.offsetHeight||"scroll"==M.css("overflow-y"))&&(w.width=Me(n-u)),(""===c||""!==l)&&xe(t,1,"Possible column misalignment",6)):n="100%",z.width=Me(n),p.width=Me(n),S&&(t.nScrollFoot.style.width=Me(n)),!C&&D&&(z.height=Me(b.offsetHeight+u)),c=V.outerWidth(),v[0].style.width=Me(c),m.width=Me(c),l=V.height()>g.clientHeight||"scroll"==M.css("overflow-y"),m[C="padding"+(_.bScrollbarLeft?"Left":"Right")]=l?u+"px":"0px",S&&(y[0].style.width=Me(c),L[0].style.width=Me(c),L[0].style[C]=l?u+"px":"0px"),V.children("colgroup").insertBefore(V.children("thead")),M.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(g.scrollTop=0))}function fe(e,t,n){for(var r,i,a=0,o=0,s=t.length;o").appendTo(C.find("tbody"));for(C.find("thead, tfoot").remove(),C.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),C.find("tfoot th, tfoot td").css("width",""),d=j(n,C.find("thead")[0]),r=0;r").css({width:i.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r").css(c||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(C).appendTo(g),c&&l?C.width(l):c?(C.css("width","auto"),C.removeAttr("width"),C.width()").css("width",Me(t)).appendTo(r||n.body),a=i[0].offsetWidth;return i.remove(),a}function ve(t,n){var r=ge(t,n);if(0>r)return null;var i=t.aoData[r];return i.nTr?i.anCells[n]:e("").html(y(t,r,n,"display"))[0]}function ge(e,t){for(var n,r=-1,i=-1,a=0,o=e.aoData.length;ar&&(r=n.length,i=a);return i}function Me(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ze(t){var n,i,a,o,s,c,l=[],C=t.aoColumns;n=t.aaSortingFixed,i=e.isPlainObject(n);var u=[];for(a=function(t){t.length&&!e.isArray(t[0])?u.push(t):e.merge(u,t)},e.isArray(n)&&a(n),i&&n.pre&&a(n.pre),a(t.aaSorting),i&&n.post&&a(n.post),t=0;tr?1:0))return"asc"===c.dir?n:-n;return(n=a[e])<(r=a[t])?-1:n>r?1:0})):l.sort((function(e,t){var n,r,c,l,C=i.length,u=s[e]._aSortData,d=s[t]._aSortData;for(c=0;cr?1:0}))}e.bSorted=!0}function ye(e){for(var t,n,r=e.aoColumns,i=ze(e),a=(e=e.oLanguage.oAria,0),o=r.length;a/g,"");var c=n.nTh;c.removeAttribute("aria-sort"),n.bSortable&&(0s?s+1:3));for(s=0,n=o.length;ss?s+1:3))}t.aLastSort=o}function we(e,t){var n,r=e.aoColumns[t],i=qe.ext.order[r.sSortDataType];i&&(n=i.call(e.oInstance,e,t,p(e,t)));for(var a,o=qe.ext.type.order[r.sType+"-pre"],s=0,c=e.aoData.length;s=s.length?[0,n[1]]:n)}))),n.search!==r&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(a=0,o=n.columns.length;a=n&&(t=n-r),t-=t%r,(-1===r||0>t)&&(t=0),e._iDisplayStart=t}function Pe(t,n){var r=t.renderer,i=qe.ext.renderer[n];return e.isPlainObject(r)&&r[n]?i[r[n]]||i._:"string"==typeof r&&i[r]||i._}function Ne(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Ie(e,t){var n=[],r=(n=_t.numbers_length,Math.floor(n/2));return t<=n?n=ot(0,t):e<=r?((n=ot(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-r?n=ot(t-(n-2),t):((n=ot(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function je(t){e.each({num:function(e){return Dt(e,t)},"num-fmt":function(e){return Dt(e,t,Je)},"html-num":function(e){return Dt(e,t,Xe)},"html-num-fmt":function(e){return Dt(e,t,Xe,Je)}},(function(e,n){$e.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&($e.type.search[e+t]=$e.type.search.html)}))}function Fe(e){return function(){var t=[De(this[qe.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return qe.ext.internal[e].apply(this,t)}}var $e,Ye,We,Ue,qe=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new Ye(e?De(this[$e.iApiIndex]):this)},this.fnAddData=function(t,n){var i=this.api(!0),a=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?i.rows.add(t):i.row.add(t);return(n===r||n)&&i.draw(),a.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],i=n.oScroll;e===r||e?t.draw(!1):(""!==i.sX||""!==i.sY)&&he(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var i=this.api(!0),a=(e=i.rows(e)).settings()[0],o=a.aoData[e[0][0]];return e.remove(),t&&t.call(this,a,o),(n===r||n)&&i.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,i,a,o){a=this.api(!0),null===t||t===r?a.search(e,n,i,o):a.column(t).search(e,n,i,o),a.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var i=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==i||"th"==i?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===r||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return De(this[$e.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,i,a){var o=this.api(!0);return n===r||null===n?o.row(t).data(e):o.cell(t,n).data(e),(a===r||a)&&o.columns.adjust(),(i===r||i)&&o.draw(),0},this.fnVersionCheck=$e.fnVersionCheck;var n=this,i=t===r,C=this.length;for(var h in i&&(t={}),this.oApi=this.internal=$e.internal,qe.ext.internal)h&&(this[h]=Fe(h));return this.each((function(){var h,f={},p=1").appendTo(y)),S.nTHead=n[0],0===(n=y.children("tbody")).length&&(n=e("").appendTo(y)),S.nTBody=n[0],0===(n=y.children("tfoot")).length&&t.length>0&&(""!==S.oScroll.sX||""!==S.oScroll.sY)&&(n=e("").appendTo(y)),0===n.length||0===n.children().length?y.addClass(_.sNoFooter):n.length>0&&(S.nTFoot=n[0],I(S.aoFooter,S.nTFoot)),p.aaData)for(m=0;m/g,Ze=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Ke=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Je=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Qe=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Be[t]||(Be[t]=RegExp(dt(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Be[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Qe(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Je,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Qe(e)||(Qe(e)||"string"==typeof e)&&!!nt(e.replace(Xe,""),t,n)||null},it=function(e,t,n){var i=[],a=0,o=e.length;if(n!==r)for(;ae.length))for(var n=(t=e.slice().sort())[0],r=1,i=t.length;r")[0],ft=ht.textContent!==r,pt=/<.*?>/g,mt=qe.util.throttle,vt=[],gt=Array.prototype;Ye=function(t,n){if(!(this instanceof Ye))return new Ye(t,n);var r=[],i=function(t){(t=function(t){var n,r,i=qe.settings,a=e.map(i,(function(e){return e.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,a))?[i[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map((function(){return-1!==(n=e.inArray(this,a))?i[n]:null})).toArray():void 0):[]}(t))&&(r=r.concat(t))};if(e.isArray(t))for(var a=0,o=t.length;ae?new Ye(t[e],this[e]):null},filter:function(e){var t=[];if(gt.filter)t=gt.filter.call(this,e,this);else for(var n=0,r=this.length;n").addClass(n),e("td",r).addClass(n).html(t)[0].colSpan=m(a),o.push(r[0]))};s(t,n),i._details&&i._details.detach(),i._details=e(o),i._detailsShow&&i._details.insertAfter(i.nTr)}return this})),We(["row().child.show()","row().child().show()"],(function(){return bt(this,!0),this})),We(["row().child.hide()","row().child().hide()"],(function(){return bt(this,!1),this})),We(["row().child.remove()","row().child().remove()"],(function(){return Vt(this),this})),We("row().child.isShown()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}));var wt=/^([^:]+):(name|visIdx|visible)$/,St=function(e,t,n,r,i){n=[],r=0;for(var a=i.length;r=0?n:o.length+n];if("function"==typeof t){var i=Ht(r,a);return e.map(o,(function(e,n){return t(n,St(r,n,0,0,i),c[n])?n:null}))}var l="string"==typeof t?t.match(wt):"";if(l)switch(l[2]){case"visIdx":case"visible":if((n=parseInt(l[1],10))<0){var C=e.map(o,(function(e,t){return e.bVisible?t:null}));return[C[C.length+n]]}return[f(r,n)];case"name":return e.map(s,(function(e,t){return e===l[1]?t:null}));default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(c).filter(t).map((function(){return e.inArray(this,c)})).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]}),r,a)}),1);return i.selector.cols=t,i.selector.opts=n,i})),Ue("columns().header()","column().header()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTh}),1)})),Ue("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTf}),1)})),Ue("columns().data()","column().data()",(function(){return this.iterator("column-rows",St,1)})),Ue("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].mData}),1)})),Ue("columns().cache()","column().cache()",(function(e){return this.iterator("column-rows",(function(t,n,r,i,a){return at(t.aoData,a,"search"===e?"_aFilterData":"_aSortData",n)}),1)})),Ue("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(e,t,n,r,i){return at(e.aoData,i,"anCells",t)}),1)})),Ue("columns().visible()","column().visible()",(function(t,n){var i=this.iterator("column",(function(n,i){if(t===r)return n.aoColumns[i].bVisible;var a,o,s,c=n.aoColumns,l=c[i],C=n.aoData;if(t!==r&&l.bVisible!==t){if(t){var u=e.inArray(!0,it(c,"bVisible"),i+1);for(a=0,o=C.length;an;return!0},qe.isDataTable=qe.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof qe.Api||(e.each(qe.settings,(function(t,i){var a=i.nScrollHead?e("table",i.nScrollHead)[0]:null,o=i.nScrollFoot?e("table",i.nScrollFoot)[0]:null;i.nTable!==n&&a!==n&&o!==n||(r=!0)})),r)},qe.tables=qe.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(qe.settings,(function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable}));return n?new Ye(r):r},qe.camelToHungarian=a,We("$()",(function(t,n){var r=this.rows(n).nodes();return r=e(r),e([].concat(r.filter(t).toArray(),r.find(t).toArray()))})),e.each(["on","one","off"],(function(t,n){We(n+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),(function(e){return e.match(/\.dt\b/)?e:e+".dt"})).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this}))})),We("clear()",(function(){return this.iterator("table",(function(e){_(e)}))})),We("settings()",(function(){return new Ye(this.context,this.context)})),We("init()",(function(){var e=this.context;return e.length?e[0].oInit:null})),We("data()",(function(){return this.iterator("table",(function(e){return it(e.aoData,"_aData")})).flatten()})),We("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(r){var i,a=r.nTableWrapper.parentNode,o=r.oClasses,s=r.nTable,c=r.nTBody,l=r.nTHead,C=r.nTFoot,u=e(s),d=(c=e(c),e(r.nTableWrapper)),h=e.map(r.aoData,(function(e){return e.nTr}));r.bDestroying=!0,Oe(r,"aoDestroyCallback","destroy",[r]),n||new Ye(r).columns().visible(!0),d.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),s!=l.parentNode&&(u.children("thead").detach(),u.append(l)),C&&s!=C.parentNode&&(u.children("tfoot").detach(),u.append(C)),r.aaSorting=[],r.aaSortingFixed=[],be(r),e(h).removeClass(r.asStripeClasses.join(" ")),e("th, td",l).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),c.children().detach(),c.append(h),u[l=n?"remove":"detach"](),d[l](),!n&&a&&(a.insertBefore(s,r.nTableReinsertBefore),u.css("width",r.sDestroyWidth).removeClass(o.sTable),(i=r.asDestroyStripes.length)&&c.children().each((function(t){e(this).addClass(r.asDestroyStripes[t%i])}))),-1!==(a=e.inArray(r,qe.settings))&&qe.settings.splice(a,1)}))})),e.each(["column","row","cell"],(function(e,t){We(t+"s().every()",(function(e){var n=this.selector.opts,i=this;return this.iterator(t,(function(a,o,s,c,l){e.call(i[t](o,"cell"===t?s:n,"cell"===t?n:r),o,s,c,l)}))}))})),We("i18n()",(function(t,n,i){var a=this.context[0];return(t=b(t)(a.oLanguage))===r&&(t=n),i!==r&&e.isPlainObject(t)&&(t=t[i]!==r?t[i]:t._),t.replace("%d",i)})),qe.version="1.10.18",qe.settings=[],qe.models={},qe.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},qe.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},qe.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},qe.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},qe.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},i(qe.defaults),qe.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},i(qe.defaults.column),qe.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Ne(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ne(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,i=this.oFeatures,a=i.bPaginate;return i.bServerSide?!1===a||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!a||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},qe.ext=$e={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:qe.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:qe.version},e.extend($e,{afnFiltering:$e.search,aTypes:$e.type.detect,ofnSearch:$e.type.search,oSort:$e.type.order,afnSortData:$e.order,aoFeatures:$e.feature,oApi:$e.internal,oStdClasses:$e.classes,oPagination:$e.pager}),e.extend(qe.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var _t=qe.ext.pager;e.extend(_t,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Ie(e,t)]},simple_numbers:function(e,t){return["previous",Ie(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Ie(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Ie(e,t),"last"]},_numbers:Ie,numbers_length:7}),e.extend(!0,qe.ext.renderer,{pageButton:{_:function(t,i,a,o,s,c){var l,C,u,d=t.oClasses,h=t.oLanguage.oPaginate,f=t.oLanguage.oAria.paginate||{},p=0,m=function(n,r){var i,o,u,v,g=function(e){le(t,e.data.action,!0)};for(i=0,o=r.length;i").appendTo(n),m(u,v);else{switch(l=null,C="",v){case"ellipsis":n.append('');break;case"first":l=h.sFirst,C=v+(s>0?"":" "+d.sPageButtonDisabled);break;case"previous":l=h.sPrevious,C=v+(s>0?"":" "+d.sPageButtonDisabled);break;case"next":l=h.sNext,C=v+(s",{class:d.sPageButton+" "+C,"aria-controls":t.sTableId,"aria-label":f[v],"data-dt-idx":p,tabindex:t.iTabIndex,id:0===a&&"string"==typeof v?t.sTableId+"_"+v:null}).html(l).appendTo(n),{action:v},g),p++)}};try{u=e(i).find(n.activeElement).data("dt-idx")}catch(e){}m(e(i).empty(),o),u!==r&&e(i).find("[data-dt-idx="+u+"]").focus()}}}),e.extend(qe.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Ze.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Qe(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Qe(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(qe.ext.type.search,{html:function(e){return Qe(e)?e:"string"==typeof e?e.replace(Ge," ").replace(Xe,""):""},string:function(e){return Qe(e)?e:"string"==typeof e?e.replace(Ge," "):e}});var Dt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};e.extend($e.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Qe(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Qe(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),je(""),e.extend(!0,qe.ext.renderer,{header:{_:function(t,n,r,i){e(t.nTable).on("order.dt.DT",(function(e,a,o,s){t===a&&(e=r.idx,n.removeClass(r.sSortingClass+" "+i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[e]?i.sSortAsc:"desc"==s[e]?i.sSortDesc:r.sSortingClass))}))},jqueryui:function(t,n,r,i){e("
      ").addClass(i.sSortJUIWrapper).append(n.contents()).append(e("").addClass(i.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",(function(e,a,o,s){t===a&&(e=r.idx,n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[e]?i.sSortAsc:"desc"==s[e]?i.sSortDesc:r.sSortingClass),n.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==s[e]?i.sSortJUIAsc:"desc"==s[e]?i.sSortJUIDesc:r.sSortingClassJUI))}))}}});var xt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return qe.render={number:function(e,t,n,r,i){return{display:function(a){if("number"!=typeof a&&"string"!=typeof a)return a;var o=0>a?"-":"",s=parseFloat(a);return isNaN(s)?xt(a):(s=s.toFixed(n),a=Math.abs(s),s=parseInt(a,10),a=n?t+(a-s).toFixed(n).substring(2):"",o+(r||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+a+(i||""))}}},text:function(){return{display:xt}}},e.extend(qe.ext.internal,{_fnExternApiFunc:Fe,_fnBuildAjax:F,_fnAjaxUpdate:$,_fnAjaxParameters:Y,_fnAjaxUpdateDraw:W,_fnAjaxDataSrc:U,_fnAddColumn:u,_fnColumnOptions:d,_fnAdjustColumnSizing:h,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:p,_fnVisbleColumns:m,_fnGetColumns:v,_fnColumnTypes:g,_fnApplyColumnDefs:M,_fnHungarianMap:i,_fnCamelToHungarian:a,_fnLanguageCompat:o,_fnBrowserDetect:l,_fnAddData:z,_fnAddTr:L,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:y,_fnSetCellData:H,_fnSplitObjNotation:V,_fnGetObjectDataFn:b,_fnSetObjectDataFn:w,_fnGetDataMaster:S,_fnClearTable:_,_fnDeleteIndex:D,_fnInvalidate:x,_fnGetRowElements:k,_fnCreateTr:T,_fnBuildHead:A,_fnDrawHead:O,_fnDraw:R,_fnReDraw:P,_fnAddOptionsHtml:N,_fnDetectHeader:I,_fnGetUniqueThs:j,_fnFeatureHtmlFilter:q,_fnFilterComplete:B,_fnFilterCustom:G,_fnFilterColumn:X,_fnFilter:Z,_fnFilterCreateSearch:K,_fnEscapeRegex:dt,_fnFilterData:J,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:re,_fnInitialise:ie,_fnInitComplete:ae,_fnLengthChange:oe,_fnFeatureHtmlLength:se,_fnFeatureHtmlPaginate:ce,_fnPageChange:le,_fnFeatureHtmlProcessing:Ce,_fnProcessingDisplay:ue,_fnFeatureHtmlTable:de,_fnScrollDraw:he,_fnApplyToChildren:fe,_fnCalculateColumnWidths:pe,_fnThrottle:mt,_fnConvertToWidth:me,_fnGetWidestNode:ve,_fnGetMaxLenString:ge,_fnStringToCss:Me,_fnSortFlatten:ze,_fnSort:Le,_fnSortAria:ye,_fnSortListener:He,_fnSortAttachListener:Ve,_fnSortingClasses:be,_fnSortData:we,_fnSaveState:Se,_fnLoadState:_e,_fnSettingsFromNode:De,_fnLog:xe,_fnMap:ke,_fnBindAction:Ee,_fnCallbackReg:Ae,_fnCallbackFire:Oe,_fnLengthOverflow:Re,_fnRenderer:Pe,_fnDataSource:Ne,_fnRowAttributes:E,_fnExtend:Te,_fnCalculateEnd:function(){}}),e.fn.dataTable=qe,qe.$=e,e.fn.dataTableSettings=qe.settings,e.fn.dataTableExt=qe.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(qe,(function(t,n){e.fn.DataTable[t]=n})),e.fn.dataTable}));var FullCalendar=function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n3)for(n=[n],a=3;a0?m(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(f=y[d])||f&&p.key==f.key&&p.type===f.type)y[d]=void 0;else for(h=0;h3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),P(p(ie,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ne.prototype=new g).__e=function(e){var t=this,n=te(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),re(t,e,r)):i()};n?n(a):a()}},ne.prototype.render=function(e){this.u=null,this.o=new Map;var t=b(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ne.prototype.componentDidUpdate=ne.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){re(e,n,t)}))};var oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,se=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var le=a.event;function Ce(){}function ue(){return this.cancelBubble}function de(){return this.defaultPrevented}a.event=function(e){return le&&(e=le(e)),e.persist=Ce,e.isPropagationStopped=ue,e.isDefaultPrevented=de,e.nativeEvent=e};var he={configurable:!0,get:function(){return this.class}},fe=a.vnode;a.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var i in r={},n){var a=n[i];"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!ce(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():se.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=b(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=b(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(he.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",he)),e.$$typeof=oe,fe&&fe(e)};var pe=a.__r;a.__r=function(e){pe&&pe(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var me="undefined"!=typeof globalThis?globalThis:window;me.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):me.FullCalendarVDom={Component:g,createElement:p,render:P,createRef:function(){return{current:null}},Fragment:v,createContext:function(e){var t=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(L)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var i=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&i.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){i.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i.splice(i.indexOf(e),1),t&&t.call(e)}}}return r},t},createPortal:function(e,t){return p(ae,{__v:e,i:t})},flushSync:function(e){e();var t=a.debounceRendering,n=[];for(a.debounceRendering=function(e){n.push(e)},P(p(ve,{}),document.createElement("div"));n.length;)n.shift()();a.debounceRendering=t},unmountComponentAtNode:function(e){P(null,e)}};var ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return p("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(g),ge=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function Me(e){e.parentNode&&e.parentNode.removeChild(e)}function ze(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Le(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Le(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function ye(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i=0;a-=1){var o=e[a][r];if("object"==typeof o&&o)i.unshift(o);else if(void 0!==o){n[r]=o;break}}i.length&&(n[r]=Mt(i))}for(a=e.length-1;a>=0;a-=1){var s=e[a];for(var c in s)c in n||(n[c]=s[c])}return n}function zt(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Lt(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function yt(e){for(var t={},n=0,r=e;n10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Wt(t,!0)))),r}function $t(e){return e.toISOString().replace(/T.*$/,"")}function Yt(e){return Ge(e.getUTCHours(),2)+":"+Ge(e.getUTCMinutes(),2)+":"+Ge(e.getUTCSeconds(),2)}function Wt(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=Math.round(r%60);return t?n+Ge(i,2)+":"+Ge(a,2):"GMT"+n+i+(a?":"+Ge(a,2):"")}function Ut(e,t,n){if(e===t)return!0;var r,i=e.length;if(i!==t.length)return!1;for(r=0;r1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(s=1);var c=this.format(e,n),l=this.format(t,n);if(c===l)return c;var C=nn(function(e,t){var n={};for(var r in e)(!(r in Xt)||Xt[r]<=t)&&(n[r]=e[r]);return n}(i,s),a,n),u=C(e),d=C(t),h=function(e,t,n,r){for(var i=0;i=Nt(t)&&(r=tt(r,1))}return e.start&&(n=ct(e.start),r&&r<=n&&(r=tt(n,1))),{start:n,end:r}}function In(e){var t=Nn(e);return it(t.start,t.end)>1}function jn(e,t,n,r){return"year"===r?Et(n.diffWholeYears(e,t),"year"):"month"===r?Et(n.diffWholeMonths(e,t),"month"):at(e,t)}function Fn(e,t){var n,r,i=[],a=t.start;for(e.sort($n),n=0;na&&i.push({start:a,end:r.start}),r.end>a&&(a=r.end);return at.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Bn(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t=(n||t.end),isToday:t&&Bn(t,r.start)}}function sr(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function cr(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function lr(e,t){var n=e.eventRange,r=n.def,i=n.instance,a=r.url;if(a)return{href:a};var o=t.emitter,s=t.options.eventInteractive;return null==s&&null==(s=r.interactive)&&(s=Boolean(o.hasHandlers("eventClick"))),s?Oe((function(e){o.trigger("eventClick",{el:e.target,event:new Sr(t,r,i),jsEvent:e,view:t.viewApi})})):{}}var Cr={start:gn,end:gn,allDay:Boolean};function ur(e,t,n){var i=function(e,t){var n=vn(e,Cr),i=n.refined,a=n.extra,o=i.start?t.createMarkerMeta(i.start):null,s=i.end?t.createMarkerMeta(i.end):null,c=i.allDay;return null==c&&(c=o&&o.isTimeUnspecified&&(!s||s.isTimeUnspecified)),r({range:{start:o?o.marker:null,end:s?s.marker:null},allDay:c},a)}(e,t),a=i.range;if(!a.start)return null;if(!a.end){if(null==n)return null;a.end=t.add(a.start,n)}return i}function dr(e,t){return Wn(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)}function hr(e,t,n){return r(r({},fr(e,t,n)),{timeZone:t.timeZone})}function fr(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function pr(e,t,n){n.emitter.trigger("select",r(r({},mr(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function mr(e,t){for(var n,i,a={},o=0,s=t.pluginHooks.dateSpanTransforms;o=0;r-=1){var i=n[r].parseMeta(e);if(i)return{sourceDefId:r,meta:i}}return null}(a,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||"",sourceId:Pe(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Sn(a,t),extendedProps:o}}return null}function Vr(e){return r(r(r({},bn),yr),e.pluginHooks.eventSourceRefiners)}function br(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var wr=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r=1?Math.min(i,a):i}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=nt(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ft(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ft(ut(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ft(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-dt(ht(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ht(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?dt(ht(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ht(e))*60):new Date(e.valueOf()-(t||0))},e}(),Rr=[],Pr={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Nr=r(r({},Pr),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function Ir(e){for(var t=e.length>0?e[0].code:"en",n=Rr.concat(e),r={en:Nr},i=0,a=n;i0;i-=1){var a=r.slice(0,i).join("-");if(t[a])return t[a]}return null}(n,t)||Nr;return Fr(e,n,r)}(e,t):Fr(e.code,[e.code],e)}function Fr(e,t,n){var r=Mt([Pr,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function $r(e){var t=jr(e.locale||"en",Ir([]).map);return new Or(r(r({timeZone:Cn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}var Yr,Wr={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Ur(e,t){return Mn(function(e){return(!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[]).map((function(e){return r(r({},Wr),e)}))}(e),null,t)}function qr(e,t){return e.left>=t.left&&e.left=t.top&&e.top
      ",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Yr}var Jr={defs:{},instances:{}},Qr=function(){function e(){this.getKeysForEventDefs=qt(this._getKeysForEventDefs),this.splitDateSelection=qt(this._splitDateSpan),this.splitEventStore=qt(this._splitEventStore),this.splitIndividualUi=qt(this._splitIndividualUi),this.splitEventDrag=qt(this._splitInteraction),this.splitEventResize=qt(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,r),o=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),c=this.splitEventResize(e.eventResize),l={};for(var C in this.eventUiBuilders=Lt(n,(function(e,n){return t.eventUiBuilders[n]||qt(ei)})),n){var u=n[C],d=o[C]||Jr,h=this.eventUiBuilders[C];l[C]={businessHours:u.businessHours||e.businessHours,dateSelection:i[C]||null,eventStore:d,eventUiBases:h(e.eventUiBases[""],u.ui,a[C]),eventSelection:d.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[C]||null,eventResize:c[C]||null}}return l},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);nn:!!t&&e>=t.end)}}function ni(e,t){var n=["fc-day","fc-day-"+Qe[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var ri=cn({year:"numeric",month:"long",day:"numeric"}),ii=cn({week:"long"});function ai(e,t,n,i){void 0===n&&(n="day"),void 0===i&&(i=!0);var a=e.dateEnv,o=e.options,s=e.calendarApi,c=a.format(t,"week"===n?ii:ri);if(o.navLinks){var l=a.toDate(t),C=function(e){var r="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof r?r.call(s,a.toDate(t),e):("string"==typeof r&&(n=r),s.zoomTo(t,n))};return r({title:Xe(o.navLinkHint,[c,l],c),"data-navlink":""},i?Ae(C):{onClick:C})}return{"aria-label":c}}var oi,si=null;function ci(){return null===si&&(si=function(){var e=document.createElement("div");Ve(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="
      ",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Me(e),t}()),si}function li(){return oi||(oi=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Ci(e);return document.body.removeChild(e),t}()),oi}function Ci(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ui(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=Ci(e),c=s.y-r-i,l={borderLeft:r,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:s.x-a-o,scrollbarLeft:0,scrollbarRight:0};return ci()&&"rtl"===n.direction?l.scrollbarLeft=c:l.scrollbarRight=c,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function di(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():hi(e),i=ui(e,t),a={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(a.left+=i.paddingLeft,a.right-=i.paddingRight,a.top+=i.paddingTop,a.bottom-=i.paddingBottom),a}function hi(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function fi(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function pi(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},a=function(){r||(r=!0,n&&n.apply(this,arguments))},o=e(i,a);o&&"function"==typeof o.then&&o.then(i,a)}var mi=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n=n[t]&&e=n[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()=C.end?new Date(C.end.valueOf()-1):l),i=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,a),s=o=this.trimHiddenDays(o),u.showNonCurrentDates||(s=Yn(s,i.range)),s=Yn(s=this.adjustActiveRange(s),r),c=Un(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:a,activeRange:s,renderRange:o,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,i=null,a=null,o=null;return r.duration?(i=r.duration,a=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,a)):(n=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(a=jt(i=this.getFallbackDuration()).unit,o=this.buildRangeFromDuration(e,t,i,a)),{duration:i,unit:a,range:o}},e.prototype.getFallbackDuration=function(){return Et({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,i=t.slotMinTime,a=t.slotMaxTime,o=e.start,s=e.end;return r&&(Pt(i)<0&&(o=ct(o),o=n.add(o,i)),Pt(a)>1&&(s=tt(s=ct(s),-1),s=n.add(s,a))),{start:o,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var i,a,o,s=this.props,c=s.dateEnv,l=s.dateAlignment;if(!l){var C=this.props.dateIncrement;l=C&&Nt(C)e.fetchRange.end:!e.latestFetchId}(e,t,n)})),t,!1,n)}function oa(e,t,n,r,i){var a={};for(var o in e){var s=e[o];t[o]?a[o]=sa(s,n,r,i):a[o]=s}return a}function sa(e,t,n,i){var a=i.options,o=i.calendarApi,s=i.pluginHooks.eventSourceDefs[e.sourceDefId],c=Pe();return s.fetch({eventSource:e,range:t,isRefetch:n,context:i},(function(n){var r=n.rawEvents;a.eventSourceSuccess&&(r=a.eventSourceSuccess.call(o,r,n.xhr)||r),e.success&&(r=e.success.call(o,r,n.xhr)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:c,fetchRange:t,rawEvents:r})}),(function(n){console.warn(n.message,n),a.eventSourceFailure&&a.eventSourceFailure.call(o,n),e.failure&&e.failure(n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:c,fetchRange:t,error:n})})),r(r({},e),{isFetching:!0,latestFetchId:c})}function ca(e,t){return zt(e,(function(e){return la(e,t)}))}function la(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Ca(e,t){var n;if(t){n=[];for(var r=0,i=e;r=200&&o.status<400){var e=!1,t=void 0;try{t=JSON.parse(o.responseText),e=!0}catch(e){}e?r(t,o):i("Failure parsing JSON",o)}else i("Request failed",o)},o.onerror=function(){i("Request failed",o)},o.send(a)}function za(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function La(e,t){for(var n=Ht(t.getCurrentData().eventSources),r=[],i=0,a=e;i1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var wa=function(){function e(e){var t=this;this.computeOptionsData=qt(this._computeOptionsData),this.computeCurrentViewData=qt(this._computeCurrentViewData),this.organizeRawLocales=qt(Ir),this.buildLocale=qt(jr),this.buildPluginHooks=function(){var e,t=[],n=[];return function(i,a){return e&&Ut(i,t)&&Ut(a,n)||(e=function(e,t){var n={},i={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function a(e){for(var t=0,o=e;ts.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:o.end}},a)),r?(n.push.apply(n,i([{index:e.index,thickness:e.thickness,span:Ya(s,o)}],a)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Wa(r,t.level,t.levelCoord),Wa(n,t.level,[e])):Wa(n[t.level],t.lateral,e),this.stackCnts[ja(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,i=t.strictOrder,a=t.stackCnts,o=n.length,s=0,c=-1,l=-1,C=null,u=0,d=0;d=s+e.thickness)break;for(var f=r[d],p=void 0,m=Ua(f,e.span.start,Ia),v=m[0]+m[1];(p=f[v])&&p.span.starts&&(s=g,C=p,c=d,l=v),g===s&&(u=Math.max(u,a[ja(p)]+1)),v+=1}}var M=0;if(C)for(M=c+1;Mn(e[i-1]))return[i,0];for(;ro))return[a,1];r=a+1}}return[r,0]}var qa=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function Ba(e){var t;return(t={})[e.component.uid]=e,t}var Ga={},Xa=function(){function e(e,t){this.emitter=new mi}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Za={},Ka={startTime:Et,duration:Et,create:Boolean,sourceId:String};function Ja(e){var t=vn(e,Ka),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var Qa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return Hi.apply(void 0,i(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],a=!0,o=0,s=e;o1){var v=a&&n.getClass("buttonGroup")||"";return Hi.apply(void 0,i(["div",{className:v}],r))}return r[0]},t}(Oi),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,i=n.extraClassName,a=!1,o=r.sectionWidgets,s=o.center;return o.left?(a=!0,e=o.left):e=o.start,o.right?(a=!0,t=o.right):t=o.end,Hi("div",{className:[i||"","fc-toolbar",a?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return Hi(Qa,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(Oi),to=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,Ni(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],i="",a="";return n?null!==t.availableWidth?i=t.availableWidth/n:a=1/n*100+"%":i=e.height||"",Hi("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:i,paddingBottom:a}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Oi),no=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,i=r.context,a=Kn(t);if(a&&r.isValidSegDownEl(e.target)){var o=ze(e.target,".fc-event-forced-url"),s=o?o.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new Sr(r.context,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:i.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=ke(t.el,"click",".fc-event",n.handleSegClick),n}return n(t,e),t}(qa),ro=function(e){function t(t){var n,r,i,a,o=e.call(this,t)||this;return o.handleEventElRemove=function(e){e===o.currentSegEl&&o.handleSegLeave(null,o.currentSegEl)},o.handleSegEnter=function(e,t){Kn(t)&&(o.currentSegEl=t,o.triggerEvent("eventMouseEnter",e,t))},o.handleSegLeave=function(e,t){o.currentSegEl&&(o.currentSegEl=null,o.triggerEvent("eventMouseLeave",e,t))},o.removeHoverListeners=(n=t.el,r=o.handleSegEnter,i=o.handleSegLeave,ke(n,"mouseover",".fc-event",(function(e,t){if(t!==a){a=t,r(e,t);var n=function(e){a=null,i(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),o}return n(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,a=Kn(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new Sr(i,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:i.viewApi})},t}(qa),io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=qt(Ei),t.buildViewPropTransformers=qt(oo),t.buildToolbarProps=qt(ao),t.headerRef=bi(),t.footerRef=bi(),t.interactionsStore={},t.state={viewLabelId:De()},t.registerInteractiveComponent=function(e,n){var r=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,n),i=[no,ro].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=i,Ga[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,i=n;r10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var lo="fc-col-header-cell";function Co(e){return e.text}var uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,i=e.theme,a=e.viewApi,o=this.props,s=o.date,c=o.dateProfile,l=ti(s,o.todayRange,null,c),C=[lo].concat(ni(l,i)),u=t.format(s,o.dayHeaderFormat),d=!l.isDisabled&&o.colCnt>1?ai(this.context,s):{},h=r(r(r({date:t.toDate(s),view:a},o.extraHookProps),{text:u}),l);return Hi(Yi,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Co,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,i){return Hi("th",r({ref:e,role:"columnheader",className:C.concat(t).join(" "),"data-date":l.isDisabled?void 0:$t(s),colSpan:o.colSpan},o.extraDataAttrs),Hi("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&Hi("a",r({ref:n,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},d),i)))}))},t}(Oi),ho=cn({weekday:"long"}),fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,i=t.theme,a=t.viewApi,o=t.options,s=tt(new Date(2592e5),e.dow),c={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=[lo].concat(ni(c,i),e.extraClassNames||[]),C=n.format(s,e.dayHeaderFormat),u=r(r(r(r({date:s},c),{view:a}),e.extraHookProps),{text:C});return Hi(Yi,{hookProps:u,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:Co,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(t,i,a,o){return Hi("th",r({ref:t,role:"columnheader",className:l.concat(i).join(" "),colSpan:e.colSpan},e.extraDataAttrs),Hi("div",{className:"fc-scrollgrid-sync-inner"},Hi("a",{"aria-label":n.format(s,ho),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:a},o)))}))},t}(Oi),po=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=br(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=nt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),i=t.dateEnv.add(r,Et(1,e.unit)),a=i.valueOf()-n.valueOf();return a=Math.min(864e5,a),{currentState:{nowDate:r,todayRange:mo(r)},nextState:{nowDate:i,todayRange:mo(i)},waitMs:a}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=Ti,t}(yi);function mo(e){var t=ct(e);return{start:t,end:tt(t,1)}}var vo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=qt(go),t}return n(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,i=t.datesRepDistinctDays,a=t.renderIntro,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return Hi(po,{unit:"day"},(function(e,t){return Hi("tr",{role:"row"},a&&a("day"),n.map((function(e){return i?Hi(uo,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:o}):Hi(fo,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:o})})))}))},t}(Oi);function go(e,t,n){return e||co(t,n)}var Mo=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],a=[],o=-1;n=t.length?t[t.length-1]+1:t[n]},e}(),zo=function(){function e(e,t){var n,r,i,a=e.dates;if(t){for(r=a[0].getUTCDay(),n=1;nt)return!0;return!1},t.prototype.needsYScrolling=function(){if(ko.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;rt)return!0;return!1},t.prototype.getXScrollbarWidth=function(){return ko.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return ko.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Oi),Eo=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,i=r.depths,a=r.currentMap,o=!1,s=!1;null!==e?(o=n in a,a[n]=e,i[n]=(i[n]||0)+1,s=!0):(i[n]-=1,i[n]||(delete a[n],delete t.callbackMap[n],o=!0)),t.masterCallback&&(o&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return _t(this.currentMap,e,t,n)},e.prototype.getAll=function(){return Ht(this.currentMap)},e}();function Ao(e){for(var t=0,n=0,r=ye(e,".fc-scrollgrid-shrink");n=0&&e=0&&tt.eventRange.range.end?e:t}var ps=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i.isRendering=!1,i.isRendered=!1,i.currentClassNames=[],i.customContentRenderId=0,i.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":i.renderRunner.tryDrain()}},i.handleData=function(e){i.currentData=e,i.renderRunner.request(e.calendarOptions.rerenderDelay)},i.handleRenderRequest=function(){if(i.isRendering){i.isRendered=!0;var e=i.currentData;Di((function(){Vi(Hi(so,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,a,o){return i.setClassNames(t),i.setHeight(n),Hi(Wi.Provider,{value:i.customContentRenderId},Hi(io,r({isHeightAuto:a,forPrint:o},e)))})),i.el)}))}else i.isRendered&&(i.isRendered=!1,xi(i.el),i.setClassNames([]),i.setHeight(""))},i.el=t,i.renderRunner=new Ha(i.handleRenderRequest),new wa({optionOverrides:n,calendarApi:i,onAction:i.handleAction,onData:i.handleData}),i}return n(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;Di((function(){e.prototype.updateSize.call(t)}))},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Ut(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(bs()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e=0&&l>=0&&C>=0&&u>=0&&(C<=n&&this.everMovedUp&&o.canScrollUp()&&(!r||r.distance>C)&&(r={scrollCache:o,name:"top",distance:C}),u<=n&&this.everMovedDown&&o.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:o,name:"bottom",distance:u}),c<=n&&this.everMovedLeft&&o.canScrollLeft()&&(!r||r.distance>c)&&(r={scrollCache:o,name:"left",distance:c}),l<=n&&this.everMovedRight&&o.canScrollRight()&&(!r||r.distance>l)&&(r={scrollCache:o,name:"right",distance:l}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new Vs(!1):new Hs(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,Fe(document.body),Ye(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var i=r.pointer=new Ms(t);return i.emitter.on("pointerdown",r.onPointerDown),i.emitter.on("pointermove",r.onPointerMove),i.emitter.on("pointerup",r.onPointerUp),n&&(i.selector=n),r.mirror=new Ls,r.autoScroller=new ws,r}return n(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(Xa),_s=function(){function e(e){this.origRect=hi(e),this.scrollCaches=fi(e).map((function(e){return new Hs(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e=0&&C=0&&ui.layer)&&(p.componentId=a,p.context=o.context,p.rect.left+=c,p.rect.right+=c,p.rect.top+=l,p.rect.bottom+=l,i=p)}}}return i},e}();function xs(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&dr(e.dateSpan,t.dateSpan)}function ks(e,t){for(var n,i,a={},o=0,s=t.pluginHooks.datePointTransforms;or.start)return{endDelta:a};return null}(o,e,r.subjectEl.classList.contains("fc-event-resizer-start"),s.range))),c&&(l=gr(a,i.getCurrentData().eventUiBases,c,i),u.mutatedEvents=l,Ho(u,e.dateProfile,i)||(C=!0,c=null,l=null,u.mutatedEvents=null)),l?i.dispatch({type:"SET_EVENT_RESIZE",state:u}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),C?Ne():Ie(),t||(c&&xs(o,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=l)},n.handleDragEnd=function(e){var t=n.component.context,i=n.eventRange.def,a=n.eventRange.instance,o=new Sr(t,i,a),s=n.relevantEvents,c=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var l=new Sr(t,c.defs[i.defId],a?c.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});var C={oldEvent:o,event:l,relatedEvents:Dr(c,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",r(r({},C),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||Et(0),endDelta:n.validMutation.endDelta||Et(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",C)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var i=t.component,a=n.dragging=new Ss(t.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=i.context.options.dragScroll;var o=n.hitDragging=new Ds(n.dragging,Ba(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("dragend",n.handleDragEnd),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return ze(e.subjectEl,".fc-event")},t}(qa),Rs=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=we(e.origEvent);t.matchesCancel=!!ze(r,n),t.matchesEvent=!!ze(r,As.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,i=n.getCurrentData();if(!r.wasTouchScroll){if(i.dateSelection&&!t.isRecentPointerDateSelect){var a=n.options.unselectAuto;!a||a&&t.matchesCancel||n.calendarApi.unselect(e)}i.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new Ms(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),Ps={fixedMirrorParent:gn},Ns={dateClick:gn,eventDragStart:gn,eventDragStop:gn,eventDrop:gn,eventResizeStart:gn,eventResizeStop:gn,eventResize:gn,drop:gn,eventReceive:gn,eventLeave:gn},Is=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,i){var a=n.hitDragging.dragging,o=null,s=null,c=!1,l={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:n.dragMeta.create};e&&(o=e.context,n.canDropElOnCalendar(i.subjectEl,o)&&(s=function(e,t,n){for(var i=r({},t.leftoverProps),a=0,o=n.pluginHooks.externalDefTransforms;a1,z=g.span.start===s;u+=g.levelCoord-C,C=g.levelCoord+g.thickness,M?(u+=g.thickness,z&&p.push({seg:ac(f,g.span.start,g.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:g.levelCoord,marginTop:0})):z&&(p.push({seg:ac(f,g.span.start,g.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:g.levelCoord,marginTop:u}),u=0)}i.push(l),a.push(p),o.push(u)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}(s.toRects(),e,o),f=h.singleColPlacements,p=h.multiColPlacements,m=h.leftoverMargins,v=[],g=[],M=0,z=l;M1,showWeekNumbers:t.showWeekNumbers,todayRange:f,dateProfile:n,cells:a,renderIntro:t.renderRowIntro,businessHourSegs:s[h],eventSelection:t.eventSelection,bgEventSegs:c[h].filter(lc),fgEventSegs:l[h],dateSelectionSegs:C[h],eventDrag:u[h],eventResize:d[h],dayMaxEvents:i,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new vi(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new vi(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,i=this.rowPositions,a=n.leftToIndex(e),o=i.topToIndex(t);if(null!=o&&null!=a){var s=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:r({range:this.getCellRange(o,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:n.lefts[a],right:n.rights[a],top:i.tops[o],bottom:i.bottoms[o]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:tt(n,1)}},t}(Ii);function lc(e){return e.eventRange.def.allDay}var Cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return n(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Lo),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new Cc,t.tableRef=bi(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return Hi(cc,r({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(Ii),dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=qt(hc),t.headerRef=bi(),t.tableRef=bi(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,i=this.props,a=this.buildDayTableModel(i.dateProfile,r),o=n.dayHeaders&&Hi(vo,{ref:this.headerRef,dateProfile:i.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),s=function(t){return Hi(uc,{ref:e.tableRef,dateProfile:i.dateProfile,dayTableModel:a,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(o,s,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(o,s)},t}(Ws);function hc(e,t){var n=new Mo(e.renderRange,t);return new zo(n,/year|month|week/.test(e.currentRangeUnit))}var fc=ji({initialView:"dayGridMonth",views:{dayGrid:{component:dc,dateProfileGeneratorClass:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.buildRenderRange=function(t,n,r){var i,a=this.props.dateEnv,o=e.prototype.buildRenderRange.call(this,t,n,r),s=o.start,c=o.end;return/^(year|month)$/.test(n)&&(s=a.startOfWeek(s),(i=a.startOfWeek(c)).valueOf()!==c.valueOf()&&(c=et(i,1))),this.props.monthMode&&this.props.fixedWeekCount&&(c=et(c,6-Math.ceil(rt(s,c)))),{start:s,end:c}},t}(na)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),pc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?Xn(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(Qr),mc=cn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function vc(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Hi(Ti.Consumer,null,(function(n){if(!e.isLabeled)return Hi("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,i=n.options,a=n.viewApi,o=null==i.slotLabelFormat?mc:Array.isArray(i.slotLabelFormat)?cn(i.slotLabelFormat[0]):cn(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:a,text:r.format(e.date,o)};return Hi(Yi,{hookProps:s,classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:gc,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(n,r,i,a){return Hi("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},Hi("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Hi("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},a)))}))}))}function gc(e){return e.text}var Mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return Hi("tr",{key:e.key},Hi(vc,r({},e)))}))},t}(Oi),zc=cn({week:"short"}),Lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new pc,t.headerElRef=bi(),t.rootElRef=bi(),t.scrollerElRef=bi(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var i=t.context.options,a=t.props.dateProfile.renderRange,o=1===it(a.start,a.end)?ai(t.context,a.start,"week"):{};return i.weekNumbers&&"day"===e?Hi(as,{date:a.start,defaultFormat:zc},(function(e,t,i,a){return Hi("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},Hi("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},Hi("a",r({ref:i,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},o),a)))})):Hi("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Hi("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,i=n.viewApi,a={text:r.allDayText,view:i};return Hi(Yi,{hookProps:a,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:yc,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(t,n,r,i){return Hi("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Hi("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},Hi("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},i)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return n(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,i=this.props,a=[],o=Uo(r.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:Hi("tr",{role:"presentation",className:"fc-scrollgrid-section"},Hi("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Hi(Ki,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(e,t){return Hi("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Hi(Bo,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,cols:[{width:"shrink"}],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r,i,a,o){var s=this,c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");var l=this.context,C=this.props,u=!C.forPrint&&Uo(l.options),d=!C.forPrint&&qo(l.options),h=[];e&&h.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Hi("tr",{role:"presentation"},s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Hi("tr",{role:"presentation"},s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),h.push({key:"all-day-divider",type:"body",outerContent:Hi("tr",{role:"presentation",className:"fc-scrollgrid-section"},Hi("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));var f=l.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:function(e){return Hi("div",{className:"fc-timegrid-axis-chunk"},Hi("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,Hi("tbody",null,Hi(Mc,{slatMetas:a}))),Hi("div",{className:"fc-timegrid-now-indicator-container"},Hi(po,{unit:f?"minute":"day"},(function(e){var t=f&&o&&o.safeComputeTop(e);return"number"==typeof t?Hi(Ko,{isAxis:!0,date:e},(function(e,n,r,i){return Hi("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},i)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),d&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Wo},{key:"cols",content:Wo}]}),Hi(Ki,{viewSpec:l.viewSpec,elRef:this.rootElRef},(function(e,t){return Hi("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Hi(c,{liquid:!C.isHeightAuto&&!C.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:h}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(Ii);function yc(e){return e.text}var Hc=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(Bn(t.currentRange,e)){var n=ct(e),r=e.valueOf()-n.valueOf();if(r>=Nt(t.slotMinTime)&&r0,M=Boolean(c)&&c.span.end-c.span.start=0;t-=1)if(null!==(r=It(n=Et(Gc[t]),e))&&r>1)return n;return e}(r),l=[];Nt(o)0?e.renderSegList(s,a):e.renderEmptyMessage()))}))},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,r={text:t.noEventsText,view:n};return Hi(Yi,{hookProps:r,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:al,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,r){return Hi("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},Hi("div",{className:"fc-list-empty-cushion",ref:n},r))}))},t.prototype.renderSegList=function(e,t){var n=this.context,i=n.theme,a=n.options,o=this.state,s=o.timeHeaderId,c=o.eventHeaderId,l=o.dateHeaderIdRoot,C=function(e){var t,n,r=[];for(t=0;t{var e={306:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ln});var r,i,a,o,s=!1,c=!1,l=[];function C(e){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}function u(){s=!1,c=!0;for(let e=0;e{(void 0===t||t.includes(n))&&(r.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var M=new MutationObserver(S),z=!1;function L(){M.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),z=!0}var y=[],H=!1;function V(e){if(!z)return e();(y=y.concat(M.takeRecords())).length&&!H&&(H=!0,queueMicrotask((()=>{S(y),y.length=0,H=!1}))),M.disconnect(),z=!1;let t=e();return L(),t}var b=!1,w=[];function S(e){if(b)return void(w=w.concat(e));let t=[],n=[],r=new Map,i=new Map;for(let a=0;a1===e.nodeType&&t.push(e))),e[a].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[a].type)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&null===o?s():t.hasAttribute(n)?(c(),s()):c()}i.forEach(((e,t)=>{g(t,e)})),r.forEach(((e,t)=>{f.forEach((n=>n(t,e)))}));for(let e of n)if(!t.includes(e)&&(p.forEach((t=>t(e))),e._x_cleanups))for(;e._x_cleanups.length;)e._x_cleanups.pop()();t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,m.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,r=null,i=null}function _(e){return T(k(e))}function D(e,t,n){return e._x_dataStack=[t,...k(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function x(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{n[e]=t}))}function k(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?k(e.host):e.parentNode?k(e.parentNode):[]}function T(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,n)=>e.some((e=>e.hasOwnProperty(n))),get:(n,r)=>(e.find((e=>{if(e.hasOwnProperty(r)){let n=Object.getOwnPropertyDescriptor(e,r);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let i=n.get,a=n.set,o=n;i=i&&i.bind(t),a=a&&a.bind(t),i&&(i._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(e,r,{...o,get:i,set:a})}return!0}return!1}))||{})[r],set:(t,n,r)=>{let i=e.find((e=>e.hasOwnProperty(n)));return i?i[n]=r:e[e.length-1][n]=r,!0}});return t}function E(e){let t=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([i,{value:a,enumerable:o}])=>{if(!1===o||void 0===a)return;let s=""===r?i:`${r}.${i}`;var c;"object"==typeof a&&null!==a&&a._x_interceptor?n[i]=a.initialize(e,s,i):"object"!=typeof(c=a)||Array.isArray(c)||null===c||a===n||a instanceof Element||t(a,s)}))};return t(e)}function A(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>O(t,n,e)),n,r)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,a)=>{let o=e.initialize(r,i,a);return n.initialValue=o,t(r,i,a)}}else n.initialValue=e;return n}}function O(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),O(e[t[0]],t.slice(1),n)}e[t[0]]=n}var R={};function P(e,t){R[e]=t}function N(e,t){return Object.entries(R).forEach((([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[e,n]=ne(t);return e={interceptor:A,...e},v(t,n),r(t,e)},enumerable:!1})})),e}function I(e,t,n,...r){try{return n(...r)}catch(n){j(n,e,t)}}function j(e,t,n){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}var F=!0;function $(e,t,n={}){let r;return Y(e,t)((e=>r=e),n),r}function Y(...e){return W(...e)}var W=U;function U(e,t){let n={};N(n,e);let r=[n,...k(e)];if("function"==typeof t)return function(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{B(n,t.apply(T([r,...e]),i))}}(r,t);let i=function(e,t,n){let r=function(e,t){if(q[e])return q[e];let n=Object.getPrototypeOf((async function(){})).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,i=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(n){return j(n,t,e),Promise.resolve()}})();return q[e]=i,i}(t,n);return(i=()=>{},{scope:a={},params:o=[]}={})=>{r.result=void 0,r.finished=!1;let s=T([a,...e]);if("function"==typeof r){let e=r(r,s).catch((e=>j(e,n,t)));r.finished?(B(i,r.result,s,o,n),r.result=void 0):e.then((e=>{B(i,e,s,o,n)})).catch((e=>j(e,n,t))).finally((()=>r.result=void 0))}}}(r,t,e);return I.bind(null,e,t,i)}var q={};function B(e,t,n,r,i){if(F&&"function"==typeof t){let a=t.apply(n,r);a instanceof Promise?a.then((t=>B(e,t,n,r))).catch((e=>j(e,i,t))):e(a)}else e(t)}var G="x-";function X(e=""){return G+e}var Z={};function K(e,t){Z[e]=t}function J(e,t,n){let r={},i=Array.from(t).map(ie(((e,t)=>r[e]=t))).filter(se).map(function(e,t){return({name:n,value:r})=>{let i=n.match(ce()),a=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:a?a[1]:null,modifiers:o.map((e=>e.replace(".",""))),expression:r,original:s}}}(r,n)).sort(ue);return i.map((t=>function(e,t){let n=Z[t.type]||(()=>{}),[r,i]=ne(e);!function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(e,t.original,i);let a=()=>{e._x_ignore||e._x_ignoreSelf||(n.inline&&n.inline(e,t,r),n=n.bind(n,e,t,r),Q?ee.get(te).push(n):n())};return a.runCleanups=i,a}(e,t)))}var Q=!1,ee=new Map,te=Symbol();function ne(e){let t=[],[n,r]=function(e){let t=()=>{};return[n=>{let r=i(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(r),t=()=>{void 0!==r&&(e._x_effects.delete(r),a(r))},r},()=>{t()}]}(e);return t.push(r),[{Alpine:Be,effect:n,cleanup:e=>t.push(e),evaluateLater:Y.bind(Y,e),evaluate:$.bind($,e)},()=>t.forEach((e=>e()))]}var re=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r});function ie(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=ae.reduce(((e,t)=>t(e)),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var ae=[];function oe(e){ae.push(e)}function se({name:e}){return ce().test(e)}var ce=()=>new RegExp(`^${G}([^:^.]+)\\b`),le="DEFAULT",Ce=["ignore","ref","data","id","bind","init","for","mask","model","modelable","transition","show","if",le,"teleport","element"];function ue(e,t){let n=-1===Ce.indexOf(e.type)?le:e.type,r=-1===Ce.indexOf(t.type)?le:t.type;return Ce.indexOf(n)-Ce.indexOf(r)}function de(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var he=[],fe=!1;function pe(e=()=>{}){return queueMicrotask((()=>{fe||setTimeout((()=>{me()}))})),new Promise((t=>{he.push((()=>{e(),t()}))}))}function me(){for(fe=!1;he.length;)he.shift()()}function ve(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>ve(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let r=e.firstElementChild;for(;r;)ve(r,t),r=r.nextElementSibling}function ge(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Me=[],ze=[];function Le(){return Me.map((e=>e()))}function ye(){return Me.concat(ze).map((e=>e()))}function He(e){Me.push(e)}function Ve(e){ze.push(e)}function be(e,t=!1){return we(e,(e=>{if((t?ye():Le()).some((t=>e.matches(t))))return!0}))}function we(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return we(e.parentElement,t)}}function Se(e,t=ve){!function(e){Q=!0;let t=Symbol();te=t,ee.set(t,[]);let n=()=>{for(;ee.get(t).length;)ee.get(t).shift()();ee.delete(t)};e(),Q=!1,n()}((()=>{t(e,((e,t)=>{J(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function _e(e,t){return Array.isArray(t)?De(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),a=[],o=[];return i.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),o.push(t))})),r.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),a.push(t))})),()=>{o.forEach((t=>e.classList.add(t))),a.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?_e(e,t()):De(e,t)}function De(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function xe(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,r])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,r)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{xe(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function ke(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Te(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=()=>{},r=()=>{}){Ae(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){Ae(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function Ee(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Ee(t)}function Ae(e,t,{during:n,start:r,end:i}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return a(),void o();let s,c,l;!function(e,t){let n,r,i,a=ke((()=>{V((()=>{n=!0,r||t.before(),i||(t.end(),me()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:ke((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()})),finish:a},V((()=>{t.start(),t.during()})),fe=!0,requestAnimationFrame((()=>{if(n)return;let a=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),o=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===a&&(a=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),V((()=>{t.before()})),r=!0,requestAnimationFrame((()=>{n||(V((()=>{t.end()})),me(),setTimeout(e._x_transitioning.finish,a+o),i=!0)}))}))}(e,{start(){s=t(e,r)},during(){c=t(e,n)},before:a,end(){s(),l=t(e,i)},after:o,cleanup(){c(),l()}})}function Oe(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}K("transition",((e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),r?function(e,t,n){Te(e,_e,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,r,t):function(e,t,n){Te(e,xe);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),a=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter(((e,n)=>nn>t.indexOf("out"))));let o=!t.includes("opacity")&&!t.includes("scale"),s=o||t.includes("opacity")?0:1,c=o||t.includes("scale")?Oe(t,"scale",95)/100:1,l=Oe(t,"delay",0),C=Oe(t,"origin","center"),u="opacity, transform",d=Oe(t,"duration",150)/1e3,h=Oe(t,"duration",75)/1e3,f="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:C,transitionDelay:l,transitionProperty:u,transitionDuration:`${d}s`,transitionTimingFunction:f},e._x_transition.enter.start={opacity:s,transform:`scale(${c})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),a&&(e._x_transition.leave.during={transformOrigin:C,transitionDelay:l,transitionProperty:u,transitionDuration:`${h}s`,transitionTimingFunction:f},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:s,transform:`scale(${c})`})}(e,n,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):i():e._x_transition?e._x_transition.in(n):i():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(r))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(r),queueMicrotask((()=>{let t=Ee(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Re=!1;function Pe(e,t=()=>{}){return(...n)=>Re?t(...n):e(...n)}function Ne(e,t,n,i=[]){switch(e._x_bindings||(e._x_bindings=r({})),e._x_bindings[t]=n,t=i.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=Ie(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>Ie(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=xe(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=_e(e,t)}(e,n);break;default:!function(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(je(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}(e,t,n)}}function Ie(e,t){return e==t}function je(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Fe(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){n=null,e.apply(r,i)}),t)}}function $e(e,t){let n;return function(){let r=arguments;n||(e.apply(this,r),n=!0,setTimeout((()=>n=!1),t))}}var Ye={},We=!1,Ue={},qe={},Be={get reactive(){return r},get release(){return a},get effect(){return i},get raw(){return o},version:"3.10.0",flushAndStopDeferringMutations:function(){b=!1,S(w),w=[]},dontAutoEvaluateFunctions:function(e){let t=F;F=!1,e(),F=t},disableEffectScheduling:function(e){d=!1,e(),d=!0},setReactivityEngine:function(e){r=e.reactive,a=e.release,i=t=>e.effect(t,{scheduler:e=>{d?function(e){!function(e){l.includes(e)||l.push(e),c||s||(s=!0,queueMicrotask(u))}(e)}(e):e()}}),o=e.raw},closestDataStack:k,skipDuringClone:Pe,addRootSelector:He,addInitSelector:Ve,addScopeToNode:D,deferMutations:function(){b=!0},mapAttributes:oe,evaluateLater:Y,setEvaluator:function(e){W=e},mergeProxies:T,findClosest:we,closestRoot:be,interceptor:A,transition:Ae,setStyles:xe,mutateDom:V,directive:K,throttle:$e,debounce:Fe,evaluate:$,initTree:Se,nextTick:pe,prefixed:X,prefix:function(e){G=e},plugin:function(e){e(Be)},magic:P,store:function(e,t){if(We||(Ye=r(Ye),We=!0),void 0===t)return Ye[e];Ye[e]=t,"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&Ye[e].init(),E(Ye[e])},start:function(){var e;document.body||ge("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `