From aa0e6a496864ea9c2b6bbdcaaebf92392cdafb79 Mon Sep 17 00:00:00 2001 From: Bayu Hendra Winata Date: Fri, 18 Oct 2019 16:18:24 +0700 Subject: [PATCH] use PHP date format for calendar field --- public/js/all.js | 2 +- public/mix-manifest.json | 2 +- resources/js/init/ui.js | 31 +++++++++++++++++++++++++++---- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/public/js/all.js b/public/js/all.js index a4dc270..d950e88 100644 --- a/public/js/all.js +++ b/public/js/all.js @@ -1 +1 @@ -!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,o=Object.getPrototypeOf,r=n.slice,a=n.concat,s=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,f=d.toString,p=f.call(Object),h={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var o,r,a=(n=n||i).createElement("script");if(a.text=e,t)for(o in v)(r=t[o]||t.getAttribute&&t.getAttribute(o))&&a.setAttribute(o,r);n.head.appendChild(a).parentNode.removeChild(a)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var x="3.4.1",w=function(e,t){return new w.fn.init(e,t)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=y(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+z+")"+z+"*"),B=new RegExp(z+"|>"),W=new RegExp($),Y=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ae=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{L.apply(F=R.call(w.childNodes),w.childNodes),F[w.childNodes.length].nodeType}catch(t){L={apply:F.length?function(e,t){P.apply(e,R.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,o){var r,s,c,u,d,h,v,b=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!o&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,m)){if(11!==C&&(d=Z.exec(e)))if(r=d[1]){if(9===C){if(!(c=t.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(b&&(c=b.getElementById(r))&&y(t,c)&&c.id===r)return i.push(c),i}else{if(d[2])return L.apply(i,t.getElementsByTagName(e)),i;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!E[e+" "]&&(!g||!g.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(v=e,b=t,1===C&&B.test(e)){for((u=t.getAttribute("id"))?u=u.replace(ie,oe):t.setAttribute("id",u=x),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+ye(h[s]);v=h.join(","),b=ee.test(e)&&ve(t.parentNode)||t}try{return L.apply(i,b.querySelectorAll(v)),i}catch(t){E(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,i,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[x]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce(function(t){return t=+t,ce(function(n,i){for(var o,r=e([],n.length,t),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},r=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement&&(h=(p=a).documentElement,m=!r(p),w!==p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+z+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(b=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",$)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),y=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===p||e.ownerDocument===w&&y(w,e)?-1:t===p||t.ownerDocument===w&&y(w,t)?1:u?I(u,e)-I(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],s=[t];if(!o||!r)return e===p?-1:t===p?1:o?-1:r?1:u?I(u,e)-I(u,t):0;if(o===r)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?fe(a[i],s[i]):a[i]===w?-1:s[i]===w?1:0}),p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),n.matchesSelector&&m&&!E[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=b.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){E(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=se.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return m(t)?w.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||M,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:P.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),O.test(o[1])&&w.isPlainObject(t))for(o in t)m(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=i.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,M=w(i);var L=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;nx",h.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Ce=/^key/,ke=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function De(){return!1}function Ee(e,t){return e===function(){try{return i.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,i,o,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ae(e,s,n,i,t[s],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=De;else if(!o)return e;return 1===r&&(a=o,(o=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,o,i,n)})}function Oe(e,t,n){n?(Q.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var i,o,a=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=r.call(arguments),Q.set(this,t,a),i=n(this,t),this[t](),a!==(o=Q.get(this,t))||i?Q.set(this,t,!1):o={},a!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else a.length&&(Q.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&w.event.add(e,t,Se)}w.event={global:{},add:function(e,t,n,i,o){var r,a,s,l,c,u,d,f,p,h,m,g=Q.get(e);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&w.find.matchesSelector(oe,o),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)p=m=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=w.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=w.event.special[p]||{},u=w.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:h.join(".")},r),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),w.event.global[p]=!0)},remove:function(e,t,n,i,o){var r,a,s,l,c,u,d,f,p,h,m,g=Q.hasData(e)&&Q.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(p=m=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=w.event.special[p]||{},f=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=f.length;r--;)u=f[r],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(f.splice(r,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||w.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)w.event.remove(e,p+t[c],n,i,!0);w.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,a,s=w.event.fix(e),l=new Array(arguments.length),c=(Q.get(this,"events")||{})[s.type]||[],u=w.event.special[s.type]||{};for(l[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Me=/\s*$/g;function Re(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,i,o,r,a,s,l,c;if(1===t.nodeType){if(Q.hasData(e)&&(r=Q.access(e),a=Q.set(t,r),c=r.events))for(o in delete a.handle,a.events={},c)for(n=0,i=c[o].length;n")},clone:function(e,t,n){var i,o,r,a,s,l,c,u=e.cloneNode(!0),d=re(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(a=ge(u),i=0,o=(r=ge(e)).length;i").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Yt,Xt=[],Gt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||w.expando+"_"+St++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,a,s=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Gt,"$1"+o):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||w.error(o+" was not called"),a[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){a=arguments},i.always(function(){void 0===r?w(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(o)),a&&m(r)&&r(a[0]),a=r=void 0}),"script"}),h.createHTMLDocument=((Yt=i.implementation.createHTMLDocument("").body).innerHTML="
",2===Yt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((o=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(o)):t=i),a=!n&&[],(r=O.exec(e))?[t.createElement(r[1])]:(r=we([e],t,a),a&&a.length&&w(a).remove(),w.merge([],r.childNodes)));var o,r,a},w.fn.load=function(e,t,n){var i,o,r,a=this,s=e.indexOf(" ");return-1").append(w.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var i,o,r,a,s,l,c=w.css(e,"position"),u=w(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),r=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(a=(i=u.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),m(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),o.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-w.css(i,"marginTop",!0),left:t.left-o.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||oe})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return V(this,function(e,i,o){var r;if(g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=Ue(h.pixelPosition,function(e,n){if(n)return n=Ve(e,t),$e.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){w.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return V(this,function(t,n,o){var r;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?w.css(t,n,s):w.style(t,n,o,s)},t,a?o:void 0,a)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return 0")},fields:function(t){var n=e();return e.each(t,function(e,t){n=n.add(O.get.field(t))}),n},validation:function(t){var n,i;return!!y&&(e.each(y,function(o,r){i=r.identifier||o,e.each(O.get.field(i),function(e,o){if(o==t[0])return r.identifier=i,n=r,!1})}),n||!1)},value:function(e){var t=[];return t.push(e),O.get.values.call(M,t)[e]},values:function(t){var n=Array.isArray(t)?O.get.fields(t):h,o={};return n.each(function(t,n){var r=e(n),a=r.closest(w.uiCalendar),s=r.prop("name"),l=r.val(),c=r.is(w.checkbox),u=r.is(w.radio),d=-1!==s.indexOf("[]"),f=0"}),e(n+="")},prompt:function(t,n){return e("
").addClass(n).html(t[0])}},formatter:{date:function(e){return Intl.DateTimeFormat("en-GB").format(e)},datetime:function(e){return Intl.DateTimeFormat("en-GB",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e)},time:function(e){return Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(e)},month:function(e){return Intl.DateTimeFormat("en-GB",{month:"2-digit",year:"numeric"}).format(e)},year:function(e){return Intl.DateTimeFormat("en-GB",{year:"numeric"}).format(e)}},rules:{empty:function(e){return!(e===i||""===e||Array.isArray(e)&&0===e.length)},checked:function(){return 0=t},length:function(e,t){return e!==i&&e.length>=t},exactLength:function(e,t){return e!==i&&e.length==t},maxLength:function(e,t){return e!==i&&e.length<=t},match:function(e,t,n){var o,r;return 0<(r=n.find('[data-validate="'+t+'"]')).length?o=r.val():0<(r=n.find("#"+t)).length?o=r.val():0<(r=n.find('[name="'+t+'"]')).length?o=r.val():0<(r=n.find('[name="'+t+'[]"]')).length&&(o=r),o!==i&&e.toString()==o.toString()},different:function(e,t,n){var o,r;return 0<(r=n.find('[data-validate="'+t+'"]')).length?o=r.val():0<(r=n.find("#"+t)).length?o=r.val():0<(r=n.find('[name="'+t+'"]')).length?o=r.val():0<(r=n.find('[name="'+t+'[]"]')).length&&(o=r),o!==i&&e.toString()!==o.toString()},creditCard:function(t,n){var i,o,r={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},a={},s=!1,l="string"==typeof n&&n.split(",");if("string"==typeof t&&0!==t.length){if(t=t.replace(/[\-]/g,""),l&&(e.each(l,function(n,i){(o=r[i])&&(a={length:-1!==e.inArray(t.length,o.length),pattern:-1!==t.search(o.pattern)}).length&&a.pattern&&(s=!0)}),!s))return!1;if((i={number:-1!==e.inArray(t.length,r.unionPay.length),pattern:-1!==t.search(r.unionPay.pattern)}).number&&i.pattern)return!0;for(var c=t.length,u=0,d=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],f=0;c--;)f+=d[u][parseInt(t.charAt(c),10)],u^=1;return f%10==0&&0=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(jQuery,window,document),function(e,t,n,i){"use strict";e.isFunction=e.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.accordion=function(n){var o,r=e(this),a=(new Date).getTime(),s=[],l=n,c="string"==typeof l,u=[].slice.call(arguments,1);return r.each(function(){var d,f,p=e.isPlainObject(n)?e.extend(!0,{},e.fn.accordion.settings,n):e.extend({},e.fn.accordion.settings),h=p.className,m=p.namespace,g=p.selector,v=p.error,b="."+m,y="module-"+m,x=r.selector||"",w=e(this),C=w.find(g.title),k=w.find(g.content),T=this,S=w.data(y);f={initialize:function(){f.debug("Initializing",w),f.bind.events(),p.observeChanges&&f.observeChanges(),f.instantiate()},instantiate:function(){S=f,w.data(y,f)},destroy:function(){f.debug("Destroying previous instance",w),w.off(b).removeData(y)},refresh:function(){C=w.find(g.title),k=w.find(g.content)},observeChanges:function(){"MutationObserver"in t&&((d=new MutationObserver(function(e){f.debug("DOM tree modified, updating selector cache"),f.refresh()})).observe(T,{childList:!0,subtree:!0}),f.debug("Setting up mutation observer",d))},bind:{events:function(){f.debug("Binding delegated events"),w.on(p.on+b,g.trigger,f.event.click)}},event:{click:function(){f.toggle.call(this)}},toggle:function(t){var n=t!==i?"number"==typeof t?C.eq(t):e(t).closest(g.title):e(this).closest(g.title),o=n.next(k),r=o.hasClass(h.animating),a=o.hasClass(h.active),s=a&&!r,l=!a&&r;f.debug("Toggling visibility of content",n),s||l?p.collapsible?f.close.call(n):f.debug("Cannot close accordion content collapsing is disabled"):f.open.call(n)},open:function(t){var n=t!==i?"number"==typeof t?C.eq(t):e(t).closest(g.title):e(this).closest(g.title),o=n.next(k),r=o.hasClass(h.animating);o.hasClass(h.active)||r?f.debug("Accordion already open, skipping",o):(f.debug("Opening accordion content",n),p.onOpening.call(o),p.onChanging.call(o),p.exclusive&&f.closeOthers.call(n),n.addClass(h.active),o.stop(!0,!0).addClass(h.animating),p.animateChildren&&(e.fn.transition!==i&&w.transition("is supported")?o.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:p.debug,verbose:p.verbose,duration:p.duration,skipInlineHidden:!0,onComplete:function(){o.children().removeClass(h.transition)}}):o.children().stop(!0,!0).animate({opacity:1},p.duration,f.resetOpacity)),o.slideDown(p.duration,p.easing,function(){o.removeClass(h.animating).addClass(h.active),f.reset.display.call(this),p.onOpen.call(this),p.onChange.call(this)}))},close:function(t){var n=t!==i?"number"==typeof t?C.eq(t):e(t).closest(g.title):e(this).closest(g.title),o=n.next(k),r=o.hasClass(h.animating),a=o.hasClass(h.active);!a&&(a||!r)||a&&r||(f.debug("Closing accordion content",o),p.onClosing.call(o),p.onChanging.call(o),n.removeClass(h.active),o.stop(!0,!0).addClass(h.animating),p.animateChildren&&(e.fn.transition!==i&&w.transition("is supported")?o.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:p.debug,verbose:p.verbose,duration:p.duration,skipInlineHidden:!0}):o.children().stop(!0,!0).animate({opacity:0},p.duration,f.resetOpacity)),o.slideUp(p.duration,p.easing,function(){o.removeClass(h.animating).removeClass(h.active),f.reset.display.call(this),p.onClose.call(this),p.onChange.call(this)}))},closeOthers:function(t){var n,o,r,a=t!==i?C.eq(t):e(this).closest(g.title),s=a.parents(g.content).prev(g.title),l=a.closest(g.accordion),c=g.title+"."+h.active+":visible",u=g.content+"."+h.active+":visible";r=p.closeNested?(n=l.find(c).not(s)).next(k):(n=l.find(c).not(s),o=l.find(u).find(c).not(s),(n=n.not(o)).next(k)),0").addClass(m.popup)[n](t)}E.addClass(m.calendar);var o=h.onVisible,r=h.onHidden;D.length||(E.attr("tabindex","0"),o=function(){return p.focus(),h.onVisible.apply(E,arguments)},r=function(){return p.blur(),h.onHidden.apply(E,arguments)});var a=h.on||(D.length?"focus":"click"),s=e.extend({},h.popupOptions,{popup:E,on:a,hoverable:"hover"===a,onShow:function(){return p.set.focusDate(p.get.date()),p.set.mode(h.startMode),h.onShow.apply(E,arguments)},onVisible:o,onHide:h.onHide,onHidden:r});p.popup(s)}else p.error(C.popup)},inline:function(){A.length&&!h.inline||(E=e("
").addClass(m.calendar).appendTo(S),D.length||E.attr("tabindex","0"))},input:function(){h.touchReadonly&&D.length&&r&&D.prop("readonly",!0)},date:function(){if(h.initialDate){var e=y.date(h.initialDate,h);p.set.date(e,h.formatInput,!1)}else if(S.data(x.date)!==i)e=y.date(S.data(x.date),h),p.set.date(e,h.formatInput,!1);else if(D.length){var t=D.val();e=y.date(t,h),p.set.date(e,h.formatInput,!1)}}},create:{calendar:function(){var t,n,i,o,r,a,s,l=p.get.mode(),c=new Date,u=p.get.date(),d=p.get.focusDate(),f=d||u||h.initialDate||c;f=p.helper.dateInRange(f),d||(d=f,p.set.focusDate(d,!1,!1));var g="year"===l,v="month"===l,y="day"===l,C="hour"===l,k="minute"===l,T="time"===h.type,S=Math.max(h.multiMonth,1),D=y?p.get.monthOffset():0,A=f.getMinutes(),O=f.getHours(),F=f.getDate(),M=f.getMonth()+D,P=f.getFullYear(),L=y?h.showWeekNumbers?8:7:C?4:w.column,R=y||C?6:w.row,I=y?S:1,j=E,z=j.hasClass("left")?"right center":"left center";for(j.empty(),1").addClass(m.grid).appendTo(j)),o=0;o").addClass(m.column).appendTo(s));var N=M+o,_=(new Date(P,N,1).getDay()-h.firstDayOfWeek%7+7)%7;if(!h.constantHeight&&y){var $=new Date(P,N+1,0).getDate()+_;R=Math.ceil($/7)}var q=g?10:v?1:0,H=y?1:0,V=C||k?1:0,U=C||k?F:1,B=new Date(P-q,N-H,U-V,O),W=new Date(P+q,N+H,U+V,O),Y=g?new Date(10*Math.ceil(P/10)-9,0,0):v?new Date(P,0,0):y?new Date(P,N,0):new Date(P,N,F,-1),X=g?new Date(10*Math.ceil(P/10)+1,0,1):v?new Date(P+1,0,1):y?new Date(P,N+1,1):new Date(P,N,F+1),G=l;y&&h.showWeekNumbers&&(G+=" andweek");var Q=e("").addClass(m.table).addClass(G).appendTo(j),K=L;if(!T){var J=e("").appendTo(Q);r=e("").appendTo(J),a=e("").appendTo(J),h.showWeekNumbers&&((a=e("").appendTo(Q);for(t=g?10*Math.ceil(P/10)-9:y?1-_:0,n=0;n").appendTo(oe),y&&h.showWeekNumbers&&((a=e("").appendTo(oe),me=e("
").attr("colspan",""+L).appendTo(r);var Z=g||v?new Date(P,0,1):y?new Date(P,N,1):new Date(P,N,F,O,A),ee=e("").addClass(m.link).appendTo(a);ee.text(b.header(Z,l,h));var te=v?h.disableYear?"day":"year":y?h.disableMonth?"year":"month":"day";if(ee.data(x.mode,te),0===o){var ne=e("").addClass(m.prev).appendTo(a);ne.data(x.focusDate,B),ne.toggleClass(m.disabledCell,!p.helper.isDateInRange(Y,l)),e("").addClass(m.prevIcon).appendTo(ne)}if(o===I-1){var ie=e("").addClass(m.next).appendTo(a);ie.data(x.focusDate,W),ie.toggleClass(m.disabledCell,!p.helper.isDateInRange(X,l)),e("").addClass(m.nextIcon).appendTo(ie)}if(y)for(r=e("
").appendTo(r)).text(h.text.weekNo),a.addClass(m.weekCell),K--),t=0;t").appendTo(r)).text(b.dayColumnHeader((t+h.firstDayOfWeek)%7,h))}var oe=e("
").appendTo(r)).text(p.get.weekOfYear(P,N,t+1-h.firstDayOfWeek)),a.addClass(m.weekCell)),i=0;i").addClass(m.cell).appendTo(r)).text(ae),a.data(x.date,re);var se=y&&re.getMonth()!==(N+12)%12,le=!h.selectAdjacentDays&&se||!p.helper.isDateInRange(re,l)||h.isDisabled(re,l)||p.helper.isDisabled(re,l)||!p.helper.isEnabled(re,l);if(le){var ce=p.helper.findDayAsObject(re,l,h.disabledDates);null!==ce&&ce[x.message]&&(a.attr("data-tooltip",ce[x.message]),a.attr("data-position",z))}else{var ue=p.helper.findDayAsObject(re,l,h.eventDates);null!==ue&&(a.addClass(ue[x.class]||h.eventClass),ue[x.message]&&(a.attr("data-tooltip",ue[x.message]),a.attr("data-position",z)))}var de=p.helper.dateEqual(re,u,l),fe=p.helper.dateEqual(re,c,l);a.toggleClass(m.adjacentCell,se),a.toggleClass(m.disabledCell,le),a.toggleClass(m.activeCell,de&&!se),C||k||a.toggleClass(m.todayCell,!se&&fe);var pe={mode:l,adjacent:se,disabled:le,active:de,today:fe};b.cell(a,re,pe),p.helper.dateEqual(re,d,l)&&p.set.focusDate(re,!1,!1)}if(h.today){var he=e("
").attr("colspan",""+L).addClass(m.today).appendTo(he);me.text(b.today(h)),me.data(x.date,c)}p.update.focus(!1,Q)}}},update:{focus:function(t,n){n=n||E;var i=p.get.mode(),o=p.get.date(),a=p.get.focusDate(),s=p.get.startDate(),l=p.get.endDate(),c=(t?a:null)||o||(r?null:a);n.find("td").each(function(){var t=e(this),n=t.data(x.date);if(n){var o=t.hasClass(m.disabledCell),u=t.hasClass(m.activeCell),d=t.hasClass(m.adjacentCell),f=p.helper.dateEqual(n,a,i),g=!!c&&(!!s&&p.helper.isDateInRange(n,i,s,c)||!!l&&p.helper.isDateInRange(n,i,c,l));t.toggleClass(m.focusCell,f&&(!r||M)&&(!d||h.selectAdjacentDays&&d)&&!o),t.toggleClass(m.rangeCell,g&&!u&&!o)}})}},refresh:function(){p.create.calendar()},bind:{events:function(){p.debug("Binding events"),E.on("mousedown"+k,p.event.mousedown),E.on("touchstart"+k,p.event.mousedown),E.on("mouseup"+k,p.event.mouseup),E.on("touchend"+k,p.event.mouseup),E.on("mouseover"+k,p.event.mouseover),D.length?(D.on("input"+k,p.event.inputChange),D.on("focus"+k,p.event.inputFocus),D.on("blur"+k,p.event.inputBlur),D.on("click"+k,p.event.inputClick),D.on("keydown"+k,p.event.keydown)):E.on("keydown"+k,p.event.keydown)}},unbind:{events:function(){p.debug("Unbinding events"),E.off(k),D.length&&D.off(k)}},event:{mouseover:function(t){var n=e(t.target).data(x.date),i=1===t.buttons;n&&p.set.focusDate(n,!1,!0,i)},mousedown:function(t){D.length&&t.preventDefault(),M=0<=t.type.indexOf("touch");var n=e(t.target).data(x.date);n&&p.set.focusDate(n,!1,!0,!0)},mouseup:function(t){p.focus(),t.preventDefault(),t.stopPropagation(),M=!1;var n=e(t.target);if(!n.hasClass("disabled")){var i=n.parent();(i.data(x.date)||i.data(x.focusDate)||i.data(x.mode))&&(n=i);var o=n.data(x.date),r=n.data(x.focusDate),a=n.data(x.mode);if(o&&!1!==h.onSelect.call(O,o,p.get.mode())){var s=n.hasClass(m.today);p.selectDate(o,s)}else r?p.set.focusDate(r):a&&p.set.mode(a)}},keydown:function(e){var t=e.which;if(27!==t&&9!==t||p.popup("hide"),p.popup("is visible"))if(37===t||38===t||39===t||40===t){var n="day"===(d=p.get.mode())?7:"hour"===d?4:"minute"===d?w.column:3,i=37===t?-1:38===t?-n:39==t?1:n;i*="minute"===d?h.minTimeGap:1;var o=p.get.focusDate()||p.get.date()||new Date,r=o.getFullYear()+("year"===d?i:0),a=o.getMonth()+("month"===d?i:0),s=o.getDate()+("day"===d?i:0),l=o.getHours()+("hour"===d?i:0),c=o.getMinutes()+("minute"===d?i:0),u=new Date(r,a,s,l,c);"time"===h.type&&(u=p.helper.mergeDateTime(o,u)),p.helper.isDateInRange(u,d)&&p.set.focusDate(u)}else if(13===t){var d=p.get.mode(),f=p.get.focusDate();f&&!h.isDisabled(f,d)&&!p.helper.isDisabled(f,d)&&p.helper.isEnabled(f,d)&&p.selectDate(f),e.preventDefault(),e.stopPropagation()}38!==t&&40!==t||(e.preventDefault(),p.popup("show"))},inputChange:function(){var e=D.val(),t=y.date(e,h);p.set.date(t,!1)},inputFocus:function(){E.addClass(m.active)},inputBlur:function(){if(E.removeClass(m.active),h.formatInput){var e=p.get.date(),t=b.datetime(e,h);D.val(t)}},inputClick:function(){p.popup("show")}},get:{weekOfYear:function(e,t,n){var i,o,r;return i=Date.UTC(e,t,n+3)/864e5,o=Math.floor(i/7),r=new Date(6048e5*o).getUTCFullYear(),o-Math.floor(Date.UTC(r,0,7)/6048e5)+1},date:function(){return p.helper.sanitiseDate(S.data(x.date))||null},inputDate:function(){return D.val()},focusDate:function(){return S.data(x.focusDate)||null},startDate:function(){var e=p.get.calendarModule(h.startCalendar);return(e?e.get.date():S.data(x.startDate))||null},endDate:function(){var e=p.get.calendarModule(h.endCalendar);return(e?e.get.date():S.data(x.endDate))||null},minDate:function(){return S.data(x.minDate)||null},maxDate:function(){return S.data(x.maxDate)||null},monthOffset:function(){return S.data(x.monthOffset)||0},mode:function(){var t=S.data(x.mode)||h.startMode,n=p.get.validModes();return 0<=e.inArray(t,n)?t:"time"===h.type?"hour":"month"===h.type?"month":"year"===h.type?"year":"day"},validModes:function(){var e=[];return"time"!==h.type&&(h.disableYear&&"year"!==h.type||e.push("year"),(h.disableMonth||"year"===h.type)&&"month"!==h.type||e.push("month"),0<=h.type.indexOf("date")&&e.push("day")),0<=h.type.indexOf("time")&&(e.push("hour"),h.disableMinute||e.push("minute")),e},isTouch:function(){try{return n.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(t){return t?(t instanceof e||(t=e(t).first()),t.data(T)):null}},set:{date:function(e,t,n){t=!1!==t,n=!1!==n,e=p.helper.sanitiseDate(e),e=p.helper.dateInRange(e);var o=p.get.mode(),r=b.datetime(e,h);if(n&&!1===h.onChange.call(O,e,r,o))return!1;if(p.set.focusDate(e),h.isDisabled(e,o))return!1;var a=p.get.endDate();a&&e&&a=e?p.verbose("Unable to set maxDate variable lower that minDate variable",e,h.minDate):(p.setting("maxDate",e),p.set.dataKeyValue(x.maxDate,e))},monthOffset:function(e,t){var n=Math.max(h.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),p.set.dataKeyValue(x.monthOffset,e,t)},mode:function(e,t){p.set.dataKeyValue(x.mode,e,t)},dataKeyValue:function(e,t,n){var i=S.data(e),o=i===t||i<=t&&t<=i;return t?S.data(e,t):S.removeData(e),(n=!1!==n&&!o)&&p.refresh(),!o}},selectDate:function(e,t){p.verbose("New date selection",e);var n=p.get.mode();if(t||"minute"===n||h.disableMinute&&"hour"===n||"date"===h.type&&"day"===n||"month"===h.type&&"month"===n||"year"===h.type&&"year"===n){if(!1!==p.set.date(e)&&h.closable){p.popup("hide");var i=p.get.calendarModule(h.endCalendar);i&&(i.popup("show"),i.focus())}}else{var o="year"===n?h.disableMonth?"day":"month":"month"===n?"day":"day"===n?"hour":"minute";p.set.mode(o),"hour"===n||"day"===n&&p.get.date()?p.set.date(e):p.set.focusDate(e)}},changeDate:function(e){p.set.date(e)},clear:function(){p.set.date(i)},popup:function(){return A.popup.apply(A,arguments)},focus:function(){D.length?D.focus():E.focus()},blur:function(){D.length?D.blur():E.blur()},helper:{isDisabled:function(e,t){return"day"===t&&(-1!==h.disabledDaysOfWeek.indexOf(e.getDay())||h.disabledDates.some(function(n){return"string"==typeof n&&(n=p.helper.sanitiseDate(n)),n instanceof Date?p.helper.dateEqual(e,n,t):null!==n&&"object"==typeof n&&n[x.date]?p.helper.dateEqual(e,p.helper.sanitiseDate(n[x.date]),t):void 0}))},isEnabled:function(e,t){return"day"!==t||0===h.enabledDates.length||h.enabledDates.some(function(n){return"string"==typeof n&&(n=p.helper.sanitiseDate(n)),n instanceof Date?p.helper.dateEqual(e,n,t):null!==n&&"object"==typeof n&&n[x.date]?p.helper.dateEqual(e,p.helper.sanitiseDate(n[x.date]),t):void 0})},findDayAsObject:function(e,t,n){if("day"===t)for(var i,o=0,r=n.length;o=n.centuryBreak&&o===v.length-1){r<=99&&(r+=n.currentCentury-100),f=r,v.splice(o,1);break}if(d<0)for(o=0;o adjusting invoked element"),w=w.closest(v.checkbox),p.refresh())}},setup:function(){p.set.initialLoad(),p.is.indeterminate()?(p.debug("Initial value is indeterminate"),p.indeterminate()):p.is.checked()?(p.debug("Initial value is checked"),p.check()):(p.debug("Initial value is unchecked"),p.uncheck()),p.remove.initialLoad()},refresh:function(){C=w.children(v.label),k=w.children(v.input),T=k[0]},hide:{input:function(){p.verbose("Modifying z-index to be unselectable"),k.addClass(m.hidden)}},show:{input:function(){p.verbose("Modifying z-index to be selectable"),k.removeClass(m.hidden)}},observeChanges:function(){"MutationObserver"in t&&((a=new MutationObserver(function(e){p.debug("DOM tree modified, updating selector cache"),p.refresh()})).observe(A,{childList:!0,subtree:!0}),p.debug("Setting up mutation observer",a))},attachEvents:function(t,n){var i=e(t);n=e.isFunction(p[n])?p[n]:p.toggle,0").insertAfter(k),p.debug("Creating label",C))}},has:{label:function(){return 0 .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(t){var n,i=e("
").addClass("ui dimmer");return t.displayLoader&&(n=e("
").addClass(t.className.loader).addClass(t.loaderVariation),t.loaderText&&(n.text(t.loaderText),n.addClass("text")),i.append(n)),i}}}}(jQuery,window,document),function(e,t,n,i){"use strict";e.isFunction=e.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.dropdown=function(o){var r,a=e(this),s=e(n),l=a.selector||"",c="ontouchstart"in n.documentElement,u=(new Date).getTime(),d=[],f=o,p="string"==typeof f,h=[].slice.call(arguments,1);return a.each(function(m){var g,v,b,y,x,w,C,k,T,S=e.isPlainObject(o)?e.extend(!0,{},e.fn.dropdown.settings,o):e.extend({},e.fn.dropdown.settings),D=S.className,E=S.message,A=S.fields,O=S.keys,F=S.metadata,M=S.namespace,P=S.regExp,L=S.selector,R=S.error,I=S.templates,j="."+M,z="module-"+M,N=e(this),_=e(S.context),$=N.find(L.text),q=N.find(L.search),H=N.find(L.sizer),V=N.find(L.input),U=N.find(L.icon),B=N.find(L.clearIcon),W=0").html(r).attr("data-"+F.value,a).attr("data-"+F.text,a).addClass(D.addition).addClass(D.item),S.hideAdditions&&o.addClass(D.hidden),n=n===i?o:n.add(o),T.verbose("Creating user choices for value",a,o))}),n)},userLabels:function(t){var n=T.get.userValues();n&&(T.debug("Adding user labels",n),e.each(n,function(e,t){T.verbose("Adding custom user value"),T.add.label(t,t)}))},menu:function(){Y=e("
").addClass(D.menu).appendTo(N)},sizer:function(){H=e("").addClass(D.sizer).insertAfter(q)}},search:function(e){e=e!==i?e:T.get.query(),T.verbose("Searching for query",e),T.has.minCharacters(e)?T.filter(e):T.hide()},select:{firstUnfiltered:function(){T.verbose("Selecting first non-filtered element"),T.remove.selectedItem(),X.not(L.unselectable).not(L.addition+L.hidden).eq(0).addClass(D.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(L.item).not(L.unselectable).eq(0),n=e.prevAll(L.item).not(L.unselectable).eq(0);0").addClass("remove icon").insertBefore($)),T.is.search()&&!T.has.search()&&(T.verbose("Adding search input"),q=e("").addClass(D.search).prop("autocomplete","off").insertBefore($)),T.is.multiple()&&T.is.searchSelection()&&!T.has.sizer()&&T.create.sizer(),S.allowTab&&T.set.tabbable()},select:function(){var t=T.get.selectValues();T.debug("Dropdown initialized on a select",t),N.is("select")&&(V=N),0").attr("class",V.attr("class")).addClass(D.selection).addClass(D.dropdown).html(I.dropdown(t,A,S.preserveHTML,S.className)).insertBefore(V),V.hasClass(D.multiple)&&!1===V.prop("multiple")&&(T.error(R.missingMultiple),V.prop("multiple",!0)),V.is("[multiple]")&&T.set.multiple(),V.prop("disabled")&&(T.debug("Disabling dropdown"),N.addClass(D.disabled)),V.removeAttr("class").detach().prependTo(N)),T.refresh()},menu:function(t){Y.html(I.menu(t,A,S.preserveHTML,S.className)),X=Y.find(L.item),G=S.hideDividers?X.parent().children(L.divider):e()},reference:function(){T.debug("Dropdown behavior was called on select, replacing with closest dropdown"),N=N.parent(L.dropdown),te=N.data(z),ee=N.get(0),T.refresh(),T.setup.returnedObject()},returnedObject:function(){var e=a.slice(0,m),t=a.slice(m+1);a=e.add(N).add(t)}},refresh:function(){T.refreshSelectors(),T.refreshData()},refreshItems:function(){X=Y.find(L.item),G=S.hideDividers?X.parent().children(L.divider):e()},refreshSelectors:function(){T.verbose("Refreshing selector cache"),$=N.find(L.text),q=N.find(L.search),V=N.find(L.input),U=N.find(L.icon),W=0 modified, recreating menu"),T.is.selectMutation(e)&&(T.disconnect.selectObserver(),T.refresh(),T.setup.select(),T.set.selected(),T.observe.select())}},menu:{mutation:function(t){var n=t[0],i=n.addedNodes?e(n.addedNodes[0]):e(!1),o=n.removedNodes?e(n.removedNodes[0]):e(!1),r=i.add(o),a=r.is(L.addition)||0=S.maxSelections?(T.debug("Maximum selection count reached"),S.useLabels&&(X.addClass(D.filtered),T.add.message(E.maxSelections)),!0):(T.verbose("No longer at maximum selection count"),T.remove.message(),T.remove.filteredItem(),T.is.searchSelection()&&T.filterItems(),!1))}},restore:{defaults:function(){T.clear(),T.restore.defaultText(),T.restore.defaultValue()},defaultText:function(){var e=T.get.defaultText();e===T.get.placeholderText?(T.debug("Restoring default placeholder text",e),T.set.placeholderText(e)):(T.debug("Restoring default text",e),T.set.text(e))},placeholderText:function(){T.set.placeholderText()},defaultValue:function(){var e=T.get.defaultValue();e!==i&&(T.debug("Restoring default value",e),""!==e?(T.set.value(e),T.set.selected()):(T.remove.activeItem(),T.remove.selectedItem()))},labels:function(){S.allowAdditions&&(S.useLabels||(T.error(R.labels),S.useLabels=!0),T.debug("Restoring selected values"),T.create.userLabels()),T.check.maxSelections()},selected:function(){T.restore.values(),T.is.multiple()?(T.debug("Restoring previously selected values and labels"),T.restore.labels()):T.debug("Restoring previously selected values")},values:function(){T.set.initialLoad(),S.apiSettings&&S.saveRemoteData&&T.get.remoteValues()?T.restore.remoteValues():T.set.selected();var e=T.get.value();!e||""===e||Array.isArray(e)&&0===e.length?V.addClass(D.noselection):V.removeClass(D.noselection),T.remove.initialLoad()},remoteValues:function(){var t=T.get.remoteValues();T.debug("Recreating selected from session data",t),t&&(T.is.single()?e.each(t,function(e,t){T.set.text(t)}):e.each(t,function(e,t){T.add.label(e,t)}))}},read:{remoteData:function(e){var n;if(t.Storage!==i)return(n=sessionStorage.getItem(e))!==i&&n;T.error(R.noStorage)}},save:{defaults:function(){T.save.defaultText(),T.save.placeholderText(),T.save.defaultValue()},defaultValue:function(){var e=T.get.value();T.verbose("Saving default value as",e),N.data(F.defaultValue,e)},defaultText:function(){var e=T.get.text();T.verbose("Saving default text as",e),N.data(F.defaultText,e)},placeholderText:function(){var e;!1!==S.placeholder&&$.hasClass(D.placeholder)&&(e=T.get.text(),T.verbose("Saving placeholder text as",e),N.data(F.placeholderText,e))},remoteData:function(e,n){t.Storage!==i?(T.verbose("Saving remote data to session storage",n,e),sessionStorage.setItem(n,e)):T.error(R.noStorage)}},clear:function(){T.is.multiple()&&S.useLabels?T.remove.labels():(T.remove.activeItem(),T.remove.selectedItem(),T.remove.filteredItem()),T.set.placeholderText(),T.clearValue()},clearValue:function(){T.set.value("")},scrollPage:function(e,t){var n,i,o=t||T.get.selectedItem(),r=o.closest(L.menu),a=r.outerHeight(),s=r.scrollTop(),l=X.eq(0).outerHeight(),c=Math.floor(a/l),u=(r.prop("scrollHeight"),"up"==e?s-l*c:s+l*c),d=X.not(L.unselectable);i="up"==e?d.index(o)-c:d.index(o)+c,0<(n=("up"==e?0<=i:i").addClass(D.label).attr("data-"+F.value,a).html(I.label(a,n,S.preserveHTML,S.className)),o=S.onLabelCreate.call(o,a,n),T.has.label(t)?T.debug("User selection already exists, skipping",a):(S.label.variation&&o.addClass(S.label.variation),!0===i?(T.debug("Animating in label",o),o.addClass(D.hidden).insertBefore(r).transition({animation:S.label.transition,debug:S.debug,verbose:S.verbose,duration:S.label.duration})):(T.debug("Adding selection label",o),o.insertBefore(r)))},message:function(t){var n=Y.children(L.message),i=S.templates.message(T.add.variables(t));0").html(i).addClass(D.message).appendTo(Y)},optionValue:function(t){var n=T.escape.value(t);0").prop("value",n).addClass(D.addition).html(t).appendTo(V),T.verbose("Adding user addition as an