/*
* # 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(I,E,S,O){"use strict";I.isFunction=I.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")(),I.fn.checkbox=function(s){var u,e=I(this),b=e.selector||"",y=(new Date).getTime(),C=[],x=s,w="string"==typeof x,D=[].slice.call(arguments,1);return e.each(function(){var t,h=I.extend(!0,{},I.fn.checkbox.settings,s),n=h.className,o=h.namespace,g=h.selector,l=h.error,i="."+o,a="module-"+o,p=I(this),e=I(this).children(g.label),f=I(this).children(g.input),k=f[0],c=!1,v=!1,r=p.data(a),d=this,m={initialize:function(){m.verbose("Initializing checkbox",h),m.create.label(),m.bind.events(),m.set.tabbable(),m.hide.input(),m.observeChanges(),m.instantiate(),m.setup()},instantiate:function(){m.verbose("Storing instance of module",m),r=m,p.data(a,m)},destroy:function(){m.verbose("Destroying module"),m.unbind.events(),m.show.input(),p.removeData(a)},fix:{reference:function(){p.is(g.input)&&(m.debug("Behavior called on adjusting invoked element"),p=p.closest(g.checkbox),m.refresh())}},setup:function(){m.set.initialLoad(),m.is.indeterminate()?(m.debug("Initial value is indeterminate"),m.indeterminate()):m.is.checked()?(m.debug("Initial value is checked"),m.check()):(m.debug("Initial value is unchecked"),m.uncheck()),m.remove.initialLoad()},refresh:function(){e=p.children(g.label),f=p.children(g.input),k=f[0]},hide:{input:function(){m.verbose("Modifying z-index to be unselectable"),f.addClass(n.hidden)}},show:{input:function(){m.verbose("Modifying z-index to be selectable"),f.removeClass(n.hidden)}},observeChanges:function(){"MutationObserver"in E&&((t=new MutationObserver(function(e){m.debug("DOM tree modified, updating selector cache"),m.refresh()})).observe(d,{childList:!0,subtree:!0}),m.debug("Setting up mutation observer",t))},attachEvents:function(e,n){var t=I(e);n=I.isFunction(m[n])?m[n]:m.toggle,0").insertAfter(f),m.debug("Creating label",e))}},has:{label:function(){return 0