/* * # 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(Y,e,A){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,Y.fn.shape=function(v){var b,x=Y(this),y=Date.now(),C=[],S=v,w="string"==typeof S,W=[].slice.call(arguments,1);return x.each(function(){var i,n,t=x.selector||"",a=Y.isPlainObject(v)?Y.extend(!0,{},Y.fn.shape.settings,v):Y.extend({},Y.fn.shape.settings),e=a.namespace,r=a.selector,d=a.error,s=a.className,o="."+e,l="module-"+e,c=Y(this),u=c.find(">"+r.sides),f=u.find(">"+r.side),g=!1,h=this,p=c.data(l),m={initialize:function(){m.verbose("Initializing module for",h),m.set.defaultSide(),m.instantiate()},instantiate:function(){m.verbose("Storing instance of module",m),p=m,c.data(l,p)},destroy:function(){m.verbose("Destroying previous module for",h),c.removeData(l).off(o)},refresh:function(){m.verbose("Refreshing selector cache for",h),c=Y(h),u=Y(this).find(r.sides),f=Y(this).find(r.side)},repaint:function(){m.verbose("Forcing repaint event");(u[0]||A.createElement("div")).offsetWidth},animate:function(e,t){m.verbose("Animating box with properties",e),t=t||function(e){m.verbose("Executing animation callback"),void 0!==e&&e.stopPropagation(),m.reset(),m.set.active()},a.onBeforeChange.call(n[0]),m.verbose("Starting CSS animation"),c.addClass(s.animating),u.css(e).one("transitionend",t),m.set.duration(a.duration),requestAnimationFrame(function(){c.addClass(s.animating),i.addClass(s.hidden)})},queue:function(e){m.debug("Queueing animation of",e),u.one("transitionend",function(){m.debug("Executing queued animation"),setTimeout(function(){c.shape(e)},0)})},reset:function(){m.verbose("Animating states reset"),c.removeClass(s.animating).attr("style","").removeAttr("style"),u.attr("style","").removeAttr("style"),f.attr("style","").removeAttr("style").removeClass(s.hidden),n.removeClass(s.animating).attr("style","").removeAttr("style")},is:{complete:function(){return f.filter("."+s.active)[0]===n[0]},animating:function(){return c.hasClass(s.animating)},hidden:function(){return 0"+r.sides+">"+r.side),i=t.filter("."+a.className.active),t=g?t.eq(g):0