/*
* # Fomantic UI - 2.9.3
* https://github.com/fomantic/Fomantic-UI
* https://fomantic-ui.com/
*
* Copyright 2023 Contributors
* Released under the MIT license
* https://opensource.org/licenses/MIT
*
*/
!function(ee,te,ne){"use strict";function ie(e){return"function"==typeof e&&"number"!=typeof e.nodeType}te=void 0!==te&&te.Math===Math?te:globalThis,ee.fn.dropdown=function(B){var W,Q=ee(this),Y=ee(ne),$=Date.now(),_=[],X=B,G="string"==typeof X,J=[].slice.call(arguments,1),Z=function(e,t){var n;return 0<=[te,ne].indexOf(e)?n=ee(e):0===(n=ee(t.document).find(e)).length&&(n=t.frameElement?Z(e,t.parent):te),n};return Q.each(function(z){var v,P,t,n,i,e,a,o,s,m=ee.isPlainObject(B)?ee.extend(!0,{},ee.fn.dropdown.settings,B):ee.extend({},ee.fn.dropdown.settings),h=m.className,f=m.message,l=m.fields,g=m.keys,p=m.metadata,F=m.namespace,r=m.regExp,b=m.selector,c=m.error,N=m.templates,d="."+F,u="module-"+F,w=ee(this),y=Z(m.context,te),C=w.find(b.text),x=w.find(b.search),S=w.find(b.sizer),A=w.find(b.input),H=w.find(b.icon),j=w.find(b.clearIcon),T=0").html(i).attr("data-"+p.value,t).attr("data-"+p.text,t).addClass(h.addition).addClass(h.item),m.hideAdditions&&i.addClass(h.hidden),n=void 0===n?i:n.add(i),M.verbose("Creating user choices for value",t,i))}),n)},userLabels:function(e){var t=M.get.userValues();t&&(M.debug("Adding user labels",t),ee.each(t,function(e,t){M.verbose("Adding custom user value"),M.add.label(t,t)}))},menu:function(){k=ee("
").addClass(h.menu).appendTo(w)},sizer:function(){S=ee("").addClass(h.sizer).insertAfter(x)}},search:function(e){e=void 0!==e?e:M.get.query(),M.verbose("Searching for query",e),!1===m.fireOnInit&&M.is.initialLoad()?M.verbose("Skipping callback on initial load",m.onSearch):M.has.minCharacters(e)&&!1!==m.onSearch.call(q,e)?M.filter(e):M.hide(null,!0)},select:{firstUnfiltered:function(){M.verbose("Selecting first non-filtered element"),M.remove.selectedItem(),L.not(b.unselectable).not(b.addition+b.hidden).eq(0).addClass(h.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").insertAfter(H)),M.is.search()&&!M.has.search()&&(M.verbose("Adding search input"),e=w.prev("label"),x=ee("").addClass(h.search).prop("autocomplete",M.is.chrome()?"fomantic-search":"off"),0").attr("class",A.attr("class")).addClass(h.selection).addClass(h.dropdown).html(N.dropdown(e,l,m.preserveHTML,m.className)).insertBefore(A),A.hasClass(h.multiple)&&!1===A.prop("multiple")&&(M.error(c.missingMultiple),A.prop("multiple",!0)),A.is("[multiple]")&&M.set.multiple(),A.prop("disabled")&&(M.debug("Disabling dropdown"),w.addClass(h.disabled)),A.is("[required]")&&(m.forceSelection=!0),m.allowTab||A.removeAttr("tabindex"),A.prop("required",!1).removeAttr("class").detach().prependTo(w)),M.refresh()},menu:function(e){k.html(N.menu(e,l,m.preserveHTML,m.className)),L=k.find(b.item),I=m.hideDividers?L.parent().children(b.divider):ee()},reference:function(){M.debug("Dropdown behavior was called on select, replacing with closest dropdown"),w=w.parent(b.dropdown),R=w.data(u),q=w[0],M.refresh(),M.setup.returnedObject()},returnedObject:function(){var e=Q.slice(0,z),t=Q.slice(z+1);Q=e.add(w).add(t)}},refresh:function(){M.refreshSelectors(),M.refreshData()},refreshItems:function(){L=k.find(b.item),I=m.hideDividers?L.parent().children(b.divider):ee()},refreshSelectors:function(){M.verbose("Refreshing selector cache"),C=w.find(b.text),x=w.find(b.search),A=w.find(b.input),H=w.find(b.icon),T=0"),ee.each(e,function(e,t){var n=m.templates.deQuote(t[l.value]),i=m.templates.escape(t[l.name]||"",m.preserveHTML);A.append('")}),M.observe.select())}},event:{paste:function(e){var t,n,i,a,o,s=(e.originalEvent.clipboardData||te.clipboardData).getData("text").split(m.delimiter),r=[];s.forEach(function(e){!1===M.set.selected(M.escape.htmlEntities(e.trim()),null,!1,!0)&&r.push(e.trim())}),e.preventDefault(),0 modified, recreating menu"),M.disconnect.selectObserver(),M.refresh(),M.setup.select(),M.set.selected(),M.observe.select())}},menu:{mutation:function(e){var e=e[0],t=e.addedNodes?ee(e.addedNodes[0]):ee(!1),e=e.removedNodes?ee(e.removedNodes[0]):ee(!1),t=t.add(e),e=t.is(b.addition)||0=m.maxSelections?(M.debug("Maximum selection count reached"),m.useLabels&&(L.addClass(h.filtered),M.add.message(f.maxSelections)),!0):(M.verbose("No longer at maximum selection count"),M.remove.message(),M.remove.filteredItem(),M.is.searchSelection()&&M.filterItems(),!1))},disabled:function(){x.attr("tabindex",M.is.disabled()?-1:0)}},restore:{defaults:function(e){M.clear(e),M.restore.defaultText(),M.restore.defaultValue()},defaultText:function(){var e=M.get.defaultText();e===M.get.placeholderText?(M.debug("Restoring default placeholder text",e),M.set.placeholderText(e)):(M.debug("Restoring default text",e),M.set.text(e))},placeholderText:function(){M.set.placeholderText()},defaultValue:function(){var e=M.get.defaultValue();void 0!==e&&(M.debug("Restoring default value",e),""!==e?(M.set.value(e),M.set.selected()):(M.remove.activeItem(),M.remove.selectedItem()))},labels:function(){m.allowAdditions&&(m.useLabels||(M.error(c.labels),m.useLabels=!0),M.debug("Restoring selected values"),M.create.userLabels()),M.check.maxSelections()},selected:function(){M.restore.values(),M.is.multiple()?(M.debug("Restoring previously selected values and labels"),M.restore.labels()):M.debug("Restoring previously selected values")},values:function(){M.set.initialLoad(),m.apiSettings&&m.saveRemoteData&&M.get.remoteValues()?M.restore.remoteValues():M.set.selected();var e=M.get.value();!e||""===e||Array.isArray(e)&&0===e.length?A.addClass(h.noselection):A.removeClass(h.noselection),M.remove.initialLoad()},remoteValues:function(){var e=M.get.remoteValues();M.debug("Recreating selected from session data",e),e&&(M.is.single()?ee.each(e,function(e,t){M.set.text(t)}):m.useLabels&&ee.each(e,function(e,t){M.add.label(e,t)}))}},read:{remoteData:function(e){if(void 0!==te.Storage)return void 0!==(e=sessionStorage.getItem(e+i))&&e;M.error(c.noStorage)}},save:{defaults:function(){M.save.defaultText(),M.save.placeholderText(),M.save.defaultValue()},defaultValue:function(){var e=M.get.value();M.verbose("Saving default value as",e),w.data(p.defaultValue,e)},defaultText:function(){var e=M.get.text();M.verbose("Saving default text as",e),w.data(p.defaultText,e)},placeholderText:function(){var e;!1!==m.placeholder&&C.hasClass(h.placeholder)&&(e=M.get.text(),M.verbose("Saving placeholder text as",e),w.data(p.placeholderText,e))},remoteData:function(e,t){void 0===te.Storage?M.error(c.noStorage):(M.verbose("Saving remote data to session storage",t,e),sessionStorage.setItem(t+i,e))}},clear:function(e){M.is.multiple()&&m.useLabels?M.remove.labels(w.find(b.label),e):(M.remove.activeItem(),M.remove.selectedItem(),M.remove.filteredItem()),M.set.placeholderText(),M.clearValue(e)},clearValue:function(e){M.set.value("",null,null,e)},clearCache:function(){M.debug("Clearing API cache once"),V=!0},scrollPage:function(e,t){var t=t||M.get.selectedItem(),n=t.closest(b.menu),i=n.outerHeight(),a=n.scrollTop(),o=L.eq(0).outerHeight(),i=Math.floor(i/o),a="up"===e?a-o*i:a+o*i,o=L.not(b.unselectable),i="up"===e?o.index(t)-i:o.index(t)+i,i=("up"===e?0<=i:i").addClass(h.label).attr("data-"+p.value,o).html(N.label(o,t,m.preserveHTML,m.className)),i=m.onLabelCreate.call(i,o,t),M.has.label(e)?M.debug("User selection already exists, skipping",o):(m.label.variation&&i.addClass(m.label.variation),!0===n&&m.label.transition?(M.debug("Animating in label",i),i.addClass(h.hidden).insertBefore(a).transition({animation:m.label.transition,debug:m.debug,verbose:m.verbose,silent:m.silent,duration:m.label.duration})):(M.debug("Adding selection label",i),i.insertBefore(a)))},message:function(e){var t=k.children(b.message),e=m.templates.message(M.add.variables(e));0").html(e).addClass(h.message).appendTo(k)},optionValue:function(e){var t=M.escape.value(e);0").prop("value",t).addClass(h.addition).text(e).appendTo(A),M.verbose("Adding user addition as an