/*
* # Semantic UI - 2.4.2
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
!function(h,p,v,b){h.site=h.fn.site=function(e){var s,l,i=(new Date).getTime(),o=[],t=e,n="string"==typeof t,c=[].slice.call(arguments,1),u=h.isPlainObject(e)?h.extend(!0,{},h.site.settings,e):h.extend({},h.site.settings),r=u.namespace,d=u.error,a="module-"+r,f=h(v),m=this,g=f.data(a);return s={initialize:function(){s.instantiate()},instantiate:function(){s.verbose("Storing instance of site",s),g=s,f.data(a,s)},normalize:function(){s.fix.console(),s.fix.requestAnimationFrame()},fix:{console:function(){s.debug("Normalizing window.console"),console!==b&&console.log!==b||(s.verbose("Console not available, normalizing events"),s.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(s.verbose("Console group not available, normalizing events"),p.console.group=function(){},p.console.groupEnd=function(){},p.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(s.verbose("Mark timeline not available, normalizing events"),p.console.markTimeline=function(){})},consoleClear:function(){s.debug("Disabling programmatic console clearing"),p.console.clear=function(){}},requestAnimationFrame:function(){s.debug("Normalizing requestAnimationFrame"),p.requestAnimationFrame===b&&(s.debug("RequestAnimationFrame not available, normalizing event"),p.requestAnimationFrame=p.requestAnimationFrame||p.mozRequestAnimationFrame||p.webkitRequestAnimationFrame||p.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(e){return h.fn[e]!==b&&h.fn[e].settings!==b},enabled:{modules:function(e){var n=[];return e=e||u.modules,h.each(e,function(e,t){s.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(e){var n=[];return e=e||u.modules,h.each(e,function(e,t){s.moduleExists(t)||n.push(t)}),n}},change:{setting:function(o,r,e,a){e="string"==typeof e?"all"===e?u.modules:[e]:e||u.modules,a=a===b||a,h.each(e,function(e,t){var n,i=!s.moduleExists(t)||(h.fn[t].settings.namespace||!1);s.moduleExists(t)&&(s.verbose("Changing default setting",o,r,t),h.fn[t].settings[o]=r,a&&i&&0<(n=h(":data(module-"+i+")")).length&&(s.verbose("Modifying existing settings",n),n[t]("setting",o,r)))})},settings:function(i,e,o){e="string"==typeof e?[e]:e||u.modules,o=o===b||o,h.each(e,function(e,t){var n;s.moduleExists(t)&&(s.verbose("Changing default setting",i,t),h.extend(!0,h.fn[t].settings,i),o&&r&&0<(n=h(":data(module-"+r+")")).length&&(s.verbose("Modifying existing settings",n),n[t]("setting",i)))})}},enable:{console:function(){s.console(!0)},debug:function(e,t){e=e||u.modules,s.debug("Enabling debug for modules",e),s.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Enabling verbose debug for modules",e),s.change.setting("verbose",!0,e,t)}},disable:{console:function(){s.console(!1)},debug:function(e,t){e=e||u.modules,s.debug("Disabling debug for modules",e),s.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||u.modules,s.debug("Disabling verbose debug for modules",e),s.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(g.cache.console===b)return void s.error(d.console);s.debug("Restoring console function"),p.console=g.cache.console}else s.debug("Disabling console function"),g.cache.console=p.console,p.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){s.verbose("Destroying previous site for",f),f.removeData(a)},cache:{},setting:function(e,t){if(h.isPlainObject(e))h.extend(!0,u,e);else{if(t===b)return u[e];u[e]=t}},internal:function(e,t){if(h.isPlainObject(e))h.extend(!0,s,e);else{if(t===b)return s[e];s[e]=t}},debug:function(){u.debug&&(u.performance?s.performance.log(arguments):(s.debug=Function.prototype.bind.call(console.info,console,u.name+":"),s.debug.apply(console,arguments)))},verbose:function(){u.verbose&&u.debug&&(u.performance?s.performance.log(arguments):(s.verbose=Function.prototype.bind.call(console.info,console,u.name+":"),s.verbose.apply(console,arguments)))},error:function(){s.error=Function.prototype.bind.call(console.error,console,u.name+":"),s.error.apply(console,arguments)},performance:{log:function(e){var t,n;u.performance&&(n=(t=(new Date).getTime())-(i||t),i=t,o.push({Element:m,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(s.performance.timer),s.performance.timer=setTimeout(s.performance.display,500)},display:function(){var e=u.name+":",n=0;i=!1,clearTimeout(s.performance.timer),h.each(o,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",(console.group!==b||console.table!==b)&&0")},fields:function(e){var n=O();return O.each(e,function(e,t){n=n.add(p.get.field(t))}),n},validation:function(n){var i,o;return!!c&&(O.each(c,function(e,t){o=t.identifier||e,p.get.field(o)[0]==n[0]&&(t.identifier=o,i=t)}),i||!1)},value:function(e){var t=[];return t.push(e),p.get.values.call(v,t)[e]},values:function(e){var t=O.isArray(e)?p.get.fields(e):n,c={};return t.each(function(e,t){var n=O(t),i=(n.prop("type"),n.prop("name")),o=n.val(),r=n.is(f.checkbox),a=n.is(f.radio),s=-1!==i.indexOf("[]"),l=!!r&&n.is(":checked");i&&(s?(i=i.replace("[]",""),c[i]||(c[i]=[]),r?l?c[i].push(o||!0):c[i].push(!1):c[i].push(o)):a?c[i]!==q&&0!=c[i]||(c[i]=!!l&&(o||!0)):c[i]=r?!!l&&(o||!0):o)}),c}},has:{field:function(e){return p.verbose("Checking for existence of a field with identifier",e),"string"!=typeof(e=p.escape.string(e))&&p.error(s.identifier,e),0"+t+""}),O(n+="")},prompt:function(e){return O("").addClass("ui basic red pointing prompt label").html(e[0])}},rules:{empty:function(e){return!(e===q||""===e||O.isArray(e)&&0===e.length)},checked:function(){return 0=t},length:function(e,t){return e!==q&&e.length>=t},exactLength:function(e,t){return e!==q&&e.length==t},maxLength:function(e,t){return e!==q&&e.length<=t},match:function(e,t){var n;O(this);return 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(T,A,R,E){"use strict";A=void 0!==A&&A.Math==Math?A:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),T.fn.checkbox=function(v){var b,e=T(this),y=e.selector||"",x=(new Date).getTime(),C=[],w=v,k="string"==typeof w,S=[].slice.call(arguments,1);return e.each(function(){var e,s,i=T.extend(!0,{},T.fn.checkbox.settings,v),t=i.className,n=i.namespace,o=i.selector,l=i.error,r="."+n,a="module-"+n,c=T(this),u=T(this).children(o.label),d=T(this).children(o.input),f=d[0],m=!1,g=!1,h=c.data(a),p=this;s={initialize:function(){s.verbose("Initializing checkbox",i),s.create.label(),s.bind.events(),s.set.tabbable(),s.hide.input(),s.observeChanges(),s.instantiate(),s.setup()},instantiate:function(){s.verbose("Storing instance of module",s),h=s,c.data(a,s)},destroy:function(){s.verbose("Destroying module"),s.unbind.events(),s.show.input(),c.removeData(a)},fix:{reference:function(){c.is(o.input)&&(s.debug("Behavior called on adjusting invoked element"),c=c.closest(o.checkbox),s.refresh())}},setup:function(){s.set.initialLoad(),s.is.indeterminate()?(s.debug("Initial value is indeterminate"),s.indeterminate()):s.is.checked()?(s.debug("Initial value is checked"),s.check()):(s.debug("Initial value is unchecked"),s.uncheck()),s.remove.initialLoad()},refresh:function(){u=c.children(o.label),d=c.children(o.input),f=d[0]},hide:{input:function(){s.verbose("Modifying z-index to be unselectable"),d.addClass(t.hidden)}},show:{input:function(){s.verbose("Modifying z-index to be selectable"),d.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in A&&((e=new MutationObserver(function(e){s.debug("DOM tree modified, updating selector cache"),s.refresh()})).observe(p,{childList:!0,subtree:!0}),s.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var n=T(e);t=T.isFunction(s[t])?s[t]:s.toggle,0").insertAfter(d),s.debug("Creating label",u))}},has:{label:function(){return 0").html(o).attr("data-"+b.value,t).attr("data-"+b.text,t).addClass(p.addition).addClass(p.item),h.hideAdditions&&i.addClass(p.hidden),n=n===Q?i:n.add(i),g.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=g.get.userValues();t&&(g.debug("Adding user labels",t),Z.each(t,function(e,t){g.verbose("Adding custom user value"),g.add.label(t,t)}))},menu:function(){O=Z("").addClass(p.menu).appendTo(w)},sizer:function(){A=Z("").addClass(p.sizer).insertAfter(T)}},search:function(e){e=e!==Q?e:g.get.query(),g.verbose("Searching for query",e),g.has.minCharacters(e)?g.filter(e):g.hide()},select:{firstUnfiltered:function(){g.verbose("Selecting first non-filtered element"),g.remove.selectedItem(),D.not(y.unselectable).not(y.addition+y.hidden).eq(0).addClass(p.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(y.item).not(y.unselectable).eq(0),n=e.prevAll(y.item).not(y.unselectable).eq(0);0").addClass(p.search).prop("autocomplete","off").insertBefore(S)),g.is.multiple()&&g.is.searchSelection()&&!g.has.sizer()&&g.create.sizer(),h.allowTab&&g.set.tabbable()},select:function(){var e=g.get.selectValues();g.debug("Dropdown initialized on a select",e),w.is("select")&&(R=w),0").attr("class",R.attr("class")).addClass(p.selection).addClass(p.dropdown).html(m.dropdown(e)).insertBefore(R),R.hasClass(p.multiple)&&!1===R.prop("multiple")&&(g.error(f.missingMultiple),R.prop("multiple",!0)),R.is("[multiple]")&&g.set.multiple(),R.prop("disabled")&&(g.debug("Disabling dropdown"),w.addClass(p.disabled)),R.removeAttr("class").detach().prependTo(w)),g.refresh()},menu:function(e){O.html(m.menu(e,l)),D=O.find(y.item)},reference:function(){g.debug("Dropdown behavior was called on select, replacing with closest dropdown"),w=w.parent(y.dropdown),L=w.data(C),z=w.get(0),g.refresh(),g.setup.returnedObject()},returnedObject:function(){var e=M.slice(0,n),t=M.slice(n+1);M=e.add(w).add(t)}},refresh:function(){g.refreshSelectors(),g.refreshData()},refreshItems:function(){D=O.find(y.item)},refreshSelectors:function(){g.verbose("Refreshing selector cache"),S=w.find(y.text),T=w.find(y.search),R=w.find(y.input),E=w.find(y.icon),P=0 modified, recreating menu");var n=!1;Z.each(e,function(e,t){if(Z(t.target).is("select")||Z(t.addedNodes).is("select"))return n=!0}),n&&(g.disconnect.selectObserver(),g.refresh(),g.setup.select(),g.set.selected(),g.observe.select())}},menu:{mutation:function(e){var t=e[0],n=t.addedNodes?Z(t.addedNodes[0]):Z(!1),i=t.removedNodes?Z(t.removedNodes[0]):Z(!1),o=n.add(i),r=o.is(y.addition)||0t.name?1:-1}),g.debug("Retrieved and sorted values from select",o)):g.debug("Retrieved values from select",o),o},activeItem:function(){return D.filter("."+p.active)},selectedItem:function(){var e=D.not(y.unselectable).filter("."+p.selected);return 0=h.maxSelections?(g.debug("Maximum selection count reached"),h.useLabels&&(D.addClass(p.filtered),g.add.message(c.maxSelections)),!0):(g.verbose("No longer at maximum selection count"),g.remove.message(),g.remove.filteredItem(),g.is.searchSelection()&&g.filterItems(),!1))}},restore:{defaults:function(){g.clear(),g.restore.defaultText(),g.restore.defaultValue()},defaultText:function(){var e=g.get.defaultText();e===g.get.placeholderText?(g.debug("Restoring default placeholder text",e),g.set.placeholderText(e)):(g.debug("Restoring default text",e),g.set.text(e))},placeholderText:function(){g.set.placeholderText()},defaultValue:function(){var e=g.get.defaultValue();e!==Q&&(g.debug("Restoring default value",e),""!==e?(g.set.value(e),g.set.selected()):(g.remove.activeItem(),g.remove.selectedItem()))},labels:function(){h.allowAdditions&&(h.useLabels||(g.error(f.labels),h.useLabels=!0),g.debug("Restoring selected values"),g.create.userLabels()),g.check.maxSelections()},selected:function(){g.restore.values(),g.is.multiple()?(g.debug("Restoring previously selected values and labels"),g.restore.labels()):g.debug("Restoring previously selected values")},values:function(){g.set.initialLoad(),h.apiSettings&&h.saveRemoteData&&g.get.remoteValues()?g.restore.remoteValues():g.set.selected(),g.remove.initialLoad()},remoteValues:function(){var e=g.get.remoteValues();g.debug("Recreating selected from session data",e),e&&(g.is.single()?Z.each(e,function(e,t){g.set.text(t)}):Z.each(e,function(e,t){g.add.label(e,t)}))}},read:{remoteData:function(e){var t;if(J.Storage!==Q)return(t=sessionStorage.getItem(e))!==Q&&t;g.error(f.noStorage)}},save:{defaults:function(){g.save.defaultText(),g.save.placeholderText(),g.save.defaultValue()},defaultValue:function(){var e=g.get.value();g.verbose("Saving default value as",e),w.data(b.defaultValue,e)},defaultText:function(){var e=g.get.text();g.verbose("Saving default text as",e),w.data(b.defaultText,e)},placeholderText:function(){var e;!1!==h.placeholder&&S.hasClass(p.placeholder)&&(e=g.get.text(),g.verbose("Saving placeholder text as",e),w.data(b.placeholderText,e))},remoteData:function(e,t){J.Storage!==Q?(g.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t,e)):g.error(f.noStorage)}},clear:function(){g.is.multiple()&&h.useLabels?g.remove.labels():(g.remove.activeItem(),g.remove.selectedItem()),g.set.placeholderText(),g.clearValue()},clearValue:function(){g.set.value("")},scrollPage:function(e,t){var n,i,o=t||g.get.selectedItem(),r=o.closest(y.menu),a=r.outerHeight(),s=r.scrollTop(),l=D.eq(0).outerHeight(),c=Math.floor(a/l),u=(r.prop("scrollHeight"),"up"==e?s-l*c:s+l*c),d=D.not(y.unselectable);i="up"==e?d.index(o)-c:d.index(o)+c,0<(n=("up"==e?0<=i:i").addClass(p.label).attr("data-"+b.value,r).html(m.label(r,t)),i=h.onLabelCreate.call(i,r,t),g.has.label(e)?g.debug("User selection already exists, skipping",r):(h.label.variation&&i.addClass(h.label.variation),!0===n?(g.debug("Animating in label",i),i.addClass(p.hidden).insertBefore(o).transition(h.label.transition,h.label.duration)):(g.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=O.children(y.message),n=h.templates.message(g.add.variables(e));0").html(n).addClass(p.message).appendTo(O)},optionValue:function(e){var t=g.escape.value(e);0").prop("value",t).addClass(p.addition).html(e).appendTo(R),g.verbose("Adding user addition as an