/*
* # Fomantic UI - 2.8.8
* https://github.com/fomantic/Fomantic-UI
* http://fomantic-ui.com/
*
* Copyright 2022 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(g,h,v,b){g.isFunction=g.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g.site=g.fn.site=function(e){var s,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,l=[].slice.call(arguments,1),r=g.isPlainObject(e)?g.extend(!0,{},g.site.settings,e):g.extend({},g.site.settings),a=r.namespace,c=r.error,u="module-"+a,d=g(v),f=this,m=d.data(u),p={initialize:function(){p.instantiate()},instantiate:function(){p.verbose("Storing instance of site",p),m=p,d.data(u,p)},normalize:function(){p.fix.console(),p.fix.requestAnimationFrame()},fix:{console:function(){p.debug("Normalizing window.console"),console!==b&&console.log!==b||(p.verbose("Console not available, normalizing events"),p.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(p.verbose("Console group not available, normalizing events"),h.console.group=function(){},h.console.groupEnd=function(){},h.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(p.verbose("Mark timeline not available, normalizing events"),h.console.markTimeline=function(){})},consoleClear:function(){p.debug("Disabling programmatic console clearing"),h.console.clear=function(){}},requestAnimationFrame:function(){p.debug("Normalizing requestAnimationFrame"),h.requestAnimationFrame===b&&(p.debug("RequestAnimationFrame not available, normalizing event"),h.requestAnimationFrame=h.requestAnimationFrame||h.mozRequestAnimationFrame||h.webkitRequestAnimationFrame||h.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return g.fn[e]!==b&&g.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||r.modules,g.each(e,function(e,t){p.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||r.modules,g.each(e,function(e,t){p.moduleExists(t)||n.push(t)}),n}},change:{setting:function(i,o,e,a){e="string"==typeof e?"all"===e?r.modules:[e]:e||r.modules,a=a===b||a,g.each(e,function(e,t){var n=!p.moduleExists(t)||(g.fn[t].settings.namespace||!1);p.moduleExists(t)&&(p.verbose("Changing default setting",i,o,t),g.fn[t].settings[i]=o,a&&n&&0<(n=g(":data(module-"+n+")")).length&&(p.verbose("Modifying existing settings",n),n[t]("setting",i,o)))})},settings:function(i,e,o){e="string"==typeof e?[e]:e||r.modules,o=o===b||o,g.each(e,function(e,t){var n;p.moduleExists(t)&&(p.verbose("Changing default setting",i,t),g.extend(!0,g.fn[t].settings,i),o&&a&&0<(n=g(":data(module-"+a+")")).length&&(p.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){p.console(!0)},debug:function(e,t){e=e||r.modules,p.debug("Enabling debug for modules",e),p.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||r.modules,p.debug("Enabling verbose debug for modules",e),p.change.setting("verbose",!0,e,t)}},disable:{console:function(){p.console(!1)},debug:function(e,t){e=e||r.modules,p.debug("Disabling debug for modules",e),p.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||r.modules,p.debug("Disabling verbose debug for modules",e),p.change.setting("verbose",!1,e,t)}},console:function(e){e?m.cache.console===b?p.error(c.console):(p.debug("Restoring console function"),h.console=m.cache.console):(p.debug("Disabling console function"),m.cache.console=h.console,h.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}})},destroy:function(){p.verbose("Destroying previous site for",d),d.removeData(u)},cache:{},setting:function(e,t){if(g.isPlainObject(e))g.extend(!0,r,e);else{if(t===b)return r[e];r[e]=t}},internal:function(e,t){if(g.isPlainObject(e))g.extend(!0,p,e);else{if(t===b)return p[e];p[e]=t}},debug:function(){r.debug&&(r.performance?p.performance.log(arguments):(p.debug=Function.prototype.bind.call(console.info,console,r.name+":"),p.debug.apply(console,arguments)))},verbose:function(){r.verbose&&r.debug&&(r.performance?p.performance.log(arguments):(p.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),p.verbose.apply(console,arguments)))},error:function(){p.error=Function.prototype.bind.call(console.error,console,r.name+":"),p.error.apply(console,arguments)},performance:{log:function(e){var t,n;r.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,o.push({Element:f,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(p.performance.timer),p.performance.timer=setTimeout(p.performance.display,500)},display:function(){var e=r.name+":",n=0;i=!1,clearTimeout(p.performance.timer),g.each(o,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0 .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(e){var t,n=T("").addClass("ui dimmer");return e.displayLoader&&(t=T("").addClass(e.className.loader).addClass(e.loaderVariation),e.loaderText&&(t.text(e.loaderText),t.addClass("text")),n.append(t)),n}}}}(jQuery,window,document),function(te,ne,ie,oe){"use strict";te.isFunction=te.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},ne=void 0!==ne&&ne.Math==Math?ne:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),te.fn.dropdown=function(W){var B,Y=te(this),$=te(ie),Q=Y.selector||"",G="ontouchstart"in ie.documentElement,X=G?"touchstart":"click",K=(new Date).getTime(),J=[],Z=W,_="string"==typeof Z,ee=[].slice.call(arguments,1);return Y.each(function(L){var d,e,t,n,i,o,a,r,s,f=te.isPlainObject(W)?te.extend(!0,{},te.fn.dropdown.settings,W):te.extend({},te.fn.dropdown.settings),m=f.className,p=f.message,l=f.fields,g=f.keys,h=f.metadata,j=f.namespace,c=f.regExp,v=f.selector,u=f.error,N=f.templates,b="."+j,y="module-"+j,w=te(this),x=te(f.context),C=w.find(v.text),T=w.find(v.search),S=w.find(v.sizer),D=w.find(v.input),H=w.find(v.icon),V=w.find(v.clearIcon),k=0").html(i).attr("data-"+h.value,t).attr("data-"+h.text,t).addClass(m.addition).addClass(m.item),f.hideAdditions&&i.addClass(m.hidden),n=n===oe?i:n.add(i),q.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=q.get.userValues();t&&(q.debug("Adding user labels",t),te.each(t,function(e,t){q.verbose("Adding custom user value"),q.add.label(t,t)}))},menu:function(){A=te("").addClass(m.menu).appendTo(w)},sizer:function(){S=te("").addClass(m.sizer).insertAfter(T)}},search:function(e){e=e!==oe?e:q.get.query(),q.verbose("Searching for query",e),!1===f.fireOnInit&&q.is.initialLoad()?q.verbose("Skipping callback on initial load",f.onSearch):q.has.minCharacters(e)&&!1!==f.onSearch.call(P,e)?q.filter(e):q.hide(null,!0)},select:{firstUnfiltered:function(){q.verbose("Selecting first non-filtered element"),q.remove.selectedItem(),E.not(v.unselectable).not(v.addition+v.hidden).eq(0).addClass(m.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(v.item).not(v.unselectable).eq(0),e=e.prevAll(v.item).not(v.unselectable).eq(0);0").addClass("remove icon").insertBefore(C)),q.is.search()&&!q.has.search()&&(q.verbose("Adding search input"),T=te("").addClass(m.search).prop("autocomplete",q.is.chrome()?"fomantic-search":"off").insertBefore(C)),q.is.multiple()&&q.is.searchSelection()&&!q.has.sizer()&&q.create.sizer(),f.allowTab&&q.set.tabbable()},select:function(){var e=q.get.selectValues();q.debug("Dropdown initialized on a select",e),0<(D=w.is("select")?w:D).parent(v.dropdown).length?(q.debug("UI dropdown already exists. Creating dropdown menu only"),w=D.closest(v.dropdown),q.has.menu()||q.create.menu(),A=w.children(v.menu),q.setup.menu(e)):(q.debug("Creating entire dropdown from select"),w=te("").attr("class",D.attr("class")).addClass(m.selection).addClass(m.dropdown).html(N.dropdown(e,l,f.preserveHTML,f.className)).insertBefore(D),D.hasClass(m.multiple)&&!1===D.prop("multiple")&&(q.error(u.missingMultiple),D.prop("multiple",!0)),D.is("[multiple]")&&q.set.multiple(),D.prop("disabled")&&(q.debug("Disabling dropdown"),w.addClass(m.disabled)),D.removeAttr("required").removeAttr("class").detach().prependTo(w)),q.refresh()},menu:function(e){A.html(N.menu(e,l,f.preserveHTML,f.className)),E=A.find(v.item),F=f.hideDividers?E.parent().children(v.divider):te()},reference:function(){q.debug("Dropdown behavior was called on select, replacing with closest dropdown"),w=w.parent(v.dropdown),I=w.data(y),P=w.get(0),q.refresh(),q.setup.returnedObject()},returnedObject:function(){var e=Y.slice(0,L),t=Y.slice(L+1);Y=e.add(w).add(t)}},refresh:function(){q.refreshSelectors(),q.refreshData()},refreshItems:function(){E=A.find(v.item),F=f.hideDividers?E.parent().children(v.divider):te()},refreshSelectors:function(){q.verbose("Refreshing selector cache"),C=w.find(v.text),T=w.find(v.search),D=w.find(v.input),H=w.find(v.icon),k=0"),te.each(e,function(e,t){var n=f.templates.deQuote(t[l.value]),t=f.templates.escape(t[l.name]||"",f.preserveHTML);D.append('")}),q.observe.select())}},event:{change:function(){U||(q.debug("Input changed, updating selection"),q.set.selected())},focus:function(){f.showOnFocus&&!O&&q.is.hidden()&&!t&&(R=!0,q.show())},blur:function(e){t=ie.activeElement===this,O||t||(q.remove.activeLabel(),q.hide())},mousedown:function(){q.is.searchSelection()?n=!0:O=!0},mouseup:function(){q.is.searchSelection()?n=!1:O=!1},click:function(e){te(e.target).is(w)&&(q.is.focusedOnSearch()?q.show():q.focusSearch())},search:{focus:function(e){O=!0,q.is.multiple()&&q.remove.activeLabel(),R||q.is.active()||!(f.showOnFocus||"focus"!==e.type&&"focusin"!==e.type)||(R=!0,q.search())},blur:function(e){t=ie.activeElement===this,!q.is.searchSelection()||n||z||t||(f.forceSelection?q.forceSelection():f.allowAdditions||q.remove.searchTerm(),q.hide()),n=!1}},clearIcon:{click:function(e){q.clear(),q.is.searchSelection()&&q.remove.searchTerm(),q.hide(),e.stopPropagation()}},icon:{click:function(e){M=!0,q.has.search()?q.is.active()?q.blurSearch():f.showOnFocus?q.focusSearch():q.toggle():q.toggle(),e.stopPropagation()}},text:{focus:function(e){O=!0,q.focusSearch()}},input:function(e){(q.is.multiple()||q.is.searchSelection())&&q.set.filtered(),clearTimeout(q.timer),q.timer=setTimeout(q.search,f.delay.search)},label:{click:function(e){var t=te(this),n=w.find(v.label),i=n.filter("."+m.active),o=t.nextAll("."+m.active),a=t.prevAll("."+m.active),o=(0 modified, recreating menu"),q.is.selectMutation(e)&&(q.disconnect.selectObserver(),q.refresh(),q.setup.select(),q.set.selected(),q.observe.select())}},menu:{mutation:function(e){var e=e[0],t=e.addedNodes?te(e.addedNodes[0]):te(!1),e=e.removedNodes?te(e.removedNodes[0]):te(!1),t=t.add(e),e=t.is(v.addition)||0=f.maxSelections?(q.debug("Maximum selection count reached"),f.useLabels&&(E.addClass(m.filtered),q.add.message(p.maxSelections)),!0):(q.verbose("No longer at maximum selection count"),q.remove.message(),q.remove.filteredItem(),q.is.searchSelection()&&q.filterItems(),!1))},disabled:function(){T.attr("tabindex",q.is.disabled()?-1:0)}},restore:{defaults:function(e){q.clear(e),q.restore.defaultText(),q.restore.defaultValue()},defaultText:function(){var e=q.get.defaultText();e===q.get.placeholderText?(q.debug("Restoring default placeholder text",e),q.set.placeholderText(e)):(q.debug("Restoring default text",e),q.set.text(e))},placeholderText:function(){q.set.placeholderText()},defaultValue:function(){var e=q.get.defaultValue();e!==oe&&(q.debug("Restoring default value",e),""!==e?(q.set.value(e),q.set.selected()):(q.remove.activeItem(),q.remove.selectedItem()))},labels:function(){f.allowAdditions&&(f.useLabels||(q.error(u.labels),f.useLabels=!0),q.debug("Restoring selected values"),q.create.userLabels()),q.check.maxSelections()},selected:function(){q.restore.values(),q.is.multiple()?(q.debug("Restoring previously selected values and labels"),q.restore.labels()):q.debug("Restoring previously selected values")},values:function(){q.set.initialLoad(),f.apiSettings&&f.saveRemoteData&&q.get.remoteValues()?q.restore.remoteValues():q.set.selected();var e=q.get.value();!e||""===e||Array.isArray(e)&&0===e.length?D.addClass(m.noselection):D.removeClass(m.noselection),q.remove.initialLoad()},remoteValues:function(){var e=q.get.remoteValues();q.debug("Recreating selected from session data",e),e&&(q.is.single()?te.each(e,function(e,t){q.set.text(t)}):te.each(e,function(e,t){q.add.label(e,t)}))}},read:{remoteData:function(e){if(ne.Storage!==oe)return(e=sessionStorage.getItem(e))!==oe&&e;q.error(u.noStorage)}},save:{defaults:function(){q.save.defaultText(),q.save.placeholderText(),q.save.defaultValue()},defaultValue:function(){var e=q.get.value();q.verbose("Saving default value as",e),w.data(h.defaultValue,e)},defaultText:function(){var e=q.get.text();q.verbose("Saving default text as",e),w.data(h.defaultText,e)},placeholderText:function(){var e;!1!==f.placeholder&&C.hasClass(m.placeholder)&&(e=q.get.text(),q.verbose("Saving placeholder text as",e),w.data(h.placeholderText,e))},remoteData:function(e,t){ne.Storage===oe?q.error(u.noStorage):(q.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e))}},clear:function(e){q.is.multiple()&&f.useLabels?q.remove.labels(w.find(v.label),e):(q.remove.activeItem(),q.remove.selectedItem(),q.remove.filteredItem()),q.set.placeholderText(),q.clearValue(e)},clearValue:function(e){q.set.value("",null,null,e)},scrollPage:function(e,t){var t=t||q.get.selectedItem(),n=t.closest(v.menu),i=n.outerHeight(),o=n.scrollTop(),a=E.eq(0).outerHeight(),i=Math.floor(i/a),o=(n.prop("scrollHeight"),"up"==e?o-a*i:o+a*i),a=E.not(v.unselectable),i="up"==e?a.index(t)-i:a.index(t)+i,i=("up"==e?0<=i:i").addClass(m.label).attr("data-"+h.value,a).html(N.label(a,t,f.preserveHTML,f.className)),i=f.onLabelCreate.call(i,a,t),q.has.label(e)?q.debug("User selection already exists, skipping",a):(f.label.variation&&i.addClass(f.label.variation),!0===n?(q.debug("Animating in label",i),i.addClass(m.hidden).insertBefore(o).transition({animation:f.label.transition,debug:f.debug,verbose:f.verbose,duration:f.label.duration})):(q.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=A.children(v.message),e=f.templates.message(q.add.variables(e));0").html(e).addClass(m.message).appendTo(A)},optionValue:function(e){var t=q.escape.value(e);0").prop("value",t).addClass(m.addition).html(e).appendTo(D),q.verbose("Adding user addition as an
'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(H(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document),function(S,e,D,k){"use strict";S.isFunction=S.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),S.fn.progress=function(h){var v,e=S(this),b=e.selector||"",y=(new Date).getTime(),w=[],x=h,C="string"==typeof x,T=[].slice.call(arguments,1);return e.each(function(){var r=S.isPlainObject(h)?S.extend(!0,{},S.fn.progress.settings,h):S.extend({},S.fn.progress.settings),n=r.className,t=r.metadata,e=r.namespace,i=r.selector,s=r.error,o="."+e,a="module-"+e,c=S(this),u=S(this).find(i.bar),l=S(this).find(i.progress),d=S(this).find(i.label),f=this,m=c.data(a),p=!1,g={helper:{sum:function(e){return Array.isArray(e)?e.reduce(function(e,t){return e+Number(t)},0):0},derivePrecision:function(e,t){for(var n=0,i=1,o=e/t;n<10&&!(1<(o*=i));)i=Math.pow(10,n++);return i},forceArray:function(e){return Array.isArray(e)?e:isNaN(e)?"string"==typeof e?e.split(","):[]:[e]}},initialize:function(){g.set.duration(),g.set.transitionEvent(),g.debug(f),g.read.metadata(),g.read.settings(),g.instantiate()},instantiate:function(){g.verbose("Storing instance of progress",g),m=g,c.data(a,g)},destroy:function(){g.verbose("Destroying previous progress for",c),clearInterval(m.interval),g.remove.state(),c.removeData(a),m=k},reset:function(){g.remove.nextValue(),g.update.progress(0)},complete:function(e){(g.percent===k||g.percent<100)&&(g.remove.progressPoll(),!0!==e&&g.set.percent(100))},read:{metadata:function(){var e={percent:g.helper.forceArray(c.data(t.percent)),total:c.data(t.total),value:g.helper.forceArray(c.data(t.value))};e.total!==k&&(g.debug("Total value set from metadata",e.total),g.set.total(e.total)),0g.total)return g.debug("Value cannot increment above total",g.total),g.total}else if(100g.total?g.error(s.sumExceedsTotal,a,g.total):!o&&100 .bar",label:"> .label",progress:".bar > .progress"},text:{active:!1,error:!1,success:!1,warning:!1,percent:"{percent}%",ratio:"{value} of {total}",bars:[""]},className:{active:"active",error:"error",success:"success",warning:"warning"}}}(jQuery,window,document),function(R,I,q,L){"use strict";R.isFunction=R.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},I=void 0!==I&&I.Math==Math?I:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),R.fn.sidebar=function(w){var x,e=R(this),C=R(I),T=R(q),S=R("html"),D=R("head"),k=e.selector||"",A=(new Date).getTime(),E=[],F=w,O="string"==typeof F,M=[].slice.call(arguments,1),P=I.requestAnimationFrame||I.mozRequestAnimationFrame||I.webkitRequestAnimationFrame||I.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var o,a,e,t,r,s=R.isPlainObject(w)?R.extend(!0,{},R.fn.sidebar.settings,w):R.extend({},R.fn.sidebar.settings),n=s.selector,l=s.className,i=s.namespace,c=s.regExp,u=s.error,d="."+i,f="module-"+i,m=R(this),p=R(s.context),g=m.children(n.sidebar),h=(p.children(n.fixed),p.children(n.pusher)),v=this,b=m.data(f),y={initialize:function(){y.debug("Initializing sidebar",w),y.create.id(),r=y.get.transitionEvent(),s.delaySetup?P(y.setup.layout):y.setup.layout(),P(function(){y.setup.cache()}),y.instantiate()},instantiate:function(){y.verbose("Storing instance of module",y),b=y,m.data(f,y)},create:{id:function(){e=(Math.random().toString(16)+"000000000").substr(2,8),a="."+e,y.verbose("Creating unique id for element",e)}},destroy:function(){y.verbose("Destroying previous module for",m),m.off(d).removeData(f),y.is.ios()&&y.remove.ios(),p.off(a),C.off(a),T.off(a)},event:{clickaway:function(e){var t;s.closable&&(t=0=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===R(e.target).closest(n.sidebar).length&&e.preventDefault()}},bind:{clickaway:function(){y.verbose("Adding clickaway events to context",p),p.on("click"+a,y.event.clickaway).on("touchend"+a,y.event.clickaway)},scrollLock:function(){s.scrollLock&&(y.debug("Disabling page scroll"),C.on("DOMMouseScroll"+a,y.event.scroll)),y.verbose("Adding events to contain sidebar scroll"),T.on("touchmove"+a,y.event.touch),m.on("scroll"+d,y.event.containScroll)}},unbind:{clickaway:function(){y.verbose("Removing clickaway events from context",p),p.off(a)},scrollLock:function(){y.verbose("Removing scroll lock from page"),T.off(a),C.off(a),m.off("scroll"+d)}},add:{inlineCSS:function(){var e=y.cache.width||m.outerWidth(),t=y.cache.height||m.outerHeight(),n=y.is.rtl(),i=y.get.direction(),t={left:e,right:-e,top:t,bottom:-t};n&&(y.verbose("RTL detected, flipping widths"),t.left=-e,t.right=e),n="").appendTo(D),y.debug("Adding sizing css to head",o)}},refresh:function(){y.verbose("Refreshing selector cache"),p=R(s.context),g=p.children(n.sidebar),h=p.children(n.pusher),p.children(n.fixed),y.clear.cache()},refreshSidebars:function(){y.verbose("Refreshing other sidebars"),g=p.children(n.sidebar)},repaint:function(){y.verbose("Forcing repaint event"),v.style.display="none";v.offsetHeight;v.scrollTop=v.scrollTop,v.style.display=""},setup:{cache:function(){y.cache={width:m.outerWidth(),height:m.outerHeight()}},layout:function(){0===p.children(n.pusher).length&&(y.debug("Adding wrapper element for sidebar"),y.error(u.pusher),h=R(''),p.children().not(n.omitted).not(g).wrapAll(h),y.refresh()),0!==m.nextAll(n.pusher).length&&m.nextAll(n.pusher)[0]===h[0]||(y.debug("Moved sidebar to correct parent element"),y.error(u.movedSidebar,v),m.detach().prependTo(p),y.refresh()),y.clear.cache(),y.set.pushable(),y.set.direction()}},attachEvents:function(e,t){var n=R(e);t=R.isFunction(y[t])?y[t]:y.toggle,0",{class:c.position+" "+u.container+" "+(c.horizontal?u.horizontal:"")}))},toast:function(){n=F("",{class:u.box});var e,t=w.get.iconClass();v?(i=c.cloneModule?g.clone().removeAttr("id"):g,l=i.find("> i"+w.helpers.toClass(u.close)),c.closeIcon=0"),e=F("",{class:u.content}),""!==t&&i.append(F("",{class:t+" "+u.icon})),c.showImage&&i.append(F("",{class:u.image+" "+c.classImage,src:c.showImage})),""!==c.title&&e.append(F("",{class:u.title,text:c.title})),e.append(F("",{class:u.message,html:w.helpers.escape(c.message,c.preserveHTML)})),i.addClass(c.class+" "+u.toast).append(e),i.css("opacity",c.opacity),c.closeIcon&&((l=F("",{class:u.close+" "+("string"==typeof c.closeIcon?c.closeIcon:"")})).hasClass(u.left)?i.prepend(l):i.append(l))),i.hasClass(u.compact)&&(c.compact=!0),i.hasClass("card")&&(c.compact=!1),a=i.find(".actions"),w.has.configActions()&&(0===a.length&&(a=F("",{class:u.actions+" "+(c.classActions||"")}).appendTo(i)),i.hasClass("card")&&!a.hasClass(u.attached)&&(a.addClass(u.extraContent),a.hasClass(u.vertical)&&(a.removeClass(u.vertical),w.error(f.verticalCard))),c.actions.forEach(function(e){var t=e[m.icon]?'':"",n=w.helpers.escape(e[m.text]||"",c.preserveHTML),i=w.helpers.deQuote(e[m.class]||""),o=e[m.click]&&F.isFunction(e[m.click])?e[m.click]:function(){};a.append(F("",{html:t+n,class:u.button+" "+i,click:function(){!1!==o.call(b,g)&&w.close()}}))})),a&&a.hasClass(u.vertical)&&i.addClass(u.vertical),0",{class:u.vertical+" "+u.attached+" "+(c.compact?u.compact:"")})),a.hasClass(u.left)?i.addClass(u.left).parent().addClass(u.left).prepend(a):i.parent().append(a)):a.hasClass(u.top)?(n.prepend(a),i.addClass(u.bottom)):(n.append(a),i.addClass(u.top))),g!==i&&(b=(g=i)[0]),0",{class:u.progress+" "+(c.classProgress||c.class),"data-percent":""}),c.classProgress||(i.hasClass("toast")&&!i.hasClass(u.inverted)?o.addClass(u.inverted):o.removeClass(u.inverted)),r=F("",{class:"bar "+(c.progressUp?"up ":"down ")+t}),o.addClass(c.showProgress).append(r),o.hasClass(u.top)?n.prepend(o):n.append(o),r.css("animation-duration",c.displayTime/1e3+"s")),(s=F("",{class:"wait "+t})).css("animation-duration",c.displayTime/1e3+"s"),s.appendTo(i)),c.compact&&(n.addClass(u.compact),i.addClass(u.compact),o&&o.addClass(u.compact)),c.newestOnTop?n.prependTo(w.get.container()):n.appendTo(w.get.container())}},bind:{events:function(){w.debug("Binding events to toast"),(c.closeOnClick||c.closeIcon)&&(c.closeIcon?l:i).on("click"+t,w.event.click),s&&s.on("animationend"+t,w.close),n.on("click"+t,d.approve,w.event.approve).on("click"+t,d.deny,w.event.deny)}},unbind:{events:function(){w.debug("Unbinding events to toast"),(c.closeOnClick||c.closeIcon)&&(c.closeIcon?l:i).off("click"+t),s&&s.off("animationend"+t),n.off("click"+t)}},animate:{show:function(e){e=F.isFunction(e)?e:function(){},c.transition&&w.can.useElement("transition")&&g.transition("is supported")&&(w.set.visible(),n.transition({animation:c.transition.showMethod+" in",queue:!1,debug:c.debug,verbose:c.verbose,duration:c.transition.showDuration,onComplete:function(){e.call(n,b),c.onVisible.call(n,b)}}))},close:function(e){e=F.isFunction(e)?e:function(){},w.debug("Closing toast"),!1===c.onHide.call(n,b)?w.debug("onHide callback returned false, cancelling toast animation"):c.transition&&F.fn.transition!==O&&g.transition("is supported")?n.transition({animation:c.transition.hideMethod+" out",queue:!1,duration:c.transition.hideDuration,debug:c.debug,verbose:c.verbose,interval:50,onBeforeHide:function(e){e=F.isFunction(e)?e:function(){},""!==c.transition.closeEasing?n&&(n.css("opacity",0),n.wrap("").parent().hide(c.transition.closeDuration,c.transition.closeEasing,function(){n&&(n.parent().remove(),e.call(n))})):e.call(n)},onComplete:function(){e.call(n,b),c.onHidden.call(n,b),w.destroy()}}):w.error(f.noTransition)},pause:function(){s.css("animationPlayState","paused"),r&&r.css("animationPlayState","paused")},continue:function(){s.css("animationPlayState","running"),r&&r.css("animationPlayState","running")}},has:{container:function(){return w.verbose("Determining if there is already a container"),0":">",'"':""","'":"'","`":"`"};return/[&<>"'`]/.test(e)?(e=e.replace(/&(?![a-z0-9#]{1,6};)/,"&")).replace(/[<>"'`]/g,function(e){return n[e]}):e}},can:{useElement:function(e){return F.fn[e]!==O||(w.error(f.noElement.replace("{element}",e)),!1)}},setting:function(e,t){if(w.debug("Changing setting",e,t),F.isPlainObject(e))F.extend(!0,c,e);else{if(t===O)return c[e];F.isPlainObject(c[e])?F.extend(!0,c[e],t):c[e]=t}},internal:function(e,t){if(F.isPlainObject(e))F.extend(!0,w,e);else{if(t===O)return w[e];w[e]=t}},debug:function(){!c.silent&&c.debug&&(c.performance?w.performance.log(arguments):(w.debug=Function.prototype.bind.call(console.info,console,c.name+":"),w.debug.apply(console,arguments)))},verbose:function(){!c.silent&&c.verbose&&c.debug&&(c.performance?w.performance.log(arguments):(w.verbose=Function.prototype.bind.call(console.info,console,c.name+":"),w.verbose.apply(console,arguments)))},error:function(){c.silent||(w.error=Function.prototype.bind.call(console.error,console,c.name+":"),w.error.apply(console,arguments))},performance:{log:function(e){var t,n;c.performance&&(n=(t=(new Date).getTime())-(S||t),S=t,D.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:b,"Execution Time":n})),clearTimeout(w.performance.timer),w.performance.timer=setTimeout(w.performance.display,500)},display:function(){var e=c.name+":",n=0;S=!1,clearTimeout(w.performance.timer),F.each(D,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",T&&(e+=" '"+T+"'"),(console.group!==O||console.table!==O)&&0 img.image, > .image > img",icon:"> i.icon",input:'input:not([type="hidden"]), textarea, select, button, .ui.button, ui.dropdown',approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onClick:function(){},onHide:function(){},onHidden:function(){},onRemove:function(){},onApprove:function(){},onDeny:function(){}},F.extend(F.easing,{easeOutBounce:function(e,t,n,i,o){return(t/=o)<1/2.75?i*(7.5625*t*t)+n:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeOutCubic:function(e){return--e*e*e+1}})}(jQuery,window,void document),function(R,I,q,L){"use strict";R.isFunction=R.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},I=void 0!==I&&I.Math==Math?I:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),R.fn.form=function(T){var S,D=R(this),k=D.selector||"",A=(new Date).getTime(),E=[],F=T,O=arguments[1],M="string"==typeof F,P=[].slice.call(arguments,1);return D.each(function(){var n,d,t,e,f,l,m,p,g,i,c,o,a,s,u,h=R(this),v=this,b=[],y=!1,r=!1,w=!1,x=["clean","clean"],C={initialize:function(){C.get.settings(),M?(u===L&&C.instantiate(),C.invoke(F)):(u!==L&&(u.invoke("destroy"),C.refresh()),C.verbose("Initializing form validation",h,f),C.bindEvents(),C.set.defaults(),f.autoCheckRequired&&C.set.autoCheck(),C.instantiate())},instantiate:function(){C.verbose("Storing instance of module",C),u=C,h.data(a,C)},destroy:function(){C.verbose("Destroying previous module",u),C.removeEvents(),h.removeData(a)},refresh:function(){C.verbose("Refreshing selector cache"),n=h.find(p.field),d=h.find(p.group),t=h.find(p.message),h.find(p.prompt),e=h.find(p.submit),h.find(p.clear),h.find(p.reset)},submit:function(){C.verbose("Submitting form",h),r=!0,h.submit()},attachEvents:function(e,t){t=t||"submit",R(e).on("click"+s,function(e){C[t](),e.preventDefault()})},bindEvents:function(){C.verbose("Attaching form events"),h.on("submit"+s,C.validate.form).on("blur"+s,p.field,C.event.field.blur).on("click"+s,p.submit,C.submit).on("click"+s,p.reset,C.reset).on("click"+s,p.clear,C.clear),f.keyboardShortcuts&&h.on("keydown"+s,p.field,C.event.field.keydown),n.each(function(e,t){var t=R(t),n=t.prop("type"),n=C.get.changeEvent(n,t);t.on(n+s,C.event.field.change)}),f.preventLeaving&&R(I).on("beforeunload"+s,C.event.beforeUnload),n.on("change click keyup keydown blur",function(e){C.determine.isDirty()}),h.on("dirty"+s,function(e){f.onDirty.call()}),h.on("clean"+s,function(e){f.onClean.call()})},clear:function(){n.each(function(e,t){var t=R(t),n=t.parent(),i=t.closest(d),o=i.find(p.prompt),a=t.closest(p.uiCalendar),r=t.data(m.defaultValue)||"",s=n.is(p.uiCheckbox),l=n.is(p.uiDropdown)&&C.can.useElement("dropdown"),c=0")},fields:function(e){var n=R();return R.each(e,function(e,t){n=n.add(C.get.field(t))}),n},validation:function(i){var o,a;return!!l&&(R.each(l,function(e,n){a=n.identifier||e,R.each(C.get.field(a),function(e,t){if(t==i[0])return n.identifier=a,o=n,!1})}),o||!1)},value:function(e){var t=[];return t.push(e),C.get.values.call(v,t)[e]},values:function(e){var e=Array.isArray(e)?C.get.fields(e):n,d={};return e.each(function(e,t){var t=R(t),n=t.closest(p.uiCalendar),i=t.prop("name"),o=t.val(),a=t.is(p.checkbox),r=t.is(p.radio),s=-1!==i.indexOf("[]"),l=0"+t+""}),R(n+="")},prompt:function(e,t){return R("").addClass(t).html(e[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===L||""===e||Array.isArray(e)&&0===e.length)},checked:function(){return 0=t},length:function(e,t){return e!==L&&e.length>=t},exactLength:function(e,t){return e!==L&&e.length==t},maxLength:function(e,t){return e!==L&&e.length<=t},match:function(e,t,n){var i,o;return 0<(o=n.find('[data-validate="'+t+'"]')).length||0<(o=n.find("#"+t)).length||0<(o=n.find('[name="'+t+'"]')).length?i=o.val():0<(o=n.find('[name="'+t+'[]"]')).length&&(i=o),i!==L&&e.toString()==i.toString()},different:function(e,t,n){var i,o;return 0<(o=n.find('[data-validate="'+t+'"]')).length||0<(o=n.find("#"+t)).length||0<(o=n.find('[name="'+t+'"]')).length?i=o.val():0<(o=n.find('[name="'+t+'[]"]')).length&&(i=o),i!==L&&e.toString()!==i.toString()},creditCard:function(n,e){var i,o={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=!1,e="string"==typeof e&&e.split(",");if("string"==typeof n&&0!==n.length){if(n=n.replace(/[\s\-]/g,""),e&&(R.each(e,function(e,t){(i=o[t])&&(i={length:-1!==R.inArray(n.length,i.length),pattern:-1!==n.search(i.pattern)}).length&&i.pattern&&(a=!0)}),!a))return!1;if((e={number:-1!==R.inArray(n.length,o.unionPay.length),pattern:-1!==n.search(o.unionPay.pattern)}).number&&e.pattern)return!0;for(var t=n.length,r=0,s=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],l=0;t--;)l+=s[r][parseInt(n.charAt(t),10)],r^=1;return l%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(oe,D,k,ae){"use strict";oe.isFunction=oe.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},D=void 0!==D&&D.Math==Math?D:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),oe.fn.calendar=function(h){var v,e=oe(this),b=e.selector||"",y=(new Date).getTime(),w=[],x=h,C="string"==typeof x,T=[].slice.call(arguments,1),S={5:{row:4,column:3},10:{row:3,column:2},15:{row:2,column:2},20:{row:3,column:1},30:{row:2,column:1}},ie=["","one","two","three","four","five","six","seven","eight"];return e.each(function(){var d,e,X=oe.isPlainObject(h)?oe.extend(!0,{},oe.fn.calendar.settings,h):oe.extend({},oe.fn.calendar.settings),K=X.className,t=X.namespace,i=X.selector,J=X.formatter,n=X.parser,Z=X.metadata,_=S[X.minTimeGap],s=X.error,o="."+t,a="module-"+t,r=oe(this),l=r.find(i.input),ee=r.find(i.popup),c=r.find(i.activator),u=this,f=r.data(a),m=!1,te=r.hasClass(K.inverted),p=!1,g=!1,ne={initialize:function(){ne.debug("Initializing calendar for",u,r),d=ne.get.isTouch(),ne.setup.config(),ne.setup.popup(),ne.setup.inline(),ne.setup.input(),ne.setup.date(),ne.create.calendar(),ne.bind.events(),ne.observeChanges(),ne.instantiate()},instantiate:function(){ne.verbose("Storing instance of calendar"),f=ne,r.data(a,f)},destroy:function(){ne.verbose("Destroying previous calendar for",u),r.removeData(a),ne.unbind.events(),ne.disconnect.classObserver()},setup:{config:function(){null!==ne.get.minDate()&&ne.set.minDate(r.data(Z.minDate)),null!==ne.get.maxDate()&&ne.set.maxDate(r.data(Z.maxDate)),ne.setting("type",ne.get.type()),ne.setting("on",X.on||(l.length?"focus":"click"))},popup:function(){var e,t,n;X.inline||(c.length||(c=r.children().first()).length)&&(oe.fn.popup===ae?ne.error(s.popup):(ee.length||(e=0!==(t=c.parent()).closest(i.append).length?"appendTo":"prependTo",ee=oe("").addClass(K.popup)[e](t)),ee.addClass(K.calendar),te&&ee.addClass(K.inverted),e=function(){return ne.refreshTooltips(),X.onVisible.apply(ee,arguments)},t=X.onHidden,l.length||(ee.attr("tabindex","0"),e=function(){return ne.refreshTooltips(),ne.focus(),X.onVisible.apply(ee,arguments)},t=function(){return ne.blur(),X.onHidden.apply(ee,arguments)}),n=ne.setting("on"),n=oe.extend({},X.popupOptions,{popup:ee,on:n,hoverable:"hover"===n,closable:"click"===n,onShow:function(){return ne.set.focusDate(ne.get.date()),ne.set.mode(ne.get.validatedMode(X.startMode)),X.onShow.apply(ee,arguments)},onVisible:e,onHide:X.onHide,onHidden:t}),ne.popup(n)))},inline:function(){c.length&&!X.inline||(X.inline=!0,ee=oe("").addClass(K.calendar).appendTo(r),l.length||ee.attr("tabindex","0"))},input:function(){X.touchReadonly&&l.length&&d&&l.prop("readonly",!0),ne.check.disabled()},date:function(){var e;X.initialDate?e=n.date(X.initialDate,X):r.data(Z.date)!==ae?e=n.date(r.data(Z.date),X):l.length&&(e=n.date(l.val(),X)),ne.set.date(e,X.formatInput,!1),ne.set.mode(ne.get.mode(),!1)}},trigger:{change:function(){var e,t=l[0];t&&(e=k.createEvent("HTMLEvents"),ne.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{calendar:function(){var e,t,L,n=ne.get.mode(),i=new Date,j=ne.get.date(),o=ne.get.focusDate(),a=ne.helper.dateInRange(o||j||X.initialDate||i),r=(o||ne.set.focusDate(o=a,!1,!1),"year"===n),s="month"===n,l="day"===n,c="hour"===n,u="minute"===n,N="time"===X.type,H=Math.max(X.multiMonth,1),V=l?ne.get.monthOffset():0,d=a.getMinutes(),f=a.getHours(),m=a.getDate(),z=a.getMonth()+V,p=a.getFullYear(),g=l?X.showWeekNumbers?8:7:c?4:_.column,U=l||c?6:_.row,h=l?H:1,W=(v=ee).hasClass("left")?"right center":"left center";for(v.empty(),1").addClass(K.grid).appendTo(v)),t=0;t").addClass(K.column).appendTo(L));var v,b=z+t,B=(new Date(p,b,1).getDay()-X.firstDayOfWeek%7+7)%7,y=(!X.constantHeight&&l&&(y=new Date(p,b+1,0).getDate()+B,U=Math.ceil(y/7)),r?10:s?1:0),w=l?1:0,x=c||u?1:0,C=c||u?m:1,T=new Date(p-y,b-w,C-x,f),w=new Date(p+y,b+w,C+x,f),C=r?new Date(10*Math.ceil(p/10)-9,0,0):s?new Date(p,0,0):l?new Date(p,b,0):new Date(p,b,m,-1),x=r?new Date(10*Math.ceil(p/10)+1,0,1):s?new Date(p+1,0,1):l?new Date(p,b+1,1):new Date(p,b,m+1),S=n,S=(l&&X.showWeekNumbers&&(S+=" andweek"),oe("").addClass(K.table).addClass(S).addClass(ie[g]+" column").appendTo(v)),D=(te&&S.addClass(K.inverted),g);if(!N){var Y=oe("").appendTo(S),k=oe("
").appendTo(Y),A=oe(" | ").attr("colspan",""+g).appendTo(k),E=r||s?new Date(p,0,1):l?new Date(p,b,1):new Date(p,b,m,f,d),F=oe("").addClass(K.link).appendTo(A),E=(F.text(J.header(E,n,X)),s?X.disableYear?"day":"year":l?X.disableMonth?"year":"month":"day");if(F.data(Z.mode,E),0===t&&((F=oe("").addClass(K.prev).appendTo(A)).data(Z.focusDate,T),F.toggleClass(K.disabledCell,!ne.helper.isDateInRange(C,n)),oe("").addClass(K.prevIcon).appendTo(F)),t===h-1&&((E=oe("").addClass(K.next).appendTo(A)).data(Z.focusDate,w),E.toggleClass(K.disabledCell,!ne.helper.isDateInRange(x,n)),oe("").addClass(K.nextIcon).appendTo(E)),l)for(k=oe("
").appendTo(Y),X.showWeekNumbers&&((A=oe(" | ").appendTo(k)).text(X.text.weekNo),A.addClass(K.weekCell),D--),O=0;O").appendTo(k)).text(J.dayColumnHeader((O+X.firstDayOfWeek)%7,X))}for(var $=oe("").appendTo(S),O=r?10*Math.ceil(p/10)-9:l?1-B:0,Q=0;Q").appendTo($),l&&X.showWeekNumbers&&((A=oe(" | ").appendTo(k)).text(ne.get.weekOfYear(p,b,O+1-X.firstDayOfWeek)),A.addClass(K.weekCell)),e=0;e").addClass(K.cell).appendTo(k)).text(R),A.data(Z.date,P),l&&P.getMonth()!==(b+12)%12),I=!X.selectAdjacentDays&&R||!ne.helper.isDateInRange(P,n)||X.isDisabled(P,n)||ne.helper.isDisabled(P,n)||!ne.helper.isEnabled(P,n),q=(I?null!==(q=ne.helper.findDayAsObject(P,n,X.disabledDates))&&q[Z.message]&&(A.attr("data-tooltip",q[Z.message]),A.attr("data-position",q[Z.position]||W),(q[Z.inverted]||te&&q[Z.inverted]===ae)&&A.attr("data-inverted",""),q[Z.variation]&&A.attr("data-variation",q[Z.variation])):null!==(M=ne.helper.findDayAsObject(P,n,X.eventDates))&&(A.addClass(M[Z.class]||X.eventClass),M[Z.message]&&(A.attr("data-tooltip",M[Z.message]),A.attr("data-position",M[Z.position]||W),(M[Z.inverted]||te&&M[Z.inverted]===ae)&&A.attr("data-inverted",""),M[Z.variation]&&A.attr("data-variation",M[Z.variation]))),ne.helper.dateEqual(P,j,n)),G=ne.helper.dateEqual(P,i,n),R=(A.toggleClass(K.adjacentCell,R&&!M),A.toggleClass(K.disabledCell,I),A.toggleClass(K.activeCell,q&&!(R&&I)),c||u||A.toggleClass(K.todayCell,!R&&G),{mode:n,adjacent:R,disabled:I,active:q,today:G});J.cell(A,P,R),ne.helper.dateEqual(P,o,n)&&ne.set.focusDate(P,!1,!1)}X.today&&(T=oe("
").appendTo($),(C=oe(" | ").attr("colspan",""+g).addClass(K.today).appendTo(T)).text(J.today(X)),C.data(Z.date,i)),ne.update.focus(!1,S),X.inline&&ne.refreshTooltips()}}},update:{focus:function(e,t){t=t||ee;var r=ne.get.mode(),n=ne.get.date(),s=ne.get.focusDate(),l=ne.get.startDate(),c=ne.get.endDate(),u=(e?s:null)||n||(d?null:s);t.find("td").each(function(){var e,t,n,i,o=oe(this),a=o.data(Z.date);a&&(e=o.hasClass(K.disabledCell),t=o.hasClass(K.activeCell),n=o.hasClass(K.adjacentCell),i=ne.helper.dateEqual(a,s,r),a=!!u&&(!!l&&ne.helper.isDateInRange(a,r,l,u)||!!c&&ne.helper.isDateInRange(a,r,u,c)),o.toggleClass(K.focusCell,i&&(!d||m)&&(!n||X.selectAdjacentDays&&n)&&!e),ne.helper.isTodayButton(o)||o.toggleClass(K.rangeCell,a&&!t&&!e))})}},refresh:function(){ne.create.calendar()},refreshTooltips:function(){var i=oe(D).width();ee.find("td[data-position]").each(function(){var e=oe(this),t=D.getComputedStyle(e[0],":after").width.replace(/[^0-9\.]/g,""),n=e.attr("data-position"),t=i-e.width()-(parseInt(t,10)||250)>e.offset().left?"right":"left";-1===n.indexOf(t)&&e.attr("data-position",n.replace(/(left|right)/,t))})},bind:{events:function(){ne.debug("Binding events"),ee.on("mousedown"+o,ne.event.mousedown),ee.on("touchstart"+o,ne.event.mousedown),ee.on("mouseup"+o,ne.event.mouseup),ee.on("touchend"+o,ne.event.mouseup),ee.on("mouseover"+o,ne.event.mouseover),l.length?(l.on("input"+o,ne.event.inputChange),l.on("focus"+o,ne.event.inputFocus),l.on("blur"+o,ne.event.inputBlur),l.on("keydown"+o,ne.event.keydown)):ee.on("keydown"+o,ne.event.keydown)}},unbind:{events:function(){ne.debug("Unbinding events"),ee.off(o),l.length&&l.off(o)}},event:{mouseover:function(e){var t=oe(e.target).data(Z.date),e=1===e.buttons;t&&ne.set.focusDate(t,!1,!0,e)},mousedown:function(e){l.length&&e.preventDefault(),m=0<=e.type.indexOf("touch");e=oe(e.target).data(Z.date);e&&ne.set.focusDate(e,!1,!0,!0)},mouseup:function(e){ne.focus(),e.preventDefault(),e.stopPropagation(),m=!1;var t,n,i,e=oe(e.target);e.hasClass("disabled")||(t=(e=(t=e.parent()).data(Z.date)||t.data(Z.focusDate)||t.data(Z.mode)?t:e).data(Z.date),n=e.data(Z.focusDate),i=e.data(Z.mode),t&&!1!==X.onSelect.call(u,t,ne.get.mode())?(e=e.hasClass(K.today),ne.selectDate(t,e)):n?ne.set.focusDate(n):i&&ne.set.mode(i))},keydown:function(e){var t,n,i,o,a,r,s,l=e.which;27!==l&&9!==l||ne.popup("hide"),ne.popup("is visible")&&(37===l||38===l||39===l||40===l?(o="day"===(r=ne.get.mode())?7:"hour"===r?4:"minute"===r?_.column:3,o=37===l?-1:38===l?-o:39==l?1:o,o*="minute"===r?X.minTimeGap:1,a=(t=ne.get.focusDate()||ne.get.date()||new Date).getFullYear()+("year"===r?o:0),s=t.getMonth()+("month"===r?o:0),n=t.getDate()+("day"===r?o:0),i=t.getHours()+("hour"===r?o:0),o=t.getMinutes()+("minute"===r?o:0),a=new Date(a,s,n,i,o),"time"===X.type&&(a=ne.helper.mergeDateTime(t,a)),ne.helper.isDateInRange(a,r)&&ne.set.focusDate(a)):13===l&&(r=ne.get.mode(),(s=ne.get.focusDate())&&!X.isDisabled(s,r)&&!ne.helper.isDisabled(s,r)&&ne.helper.isEnabled(s,r)&&ne.selectDate(s),e.preventDefault(),e.stopPropagation())),38!==l&&40!==l||(e.preventDefault(),ne.popup("show"))},inputChange:function(){var e=l.val(),e=n.date(e,X);ne.set.date(e,!1)},inputFocus:function(){ee.addClass(K.active)},inputBlur:function(){var e;ee.removeClass(K.active),X.formatInput&&(e=ne.get.date(),e=J.datetime(e,X),l.val(e)),g&&(ne.trigger.change(),g=!1)},class:{mutation:function(e){e.forEach(function(e){"class"===e.attributeName&&ne.check.disabled()})}}},observeChanges:function(){"MutationObserver"in D&&(e=new MutationObserver(ne.event.class.mutation),ne.debug("Setting up mutation observer",e),ne.observe.class())},disconnect:{classObserver:function(){l.length&&e&&e.disconnect()}},observe:{class:function(){l.length&&e&&e.observe(r[0],{attributes:!0})}},is:{disabled:function(){return r.hasClass(K.disabled)}},check:{disabled:function(){l.attr("tabindex",ne.is.disabled()?-1:0)}},get:{weekOfYear:function(e,t,n){return e=Date.UTC(e,t,n+3)/864e5,e=Math.floor(e/7),t=new Date(6048e5*e).getUTCFullYear(),e-Math.floor(Date.UTC(t,0,7)/6048e5)+1},date:function(){return ne.helper.sanitiseDate(r.data(Z.date))||null},inputDate:function(){return l.val()},focusDate:function(){return r.data(Z.focusDate)||null},startDate:function(){var e=ne.get.calendarModule(X.startCalendar);return(e?e.get.date():r.data(Z.startDate))||null},endDate:function(){var e=ne.get.calendarModule(X.endCalendar);return(e?e.get.date():r.data(Z.endDate))||null},minDate:function(){return r.data(Z.minDate)||null},maxDate:function(){return r.data(Z.maxDate)||null},monthOffset:function(){return r.data(Z.monthOffset)||0},mode:function(){var e=r.data(Z.mode)||X.startMode;return ne.get.validatedMode(e)},validatedMode:function(e){var t=ne.get.validModes();return 0<=oe.inArray(e,t)?e:"time"===X.type?"hour":"month"===X.type?"month":"year"===X.type?"year":"day"},type:function(){return r.data(Z.type)||X.type},validModes:function(){var e=[];return"time"!==X.type&&(X.disableYear&&"year"!==X.type||e.push("year"),(X.disableMonth||"year"===X.type)&&"month"!==X.type||e.push("month"),0<=X.type.indexOf("date")&&e.push("day")),0<=X.type.indexOf("time")&&(e.push("hour"),X.disableMinute||e.push("minute")),e},isTouch:function(){try{return k.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=e instanceof oe?e:oe(e).first()).data(a):null}},set:{date:function(e,t,n){t=!1!==t,n=!1!==n,e=ne.helper.sanitiseDate(e),e=ne.helper.dateInRange(e);var i=ne.get.mode(),o=J.datetime(e,X);if(n&&!1===X.onBeforeChange.call(u,e,o,i))return!1;if(ne.set.focusDate(e),X.isDisabled(e,i))return!1;var a=ne.get.endDate();a&&e&&a=e?ne.verbose("Unable to set maxDate variable lower that minDate variable",e,X.minDate):(ne.setting("maxDate",e),ne.set.dataKeyValue(Z.maxDate,e))},monthOffset:function(e,t){var n=Math.max(X.multiMonth,1);e=Math.max(1-n,Math.min(0,e)),ne.set.dataKeyValue(Z.monthOffset,e,t)},mode:function(e,t){ne.set.dataKeyValue(Z.mode,e,t)},dataKeyValue:function(e,t,n){var i=r.data(e),i=i===t||i<=t&&t<=i;return t?r.data(e,t):r.removeData(e),(n=!1!==n&&!i)&&ne.refresh(),!i}},selectDate:function(e,t){ne.verbose("New date selection",e);var n=ne.get.mode();t||"minute"===n||X.disableMinute&&"hour"===n||"date"===X.type&&"day"===n||"month"===X.type&&"month"===n||"year"===X.type&&"year"===n?!1!==ne.set.date(e)&&(g=!0,X.closable&&(ne.popup("hide"),(t=ne.get.calendarModule(X.endCalendar))&&("focus"!==t.setting("on")&&t.popup("show"),t.focus()))):(t="year"===n?X.disableMonth?"day":"month":"month"===n?"day":"day"===n?"hour":"minute",ne.set.mode(t),"hour"===n||"day"===n&&ne.get.date()?ne.set.date(e,!0,!1):ne.set.focusDate(e))},changeDate:function(e){ne.set.date(e)},clear:function(){ne.set.date(ae)},popup:function(){return c.popup.apply(c,arguments)},focus:function(){(l.length?l:ee).focus()},blur:function(){(l.length?l:ee).blur()},helper:{isDisabled:function(n,i){return("day"===i||"month"===i||"year"===i)&&("day"===i&&-1!==X.disabledDaysOfWeek.indexOf(n.getDay())||X.disabledDates.some(function(e){return(e="string"==typeof e?ne.helper.sanitiseDate(e):e)instanceof Date?ne.helper.dateEqual(n,e,i):null!==e&&"object"==typeof e?e[Z.year]?"number"==typeof e[Z.year]?n.getFullYear()==e[Z.year]:Array.isArray(e[Z.year])?-1=t.centuryBreak&&n===v.length-1){i<=99&&(i+=t.currentCentury-100),m=i,v.splice(n,1);break}if(f<0)for(n=0;n").addClass(d.popup).data(m.activator,p).html(e),u.inline?(T.verbose("Inserting popup element inline",c),c.insertAfter(p)):(T.verbose("Appending popup element to body",c),c.appendTo(l)),T.refresh(),T.set.variation(),u.hoverable&&T.bind.popup(),u.onCreate.call(c,x)):u.popup?(L(u.popup).data(m.activator,p),T.verbose("Used popup specified in settings"),T.refresh(),u.hoverable&&T.bind.popup()):0!==v.next(i.popup).length?(T.verbose("Pre-existing popup found"),u.inline=!0,u.popup=v.next(i.popup).data(m.activator,p),T.refresh(),u.hoverable&&T.bind.popup()):T.debug("No content specified skipping display",x)},createID:function(){n=(Math.random().toString(16)+"000000000").substr(2,8),t="."+n,T.verbose("Creating unique id for element",n)},toggle:function(){T.debug("Toggling pop-up"),T.is.hidden()?(T.debug("Popup is hidden, showing pop-up"),T.unbind.close(),T.show()):(T.debug("Popup is visible, hiding pop-up"),T.hide())},show:function(e){e=e||function(){},T.debug("Showing pop-up",u.transition),!T.is.hidden()||T.is.active()&&T.is.dropdown()||(T.exists()||T.create(),!1===u.onShow.call(c,x)?T.debug("onShow callback returned false, cancelling popup animation"):(u.preserve||u.popup||T.refresh(),c&&T.set.position()&&(T.save.conditions(),u.exclusive&&T.hideAll(),T.animate.show(e))))},hide:function(e){e=e||function(){},(T.is.visible()||T.is.animating())&&(!1===u.onHide.call(c,x)?T.debug("onHide callback returned false, cancelling popup animation"):(T.remove.visible(),T.unbind.close(),T.restore.conditions(),T.animate.hide(e)))},hideAll:function(){L(i.popup).filter("."+d.popupVisible).each(function(){L(this).data(m.activator).popup("hide")})},exists:function(){return!!c&&(u.inline||u.popup?T.has.popup():1<=c.closest(l).length)},removePopup:function(){T.has.popup()&&!u.popup&&(T.debug("Removing popup",c),c.remove(),c=H,u.onRemove.call(c,x))},save:{conditions:function(){T.cache={title:p.attr("title")},T.cache.title&&p.removeAttr("title"),T.verbose("Saving original attributes",T.cache.title)}},restore:{conditions:function(){return T.cache&&T.cache.title&&(p.attr("title",T.cache.title),T.verbose("Restoring original attributes",T.cache.title)),!0}},supports:{svg:function(){return"undefined"!=typeof SVGGraphicsElement}},animate:{show:function(e){e=L.isFunction(e)?e:function(){},u.transition&&L.fn.transition!==H&&p.transition("is supported")?(T.set.visible(),c.transition({animation:(u.transition.showMethod||u.transition)+" in",queue:!1,debug:u.debug,verbose:u.verbose,duration:u.transition.showDuration||u.duration,onComplete:function(){T.bind.close(),e.call(c,x),u.onVisible.call(c,x)}})):T.error(f.noTransition)},hide:function(e){e=L.isFunction(e)?e:function(){},T.debug("Hiding pop-up"),u.transition&&L.fn.transition!==H&&p.transition("is supported")?c.transition({animation:(u.transition.hideMethod||u.transition)+" out",queue:!1,duration:u.transition.hideDuration||u.duration,debug:u.debug,verbose:u.verbose,onComplete:function(){T.reset(),e.call(c,x),u.onHidden.call(c,x)}}):T.error(f.noTransition)}},change:{content:function(e){c.html(e)}},get:{html:function(){return p.removeData(m.html),p.data(m.html)||u.html},title:function(){return p.removeData(m.title),p.data(m.title)||u.title},content:function(){return p.removeData(m.content),p.data(m.content)||u.content||p.attr("title")},variation:function(){return p.removeData(m.variation),p.data(m.variation)||u.variation},popup:function(){return c},popupOffset:function(){return c.offset()},calculations:function(){var e=T.get.offsetParent(c),t=v[0],n=h[0]==j,i=v.offset(),o=u.inline||u.popup&&u.movePopup?v.offsetParent().offset():{top:0,left:0},a=n?{top:0,left:0}:h.offset(),r={},n=n?{top:A.scrollTop(),left:A.scrollLeft()}:{top:0,left:0},r={target:{element:v[0],width:v.outerWidth(),height:v.outerHeight(),top:i.top-o.top,left:i.left-o.left,margin:{}},popup:{width:c.outerWidth(),height:c.outerHeight()},parent:{width:s.outerWidth(),height:s.outerHeight()},screen:{top:a.top,left:a.left,scroll:{top:n.top,left:n.left},width:h.width(),height:h.height()}};return e.get(0)!==s.get(0)&&(i=e.offset(),r.target.top-=i.top,r.target.left-=i.left,r.parent.width=e.outerWidth(),r.parent.height=e.outerHeight()),u.setFluidWidth&&T.is.fluid()&&(r.container={width:c.parent().outerWidth()},r.popup.width=r.container.width),r.target.margin.top=u.inline?parseInt(j.getComputedStyle(t).getPropertyValue("margin-top"),10):0,r.target.margin.left=u.inline?T.is.rtl()?parseInt(j.getComputedStyle(t).getPropertyValue("margin-right"),10):parseInt(j.getComputedStyle(t).getPropertyValue("margin-left"),10):0,o=r.screen,r.boundary={top:o.top+o.scroll.top,bottom:o.top+o.scroll.top+o.height,left:o.left+o.scroll.left,right:o.left+o.scroll.left+o.width},r},id:function(){return n},startEvent:function(){return"hover"==u.on?"mouseenter":"focus"==u.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"==u.on?"mouseleave":"focus"==u.on&&"blur"},distanceFromBoundary:function(e,t){var n={},i=(t=t||T.get.calculations()).popup,t=t.boundary;return e&&(n={top:e.top-t.top,left:e.left-t.left,right:t.right-(e.left+i.width),bottom:t.bottom-(e.top+i.height)},T.verbose("Distance from boundaries determined",e,n)),n},offsetParent:function(e){var t=(e!==H?e:v)[0].parentNode,n=L(t);if(t)for(var i="none"===n.css("transform"),o="static"===n.css("position"),a=n.is("body");t&&!a&&o&&i;)t=t.parentNode,i="none"===(n=L(t)).css("transform"),o="static"===n.css("position"),a=n.is("body");return n&&0",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",basic:"basic",animating:"animating",dropdown:"dropdown",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible",popupVisible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(e){var t={"<":"<",">":">",'"':""","'":"'","`":"`"};return/[&<>"'`]/.test(e)?(e=e.replace(/&(?![a-z0-9#]{1,6};)/,"&")).replace(/[<>"'`]/g,function(e){return t[e]}):e},popup:function(e){var t="",n=L.fn.popup.settings.templates.escape;return typeof e!==H&&(typeof e.title!==H&&e.title&&(e.title=n(e.title),t+='"),typeof e.content!==H&&e.content&&(e.content=n(e.content),t+=''+e.content+"
")),t}}}}(jQuery,window,document),function(O,M,P,R){"use strict";O.isWindow=O.isWindow||function(e){return null!=e&&e===e.window},O.isFunction=O.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},M=void 0!==M&&M.Math==Math?M:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),O.fn.tab=function(c){var u,d=O.isFunction(this)?O(M):O(this),f=d.selector||"",S=(new Date).getTime(),D=[],k=c,A="string"==typeof k,E=[].slice.call(arguments,1),F=!1;return d.each(function(){var m,o,p,g,h,v=O.isPlainObject(c)?O.extend(!0,{},O.fn.tab.settings,c):O.extend({},O.fn.tab.settings),b=v.className,y=v.metadata,t=v.selector,w=v.error,n=v.regExp,e="."+v.namespace,i="module-"+v.namespace,x=O(this),a={},C=!0,r=0,s=this,l=x.data(i),T={initialize:function(){T.debug("Initializing tab menu item",x),T.fix.callbacks(),T.determineTabs(),T.debug("Determining tabs",v.context,o),v.auto&&T.set.auto(),T.bind.events(),v.history&&!F&&(T.initializeHistory(),F=!0),v.autoTabActivation&&l===R&&null==T.determine.activeTab()&&(T.debug("No active tab detected, setting first tab active",T.get.initialPath()),T.changeTab(!0===v.autoTabActivation?T.get.initialPath():v.autoTabActivation)),T.instantiate()},instantiate:function(){T.verbose("Storing instance of module",T),l=T,x.data(i,T)},destroy:function(){T.debug("Destroying tabs",x),x.removeData(i).off(e)},bind:{events:function(){O.isWindow(s)||(T.debug("Attaching tab activation events to element",x),x.on("click"+e,T.event.click))}},determineTabs:function(){var e;"parent"===v.context?(0"},regExp:{escape:/[-[\]{}()*+?.,\\^$|#\s:=@]/g},metadata:{tab:"tab",loaded:"loaded",promise:"promise"},className:{loading:"loading",active:"active"},selector:{tabs:".ui.tab",ui:".ui"}}}(jQuery,window,document),function(E,F,O){"use strict";E.isWindow=E.isWindow||function(e){return null!=e&&e===e.window},F=void 0!==F&&F.Math==Math?F:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),E.api=E.fn.api=function(w){var x,e=E.isFunction(this)?E(F):E(this),C=e.selector||"",T=(new Date).getTime(),S=[],D=w,k="string"==typeof D,A=[].slice.call(arguments,1);return e.each(function(){var a,i,n,e,r,s=E.isPlainObject(w)?E.extend(!0,{},E.fn.api.settings,w):E.extend({},E.fn.api.settings),t=s.namespace,o=s.metadata,l=s.selector,c=s.error,u=s.className,d="."+t,f="module-"+t,m=E(this),p=m.closest(l.form),g=s.stateContext?E(s.stateContext):m,h=this,v=g[0],b=m.data(f),y={initialize:function(){k||y.bind.events(),y.instantiate()},instantiate:function(){y.verbose("Storing instance of module",y),b=y,m.data(f,b)},destroy:function(){y.verbose("Destroying previous module for",h),m.removeData(f).off(d)},bind:{events:function(){var e=y.get.event();e?(y.verbose("Attaching API events to element",e),m.on(e+d,y.event.trigger)):"now"==s.on&&(y.debug("Querying API endpoint immediately"),y.query())}},decode:{json:function(e){if(e!==O&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}},read:{cachedResponse:function(e){var t;if(F.Storage!==O)return t=sessionStorage.getItem(e),y.debug("Using cached response",e,t),y.decode.json(t);y.error(c.noStorage)}},write:{cachedResponse:function(e,t){t&&""===t?y.debug("Response empty, not caching",t):F.Storage===O?y.error(c.noStorage):(E.isPlainObject(t)&&(t=JSON.stringify(t)),sessionStorage.setItem(e,t),y.verbose("Storing cached response for url",e,t))}},query:function(){if(y.is.disabled())y.debug("Element is disabled API request aborted");else{if(y.is.loading()){if(!s.interruptRequests)return void y.debug("Cancelling request, previous request is still pending");y.debug("Interrupting previous request"),y.abort()}if(s.defaultData&&E.extend(!0,s.urlData,y.get.defaultData()),s.serializeForm&&(s.data=y.add.formData(s.data)),!1===(i=y.get.settings()))return y.cancelled=!0,void y.error(c.beforeSend);if(y.cancelled=!1,(n=y.get.templatedURL())||y.is.mocked()){if((n=y.add.urlData(n))||y.is.mocked()){if(i.url=s.base+n,a=E.extend(!0,{},s,{type:s.method||s.type,data:e,url:s.base+n,beforeSend:s.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),y.debug("Querying URL",a.url),y.verbose("Using AJAX settings",a),"local"===s.cache&&y.read.cachedResponse(n))return y.debug("Response returned from local cache"),y.request=y.create.request(),void y.request.resolveWith(v,[y.read.cachedResponse(n)]);s.throttle?s.throttleFirstRequest||y.timer?(y.debug("Throttling request",s.throttle),clearTimeout(y.timer),y.timer=setTimeout(function(){y.timer&&delete y.timer,y.debug("Sending throttled request",e,a.method),y.send.request()},s.throttle)):(y.debug("Sending request",e,a.method),y.send.request(),y.timer=setTimeout(function(){},s.throttle)):(y.debug("Sending request",e,a.method),y.send.request())}}else y.error(c.missingURL)}},should:{removeError:function(){return!0===s.hideError||"auto"===s.hideError&&!y.is.form()}},is:{disabled:function(){return 0").addClass(e).insertAfter(u)).addClass(a).removeClass(c.inward).removeClass(c.outward).addClass(c.animating).addClass(c.transition).css("animationName"),i=t.addClass(c.inward).css("animationName"),s||(s=t.attr("class",e).removeAttr("style").removeClass(c.hidden).removeClass(c.visible).show().css("display"),f.verbose("Determining final display state",s),f.save.displayType(s)),t.remove(),n!=i)f.debug("Direction exists for animation",a),o=!0;else{if("none"==n||!n)return void f.debug("No animation defined in css",a);f.debug("Static animation found",a,s),o=!1}f.save.transitionExists(a,o)}return r!==T?r:o},animate:function(){return f.can.transition()!==T}},is:{animating:function(){return u.hasClass(c.animating)},inward:function(){return u.hasClass(c.inward)},outward:function(){return u.hasClass(c.outward)},looping:function(){return u.hasClass(c.looping)},occurring:function(e){return e="."+(e=e||l.animation).replace(" ","."),0