!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},a=n.push,s=n.indexOf,l={},c=l.toString,d=l.hasOwnProperty,u=d.toString,h=u.call(Object),f={},C=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},p=function(t){return null!=t&&t===t.window},m=t.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function v(t,e,n){var i,r,o=(n=n||m).createElement("script");if(o.text=t,e)for(i in g)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var b="3.6.0",M=function(t,e){return new M.fn.init(t,e)};function L(t){var e=!!t&&"length"in t&&t.length,n=y(t);return!C(t)&&!p(t)&&("array"===n||0===e||"number"==typeof e&&0+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),W=new RegExp(R),Y=new RegExp("^"+N+"$"),G={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+R),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("^(?:"+O+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=bt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{$.apply(k=T.call(M.childNodes),M.childNodes),k[M.childNodes.length].nodeType}catch(e){$={apply:k.length?function(t,e){E.apply(t,T.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,r){var o,s,c,d,u,C,g,v=e&&e.ownerDocument,M=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==M&&9!==M&&11!==M)return i;if(!r&&(h(e),e=e||f,p)){if(11!==M&&(u=Q.exec(t)))if(o=u[1]){if(9===M){if(!(c=e.getElementById(o)))return i;if(c.id===o)return i.push(c),i}else if(v&&(c=v.getElementById(o))&&y(e,c)&&c.id===o)return i.push(c),i}else{if(u[2])return $.apply(i,e.getElementsByTagName(t)),i;if((o=u[3])&&n.getElementsByClassName&&e.getElementsByClassName)return $.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!V[t+" "]&&(!m||!m.test(t))&&(1!==M||"object"!==e.nodeName.toLowerCase())){if(g=t,v=e,1===M&&(U.test(t)||q.test(t))){for((v=tt.test(t)&>(e.parentNode)||e)===e&&n.scope||((d=e.getAttribute("id"))?d=d.replace(it,rt):e.setAttribute("id",d=b)),s=(C=a(t)).length;s--;)C[s]=(d?"#"+d:":scope")+" "+yt(C[s]);g=C.join(",")}try{return $.apply(i,v.querySelectorAll(g)),i}catch(e){V(t,!0)}finally{d===b&&e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,i,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ct(t){return t[b]=!0,t}function dt(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function Ct(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function pt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:M;return a!=f&&9===a.nodeType&&a.documentElement&&(C=(f=a).documentElement,p=!o(f),M!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.scope=dt((function(t){return C.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=dt((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=dt((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=dt((function(t){return C.appendChild(t).id=b,!f.getElementsByName||!f.getElementsByName(b).length})),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&p){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&p)return e.getElementsByClassName(t)},g=[],m=[],(n.qsa=J.test(f.querySelectorAll))&&(dt((function(t){var e;C.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+P+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+P+"*(?:value|"+O+")"),t.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),dt((function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+P+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),C.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(v=C.matches||C.webkitMatchesSelector||C.mozMatchesSelector||C.oMatchesSelector||C.msMatchesSelector))&&dt((function(t){n.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),g.push("!=",R)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=J.test(C.compareDocumentPosition),y=e||J.test(C.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},x=e?function(t,e){if(t===e)return u=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==f||t.ownerDocument==M&&y(M,t)?-1:e==f||e.ownerDocument==M&&y(M,e)?1:d?A(d,t)-A(d,e):0:4&i?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==f?-1:e==f?1:r?-1:o?1:d?A(d,t)-A(d,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==M?-1:s[i]==M?1:0}),f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&p&&!V[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var i=v.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){V(e,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&w(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=st.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(t,e,n){return C(e)?M.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?M.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?M.grep(t,(function(t){return-1)[^>]*|#([\w-]+))$/;(M.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||k,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof M?e[0]:e,M.merge(this,M.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),x.test(i[1])&&M.isPlainObject(e))for(i in e)C(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=m.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):C(t)?void 0!==n.ready?n.ready(t):t(M):M.makeArray(t,this)}).prototype=M.fn,k=M(m);var E=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function T(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}M.fn.extend({has:function(t){var e=M(t,this),n=e.length;return this.filter((function(){for(var t=0;t\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;dt=m.createDocumentFragment().appendChild(m.createElement("div")),(ut=m.createElement("input")).setAttribute("type","radio"),ut.setAttribute("checked","checked"),ut.setAttribute("name","t"),dt.appendChild(ut),f.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="",f.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="",f.option=!!dt.lastChild;var pt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function mt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&V(t,e)?M.merge([t],n):n}function gt(t,e){for(var n=0,i=t.length;n",""]);var vt=/<|&#?\w+;/;function yt(t,e,n,i,r){for(var o,a,s,l,c,d,u=e.createDocumentFragment(),h=[],f=0,C=t.length;f\s*$/g;function St(t,e){return V(t,"table")&&V(11!==e.nodeType?e:e.firstChild,"tr")&&M(t).children("tbody")[0]||t}function kt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Dt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Et(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(K.hasData(t)&&(s=K.get(t).events))for(r in K.remove(e,"handle events"),s)for(n=0,i=s[r].length;n").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Be,qe=[],Ue=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=qe.pop()||M.expando+"_"+Me.guid++;return this[t]=!0,t}}),M.ajaxPrefilter("json jsonp",(function(e,n,i){var r,o,a,s=!1!==e.jsonp&&(Ue.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ue.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=C(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ue,"$1"+r):!1!==e.jsonp&&(e.url+=(Le.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||M.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always((function(){void 0===o?M(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,qe.push(r)),a&&C(o)&&o(a[0]),a=o=void 0})),"script"})),f.createHTMLDocument=((Be=m.implementation.createHTMLDocument("").body).innerHTML="
",2===Be.childNodes.length),M.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(f.createHTMLDocument?((i=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(i)):e=m),o=!n&&[],(r=x.exec(t))?[e.createElement(r[1])]:(r=yt([t],e,o),o&&o.length&&M(o).remove(),M.merge([],r.childNodes)));var i,r,o},M.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return-1").append(M.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},M.expr.pseudos.animated=function(t){return M.grep(M.timers,(function(e){return t===e.elem})).length},M.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c=M.css(t,"position"),d=M(t),u={};"static"===c&&(t.style.position="relative"),s=d.offset(),o=M.css(t,"top"),l=M.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(a=(i=d.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),C(e)&&(e=e.call(t,n,M.extend({},s))),null!=e.top&&(u.top=e.top-s.top+a),null!=e.left&&(u.left=e.left-s.left+r),"using"in e?e.using.call(t,u):d.css(u)}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){M.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===M.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===M.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=M(t).offset()).top+=M.css(t,"borderTopWidth",!0),r.left+=M.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-M.css(i,"marginTop",!0),left:e.left-r.left-M.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===M.css(t,"position");)t=t.offsetParent;return t||it}))}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;M.fn[t]=function(i){return F(this,(function(t,i,r){var o;if(p(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),M.each(["top","left"],(function(t,e){M.cssHooks[e]=Rt(f.pixelPosition,(function(t,n){if(n)return n=It(t,e),At.test(n)?M(t).position()[e]+"px":n}))})),M.each({Height:"height",Width:"width"},(function(t,e){M.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){M.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return F(this,(function(e,n,r){var o;return p(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?M.css(e,n,s):M.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){M.fn[e]=function(t){return this.on(e,t)}})),M.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),M.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(t,e){M.fn[e]=function(t,n){return 0{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&"#"!==n?n.trim():null}return e},n=t=>{const n=e(t);return n&&document.querySelector(n)?n:null},i=t=>{const n=e(t);return n?document.querySelector(n):null},r=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),a=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,s=(t,e,n)=>{Object.keys(n).forEach((i=>{const r=n[i],a=e[i],s=a&&o(a)?"element":null==(l=a)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(r).test(s))throw new TypeError(`${t.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}))},l=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},u=()=>{},h=t=>{t.offsetHeight},f=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},C=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=f();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(C.length||document.addEventListener("DOMContentLoaded",(()=>{C.forEach((t=>t()))})),C.push(e)):e()},g=t=>{"function"==typeof t&&t()},v=(e,n,i=!0)=>{if(!i)return void g(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),r=Number.parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(n)+5;let a=!1;const s=({target:i})=>{i===n&&(a=!0,n.removeEventListener(t,s),g(e))};n.addEventListener(t,s),setTimeout((()=>{a||r(n)}),o)},y=(t,e,n,i)=>{let r=t.indexOf(e);if(-1===r)return t[!n&&i?t.length-1:0];const o=t.length;return r+=n?1:-1,i&&(r=(r+o)%o),t[Math.max(0,Math.min(r,o-1))]},b=/[^.]*(?=\..*)\.|.*/,M=/\..*/,L=/::\d+$/,z={};let w=1;const H={mouseenter:"mouseover",mouseleave:"mouseout"},_=/^(mouseenter|mouseleave)/i,V=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 x(t,e){return e&&`${e}::${w++}`||t.uidEvent||w++}function S(t){const e=x(t);return t.uidEvent=e,z[e]=z[e]||{},z[e]}function k(t,e,n=null){const i=Object.keys(t);for(let r=0,o=i.length;rfunction(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};i?i=t(i):n=t(n)}const[o,a,s]=D(e,n,i),l=S(t),c=l[s]||(l[s]={}),d=k(c,a,o?n:null);if(d)return void(d.oneOff=d.oneOff&&r);const u=x(a,e.replace(b,"")),h=o?function(t,e,n){return function i(r){const o=t.querySelectorAll(e);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(let s=o.length;s--;)if(o[s]===a)return r.delegateTarget=a,i.oneOff&&A.off(t,r.type,e,n),n.apply(a,[r]);return null}}(t,n,i):function(t,e){return function n(i){return i.delegateTarget=t,n.oneOff&&A.off(t,i.type,e),e.apply(t,[i])}}(t,n);h.delegationSelector=o?n:null,h.originalHandler=a,h.oneOff=r,h.uidEvent=u,c[u]=h,t.addEventListener(s,h,o)}function $(t,e,n,i,r){const o=k(e[n],i,r);o&&(t.removeEventListener(n,o,Boolean(r)),delete e[n][o.uidEvent])}function T(t){return t=t.replace(M,""),H[t]||t}const A={on(t,e,n,i){E(t,e,n,i,!1)},one(t,e,n,i){E(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[r,o,a]=D(e,n,i),s=a!==e,l=S(t),c=e.startsWith(".");if(void 0!==o){if(!l||!l[a])return;return void $(t,l,a,o,r?n:null)}c&&Object.keys(l).forEach((n=>{!function(t,e,n,i){const r=e[n]||{};Object.keys(r).forEach((o=>{if(o.includes(i)){const i=r[o];$(t,e,n,i.originalHandler,i.delegationSelector)}}))}(t,l,n,e.slice(1))}));const d=l[a]||{};Object.keys(d).forEach((n=>{const i=n.replace(L,"");if(!s||e.includes(i)){const e=d[n];$(t,l,a,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=f(),r=T(e),o=e!==r,a=V.has(r);let s,l=!0,c=!0,d=!1,u=null;return o&&i&&(s=i.Event(e,n),i(t).trigger(s),l=!s.isPropagationStopped(),c=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented()),a?(u=document.createEvent("HTMLEvents"),u.initEvent(r,l,!0)):u=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(u,t,{get:()=>n[t]})})),d&&u.preventDefault(),c&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==s&&s.preventDefault(),u}},O=new Map,P={set(t,e,n){O.has(t)||O.set(t,new Map);const i=O.get(t);i.has(e)||0===i.size?i.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(t,e)=>O.has(t)&&O.get(t).get(e)||null,remove(t,e){if(!O.has(t))return;const n=O.get(t);n.delete(e),0===n.size&&O.delete(t)}};class N{constructor(t){(t=a(t))&&(this._element=t,P.set(this._element,this.constructor.DATA_KEY,this))}dispose(){P.remove(this._element,this.constructor.DATA_KEY),A.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,n=!0){v(t,e,n)}static getInstance(t){return P.get(a(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e: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=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;A.on(document,n,`[data-bs-dismiss="${r}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),c(this))return;const o=i(this)||this.closest(`.${r}`);t.getOrCreateInstance(o)[e]()}))};class R extends N{static get NAME(){return"alert"}close(){if(A.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),A.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=R.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}I(R,"close"),m(R);const j='[data-bs-toggle="button"]';class F extends N{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=F.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function B(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function q(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}A.on(document,"click.bs.button.data-api",j,(t=>{t.preventDefault();const e=t.target.closest(j);F.getOrCreateInstance(e).toggle()})),m(F);const U={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${q(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${q(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=B(t.dataset[n])})),e},getDataAttribute:(t,e)=>B(t.getAttribute(`data-bs-${q(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},W={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const n=[];let i=t.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(e)&&n.push(i),i=i.parentNode;return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(e,t).filter((t=>!c(t)&&l(t)))}},Y="carousel",G={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Z="next",X="prev",J="left",Q="right",tt={ArrowLeft:Q,ArrowRight:J},et="slid.bs.carousel",nt="active",it=".active.carousel-item";class rt extends N{constructor(t,e){super(t),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(e),this._indicatorsElement=W.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 Y}next(){this._slide(Z)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(X)}pause(t){t||(this._isPaused=!0),W.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(r(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(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(t){this._activeElement=W.findOne(it,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void A.one(this._element,et,(()=>this.to(t)));if(e===t)return this.pause(),void this.cycle();const n=t>e?Z:X;this._slide(n,this._items[t])}_getConfig(t){return t={...G,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},s(Y,t,K),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?Q:J)}_addEventListeners(){this._config.keyboard&&A.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(A.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),A.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},n=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},i=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};W.find(".carousel-item img",this._element).forEach((t=>{A.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(A.on(this._element,"pointerdown.bs.carousel",(t=>e(t))),A.on(this._element,"pointerup.bs.carousel",(t=>i(t))),this._element.classList.add("pointer-event")):(A.on(this._element,"touchstart.bs.carousel",(t=>e(t))),A.on(this._element,"touchmove.bs.carousel",(t=>n(t))),A.on(this._element,"touchend.bs.carousel",(t=>i(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=tt[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?W.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const n=t===Z;return y(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){const n=this._getItemIndex(t),i=this._getItemIndex(W.findOne(it,this._element));return A.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=W.findOne(".active",this._indicatorsElement);e.classList.remove(nt),e.removeAttribute("aria-current");const n=W.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e{A.trigger(this._element,et,{relatedTarget:o,direction:u,from:r,to:a})};if(this._element.classList.contains("slide")){o.classList.add(d),h(o),i.classList.add(c),o.classList.add(c);const t=()=>{o.classList.remove(c,d),o.classList.add(nt),i.classList.remove(nt,d,c),this._isSliding=!1,setTimeout(f,0)};this._queueCallback(t,i,!0)}else i.classList.remove(nt),o.classList.add(nt),this._isSliding=!1,f();s&&this.cycle()}_directionToOrder(t){return[Q,J].includes(t)?p()?t===J?X:Z:t===J?Z:X:t}_orderToDirection(t){return[Z,X].includes(t)?p()?t===X?J:Q:t===X?Q:J:t}static carouselInterface(t,e){const n=rt.getOrCreateInstance(t,e);let{_config:i}=n;"object"==typeof e&&(i={...i,...e});const r="string"==typeof e?e:i.slide;if("number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError(`No method named "${r}"`);n[r]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each((function(){rt.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=i(this);if(!e||!e.classList.contains("carousel"))return;const n={...U.getDataAttributes(e),...U.getDataAttributes(this)},r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),rt.carouselInterface(e,n),r&&rt.getInstance(e).to(r),t.preventDefault()}}A.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",rt.dataApiClickHandler),A.on(window,"load.bs.carousel.data-api",(()=>{const t=W.find('[data-bs-ride="carousel"]');for(let e=0,n=t.length;et===this._element));null!==r&&o.length&&(this._selector=r,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return at}static get NAME(){return ot}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=W.find(ht,this._config.parent);e=W.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((e=>!t.includes(e)))}const n=W.findOne(this._selector);if(e.length){const i=e.find((t=>n!==t));if(t=i?Ct.getInstance(i):null,t&&t._isTransitioning)return}if(A.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e.forEach((e=>{n!==e&&Ct.getOrCreateInstance(e,{toggle:!1}).hide(),t||P.set(e,"bs.collapse",null)}));const i=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(dt),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(dt),this._element.classList.add(ct,lt),this._element.style[i]="",A.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(A.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,h(this._element),this._element.classList.add(dt),this._element.classList.remove(ct,lt);const e=this._triggerArray.length;for(let t=0;t{this._isTransitioning=!1,this._element.classList.remove(dt),this._element.classList.add(ct),A.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(lt)}_getConfig(t){return(t={...at,...U.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=a(t.parent),s(ot,t,st),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=W.find(ht,this._config.parent);W.find(ft,this._config.parent).filter((e=>!t.includes(e))).forEach((t=>{const e=i(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}))}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach((t=>{e?t.classList.remove(ut):t.classList.add(ut),t.setAttribute("aria-expanded",e)}))}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const n=Ct.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}))}}A.on(document,"click.bs.collapse.data-api",ft,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=n(this);W.find(e).forEach((t=>{Ct.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),m(Ct);var pt="top",mt="bottom",gt="right",vt="left",yt="auto",bt=[pt,mt,gt,vt],Mt="start",Lt="end",zt="clippingParents",wt="viewport",Ht="popper",_t="reference",Vt=bt.reduce((function(t,e){return t.concat([e+"-"+Mt,e+"-"+Lt])}),[]),xt=[].concat(bt,[yt]).reduce((function(t,e){return t.concat([e,e+"-"+Mt,e+"-"+Lt])}),[]),St="beforeRead",kt="read",Dt="afterRead",Et="beforeMain",$t="main",Tt="afterMain",At="beforeWrite",Ot="write",Pt="afterWrite",Nt=[St,kt,Dt,Et,$t,Tt,At,Ot,Pt];function It(t){return t?(t.nodeName||"").toLowerCase():null}function Rt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jt(t){return t instanceof Rt(t).Element||t instanceof Element}function Ft(t){return t instanceof Rt(t).HTMLElement||t instanceof HTMLElement}function Bt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Rt(t).ShadowRoot||t instanceof ShadowRoot)}const qt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];Ft(r)&&It(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});Ft(i)&&It(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ut(t){return t.split("-")[0]}function Wt(t,e){var n=t.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 Yt(t){var e=Wt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Gt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Bt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Kt(t){return Rt(t).getComputedStyle(t)}function Zt(t){return["table","td","th"].indexOf(It(t))>=0}function Xt(t){return((jt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jt(t){return"html"===It(t)?t:t.assignedSlot||t.parentNode||(Bt(t)?t.host:null)||Xt(t)}function Qt(t){return Ft(t)&&"fixed"!==Kt(t).position?t.offsetParent:null}function te(t){for(var e=Rt(t),n=Qt(t);n&&Zt(n)&&"static"===Kt(n).position;)n=Qt(n);return n&&("html"===It(n)||"body"===It(n)&&"static"===Kt(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ft(t)&&"fixed"===Kt(t).position)return null;for(var n=Jt(t);Ft(n)&&["html","body"].indexOf(It(n))<0;){var i=Kt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function ee(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var ne=Math.max,ie=Math.min,re=Math.round;function oe(t,e,n){return ne(t,ie(e,n))}function ae(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function se(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}const le={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ut(n.placement),l=ee(s),c=[vt,gt].indexOf(s)>=0?"height":"width";if(o&&a){var d=function(t,e){return ae("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:se(t,bt))}(r.padding,n),u=Yt(o),h="y"===l?pt:vt,f="y"===l?mt:gt,C=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],p=a[l]-n.rects.reference[l],m=te(o),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=C/2-p/2,y=d[h],b=g-u[c]-d[f],M=g/2-u[c]/2+v,L=oe(y,M,b),z=l;n.modifiersData[i]=((e={})[z]=L,e.centerOffset=L-M,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Gt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ce(t){return t.split("-")[1]}var de={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ue(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=!0===d?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:re(re(e*i)/i)||0,y:re(re(n*i)/i)||0}}(a):"function"==typeof d?d(a):a,h=u.x,f=void 0===h?0:h,C=u.y,p=void 0===C?0:C,m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),v=vt,y=pt,b=window;if(c){var M=te(n),L="clientHeight",z="clientWidth";M===Rt(n)&&"static"!==Kt(M=Xt(n)).position&&"absolute"===s&&(L="scrollHeight",z="scrollWidth"),r!==pt&&(r!==vt&&r!==gt||o!==Lt)||(y=mt,p-=M[L]-i.height,p*=l?1:-1),r!==vt&&(r!==pt&&r!==mt||o!==Lt)||(v=gt,f-=M[z]-i.width,f*=l?1:-1)}var w,H=Object.assign({position:s},c&&de);return l?Object.assign({},H,((w={})[y]=g?"0":"",w[v]=m?"0":"",w.transform=(b.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",w)):Object.assign({},H,((e={})[y]=g?p+"px":"",e[v]=m?f+"px":"",e.transform="",e))}const he={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:Ut(e.placement),variation:ce(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ue(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ue(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var fe={passive:!0};const Ce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,l=Rt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,fe)})),s&&l.addEventListener("resize",n.update,fe),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,fe)})),s&&l.removeEventListener("resize",n.update,fe)}},data:{}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function me(t){return t.replace(/left|right|bottom|top/g,(function(t){return pe[t]}))}var ge={start:"end",end:"start"};function ve(t){return t.replace(/start|end/g,(function(t){return ge[t]}))}function ye(t){var e=Rt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function be(t){return Wt(Xt(t)).left+ye(t).scrollLeft}function Me(t){var e=Kt(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Le(t){return["html","body","#document"].indexOf(It(t))>=0?t.ownerDocument.body:Ft(t)&&Me(t)?t:Le(Jt(t))}function ze(t,e){var n;void 0===e&&(e=[]);var i=Le(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=Rt(i),a=r?[o].concat(o.visualViewport||[],Me(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ze(Jt(a)))}function we(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function He(t,e){return e===wt?we(function(t){var e=Rt(t),n=Xt(t),i=e.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,s=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:r,height:o,x:a+be(t),y:s}}(t)):Ft(e)?function(t){var e=Wt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):we(function(t){var e,n=Xt(t),i=ye(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=ne(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=ne(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+be(t),l=-i.scrollTop;return"rtl"===Kt(r||n).direction&&(s+=ne(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(Xt(t)))}function _e(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?Ut(r):null,a=r?ce(r):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case pt:e={x:s,y:n.y-i.height};break;case mt:e={x:s,y:n.y+n.height};break;case gt:e={x:n.x+n.width,y:l};break;case vt:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=o?ee(o):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case Mt:e[c]=e[c]-(n[d]/2-i[d]/2);break;case Lt:e[c]=e[c]+(n[d]/2-i[d]/2)}}return e}function Ve(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.boundary,a=void 0===o?zt:o,s=n.rootBoundary,l=void 0===s?wt:s,c=n.elementContext,d=void 0===c?Ht:c,u=n.altBoundary,h=void 0!==u&&u,f=n.padding,C=void 0===f?0:f,p=ae("number"!=typeof C?C:se(C,bt)),m=d===Ht?_t:Ht,g=t.rects.popper,v=t.elements[h?m:d],y=function(t,e,n){var i="clippingParents"===e?function(t){var e=ze(Jt(t)),n=["absolute","fixed"].indexOf(Kt(t).position)>=0&&Ft(t)?te(t):t;return jt(n)?e.filter((function(t){return jt(t)&&Gt(t,n)&&"body"!==It(t)})):[]}(t):[].concat(e),r=[].concat(i,[n]),o=r[0],a=r.reduce((function(e,n){var i=He(t,n);return e.top=ne(i.top,e.top),e.right=ie(i.right,e.right),e.bottom=ie(i.bottom,e.bottom),e.left=ne(i.left,e.left),e}),He(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(jt(v)?v:v.contextElement||Xt(t.elements.popper),a,l),b=Wt(t.elements.reference),M=_e({reference:b,element:g,strategy:"absolute",placement:r}),L=we(Object.assign({},g,M)),z=d===Ht?L:b,w={top:y.top-z.top+p.top,bottom:z.bottom-y.bottom+p.bottom,left:y.left-z.left+p.left,right:z.right-y.right+p.right},H=t.modifiersData.offset;if(d===Ht&&H){var _=H[r];Object.keys(w).forEach((function(t){var e=[gt,mt].indexOf(t)>=0?1:-1,n=[pt,mt].indexOf(t)>=0?"y":"x";w[t]+=_[n]*e}))}return w}const xe={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,C=void 0===f||f,p=n.allowedAutoPlacements,m=e.options.placement,g=Ut(m),v=l||(g!==m&&C?function(t){if(Ut(t)===yt)return[];var e=me(t);return[ve(t),e,ve(e)]}(m):[me(m)]),y=[m].concat(v).reduce((function(t,n){return t.concat(Ut(n)===yt?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?xt:l,d=ce(i),u=d?s?Vt:Vt.filter((function(t){return ce(t)===d})):bt,h=u.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=u);var f=h.reduce((function(e,n){return e[n]=Ve(t,{placement:n,boundary:r,rootBoundary:o,padding:a})[Ut(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:C,allowedAutoPlacements:p}):n)}),[]),b=e.rects.reference,M=e.rects.popper,L=new Map,z=!0,w=y[0],H=0;H=0,k=S?"width":"height",D=Ve(e,{placement:_,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),E=S?x?gt:vt:x?mt:pt;b[k]>M[k]&&(E=me(E));var $=me(E),T=[];if(o&&T.push(D[V]<=0),s&&T.push(D[E]<=0,D[$]<=0),T.every((function(t){return t}))){w=_,z=!1;break}L.set(_,T)}if(z)for(var A=function(t){var e=y.find((function(e){var n=L.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return w=e,"break"},O=C?3:1;O>0&&"break"!==A(O);O--);e.placement!==w&&(e.modifiersData[i]._skip=!0,e.placement=w,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Se(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ke(t){return[pt,gt,mt,vt].some((function(e){return t[e]>=0}))}const De={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=Ve(e,{elementContext:"reference"}),s=Ve(e,{altBoundary:!0}),l=Se(a,i),c=Se(s,r,o),d=ke(l),u=ke(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},Ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,a=xt.reduce((function(t,n){return t[n]=function(t,e,n){var i=Ut(t),r=[vt,pt].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[vt,gt].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=a}},$e={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=_e({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Te={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,f=void 0===h||h,C=n.tetherOffset,p=void 0===C?0:C,m=Ve(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),g=Ut(e.placement),v=ce(e.placement),y=!v,b=ee(g),M="x"===b?"y":"x",L=e.modifiersData.popperOffsets,z=e.rects.reference,w=e.rects.popper,H="function"==typeof p?p(Object.assign({},e.rects,{placement:e.placement})):p,_={x:0,y:0};if(L){if(o||s){var V="y"===b?pt:vt,x="y"===b?mt:gt,S="y"===b?"height":"width",k=L[b],D=L[b]+m[V],E=L[b]-m[x],$=f?-w[S]/2:0,T=v===Mt?z[S]:w[S],A=v===Mt?-w[S]:-z[S],O=e.elements.arrow,P=f&&O?Yt(O):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=N[V],R=N[x],j=oe(0,z[S],P[S]),F=y?z[S]/2-$-j-I-H:T-j-I-H,B=y?-z[S]/2+$+j+R+H:A+j+R+H,q=e.elements.arrow&&te(e.elements.arrow),U=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,W=e.modifiersData.offset?e.modifiersData.offset[e.placement][b]:0,Y=L[b]+F-W-U,G=L[b]+B-W;if(o){var K=oe(f?ie(D,Y):D,k,f?ne(E,G):E);L[b]=K,_[b]=K-k}if(s){var Z="x"===b?pt:vt,X="x"===b?mt:gt,J=L[M],Q=J+m[Z],tt=J-m[X],et=oe(f?ie(Q,Y):Q,J,f?ne(tt,G):tt);L[M]=et,_[M]=et-J}}e.modifiersData[i]=_}},requiresIfExists:["offset"]};function Ae(t,e,n){void 0===n&&(n=!1);var i=Ft(e);Ft(e)&&function(t){var e=t.getBoundingClientRect();e.width,t.offsetWidth,e.height,t.offsetHeight}(e);var r,o,a=Xt(e),s=Wt(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==It(e)||Me(a))&&(l=(r=e)!==Rt(r)&&Ft(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ye(r)),Ft(e)?((c=Wt(e)).x+=e.clientLeft,c.y+=e.clientTop):a&&(c.x=be(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Oe(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ne(){for(var t=arguments.length,e=new Array(t),n=0;nA.on(t,"mouseover",u))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Je),this._element.classList.add(Je),A.trigger(this._element,"shown.bs.dropdown",t)}hide(){if(c(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){A.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>A.off(t,"mouseover",u))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Je),this._element.classList.remove(Je),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),A.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...U.getDataAttributes(this._element),...t},s(qe,t,this.constructor.DefaultType),"object"==typeof t.reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${qe.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===Be)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:o(this._config.reference)?e=a(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=Fe(e,this._menu,n),i&&U.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Je)}_getMenuElement(){return W.next(this._element,tn)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return an;if(t.classList.contains("dropstart"))return sn;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?nn:en:e?on:rn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const n=W.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);n.length&&y(n,e,t===Ge,!n.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=dn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=W.find(Qe);for(let n=0,i=e.length;ne+t)),this._setElementAttributes(un,"paddingRight",(e=>e+t)),this._setElementAttributes(hn,"marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){const i=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+i)return;this._saveInitialAttribute(t,e);const r=window.getComputedStyle(t)[e];t.style[e]=`${n(Number.parseFloat(r))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(un,"paddingRight"),this._resetElementAttributes(hn,"marginRight")}_saveInitialAttribute(t,e){const n=t.style[e];n&&U.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const n=U.getDataAttribute(t,e);void 0===n?t.style.removeProperty(e):(U.removeDataAttribute(t,e),t.style[e]=n)}))}_applyManipulationCallback(t,e){o(t)?e(t):W.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const Cn={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",gn="mousedown.bs.backdrop";class vn{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&h(this._getElement()),this._getElement().classList.add(mn),this._emulateAnimation((()=>{g(t)}))):g(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation((()=>{this.dispose(),g(t)}))):g(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t={...Cn,..."object"==typeof t?t:{}}).rootElement=a(t.rootElement),s("backdrop",t,pn),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),A.on(this._getElement(),gn,(()=>{g(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(A.off(this._element,gn),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const yn={trapElement:null,autofocus:!0},bn={trapElement:"element",autofocus:"boolean"},Mn=".bs.focustrap",Ln="backward";class zn{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),A.off(document,Mn),A.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),A.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,A.off(document,Mn))}_handleFocusin(t){const{target:e}=t,{trapElement:n}=this._config;if(e===document||e===n||n.contains(e))return;const i=W.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===Ln?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?Ln:"forward")}_getConfig(t){return t={...yn,..."object"==typeof t?t:{}},s("focustrap",t,bn),t}}const wn="modal",Hn="Escape",_n={backdrop:!0,keyboard:!0,focus:!0},Vn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},xn="hidden.bs.modal",Sn="show.bs.modal",kn="resize.bs.modal",Dn="click.dismiss.bs.modal",En="keydown.dismiss.bs.modal",$n="mousedown.dismiss.bs.modal",Tn="modal-open",An="show",On="modal-static";class Pn extends N{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=W.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 fn}static get Default(){return _n}static get NAME(){return wn}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||A.trigger(this._element,Sn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Tn),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),A.on(this._dialog,$n,(()=>{A.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;if(A.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(An),A.off(this._element,Dn),A.off(this._dialog,$n),this._queueCallback((()=>this._hideModal()),this._element,t)}dispose(){[window,this._dialog].forEach((t=>A.off(t,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new vn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new zn({trapElement:this._element})}_getConfig(t){return t={..._n,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},s(wn,t,Vn),t}_showElement(t){const e=this._isAnimated(),n=W.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),e&&h(this._element),this._element.classList.add(An),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,A.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,e)}_setEscapeEvent(){this._isShown?A.on(this._element,En,(t=>{this._config.keyboard&&t.key===Hn?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Hn||this._triggerBackdropTransition()})):A.off(this._element,En)}_setResizeEvent(){this._isShown?A.on(window,kn,(()=>this._adjustDialog())):A.off(window,kn)}_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(Tn),this._resetAdjustments(),this._scrollBar.reset(),A.trigger(this._element,xn)}))}_showBackdrop(t){A.on(this._element,Dn,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(A.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:n}=this._element,i=e>document.documentElement.clientHeight;!i&&"hidden"===n.overflowY||t.contains(On)||(i||(n.overflowY="hidden"),t.add(On),this._queueCallback((()=>{t.remove(On),i||this._queueCallback((()=>{n.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!p()||n&&!t&&p())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!p()||!n&&t&&p())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const n=Pn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===n[t])throw new TypeError(`No method named "${t}"`);n[t](e)}}))}}A.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=i(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),A.one(e,Sn,(t=>{t.defaultPrevented||A.one(e,xn,(()=>{l(this)&&this.focus()}))}));const n=W.findOne(".modal.show");n&&Pn.getInstance(n).hide(),Pn.getOrCreateInstance(e).toggle(this)})),I(Pn),m(Pn);const Nn="offcanvas",In={backdrop:!0,keyboard:!0,scroll:!1},Rn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},jn="show",Fn=".offcanvas.show",Bn="hidden.bs.offcanvas";class qn extends N{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Nn}static get Default(){return In}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||A.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(jn),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),A.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(A.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(jn),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 fn).reset(),A.trigger(this._element,Bn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...In,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}},s(Nn,t,Rn),t}_initializeBackDrop(){return new vn({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new zn({trapElement:this._element})}_addEventListeners(){A.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}A.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=i(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;A.one(e,Bn,(()=>{l(this)&&this.focus()}));const n=W.findOne(Fn);n&&n!==e&&qn.getInstance(n).hide(),qn.getOrCreateInstance(e).toggle(this)})),A.on(window,"load.bs.offcanvas.data-api",(()=>W.find(Fn).forEach((t=>qn.getOrCreateInstance(t).show())))),I(qn),m(qn);const Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Yn=/^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=(t,e)=>{const n=t.nodeName.toLowerCase();if(e.includes(n))return!Un.has(n)||Boolean(Wn.test(t.nodeValue)||Yn.test(t.nodeValue));const i=e.filter((t=>t instanceof RegExp));for(let t=0,e=i.length;t{Gn(t,a)||n.removeAttribute(t.nodeName)}))}return i.body.innerHTML}const Zn="tooltip",Xn=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"},ti={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},ei={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"},ni="fade",ii="show",ri="show",oi="out",ai=".tooltip-inner",si=".modal",li="hide.bs.modal",ci="hover",di="focus";class ui extends N{constructor(t,e){if(void 0===Be)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return ti}static get NAME(){return Zn}static get Event(){return ei}static get DefaultType(){return Jn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(ii))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),A.off(this._element.closest(si),li,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 t=A.trigger(this._element,this.constructor.Event.SHOW),e=d(this._element),n=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(ai).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),r=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);i.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this._config.animation&&i.classList.add(ni);const o="function"==typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);const{container:s}=this._config;P.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),A.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Fe(this._element,i,this._getPopperConfig(a)),i.classList.add(ii);const l=this._resolvePossibleFunction(this._config.customClass);l&&i.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{A.on(t,"mouseover",u)}));const c=this.tip.classList.contains(ni);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,A.trigger(this._element,this.constructor.Event.SHOWN),t===oi&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(A.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(ii),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>A.off(t,"mouseover",u))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(ni);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==ri&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),A.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(ni,ii),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),ai)}_sanitizeAndSetContent(t,e,n){const i=W.findOne(n,t);e||!i?this.setElementContent(i,e):i.remove()}setElementContent(t,e){if(null!==t)return o(e)?(e=a(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Kn(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,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:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Qn[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)A.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===ci?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=t===ci?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;A.on(this._element,e,this._config.selector,(t=>this._enter(t))),A.on(this._element,n,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},A.on(this._element.closest(si),li,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?di:ci]=!0),e.getTipElement().classList.contains(ii)||e._hoverState===ri?e._hoverState=ri:(clearTimeout(e._timeout),e._hoverState=ri,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===ri&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?di:ci]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=oi,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===oi&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=U.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Xn.has(t)&&delete e[t]})),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:a(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),s(Zn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Kn(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=t.getAttribute("class").match(e);null!==n&&n.length>0&&n.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=ui.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(ui);const hi={...ui.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},fi={...ui.DefaultType,content:"(string|element|function)"},Ci={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 pi extends ui{static get Default(){return hi}static get NAME(){return"popover"}static get Event(){return Ci}static get DefaultType(){return fi}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=pi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(pi);const mi="scrollspy",gi={offset:10,method:"auto",target:""},vi={offset:"number",method:"string",target:"(string|element)"},yi="active",bi=".nav-link, .list-group-item, .dropdown-item",Mi="position";class Li extends N{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,A.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return gi}static get NAME(){return mi}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":Mi,e="auto"===this._config.method?t:this._config.method,i=e===Mi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),W.find(bi,this._config.target).map((t=>{const r=n(t),o=r?W.findOne(r):null;if(o){const t=o.getBoundingClientRect();if(t.width||t.height)return[U[e](o).top+i,r]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){A.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){return(t={...gi,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=a(t.target)||document.documentElement,s(mi,t,vi),t}_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 t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),n=W.findOne(e.join(","),this._config.target);n.classList.add(yi),n.classList.contains("dropdown-item")?W.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(yi):W.parents(n,".nav, .list-group").forEach((t=>{W.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add(yi))),W.prev(t,".nav-item").forEach((t=>{W.children(t,".nav-link").forEach((t=>t.classList.add(yi)))}))})),A.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){W.find(bi,this._config.target).filter((t=>t.classList.contains(yi))).forEach((t=>t.classList.remove(yi)))}static jQueryInterface(t){return this.each((function(){const e=Li.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}A.on(window,"load.bs.scrollspy.data-api",(()=>{W.find('[data-bs-spy="scroll"]').forEach((t=>new Li(t)))})),m(Li);const zi="active",wi="fade",Hi="show",_i=".active",Vi=":scope > li > .active";class xi extends N{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(zi))return;let t;const e=i(this._element),n=this._element.closest(".nav, .list-group");if(n){const e="UL"===n.nodeName||"OL"===n.nodeName?Vi:_i;t=W.find(e,n),t=t[t.length-1]}const r=t?A.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(A.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==r&&r.defaultPrevented)return;this._activate(this._element,n);const o=()=>{A.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),A.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,n){const i=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?W.children(e,_i):W.find(Vi,e))[0],r=n&&i&&i.classList.contains(wi),o=()=>this._transitionComplete(t,i,n);i&&r?(i.classList.remove(Hi),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,n){if(e){e.classList.remove(zi);const t=W.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(zi),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(zi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),h(t),t.classList.contains(wi)&&t.classList.add(Hi);let i=t.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&W.find(".dropdown-toggle",e).forEach((t=>t.classList.add(zi))),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each((function(){const e=xi.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}A.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this)||xi.getOrCreateInstance(this).show()})),m(xi);const Si="toast",ki="hide",Di="show",Ei="showing",$i={animation:"boolean",autohide:"boolean",delay:"number"},Ti={animation:!0,autohide:!0,delay:5e3};class Ai extends N{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return $i}static get Default(){return Ti}static get NAME(){return Si}show(){A.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(ki),h(this._element),this._element.classList.add(Di),this._element.classList.add(Ei),this._queueCallback((()=>{this._element.classList.remove(Ei),A.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(Di)&&(A.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ei),this._queueCallback((()=>{this._element.classList.add(ki),this._element.classList.remove(Ei),this._element.classList.remove(Di),A.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(Di)&&this._element.classList.remove(Di),super.dispose()}_getConfig(t){return t={...Ti,...U.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},s(Si,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){A.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),A.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),A.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),A.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Ai.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return I(Ai),m(Ai),{Alert:R,Button:F,Carousel:rt,Collapse:Ct,Dropdown:dn,Modal:Pn,Offcanvas:qn,Popover:pi,ScrollSpy:Li,Tab:xi,Toast:Ai,Tooltip:ui}})),function(){"use strict";var t={},e={};try{"undefined"!=typeof window&&(t=window),"undefined"!=typeof document&&(e=document)}catch(t){}var n=void 0===(h=(t.navigator||{}).userAgent)?"":h,i=t,r=e;function o(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)),i}function a(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n>>0;n--;)e[n]=t[n];return e}function K(t){return t.classList?G(t.classList):(t.getAttribute("class")||"").split(" ").filter((function(t){return t}))}function Z(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function X(t){return Object.keys(t||{}).reduce((function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")}),"")}function J(t){return t.size!==W.size||t.x!==W.x||t.y!==W.y||t.rotate!==W.rotate||t.flipX||t.flipY}function Q(){var t,e,n=b,i=B.familyPrefix,r=B.replacementClass,o=':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"===i&&r===n||(t=new RegExp("\\.".concat("fa","\\-"),"g"),e=new RegExp("\\--".concat("fa","\\-"),"g"),n=new RegExp("\\.".concat(n),"g"),o=o.replace(t,".".concat(i,"-")).replace(e,"--".concat(i,"-")).replace(n,".".concat(r))),o}var tt=!1;function et(){B.autoAddCss&&!tt&&(function(t){if(t&&v){var e=C.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=C.head.childNodes,i=null,r=n.length-1;-1").concat(r.map(at).join(""),"")}function st(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function lt(t,e,n,i){for(var r,o,a=Object.keys(t),s=a.length,l=void 0!==i?ct(e,i):e,c=void 0===n?(r=1,t[a[0]]):(r=0,n);r":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var n=t.getAttribute("data-select2-id");return null!=n||(n=t.id?"select2-data-"+t.id:"select2-data-"+(++r).toString()+"-"+e.generateChars(4),t.setAttribute("data-select2-id",n)),n},e.StoreData=function(t,n,i){t=e.GetUniqueElementId(t),e.__cache[t]||(e.__cache[t]={}),e.__cache[t][n]=i},e.GetData=function(n,i){var r=e.GetUniqueElementId(n);return i?e.__cache[r]&&null!=e.__cache[r][i]?e.__cache[r][i]:t(n).data(i):e.__cache[r]},e.RemoveData=function(t){var n=e.GetUniqueElementId(t);null!=e.__cache[n]&&delete e.__cache[n],t.removeAttribute("data-select2-id")},e.copyNonInternalCssClasses=function(t,e){var n=(n=t.getAttribute("class").trim().split(/\s+/)).filter((function(t){return 0===t.indexOf("select2-")}));e=(e=e.getAttribute("class").trim().split(/\s+/)).filter((function(t){return 0!==t.indexOf("select2-")})),e=n.concat(e),t.setAttribute("class",e.join(" "))},e})),L.define("select2/results",["jquery","./utils"],(function(t,e){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('
    ');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t(''),r=this.options.get("translations").get(e.message);i.append(n(r(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(d),l.append(c),l.append(a)}else this.template(n,i);return e.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",(function(t){r.clear(),r.append(t.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(t){r.append(t.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),n.on("results:select",(function(){var t,n=r.getHighlightedResults();0!==n.length&&(t=e.GetData(n[0],"data"),n.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:t}))})),n.on("results:previous",(function(){var t,e=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(e);i<=0||(t=i-1,0===e.length&&(t=0),(i=n.eq(t)).trigger("mouseenter"),e=r.$results.offset().top,n=i.offset().top,i=r.$results.scrollTop()+(n-e),0===t?r.$results.scrollTop(0):n-e<0&&r.$results.scrollTop(i))})),n.on("results:next",(function(){var t,e=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(e)+1;i>=n.length||((t=n.eq(i)).trigger("mouseenter"),e=r.$results.offset().top+r.$results.outerHeight(!1),n=t.offset().top+t.outerHeight(!1),t=r.$results.scrollTop()+n-e,0===i?r.$results.scrollTop(0):ethis.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},n.prototype.template=function(e,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup");null==(e=i(e,n))?n.style.display="none":"string"==typeof e?n.innerHTML=r(e):t(n).append(e)},n})),L.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}})),L.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var n=t('');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.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},i.prototype.bind=function(t,e){var i=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){i.trigger("focus",t)})),this.$selection.on("blur",(function(t){i._handleBlur(t)})),this.$selection.on("keydown",(function(t){i.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){i.update(t.data)})),t.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(t)})),t.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)})),t.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(e){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)}),1)},i.prototype._attachCloseHandler=function(n){t(document.body).on("mousedown.select2."+n.id,(function(n){var i=t(n.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=i[0]&&e.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),L.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t[0].classList.add("select2-selection--single"),t.html(''),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t("")},r.prototype.update=function(t){var e,n;0!==t.length?(n=t[0],e=this.$selection.find(".select2-selection__rendered"),t=this.display(n,e),e.empty().append(t),(n=n.title||n.text)?e.attr("title",n):e.removeAttr("title")):this.clear()},r})),L.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,n){function i(t,e){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t[0].classList.add("select2-selection--multiple"),t.html('
      '),t},i.prototype.bind=function(e,r){var o=this;i.__super__.bind.apply(this,arguments);var a=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){var i;o.isDisabled()||(i=t(this).parent(),i=n.GetData(i[0],"data"),o.trigger("unselect",{originalEvent:e,data:i}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(t){o.isDisabled()||t.stopPropagation()}))},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t('
    • ')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r')).attr("title",o()),e.attr("aria-label",o()),e.attr("aria-describedby",r),n.StoreData(e[0],"data",i),this.$selection.prepend(e),this.$selection[0].classList.add("select2-selection--clearable"))},i})),L.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,n){function i(t,e,n){t.call(this,e,n)}return i.prototype.render=function(e){var n=this.options.get("translations").get("search"),i=t('');return this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),e=e.call(this),this._transferTabIndex(),e.append(this.$searchContainer),e},i.prototype.bind=function(t,i,r){var o=this,a=i.id+"-results",s=i.id+"-container";t.call(this,i,r),o.$search.attr("aria-describedby",s),i.on("open",(function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")})),i.on("close",(function(){o.$search.val(""),o.resizeSearch(),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),i.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),i.on("disable",(function(){o.$search.prop("disabled",!0)})),i.on("focus",(function(t){o.$search.trigger("focus")})),i.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){var i;t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which!==n.BACKSPACE||""!==o.$search.val()||0<(i=o.$selection.find(".select2-selection__choice").last()).length&&(i=e.GetData(i[0],"data"),o.searchRemoveChoice(i),t.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(t){o.$search.val()&&t.stopPropagation()}));var l=(i=document.documentMode)&&i<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){var e;l&&"input"===t.type?o.$selection.off("input.search input.searchcheck"):(e=t.which)!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&o.handleSearch(t)}))},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){var t;this.resizeSearch(),this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="100%";""===this.$search.attr("placeholder")&&(t=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",t)},i})),L.define("select2/selection/selectionCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var n=e.call(this);return-1!==(e=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(e=e.replace(":all:",""),t.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(e),n},e})),L.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,n,i),n.on("*",(function(e,n){var i;-1!==o.indexOf(e)&&(n=n||{},i=t.Event("select2:"+e,{params:n}),r.$element.trigger(i),-1!==a.indexOf(e)&&(n.prevented=i.isDefaultPrevented()))}))},e})),L.define("select2/translation",["jquery","require"],(function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){var i;return t in n._cache||(i=e(t),n._cache[t]=i),new n(n._cache[t])},n})),L.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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),L.define("select2/data/base",["../utils"],(function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){return e=e.id+"-result-",e+=t.generateChars(4),null!=n.id?e+="-"+n.id.toString():e+="-"+t.generateChars(4),e},e})),L.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=this;t(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(t){return e.item(n(t))})))},i.prototype.select=function(t){var e,n=this;if(t.selected=!0,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(e){var i=[];(t=[t]).push.apply(t,e);for(var r=0;rthis.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t})),L.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",(function(){i._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,n){var i=this;this._checkIfMaximumSelected((function(){t.call(i,e,n)}))},t.prototype._checkIfMaximumSelected=function(t,e){var n=this;this.current((function(t){t=null!=t?t.length:0,0=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):e&&e()}))},t})),L.define("select2/dropdown",["jquery","./utils"],(function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),L.define("select2/dropdown/search",["jquery"],(function(t){function e(){}return e.prototype.render=function(e){var n=e.call(this),i=this.options.get("translations").get("search");return e=t(''),this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(e),n},e.prototype.bind=function(e,n,i){var r=this,o=n.id+"-results";e.call(this,n,i),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},e.prototype.handleSearch=function(t){var e;this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e})),L.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e?{id:"",text:e}:e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;0<=i;i--){var r=e[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},t})),L.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",(function(t){i.lastParams=t,i.loading=!0})),e.on("query:append",(function(t){i.lastParams=t,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('
    • '),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e})),L.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function n(e,n,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,n,i)}return n.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)})),e.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e[0].classList.remove("select2"),e[0].classList.add("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("");return e=e.call(this),n.append(e),this.$dropdownContainer=n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(t,e){var n;this._containerResultsHandlersBound||(n=this,e.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0)},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id;(i=this.$container.parents().filter(e.hasScroll)).each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),i.on(o,(function(n){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(o+" "+a+" "+s,(function(t){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id;i="orientationchange.select2."+i.id,this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+i)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),d=lo.bottom+s,l={left:o.left,top:a.bottom},"static"===(c=this.$dropdownParent).css("position")&&(c=c.offsetParent()),o={top:0,left:0},(t.contains(document.body,c[0])||c[0].isConnected)&&(o=c.offset()),l.top-=o.top,l.left-=o.left,n||i||(r="below"),e||!d||n?!d&&e&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(l.top=a.top-o.top-s),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(l)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),L.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(e[0],"element",this.$element),e},r})),L.define("jquery-mousewheel",["jquery"],(function(t){return t})),L.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,n,i,r){var o;return null==t.fn.select2&&(o=["open","close","destroy"],t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var i=t.extend(!0,{},e);new n(t(this),i)})),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,a)})),-1").attr("id",e.containerId).addClass(e.positionClass)).appendTo(t(e.target)),l}(e)),l}function n(e){for(var n=l.children(),r=n.length-1;r>=0;r--)i(t(n[r]),e)}function i(e,n,i){var r=!(!i||!i.force)&&i.force;return!(!e||!r&&0!==t(":focus",e).length||(e[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){s(e)}}),0))}function r(t){c&&c(t)}function o(n){function i(t){return null==t&&(t=""),t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function o(e){var n=e&&!1!==c.closeMethod?c.closeMethod:c.hideMethod,i=e&&!1!==c.closeDuration?c.closeDuration:c.hideDuration,o=e&&!1!==c.closeEasing?c.closeEasing:c.hideEasing;if(!t(":focus",C).length||e)return clearTimeout(y.intervalId),C[n]({duration:i,easing:o,complete:function(){s(C),clearTimeout(f),c.onHidden&&"hidden"!==b.state&&c.onHidden(),b.state="hidden",b.endTime=new Date,r(b)}})}var c=a(),h=n.iconClass||c.iconClass;if(void 0!==n.optionsOverride&&(c=t.extend(c,n.optionsOverride),h=n.optionsOverride.iconClass||h),!function(t,e){if(t.preventDuplicates){if(e.message===d)return!0;d=e.message}return!1}(c,n)){u++,l=e(c,!0);var f=null,C=t("
      "),p=t("
      "),m=t("
      "),g=t("
      "),v=t(c.closeHtml),y={intervalId:null,hideEta:null,maxHideTime:null},b={toastId:u,state:"visible",startTime:new Date,options:c,map:n};return n.iconClass&&C.addClass(c.toastClass).addClass(h),function(){if(n.title){var t=n.title;c.escapeHtml&&(t=i(n.title)),p.append(t).addClass(c.titleClass),C.append(p)}}(),function(){if(n.message){var t=n.message;c.escapeHtml&&(t=i(n.message)),m.append(t).addClass(c.messageClass),C.append(m)}}(),c.closeButton&&(v.addClass(c.closeClass).attr("role","button"),C.prepend(v)),c.progressBar&&(g.addClass(c.progressClass),C.prepend(g)),c.rtl&&C.addClass("rtl"),c.newestOnTop?l.prepend(C):l.append(C),function(){var t="";switch(n.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}C.attr("aria-live",t)}(),C.hide(),C[c.showMethod]({duration:c.showDuration,easing:c.showEasing,complete:c.onShown}),c.timeOut>0&&(f=setTimeout(o,c.timeOut),y.maxHideTime=parseFloat(c.timeOut),y.hideEta=(new Date).getTime()+y.maxHideTime,c.progressBar&&(y.intervalId=setInterval((function(){var t=(y.hideEta-(new Date).getTime())/y.maxHideTime*100;g.width(t+"%")}),10))),c.closeOnHover&&C.hover((function(){clearTimeout(f),y.hideEta=0,C.stop(!0,!0)[c.showMethod]({duration:c.showDuration,easing:c.showEasing})}),(function(){(c.timeOut>0||c.extendedTimeOut>0)&&(f=setTimeout(o,c.extendedTimeOut),y.maxHideTime=parseFloat(c.extendedTimeOut),y.hideEta=(new Date).getTime()+y.maxHideTime)})),!c.onclick&&c.tapToDismiss&&C.click(o),c.closeButton&&v&&v.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),c.onCloseClick&&c.onCloseClick(t),o(!0)})),c.onclick&&C.click((function(t){c.onclick(t),o()})),r(b),c.debug&&console&&console.log(b),C}}function a(){return t.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(t){l||(l=e()),t.is(":visible")||(t.remove(),t=null,0===l.children().length&&(l.remove(),d=void 0))}var l,c,d,u=0,h="error",f="info",C="success",p="warning",m={clear:function(t,r){var o=a();l||e(o),i(t,o,r)||n(o)},remove:function(n){var i=a();return l||e(i),n&&0===t(":focus",n).length?void s(n):void(l.children().length&&l.remove())},error:function(t,e,n){return o({type:h,iconClass:a().iconClasses.error,message:t,optionsOverride:n,title:e})},getContainer:e,info:function(t,e,n){return o({type:f,iconClass:a().iconClasses.info,message:t,optionsOverride:n,title:e})},options:{},subscribe:function(t){c=t},success:function(t,e,n){return o({type:C,iconClass:a().iconClasses.success,message:t,optionsOverride:n,title:e})},version:"2.1.4",warning:function(t,e,n){return o({type:p,iconClass:a().iconClasses.warning,message:t,optionsOverride:n,title:e})}};return m}()}))}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).flatpickr=e()}(this,(function(){"use strict";var t=function(){return(t=Object.assign||function(t){for(var e,n=1,i=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},r={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(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%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},o=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},a=function(t){return!0===t?1:0};function s(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(i,r)}),e)}}var l=function(t){return t instanceof Array?t:[t]};function c(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function d(t,e,n){var i=window.document.createElement(t);return e=e||"",n=n||"",i.className=e,void 0!==n&&(i.textContent=n),i}function u(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function h(t,e){return e(t)?t:t.parentNode?h(t.parentNode,e):void 0}function f(t,e){var n=d("div","numInputWrapper"),i=d("input","numInput "+t),r=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==e)for(var a in e)i.setAttribute(a,e[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function C(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var p=function(){},m=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},g={D:p,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var i=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:p,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:p,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},v={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})"},y={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[y.w(t,e,n)]},F:function(t,e,n){return m(y.n(t,e,n)-1,!1,e)},G:function(t,e,n){return o(y.h(t,e,n))},H:function(t){return o(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[a(t.getHours()>11)]},M:function(t,e){return m(t.getMonth(),!0,e)},S:function(t){return o(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return o(t.getFullYear(),4)},d:function(t){return o(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return o(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return o(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},b=function(t){var e=t.config,n=void 0===e?i:e,o=t.l10n,a=void 0===o?r:o,s=t.isMobile,l=void 0!==s&&s;return function(t,e,i){var r=i||a;return void 0===n.formatDate||l?e.split("").map((function(e,i,o){return y[e]&&"\\"!==o[i-1]?y[e](t,r,n):"\\"!==e?e:""})).join(""):n.formatDate(t,e,r)}},M=function(t){var e=t.config,n=void 0===e?i:e,o=t.l10n,a=void 0===o?r:o;return function(t,e,r,o){if(0===t||t){var s,l=o||a,c=t;if(t instanceof Date)s=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)s=new Date(t);else if("string"==typeof t){var d=e||(n||i).dateFormat,u=String(t).trim();if("today"===u)s=new Date,r=!0;else if(n&&n.parseDate)s=n.parseDate(t,d);else if(/Z$/.test(u)||/GMT$/.test(u))s=new Date(t);else{for(var h=void 0,f=[],C=0,p=0,m="";C=0?new Date:new Date(y.config.minDate.getTime()),n=w(y.config);e.setHours(n.hours,n.minutes,n.seconds,e.getMilliseconds()),y.selectedDates=[e],y.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,n=C(t),i=n;void 0!==y.amPM&&n===y.amPM&&(y.amPM.textContent=y.l10n.amPM[a(y.amPM.textContent===y.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),d=c+l*(t.delta||(e?38===t.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var u=i===y.hourElement,h=i===y.minuteElement;ds&&(d=i===y.hourElement?d-s-a(!y.amPM):r,h&&N(void 0,1,y.hourElement)),y.amPM&&u&&(1===l?d+c===23:Math.abs(d-c)>l)&&(y.amPM.textContent=y.l10n.amPM[a(y.amPM.textContent===y.l10n.amPM[0])]),i.value=o(d)}}(t);var i=y._input.value;k(),Lt(),y._input.value!==i&&y._debouncedChange()}function k(){if(void 0!==y.hourElement&&void 0!==y.minuteElement){var t,e,n=(parseInt(y.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(y.minuteElement.value,10)||0)%60,r=void 0!==y.secondElement?(parseInt(y.secondElement.value,10)||0)%60:0;void 0!==y.amPM&&(t=n,e=y.amPM.textContent,n=t%12+12*a(e===y.l10n.amPM[1]));var o=void 0!==y.config.minTime||y.config.minDate&&y.minDateHasTime&&y.latestSelectedDateObj&&0===L(y.latestSelectedDateObj,y.config.minDate,!0),s=void 0!==y.config.maxTime||y.config.maxDate&&y.maxDateHasTime&&y.latestSelectedDateObj&&0===L(y.latestSelectedDateObj,y.config.maxDate,!0);if(void 0!==y.config.maxTime&&void 0!==y.config.minTime&&y.config.minTime>y.config.maxTime){var l=z(y.config.minTime.getHours(),y.config.minTime.getMinutes(),y.config.minTime.getSeconds()),c=z(y.config.maxTime.getHours(),y.config.maxTime.getMinutes(),y.config.maxTime.getSeconds()),d=z(n,i,r);if(d>c&&d=12)]),void 0!==y.secondElement&&(y.secondElement.value=o(n)))}function $(t){var e=C(t),n=parseInt(e.value)+(t.delta||0);(n/1e3>1||"Enter"===t.key&&!/[^\d]/.test(n.toString()))&&Q(n)}function T(t,e,n,i){return e instanceof Array?e.forEach((function(e){return T(t,e,n,i)})):t instanceof Array?t.forEach((function(t){return T(t,e,n,i)})):(t.addEventListener(e,n,i),void y._handlers.push({remove:function(){return t.removeEventListener(e,n,i)}}))}function A(){gt("onChange")}function O(t,e){var n=void 0!==t?y.parseDate(t):y.latestSelectedDateObj||(y.config.minDate&&y.config.minDate>y.now?y.config.minDate:y.config.maxDate&&y.config.maxDate=0&&L(t,y.selectedDates[1])<=0}(e)&&!yt(e)&&o.classList.add("inRange"),y.weekNumbers&&1===y.config.showMonths&&"prevMonthDay"!==t&&i%7==6&&y.weekNumbers.insertAdjacentHTML("beforeend",""+y.config.getWeek(e)+""),gt("onDayCreate",o),o}function R(t){t.focus(),"range"===y.config.mode&&rt(t)}function j(t){for(var e=t>0?0:y.config.showMonths-1,n=t>0?y.config.showMonths:-1,i=e;i!=n;i+=t)for(var r=y.daysContainer.children[i],o=t>0?0:r.children.length-1,a=t>0?r.children.length:-1,s=o;s!=a;s+=t){var l=r.children[s];if(-1===l.className.indexOf("hidden")&&tt(l.dateObj))return l}}function F(t,e){var n=H(),i=et(n||document.body),r=void 0!==t?t:i?n:void 0!==y.selectedDateElem&&et(y.selectedDateElem)?y.selectedDateElem:void 0!==y.todayDateElem&&et(y.todayDateElem)?y.todayDateElem:j(e>0?1:-1);void 0===r?y._input.focus():i?function(t,e){for(var n=-1===t.className.indexOf("Month")?t.dateObj.getMonth():y.currentMonth,i=e>0?y.config.showMonths:-1,r=e>0?1:-1,o=n-y.currentMonth;o!=i;o+=r)for(var a=y.daysContainer.children[o],s=n-y.currentMonth===o?t.$i+e:e<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c0?l:-1);c+=r){var d=a.children[c];if(-1===d.className.indexOf("hidden")&&tt(d.dateObj)&&Math.abs(t.$i-c)>=Math.abs(e))return R(d)}y.changeMonth(r),F(j(r),0)}(r,e):R(r)}function B(t,e){for(var n=(new Date(t,e,1).getDay()-y.l10n.firstDayOfWeek+7)%7,i=y.utils.getDaysInMonth((e-1+12)%12,t),r=y.utils.getDaysInMonth(e,t),o=window.document.createDocumentFragment(),a=y.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,u=0;c<=i;c++,u++)o.appendChild(I("flatpickr-day "+s,new Date(t,e-1,c),0,u));for(c=1;c<=r;c++,u++)o.appendChild(I("flatpickr-day",new Date(t,e,c),0,u));for(var h=r+1;h<=42-n&&(1===y.config.showMonths||u%7!=0);h++,u++)o.appendChild(I("flatpickr-day "+l,new Date(t,e+1,h%r),0,u));var f=d("div","dayContainer");return f.appendChild(o),f}function q(){if(void 0!==y.daysContainer){u(y.daysContainer),y.weekNumbers&&u(y.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e1||"dropdown"!==y.config.monthSelectorType)){var t=function(t){return!(void 0!==y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&ty.config.maxDate.getMonth())};y.monthsDropdownContainer.tabIndex=-1,y.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(y.currentYear,e).getMonth().toString(),n.textContent=m(e,y.config.shorthandCurrentMonth,y.l10n),n.tabIndex=-1,y.currentMonth===e&&(n.selected=!0),y.monthsDropdownContainer.appendChild(n)}}}function W(){var t,e=d("div","flatpickr-month"),n=window.document.createDocumentFragment();y.config.showMonths>1||"static"===y.config.monthSelectorType?t=d("span","cur-month"):(y.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),y.monthsDropdownContainer.setAttribute("aria-label",y.l10n.monthAriaLabel),T(y.monthsDropdownContainer,"change",(function(t){var e=C(t),n=parseInt(e.value,10);y.changeMonth(n-y.currentMonth),gt("onMonthChange")})),U(),t=y.monthsDropdownContainer);var i=f("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",y.l10n.yearAriaLabel),y.config.minDate&&r.setAttribute("min",y.config.minDate.getFullYear().toString()),y.config.maxDate&&(r.setAttribute("max",y.config.maxDate.getFullYear().toString()),r.disabled=!!y.config.minDate&&y.config.minDate.getFullYear()===y.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(t),o.appendChild(i),n.appendChild(o),e.appendChild(n),{container:e,yearElement:r,monthElement:t}}function Y(){u(y.monthNav),y.monthNav.appendChild(y.prevMonthNav),y.config.showMonths&&(y.yearElements=[],y.monthElements=[]);for(var t=y.config.showMonths;t--;){var e=W();y.yearElements.push(e.yearElement),y.monthElements.push(e.monthElement),y.monthNav.appendChild(e.container)}y.monthNav.appendChild(y.nextMonthNav)}function G(){y.weekdayContainer?u(y.weekdayContainer):y.weekdayContainer=d("div","flatpickr-weekdays");for(var t=y.config.showMonths;t--;){var e=d("div","flatpickr-weekdaycontainer");y.weekdayContainer.appendChild(e)}return K(),y.weekdayContainer}function K(){if(y.weekdayContainer){var t=y.l10n.firstDayOfWeek,n=e(y.l10n.weekdays.shorthand);t>0&&t\n "+n.join("")+"\n \n "}}function Z(t,e){void 0===e&&(e=!0);var n=e?t:t-y.currentMonth;n<0&&!0===y._hidePrevMonthArrow||n>0&&!0===y._hideNextMonthArrow||(y.currentMonth+=n,(y.currentMonth<0||y.currentMonth>11)&&(y.currentYear+=y.currentMonth>11?1:-1,y.currentMonth=(y.currentMonth+12)%12,gt("onYearChange"),U()),q(),gt("onMonthChange"),bt())}function X(t){return y.calendarContainer.contains(t)}function J(t){if(y.isOpen&&!y.config.inline){var e=C(t),n=X(e),i=!(e===y.input||e===y.altInput||y.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(y.input)||~t.path.indexOf(y.altInput))||n||X(t.relatedTarget)),r=!y.config.ignoredFocusElements.some((function(t){return t.contains(e)}));i&&r&&(y.config.allowInput&&y.setDate(y._input.value,!1,y.config.altInput?y.config.altFormat:y.config.dateFormat),void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement&&""!==y.input.value&&void 0!==y.input.value&&S(),y.close(),y.config&&"range"===y.config.mode&&1===y.selectedDates.length&&y.clear(!1))}}function Q(t){if(!(!t||y.config.minDate&&ty.config.maxDate.getFullYear())){var e=t,n=y.currentYear!==e;y.currentYear=e||y.currentYear,y.config.maxDate&&y.currentYear===y.config.maxDate.getFullYear()?y.currentMonth=Math.min(y.config.maxDate.getMonth(),y.currentMonth):y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&(y.currentMonth=Math.max(y.config.minDate.getMonth(),y.currentMonth)),n&&(y.redraw(),gt("onYearChange"),U())}}function tt(t,e){var n;void 0===e&&(e=!0);var i=y.parseDate(t,void 0,e);if(y.config.minDate&&i&&L(i,y.config.minDate,void 0!==e?e:!y.minDateHasTime)<0||y.config.maxDate&&i&&L(i,y.config.maxDate,void 0!==e?e:!y.maxDateHasTime)>0)return!1;if(!y.config.enable&&0===y.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!y.config.enable,o=null!==(n=y.config.enable)&&void 0!==n?n:y.config.disable,a=0,s=void 0;a=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function et(t){return void 0!==y.daysContainer&&-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&y.daysContainer.contains(t)}function nt(t){var e=t.target===y._input,n=y._input.value.trimEnd()!==Mt();!e||!n||t.relatedTarget&&X(t.relatedTarget)||y.setDate(y._input.value,!0,t.target===y.altInput?y.config.altFormat:y.config.dateFormat)}function it(t){var e=C(t),n=y.config.wrap?p.contains(e):e===y._input,i=y.config.allowInput,r=y.isOpen&&(!i||!n),o=y.config.inline&&n&&!i;if(13===t.keyCode&&n){if(i)return y.setDate(y._input.value,!0,e===y.altInput?y.config.altFormat:y.config.dateFormat),y.close(),e.blur();y.open()}else if(X(e)||r||o){var a=!!y.timeContainer&&y.timeContainer.contains(e);switch(t.keyCode){case 13:a?(t.preventDefault(),S(),ut()):ht(t);break;case 27:t.preventDefault(),ut();break;case 8:case 46:n&&!y.config.allowInput&&(t.preventDefault(),y.clear());break;case 37:case 39:if(a||n)y.hourElement&&y.hourElement.focus();else{t.preventDefault();var s=H();if(void 0!==y.daysContainer&&(!1===i||s&&et(s))){var l=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),Z(l),F(j(1),0)):F(void 0,l)}}break;case 38:case 40:t.preventDefault();var c=40===t.keyCode?1:-1;y.daysContainer&&void 0!==e.$i||e===y.input||e===y.altInput?t.ctrlKey?(t.stopPropagation(),Q(y.currentYear-c),F(j(1),0)):a||F(void 0,7*c):e===y.currentYearElement?Q(y.currentYear-c):y.config.enableTime&&(!a&&y.hourElement&&y.hourElement.focus(),S(t),y._debouncedChange());break;case 9:if(a){var d=[y.hourElement,y.minuteElement,y.secondElement,y.amPM].concat(y.pluginElements).filter((function(t){return t})),u=d.indexOf(e);if(-1!==u){var h=d[u+(t.shiftKey?-1:1)];t.preventDefault(),(h||y._input).focus()}}else!y.config.noCalendar&&y.daysContainer&&y.daysContainer.contains(e)&&t.shiftKey&&(t.preventDefault(),y._input.focus())}}if(void 0!==y.amPM&&e===y.amPM)switch(t.key){case y.l10n.amPM[0].charAt(0):case y.l10n.amPM[0].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[0],k(),Lt();break;case y.l10n.amPM[1].charAt(0):case y.l10n.amPM[1].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[1],k(),Lt()}(n||X(e))&>("onKeyDown",t)}function rt(t,e){if(void 0===e&&(e="flatpickr-day"),1===y.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var n=t?t.dateObj.getTime():y.days.firstElementChild.dateObj.getTime(),i=y.parseDate(y.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,y.selectedDates[0].getTime()),o=Math.max(n,y.selectedDates[0].getTime()),a=!1,s=0,l=0,c=r;cr&&cs)?s=c:c>i&&(!l||c ."+e)).forEach((function(e){var r,o,c,d=e.dateObj.getTime(),u=s>0&&d0&&d>l;if(u)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));a&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(n<=y.selectedDates[0].getTime()?"startRange":"endRange"),in&&d===i&&e.classList.add("endRange"),d>=s&&(0===l||d<=l)&&(o=i,c=n,(r=d)>Math.min(o,c)&&r0||n.getMinutes()>0||n.getSeconds()>0),y.selectedDates&&(y.selectedDates=y.selectedDates.filter((function(t){return tt(t)})),y.selectedDates.length||"min"!==t||D(n),Lt()),y.daysContainer&&(dt(),void 0!==n?y.currentYearElement[t]=n.getFullYear().toString():y.currentYearElement.removeAttribute(t),y.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function st(){return y.config.wrap?p.querySelector("[data-input]"):p}function lt(){"object"!=typeof y.config.locale&&void 0===V.l10ns[y.config.locale]&&y.config.errorHandler(new Error("flatpickr: invalid locale "+y.config.locale)),y.l10n=t(t({},V.l10ns.default),"object"==typeof y.config.locale?y.config.locale:"default"!==y.config.locale?V.l10ns[y.config.locale]:void 0),v.D="("+y.l10n.weekdays.shorthand.join("|")+")",v.l="("+y.l10n.weekdays.longhand.join("|")+")",v.M="("+y.l10n.months.shorthand.join("|")+")",v.F="("+y.l10n.months.longhand.join("|")+")",v.K="("+y.l10n.amPM[0]+"|"+y.l10n.amPM[1]+"|"+y.l10n.amPM[0].toLowerCase()+"|"+y.l10n.amPM[1].toLowerCase()+")",void 0===t(t({},g),JSON.parse(JSON.stringify(p.dataset||{}))).time_24hr&&void 0===V.defaultConfig.time_24hr&&(y.config.time_24hr=y.l10n.time_24hr),y.formatDate=b(y),y.parseDate=M({config:y.config,l10n:y.l10n})}function ct(t){if("function"!=typeof y.config.position){if(void 0!==y.calendarContainer){gt("onPreCalendarPosition");var e=t||y._positionElement,n=Array.prototype.reduce.call(y.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),i=y.calendarContainer.offsetWidth,r=y.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=e.getBoundingClientRect(),l=window.innerHeight-s.bottom,d="above"===o||"below"!==o&&ln,u=window.pageYOffset+s.top+(d?-n-2:e.offsetHeight+2);if(c(y.calendarContainer,"arrowTop",!d),c(y.calendarContainer,"arrowBottom",d),!y.config.inline){var h=window.pageXOffset+s.left,f=!1,C=!1;"center"===a?(h-=(i-s.width)/2,f=!0):"right"===a&&(h-=i-s.width,C=!0),c(y.calendarContainer,"arrowLeft",!f&&!C),c(y.calendarContainer,"arrowCenter",f),c(y.calendarContainer,"arrowRight",C);var p=window.document.body.offsetWidth-(window.pageXOffset+s.right),m=h+i>window.document.body.offsetWidth,g=p+i>window.document.body.offsetWidth;if(c(y.calendarContainer,"rightMost",m),!y.config.static)if(y.calendarContainer.style.top=u+"px",m)if(g){var v=function(){for(var t=null,e=0;ey.currentMonth+y.config.showMonths-1)&&"range"!==y.config.mode;if(y.selectedDateElem=n,"single"===y.config.mode)y.selectedDates=[i];else if("multiple"===y.config.mode){var o=yt(i);o?y.selectedDates.splice(parseInt(o),1):y.selectedDates.push(i)}else"range"===y.config.mode&&(2===y.selectedDates.length&&y.clear(!1,!1),y.latestSelectedDateObj=i,y.selectedDates.push(i),0!==L(i,y.selectedDates[0],!0)&&y.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(k(),r){var a=y.currentYear!==i.getFullYear();y.currentYear=i.getFullYear(),y.currentMonth=i.getMonth(),a&&(gt("onYearChange"),U()),gt("onMonthChange")}if(bt(),q(),Lt(),r||"range"===y.config.mode||1!==y.config.showMonths?void 0!==y.selectedDateElem&&void 0===y.hourElement&&y.selectedDateElem&&y.selectedDateElem.focus():R(n),void 0!==y.hourElement&&void 0!==y.hourElement&&y.hourElement.focus(),y.config.closeOnSelect){var s="single"===y.config.mode&&!y.config.enableTime,l="range"===y.config.mode&&2===y.selectedDates.length&&!y.config.enableTime;(s||l)&&ut()}A()}}y.parseDate=M({config:y.config,l10n:y.l10n}),y._handlers=[],y.pluginElements=[],y.loadedPlugins=[],y._bind=T,y._setHoursFromDate=D,y._positionCalendar=ct,y.changeMonth=Z,y.changeYear=Q,y.clear=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!0),y.input.value="",void 0!==y.altInput&&(y.altInput.value=""),void 0!==y.mobileInput&&(y.mobileInput.value=""),y.selectedDates=[],y.latestSelectedDateObj=void 0,!0===e&&(y.currentYear=y._initialDate.getFullYear(),y.currentMonth=y._initialDate.getMonth()),!0===y.config.enableTime){var n=w(y.config);E(n.hours,n.minutes,n.seconds)}y.redraw(),t&>("onChange")},y.close=function(){y.isOpen=!1,y.isMobile||(void 0!==y.calendarContainer&&y.calendarContainer.classList.remove("open"),void 0!==y._input&&y._input.classList.remove("active")),gt("onClose")},y.onMouseOver=rt,y._createElement=d,y.createDay=I,y.destroy=function(){void 0!==y.config&>("onDestroy");for(var t=y._handlers.length;t--;)y._handlers[t].remove();if(y._handlers=[],y.mobileInput)y.mobileInput.parentNode&&y.mobileInput.parentNode.removeChild(y.mobileInput),y.mobileInput=void 0;else if(y.calendarContainer&&y.calendarContainer.parentNode)if(y.config.static&&y.calendarContainer.parentNode){var e=y.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else y.calendarContainer.parentNode.removeChild(y.calendarContainer);y.altInput&&(y.input.type="text",y.altInput.parentNode&&y.altInput.parentNode.removeChild(y.altInput),delete y.altInput),y.input&&(y.input.type=y.input._type,y.input.classList.remove("flatpickr-input"),y.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(t){try{delete y[t]}catch(t){}}))},y.isEnabled=tt,y.jumpToDate=O,y.updateValue=Lt,y.open=function(t,e){if(void 0===e&&(e=y._positionElement),!0===y.isMobile){if(t){t.preventDefault();var n=C(t);n&&n.blur()}return void 0!==y.mobileInput&&(y.mobileInput.focus(),y.mobileInput.click()),void gt("onOpen")}if(!y._input.disabled&&!y.config.inline){var i=y.isOpen;y.isOpen=!0,i||(y.calendarContainer.classList.add("open"),y._input.classList.add("active"),gt("onOpen"),ct(e)),!0===y.config.enableTime&&!0===y.config.noCalendar&&(!1!==y.config.allowInput||void 0!==t&&y.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return y.hourElement.select()}),50))}},y.redraw=dt,y.set=function(t,e){if(null!==t&&"object"==typeof t)for(var i in Object.assign(y.config,t),t)void 0!==ft[i]&&ft[i].forEach((function(t){return t()}));else y.config[t]=e,void 0!==ft[t]?ft[t].forEach((function(t){return t()})):n.indexOf(t)>-1&&(y.config[t]=l(e));y.redraw(),Lt(!0)},y.setDate=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=y.config.dateFormat),0!==t&&!t||t instanceof Array&&0===t.length)return y.clear(e);Ct(t,n),y.latestSelectedDateObj=y.selectedDates[y.selectedDates.length-1],y.redraw(),O(void 0,e),D(),0===y.selectedDates.length&&y.clear(!1),Lt(e),e&>("onChange")},y.toggle=function(t){if(!0===y.isOpen)return y.close();y.open(t)};var ft={locale:[lt,K],showMonths:[Y,x,G],minDate:[O],maxDate:[O],positionElement:[mt],clickOpens:[function(){!0===y.config.clickOpens?(T(y._input,"focus",y.open),T(y._input,"click",y.open)):(y._input.removeEventListener("focus",y.open),y._input.removeEventListener("click",y.open))}]};function Ct(t,e){var n=[];if(t instanceof Array)n=t.map((function(t){return y.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)n=[y.parseDate(t,e)];else if("string"==typeof t)switch(y.config.mode){case"single":case"time":n=[y.parseDate(t,e)];break;case"multiple":n=t.split(y.config.conjunction).map((function(t){return y.parseDate(t,e)}));break;case"range":n=t.split(y.l10n.rangeSeparator).map((function(t){return y.parseDate(t,e)}))}else y.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));y.selectedDates=y.config.allowInvalidPreload?n:n.filter((function(t){return t instanceof Date&&tt(t,!1)})),"range"===y.config.mode&&y.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function pt(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?y.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:y.parseDate(t.from,void 0),to:y.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function mt(){y._positionElement=y.config.positionElement||y._input}function gt(t,e){if(void 0!==y.config){var n=y.config[t];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i1||"static"===y.config.monthSelectorType?y.monthElements[e].textContent=m(n.getMonth(),y.config.shorthandCurrentMonth,y.l10n)+" ":y.monthsDropdownContainer.value=n.getMonth().toString(),t.value=n.getFullYear().toString()})),y._hidePrevMonthArrow=void 0!==y.config.minDate&&(y.currentYear===y.config.minDate.getFullYear()?y.currentMonth<=y.config.minDate.getMonth():y.currentYeary.config.maxDate.getMonth():y.currentYear>y.config.maxDate.getFullYear()))}function Mt(t){var e=t||(y.config.altInput?y.config.altFormat:y.config.dateFormat);return y.selectedDates.map((function(t){return y.formatDate(t,e)})).filter((function(t,e,n){return"range"!==y.config.mode||y.config.enableTime||n.indexOf(t)===e})).join("range"!==y.config.mode?y.config.conjunction:y.l10n.rangeSeparator)}function Lt(t){void 0===t&&(t=!0),void 0!==y.mobileInput&&y.mobileFormatStr&&(y.mobileInput.value=void 0!==y.latestSelectedDateObj?y.formatDate(y.latestSelectedDateObj,y.mobileFormatStr):""),y.input.value=Mt(y.config.dateFormat),void 0!==y.altInput&&(y.altInput.value=Mt(y.config.altFormat)),!1!==t&>("onValueUpdate")}function zt(t){var e=C(t),n=y.prevMonthNav.contains(e),i=y.nextMonthNav.contains(e);n||i?Z(n?-1:1):y.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?y.changeYear(y.currentYear+1):e.classList.contains("arrowDown")&&y.changeYear(y.currentYear-1)}return function(){y.element=y.input=p,y.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=t(t({},JSON.parse(JSON.stringify(p.dataset||{}))),g),o={};y.config.parseDate=r.parseDate,y.config.formatDate=r.formatDate,Object.defineProperty(y.config,"enable",{get:function(){return y.config._enable},set:function(t){y.config._enable=pt(t)}}),Object.defineProperty(y.config,"disable",{get:function(){return y.config._disable},set:function(t){y.config._disable=pt(t)}});var a="time"===r.mode;if(!r.dateFormat&&(r.enableTime||a)){var s=V.defaultConfig.dateFormat||i.dateFormat;o.dateFormat=r.noCalendar||a?"H:i"+(r.enableSeconds?":S":""):s+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||a)&&!r.altFormat){var c=V.defaultConfig.altFormat||i.altFormat;o.altFormat=r.noCalendar||a?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(y.config,"minDate",{get:function(){return y.config._minDate},set:at("min")}),Object.defineProperty(y.config,"maxDate",{get:function(){return y.config._maxDate},set:at("max")});var d=function(t){return function(e){y.config["min"===t?"_minTime":"_maxTime"]=y.parseDate(e,"H:i:S")}};Object.defineProperty(y.config,"minTime",{get:function(){return y.config._minTime},set:d("min")}),Object.defineProperty(y.config,"maxTime",{get:function(){return y.config._maxTime},set:d("max")}),"time"===r.mode&&(y.config.noCalendar=!0,y.config.enableTime=!0),Object.assign(y.config,o,r);for(var u=0;u-1?y.config[f]=l(h[f]).map(_).concat(y.config[f]):void 0===r[f]&&(y.config[f]=h[f])}r.altInputClass||(y.config.altInputClass=st().className+" "+y.config.altInputClass),gt("onParseConfig")}(),lt(),y.input=st(),y.input?(y.input._type=y.input.type,y.input.type="text",y.input.classList.add("flatpickr-input"),y._input=y.input,y.config.altInput&&(y.altInput=d(y.input.nodeName,y.config.altInputClass),y._input=y.altInput,y.altInput.placeholder=y.input.placeholder,y.altInput.disabled=y.input.disabled,y.altInput.required=y.input.required,y.altInput.tabIndex=y.input.tabIndex,y.altInput.type="text",y.input.setAttribute("type","hidden"),!y.config.static&&y.input.parentNode&&y.input.parentNode.insertBefore(y.altInput,y.input.nextSibling)),y.config.allowInput||y._input.setAttribute("readonly","readonly"),mt()):y.config.errorHandler(new Error("Invalid input element specified")),function(){y.selectedDates=[],y.now=y.parseDate(y.config.now)||new Date;var t=y.config.defaultDate||("INPUT"!==y.input.nodeName&&"TEXTAREA"!==y.input.nodeName||!y.input.placeholder||y.input.value!==y.input.placeholder?y.input.value:null);t&&Ct(t,y.config.dateFormat),y._initialDate=y.selectedDates.length>0?y.selectedDates[0]:y.config.minDate&&y.config.minDate.getTime()>y.now.getTime()?y.config.minDate:y.config.maxDate&&y.config.maxDate.getTime()0&&(y.latestSelectedDateObj=y.selectedDates[0]),void 0!==y.config.minTime&&(y.config.minTime=y.parseDate(y.config.minTime,"H:i")),void 0!==y.config.maxTime&&(y.config.maxTime=y.parseDate(y.config.maxTime,"H:i")),y.minDateHasTime=!!y.config.minDate&&(y.config.minDate.getHours()>0||y.config.minDate.getMinutes()>0||y.config.minDate.getSeconds()>0),y.maxDateHasTime=!!y.config.maxDate&&(y.config.maxDate.getHours()>0||y.config.maxDate.getMinutes()>0||y.config.maxDate.getSeconds()>0)}(),y.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=y.currentMonth),void 0===e&&(e=y.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:y.l10n.daysInMonth[t]}},y.isMobile||function(){var t=window.document.createDocumentFragment();if(y.calendarContainer=d("div","flatpickr-calendar"),y.calendarContainer.tabIndex=-1,!y.config.noCalendar){if(t.appendChild((y.monthNav=d("div","flatpickr-months"),y.yearElements=[],y.monthElements=[],y.prevMonthNav=d("span","flatpickr-prev-month"),y.prevMonthNav.innerHTML=y.config.prevArrow,y.nextMonthNav=d("span","flatpickr-next-month"),y.nextMonthNav.innerHTML=y.config.nextArrow,Y(),Object.defineProperty(y,"_hidePrevMonthArrow",{get:function(){return y.__hidePrevMonthArrow},set:function(t){y.__hidePrevMonthArrow!==t&&(c(y.prevMonthNav,"flatpickr-disabled",t),y.__hidePrevMonthArrow=t)}}),Object.defineProperty(y,"_hideNextMonthArrow",{get:function(){return y.__hideNextMonthArrow},set:function(t){y.__hideNextMonthArrow!==t&&(c(y.nextMonthNav,"flatpickr-disabled",t),y.__hideNextMonthArrow=t)}}),y.currentYearElement=y.yearElements[0],bt(),y.monthNav)),y.innerContainer=d("div","flatpickr-innerContainer"),y.config.weekNumbers){var e=function(){y.calendarContainer.classList.add("hasWeeks");var t=d("div","flatpickr-weekwrapper");t.appendChild(d("span","flatpickr-weekday",y.l10n.weekAbbreviation));var e=d("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),n=e.weekWrapper,i=e.weekNumbers;y.innerContainer.appendChild(n),y.weekNumbers=i,y.weekWrapper=n}y.rContainer=d("div","flatpickr-rContainer"),y.rContainer.appendChild(G()),y.daysContainer||(y.daysContainer=d("div","flatpickr-days"),y.daysContainer.tabIndex=-1),q(),y.rContainer.appendChild(y.daysContainer),y.innerContainer.appendChild(y.rContainer),t.appendChild(y.innerContainer)}y.config.enableTime&&t.appendChild(function(){y.calendarContainer.classList.add("hasTime"),y.config.noCalendar&&y.calendarContainer.classList.add("noCalendar");var t=w(y.config);y.timeContainer=d("div","flatpickr-time"),y.timeContainer.tabIndex=-1;var e=d("span","flatpickr-time-separator",":"),n=f("flatpickr-hour",{"aria-label":y.l10n.hourAriaLabel});y.hourElement=n.getElementsByTagName("input")[0];var i=f("flatpickr-minute",{"aria-label":y.l10n.minuteAriaLabel});if(y.minuteElement=i.getElementsByTagName("input")[0],y.hourElement.tabIndex=y.minuteElement.tabIndex=-1,y.hourElement.value=o(y.latestSelectedDateObj?y.latestSelectedDateObj.getHours():y.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),y.minuteElement.value=o(y.latestSelectedDateObj?y.latestSelectedDateObj.getMinutes():t.minutes),y.hourElement.setAttribute("step",y.config.hourIncrement.toString()),y.minuteElement.setAttribute("step",y.config.minuteIncrement.toString()),y.hourElement.setAttribute("min",y.config.time_24hr?"0":"1"),y.hourElement.setAttribute("max",y.config.time_24hr?"23":"12"),y.hourElement.setAttribute("maxlength","2"),y.minuteElement.setAttribute("min","0"),y.minuteElement.setAttribute("max","59"),y.minuteElement.setAttribute("maxlength","2"),y.timeContainer.appendChild(n),y.timeContainer.appendChild(e),y.timeContainer.appendChild(i),y.config.time_24hr&&y.timeContainer.classList.add("time24hr"),y.config.enableSeconds){y.timeContainer.classList.add("hasSeconds");var r=f("flatpickr-second");y.secondElement=r.getElementsByTagName("input")[0],y.secondElement.value=o(y.latestSelectedDateObj?y.latestSelectedDateObj.getSeconds():t.seconds),y.secondElement.setAttribute("step",y.minuteElement.getAttribute("step")),y.secondElement.setAttribute("min","0"),y.secondElement.setAttribute("max","59"),y.secondElement.setAttribute("maxlength","2"),y.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),y.timeContainer.appendChild(r)}return y.config.time_24hr||(y.amPM=d("span","flatpickr-am-pm",y.l10n.amPM[a((y.latestSelectedDateObj?y.hourElement.value:y.config.defaultHour)>11)]),y.amPM.title=y.l10n.toggleTitle,y.amPM.tabIndex=-1,y.timeContainer.appendChild(y.amPM)),y.timeContainer}()),c(y.calendarContainer,"rangeMode","range"===y.config.mode),c(y.calendarContainer,"animate",!0===y.config.animate),c(y.calendarContainer,"multiMonth",y.config.showMonths>1),y.calendarContainer.appendChild(t);var r=void 0!==y.config.appendTo&&void 0!==y.config.appendTo.nodeType;if((y.config.inline||y.config.static)&&(y.calendarContainer.classList.add(y.config.inline?"inline":"static"),y.config.inline&&(!r&&y.element.parentNode?y.element.parentNode.insertBefore(y.calendarContainer,y._input.nextSibling):void 0!==y.config.appendTo&&y.config.appendTo.appendChild(y.calendarContainer)),y.config.static)){var s=d("div","flatpickr-wrapper");y.element.parentNode&&y.element.parentNode.insertBefore(s,y.element),s.appendChild(y.element),y.altInput&&s.appendChild(y.altInput),s.appendChild(y.calendarContainer)}y.config.static||y.config.inline||(void 0!==y.config.appendTo?y.config.appendTo:window.document.body).appendChild(y.calendarContainer)}(),function(){if(y.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(y.element.querySelectorAll("[data-"+t+"]"),(function(e){return T(e,"click",y[t])}))})),y.isMobile)!function(){var t=y.config.enableTime?y.config.noCalendar?"time":"datetime-local":"date";y.mobileInput=d("input",y.input.className+" flatpickr-mobile"),y.mobileInput.tabIndex=1,y.mobileInput.type=t,y.mobileInput.disabled=y.input.disabled,y.mobileInput.required=y.input.required,y.mobileInput.placeholder=y.input.placeholder,y.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",y.selectedDates.length>0&&(y.mobileInput.defaultValue=y.mobileInput.value=y.formatDate(y.selectedDates[0],y.mobileFormatStr)),y.config.minDate&&(y.mobileInput.min=y.formatDate(y.config.minDate,"Y-m-d")),y.config.maxDate&&(y.mobileInput.max=y.formatDate(y.config.maxDate,"Y-m-d")),y.input.getAttribute("step")&&(y.mobileInput.step=String(y.input.getAttribute("step"))),y.input.type="hidden",void 0!==y.altInput&&(y.altInput.type="hidden");try{y.input.parentNode&&y.input.parentNode.insertBefore(y.mobileInput,y.input.nextSibling)}catch(t){}T(y.mobileInput,"change",(function(t){y.setDate(C(t).value,!1,y.mobileFormatStr),gt("onChange"),gt("onClose")}))}();else{var t=s(ot,50);y._debouncedChange=s(A,300),y.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&T(y.daysContainer,"mouseover",(function(t){"range"===y.config.mode&&rt(C(t))})),T(y._input,"keydown",it),void 0!==y.calendarContainer&&T(y.calendarContainer,"keydown",it),y.config.inline||y.config.static||T(window,"resize",t),void 0!==window.ontouchstart?T(window.document,"touchstart",J):T(window.document,"mousedown",J),T(window.document,"focus",J,{capture:!0}),!0===y.config.clickOpens&&(T(y._input,"focus",y.open),T(y._input,"click",y.open)),void 0!==y.daysContainer&&(T(y.monthNav,"click",zt),T(y.monthNav,["keyup","increment"],$),T(y.daysContainer,"click",ht)),void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement&&(T(y.timeContainer,["increment"],S),T(y.timeContainer,"blur",S,{capture:!0}),T(y.timeContainer,"click",P),T([y.hourElement,y.minuteElement],["focus","click"],(function(t){return C(t).select()})),void 0!==y.secondElement&&T(y.secondElement,"focus",(function(){return y.secondElement&&y.secondElement.select()})),void 0!==y.amPM&&T(y.amPM,"click",(function(t){S(t)}))),y.config.allowInput&&T(y._input,"blur",nt)}}(),(y.selectedDates.length||y.config.noCalendar)&&(y.config.enableTime&&D(y.config.noCalendar?y.latestSelectedDateObj:void 0),Lt(!1)),x();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!y.isMobile&&e&&ct(),gt("onReady")}(),y}function _(t,e){for(var n=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),i=[],r=0;r]/g)||[]).length<=0||t(n).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var r=this.o=t.extend({},this._o),o=r.language;C[o]||(o=o.split("-")[0],C[o]||(o=h.language)),r.language=o,r.startView=this._resolveViewName(r.startView),r.minViewMode=this._resolveViewName(r.minViewMode),r.maxViewMode=this._resolveViewName(r.maxViewMode),r.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,r.startView)),!0!==r.multidate&&(r.multidate=Number(r.multidate)||!1,!1!==r.multidate&&(r.multidate=Math.max(0,r.multidate))),r.multidateSeparator=String(r.multidateSeparator),r.weekStart%=7,r.weekEnd=(r.weekStart+6)%7;var a=p.parseFormat(r.format);r.startDate!==-1/0&&(r.startDate?r.startDate instanceof Date?r.startDate=this._local_to_utc(this._zero_time(r.startDate)):r.startDate=p.parseDate(r.startDate,a,r.language,r.assumeNearbyYear):r.startDate=-1/0),r.endDate!==1/0&&(r.endDate?r.endDate instanceof Date?r.endDate=this._local_to_utc(this._zero_time(r.endDate)):r.endDate=p.parseDate(r.endDate,a,r.language,r.assumeNearbyYear):r.endDate=1/0),r.daysOfWeekDisabled=this._resolveDaysOfWeek(r.daysOfWeekDisabled||[]),r.daysOfWeekHighlighted=this._resolveDaysOfWeek(r.daysOfWeekHighlighted||[]),r.datesDisabled=r.datesDisabled||[],t.isArray(r.datesDisabled)||(r.datesDisabled=r.datesDisabled.split(",")),r.datesDisabled=t.map(r.datesDisabled,(function(t){return p.parseDate(t,a,r.language,r.assumeNearbyYear)}));var s=String(r.orientation).toLowerCase().split(/\s+/g),l=r.orientation.toLowerCase();if(s=t.grep(s,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),r.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===s.length)switch(s[0]){case"top":case"bottom":r.orientation.y=s[0];break;case"left":case"right":r.orientation.x=s[0]}else l=t.grep(s,(function(t){return/^left|right$/.test(t)})),r.orientation.x=l[0]||"auto",l=t.grep(s,(function(t){return/^top|bottom$/.test(t)})),r.orientation.y=l[0]||"auto";if(r.defaultViewDate instanceof Date||"string"==typeof r.defaultViewDate)r.defaultViewDate=p.parseDate(r.defaultViewDate,a,r.language,r.assumeNearbyYear);else if(r.defaultViewDate){var c=r.defaultViewDate.year||(new Date).getFullYear(),d=r.defaultViewDate.month||0,u=r.defaultViewDate.day||1;r.defaultViewDate=n(c,d,u)}else r.defaultViewDate=i()},_applyEvents:function(t){for(var n,i,r,o=0;or?(this.picker.addClass("datepicker-orient-right"),h+=u-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var C=this.o.orientation.y;if("auto"===C&&(C=-o+f-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+C),"top"===C?f-=n+parseInt(this.picker.css("padding-top")):f+=d,this.o.rtl){var p=r-(h+u);this.picker.css({top:f,right:p,zIndex:l})}else this.picker.css({top:f,left:h,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),n=[],i=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)}),this)),i=!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=t.map(n,t.proxy((function(t){return p.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=t.grep(n,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),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),i?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&i&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');e";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+=''+C[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var n=[],o=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=i();return e.getUTCFullYear()o||e.getUTCFullYear()===o&&e.getUTCMonth()>a)&&n.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&r(e,s)&&n.push("today"),-1!==this.dates.contains(e)&&n.push("active"),this.dateWithinRange(e)||n.push("disabled"),this.dateIsDisabled(e)&&n.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(e>this.range[0]&&es)&&c.push("disabled"),y===g&&c.push("focused"),l!==t.noop&&((u=l(new Date(y,0,1)))===e?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&c.push("disabled"),u.classes&&(c=c.concat(u.classes.split(/\s+/))),u.tooltip&&(d=u.tooltip)),h+='"+y+"";C.find(".datepicker-switch").text(p+"-"+m),C.find("td").html(h)},fill:function(){var r,o,a=new Date(this.viewDate),s=a.getUTCFullYear(),l=a.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,d=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=C[this.o.language].today||C.en.today||"",m=C[this.o.language].clear||C.en.clear||"",g=C[this.o.language].titleFormat||C.en.titleFormat,v=i(),y=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&v>=this.o.startDate&&v<=this.o.endDate&&!this.weekOfDateIsDisabled(v);if(!isNaN(s)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(p.formatDate(a,g,this.o.language)),this.picker.find("tfoot .today").text(f).css("display",y?"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 b=n(s,l,0),M=b.getUTCDate();b.setUTCDate(M-(b.getUTCDay()-this.o.weekStart+7)%7);var L=new Date(b);b.getUTCFullYear()<100&&L.setUTCFullYear(b.getUTCFullYear()),L.setUTCDate(L.getUTCDate()+42),L=L.valueOf();for(var z,w,H=[];b.valueOf()"),this.o.calendarWeeks)){var _=new Date(+b+(this.o.weekStart-z-7)%7*864e5),V=new Date(Number(_)+(11-_.getUTCDay())%7*864e5),x=new Date(Number(x=n(V.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),S=(V-x)/864e5/7+1;H.push(''+S+"")}(w=this.getClassNames(b)).push("day");var k=b.getUTCDate();this.o.beforeShowDay!==t.noop&&((o=this.o.beforeShowDay(this._utc_to_local(b)))===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&w.push("disabled"),o.classes&&(w=w.concat(o.classes.split(/\s+/))),o.tooltip&&(r=o.tooltip),o.content&&(k=o.content)),w=t.isFunction(t.uniqueSort)?t.uniqueSort(w):t.unique(w),H.push(''+k+""),r=null,z===this.o.weekEnd&&H.push(""),b.setUTCDate(b.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(H.join(""));var D=C[this.o.language].monthsTitle||C.en.monthsTitle||"Months",E=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?D:s).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===s&&E.eq(e.getUTCMonth()).addClass("active")})),(su)&&E.addClass("disabled"),s===c&&E.slice(0,d).addClass("disabled"),s===u&&E.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var $=this;t.each(E,(function(n,i){var r=new Date(s,n,1),o=$.o.beforeShowMonth(r);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1!==o.enabled||t(i).hasClass("disabled")||t(i).addClass("disabled"),o.classes&&t(i).addClass(o.classes),o.tooltip&&t(i).prop("title",o.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,s,c,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,c,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,c,u,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,a=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(i/c)*c<=o,e=Math.floor(i/c)*c+c>s;break;case 0:t=i<=o&&r<=a,e=i>=s&&r>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var r,o,a;e.preventDefault(),e.stopPropagation(),(r=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),1===this.viewMode?(a=r.parent().find("span").index(r),o=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,o=Number(r.text()),this.viewDate.setUTCFullYear(o)),this._trigger(p.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(o,a,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(e){var n=t(e.currentTarget).data("date"),i=new Date(n);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(i)},navArrowsClick:function(e){var n=t(e.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(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!function(t){return t&&!isNaN(t.getTime())}(t))return this.o.defaultViewDate;if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),s=Math.abs(e);if(e=e>0?1:-1,1===s)i=-1===e?function(){return r.getUTCMonth()===a}:function(){return r.getUTCMonth()!==n},n=a+e,r.setUTCMonth(n),n=(n+12)%12;else{for(var l=0;l0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,i=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(r,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+p.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(e,n){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(n.inputs,(function(t){return t.jquery?t[0]:t})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,u.call(t(this.inputs),n).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};c.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,n){n.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var i=t.data(n.target,"datepicker");if(i!==e){var r=i.getUTCDate(),o=this.keepEmptyValues,a=t.inArray(n.target,this.inputs),s=a-1,l=a+1,c=this.inputs.length;if(-1!==a){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==i&&o||e.setUTCDate(r)})),r=0&&rthis.dates[l])for(;lthis.dates[l];)this.pickers[l++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=t.fn.datepicker,u=function(n){var i,r=Array.apply(null,arguments);if(r.shift(),this.each((function(){var e=t(this),o=e.data("datepicker"),s="object"==typeof n&&n;if(!o){var d=function(e,n){function i(t,e){return e.toLowerCase()}var r=t(e).data(),o={},a=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var s in n=new RegExp("^"+n.toLowerCase()),r)n.test(s)&&(o[s.replace(a,i)]=r[s]);return o}(this,"date"),u=a(t.extend({},h,d,s).language),f=t.extend({},h,u,d,s);e.hasClass("input-daterange")||f.inputs?(t.extend(f,{inputs:f.inputs||e.find("input").toArray()}),o=new c(this,f)):o=new l(this,f),e.data("datepicker",o)}"string"==typeof n&&"function"==typeof o[n]&&(i=o[n].apply(o,r))})),i===e||i instanceof l||i instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return i};t.fn.datepicker=u;var h=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.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},f=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=l;var C=t.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(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(n,r,o,a){function s(){var t=this.slice(0,c[h].length),e=c[h].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!n)return e;if(n instanceof Date)return n;if("string"==typeof r&&(r=p.parseFormat(r)),r.toValue)return r.toValue(n,r,o);var c,d,u,h,f,m={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in g&&(n=g[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(c=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,h=0;h(new Date).getFullYear()+e&&(t-=100),t}(e,a):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};L.yy=L.yyyy,L.M=L.MM=L.mm=L.m,L.dd=L.d,n=i();var z=r.parts.slice();if(c.length!==z.length&&(z=t(z).filter((function(e,n){return-1!==t.inArray(n,M)})).toArray()),c.length===z.length){var w,H,_;for(h=0,w=z.length;h'+h.templates.leftArrow+''+h.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+"
      ",t.fn.datepicker.DPGlobal=p,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.9.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),u.call(n,"show"))})),t((function(){u.call(t('[data-provide="datepicker-inline"]'))}))})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,(function(){"use strict";var t;function e(){return t.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(r(t,e))return;return 1}function a(t){return void 0===t}function s(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){for(var n=[],i=t.length,r=0;r>>0,i=0;ixt(t)?(o=t+1,e-xt(t)):(o=t,e),{year:o,dayOfYear:n}}function Tt(t,e,n){var i,r,o=Et(t.year(),e,n);return(o=Math.floor((t.dayOfYear()-o-1)/7)+1)<1?i=o+At(r=t.year()-1,e,n):o>At(t.year(),e,n)?(i=o-At(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function At(t,e,n){var i=Et(t,e,n);return e=Et(t+1,e,n),(xt(t)-i+e)/7}function Ot(t,e){return t.slice(e,7).concat(t.slice(0,e))}T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),F("week",5),F("isoWeek",5),ut("w",tt),ut("ww",tt,Z),ut("W",tt),ut("WW",tt,Z),vt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=U(t)})),T("d",0,"do","day"),T("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),T("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),T("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ut("d",tt),ut("e",tt),ut("E",tt),ut("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ut("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ut("dddd",(function(t,e){return e.weekdaysRegex(t)})),vt(["dd","ddd","dddd"],(function(t,e,n,i){null!=(i=n._locale.weekdaysParse(t,i,n._strict))?e.d=i:h(n).invalidWeekday=t})),vt(["d","e","E"],(function(t,e,n,i){e[i]=U(t)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=dt,jt=dt,Ft=dt;function Bt(){function t(t,e){return e.length-t.length}for(var e,n,i,r=[],o=[],a=[],s=[],l=0;l<7;l++)i=u([2e3,1]).day(l),e=ft(this.weekdaysMin(i,"")),n=ft(this.weekdaysShort(i,"")),i=ft(this.weekdays(i,"")),r.push(e),o.push(n),a.push(i),s.push(e),s.push(n),s.push(i);r.sort(t),o.sort(t),a.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function qt(){return this.hours()%12||12}function Ut(t,e){T(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Wt(t,e){return e._meridiemParse}T("H",["HH",2],0,"hour"),T("h",["hh",2],0,qt),T("k",["kk",2],0,(function(){return this.hours()||24})),T("hmm",0,0,(function(){return""+qt.apply(this)+S(this.minutes(),2)})),T("hmmss",0,0,(function(){return""+qt.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)})),T("Hmm",0,0,(function(){return""+this.hours()+S(this.minutes(),2)})),T("Hmmss",0,0,(function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)})),Ut("a",!0),Ut("A",!1),N("hour","h"),F("hour",13),ut("a",Wt),ut("A",Wt),ut("H",tt),ut("h",tt),ut("k",tt),ut("HH",tt,Z),ut("hh",tt,Z),ut("kk",tt,Z),ut("hmm",et),ut("hmmss",nt),ut("Hmm",et),ut("Hmmss",nt),gt(["H","HH"],3),gt(["k","kk"],(function(t,e,n){t=U(t),e[3]=24===t?0:t})),gt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),gt(["h","hh"],(function(t,e,n){e[3]=U(t),h(n).bigHour=!0})),gt("hmm",(function(t,e,n){var i=t.length-2;e[3]=U(t.substr(0,i)),e[4]=U(t.substr(i)),h(n).bigHour=!0})),gt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=U(t.substr(0,i)),e[4]=U(t.substr(i,2)),e[5]=U(t.substr(r)),h(n).bigHour=!0})),gt("Hmm",(function(t,e,n){var i=t.length-2;e[3]=U(t.substr(0,i)),e[4]=U(t.substr(i))})),gt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=U(t.substr(0,i)),e[4]=U(t.substr(i,2)),e[5]=U(t.substr(r))})),dt=W("Hours",!0);var Yt,Gt={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:bt,monthsShort:Mt,week:{dow:0,doy:6},weekdays:Pt,weekdaysMin:It,weekdaysShort:Nt,meridiemParse:/[ap]\.?m?\.?/i},Kt={},Zt={};function Xt(t){return t&&t.toLowerCase().replace("_","-")}function Jt(t){var e;if(void 0===Kt[t]&&"undefined"!=typeof module&&module&&module.exports&&null!=t.match("^[^/\\\\]*$"))try{e=Yt._abbr,require("./locale/"+t),Qt(e)}catch(e){Kt[t]=null}return Kt[t]}function Qt(t,e){return t&&((e=a(e)?ee(t):te(t,e))?Yt=e:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Yt._abbr}function te(t,e){if(null===e)return delete Kt[t],null;var n,i=Gt;if(e.abbr=t,null!=Kt[t])w("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."),i=Kt[t]._config;else if(null!=e.parentLocale)if(null!=Kt[e.parentLocale])i=Kt[e.parentLocale]._config;else{if(null==(n=Jt(e.parentLocale)))return Zt[e.parentLocale]||(Zt[e.parentLocale]=[]),Zt[e.parentLocale].push({name:t,config:e}),null;i=n._config}return Kt[t]=new V(_(i,e)),Zt[t]&&Zt[t].forEach((function(t){te(t.name,t.config)})),Qt(t),Kt[t]}function ee(t){var e;if(!(t=t&&t._locale&&t._locale._abbr?t._locale._abbr:t))return Yt;if(!n(t)){if(e=Jt(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o=e&&function(t,e){for(var n=Math.min(t.length,e.length),i=0;i=e-1)break;e--}o++}return Yt}(t)}function ne(t){var e=t._a;return e&&-2===h(t).overflow&&(e=e[1]<0||11yt(e[0],e[1])?2:e[3]<0||24At(a,c,d)?h(r)._overflowWeeks=!0:null!=u?h(r)._overflowWeekday=!0:(f=$t(a,s,l,c,d),r._a[0]=f.year,r._dayOfYear=f.dayOfYear)),null!=t._dayOfYear&&(o=fe(t._a[0],i[0]),(t._dayOfYear>xt(o)||0===t._dayOfYear)&&(h(t)._overflowDayOfYear=!0),u=Dt(o,0,t._dayOfYear),t._a[1]=u.getUTCMonth(),t._a[2]=u.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=C[n]=i[n];for(;n<7;n++)t._a[n]=C[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Dt:kt).apply(null,C),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(h(t).weekdayMismatch=!0)}}function pe(t){if(t._f===e.ISO_8601)ue(t);else if(t._f===e.RFC_2822)he(t);else{t._a=[],h(t).empty=!0;for(var n,i,o,a,s,l=""+t._i,c=l.length,d=0,u=O(t._f,t._locale).match(k)||[],f=u.length,C=0;Ct.valueOf():t.valueOf()"}),K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},K.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},K.eraName=function(){for(var t,e=this.localeData().eras(),n=0,i=e.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},K.isLocal=function(){return!!this.isValid()&&!this._isUTC},K.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},K.isUtc=Se,K.isUTC=Se,K.zoneAbbr=function(){return this._isUTC?"UTC":""},K.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},K.dates=L("dates accessor is deprecated. Use date instead.",rt),K.months=L("months accessor is deprecated. Use month instead",_t),K.years=L("years accessor is deprecated. Use year instead",St),K.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?(this.utcOffset(t="string"!=typeof t?-t:t,e),this):-this.utcOffset()})),K.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t,e={};return v(e,this),(e=me(e))._a?(t=(e._isUTC?u:ve)(e._a),this._isDSTShifted=this.isValid()&&00;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),a--;var s,l,c;if(void 0===i.startDate&&void 0===i.endDate&&e(this.element).is(":text")){var d=e(this.element).val(),u=d.split(this.locale.separator);s=l=null,2==u.length?(s=t(u[0],this.locale.format),l=t(u[1],this.locale.format)):this.singleDatePicker&&""!==d&&(s=t(d,this.locale.format),l=t(d,this.locale.format)),null!==s&&null!==l&&(this.setStartDate(s),this.setEndDate(l))}if("object"==typeof i.ranges){for(c in i.ranges){s="string"==typeof i.ranges[c][0]?t(i.ranges[c][0],this.locale.format):t(i.ranges[c][0]),l="string"==typeof i.ranges[c][1]?t(i.ranges[c][1],this.locale.format):t(i.ranges[c][1]),this.minDate&&s.isBefore(this.minDate)&&(s=this.minDate.clone());var h,f=this.maxDate;if(this.maxSpan&&f&&s.clone().add(this.maxSpan).isAfter(f)&&(f=s.clone().add(this.maxSpan)),f&&l.isAfter(f)&&(l=f.clone()),!(this.minDate&&l.isBefore(this.minDate,this.timepicker?"minute":"day")||f&&s.isAfter(f,this.timepicker?"minute":"day")))(h=document.createElement("textarea")).innerHTML=c,o=h.value,this.ranges[o]=[s,l]}var C="
        ";for(c in this.ranges)C+='
      • '+c+"
      • ";this.showCustomRangeLabel&&(C+='
      • '+this.locale.customRangeLabel+"
      • "),C+="
      ",this.container.find(".ranges").prepend(C)}"function"==typeof r&&(this.callback=r),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 i.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===i.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",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return n.prototype={constructor:n,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),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(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),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 t,e,n,i;this.timePicker&&(this.endDate?(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=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"===(i=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0))):(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=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"===(i=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0))),this.leftCalendar.month.hour(t).minute(e).second(n),this.rightCalendar.month.hour(t).minute(e).second(n));this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(n){var i,r=(i="left"==n?this.leftCalendar:this.rightCalendar).month.month(),o=i.month.year(),a=i.month.hour(),s=i.month.minute(),l=i.month.second(),c=t([o,r]).daysInMonth(),d=t([o,r,1]),u=t([o,r,c]),h=t(d).subtract(1,"month").month(),f=t(d).subtract(1,"month").year(),C=t([f,h]).daysInMonth(),p=d.day();(i=[]).firstDay=d,i.lastDay=u;for(var m=0;m<6;m++)i[m]=[];var g=C-p+this.locale.firstDay+1;g>C&&(g-=7),p==this.locale.firstDay&&(g=C-6);for(var v=t([f,h,g,12,s,l]),y=(m=0,0),b=0;m<42;m++,y++,v=t(v).add(24,"hour"))m>0&&y%7==0&&(y=0,b++),i[b][y]=v.clone().hour(a).minute(s).second(l),v.hour(12),this.minDate&&i[b][y].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&i[b][y].isBefore(this.minDate)&&"left"==n&&(i[b][y]=this.minDate.clone()),this.maxDate&&i[b][y].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&i[b][y].isAfter(this.maxDate)&&"right"==n&&(i[b][y]=this.maxDate.clone());"left"==n?this.leftCalendar.calendar=i:this.rightCalendar.calendar=i;var M="left"==n?this.minDate:this.startDate,L=this.maxDate,z=("left"==n?this.startDate:this.endDate,this.locale.direction,'');z+="",z+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(z+=""),M&&!M.isBefore(i.firstDay)||this.linkedCalendars&&"left"!=n?z+="":z+='';var w=this.locale.monthNames[i[1][1].month()]+i[1][1].format(" YYYY");if(this.showDropdowns){for(var H=i[1][1].month(),_=i[1][1].year(),V=L&&L.year()||this.maxYear,x=M&&M.year()||this.minYear,S=_==x,k=_==V,D='";for(var $='")}if(z+='",L&&!L.isAfter(i.lastDay)||this.linkedCalendars&&"right"!=n&&!this.singleDatePicker?z+="":z+='',z+="",z+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(z+='"),e.each(this.locale.daysOfWeek,(function(t,e){z+=""})),z+="",z+="",z+="",null==this.endDate&&this.maxSpan){var A=this.startDate.clone().add(this.maxSpan).endOf("day");L&&!A.isBefore(L)||(L=A)}for(b=0;b<6;b++){for(z+="",this.showWeekNumbers?z+='":this.showISOWeekNumbers&&(z+='"),y=0;y<7;y++){var O=[];i[b][y].isSame(new Date,"day")&&O.push("today"),i[b][y].isoWeekday()>5&&O.push("weekend"),i[b][y].month()!=i[1][1].month()&&O.push("off","ends"),this.minDate&&i[b][y].isBefore(this.minDate,"day")&&O.push("off","disabled"),L&&i[b][y].isAfter(L,"day")&&O.push("off","disabled"),this.isInvalidDate(i[b][y])&&O.push("off","disabled"),i[b][y].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&O.push("active","start-date"),null!=this.endDate&&i[b][y].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&O.push("active","end-date"),null!=this.endDate&&i[b][y]>this.startDate&&i[b][y]'+i[b][y].date()+""}z+=""}z+="",z+="
      '+w+"
      '+this.locale.weekLabel+""+e+"
      '+i[b][0].week()+"'+i[b][0].isoWeek()+"
      ",this.container.find(".drp-calendar."+n+" .calendar-table").html(z)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,n,i,r=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(r=this.startDate.clone().add(this.maxSpan)),"left"==t)n=this.startDate.clone(),i=this.minDate;else if("right"==t){n=this.endDate.clone(),i=this.startDate;var o=this.container.find(".drp-calendar.right .calendar-time");if(""!=o.html()&&(n.hour(isNaN(n.hour())?o.find(".hourselect option:selected").val():n.hour()),n.minute(isNaN(n.minute())?o.find(".minuteselect option:selected").val():n.minute()),n.second(isNaN(n.second())?o.find(".secondselect option:selected").val():n.second()),!this.timePicker24Hour)){var a=o.find(".ampmselect option:selected").val();"PM"===a&&n.hour()<12&&n.hour(n.hour()+12),"AM"===a&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),r&&n.isAfter(r)&&(n=r.clone())}e=' ",e+=': ",this.timePickerSeconds){for(e+=': "}if(!this.timePicker24Hour){e+='"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},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 t,n={top:0,left:0},i=this.drops,r=e(window).width();switch(this.parentEl.is("body")||(n={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},r=this.parentEl[0].clientWidth+this.parentEl.offset().left),i){case"auto":(t=this.element.offset().top+this.element.outerHeight()-n.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-n.top,i="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-n.top;break;default:t=this.element.offset().top+this.element.outerHeight()-n.top}this.container.css({top:0,left:0,right:"auto"});var o=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==i),"left"==this.opens){var a=r-this.element.offset().left-this.element.outerWidth();o+a>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:a,left:"auto"})}else if("center"==this.opens)(s=this.element.offset().left-n.left+this.element.outerWidth()/2-o/2)<0?this.container.css({top:t,right:"auto",left:9}):s+o>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:s,right:"auto"});else{var s;(s=this.element.offset().left-n.left)+o>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:s,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy((function(t){this.outsideClick(t)}),this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy((function(t){this.move(t)}),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(t){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(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var n=e(t.target);"focusin"==t.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(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[e];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(t){e(t.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(t){e(t.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(t){if(e(t.target).hasClass("available")){var n=e(t.target).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),o=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r],a=this.leftCalendar,s=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(t,n){if(!e(n).hasClass("week")){var i=e(n).attr("data-title"),r=i.substr(1,1),c=i.substr(3,1),d=e(n).parents(".drp-calendar").hasClass("left")?a.calendar[r][c]:s.calendar[r][c];d.isAfter(l)&&d.isBefore(o)||d.isSame(o,"day")?e(n).addClass("in-range"):e(n).removeClass("in-range")}}))}},clickDate:function(t){if(e(t.target).hasClass("available")){var n=e(t.target).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),o=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r];if(this.endDate||o.isBefore(this.startDate,"day")){if(this.timePicker){var a=parseInt(this.container.find(".left .hourselect").val(),10);this.timePicker24Hour||("PM"===(c=this.container.find(".left .ampmselect").val())&&a<12&&(a+=12),"AM"===c&&12===a&&(a=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 l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;o=o.clone().hour(a).minute(s).second(l)}this.endDate=null,this.setStartDate(o.clone())}else if(!this.endDate&&o.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{var c;if(this.timePicker)a=parseInt(this.container.find(".right .hourselect").val(),10),this.timePicker24Hour||("PM"===(c=this.container.find(".right .ampmselect").val())&&a<12&&(a+=12),"AM"===c&&12===a&&(a=0)),s=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(s)&&(s=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,o=o.clone().hour(a).minute(s).second(l);this.setEndDate(o.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var n in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(i)==this.ranges[n][0].format(i)&&this.endDate.format(i)==this.ranges[n][1].format(i)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").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")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var n=e(t.target).closest(".drp-calendar").hasClass("left"),i=n?"left":"right",r=this.container.find(".drp-calendar."+i),o=parseInt(r.find(".monthselect").val(),10),a=r.find(".yearselect").val();n||(athis.maxDate.year()||a==this.maxDate.year()&&o>this.maxDate.month())&&(o=this.maxDate.month(),a=this.maxDate.year()),n?(this.leftCalendar.month.month(o).year(a),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(o).year(a),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var n=e(t.target).closest(".drp-calendar"),i=n.hasClass("left"),r=parseInt(n.find(".hourselect").val(),10),o=parseInt(n.find(".minuteselect").val(),10);isNaN(o)&&(o=parseInt(n.find(".minuteselect option:last").val(),10));var a=this.timePickerSeconds?parseInt(n.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var s=n.find(".ampmselect").val();"PM"===s&&r<12&&(r+=12),"AM"===s&&12===r&&(r=0)}if(i){var l=this.startDate.clone();l.hour(r),l.minute(o),l.second(a),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var c=this.endDate.clone();c.hour(r),c.minute(o),c.second(a),this.setEndDate(c)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),n=null,i=null;2===e.length&&(n=t(e[0],this.locale.format),i=t(e[1],this.locale.format)),(this.singleDatePicker||null===n||null===i)&&(i=n=t(this.element.val(),this.locale.format)),n.isValid()&&i.isValid()&&(this.setStartDate(n),this.setEndDate(i),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,i){var r=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each((function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new n(t,r,i))})),this},n})),function(t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,i){function r(e){var n,i,o={};t.each(e,(function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=t.replace(n[0],n[2].toLowerCase()),o[i]=t,"o"===n[1]&&r(e[t]))})),e._hungarianMap=o}function o(e,n,a){var s;e._hungarianMap||r(e),t.each(n,(function(r){(s=e._hungarianMap[r])===i||!a&&n[s]!==i||("o"===s.charAt(0)?(n[s]||(n[s]={}),t.extend(!0,n[s],n[r]),o(e[s],n[s],a)):n[s]=n[r])}))}function a(t){var e=Wt.defaults.oLanguage,n=e.sDecimal;if(n&&Rt(n),t){var i=t.sZeroRecords;!t.sEmptyTable&&i&&"No data available in table"===e.sEmptyTable&&Dt(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&i&&"Loading..."===e.sLoadingRecords&&Dt(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&n!==t&&Rt(t)}}function s(t){if(ce(t,"ordering","bSort"),ce(t,"orderMulti","bSortMulti"),ce(t,"orderClasses","bSortClasses"),ce(t,"orderCellsTop","bSortCellsTop"),ce(t,"order","aaSorting"),ce(t,"orderFixed","aaSortingFixed"),ce(t,"paging","bPaginate"),ce(t,"pagingType","sPaginationType"),ce(t,"pageLength","iDisplayLength"),ce(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,n=t.length;e").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("
      ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("
      ").css({width:"100%",height:10}))).appendTo("body"),o=r.children(),a=o.children();i.barWidth=o[0].offsetWidth-o[0].clientWidth,i.bScrollOversize=100===a[0].offsetWidth&&100!==o[0].clientWidth,i.bScrollbarLeft=1!==Math.round(a.offset().left),i.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}t.extend(n.oBrowser,Wt.__browser),n.oScroll.iBarWidth=Wt.__browser.barWidth}function d(t,e,n,r,o,a){var s,l=!1;for(n!==i&&(s=n,l=!0);r!==o;)t.hasOwnProperty(r)&&(s=l?e(s,t[r],r,t):t[r],l=!0,r+=a);return s}function u(e,i){var r=Wt.defaults.column,o=e.aoColumns.length;r=t.extend({},Wt.models.oColumn,r,{nTh:i||n.createElement("th"),sTitle:r.sTitle?r.sTitle:i?i.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o}),e.aoColumns.push(r),(r=e.aoPreSearchCols)[o]=t.extend({},Wt.models.oSearch,r[o]),h(e,o,t(i).data())}function h(e,n,r){n=e.aoColumns[n];var a=e.oClasses,s=t(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var c=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(n.sWidthOrig=c[1])}r!==i&&null!==r&&(l(r),o(Wt.defaults.column,r),r.mDataProp!==i&&!r.mData&&(r.mData=r.mDataProp),r.sType&&(n._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&s.addClass(r.sClass),t.extend(n,r),Dt(n,r,"sWidth","sWidthOrig"),r.iDataSort!==i&&(n.aDataSort=[r.iDataSort]),Dt(n,r,"aDataSort"));var d=n.mData,u=H(d),h=n.mRender?H(n.mRender):null;r=function(t){return"string"==typeof t&&-1!==t.indexOf("@")},n._bAttrSrc=t.isPlainObject(d)&&(r(d.sort)||r(d.type)||r(d.filter)),n._setter=null,n.fnGetData=function(t,e,n){var r=u(t,e,i,n);return h&&e?h(r,e,t,n):r},n.fnSetData=function(t,e,n){return _(d)(t,e,n)},"number"!=typeof d&&(e._rowReadObject=!0),e.oFeatures.bSort||(n.bSortable=!1,s.addClass(a.sSortableNone)),e=-1!==t.inArray("asc",n.asSorting),r=-1!==t.inArray("desc",n.asSorting),n.bSortable&&(e||r)?e&&!r?(n.sSortingClass=a.sSortableAsc,n.sSortingClassJUI=a.sSortJUIAscAllowed):!e&&r?(n.sSortingClass=a.sSortableDesc,n.sSortingClassJUI=a.sSortJUIDescAllowed):(n.sSortingClass=a.sSortable,n.sSortingClassJUI=a.sSortJUI):(n.sSortingClass=a.sSortableNone,n.sSortingClassJUI="")}function f(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;pt(t);for(var n=0,i=e.length;nC[s])o(f.length+C[s],h);else if("string"==typeof C[s])for(c=0,d=f.length;ce&&t[o]--;-1!=r&&n===i&&t.splice(r,1)}function k(t,e,n,r){var o,a=t.aoData[e],s=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=L(t,e,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var l=a.anCells;if(l)if(r!==i)s(l[r],r);else for(n=0,o=l.length;n").appendTo(s)),n=0,i=u.length;ntr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(d.sHeaderTH),t(l).find(">tr>th, >tr>td").addClass(d.sFooterTH),null!==l)for(n=0,i=(e=e.aoFooter[0]).length;n=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1),l=e._iDisplayStart;var u=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,ut(e,!1);else if(c){if(!e.bDestroying&&!F(e))return}else e.iDraw++;if(0!==d.length)for(s=c?e.aoData.length:u,c=c?0:l;c",{class:a?o[0]:""}).append(t("",{valign:"top",colSpan:m(e),class:e.oClasses.sRowEmpty}).html(r))[0];At(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],V(e),l,u,d]),At(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],V(e),l,u,d]),(o=t(e.nTBody)).children().detach(),o.append(t(n)),At(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function P(t,e){var n=t.oFeatures,i=n.bFilter;n.bSort&&Mt(t),i?Y(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,O(t),t._drawHold=!1}function N(e){var n=e.oClasses,i=t(e.nTable),r=(i=t("
      ").insertBefore(i),e.oFeatures),o=t("
      ",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=i[0],e.nTableWrapper=o[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var a,s,l,c,d,u,h=e.sDom.split(""),f=0;f")[0],"'"==(c=h[f+1])||'"'==c){for(d="",u=2;h[f+u]!=c;)d+=h[f+u],u++;"H"==d?d=n.sJUIHeader:"F"==d&&(d=n.sJUIFooter),-1!=d.indexOf(".")?(c=d.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==d.charAt(0)?l.id=d.substr(1,d.length-1):l.className=d,f+=u}o.append(l),o=t(l)}else if(">"==s)o=o.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)a=st(e);else if("f"==s&&r.bFilter)a=W(e);else if("r"==s&&r.bProcessing)a=dt(e);else if("t"==s)a=ht(e);else if("i"==s&&r.bInfo)a=et(e);else if("p"==s&&r.bPaginate)a=lt(e);else if(0!==Wt.ext.feature.length)for(u=0,c=(l=Wt.ext.feature).length;u',c=(c=o.sSearch).match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,d=(i=t("
      ",{id:s.f?null:r+"_filter",class:i.sFilter}).append(t("
      ").addClass(n.sLength);return e.aanFeatures.l||(c[0].id=i+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",a[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",(function(){at(e,t(this).val()),O(e)})),t(e.nTable).on("length.dt.DT",(function(n,i,r){e===i&&t("select",c).val(r)})),c[0]}function lt(e){var n=e.sPaginationType,i=Wt.ext.pager[n],r="function"==typeof i,o=function(t){O(t)},a=(n=t("
      ").addClass(e.oClasses.sPaging+n)[0],e.aanFeatures);return r||i.fnInit(e,n,o),a.p||(n.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(r){var e,n=t._iDisplayStart,s=t._iDisplayLength,l=t.fnRecordsDisplay(),c=(n=(c=-1===s)?0:Math.ceil(n/s),s=c?1:Math.ceil(l/s),l=i(n,s),0);for(e=a.p.length;co&&(i=0):"first"==e?i=0:"previous"==e?0>(i=0<=r?i-r:0)&&(i=0):"next"==e?i+r",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function ut(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),At(e,null,"processing",[e,n])}function ht(e){(u=t(e.nTable)).attr("role","grid");var n=e.oScroll;if(""===n.sX&&""===n.sY)return e.nTable;var i=n.sX,r=n.sY,o=e.oClasses,a=u.children("caption"),s=a.length?a[0]._captionSide:null,l=t(u[0].cloneNode(!1)),c=t(u[0].cloneNode(!1)),d=u.children("tfoot");d.length||(d=null),l=t("
      ",{class:o.sScrollWrapper}).append(t("
      ",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?i?yt(i):null:"100%"}).append(t("
      ",{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===s?a:null).append(u.children("thead"))))).append(t("
      ",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:i?yt(i):null}).append(u)),d&&l.append(t("
      ",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:i?i?yt(i):null:"100%"}).append(t("
      ",{class:o.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===s?a:null).append(u.children("tfoot")))));var u,h=(u=l.children())[0],f=(o=u[1],d?u[2]:null);return i&&t(o).on("scroll.DT",(function(){var t=this.scrollLeft;h.scrollLeft=t,d&&(f.scrollLeft=t)})),t(o).css(r&&n.bCollapse?"max-height":"height",r),e.nScrollHead=h,e.nScrollBody=o,e.nScrollFoot=f,e.aoDrawCallback.push({fn:ft,sName:"scrolling"}),l[0]}function ft(e){var n,r,o,a,s,l=(u=e.oScroll).sX,c=u.sXInner,d=u.sY,u=u.iBarWidth,h=t(e.nScrollHead),p=h[0].style,m=(v=h.children("div"))[0].style,g=v.children("table"),v=e.nScrollBody,y=t(v),b=v.style,M=t(e.nScrollFoot).children("div"),L=M.children("table"),z=t(e.nTHead),w=t(e.nTable),H=w[0],_=H.style,V=e.nTFoot?t(e.nTFoot):null,x=e.oBrowser,S=x.bScrollOversize,k=re(e.aoColumns,"nTh"),D=[],E=[],$=[],T=[],A=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0};r=v.scrollHeight>v.clientHeight,e.scrollBarVis!==r&&e.scrollBarVis!==i?(e.scrollBarVis=r,f(e)):(e.scrollBarVis=r,w.children("thead, tfoot").remove(),V&&(o=V.clone().prependTo(w),n=V.find("tr"),o=o.find("tr")),a=z.clone().prependTo(w),z=z.find("tr"),r=a.find("tr"),a.find("th, td").removeAttr("tabindex"),l||(b.width="100%",h[0].style.width="100%"),t.each(R(e,a),(function(t,n){s=C(e,t),n.style.width=e.aoColumns[s].sWidth})),V&&Ct((function(t){t.style.width=""}),o),h=w.outerWidth(),""===l?(_.width="100%",S&&(w.find("tbody").height()>v.offsetHeight||"scroll"==y.css("overflow-y"))&&(_.width=yt(w.outerWidth()-u)),h=w.outerWidth()):""!==c&&(_.width=yt(c),h=w.outerWidth()),Ct(A,r),Ct((function(e){$.push(e.innerHTML),D.push(yt(t(e).css("width")))}),r),Ct((function(e,n){-1!==t.inArray(e,k)&&(e.style.width=D[n])}),z),t(r).height(0),V&&(Ct(A,o),Ct((function(e){T.push(e.innerHTML),E.push(yt(t(e).css("width")))}),o),Ct((function(t,e){t.style.width=E[e]}),n),t(o).height(0)),Ct((function(t,e){t.innerHTML='
      '+$[e]+"
      ",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=D[e]}),r),V&&Ct((function(t,e){t.innerHTML='
      '+T[e]+"
      ",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=E[e]}),o),w.outerWidth()v.offsetHeight||"scroll"==y.css("overflow-y")?h+u:h,S&&(v.scrollHeight>v.offsetHeight||"scroll"==y.css("overflow-y"))&&(_.width=yt(n-u)),(""===l||""!==c)&&kt(e,1,"Possible column misalignment",6)):n="100%",b.width=yt(n),p.width=yt(n),V&&(e.nScrollFoot.style.width=yt(n)),!d&&S&&(b.height=yt(H.offsetHeight+u)),l=w.outerWidth(),g[0].style.width=yt(l),m.width=yt(l),c=w.height()>v.clientHeight||"scroll"==y.css("overflow-y"),m[d="padding"+(x.bScrollbarLeft?"Left":"Right")]=c?u+"px":"0px",V&&(L[0].style.width=yt(l),M[0].style.width=yt(l),M[0].style[d]=c?u+"px":"0px"),w.children("colgroup").insertBefore(w.children("thead")),y.scroll(),!e.bSorted&&!e.bFiltered||e._drawHold||(v.scrollTop=0))}function Ct(t,e,n){for(var i,r,o=0,a=0,s=e.length;a").appendTo(d.find("tbody"));for(d.find("thead, tfoot").remove(),d.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),d.find("tfoot th, tfoot td").css("width",""),h=R(n,d.find("thead")[0]),i=0;i").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(i=0;i").css(l||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(d).appendTo(v),l&&c?d.width(c):l?(d.css("width","auto"),d.removeAttr("width"),d.width()").css("width",yt(e)).appendTo(i||n.body),o=r[0].offsetWidth;return r.remove(),o}function gt(e,n){var i=vt(e,n);if(0>i)return null;var r=e.aoData[i];return r.nTr?r.anCells[n]:t("").html(L(e,i,n,"display"))[0]}function vt(t,e){for(var n,i=-1,r=-1,o=0,a=t.aoData.length;oi&&(i=n.length,r=o);return r}function yt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function bt(e){var n,r,o,a,s,l,c=[],d=e.aoColumns;n=e.aaSortingFixed,r=t.isPlainObject(n);var u=[];for(o=function(e){e.length&&!t.isArray(e[0])?u.push(e):t.merge(u,e)},t.isArray(n)&&o(n),r&&n.pre&&o(n.pre),o(e.aaSorting),r&&n.post&&o(n.post),e=0;ei?1:0))return"asc"===l.dir?n:-n;return(n=o[t])<(i=o[e])?-1:n>i?1:0})):c.sort((function(t,e){var n,i,l,c,d=r.length,u=s[t]._aSortData,h=s[e]._aSortData;for(l=0;li?1:0}))}t.bSorted=!0}function Lt(t){for(var e,n,i=t.aoColumns,r=bt(t),o=(t=t.oLanguage.oAria,0),a=i.length;o/g,"");var l=n.nTh;l.removeAttribute("aria-sort"),n.bSortable&&(0s?s+1:3));for(s=0,n=a.length;ss?s+1:3))}e.aLastSort=a}function _t(t,e){var n,i=t.aoColumns[e],r=Wt.ext.order[i.sSortDataType];r&&(n=r.call(t.oInstance,t,e,p(t,e)));for(var o,a=Wt.ext.type.order[i.sType+"-pre"],s=0,l=t.aoData.length;s=s.length?[0,n[1]]:n)}))),n.search!==i&&t.extend(e.oPreviousSearch,tt(n.search)),n.columns)for(o=0,a=n.columns.length;o=n&&(e=n-i),e-=e%i,(-1===i||0>e)&&(e=0),t._iDisplayStart=e}function Pt(e,n){var i=e.renderer,r=Wt.ext.renderer[n];return t.isPlainObject(i)&&i[n]?r[i[n]]||r._:"string"==typeof i&&r[i]||r._}function Nt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function It(t,e){var n=[],i=(n=xe.numbers_length,Math.floor(n/2));return e<=n?n=ae(0,e):t<=i?((n=ae(0,n-2)).push("ellipsis"),n.push(e-1)):(t>=e-1-i?n=ae(e-(n-2),e):((n=ae(t-i+2,t+i-1)).push("ellipsis"),n.push(e-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Rt(e){t.each({num:function(t){return Se(t,e)},"num-fmt":function(t){return Se(t,e,Jt)},"html-num":function(t){return Se(t,e,Kt)},"html-num-fmt":function(t){return Se(t,e,Kt,Jt)}},(function(t,n){Ft.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(Ft.type.search[t+e]=Ft.type.search.html)}))}function jt(t){return function(){var e=[St(this[Wt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Wt.ext.internal[t].apply(this,e)}}var Ft,Bt,qt,Ut,Wt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new Bt(t?St(this[Ft.iApiIndex]):this)},this.fnAddData=function(e,n){var r=this.api(!0),o=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);return(n===i||n)&&r.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],r=n.oScroll;t===i||t?e.draw(!1):(""!==r.sX||""!==r.sY)&&ft(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===i||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var r=this.api(!0),o=(t=r.rows(t)).settings()[0],a=o.aoData[t[0][0]];return t.remove(),e&&e.call(this,o,a),(n===i||n)&&r.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,r,o,a){o=this.api(!0),null===e||e===i?o.search(t,n,r,a):o.column(e).search(t,n,r,a),o.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==i){var r=t.nodeName?t.nodeName.toLowerCase():"";return e!==i||"td"==r||"th"==r?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==i?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===i||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e),(n===i||n)&&t.columns.adjust().draw()},this.fnSettings=function(){return St(this[Ft.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,r,o){var a=this.api(!0);return n===i||null===n?a.row(e).data(t):a.cell(e,n).data(t),(o===i||o)&&a.columns.adjust(),(r===i||r)&&a.draw(),0},this.fnVersionCheck=Ft.fnVersionCheck;var n=this,r=e===i,d=this.length;for(var f in r&&(e={}),this.oApi=this.internal=Ft.internal,Wt.ext.internal)f&&(this[f]=jt(f));return this.each((function(){var f,C={},p=1").appendTo(L)),V.nTHead=n[0],0===(n=L.children("tbody")).length&&(n=t("").appendTo(L)),V.nTBody=n[0],0===(n=L.children("tfoot")).length&&e.length>0&&(""!==V.oScroll.sX||""!==V.oScroll.sY)&&(n=t("").appendTo(L)),0===n.length||0===n.children().length?L.addClass(x.sNoFooter):n.length>0&&(V.nTFoot=n[0],I(V.aoFooter,V.nTFoot)),p.aaData)for(m=0;m/g,Zt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Xt=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Jt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Qt=function(t){return!t||!0===t||"-"===t},te=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},ee=function(t,e){return Yt[e]||(Yt[e]=RegExp(he(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Yt[e],"."):t},ne=function(t,e,n){var i="string"==typeof t;return!!Qt(t)||(e&&i&&(t=ee(t,e)),n&&i&&(t=t.replace(Jt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ie=function(t,e,n){return!!Qt(t)||(Qt(t)||"string"==typeof t)&&!!ne(t.replace(Kt,""),e,n)||null},re=function(t,e,n){var r=[],o=0,a=t.length;if(n!==i)for(;ot.length))for(var n=(e=t.slice().sort())[0],i=1,r=e.length;i")[0],Ce=fe.textContent!==i,pe=/<.*?>/g,me=Wt.util.throttle,ge=[],ve=Array.prototype;Bt=function(e,n){if(!(this instanceof Bt))return new Bt(e,n);var i=[],r=function(e){(e=function(e){var n,i,r=Wt.settings,o=t.map(r,(function(t){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(n=t.inArray(e,o))?[r[n]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?i=t(e):e instanceof t&&(i=e),i?i.map((function(){return-1!==(n=t.inArray(this,o))?r[n]:null})).toArray():void 0):[]}(e))&&(i=i.concat(e))};if(t.isArray(e))for(var o=0,a=e.length;ot?new Bt(e[t],this[t]):null},filter:function(t){var e=[];if(ve.filter)e=ve.filter.call(this,t,this);else for(var n=0,i=this.length;n").addClass(n),t("td",i).addClass(n).html(e)[0].colSpan=m(o),a.push(i[0]))};s(e,n),r._details&&r._details.detach(),r._details=t(a),r._detailsShow&&r._details.insertAfter(r.nTr)}return this})),qt(["row().child.show()","row().child().show()"],(function(){return He(this,!0),this})),qt(["row().child.hide()","row().child().hide()"],(function(){return He(this,!1),this})),qt(["row().child.remove()","row().child().remove()"],(function(){return we(this),this})),qt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var _e=/^([^:]+):(name|visIdx|visible)$/,Ve=function(t,e,n,i,r){n=[],i=0;for(var o=r.length;i=0?n:a.length+n];if("function"==typeof e){var r=ze(i,o);return t.map(a,(function(t,n){return e(n,Ve(i,n,0,0,r),l[n])?n:null}))}var c="string"==typeof e?e.match(_e):"";if(c)switch(c[2]){case"visIdx":case"visible":if((n=parseInt(c[1],10))<0){var d=t.map(a,(function(t,e){return t.bVisible?e:null}));return[d[d.length+n]]}return[C(i,n)];case"name":return t.map(s,(function(t,e){return t===c[1]?e:null}));default:return[]}return e.nodeName&&e._DT_CellIndex?[e._DT_CellIndex.column]:(n=t(l).filter(e).map((function(){return t.inArray(this,l)})).toArray()).length||!e.nodeName?n:(n=t(e).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]}),i,o)}),1);return r.selector.cols=e,r.selector.opts=n,r})),Ut("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Ut("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Ut("columns().data()","column().data()",(function(){return this.iterator("column-rows",Ve,1)})),Ut("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Ut("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,i,r,o){return oe(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),Ut("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,i,r){return oe(t.aoData,r,"anCells",e)}),1)})),Ut("columns().visible()","column().visible()",(function(e,n){var r=this.iterator("column",(function(n,r){if(e===i)return n.aoColumns[r].bVisible;var o,a,s,l=n.aoColumns,c=l[r],d=n.aoData;if(e!==i&&c.bVisible!==e){if(e){var u=t.inArray(!0,re(l,"bVisible"),r+1);for(o=0,a=d.length;on;return!0},Wt.isDataTable=Wt.fnIsDataTable=function(e){var n=t(e).get(0),i=!1;return e instanceof Wt.Api||(t.each(Wt.settings,(function(e,r){var o=r.nScrollHead?t("table",r.nScrollHead)[0]:null,a=r.nScrollFoot?t("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&a!==n||(i=!0)})),i)},Wt.tables=Wt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var i=t.map(Wt.settings,(function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable}));return n?new Bt(i):i},Wt.camelToHungarian=o,qt("$()",(function(e,n){var i=this.rows(n).nodes();return i=t(i),t([].concat(i.filter(e).toArray(),i.find(e).toArray()))})),t.each(["on","one","off"],(function(e,n){qt(n+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var i=t(this.tables().nodes());return i[n].apply(i,e),this}))})),qt("clear()",(function(){return this.iterator("table",(function(t){x(t)}))})),qt("settings()",(function(){return new Bt(this.context,this.context)})),qt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),qt("data()",(function(){return this.iterator("table",(function(t){return re(t.aoData,"_aData")})).flatten()})),qt("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(i){var r,o=i.nTableWrapper.parentNode,a=i.oClasses,s=i.nTable,l=i.nTBody,c=i.nTHead,d=i.nTFoot,u=t(s),h=(l=t(l),t(i.nTableWrapper)),f=t.map(i.aoData,(function(t){return t.nTr}));i.bDestroying=!0,At(i,"aoDestroyCallback","destroy",[i]),n||new Bt(i).columns().visible(!0),h.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+i.sInstance),s!=c.parentNode&&(u.children("thead").detach(),u.append(c)),d&&s!=d.parentNode&&(u.children("tfoot").detach(),u.append(d)),i.aaSorting=[],i.aaSortingFixed=[],Ht(i),t(f).removeClass(i.asStripeClasses.join(" ")),t("th, td",c).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),l.children().detach(),l.append(f),u[c=n?"remove":"detach"](),h[c](),!n&&o&&(o.insertBefore(s,i.nTableReinsertBefore),u.css("width",i.sDestroyWidth).removeClass(a.sTable),(r=i.asDestroyStripes.length)&&l.children().each((function(e){t(this).addClass(i.asDestroyStripes[e%r])}))),-1!==(o=t.inArray(i,Wt.settings))&&Wt.settings.splice(o,1)}))})),t.each(["column","row","cell"],(function(t,e){qt(e+"s().every()",(function(t){var n=this.selector.opts,r=this;return this.iterator(e,(function(o,a,s,l,c){t.call(r[e](a,"cell"===e?s:n,"cell"===e?n:i),a,s,l,c)}))}))})),qt("i18n()",(function(e,n,r){var o=this.context[0];return(e=H(e)(o.oLanguage))===i&&(e=n),r!==i&&t.isPlainObject(e)&&(e=e[r]!==i?e[r]:e._),e.replace("%d",r)})),Wt.version="1.10.18",Wt.settings=[],Wt.models={},Wt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Wt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Wt.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},Wt.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(t){return t.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(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},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:t.extend({},Wt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Wt.defaults),Wt.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},r(Wt.defaults.column),Wt.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:i,oAjaxData:i,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"==Nt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Nt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!o||n>i||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Wt.ext=Ft={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:Wt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Wt.version},t.extend(Ft,{afnFiltering:Ft.search,aTypes:Ft.type.detect,ofnSearch:Ft.type.search,oSort:Ft.type.order,afnSortData:Ft.order,aoFeatures:Ft.feature,oApi:Ft.internal,oStdClasses:Ft.classes,oPagination:Ft.pager}),t.extend(Wt.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 xe=Wt.ext.pager;t.extend(xe,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[It(t,e)]},simple_numbers:function(t,e){return["previous",It(t,e),"next"]},full_numbers:function(t,e){return["first","previous",It(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",It(t,e),"last"]},_numbers:It,numbers_length:7}),t.extend(!0,Wt.ext.renderer,{pageButton:{_:function(e,r,o,a,s,l){var c,d,u,h=e.oClasses,f=e.oLanguage.oPaginate,C=e.oLanguage.oAria.paginate||{},p=0,m=function(n,i){var r,a,u,g,v=function(t){ct(e,t.data.action,!0)};for(r=0,a=i.length;r").appendTo(n),m(u,g);else{switch(c=null,d="",g){case"ellipsis":n.append('');break;case"first":c=f.sFirst,d=g+(s>0?"":" "+h.sPageButtonDisabled);break;case"previous":c=f.sPrevious,d=g+(s>0?"":" "+h.sPageButtonDisabled);break;case"next":c=f.sNext,d=g+(s",{class:h.sPageButton+" "+d,"aria-controls":e.sTableId,"aria-label":C[g],"data-dt-idx":p,tabindex:e.iTabIndex,id:0===o&&"string"==typeof g?e.sTableId+"_"+g:null}).html(c).appendTo(n),{action:g},v),p++)}};try{u=t(r).find(n.activeElement).data("dt-idx")}catch(t){}m(t(r).empty(),a),u!==i&&t(r).find("[data-dt-idx="+u+"]").focus()}}}),t.extend(Wt.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return ne(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&!Zt.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||Qt(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return ne(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return ie(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return ie(t,n,!0)?"html-num-fmt"+n:null},function(t){return Qt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Wt.ext.type.search,{html:function(t){return Qt(t)?t:"string"==typeof t?t.replace(Gt," ").replace(Kt,""):""},string:function(t){return Qt(t)?t:"string"==typeof t?t.replace(Gt," "):t}});var Se=function(t,e,n,i){return 0===t||t&&"-"!==t?(e&&(t=ee(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t):-1/0};t.extend(Ft.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Qt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Qt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return te?1:0},"string-desc":function(t,e){return te?-1:0}}),Rt(""),t.extend(!0,Wt.ext.renderer,{header:{_:function(e,n,i,r){t(e.nTable).on("order.dt.DT",(function(t,o,a,s){e===o&&(t=i.idx,n.removeClass(i.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:i.sSortingClass))}))},jqueryui:function(e,n,i,r){t("
      ").addClass(r.sSortJUIWrapper).append(n.contents()).append(t("").addClass(r.sSortIcon+" "+i.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",(function(t,o,a,s){e===o&&(t=i.idx,n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[t]?r.sSortAsc:"desc"==s[t]?r.sSortDesc:i.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[t]?r.sSortJUIAsc:"desc"==s[t]?r.sSortJUIDesc:i.sSortingClassJUI))}))}}});var ke=function(t){return"string"==typeof t?t.replace(//g,">").replace(/"/g,"""):t};return Wt.render={number:function(t,e,n,i,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var a=0>o?"-":"",s=parseFloat(o);return isNaN(s)?ke(o):(s=s.toFixed(n),o=Math.abs(s),s=parseInt(o,10),o=n?e+(o-s).toFixed(n).substring(2):"",a+(i||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+o+(r||""))}}},text:function(){return{display:ke}}},t.extend(Wt.ext.internal,{_fnExternApiFunc:jt,_fnBuildAjax:j,_fnAjaxUpdate:F,_fnAjaxParameters:B,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:U,_fnAddColumn:u,_fnColumnOptions:h,_fnAdjustColumnSizing:f,_fnVisibleToColumnIndex:C,_fnColumnIndexToVisible:p,_fnVisbleColumns:m,_fnGetColumns:g,_fnColumnTypes:v,_fnApplyColumnDefs:y,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:a,_fnBrowserDetect:c,_fnAddData:b,_fnAddTr:M,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==i?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,i){return t.inArray(i,e.aoData[n].anCells)},_fnGetCellData:L,_fnSetCellData:z,_fnSplitObjNotation:w,_fnGetObjectDataFn:H,_fnSetObjectDataFn:_,_fnGetDataMaster:V,_fnClearTable:x,_fnDeleteIndex:S,_fnInvalidate:k,_fnGetRowElements:D,_fnCreateTr:E,_fnBuildHead:T,_fnDrawHead:A,_fnDraw:O,_fnReDraw:P,_fnAddOptionsHtml:N,_fnDetectHeader:I,_fnGetUniqueThs:R,_fnFeatureHtmlFilter:W,_fnFilterComplete:Y,_fnFilterCustom:G,_fnFilterColumn:K,_fnFilter:Z,_fnFilterCreateSearch:X,_fnEscapeRegex:he,_fnFilterData:J,_fnFeatureHtmlInfo:et,_fnUpdateInfo:nt,_fnInfoMacros:it,_fnInitialise:rt,_fnInitComplete:ot,_fnLengthChange:at,_fnFeatureHtmlLength:st,_fnFeatureHtmlPaginate:lt,_fnPageChange:ct,_fnFeatureHtmlProcessing:dt,_fnProcessingDisplay:ut,_fnFeatureHtmlTable:ht,_fnScrollDraw:ft,_fnApplyToChildren:Ct,_fnCalculateColumnWidths:pt,_fnThrottle:me,_fnConvertToWidth:mt,_fnGetWidestNode:gt,_fnGetMaxLenString:vt,_fnStringToCss:yt,_fnSortFlatten:bt,_fnSort:Mt,_fnSortAria:Lt,_fnSortListener:zt,_fnSortAttachListener:wt,_fnSortingClasses:Ht,_fnSortData:_t,_fnSaveState:Vt,_fnLoadState:xt,_fnSettingsFromNode:St,_fnLog:kt,_fnMap:Dt,_fnBindAction:$t,_fnCallbackReg:Tt,_fnCallbackFire:At,_fnLengthOverflow:Ot,_fnRenderer:Pt,_fnDataSource:Nt,_fnRowAttributes:$,_fnExtend:Et,_fnCalculateEnd:function(){}}),t.fn.dataTable=Wt,Wt.$=t,t.fn.dataTableSettings=Wt.settings,t.fn.dataTableExt=Wt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Wt,(function(e,n){t.fn.DataTable[e]=n})),t.fn.dataTable}));var FullCalendar=function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n3)for(n=[n],o=3;o0?m(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(C=L[h])||C&&p.key==C.key&&p.type===C.type)L[h]=void 0;else for(f=0;f3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),P(p(rt,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(nt.prototype=new v).__e=function(t){var e=this,n=et(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),it(e,t,i)):r()};n?n(o):o()}},nt.prototype.render=function(t){this.u=null,this.o=new Map;var e=H(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},nt.prototype.componentDidUpdate=nt.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){it(t,n,e)}))};var at="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,st=/^(?: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]/,lt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};v.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(v.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var ct=o.event;function dt(){}function ut(){return this.cancelBubble}function ht(){return this.defaultPrevented}o.event=function(t){return ct&&(t=ct(t)),t.persist=dt,t.isPropagationStopped=ut,t.isDefaultPrevented=ht,t.nativeEvent=t};var ft={configurable:!0,get:function(){return this.class}},Ct=o.vnode;o.vnode=function(t){var e=t.type,n=t.props,i=n;if("string"==typeof e){for(var r in i={},n){var o=n[r];"value"===r&&"defaultValue"in n&&null==o||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===o?o="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+e)&&!lt(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():st.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),i[r]=o)}"select"==e&&i.multiple&&Array.isArray(i.value)&&(i.value=H(n.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==e&&null!=i.defaultValue&&(i.value=H(n.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),t.props=i}e&&n.class!=n.className&&(ft.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",ft)),t.$$typeof=at,Ct&&Ct(t)};var pt=o.__r;o.__r=function(t){pt&&pt(t)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var mt="undefined"!=typeof globalThis?globalThis:window;mt.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):mt.FullCalendarVDom={Component:v,createElement:p,render:P,createRef:function(){return{current:null}},Fragment:g,createContext:function(t){var e=function(t,e){var n={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(M)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(t),n=e.Provider;return e.Provider=function(){var t=this,e=!this.getChildContext,i=n.apply(this,arguments);if(e){var r=[];this.shouldComponentUpdate=function(e){t.props.value!==e.value&&r.forEach((function(t){t.context=e.value,t.forceUpdate()}))},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}}return i},e},createPortal:function(t,e){return p(ot,{__v:t,i:e})},flushSync:function(t){t();var e=o.debounceRendering,n=[];for(o.debounceRendering=function(t){n.push(t)},P(p(gt,{}),document.createElement("div"));n.length;)n.shift()();o.debounceRendering=e},unmountComponentAtNode:function(t){P(null,t)}};var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){return p("div",{})},e.prototype.componentDidMount=function(){this.setState({})},e}(v),vt=function(){function t(t,e){this.context=t,this.internalEventSource=e}return t.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},t.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(t.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),t}();function yt(t){t.parentNode&&t.parentNode.removeChild(t)}function bt(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Mt(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}function Mt(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Lt(t,e){for(var n=t instanceof HTMLElement?[t]:t,i=[],r=0;r=0;o-=1){var a=t[o][i];if("object"==typeof a&&a)r.unshift(a);else if(void 0!==a){n[i]=a;break}}r.length&&(n[i]=ye(r))}for(o=t.length-1;o>=0;o-=1){var s=t[o];for(var l in s)l in n||(n[l]=s[l])}return n}function be(t,e){var n={};for(var i in t)e(t[i],i)&&(n[i]=t[i]);return n}function Me(t,e){var n={};for(var i in t)n[i]=e(t[i],i);return n}function Le(t){for(var e={},n=0,i=t;n10&&(null==e?i=i.replace("Z",""):0!==e&&(i=i.replace("Z",qe(e,!0)))),i}function Fe(t){return t.toISOString().replace(/T.*$/,"")}function Be(t){return Gt(t.getUTCHours(),2)+":"+Gt(t.getUTCMinutes(),2)+":"+Gt(t.getUTCSeconds(),2)}function qe(t,e){void 0===e&&(e=!1);var n=t<0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),o=Math.round(i%60);return e?n+Gt(r,2)+":"+Gt(o,2):"GMT"+n+r+(o?":"+Gt(o,2):"")}function Ue(t,e,n){if(t===e)return!0;var i,r=t.length;if(r!==e.length)return!1;for(i=0;i1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(s=1);var l=this.format(t,n),c=this.format(e,n);if(l===c)return l;var d=nn(function(t,e){var n={};for(var i in t)(!(i in Ke)||Ke[i]<=e)&&(n[i]=t[i]);return n}(r,s),o,n),u=d(t),h=d(e),f=function(t,e,n,i){for(var r=0;r=Ne(e)&&(i=ee(i,1))}return t.start&&(n=le(t.start),i&&i<=n&&(i=ee(n,1))),{start:n,end:i}}function In(t){var e=Nn(t);return re(e.start,e.end)>1}function Rn(t,e,n,i){return"year"===i?$e(n.diffWholeYears(t,e),"year"):"month"===i?$e(n.diffWholeMonths(t,e),"month"):oe(t,e)}function jn(t,e){var n,i,r=[],o=e.start;for(t.sort(Fn),n=0;no&&r.push({start:o,end:i.start}),i.end>o&&(o=i.end);return oe.start)&&(null===t.start||null===e.end||t.start=t.start)&&(null===t.end||null!==e.end&&e.end<=t.end)}function Yn(t,e){return(null===t.start||e>=t.start)&&(null===t.end||e=(n||e.end),isToday:e&&Yn(e,i.start)}}function si(t){var e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function li(t){return t.instance?t.instance.instanceId:t.def.defId+":"+t.range.start.toISOString()}function ci(t,e){var n=t.eventRange,i=n.def,r=n.instance,o=i.url;if(o)return{href:o};var a=e.emitter,s=e.options.eventInteractive;return null==s&&null==(s=i.interactive)&&(s=Boolean(a.hasHandlers("eventClick"))),s?At((function(t){a.trigger("eventClick",{el:t.target,event:new Vi(e,i,r),jsEvent:t,view:e.viewApi})})):{}}var di={start:vn,end:vn,allDay:Boolean};function ui(t,e,n){var r=function(t,e){var n=gn(t,di),r=n.refined,o=n.extra,a=r.start?e.createMarkerMeta(r.start):null,s=r.end?e.createMarkerMeta(r.end):null,l=r.allDay;return null==l&&(l=a&&a.isTimeUnspecified&&(!s||s.isTimeUnspecified)),i({range:{start:a?a.marker:null,end:s?s.marker:null},allDay:l},o)}(t,e),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=e.add(o.start,n)}return r}function hi(t,e){return qn(t.range,e.range)&&t.allDay===e.allDay&&function(t,e){for(var n in e)if("range"!==n&&"allDay"!==n&&t[n]!==e[n])return!1;for(var n in t)if(!(n in e))return!1;return!0}(t,e)}function fi(t,e,n){return i(i({},Ci(t,e,n)),{timeZone:e.timeZone})}function Ci(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function pi(t,e,n){n.emitter.trigger("select",i(i({},mi(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function mi(t,e){for(var n,r,o={},a=0,s=e.pluginHooks.dateSpanTransforms;a=0;i-=1){var r=n[i].parseMeta(t);if(r)return{sourceDefId:i,meta:r}}return null}(o,e);if(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Pt(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Vn(o,e),extendedProps:a}}return null}function wi(t){return i(i(i({},Hn),Li),t.pluginHooks.eventSourceRefiners)}function Hi(t,e){return"function"==typeof t&&(t=t()),null==t?e.createNowMarker():e.createMarker(t)}var _i=function(){function t(){}return t.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},t.prototype.dispatch=function(t){return this.currentDataManager.dispatch(t)},Object.defineProperty(t.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),t.prototype.batchRendering=function(t){t()},t.prototype.updateSize=function(){this.trigger("_resize",!0)},t.prototype.setOption=function(t,e){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:e})},t.prototype.getOption=function(t){return this.currentDataManager.currentCalendarOptionsInput[t]},t.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},t.prototype.on=function(t,e){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[t]?n.emitter.on(t,e):console.warn("Unknown listener name '"+t+"'")},t.prototype.off=function(t,e){this.currentDataManager.emitter.off(t,e)},t.prototype.trigger=function(t){for(var e,n=[],i=1;i=1?Math.min(r,o):r}(t,this.weekDow,this.weekDoy)},t.prototype.format=function(t,e,n){return void 0===n&&(n={}),e.format({marker:t,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(t)},this)},t.prototype.formatRange=function(t,e,n,i){return void 0===i&&(i={}),i.isEndExclusive&&(e=ne(e,-1)),n.formatRange({marker:t,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(t)},{marker:e,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(e)},this,i.defaultSeparator)},t.prototype.formatIso=function(t,e){void 0===e&&(e={});var n=null;return e.omitTimeZoneOffset||(n=null!=e.forcedTzo?e.forcedTzo:this.offsetForMarker(t)),je(t,n,e.omitTime)},t.prototype.timestampToMarker=function(t){return"local"===this.timeZone?Ce(ue(new Date(t))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?Ce(this.namedTimeZoneImpl.timestampToArray(t)):new Date(t)},t.prototype.offsetForMarker=function(t){return"local"===this.timeZone?-he(fe(t)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(fe(t)):null},t.prototype.toDate=function(t,e){return"local"===this.timeZone?he(fe(t)):"UTC"===this.timeZone?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(fe(t))*60):new Date(t.valueOf()-(e||0))},t}(),Oi=[],Pi={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"},Ni=i(i({},Pi),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(t,e){return"day"===e?"Today":"This "+t}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(t){return"Show "+t+" more event"+(1===t?"":"s")}});function Ii(t){for(var e=t.length>0?t[0].code:"en",n=Oi.concat(t),i={en:Ni},r=0,o=n;r0;r-=1){var o=i.slice(0,r).join("-");if(e[o])return e[o]}return null}(n,e)||Ni;return ji(t,n,i)}(t,e):ji(t.code,[t.code],t)}function ji(t,e,n){var i=ye([Pi,n],["buttonText"]);delete i.code;var r=i.week;return delete i.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:i}}function Fi(t){var e=Ri(t.locale||"en",Ii([]).map);return new Ai(i(i({timeZone:dn.timeZone,calendarSystem:"gregory"},t),{locale:e}))}var Bi,qi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Ui(t,e){return yn(function(t){return(!0===t?[{}]:Array.isArray(t)?t.filter((function(t){return t.daysOfWeek})):"object"==typeof t&&t?[t]:[]).map((function(t){return i(i({},qi),t)}))}(t),null,e)}function Wi(t,e){return t.left>=e.left&&t.left=e.top&&t.top
      ",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);var e=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),e}()),Bi}var Ji={defs:{},instances:{}},Qi=function(){function t(){this.getKeysForEventDefs=We(this._getKeysForEventDefs),this.splitDateSelection=We(this._splitDateSpan),this.splitEventStore=We(this._splitEventStore),this.splitIndividualUi=We(this._splitIndividualUi),this.splitEventDrag=We(this._splitInteraction),this.splitEventResize=We(this._splitInteraction),this.eventUiBuilders={}}return t.prototype.splitProps=function(t){var e=this,n=this.getKeyInfo(t),i=this.getKeysForEventDefs(t.eventStore),r=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,i),a=this.splitEventStore(t.eventStore,i),s=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),c={};for(var d in this.eventUiBuilders=Me(n,(function(t,n){return e.eventUiBuilders[n]||We(tr)})),n){var u=n[d],h=a[d]||Ji,f=this.eventUiBuilders[d];c[d]={businessHours:u.businessHours||t.businessHours,dateSelection:r[d]||null,eventStore:h,eventUiBases:f(t.eventUiBases[""],u.ui,o[d]),eventSelection:h.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[d]||null,eventResize:l[d]||null}}return c},t.prototype._splitDateSpan=function(t){var e={};if(t)for(var n=0,i=this.getKeysForDateSpan(t);nn:!!e&&t>=e.end)}}function nr(t,e){var n=["fc-day","fc-day-"+Qt[t.dow]];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}var ir=ln({year:"numeric",month:"long",day:"numeric"}),rr=ln({week:"long"});function or(t,e,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var o=t.dateEnv,a=t.options,s=t.calendarApi,l=o.format(e,"week"===n?rr:ir);if(a.navLinks){var c=o.toDate(e),d=function(t){var i="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof i?i.call(s,o.toDate(e),t):("string"==typeof i&&(n=i),s.zoomTo(e,n))};return i({title:Kt(a.navLinkHint,[l,c],l),"data-navlink":""},r?Tt(d):{onClick:d})}return{"aria-label":l}}var ar,sr=null;function lr(){return null===sr&&(sr=function(){var t=document.createElement("div");wt(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="
      ",document.body.appendChild(t);var e=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return yt(t),e}()),sr}function cr(){return ar||(ar=function(){var t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);var e=dr(t);return document.body.removeChild(t),e}()),ar}function dr(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function ur(t,e){void 0===e&&(e=!1);var n=window.getComputedStyle(t),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=dr(t),l=s.y-i-r,c={borderLeft:i,borderRight:r,borderTop:o,borderBottom:a,scrollbarBottom:s.x-o-a,scrollbarLeft:0,scrollbarRight:0};return lr()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,e&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function hr(t,e,n){void 0===e&&(e=!1);var i=n?t.getBoundingClientRect():fr(t),r=ur(t,e),o={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return e&&(o.left+=r.paddingLeft,o.right-=r.paddingRight,o.top+=r.paddingTop,o.bottom-=r.paddingBottom),o}function fr(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Cr(t){for(var e=[];t instanceof HTMLElement;){var n=window.getComputedStyle(t);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}function pr(t,e,n){var i=!1,r=function(){i||(i=!0,e.apply(this,arguments))},o=function(){i||(i=!0,n&&n.apply(this,arguments))},a=t(r,o);a&&"function"==typeof a.then&&a.then(r,o)}var mr=function(){function t(){this.handlers={},this.thisContext=null}return t.prototype.setThisContext=function(t){this.thisContext=t},t.prototype.setOptions=function(t){this.options=t},t.prototype.on=function(t,e){!function(t,e,n){(t[e]||(t[e]=[])).push(n)}(this.handlers,t,e)},t.prototype.off=function(t,e){!function(t,e,n){n?t[e]&&(t[e]=t[e].filter((function(t){return t!==n}))):delete t[e]}(this.handlers,t,e)},t.prototype.trigger=function(t){for(var e=[],n=1;n=n[e]&&t=n[e]&&t0},t.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},t.prototype.canScrollUp=function(){return this.getScrollTop()>0},t.prototype.canScrollDown=function(){return this.getScrollTop()0},t.prototype.canScrollRight=function(){return this.getScrollLeft()=d.end?new Date(d.end.valueOf()-1):c),r=this.buildCurrentRangeInfo(t,e),o=/^(year|month|week|day)$/.test(r.unit),a=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,o),s=a=this.trimHiddenDays(a),u.showNonCurrentDates||(s=Bn(s,r.range)),s=Bn(s=this.adjustActiveRange(s),i),l=Un(r.range,i),{validRange:i,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:o,activeRange:s,renderRange:a,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(r.duration)}},t.prototype.buildValidRange=function(){var t=this.props.validRangeInput,e="function"==typeof t?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(e)||{start:null,end:null}},t.prototype.buildCurrentRangeInfo=function(t,e){var n,i=this.props,r=null,o=null,a=null;return i.duration?(r=i.duration,o=i.durationUnit,a=this.buildRangeFromDuration(t,e,r,o)):(n=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,e,n)):(a=this.buildCustomVisibleRange(t))?o=i.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=Re(r=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(t,e,r,o)),{duration:r,unit:o,range:a}},t.prototype.getFallbackDuration=function(){return $e({day:1})},t.prototype.adjustActiveRange=function(t){var e=this.props,n=e.dateEnv,i=e.usesMinMaxTime,r=e.slotMinTime,o=e.slotMaxTime,a=t.start,s=t.end;return i&&(Pe(r)<0&&(a=le(a),a=n.add(a,r)),Pe(o)>1&&(s=ee(s=le(s),-1),s=n.add(s,o))),{start:a,end:s}},t.prototype.buildRangeFromDuration=function(t,e,n,i){var r,o,a,s=this.props,l=s.dateEnv,c=s.dateAlignment;if(!c){var d=this.props.dateIncrement;c=d&&Ne(d)t.fetchRange.end:!t.latestFetchId}(t,e,n)})),e,!1,n)}function ao(t,e,n,i,r){var o={};for(var a in t){var s=t[a];e[a]?o[a]=so(s,n,i,r):o[a]=s}return o}function so(t,e,n,r){var o=r.options,a=r.calendarApi,s=r.pluginHooks.eventSourceDefs[t.sourceDefId],l=Pt();return s.fetch({eventSource:t,range:e,isRefetch:n,context:r},(function(n){var i=n.rawEvents;o.eventSourceSuccess&&(i=o.eventSourceSuccess.call(a,i,n.xhr)||i),t.success&&(i=t.success.call(a,i,n.xhr)||i),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:l,fetchRange:e,rawEvents:i})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(a,n),t.failure&&t.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:l,fetchRange:e,error:n})})),i(i({},t),{isFetching:!0,latestFetchId:l})}function lo(t,e){return be(t,(function(t){return co(t,e)}))}function co(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function uo(t,e){var n;if(e){n=[];for(var i=0,r=t;i=200&&a.status<400){var t=!1,e=void 0;try{e=JSON.parse(a.responseText),t=!0}catch(t){}t?i(e,a):r("Failure parsing JSON",a)}else r("Request failed",a)},a.onerror=function(){r("Request failed",a)},a.send(o)}function Mo(t){var e=[];for(var n in t)e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}function Lo(t,e){for(var n=ze(e.getCurrentData().eventSources),i=[],r=0,o=t;r1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}var Vo=function(){function t(t){var e=this;this.computeOptionsData=We(this._computeOptionsData),this.computeCurrentViewData=We(this._computeCurrentViewData),this.organizeRawLocales=We(Ii),this.buildLocale=We(Ri),this.buildPluginHooks=function(){var t,e=[],n=[];return function(r,o){return t&&Ue(r,e)&&Ue(o,n)||(t=function(t,e){var n={},r={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 o(t){for(var e=0,a=t;es.end&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.end,end:a.end}},o)),i?(n.push.apply(n,r([{index:t.index,thickness:t.thickness,span:qo(s,a)}],o)),i):(n.push(t),0)},t.prototype.insertEntryAt=function(t,e){var n=this.entriesByLevel,i=this.levelCoords;-1===e.lateral?(Uo(i,e.level,e.levelCoord),Uo(n,e.level,[t])):Uo(n[e.level],e.lateral,t),this.stackCnts[jo(t)]=e.stackCnt},t.prototype.findInsertion=function(t){for(var e=this,n=e.levelCoords,i=e.entriesByLevel,r=e.strictOrder,o=e.stackCnts,a=n.length,s=0,l=-1,c=-1,d=null,u=0,h=0;h=s+t.thickness)break;for(var C=i[h],p=void 0,m=Wo(C,t.span.start,Ro),g=m[0]+m[1];(p=C[g])&&p.span.starts&&(s=v,d=p,l=h,c=g),v===s&&(u=Math.max(u,o[jo(p)]+1)),g+=1}}var y=0;if(d)for(y=l+1;yn(t[r-1]))return[r,0];for(;ia))return[o,1];i=o+1}}return[i,0]}var Yo=function(){function t(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}return t.prototype.destroy=function(){},t}();function Go(t){var e;return(e={})[t.component.uid]=t,e}var Ko={},Zo=function(){function t(t,e){this.emitter=new mr}return t.prototype.destroy=function(){},t.prototype.setMirrorIsVisible=function(t){},t.prototype.setMirrorNeedsRevert=function(t){},t.prototype.setAutoScrollEnabled=function(t){},t}(),Xo={},Jo={startTime:$e,duration:$e,create:Boolean,sourceId:String};function Qo(t){var e=gn(t,Jo),n=e.refined,i=e.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:i}}var ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this,e=this.props.widgetGroups.map((function(e){return t.renderWidgetGroup(e)}));return zr.apply(void 0,r(["div",{className:"fc-toolbar-chunk"}],e))},e.prototype.renderWidgetGroup=function(t){for(var e=this.props,n=this.context.theme,i=[],o=!0,a=0,s=t;a1){var g=o&&n.getClass("buttonGroup")||"";return zr.apply(void 0,r(["div",{className:g}],i))}return i[0]},e}(Ar),ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t,e,n=this.props,i=n.model,r=n.extraClassName,o=!1,a=i.sectionWidgets,s=a.center;return a.left?(o=!0,t=a.left):t=a.start,a.right?(o=!0,e=a.right):e=a.end,zr("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",t||[]),this.renderSection("center",s||[]),this.renderSection("end",e||[]))},e.prototype.renderSection=function(t,e){var n=this.props;return zr(ta,{key:t,widgetGroups:e,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},e}(Ar),na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={availableWidth:null},e.handleEl=function(t){e.el=t,Nr(e.props.elRef,t),e.updateAvailableWidth()},e.handleResize=function(){e.updateAvailableWidth()},e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.state,n=t.aspectRatio,i=["fc-view-harness",n||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],r="",o="";return n?null!==e.availableWidth?r=e.availableWidth/n:o=1/n*100+"%":r=t.height||"",zr("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:r,paddingBottom:o}},t.children)},e.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},e.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},e.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},e}(Ar),ia=function(t){function e(e){var n=t.call(this,e)||this;return n.handleSegClick=function(t,e){var i=n.component,r=i.context,o=Xn(e);if(o&&i.isValidSegDownEl(t.target)){var a=bt(t.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:e,event:new Vi(i.context,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:r.viewApi}),s&&!t.defaultPrevented&&(window.location.href=s)}},n.destroy=Dt(e.el,"click",".fc-event",n.handleSegClick),n}return n(e,t),e}(Yo),ra=function(t){function e(e){var n,i,r,o,a=t.call(this,e)||this;return a.handleEventElRemove=function(t){t===a.currentSegEl&&a.handleSegLeave(null,a.currentSegEl)},a.handleSegEnter=function(t,e){Xn(e)&&(a.currentSegEl=e,a.triggerEvent("eventMouseEnter",t,e))},a.handleSegLeave=function(t,e){a.currentSegEl&&(a.currentSegEl=null,a.triggerEvent("eventMouseLeave",t,e))},a.removeHoverListeners=(n=e.el,i=a.handleSegEnter,r=a.handleSegLeave,Dt(n,"mouseover",".fc-event",(function(t,e){if(e!==o){o=e,i(t,e);var n=function(t){o=null,r(t,e),e.removeEventListener("mouseleave",n)};e.addEventListener("mouseleave",n)}}))),a}return n(e,t),e.prototype.destroy=function(){this.removeHoverListeners()},e.prototype.triggerEvent=function(t,e,n){var i=this.component,r=i.context,o=Xn(n);e&&!i.isValidSegDownEl(e.target)||r.emitter.trigger(t,{el:n,event:new Vi(r,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi})},e}(Yo),oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildViewContext=We($r),e.buildViewPropTransformers=We(sa),e.buildToolbarProps=We(aa),e.headerRef=Hr(),e.footerRef=Hr(),e.interactionsStore={},e.state={viewLabelId:St()},e.registerInteractiveComponent=function(t,n){var i=function(t,e){return{component:t,el:e.el,useEventCenter:null==e.useEventCenter||e.useEventCenter,isHitComboAllowed:e.isHitComboAllowed||null}}(t,n),r=[ia,ra].concat(e.props.pluginHooks.componentInteractions).map((function(t){return new t(i)}));e.interactionsStore[t.uid]=r,Ko[t.uid]=i},e.unregisterInteractiveComponent=function(t){var n=e.interactionsStore[t.uid];if(n){for(var i=0,r=n;i10?{weekday:"short"}:e>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var da="fc-col-header-cell";function ua(t){return t.text}var ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.context,e=t.dateEnv,n=t.options,r=t.theme,o=t.viewApi,a=this.props,s=a.date,l=a.dateProfile,c=er(s,a.todayRange,null,l),d=[da].concat(nr(c,r)),u=e.format(s,a.dayHeaderFormat),h=!c.isDisabled&&a.colCnt>1?or(this.context,s):{},f=i(i(i({date:e.toDate(s),view:o},a.extraHookProps),{text:u}),c);return zr(Br,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:ua,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(t,e,n,r){return zr("th",i({ref:t,role:"columnheader",className:d.concat(e).join(" "),"data-date":c.isDisabled?void 0:Fe(s),colSpan:a.colSpan},a.extraDataAttrs),zr("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&zr("a",i({ref:n,className:["fc-col-header-cell-cushion",a.isSticky?"fc-sticky":""].join(" ")},h),r)))}))},e}(Ar),fa=ln({weekday:"long"}),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context,n=e.dateEnv,r=e.theme,o=e.viewApi,a=e.options,s=ee(new Date(2592e5),t.dow),l={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=[da].concat(nr(l,r),t.extraClassNames||[]),d=n.format(s,t.dayHeaderFormat),u=i(i(i(i({date:s},l),{view:o}),t.extraHookProps),{text:d});return zr(Br,{hookProps:u,classNames:a.dayHeaderClassNames,content:a.dayHeaderContent,defaultContent:ua,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},(function(e,r,o,a){return zr("th",i({ref:e,role:"columnheader",className:c.concat(r).join(" "),colSpan:t.colSpan},t.extraDataAttrs),zr("div",{className:"fc-scrollgrid-sync-inner"},zr("a",{"aria-label":n.format(s,fa),className:["fc-col-header-cell-cushion",t.isSticky?"fc-sticky":""].join(" "),ref:o},a)))}))},e}(Ar),pa=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.initialNowDate=Hi(n.options.now,n.dateEnv),i.initialNowQueriedMs=(new Date).valueOf(),i.state=i.computeTiming().currentState,i}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.state;return t.children(e.nowDate,e.todayRange)},e.prototype.componentDidMount=function(){this.setTimeout()},e.prototype.componentDidUpdate=function(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},e.prototype.componentWillUnmount=function(){this.clearTimeout()},e.prototype.computeTiming=function(){var t=this.props,e=this.context,n=ne(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=e.dateEnv.startOf(n,t.unit),r=e.dateEnv.add(i,$e(1,t.unit)),o=r.valueOf()-n.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:i,todayRange:ma(i)},nextState:{nowDate:r,todayRange:ma(r)},waitMs:o}},e.prototype.setTimeout=function(){var t=this,e=this.computeTiming(),n=e.nextState,i=e.waitMs;this.timeoutId=setTimeout((function(){t.setState(n,(function(){t.setTimeout()}))}),i)},e.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},e.contextType=Er,e}(Lr);function ma(t){var e=le(t);return{start:e,end:ee(e,1)}}var ga=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.createDayHeaderFormatter=We(va),e}return n(e,t),e.prototype.render=function(){var t=this.context,e=this.props,n=e.dates,i=e.dateProfile,r=e.datesRepDistinctDays,o=e.renderIntro,a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,r,n.length);return zr(pa,{unit:"day"},(function(t,e){return zr("tr",{role:"row"},o&&o("day"),n.map((function(t){return r?zr(ha,{key:t.toISOString(),date:t,dateProfile:i,todayRange:e,colCnt:n.length,dayHeaderFormat:a}):zr(Ca,{key:t.getUTCDay(),dow:t.getUTCDay(),dayHeaderFormat:a})})))}))},e}(Ar);function va(t,e,n){return t||ca(e,n)}var ya=function(){function t(t,e){for(var n=t.start,i=t.end,r=[],o=[],a=-1;n=e.length?e[e.length-1]+1:e[n]},t}(),ba=function(){function t(t,e){var n,i,r,o=t.dates;if(e){for(i=o[0].getUTCDay(),n=1;ne)return!0;return!1},e.prototype.needsYScrolling=function(){if(Da.test(this.props.overflowY))return!1;for(var t=this.el,e=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=t.children,i=0;ie)return!0;return!1},e.prototype.getXScrollbarWidth=function(){return Da.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},e.prototype.getYScrollbarWidth=function(){return Da.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},e}(Ar),$a=function(){function t(t){var e=this;this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(t,n){var i=e,r=i.depths,o=i.currentMap,a=!1,s=!1;null!==t?(a=n in o,o[n]=t,r[n]=(r[n]||0)+1,s=!0):(r[n]-=1,r[n]||(delete o[n],delete e.callbackMap[n],a=!0)),e.masterCallback&&(a&&e.masterCallback(null,String(n)),s&&e.masterCallback(t,String(n)))}}return t.prototype.createRef=function(t){var e=this,n=this.callbackMap[t];return n||(n=this.callbackMap[t]=function(n){e.handleValue(n,String(t))}),n},t.prototype.collect=function(t,e,n){return xe(this.currentMap,t,e,n)},t.prototype.getAll=function(){return ze(this.currentMap)},t}();function Ta(t){for(var e=0,n=0,i=Lt(t,".fc-scrollgrid-shrink");n=0&&t=0&&ee.eventRange.range.end?t:e}var ps=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(t){switch(t.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":r.renderRunner.tryDrain()}},r.handleData=function(t){r.currentData=t,r.renderRunner.request(t.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var t=r.currentData;Sr((function(){wr(zr(la,{options:t.calendarOptions,theme:t.theme,emitter:t.emitter},(function(e,n,o,a){return r.setClassNames(e),r.setHeight(n),zr(qr.Provider,{value:r.customContentRenderId},zr(oa,i({isHeightAuto:o,forPrint:a},t)))})),r.el)}))}else r.isRendered&&(r.isRendered=!1,kr(r.el),r.setClassNames([]),r.setHeight(""))},r.el=e,r.renderRunner=new wo(r.handleRenderRequest),new Vo({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return n(e,t),Object.defineProperty(e.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()},e.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},e.prototype.updateSize=function(){var e=this;Sr((function(){t.prototype.updateSize.call(e)}))},e.prototype.batchRendering=function(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")},e.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},e.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},e.prototype.resetOptions=function(t,e){this.currentDataManager.resetOptions(t,e)},e.prototype.setClassNames=function(t){if(!Ue(t,this.currentClassNames)){for(var e=this.el.classList,n=0,i=this.currentClassNames;n0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Hs()))}},t.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var t=0,e=this.scrollCaches;t=0&&c>=0&&d>=0&&u>=0&&(d<=n&&this.everMovedUp&&a.canScrollUp()&&(!i||i.distance>d)&&(i={scrollCache:a,name:"top",distance:d}),u<=n&&this.everMovedDown&&a.canScrollDown()&&(!i||i.distance>u)&&(i={scrollCache:a,name:"bottom",distance:u}),l<=n&&this.everMovedLeft&&a.canScrollLeft()&&(!i||i.distance>l)&&(i={scrollCache:a,name:"left",distance:l}),c<=n&&this.everMovedRight&&a.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:a,name:"right",distance:c}))}return i},t.prototype.buildCaches=function(t){return this.queryScrollEls(t).map((function(t){return t===window?new ws(!1):new zs(t,!1)}))},t.prototype.queryScrollEls=function(t){for(var e=[],n=0,i=this.scrollQuery;n=e*e&&i.handleDistanceSurpassed(t)}i.isDragging&&("scroll"!==t.origEvent.type&&(i.mirror.handleMove(t.pageX,t.pageY),i.autoScroller.handleMove(t.pageX,t.pageY)),i.emitter.trigger("dragmove",t))}},i.onPointerUp=function(t){i.isInteracting&&(i.isInteracting=!1,jt(document.body),Bt(document.body),i.emitter.trigger("pointerup",t),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(t)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var r=i.pointer=new ys(e);return r.emitter.on("pointerdown",i.onPointerDown),r.emitter.on("pointermove",i.onPointerMove),r.emitter.on("pointerup",i.onPointerUp),n&&(r.selector=n),i.mirror=new Ms,i.autoScroller=new _s,i}return n(e,t),e.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},e.prototype.startDelay=function(t){var e=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){e.delayTimeoutId=null,e.handleDelayEnd(t)}),this.delay):this.handleDelayEnd(t)},e.prototype.handleDelayEnd=function(t){this.isDelayEnded=!0,this.tryStartDrag(t)},e.prototype.handleDistanceSurpassed=function(t){this.isDistanceSurpassed=!0,this.tryStartDrag(t)},e.prototype.tryStartDrag=function(t){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(t.pageX,t.pageY,this.containerEl),this.emitter.trigger("dragstart",t),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},e.prototype.tryStopDrag=function(t){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,t))},e.prototype.stopDrag=function(t){this.isDragging=!1,this.emitter.trigger("dragend",t)},e.prototype.setIgnoreMove=function(t){this.pointer.shouldIgnoreMove=t},e.prototype.setMirrorIsVisible=function(t){this.mirror.setIsVisible(t)},e.prototype.setMirrorNeedsRevert=function(t){this.mirrorNeedsRevert=t},e.prototype.setAutoScrollEnabled=function(t){this.autoScroller.isEnabled=t},e}(Zo),xs=function(){function t(t){this.origRect=fr(t),this.scrollCaches=Cr(t).map((function(t){return new zs(t,!0)}))}return t.prototype.destroy=function(){for(var t=0,e=this.scrollCaches;t=0&&d=0&&ur.layer)&&(p.componentId=o,p.context=a.context,p.rect.left+=l,p.rect.right+=l,p.rect.top+=c,p.rect.bottom+=c,r=p)}}}return r},t}();function ks(t,e){return!t&&!e||Boolean(t)===Boolean(e)&&hi(t.dateSpan,e.dateSpan)}function Ds(t,e){for(var n,r,o={},a=0,s=e.pluginHooks.datePointTransforms;ai.start)return{endDelta:o};return null}(a,t,i.subjectEl.classList.contains("fc-event-resizer-start"),s.range))),l&&(c=vi(o,r.getCurrentData().eventUiBases,l,r),u.mutatedEvents=c,za(u,t.dateProfile,r)||(d=!0,l=null,c=null,u.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:u}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),d?Nt():It(),e||(l&&ks(a,t)&&(l=null),n.validMutation=l,n.mutatedRelevantEvents=c)},n.handleDragEnd=function(t){var e=n.component.context,r=n.eventRange.def,o=n.eventRange.instance,a=new Vi(e,r,o),s=n.relevantEvents,l=n.mutatedRelevantEvents;if(e.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:a,jsEvent:t.origEvent,view:e.viewApi}),n.validMutation){var c=new Vi(e,l.defs[r.defId],o?l.instances[o.instanceId]:null);e.dispatch({type:"MERGE_EVENTS",eventStore:l});var d={oldEvent:a,event:c,relatedEvents:Si(l,e,o),revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:s})}};e.emitter.trigger("eventResize",i(i({},d),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||$e(0),endDelta:n.validMutation.endDelta||$e(0),jsEvent:t.origEvent,view:e.viewApi})),e.emitter.trigger("eventChange",d)}else e.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=e.component,o=n.dragging=new Vs(e.el);o.pointer.selector=".fc-event-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=r.context.options.dragScroll;var a=n.hitDragging=new Ss(n.dragging,Go(e));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("dragend",n.handleDragEnd),n}return n(e,t),e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.querySegEl=function(t){return bt(t.subjectEl,".fc-event")},e}(Yo),Os=function(){function t(t){var e=this;this.context=t,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(t){t.jsEvent&&(e.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(t){var n=e.context.options.unselectCancel,i=_t(t.origEvent);e.matchesCancel=!!bt(i,n),e.matchesEvent=!!bt(i,Ts.SELECTOR)},this.onDocumentPointerUp=function(t){var n=e.context,i=e.documentPointer,r=n.getCurrentData();if(!i.wasTouchScroll){if(r.dateSelection&&!e.isRecentPointerDateSelect){var o=n.options.unselectAuto;!o||o&&e.matchesCancel||n.calendarApi.unselect(t)}r.eventSelection&&!e.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}e.isRecentPointerDateSelect=!1};var n=this.documentPointer=new ys(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),t.emitter.on("select",this.onSelect)}return t.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},t}(),Ps={fixedMirrorParent:vn},Ns={dateClick:vn,eventDragStart:vn,eventDragStop:vn,eventDrop:vn,eventResizeStart:vn,eventResizeStop:vn,eventResize:vn,drop:vn,eventReceive:vn,eventLeave:vn},Is=function(){function t(t,e){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(t){n.dragMeta=n.buildDragMeta(t.subjectEl)},this.handleHitUpdate=function(t,e,r){var o=n.hitDragging.dragging,a=null,s=null,l=!1,c={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:n.dragMeta.create};t&&(a=t.context,n.canDropElOnCalendar(r.subjectEl,a)&&(s=function(t,e,n){for(var r=i({},e.leftoverProps),o=0,a=n.pluginHooks.externalDefTransforms;o1,b=v.span.start===s;u+=v.levelCoord-d,d=v.levelCoord+v.thickness,y?(u+=v.thickness,b&&p.push({seg:ol(C,v.span.start,v.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:v.levelCoord,marginTop:0})):b&&(p.push({seg:ol(C,v.span.start,v.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:v.levelCoord,marginTop:u}),u=0)}r.push(c),o.push(p),a.push(u)}return{singleColPlacements:r,multiColPlacements:o,leftoverMargins:a}}(s.toRects(),t,a),C=f.singleColPlacements,p=f.multiColPlacements,m=f.leftoverMargins,g=[],v=[],y=0,b=c;y1,showWeekNumbers:e.showWeekNumbers,todayRange:C,dateProfile:n,cells:o,renderIntro:e.renderRowIntro,businessHourSegs:s[f],eventSelection:e.eventSelection,bgEventSegs:l[f].filter(cl),fgEventSegs:c[f],dateSelectionSegs:d[f],eventDrag:u[f],eventResize:h[f],dayMaxEvents:r,dayMaxEventRows:i,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint})})))))})))},e.prototype.prepareHits=function(){this.rowPositions=new gr(this.rootEl,this.rowRefs.collect().map((function(t){return t.getCellEls()[0]})),!1,!0),this.colPositions=new gr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},e.prototype.queryHit=function(t,e){var n=this.colPositions,r=this.rowPositions,o=n.leftToIndex(t),a=r.topToIndex(e);if(null!=a&&null!=o){var s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null},e.prototype.getCellEl=function(t,e){return this.rowRefs.currentMap[t].getCellEls()[e]},e.prototype.getCellRange=function(t,e){var n=this.props.cells[t][e].date;return{start:n,end:ee(n,1)}},e}(Ir);function cl(t){return t.eventRange.def.allDay}var dl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.forceDayIfListItem=!0,e}return n(e,t),e.prototype.sliceRange=function(t,e){return e.sliceRange(t)},e}(Ma),ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.slicer=new dl,e.tableRef=Hr(),e}return n(e,t),e.prototype.render=function(){var t=this.props,e=this.context;return zr(ll,i({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,e,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))},e}(Ir),hl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buildDayTableModel=We(fl),e.headerRef=Hr(),e.tableRef=Hr(),e}return n(e,t),e.prototype.render=function(){var t=this,e=this.context,n=e.options,i=e.dateProfileGenerator,r=this.props,o=this.buildDayTableModel(r.dateProfile,i),a=n.dayHeaders&&zr(ga,{ref:this.headerRef,dateProfile:r.dateProfile,dates:o.headerDates,datesRepDistinctDays:1===o.rowCnt}),s=function(e){return zr(ul,{ref:t.tableRef,dateProfile:r.dateProfile,dayTableModel:o,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:t.headerElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:r.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(a,s,o.colCnt,n.dayMinWidth):this.renderSimpleLayout(a,s)},e}(qs);function fl(t,e){var n=new ya(t.renderRange,e);return new ba(n,/year|month|week/.test(t.currentRangeUnit))}var Cl=Rr({initialView:"dayGridMonth",views:{dayGrid:{component:hl,dateProfileGeneratorClass:function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.buildRenderRange=function(e,n,i){var r,o=this.props.dateEnv,a=t.prototype.buildRenderRange.call(this,e,n,i),s=a.start,l=a.end;return/^(year|month)$/.test(n)&&(s=o.startOfWeek(s),(r=o.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=te(r,1))),this.props.monthMode&&this.props.fixedWeekCount&&(l=te(l,6-Math.ceil(ie(s,l)))),{start:s,end:l}},e}(no)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),pl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},e.prototype.getKeysForDateSpan=function(t){return t.allDay?["allDay"]:["timed"]},e.prototype.getKeysForEventDef=function(t){return t.allDay?Kn(t)?["timed","allDay"]:["allDay"]:["timed"]},e}(Qi),ml=ln({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function gl(t){var e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return zr(Er.Consumer,null,(function(n){if(!t.isLabeled)return zr("td",{className:e.join(" "),"data-time":t.isoTimeStr});var i=n.dateEnv,r=n.options,o=n.viewApi,a=null==r.slotLabelFormat?ml:Array.isArray(r.slotLabelFormat)?ln(r.slotLabelFormat[0]):ln(r.slotLabelFormat),s={level:0,time:t.time,date:i.toDate(t.date),view:o,text:i.format(t.date,a)};return zr(Br,{hookProps:s,classNames:r.slotLabelClassNames,content:r.slotLabelContent,defaultContent:vl,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(function(n,i,r,o){return zr("td",{ref:n,className:e.concat(i).join(" "),"data-time":t.isoTimeStr},zr("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},zr("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:r},o)))}))}))}function vl(t){return t.text}var yl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.render=function(){return this.props.slatMetas.map((function(t){return zr("tr",{key:t.key},zr(gl,i({},t)))}))},e}(Ar),bl=ln({week:"short"}),Ml=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allDaySplitter=new pl,e.headerElRef=Hr(),e.rootElRef=Hr(),e.scrollerElRef=Hr(),e.state={slatCoords:null},e.handleScrollTopRequest=function(t){var n=e.scrollerElRef.current;n&&(n.scrollTop=t)},e.renderHeadAxis=function(t,n){void 0===n&&(n="");var r=e.context.options,o=e.props.dateProfile.renderRange,a=1===re(o.start,o.end)?or(e.context,o.start,"week"):{};return r.weekNumbers&&"day"===t?zr(os,{date:o.start,defaultFormat:bl},(function(t,e,r,o){return zr("th",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(e).join(" ")},zr("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},zr("a",i({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},a),o)))})):zr("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},zr("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},e.renderTableRowAxis=function(t){var n=e.context,i=n.options,r=n.viewApi,o={text:i.allDayText,view:r};return zr(Br,{hookProps:o,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:Ll,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},(function(e,n,i,r){return zr("td",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},zr("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==t?" fc-timegrid-axis-frame-liquid":""),style:{height:t}},zr("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:i},r)))}))},e.handleSlatCoords=function(t){e.setState({slatCoords:t})},e}return n(e,t),e.prototype.renderSimpleLayout=function(t,e,n){var i=this.context,r=this.props,o=[],a=Ua(i.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),e&&(o.push({type:"body",key:"all-day",chunk:{content:e}}),o.push({type:"body",key:"all-day-divider",outerContent:zr("tr",{role:"presentation",className:"fc-scrollgrid-section"},zr("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),zr(Xr,{viewSpec:i.viewSpec,elRef:this.rootElRef},(function(t,e){return zr("div",{className:["fc-timegrid"].concat(e).join(" "),ref:t},zr(Ya,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:o}))}))},e.prototype.renderHScrollLayout=function(t,e,n,i,r,o,a){var s=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var c=this.context,d=this.props,u=!d.forPrint&&Ua(c.options),h=!d.forPrint&&Wa(c.options),f=[];t&&f.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return zr("tr",{role:"presentation"},s.renderHeadAxis("day",t.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),e&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(t){return zr("tr",{role:"presentation"},s.renderTableRowAxis(t.rowSyncHeights[0]))}},{key:"cols",content:e}]}),f.push({key:"all-day-divider",type:"body",outerContent:zr("tr",{role:"presentation",className:"fc-scrollgrid-section"},zr("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));var C=c.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:function(t){return zr("div",{className:"fc-timegrid-axis-chunk"},zr("table",{"aria-hidden":!0,style:{height:t.expandRows?t.clientHeight:""}},t.tableColGroupNode,zr("tbody",null,zr(yl,{slatMetas:o}))),zr("div",{className:"fc-timegrid-now-indicator-container"},zr(pa,{unit:C?"minute":"day"},(function(t){var e=C&&a&&a.safeComputeTop(t);return"number"==typeof e?zr(Xa,{isAxis:!0,date:t},(function(t,n,i,r){return zr("div",{ref:t,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:e}},r)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:qa},{key:"cols",content:qa}]}),zr(Xr,{viewSpec:c.viewSpec,elRef:this.rootElRef},(function(t,e){return zr("div",{className:["fc-timegrid"].concat(e).join(" "),ref:t},zr(l,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:f}))}))},e.prototype.getAllDayMaxEventProps=function(){var t=this.context.options,e=t.dayMaxEvents,n=t.dayMaxEventRows;return!0!==e&&!0!==n||(e=void 0,n=5),{dayMaxEvents:e,dayMaxEventRows:n}},e}(Ir);function Ll(t){return t.text}var zl=function(){function t(t,e,n){this.positions=t,this.dateProfile=e,this.slotDuration=n}return t.prototype.safeComputeTop=function(t){var e=this.dateProfile;if(Yn(e.currentRange,t)){var n=le(t),i=t.valueOf()-n.valueOf();if(i>=Ne(e.slotMinTime)&&i0,y=Boolean(l)&&l.span.end-l.span.start=0;e-=1)if(null!==(i=Ie(n=$e(Gl[e]),t))&&i>1)return n;return t}(i),c=[];Ne(a)0?t.renderSegList(s,o):t.renderEmptyMessage()))}))},e.prototype.renderEmptyMessage=function(){var t=this.context,e=t.options,n=t.viewApi,i={text:e.noEventsText,view:n};return zr(Br,{hookProps:i,classNames:e.noEventsClassNames,content:e.noEventsContent,defaultContent:oc,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},(function(t,e,n,i){return zr("div",{className:["fc-list-empty"].concat(e).join(" "),ref:t},zr("div",{className:"fc-list-empty-cushion",ref:n},i))}))},e.prototype.renderSegList=function(t,e){var n=this.context,r=n.theme,o=n.options,a=this.state,s=a.timeHeaderId,l=a.eventHeaderId,c=a.dateHeaderIdRoot,d=function(t){var e,n,i=[];for(e=0;e{var t={306:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>Mn});var i,r,o,a,s=!1,l=!1,c=[];function d(t){let e=c.indexOf(t);-1!==e&&c.splice(e,1)}function u(){s=!1,l=!0;for(let t=0;t{(void 0===e||e.includes(n))&&(i.forEach((t=>t())),delete t._x_attributeCleanups[n])}))}var y=new MutationObserver(V),b=!1;function M(){y.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),b=!0}var L=[],z=!1;function w(t){if(!b)return t();(L=L.concat(y.takeRecords())).length&&!z&&(z=!0,queueMicrotask((()=>{V(L),L.length=0,z=!1}))),y.disconnect(),b=!1;let e=t();return M(),e}var H=!1,_=[];function V(t){if(H)return void(_=_.concat(t));let e=[],n=[],i=new Map,r=new Map;for(let o=0;o1===t.nodeType&&e.push(t))),t[o].removedNodes.forEach((t=>1===t.nodeType&&n.push(t)))),"attributes"===t[o].type)){let e=t[o].target,n=t[o].attributeName,a=t[o].oldValue,s=()=>{i.has(e)||i.set(e,[]),i.get(e).push({name:n,value:e.getAttribute(n)})},l=()=>{r.has(e)||r.set(e,[]),r.get(e).push(n)};e.hasAttribute(n)&&null===a?s():e.hasAttribute(n)?(l(),s()):l()}r.forEach(((t,e)=>{v(e,t)})),i.forEach(((t,e)=>{C.forEach((n=>n(e,t)))}));for(let t of n)if(!e.includes(t)&&(p.forEach((e=>e(t))),t._x_cleanups))for(;t._x_cleanups.length;)t._x_cleanups.pop()();e.forEach((t=>{t._x_ignoreSelf=!0,t._x_ignore=!0}));for(let t of e)n.includes(t)||t.isConnected&&(delete t._x_ignoreSelf,delete t._x_ignore,m.forEach((e=>e(t))),t._x_ignore=!0,t._x_ignoreSelf=!0);e.forEach((t=>{delete t._x_ignoreSelf,delete t._x_ignore})),e=null,n=null,i=null,r=null}function x(t){return E(D(t))}function S(t,e,n){return t._x_dataStack=[e,...D(n||t)],()=>{t._x_dataStack=t._x_dataStack.filter((t=>t!==e))}}function k(t,e){let n=t._x_dataStack[0];Object.entries(e).forEach((([t,e])=>{n[t]=e}))}function D(t){return t._x_dataStack?t._x_dataStack:"function"==typeof ShadowRoot&&t instanceof ShadowRoot?D(t.host):t.parentNode?D(t.parentNode):[]}function E(t){let e=new Proxy({},{ownKeys:()=>Array.from(new Set(t.flatMap((t=>Object.keys(t))))),has:(e,n)=>t.some((t=>t.hasOwnProperty(n))),get:(n,i)=>(t.find((t=>{if(t.hasOwnProperty(i)){let n=Object.getOwnPropertyDescriptor(t,i);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let r=n.get,o=n.set,a=n;r=r&&r.bind(e),o=o&&o.bind(e),r&&(r._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(t,i,{...a,get:r,set:o})}return!0}return!1}))||{})[i],set:(e,n,i)=>{let r=t.find((t=>t.hasOwnProperty(n)));return r?r[n]=i:t[t.length-1][n]=i,!0}});return e}function $(t){let e=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([r,{value:o,enumerable:a}])=>{if(!1===a||void 0===o)return;let s=""===i?r:`${i}.${r}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[r]=o.initialize(t,s,r):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||e(o,s)}))};return e(t)}function T(t,e=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(e,n,i){return t(this.initialValue,(()=>function(t,e){return e.split(".").reduce(((t,e)=>t[e]),t)}(e,n)),(t=>A(e,n,t)),n,i)}};return e(n),t=>{if("object"==typeof t&&null!==t&&t._x_interceptor){let e=n.initialize.bind(n);n.initialize=(i,r,o)=>{let a=t.initialize(i,r,o);return n.initialValue=a,e(i,r,o)}}else n.initialValue=t;return n}}function A(t,e,n){if("string"==typeof e&&(e=e.split(".")),1!==e.length){if(0===e.length)throw error;return t[e[0]]||(t[e[0]]={}),A(t[e[0]],e.slice(1),n)}t[e[0]]=n}var O={};function P(t,e){O[t]=e}function N(t,e){return Object.entries(O).forEach((([n,i])=>{Object.defineProperty(t,`$${n}`,{get(){let[t,n]=nt(e);return t={interceptor:T,...t},g(e,n),i(e,t)},enumerable:!1})})),t}function I(t,e,n,...i){try{return n(...i)}catch(n){R(n,t,e)}}function R(t,e,n){Object.assign(t,{el:e,expression:n}),console.warn(`Alpine Expression Error: ${t.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,e),setTimeout((()=>{throw t}),0)}var j=!0;function F(t,e,n={}){let i;return B(t,e)((t=>i=t),n),i}function B(...t){return q(...t)}var q=U;function U(t,e){let n={};N(n,t);let i=[n,...D(t)];if("function"==typeof e)return function(t,e){return(n=(()=>{}),{scope:i={},params:r=[]}={})=>{Y(n,e.apply(E([i,...t]),r))}}(i,e);let r=function(t,e,n){let i=function(t,e){if(W[t])return W[t];let n=Object.getPrototypeOf((async function(){})).constructor,i=/^[\n\s]*if.*\(.*\)/.test(t)||/^(let|const)\s/.test(t)?`(() => { ${t} })()`:t,r=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(n){return R(n,e,t),Promise.resolve()}})();return W[t]=r,r}(e,n);return(r=(()=>{}),{scope:o={},params:a=[]}={})=>{i.result=void 0,i.finished=!1;let s=E([o,...t]);if("function"==typeof i){let t=i(i,s).catch((t=>R(t,n,e)));i.finished?(Y(r,i.result,s,a,n),i.result=void 0):t.then((t=>{Y(r,t,s,a,n)})).catch((t=>R(t,n,e))).finally((()=>i.result=void 0))}}}(i,e,t);return I.bind(null,t,e,r)}var W={};function Y(t,e,n,i,r){if(j&&"function"==typeof e){let o=e.apply(n,i);o instanceof Promise?o.then((e=>Y(t,e,n,i))).catch((t=>R(t,r,e))):t(o)}else t(e)}var G="x-";function K(t=""){return G+t}var Z={};function X(t,e){Z[t]=e}function J(t,e,n){let i={},r=Array.from(e).map(rt(((t,e)=>i[t]=e))).filter(st).map(function(t,e){return({name:n,value:i})=>{let r=n.match(lt()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=e||t[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:a.map((t=>t.replace(".",""))),expression:i,original:s}}}(i,n)).sort(ut);return r.map((e=>function(t,e){let n=Z[e.type]||(()=>{}),[i,r]=nt(t);!function(t,e,n){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(n)}(t,e.original,r);let o=()=>{t._x_ignore||t._x_ignoreSelf||(n.inline&&n.inline(t,e,i),n=n.bind(n,t,e,i),Q?tt.get(et).push(n):n())};return o.runCleanups=r,o}(t,e)))}var Q=!1,tt=new Map,et=Symbol();function nt(t){let e=[],[n,i]=function(t){let e=()=>{};return[n=>{let i=r(n);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach((t=>t()))}),t._x_effects.add(i),e=()=>{void 0!==i&&(t._x_effects.delete(i),o(i))},i},()=>{e()}]}(t);return e.push(i),[{Alpine:Yt,effect:n,cleanup:t=>e.push(t),evaluateLater:B.bind(B,t),evaluate:F.bind(F,t)},()=>e.forEach((t=>t()))]}var it=(t,e)=>({name:n,value:i})=>(n.startsWith(t)&&(n=n.replace(t,e)),{name:n,value:i});function rt(t=(()=>{})){return({name:e,value:n})=>{let{name:i,value:r}=ot.reduce(((t,e)=>e(t)),{name:e,value:n});return i!==e&&t(i,e),{name:i,value:r}}}var ot=[];function at(t){ot.push(t)}function st({name:t}){return lt().test(t)}var lt=()=>new RegExp(`^${G}([^:^.]+)\\b`),ct="DEFAULT",dt=["ignore","ref","data","id","bind","init","for","mask","model","modelable","transition","show","if",ct,"teleport","element"];function ut(t,e){let n=-1===dt.indexOf(t.type)?ct:t.type,i=-1===dt.indexOf(e.type)?ct:e.type;return dt.indexOf(n)-dt.indexOf(i)}function ht(t,e,n={}){t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var ft=[],Ct=!1;function pt(t=(()=>{})){return queueMicrotask((()=>{Ct||setTimeout((()=>{mt()}))})),new Promise((e=>{ft.push((()=>{t(),e()}))}))}function mt(){for(Ct=!1;ft.length;)ft.shift()()}function gt(t,e){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)return void Array.from(t.children).forEach((t=>gt(t,e)));let n=!1;if(e(t,(()=>n=!0)),n)return;let i=t.firstElementChild;for(;i;)gt(i,e),i=i.nextElementSibling}function vt(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var yt=[],bt=[];function Mt(){return yt.map((t=>t()))}function Lt(){return yt.concat(bt).map((t=>t()))}function zt(t){yt.push(t)}function wt(t){bt.push(t)}function Ht(t,e=!1){return _t(t,(t=>{if((e?Lt():Mt()).some((e=>t.matches(e))))return!0}))}function _t(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),t.parentElement)return _t(t.parentElement,e)}}function Vt(t,e=gt){!function(t){Q=!0;let e=Symbol();et=e,tt.set(e,[]);let n=()=>{for(;tt.get(e).length;)tt.get(e).shift()();tt.delete(e)};t(),Q=!1,n()}((()=>{e(t,((t,e)=>{J(t,t.attributes).forEach((t=>t())),t._x_ignore&&e()}))}))}function xt(t,e){return Array.isArray(e)?St(t,e.join(" ")):"object"==typeof e&&null!==e?function(t,e){let n=t=>t.split(" ").filter(Boolean),i=Object.entries(e).flatMap((([t,e])=>!!e&&n(t))).filter(Boolean),r=Object.entries(e).flatMap((([t,e])=>!e&&n(t))).filter(Boolean),o=[],a=[];return r.forEach((e=>{t.classList.contains(e)&&(t.classList.remove(e),a.push(e))})),i.forEach((e=>{t.classList.contains(e)||(t.classList.add(e),o.push(e))})),()=>{a.forEach((e=>t.classList.add(e))),o.forEach((e=>t.classList.remove(e)))}}(t,e):"function"==typeof e?xt(t,e()):St(t,e)}function St(t,e){return e=!0===e?e="":e||"",n=e.split(" ").filter((e=>!t.classList.contains(e))).filter(Boolean),t.classList.add(...n),()=>{t.classList.remove(...n)};var n}function kt(t,e){return"object"==typeof e&&null!==e?function(t,e){let n={};return Object.entries(e).forEach((([e,i])=>{n[e]=t.style[e],e.startsWith("--")||(e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),t.style.setProperty(e,i)})),setTimeout((()=>{0===t.style.length&&t.removeAttribute("style")})),()=>{kt(t,n)}}(t,e):function(t,e){let n=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",n||"")}}(t,e)}function Dt(t,e=(()=>{})){let n=!1;return function(){n?e.apply(this,arguments):(n=!0,t.apply(this,arguments))}}function Et(t,e,n={}){t._x_transition||(t._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),i=(()=>{})){Tt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=(()=>{}),i=(()=>{})){Tt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function $t(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:$t(e)}function Tt(t,e,{during:n,start:i,end:r}={},o=(()=>{}),a=(()=>{})){if(t._x_transitioning&&t._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return o(),void a();let s,l,c;!function(t,e){let n,i,r,o=Dt((()=>{w((()=>{n=!0,i||e.before(),r||(e.end(),mt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning}))}));t._x_transitioning={beforeCancels:[],beforeCancel(t){this.beforeCancels.push(t)},cancel:Dt((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},w((()=>{e.start(),e.during()})),Ct=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),w((()=>{e.before()})),i=!0,requestAnimationFrame((()=>{n||(w((()=>{e.end()})),mt(),setTimeout(t._x_transitioning.finish,o+a),r=!0)}))}))}(t,{start(){s=e(t,i)},during(){l=e(t,n)},before:o,end(){s(),c=e(t,r)},after:a,cleanup(){l(),c()}})}function At(t,e,n){if(-1===t.indexOf(e))return n;const i=t[t.indexOf(e)+1];if(!i)return n;if("scale"===e&&isNaN(i))return n;if("duration"===e){let t=i.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[i,t[t.indexOf(e)+2]].join(" "):i}X("transition",((t,{value:e,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),i?function(t,e,n){Et(t,xt,""),{enter:e=>{t._x_transition.enter.during=e},"enter-start":e=>{t._x_transition.enter.start=e},"enter-end":e=>{t._x_transition.enter.end=e},leave:e=>{t._x_transition.leave.during=e},"leave-start":e=>{t._x_transition.leave.start=e},"leave-end":e=>{t._x_transition.leave.end=e}}[n](e)}(t,i,e):function(t,e,n){Et(t,kt);let i=!e.includes("in")&&!e.includes("out")&&!n,r=i||e.includes("in")||["enter"].includes(n),o=i||e.includes("out")||["leave"].includes(n);e.includes("in")&&!i&&(e=e.filter(((t,n)=>nn>e.indexOf("out"))));let a=!e.includes("opacity")&&!e.includes("scale"),s=a||e.includes("opacity")?0:1,l=a||e.includes("scale")?At(e,"scale",95)/100:1,c=At(e,"delay",0),d=At(e,"origin","center"),u="opacity, transform",h=At(e,"duration",150)/1e3,f=At(e,"duration",75)/1e3,C="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(t._x_transition.enter.during={transformOrigin:d,transitionDelay:c,transitionProperty:u,transitionDuration:`${h}s`,transitionTimingFunction:C},t._x_transition.enter.start={opacity:s,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:d,transitionDelay:c,transitionProperty:u,transitionDuration:`${f}s`,transitionTimingFunction:C},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:s,transform:`scale(${l})`})}(t,n,e)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,n,i){let r=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};e?t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(n):r():t._x_transition?t._x_transition.in(n):r():(t._x_hidePromise=t._x_transition?new Promise(((e,n)=>{t._x_transition.out((()=>{}),(()=>e(i))),t._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(i),queueMicrotask((()=>{let e=$t(t);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(t)):queueMicrotask((()=>{let e=t=>{let n=Promise.all([t._x_hidePromise,...(t._x_hideChildren||[]).map(e)]).then((([t])=>t()));return delete t._x_hidePromise,delete t._x_hideChildren,n};e(t).catch((t=>{if(!t.isFromCancelledTransition)throw t}))}))})))};var Ot=!1;function Pt(t,e=(()=>{})){return(...n)=>Ot?e(...n):t(...n)}function Nt(t,e,n,r=[]){switch(t._x_bindings||(t._x_bindings=i({})),t._x_bindings[e]=n,e=r.includes("camel")?e.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase())):e){case"value":!function(t,e){if("radio"===t.type)void 0===t.attributes.value&&(t.value=e),window.fromModel&&(t.checked=It(t.value,e));else if("checkbox"===t.type)Number.isInteger(e)?t.value=e:Number.isInteger(e)||Array.isArray(e)||"boolean"==typeof e||[null,void 0].includes(e)?Array.isArray(e)?t.checked=e.some((e=>It(e,t.value))):t.checked=!!e:t.value=String(e);else if("SELECT"===t.tagName)!function(t,e){const n=[].concat(e).map((t=>t+""));Array.from(t.options).forEach((t=>{t.selected=n.includes(t.value)}))}(t,e);else{if(t.value===e)return;t.value=e}}(t,n);break;case"style":!function(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=kt(t,e)}(t,n);break;case"class":!function(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=xt(t,e)}(t,n);break;default:!function(t,e,n){[null,void 0,!1].includes(n)&&function(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}(e)?t.removeAttribute(e):(Rt(e)&&(n=e),function(t,e,n){t.getAttribute(e)!=n&&t.setAttribute(e,n)}(t,e,n))}(t,e,n)}}function It(t,e){return t==e}function Rt(t){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(t)}function jt(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){n=null,t.apply(i,r)}),e)}}function Ft(t,e){let n;return function(){let i=arguments;n||(t.apply(this,i),n=!0,setTimeout((()=>n=!1),e))}}var Bt={},qt=!1,Ut={},Wt={},Yt={get reactive(){return i},get release(){return o},get effect(){return r},get raw(){return a},version:"3.10.0",flushAndStopDeferringMutations:function(){H=!1,V(_),_=[]},dontAutoEvaluateFunctions:function(t){let e=j;j=!1,t(),j=e},disableEffectScheduling:function(t){h=!1,t(),h=!0},setReactivityEngine:function(t){i=t.reactive,o=t.release,r=e=>t.effect(e,{scheduler:t=>{h?function(t){!function(t){c.includes(t)||c.push(t),l||s||(s=!0,queueMicrotask(u))}(t)}(t):t()}}),a=t.raw},closestDataStack:D,skipDuringClone:Pt,addRootSelector:zt,addInitSelector:wt,addScopeToNode:S,deferMutations:function(){H=!0},mapAttributes:at,evaluateLater:B,setEvaluator:function(t){q=t},mergeProxies:E,findClosest:_t,closestRoot:Ht,interceptor:T,transition:Tt,setStyles:kt,mutateDom:w,directive:X,throttle:Ft,debounce:jt,evaluate:F,initTree:Vt,nextTick:pt,prefixed:K,prefix:function(t){G=t},plugin:function(t){t(Yt)},magic:P,store:function(t,e){if(qt||(Bt=i(Bt),qt=!0),void 0===e)return Bt[t];Bt[t]=e,"object"==typeof e&&null!==e&&e.hasOwnProperty("init")&&"function"==typeof e.init&&Bt[t].init(),$(Bt[t])},start:function(){var t;document.body||vt("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `