/* * # Fomantic UI - 2.9.2 * https://github.com/fomantic/Fomantic-UI * https://fomantic-ui.com/ * * Copyright 2023 Contributors * Released under the MIT license * https://opensource.org/licenses/MIT * */ !function(M,O,P){"use strict";function I(e){return null!==e&&e===e.window}function R(e){return"function"==typeof e&&"number"!=typeof e.nodeType}O=void 0!==O&&O.Math===Math?O:globalThis,M.fn.api=function(w){var C,e=R(this)?M(O):M(this),k=e.selector||"",T=Date.now(),D=[],S=w,A="string"==typeof S,E=[].slice.call(arguments,1);return e.each(function(){var a,i,n,e,r,o,f=M.isPlainObject(w)?M.extend(!0,{},M.fn.api.settings,w):M.extend({},M.fn.api.settings),t=f.namespace,s=f.metadata,l=f.selector,c=f.error,d=f.className,u="."+t,p="module-"+t,m=M(this),g=m.closest(l.form),h=f.stateContext?[O,P].indexOf(f.stateContext)<0?M(P).find(f.stateContext):M(f.stateContext):m,v=this,b=h[0],y=m.data(p),x={initialize:function(){A||(o=f.data,x.bind.events()),x.instantiate()},instantiate:function(){x.verbose("Storing instance of module",x),y=x,m.data(p,y)},destroy:function(){x.verbose("Destroying previous module for",v),m.removeData(p).off(u)},bind:{events:function(){var e=x.get.event();e?(x.verbose("Attaching API events to element",e),m.on(e+u,x.event.trigger)):"now"===f.on&&(x.debug("Querying API endpoint immediately"),x.query())}},decode:{json:function(e){if(void 0!==e&&"string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}},read:{cachedResponse:function(e){var t;if(void 0!==O.Storage)return t=sessionStorage.getItem(e+x.get.normalizedData()),x.debug("Using cached response",e,f.data,t),x.decode.json(t);x.error(c.noStorage)}},write:{cachedResponse:function(e,t){void 0===O.Storage?x.error(c.noStorage):(M.isPlainObject(t)&&(t=JSON.stringify(t)),sessionStorage.setItem(e+x.get.normalizedData(),t),x.verbose("Storing cached response for url",e,f.data,t))}},query:function(){if(x.is.disabled())x.debug("Element is disabled API request aborted");else{if(x.is.loading()){if(!f.interruptRequests)return void x.debug("Cancelling request, previous request is still pending");x.debug("Interrupting previous request"),x.abort()}f.defaultData&&M.extend(!0,f.urlData,x.get.defaultData()),f.serializeForm&&(f.data=x.add.formData(o||f.data)),!1===(i=x.get.settings())?(x.cancelled=!0,x.error(c.beforeSend)):(x.cancelled=!1,(n=x.get.templatedURL())||x.is.mocked()?((n=x.add.urlData(n))||x.is.mocked())&&(i.url=f.base+n,a=M.extend(!0,{},f,{type:f.method||f.type,data:e,url:f.base+n,beforeSend:f.beforeXHR,success:function(){},failure:function(){},complete:function(){}}),x.debug("Querying URL",a.url),x.verbose("Using AJAX settings",a),"local"===f.cache&&x.read.cachedResponse(n)?(x.debug("Response returned from local cache"),x.request=x.create.request(),x.request.resolveWith(b,[x.read.cachedResponse(n)])):f.throttle?f.throttleFirstRequest||x.timer?(x.debug("Throttling request",f.throttle),clearTimeout(x.timer),x.timer=setTimeout(function(){x.timer&&delete x.timer,x.debug("Sending throttled request",e,a.method),x.send.request()},f.throttle)):(x.debug("Sending request",e,a.method),x.send.request(),x.timer=setTimeout(function(){},f.throttle)):(x.debug("Sending request",e,a.method),x.send.request())):x.error(c.missingURL))}},should:{removeError:function(){return!0===f.hideError||"auto"===f.hideError&&!x.is.form()}},is:{disabled:function(){return 0",{id:ie.popupId}).addClass(G.popup).appendTo(v.find(X.context))):(e=0<(t=s.parent()).closest(i.append).length?"appendTo":"prependTo",ae("
").addClass(G.popup)[e](t)):te).addClass(G.calendar),ne&&te.addClass(G.inverted),e=function(){return ie.refreshTooltips(),X.onVisible.apply(te,arguments)},0===r.length&&(te.attr("tabindex","0"),e=function(){return ie.refreshTooltips(),ie.focus(),X.onVisible.apply(te,arguments)}),t=ie.setting("on"),t=ae.extend({},X.popupOptions,{popup:te,movePopup:!X.context,on:t,hoverable:"hover"===t,closable:"click"===t,onShow:function(){return ie.set.focusDate(ie.get.date()),ie.set.mode(ie.get.validatedMode(X.startMode)),X.onShow.apply(te,arguments)},onVisible:e,onHide:X.onHide,onHidden:function(){return ie.blur(),X.onHidden.apply(te,arguments)}}),ie.popup(t)))},inline:function(){0").addClass(G.calendar).appendTo(a),0===r.length&&te.attr("tabindex","0"))},input:function(){X.touchReadonly&&0").addClass(G.grid).appendTo(b)),t=0;t").addClass(G.column).appendTo(V));var b,y=z+t,Y=(new Date(m,y,1).getDay()-X.firstDayOfWeek%7+7)%7,x=(!X.constantHeight&&l&&(x=new Date(m,y+1,0).getDate()+Y,U=Math.ceil(x/7)),r?10:s?1:0),w=l?1:0,C=c||d?1:0,k=c||d?p:1,T=new Date(m-x,y-w,k-C,f),w=new Date(m+x,y+w,k+C,f),k=r?new Date(10*Math.ceil(m/10)-9,0,0):s?new Date(m,0,0):l?new Date(m,y,0):new Date(m,y,p,-1),C=r?new Date(10*Math.ceil(m/10)+1,0,1):s?new Date(m+1,0,1):l?new Date(m,y+1,1):new Date(m,y,p+1),D=n,D=(l&&X.showWeekNumbers&&(D+=" andweek"),ae("").addClass(G.table).addClass(D).addClass(oe[g]+" column").appendTo(b)),B=(ne&&D.addClass(G.inverted),g);if(!N){var W=ae("").appendTo(D),S=ae("").appendTo(W),A=ae("").appendTo(W),X.showWeekNumbers&&((A=ae("").appendTo(D),O=r?10*Math.ceil(m/10)-9:l?1-Y:0,K=0;K").appendTo($),l&&X.showWeekNumbers&&((A=ae("").appendTo($),(k=ae("
").attr("colspan",""+g).appendTo(S),E=r||s?new Date(m,0,1):l?new Date(m,y,1):new Date(m,y,p,f,u),M=ae("").addClass(G.link).appendTo(A),E=(M.text(ie.helper.dateFormat(J[n+"Header"],E)),s?X.disableYear?"day":"year":l?X.disableMonth?"year":"month":"day");if(M.data(Z.mode,E),0===t&&((M=ae("").addClass(G.prev).appendTo(A)).data(Z.focusDate,T),M.toggleClass(G.disabledCell,!ie.helper.isDateInRange(k,n)),ae("").addClass(G.prevIcon).appendTo(M)),t===h-1&&((E=ae("").addClass(G.next).appendTo(A)).data(Z.focusDate,w),E.toggleClass(G.disabledCell,!ie.helper.isDateInRange(C,n)),ae("").addClass(G.nextIcon).appendTo(E)),l)for(S=ae("
").appendTo(S)).text(X.text.weekNo),A.addClass(G.weekCell),B--),O=0;O").appendTo(S)).text(J.dayColumnHeader((O+X.firstDayOfWeek)%7,X))}for(var $=ae("
").appendTo(S)).text(ie.get.weekOfYear(m,y,O+1-X.firstDayOfWeek)),A.addClass(G.weekCell)),e=0;e").addClass(G.cell).appendTo(S)).text(R),A.data(Z.date,I),l&&I.getMonth()!==(y+12)%12),F=!X.selectAdjacentDays&&R||!ie.helper.isDateInRange(I,n)||X.isDisabled(I,n)||ie.helper.isDisabled(I,n)||!ie.helper.isEnabled(I,n),L=(F?(null!==(L=ie.helper.findDayAsObject(I,n,X.disabledDates))&&L[Z.message]&&(A.attr("data-tooltip",L[Z.message]),A.attr("data-position",L[Z.position]||v),(L[Z.inverted]||ne&&void 0===L[Z.inverted])&&A.attr("data-inverted",""),L[Z.variation])&&A.attr("data-variation",L[Z.variation]),"hour"===n&&null!==(L=ie.helper.findHourAsObject(I,n,X.disabledHours))&&L[Z.message]&&(A.attr("data-tooltip",L[Z.message]),A.attr("data-position",L[Z.position]||v),(L[Z.inverted]||ne&&void 0===L[Z.inverted])&&A.attr("data-inverted",""),L[Z.variation])&&A.attr("data-variation",L[Z.variation])):null!==(P=ie.helper.findDayAsObject(I,n,X.eventDates))&&(A.addClass(P[Z.class]||X.eventClass),P[Z.message])&&(A.attr("data-tooltip",P[Z.message]),A.attr("data-position",P[Z.position]||v),(P[Z.inverted]||ne&&void 0===P[Z.inverted])&&A.attr("data-inverted",""),P[Z.variation])&&A.attr("data-variation",P[Z.variation]),ie.helper.dateEqual(I,q,n)),Q=ie.helper.dateEqual(I,i,n),R=(A.toggleClass(G.adjacentCell,R&&!P),A.toggleClass(G.disabledCell,F),A.toggleClass(G.activeCell,L&&!(R&&F)),c||d||A.toggleClass(G.todayCell,!R&&Q),{mode:n,adjacent:R,disabled:F,active:L,today:Q});J.cell(A,I,R),ie.helper.dateEqual(I,o,n)&&ie.set.focusDate(I,!1,!1)}X.today&&(T=ae("
").attr("colspan",""+g).addClass(G.today).appendTo(T)).text(J.today(X)),k.data(Z.date,i)),ie.update.focus(!1,D),X.inline&&ie.refreshTooltips()}}},update:{focus:function(e,t){t=t||te;var r=ie.get.mode(),n=ie.get.date(),s=ie.get.focusDate(),l=ie.get.startDate(),c=ie.get.endDate(),d=(e?s:null)||n||(u?null:s);t.find("td").each(function(){var e,t,n,i,o=ae(this),a=o.data(Z.date);a&&(e=o.hasClass(G.disabledCell),t=o.hasClass(G.activeCell),n=o.hasClass(G.adjacentCell),i=ie.helper.dateEqual(a,s,r),a=!!d&&(!!l&&ie.helper.isDateInRange(a,r,l,d)||!!c&&ie.helper.isDateInRange(a,r,d,c)),o.toggleClass(G.focusCell,i&&(!u||f)&&(!n||X.selectAdjacentDays&&n)&&!e),ie.helper.isTodayButton(o)||o.toggleClass(G.rangeCell,a&&!t&&!e))})}},refresh:function(){ie.create.calendar()},refreshTooltips:function(){var i=ae(D).width();te.find("td[data-position]").each(function(){var e=ae(this),t=D.getComputedStyle(e[0],"::after").width.replace(/[^\d.]/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(){ie.debug("Binding events"),te.on("mousedown"+t,ie.event.mousedown),te.on("touchstart"+t,ie.event.mousedown),te.on("mouseup"+t,ie.event.mouseup),te.on("touchend"+t,ie.event.mouseup),te.on("mouseover"+t,ie.event.mouseover),(0=e?ie.verbose("Unable to set maxDate variable lower that minDate variable",e,X.minDate):(ie.setting("maxDate",e),ie.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)),ie.set.dataKeyValue(Z.monthOffset,e,t)},mode:function(e,t){ie.set.dataKeyValue(Z.mode,e,t)},dataKeyValue:function(e,t,n){var i=a.data(e),i=i===t||i<=t&&t<=i;return t?a.data(e,t):a.removeData(e),(n=!1!==n&&!i)&&ie.refresh(),!i}},selectDate:function(e,t){ie.verbose("New date selection",e);var n=ie.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!==ie.set.date(e)&&(m=!0,X.closable)&&(ie.popup("hide"),t=ie.get.calendarModule(X.endCalendar))&&(t.refresh(),"focus"!==t.setting("on")&&t.popup("show"),t.focus()):(t="year"===n?X.disableMonth?"day":"month":"month"===n?"day":"day"===n?"hour":"minute",ie.set.mode(t),"hour"===n||"day"===n&&ie.get.date()?ie.set.date(e,!0,!1):ie.set.focusDate(e))},changeDate:function(e){ie.set.date(e)},clear:function(){ie.set.date()},popup:function(){return s.popup.apply(s,arguments)},focus:function(){(0=t.centuryBreak&&n===v.length-1){i<=99&&(i+=t.currentCentury-100),m=i,v.splice(n,1);break}if(p<0)for(n=0;n adjusting invoked element"),g=g.closest(m.checkbox),y.refresh())}},setup:function(){y.set.initialLoad(),y.is.indeterminate()?(y.debug("Initial value is indeterminate"),y.indeterminate()):y.is.checked()?(y.debug("Initial value is checked"),y.check()):(y.debug("Initial value is unchecked"),y.uncheck()),y.remove.initialLoad()},refresh:function(){a=g.children(m.label),h=g.children(m.input),v=h[0]},hide:{input:function(){y.verbose("Modifying z-index to be unselectable"),h.addClass(t.hidden)}},show:{input:function(){y.verbose("Modifying z-index to be selectable"),h.removeClass(t.hidden)}},observeChanges:function(){"MutationObserver"in S&&((e=new MutationObserver(function(e){y.debug("DOM tree modified, updating selector cache"),y.refresh()})).observe(c,{childList:!0,subtree:!0}),y.debug("Setting up mutation observer",e))},attachEvents:function(e,t){var n=D(e);t=E(y[t])?y[t]:y.toggle,0").insertAfter(h),y.debug("Creating label",a))}},has:{label:function(){return 0 .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(e){var t,n=k("
").addClass("ui dimmer");return e.displayLoader&&(t=k("
").addClass(e.className.loader).addClass(e.loaderVariation),e.loaderText&&(t.text(e.loaderText),t.addClass("text")),n.append(t)),n}}}}(jQuery,window,document),function(Z,ee,te){"use strict";function ne(e){return"function"==typeof e&&"number"!=typeof e.nodeType}ee=void 0!==ee&&ee.Math===Math?ee:globalThis,Z.fn.dropdown=function(Y){var B,W=Z(this),$=Z(te),K=W.selector||"",Q=Date.now(),X=[],G=Y,J="string"==typeof G,_=[].slice.call(arguments,1);return W.each(function(V){var f,e,t,n,i,o,a,r,s,p=Z.isPlainObject(Y)?Z.extend(!0,{},Z.fn.dropdown.settings,Y):Z.extend({},Z.fn.dropdown.settings),g=p.className,m=p.message,l=p.fields,h=p.keys,v=p.metadata,q=p.namespace,c=p.regExp,b=p.selector,d=p.error,N=p.templates,u="."+q,y="module-"+q,x=Z(this),w=[ee,te].indexOf(p.context)<0?$.find(p.context):Z(p.context),C=x.find(b.text),k=x.find(b.search),T=x.find(b.sizer),D=x.find(b.input),j=x.find(b.icon),H=x.find(b.clearIcon),S=0").html(i).attr("data-"+v.value,t).attr("data-"+v.text,t).addClass(g.addition).addClass(g.item),p.hideAdditions&&i.addClass(g.hidden),n=void 0===n?i:n.add(i),L.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=L.get.userValues();t&&(L.debug("Adding user labels",t),Z.each(t,function(e,t){L.verbose("Adding custom user value"),L.add.label(t,t)}))},menu:function(){A=Z("
").addClass(g.menu).appendTo(x)},sizer:function(){T=Z("").addClass(g.sizer).insertAfter(k)}},search:function(e){e=void 0!==e?e:L.get.query(),L.verbose("Searching for query",e),!1===p.fireOnInit&&L.is.initialLoad()?L.verbose("Skipping callback on initial load",p.onSearch):L.has.minCharacters(e)&&!1!==p.onSearch.call(I,e)?L.filter(e):L.hide(null,!0)},select:{firstUnfiltered:function(){L.verbose("Selecting first non-filtered element"),L.remove.selectedItem(),E.not(b.unselectable).not(b.addition+b.hidden).eq(0).addClass(g.selected)},nextAvailable:function(e){var t=(e=e.eq(0)).nextAll(b.item).not(b.unselectable).eq(0),e=e.prevAll(b.item).not(b.unselectable).eq(0);(0").addClass("remove icon").insertBefore(C)),L.is.search()&&!L.has.search()&&(L.verbose("Adding search input"),e=x.prev("label"),k=Z("").addClass(g.search).prop("autocomplete",L.is.chrome()?"fomantic-search":"off"),0").attr("class",D.attr("class")).addClass(g.selection).addClass(g.dropdown).html(N.dropdown(e,l,p.preserveHTML,p.className)).insertBefore(D),D.hasClass(g.multiple)&&!1===D.prop("multiple")&&(L.error(d.missingMultiple),D.prop("multiple",!0)),D.is("[multiple]")&&L.set.multiple(),D.prop("disabled")&&(L.debug("Disabling dropdown"),x.addClass(g.disabled)),D.is("[required]")&&(p.forceSelection=!0),p.allowTab||D.removeAttr("tabindex"),D.prop("required",!1).removeAttr("class").detach().prependTo(x)),L.refresh()},menu:function(e){A.html(N.menu(e,l,p.preserveHTML,p.className)),E=A.find(b.item),M=p.hideDividers?E.parent().children(b.divider):Z()},reference:function(){L.debug("Dropdown behavior was called on select, replacing with closest dropdown"),x=x.parent(b.dropdown),F=x.data(y),I=x[0],L.refresh(),L.setup.returnedObject()},returnedObject:function(){var e=W.slice(0,V),t=W.slice(V+1);W=e.add(x).add(t)}},refresh:function(){L.refreshSelectors(),L.refreshData()},refreshItems:function(){E=A.find(b.item),M=p.hideDividers?E.parent().children(b.divider):Z()},refreshSelectors:function(){L.verbose("Refreshing selector cache"),C=x.find(b.text),k=x.find(b.search),D=x.find(b.input),j=x.find(b.icon),S=0"),Z.each(e,function(e,t){var n=p.templates.deQuote(t[l.value]),i=p.templates.escape(t[l.name]||"",p.preserveHTML);D.append('")}),L.observe.select())}},event:{paste:function(e){var t,n,i,o,a,r=(e.originalEvent.clipboardData||ee.clipboardData).getData("text").split(p.delimiter),s=[];r.forEach(function(e){!1===L.set.selected(L.escape.htmlEntities(e.trim()),null,!0,!0)&&s.push(e)}),e.preventDefault(),0 modified, recreating menu"),L.disconnect.selectObserver(),L.refresh(),L.setup.select(),L.set.selected(),L.observe.select())}},menu:{mutation:function(e){var e=e[0],t=e.addedNodes?Z(e.addedNodes[0]):Z(!1),e=e.removedNodes?Z(e.removedNodes[0]):Z(!1),t=t.add(e),e=t.is(b.addition)||0=p.maxSelections?(L.debug("Maximum selection count reached"),p.useLabels&&(E.addClass(g.filtered),L.add.message(m.maxSelections)),!0):(L.verbose("No longer at maximum selection count"),L.remove.message(),L.remove.filteredItem(),L.is.searchSelection()&&L.filterItems(),!1))},disabled:function(){k.attr("tabindex",L.is.disabled()?-1:0)}},restore:{defaults:function(e){L.clear(e),L.restore.defaultText(),L.restore.defaultValue()},defaultText:function(){var e=L.get.defaultText();e===L.get.placeholderText?(L.debug("Restoring default placeholder text",e),L.set.placeholderText(e)):(L.debug("Restoring default text",e),L.set.text(e))},placeholderText:function(){L.set.placeholderText()},defaultValue:function(){var e=L.get.defaultValue();void 0!==e&&(L.debug("Restoring default value",e),""!==e?(L.set.value(e),L.set.selected()):(L.remove.activeItem(),L.remove.selectedItem()))},labels:function(){p.allowAdditions&&(p.useLabels||(L.error(d.labels),p.useLabels=!0),L.debug("Restoring selected values"),L.create.userLabels()),L.check.maxSelections()},selected:function(){L.restore.values(),L.is.multiple()?(L.debug("Restoring previously selected values and labels"),L.restore.labels()):L.debug("Restoring previously selected values")},values:function(){L.set.initialLoad(),p.apiSettings&&p.saveRemoteData&&L.get.remoteValues()?L.restore.remoteValues():L.set.selected();var e=L.get.value();!e||""===e||Array.isArray(e)&&0===e.length?D.addClass(g.noselection):D.removeClass(g.noselection),L.remove.initialLoad()},remoteValues:function(){var e=L.get.remoteValues();L.debug("Recreating selected from session data",e),e&&(L.is.single()?Z.each(e,function(e,t){L.set.text(t)}):Z.each(e,function(e,t){L.add.label(e,t)}))}},read:{remoteData:function(e){if(void 0!==ee.Storage)return void 0!==(e=sessionStorage.getItem(e+i))&&e;L.error(d.noStorage)}},save:{defaults:function(){L.save.defaultText(),L.save.placeholderText(),L.save.defaultValue()},defaultValue:function(){var e=L.get.value();L.verbose("Saving default value as",e),x.data(v.defaultValue,e)},defaultText:function(){var e=L.get.text();L.verbose("Saving default text as",e),x.data(v.defaultText,e)},placeholderText:function(){var e;!1!==p.placeholder&&C.hasClass(g.placeholder)&&(e=L.get.text(),L.verbose("Saving placeholder text as",e),x.data(v.placeholderText,e))},remoteData:function(e,t){void 0===ee.Storage?L.error(d.noStorage):(L.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t+i,e))}},clear:function(e){L.is.multiple()&&p.useLabels?L.remove.labels(x.find(b.label),e):(L.remove.activeItem(),L.remove.selectedItem(),L.remove.filteredItem()),L.set.placeholderText(),L.clearValue(e)},clearValue:function(e){L.set.value("",null,null,e)},scrollPage:function(e,t){var t=t||L.get.selectedItem(),n=t.closest(b.menu),i=n.outerHeight(),o=n.scrollTop(),a=E.eq(0).outerHeight(),i=Math.floor(i/a),o="up"===e?o-a*i:o+a*i,a=E.not(b.unselectable),i="up"===e?a.index(t)-i:a.index(t)+i,i=("up"===e?0<=i:i").addClass(g.label).attr("data-"+v.value,a).html(N.label(a,t,p.preserveHTML,p.className)),i=p.onLabelCreate.call(i,a,t),L.has.label(e)?L.debug("User selection already exists, skipping",a):(p.label.variation&&i.addClass(p.label.variation),!0===n&&p.label.transition?(L.debug("Animating in label",i),i.addClass(g.hidden).insertBefore(o).transition({animation:p.label.transition,debug:p.debug,verbose:p.verbose,silent:p.silent,duration:p.label.duration})):(L.debug("Adding selection label",i),i.insertBefore(o)))},message:function(e){var t=A.children(b.message),e=p.templates.message(L.add.variables(e));0").html(e).addClass(g.message).appendTo(A)},optionValue:function(e){var t=L.escape.value(e);0").prop("value",t).addClass(g.addition).text(e).appendTo(D),L.verbose("Adding user addition as an