fomantic-ui 2.10.0-beta.13 → 2.10.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +56 -66
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +3 -4
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +2 -2
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +3 -4
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +3 -4
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +2 -2
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +3 -4
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +2 -2
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +3 -4
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +2 -2
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +3 -4
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +2 -2
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +3 -4
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +2 -2
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +53 -53
  156. package/dist/semantic.js +95 -112
  157. package/dist/semantic.min.css +1 -1
  158. package/dist/semantic.min.js +2 -2
  159. package/package.json +1 -1
  160. package/src/definitions/modules/dropdown.js +55 -65
  161. package/src/definitions/modules/embed.js +2 -3
  162. package/src/definitions/modules/flyout.js +2 -3
  163. package/src/definitions/modules/modal.js +2 -3
  164. package/src/definitions/modules/popup.js +2 -3
  165. package/src/definitions/modules/rating.js +2 -3
  166. package/src/definitions/modules/search.js +2 -3
  167. package/src/definitions/modules/toast.js +2 -3
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(V,W,z){"use strict";function G(t){return"function"==typeof t&&"number"!=typeof t.nodeType}W=void 0!==W&&W.Math===Math?W:globalThis,V.fn.popup=function(x){let t=V(this),E=V(z),k=V(W),S=V("body"),A="ontouchstart"in z.documentElement?"touchstart":"click",D=Date.now(),O=[],j=x,F="string"==typeof j,R=[].slice.call(arguments,1),H=function(t,e){let o;return 0<=[W,z].indexOf(t)?o=V(t):0===(o=V(e.document).find(t)).length&&(o=e.frameElement?H(t,e.parent):S),o},N;return t.each(function(){let p=V.isPlainObject(x)?V.extend(!0,{},V.fn.popup.settings,x):V.extend({},V.fn.popup.settings),i=p.selector,u=p.className,c=p.error,d=p.metadata;var t=p.namespace;let e="."+p.namespace,o="module-"+t,f=V(this),r=H(p.context,W),n=H(p.scrollContext,W),s=H(p.boundary,W),h=p.target?H(p.target,W):f,g,l,v=0,m=!1,a=!1,b=this,w=f.data(o),y,P,C,T;T={initialize:function(){T.debug("Initializing",f),T.createID(),T.bind.events(),!T.exists()&&p.preserve&&T.create(),p.observeChanges&&T.observeChanges(),T.instantiate()},instantiate:function(){T.verbose("Storing instance",T),w=T,f.data(o,w)},observeChanges:function(){(y=new MutationObserver(T.event.documentChanged)).observe(z,{childList:!0,subtree:!0}),T.debug("Setting up mutation observer",y)},refresh:function(){p.popup?g=E.find(p.popup).eq(0):p.inline&&(g=h.nextAll(i.popup).eq(0),p.popup=g),p.popup?(T.set.invisible(),l=T.get.offsetParent(),T.remove.invisible(),p.movePopup&&T.has.popup()&&T.get.offsetParent(g)[0]!==l[0]&&(T.debug("Moving popup to the same offset parent as target"),g.detach().appendTo(l))):l=p.inline?T.get.offsetParent(h):T.has.popup()?T.get.offsetParent(g):S,l.is("html")&&l[0]!==S[0]&&(T.debug("Setting page as offset parent"),l=S),T.get.variation()&&T.set.variation()},reposition:function(){T.refresh(),T.set.position()},destroy:function(){T.debug("Destroying previous module"),y&&y.disconnect(),g&&!p.preserve&&T.removePopup(),clearTimeout(T.hideTimer),clearTimeout(T.showTimer),T.unbind.close(),T.unbind.events(),f.removeData(o)},event:{start:function(t){var e=V.isPlainObject(p.delay)?p.delay.show:p.delay;clearTimeout(T.hideTimer),(!a||a&&p.addTouchEvents)&&(T.showTimer=setTimeout(function(){T.show()},e))},end:function(){var t=V.isPlainObject(p.delay)?p.delay.hide:p.delay;clearTimeout(T.showTimer),T.hideTimer=setTimeout(function(){T.hide()},t)},touchstart:function(t){a=!0,p.addTouchEvents&&T.show()},resize:function(){T.is.visible()&&T.set.position()},documentChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t===b||0<V(t).find(b).length)&&(T.debug("Element removed from DOM, tearing down events"),T.destroy())})})},hideGracefully:function(t){let e=V(t.target);var o=V.contains(z.documentElement,t.target),n=0<e.closest(i.popup).length;t&&!n&&o?(T.debug("Click occurred outside popup hiding popup"),T.hide()):T.debug("Click was inside popup, keeping popup open")}},create:function(){let t=h.next(i.popup);var e=!p.popup&&0===t.length&&f.attr("title");let o=T.get.html();var n=T.get.title(),e=T.get.content(e);o||e||n?(T.debug("Creating pop-up html"),o=o||p.templates.popup({title:n,content:e}),g=V("<div/>").addClass(u.popup).data(d.activator,f).html(o),p.inline?(T.verbose("Inserting popup element inline",g),g.insertAfter(f)):(T.verbose("Appending popup element to body",g),g.appendTo(r)),T.refresh(),T.set.variation(),p.hoverable&&T.bind.popup(),p.onCreate.call(g,b)):p.popup?(E.find(p.popup).data(d.activator,f),T.verbose("Used popup specified in settings"),T.refresh(),p.hoverable&&T.bind.popup()):0<t.length?(T.verbose("Pre-existing popup found"),p.inline=!0,p.popup=t.data(d.activator,f),T.refresh(),p.hoverable&&T.bind.popup()):T.debug("No content specified skipping display",b)},createID:function(){C=(Math.random().toString(16)+"000000000").slice(2,10),P="."+C,T.verbose("Creating unique id for element",C)},toggle:function(){T.debug("Toggling pop-up"),T.is.hidden()?(T.debug("Popup is hidden, showing pop-up"),T.unbind.close(),T.show()):(T.debug("Popup is visible, hiding pop-up"),T.hide())},show:function(t){t=t||function(){},T.debug("Showing pop-up",p.transition),!T.is.hidden()||T.is.active()&&T.is.dropdown()||(T.exists()||T.create(),!1===p.onShow.call(g,b)?T.debug("onShow callback returned false, cancelling popup animation"):(p.preserve||p.popup||T.refresh(),g&&T.set.position()&&(T.save.conditions(),p.exclusive&&T.hideAll(),T.animate.show(t))))},hide:function(t){t=t||function(){},(T.is.visible()||T.is.animating())&&(!1===p.onHide.call(g,b)?T.debug("onHide callback returned false, cancelling popup animation"):(T.remove.visible(),T.unbind.close(),T.restore.conditions(),T.animate.hide(t)))},hideAll:function(){E.find(i.popup).filter("."+u.popupVisible).each(function(){V(this).data(d.activator).popup("hide")})},exists:function(){return!!g&&(p.inline||p.popup?T.has.popup():0<g.closest(r).length)},removePopup:function(){T.has.popup()&&!p.popup&&(T.debug("Removing popup",g),g.remove(),g=void 0,p.onRemove.call(g,b))},save:{conditions:function(){T.cache={title:f.attr("title")},T.cache.title&&f.removeAttr("title"),T.verbose("Saving original attributes",T.cache.title)}},restore:{conditions:function(){return T.cache&&T.cache.title&&(f.attr("title",T.cache.title),T.verbose("Restoring original attributes",T.cache.title)),!0}},supports:{svg:function(){return"undefined"!=typeof SVGGraphicsElement}},animate:{show:function(t){t=G(t)?t:function(){},p.transition&&T.can.useElement("transition")&&(T.set.visible(),g.transition({animation:(p.transition.showMethod||p.transition)+" in",queue:!1,debug:p.debug,verbose:p.verbose,silent:p.silent,duration:p.transition.showDuration||p.duration,onComplete:function(){T.bind.close(),t.call(g,b),p.onVisible.call(g,b)}}))},hide:function(t){t=G(t)?t:function(){},T.debug("Hiding pop-up"),p.transition&&void 0!==V.fn.transition?g.transition({animation:(p.transition.hideMethod||p.transition)+" out",queue:!1,duration:p.transition.hideDuration||p.duration,debug:p.debug,verbose:p.verbose,silent:p.silent,onComplete:function(){T.reset(),t.call(g,b),p.onHidden.call(g,b)}}):T.error(c.noTransition)}},change:{content:function(t){g.html(t)}},get:{html:function(){return f.removeData(d.html),f.data(d.html)||p.html},title:function(){return f.removeData(d.title),f.data(d.title)||p.title},content:function(t){return f.removeData(d.content),f.data(d.content)||p.content||t},variation:function(){return f.removeData(d.variation),f.data(d.variation)||p.variation},popup:function(){return g},popupOffset:function(){return g.offset()},calculations:function(){let t=T.get.offsetParent(g);var e=h[0],o=s[0]===W,n=h.offset(),i=p.inline||p.popup&&p.movePopup?h.offsetParent().offset():{top:0,left:0},r=o?{top:0,left:0}:s.offset();let a={};o=o?{top:k.scrollTop(),left:k.scrollLeft()}:{top:0,left:0};return a={target:{element:h[0],width:h.outerWidth(),height:h.outerHeight(),top:n.top-i.top,left:n.left-i.left,margin:{}},popup:{width:g.outerWidth(),height:g.outerHeight()},parent:{width:l.outerWidth(),height:l.outerHeight()},screen:{top:r.top,left:r.left,scroll:{top:o.top,left:o.left},width:s.width(),height:s.height()}},t[0]!==l[0]&&(n=t.offset(),a.target.top-=n.top,a.target.left-=n.left,a.parent.width=t.outerWidth(),a.parent.height=t.outerHeight()),p.setFluidWidth&&T.is.fluid()&&(a.container={width:g.parent().outerWidth()},a.popup.width=a.container.width),a.target.margin.top=p.inline?parseInt(W.getComputedStyle(e).getPropertyValue("margin-top"),10):0,a.target.margin.left=p.inline?T.is.rtl()?parseInt(W.getComputedStyle(e).getPropertyValue("margin-right"),10):parseInt(W.getComputedStyle(e).getPropertyValue("margin-left"),10):0,i=a.screen,a.boundary={top:i.top+i.scroll.top,bottom:i.top+i.scroll.top+i.height,left:i.left+i.scroll.left,right:i.left+i.scroll.left+i.width},a},id:function(){return C},startEvent:function(){return"hover"===p.on?"mouseenter":"focus"===p.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"===p.on?"mouseleave":"focus"===p.on&&"blur"},distanceFromBoundary:function(t,e){let o={};var n=(e=e||T.get.calculations()).popup,e=e.boundary;return t&&(o={top:t.top-e.top,left:t.left-e.left,right:e.right-(t.left+n.width),bottom:e.bottom-(t.top+n.height)},T.verbose("Distance from boundaries determined",t,o)),o},offsetParent:function(t){let n=(void 0!==t?t:h)[0].parentNode,i=V(n);if(n){let t="none"===i.css("transform"),e="static"===i.css("position"),o=i.is("body");for(;n&&!o&&e&&t;)n=n.parentNode,i=V(n),t="none"===i.css("transform"),e="static"===i.css("position"),o=i.is("body")}return i&&0<i.length?i:V()},positions:function(){return{"top left":!1,"top center":!1,"top right":!1,"bottom left":!1,"bottom center":!1,"bottom right":!1,"left center":!1,"right center":!1}},nextPosition:function(t){var e=t.split(" "),o=e[0],e=e[1],n="top"===o||"bottom"===o;let i=!1,r=!1,a=!1;return m||(T.verbose("All available positions available"),m=T.get.positions()),T.debug("Recording last position tried",t),m[t]=!0,"opposite"===p.prefer&&(a=(a=[{top:"bottom",bottom:"top",left:"right",right:"left"}[o],e]).join(" "),i=!0===m[a],T.debug("Trying opposite strategy",a)),"adjacent"===p.prefer&&n&&(a=(a=[o,{left:"center",center:"right",right:"left"}[e]]).join(" "),r=!0===m[a],T.debug("Trying adjacent strategy",a)),(r||i)&&(T.debug("Using backup position",a),a={"top left":"top center","top center":"top right","top right":"right center","right center":"bottom right","bottom right":"bottom center","bottom center":"bottom left","bottom left":"left center","left center":"top left"}[t]),a}},set:{position:function(n,i){if(0!==h.length&&0!==g.length){let t,e;var r,a,s,l;let o;if(i=i||T.get.calculations(),n=n||f.data(d.position)||p.position,t=f.data(d.offset)||p.offset,e=p.distanceAway,r=i.target,a=i.popup,s=i.parent,T.should.centerArrow(i)&&(T.verbose("Adjusting offset to center arrow on small target element"),"top left"!==n&&"bottom left"!==n||(t=(t+=r.width/2)-p.arrowPixelsFromEdge),"top right"!==n&&"bottom right"!==n||(t=(t-=r.width/2)+p.arrowPixelsFromEdge)),0===r.width&&0===r.height&&!T.is.svg(r.element))return T.debug("Popup target is hidden, no action taken"),!1;switch(p.inline&&(T.debug("Adding margin to calculation",r.margin),"left center"===n||"right center"===n?(t+=r.margin.top,e+=-r.margin.left):"top left"===n||"top center"===n||"top right"===n?(t+=r.margin.left,e-=r.margin.top):(t+=r.margin.left,e+=r.margin.top)),T.debug("Determining popup position from calculations",n,i),T.is.rtl()&&(n=n.replace(/left|right/g,function(t){return"left"===t?"right":"left"}),T.debug("RTL: Popup position updated",n)),n=v===p.maxSearchDepth&&"string"==typeof p.lastResort?p.lastResort:n){case"top left":o={top:"auto",bottom:s.height-r.top+e,left:r.left+t,right:"auto"};break;case"top center":o={bottom:s.height-r.top+e,left:r.left+r.width/2-a.width/2+t,top:"auto",right:"auto"};break;case"top right":o={bottom:s.height-r.top+e,right:s.width-r.left-r.width-t,top:"auto",left:"auto"};break;case"left center":o={top:r.top+r.height/2-a.height/2+t,right:s.width-r.left+e,left:"auto",bottom:"auto"};break;case"right center":o={top:r.top+r.height/2-a.height/2+t,left:r.left+r.width+e,bottom:"auto",right:"auto"};break;case"bottom left":o={top:r.top+r.height+e,left:r.left+t,bottom:"auto",right:"auto"};break;case"bottom center":o={top:r.top+r.height+e,left:r.left+r.width/2-a.width/2+t,bottom:"auto",right:"auto"};break;case"bottom right":o={top:r.top+r.height+e,right:s.width-r.left-r.width-t,left:"auto",bottom:"auto"}}if(void 0===o&&T.error(c.invalidPosition,n),T.debug("Calculated popup positioning values",o),g.css(o).removeClass(u.position).addClass(n),T.set.invisible(),l=T.get.popupOffset(),l=T.get.distanceFromBoundary(l,i),!p.forcePosition&&T.is.offstage(l,n)){if(T.debug("Position is outside viewport",n),v<p.maxSearchDepth)return v++,n=T.get.nextPosition(n),T.debug("Trying new position",n),!!g&&T.set.position(n,i);if(!p.lastResort)return T.debug("Popup could not find a position to display",g),T.error(c.cannotPlace,b),T.remove.attempts(),T.remove.invisible(),T.reset(),p.onUnplaceable.call(g,b),!1;T.debug("No position found, showing with last position")}return T.debug("Position is on stage",n),T.remove.attempts(),T.remove.invisible(),p.setFluidWidth&&T.is.fluid()&&T.set.fluidWidth(i),!0}T.error(c.notFound)},fluidWidth:function(t){t=t||T.get.calculations(),T.debug("Automatically setting element width to parent width",t.parent.width),g.css("width",t.container.width)},loading:function(){g.addClass(u.loading)},invisible:function(){g.addClass(u.invisible)},variation:function(t){(t=t||T.get.variation())&&T.has.popup()&&(T.verbose("Adding variation to popup",t),g.addClass(t))},visible:function(){f.addClass(u.visible)}},remove:{loading:function(){g.removeClass(u.loading)},invisible:function(){g.removeClass(u.invisible)},variation:function(t){(t=t||T.get.variation())&&(T.verbose("Removing variation",t),g.removeClass(t))},visible:function(){f.removeClass(u.visible)},attempts:function(){T.verbose("Resetting all searched positions"),v=0,m=!1}},bind:{events:function(){T.debug("Binding popup events to module"),"click"===p.on&&f.on(A+e,T.toggle),"hover"===p.on&&f.on("touchstart"+e,T.event.touchstart),T.get.startEvent()&&f.on(T.get.startEvent()+e,T.event.start).on(T.get.endEvent()+e,T.event.end),p.target&&T.debug("Target set to element",h),k.on("resize"+P,T.event.resize)},popup:function(){T.verbose("Allowing hover events on popup to prevent closing"),g&&T.has.popup()&&g.on("mouseenter"+e,T.event.start).on("mouseleave"+e,T.event.end)},close:function(){(!0===p.hideOnScroll||"auto"===p.hideOnScroll&&"click"!==p.on)&&T.bind.closeOnScroll(),T.is.closable()?T.bind.clickaway():"hover"===p.on&&a&&T.bind.touchClose()},closeOnScroll:function(){T.verbose("Binding scroll close event to document"),n.one(T.get.scrollEvent()+P,T.event.hideGracefully)},touchClose:function(){T.verbose("Binding popup touchclose event to document"),E.on("touchstart"+P,function(t){T.verbose("Touched away from popup"),T.event.hideGracefully.call(b,t)})},clickaway:function(){T.verbose("Binding popup close event to document"),E.on(A+P,function(t){T.verbose("Clicked away from popup"),T.event.hideGracefully.call(b,t)})}},unbind:{events:function(){k.off(P),f.off(e)},close:function(){E.off(P),n.off(P)}},can:{useElement:function(t){return void 0!==V.fn[t]||(T.error(c.noElement.replace("{element}",t)),!1)}},has:{popup:function(){return g&&0<g.length}},should:{centerArrow:function(t){return!T.is.basic()&&t.target.width<=2*p.arrowPixelsFromEdge}},is:{closable:function(){return"auto"===p.closable?"hover"!==p.on:p.closable},offstage:function(t,o){let n=[];return V.each(t,function(t,e){e<-p.jitter&&(T.debug("Position exceeds allowable distance from edge",t,e,o),n.push(t))}),0<n.length},svg:function(t){return T.supports.svg()&&t instanceof SVGGraphicsElement},basic:function(){return f.hasClass(u.basic)},active:function(){return f.hasClass(u.active)},animating:function(){return void 0!==g&&g.hasClass(u.animating)},fluid:function(){return void 0!==g&&g.hasClass(u.fluid)},visible:function(){return void 0!==g&&g.hasClass(u.popupVisible)},dropdown:function(){return f.hasClass(u.dropdown)},hidden:function(){return!T.is.visible()},rtl:function(){return"rtl"===f.attr("dir")||"rtl"===f.css("direction")||"rtl"===S.attr("dir")||"rtl"===S.css("direction")||"rtl"===r.attr("dir")||"rtl"===r.css("direction")}},reset:function(){T.remove.visible(),p.preserve?void 0!==V.fn.transition&&g.transition("remove transition"):T.removePopup()},setting:function(t,e){if(V.isPlainObject(t))V.extend(!0,p,t);else{if(void 0===e)return p[t];p[t]=e}},internal:function(t,e){if(V.isPlainObject(t))V.extend(!0,T,t);else{if(void 0===e)return T[t];T[t]=e}},debug:function(){!p.silent&&p.debug&&(p.performance?T.performance.log(arguments):(T.debug=Function.prototype.bind.call(console.info,console,p.name+":"),T.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?T.performance.log(arguments):(T.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),T.verbose.apply(console,arguments)))},error:function(){p.silent||(T.error=Function.prototype.bind.call(console.error,console,p.name+":"),T.error.apply(console,arguments))},performance:{log:function(t){var e,o;p.performance&&(o=(e=Date.now())-(D||e),D=e,O.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:b,"Execution Time":o})),clearTimeout(T.performance.timer),T.performance.timer=setTimeout(function(){T.performance.display()},500)},display:function(){var t=p.name+":";let o=0;D=!1,clearTimeout(T.performance.timer),V.each(O,function(t,e){o+=e["Execution Time"]}),t+=" "+o+"ms",0<O.length&&(console.groupCollapsed(t),console.table?console.table(O):V.each(O,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),O=[]}},invoke:function(n,t,e){let i=w,r,a,o;return t=t||R,e=e||b,"string"==typeof n&&void 0!==i&&(n=n.split(/[ .]/),r=n.length-1,V.each(n,function(t,e){var o=t!==r?e+n[t+1].charAt(0).toUpperCase()+n[t+1].slice(1):n;if(V.isPlainObject(i[o])&&t!==r)i=i[o];else{if(void 0!==i[o])return a=i[o],!1;{if(!V.isPlainObject(i[e])||t===r)return void 0!==i[e]?a=i[e]:T.error(c.method,n),!1;i=i[e]}}})),G(a)?o=a.apply(e,t):void 0!==a&&(o=a),Array.isArray(N)?N.push(o):void 0!==N?N=[N,o]:void 0!==o&&(N=o),a}},F?(void 0===w&&T.initialize(),T.invoke(j)):(void 0!==w&&w.invoke("destroy"),T.initialize())}),void 0!==N?N:this},V.fn.popup.settings={name:"Popup",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"popup",observeChanges:!0,onCreate:function(){},onRemove:function(){},onShow:function(){},onVisible:function(){},onHide:function(){},onUnplaceable:function(){},onHidden:function(){},on:"hover",boundary:W,addTouchEvents:!0,position:"top left",forcePosition:!1,variation:"",movePopup:!0,target:!1,popup:!1,inline:!1,preserve:!1,hoverable:!1,content:!1,html:!1,title:!1,closable:!0,hideOnScroll:"auto",exclusive:!1,context:"body",scrollContext:W,prefer:"opposite",lastResort:!1,arrowPixelsFromEdge:20,delay:{show:50,hide:70},setFluidWidth:!0,duration:200,transition:"scale",distanceAway:0,jitter:2,offset:0,maxSearchDepth:15,error:{invalidPosition:"The position you specified is not a valid position",cannotPlace:"Popup does not fit within the boundaries of the viewport",method:"The method you called is not defined.",noElement:"This module requires ui {element}",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",basic:"basic",animating:"animating",dropdown:"dropdown",invisible:"invisible",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible",popupVisible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(t){const e={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(t).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,t=>e[t])},popup:function(t){let e="",o=V.fn.popup.settings.templates.escape;return void 0!==t&&(t.title&&(t.title=o(t.title),e+='<div class="header">'+t.title+"</div>"),t.content&&(t.content=o(t.content),e+='<div class="content">'+t.content+"</div>")),e}}}}(jQuery,window,document);
11
+ !function(V,W,G){"use strict";function M(t){return"function"==typeof t&&"number"!=typeof t.nodeType}W=void 0!==W&&W.Math===Math?W:globalThis,V.fn.popup=function(x){let t=V(this),E=V(G),k=V(W),S=V("body"),A="ontouchstart"in G.documentElement?"touchstart":"click",D=Date.now(),O=[],j=x,F="string"==typeof j,R=[].slice.call(arguments,1),H=function(t,e){let o;return 0<=[W,G].indexOf(t)?o=V(t):0===(o=V(e.document).find(t)).length&&(o=e.frameElement?H(t,e.parent):S),o},N;return t.each(function(){let p=V.isPlainObject(x)?V.extend(!0,{},V.fn.popup.settings,x):V.extend({},V.fn.popup.settings),i=p.selector,u=p.className,c=p.error,d=p.metadata;var t=p.namespace;let e="."+p.namespace,o="module-"+t,f=V(this),r=H(p.context,W),n=H(p.scrollContext,W),s=H(p.boundary,W),h=p.target?H(p.target,W):f,g,l,v=0,m=!1,a=!1,b=this,w=f.data(o),y,P,C,T;T={initialize:function(){T.debug("Initializing",f),T.createID(),T.bind.events(),!T.exists()&&p.preserve&&T.create(),p.observeChanges&&T.observeChanges(),T.instantiate()},instantiate:function(){T.verbose("Storing instance",T),w=T,f.data(o,w)},observeChanges:function(){(y=new MutationObserver(T.event.documentChanged)).observe(G,{childList:!0,subtree:!0}),T.debug("Setting up mutation observer",y)},refresh:function(){p.popup?g=E.find(p.popup).eq(0):p.inline&&(g=h.nextAll(i.popup).eq(0),p.popup=g),p.popup?(T.set.invisible(),l=T.get.offsetParent(),T.remove.invisible(),p.movePopup&&T.has.popup()&&T.get.offsetParent(g)[0]!==l[0]&&(T.debug("Moving popup to the same offset parent as target"),g.detach().appendTo(l))):l=p.inline?T.get.offsetParent(h):T.has.popup()?T.get.offsetParent(g):S,l.is("html")&&l[0]!==S[0]&&(T.debug("Setting page as offset parent"),l=S),T.get.variation()&&T.set.variation()},reposition:function(){T.refresh(),T.set.position()},destroy:function(){T.debug("Destroying previous module"),y&&y.disconnect(),g&&!p.preserve&&T.removePopup(),clearTimeout(T.hideTimer),clearTimeout(T.showTimer),T.unbind.close(),T.unbind.events(),f.removeData(o)},event:{start:function(t){var e=V.isPlainObject(p.delay)?p.delay.show:p.delay;clearTimeout(T.hideTimer),(!a||a&&p.addTouchEvents)&&(T.showTimer=setTimeout(function(){T.show()},e))},end:function(){var t=V.isPlainObject(p.delay)?p.delay.hide:p.delay;clearTimeout(T.showTimer),T.hideTimer=setTimeout(function(){T.hide()},t)},touchstart:function(t){a=!0,p.addTouchEvents&&T.show()},resize:function(){T.is.visible()&&T.set.position()},documentChanged:function(t){[].forEach.call(t,function(t){t.removedNodes&&[].forEach.call(t.removedNodes,function(t){(t===b||0<V(t).find(b).length)&&(T.debug("Element removed from DOM, tearing down events"),T.destroy())})})},hideGracefully:function(t){let e=V(t.target);var o=V.contains(G.documentElement,t.target),n=0<e.closest(i.popup).length;t&&!n&&o?(T.debug("Click occurred outside popup hiding popup"),T.hide()):T.debug("Click was inside popup, keeping popup open")}},create:function(){let t=h.next(i.popup);var e=!p.popup&&0===t.length&&f.attr("title");let o=T.get.html();var n=T.get.title(),e=T.get.content(e);o||e||n?(T.debug("Creating pop-up html"),o=o||p.templates.popup({title:n,content:e}),g=V("<div/>").addClass(u.popup).data(d.activator,f).html(o),p.inline?(T.verbose("Inserting popup element inline",g),g.insertAfter(f)):(T.verbose("Appending popup element to body",g),g.appendTo(r)),T.refresh(),T.set.variation(),p.hoverable&&T.bind.popup(),p.onCreate.call(g,b)):p.popup?(E.find(p.popup).data(d.activator,f),T.verbose("Used popup specified in settings"),T.refresh(),p.hoverable&&T.bind.popup()):0<t.length?(T.verbose("Pre-existing popup found"),p.inline=!0,p.popup=t.data(d.activator,f),T.refresh(),p.hoverable&&T.bind.popup()):T.debug("No content specified skipping display",b)},createID:function(){C=(Math.random().toString(16)+"000000000").slice(2,10),P="."+C,T.verbose("Creating unique id for element",C)},toggle:function(){T.debug("Toggling pop-up"),T.is.hidden()?(T.debug("Popup is hidden, showing pop-up"),T.unbind.close(),T.show()):(T.debug("Popup is visible, hiding pop-up"),T.hide())},show:function(t){t=t||function(){},T.debug("Showing pop-up",p.transition),!T.is.hidden()||T.is.active()&&T.is.dropdown()||(T.exists()||T.create(),!1===p.onShow.call(g,b)?T.debug("onShow callback returned false, cancelling popup animation"):(p.preserve||p.popup||T.refresh(),g&&T.set.position()&&(T.save.conditions(),p.exclusive&&T.hideAll(),T.animate.show(t))))},hide:function(t){t=t||function(){},(T.is.visible()||T.is.animating())&&(!1===p.onHide.call(g,b)?T.debug("onHide callback returned false, cancelling popup animation"):(T.remove.visible(),T.unbind.close(),T.restore.conditions(),T.animate.hide(t)))},hideAll:function(){E.find(i.popup).filter("."+u.popupVisible).each(function(){V(this).data(d.activator).popup("hide")})},exists:function(){return!!g&&(p.inline||p.popup?T.has.popup():0<g.closest(r).length)},removePopup:function(){T.has.popup()&&!p.popup&&(T.debug("Removing popup",g),g.remove(),g=void 0,p.onRemove.call(g,b))},save:{conditions:function(){T.cache={title:f.attr("title")},T.cache.title&&f.removeAttr("title"),T.verbose("Saving original attributes",T.cache.title)}},restore:{conditions:function(){return T.cache&&T.cache.title&&(f.attr("title",T.cache.title),T.verbose("Restoring original attributes",T.cache.title)),!0}},supports:{svg:function(){return"undefined"!=typeof SVGGraphicsElement}},animate:{show:function(t){t=M(t)?t:function(){},p.transition&&T.can.useElement("transition")&&(T.set.visible(),g.transition({animation:(p.transition.showMethod||p.transition)+" in",queue:!1,debug:p.debug,verbose:p.verbose,silent:p.silent,duration:p.transition.showDuration||p.duration,onComplete:function(){T.bind.close(),t.call(g,b),p.onVisible.call(g,b)}}))},hide:function(t){t=M(t)?t:function(){},T.debug("Hiding pop-up"),p.transition&&void 0!==V.fn.transition?g.transition({animation:(p.transition.hideMethod||p.transition)+" out",queue:!1,duration:p.transition.hideDuration||p.duration,debug:p.debug,verbose:p.verbose,silent:p.silent,onComplete:function(){T.reset(),t.call(g,b),p.onHidden.call(g,b)}}):T.error(c.noTransition)}},change:{content:function(t){g.html(t)}},get:{html:function(){return f.removeData(d.html),f.data(d.html)||p.html},title:function(){return f.removeData(d.title),f.data(d.title)||p.title},content:function(t){return f.removeData(d.content),f.data(d.content)||p.content||t},variation:function(){return f.removeData(d.variation),f.data(d.variation)||p.variation},popup:function(){return g},popupOffset:function(){return g.offset()},calculations:function(){let t=T.get.offsetParent(g);var e=h[0],o=s[0]===W,n=h.offset(),i=p.inline||p.popup&&p.movePopup?h.offsetParent().offset():{top:0,left:0},r=o?{top:0,left:0}:s.offset();let a={};o=o?{top:k.scrollTop(),left:k.scrollLeft()}:{top:0,left:0};return a={target:{element:h[0],width:h.outerWidth(),height:h.outerHeight(),top:n.top-i.top,left:n.left-i.left,margin:{}},popup:{width:g.outerWidth(),height:g.outerHeight()},parent:{width:l.outerWidth(),height:l.outerHeight()},screen:{top:r.top,left:r.left,scroll:{top:o.top,left:o.left},width:s.width(),height:s.height()}},t[0]!==l[0]&&(n=t.offset(),a.target.top-=n.top,a.target.left-=n.left,a.parent.width=t.outerWidth(),a.parent.height=t.outerHeight()),p.setFluidWidth&&T.is.fluid()&&(a.container={width:g.parent().outerWidth()},a.popup.width=a.container.width),a.target.margin.top=p.inline?parseInt(W.getComputedStyle(e).getPropertyValue("margin-top"),10):0,a.target.margin.left=p.inline?T.is.rtl()?parseInt(W.getComputedStyle(e).getPropertyValue("margin-right"),10):parseInt(W.getComputedStyle(e).getPropertyValue("margin-left"),10):0,i=a.screen,a.boundary={top:i.top+i.scroll.top,bottom:i.top+i.scroll.top+i.height,left:i.left+i.scroll.left,right:i.left+i.scroll.left+i.width},a},id:function(){return C},startEvent:function(){return"hover"===p.on?"mouseenter":"focus"===p.on&&"focus"},scrollEvent:function(){return"scroll"},endEvent:function(){return"hover"===p.on?"mouseleave":"focus"===p.on&&"blur"},distanceFromBoundary:function(t,e){let o={};var n=(e=e||T.get.calculations()).popup,e=e.boundary;return t&&(o={top:t.top-e.top,left:t.left-e.left,right:e.right-(t.left+n.width),bottom:e.bottom-(t.top+n.height)},T.verbose("Distance from boundaries determined",t,o)),o},offsetParent:function(t){let n=(void 0!==t?t:h)[0].parentNode,i=V(n);if(n){let t="none"===i.css("transform"),e="static"===i.css("position"),o=i.is("body");for(;n&&!o&&e&&t;)n=n.parentNode,i=V(n),t="none"===i.css("transform"),e="static"===i.css("position"),o=i.is("body")}return i&&0<i.length?i:V()},positions:function(){return{"top left":!1,"top center":!1,"top right":!1,"bottom left":!1,"bottom center":!1,"bottom right":!1,"left center":!1,"right center":!1}},nextPosition:function(t){var e=t.split(" "),o=e[0],e=e[1],n="top"===o||"bottom"===o;let i=!1,r=!1,a=!1;return m||(T.verbose("All available positions available"),m=T.get.positions()),T.debug("Recording last position tried",t),m[t]=!0,"opposite"===p.prefer&&(a=(a=[{top:"bottom",bottom:"top",left:"right",right:"left"}[o],e]).join(" "),i=!0===m[a],T.debug("Trying opposite strategy",a)),"adjacent"===p.prefer&&n&&(a=(a=[o,{left:"center",center:"right",right:"left"}[e]]).join(" "),r=!0===m[a],T.debug("Trying adjacent strategy",a)),(r||i)&&(T.debug("Using backup position",a),a={"top left":"top center","top center":"top right","top right":"right center","right center":"bottom right","bottom right":"bottom center","bottom center":"bottom left","bottom left":"left center","left center":"top left"}[t]),a}},set:{position:function(n,i){if(0!==h.length&&0!==g.length){let t,e;var r,a,s,l;let o;if(i=i||T.get.calculations(),n=n||f.data(d.position)||p.position,t=f.data(d.offset)||p.offset,e=p.distanceAway,r=i.target,a=i.popup,s=i.parent,T.should.centerArrow(i)&&(T.verbose("Adjusting offset to center arrow on small target element"),"top left"!==n&&"bottom left"!==n||(t=(t+=r.width/2)-p.arrowPixelsFromEdge),"top right"!==n&&"bottom right"!==n||(t=(t-=r.width/2)+p.arrowPixelsFromEdge)),0===r.width&&0===r.height&&!T.is.svg(r.element))return T.debug("Popup target is hidden, no action taken"),!1;switch(p.inline&&(T.debug("Adding margin to calculation",r.margin),"left center"===n||"right center"===n?(t+=r.margin.top,e+=-r.margin.left):"top left"===n||"top center"===n||"top right"===n?(t+=r.margin.left,e-=r.margin.top):(t+=r.margin.left,e+=r.margin.top)),T.debug("Determining popup position from calculations",n,i),T.is.rtl()&&(n=n.replace(/left|right/g,function(t){return"left"===t?"right":"left"}),T.debug("RTL: Popup position updated",n)),n=v===p.maxSearchDepth&&"string"==typeof p.lastResort?p.lastResort:n){case"top left":o={top:"auto",bottom:s.height-r.top+e,left:r.left+t,right:"auto"};break;case"top center":o={bottom:s.height-r.top+e,left:r.left+r.width/2-a.width/2+t,top:"auto",right:"auto"};break;case"top right":o={bottom:s.height-r.top+e,right:s.width-r.left-r.width-t,top:"auto",left:"auto"};break;case"left center":o={top:r.top+r.height/2-a.height/2+t,right:s.width-r.left+e,left:"auto",bottom:"auto"};break;case"right center":o={top:r.top+r.height/2-a.height/2+t,left:r.left+r.width+e,bottom:"auto",right:"auto"};break;case"bottom left":o={top:r.top+r.height+e,left:r.left+t,bottom:"auto",right:"auto"};break;case"bottom center":o={top:r.top+r.height+e,left:r.left+r.width/2-a.width/2+t,bottom:"auto",right:"auto"};break;case"bottom right":o={top:r.top+r.height+e,right:s.width-r.left-r.width-t,left:"auto",bottom:"auto"}}if(void 0===o&&T.error(c.invalidPosition,n),T.debug("Calculated popup positioning values",o),g.css(o).removeClass(u.position).addClass(n),T.set.invisible(),l=T.get.popupOffset(),l=T.get.distanceFromBoundary(l,i),!p.forcePosition&&T.is.offstage(l,n)){if(T.debug("Position is outside viewport",n),v<p.maxSearchDepth)return v++,n=T.get.nextPosition(n),T.debug("Trying new position",n),!!g&&T.set.position(n,i);if(!p.lastResort)return T.debug("Popup could not find a position to display",g),T.error(c.cannotPlace,b),T.remove.attempts(),T.remove.invisible(),T.reset(),p.onUnplaceable.call(g,b),!1;T.debug("No position found, showing with last position")}return T.debug("Position is on stage",n),T.remove.attempts(),T.remove.invisible(),p.setFluidWidth&&T.is.fluid()&&T.set.fluidWidth(i),!0}T.error(c.notFound)},fluidWidth:function(t){t=t||T.get.calculations(),T.debug("Automatically setting element width to parent width",t.parent.width),g.css("width",t.container.width)},loading:function(){g.addClass(u.loading)},invisible:function(){g.addClass(u.invisible)},variation:function(t){(t=t||T.get.variation())&&T.has.popup()&&(T.verbose("Adding variation to popup",t),g.addClass(t))},visible:function(){f.addClass(u.visible)}},remove:{loading:function(){g.removeClass(u.loading)},invisible:function(){g.removeClass(u.invisible)},variation:function(t){(t=t||T.get.variation())&&(T.verbose("Removing variation",t),g.removeClass(t))},visible:function(){f.removeClass(u.visible)},attempts:function(){T.verbose("Resetting all searched positions"),v=0,m=!1}},bind:{events:function(){T.debug("Binding popup events to module"),"click"===p.on&&f.on(A+e,T.toggle),"hover"===p.on&&f.on("touchstart"+e,T.event.touchstart),T.get.startEvent()&&f.on(T.get.startEvent()+e,T.event.start).on(T.get.endEvent()+e,T.event.end),p.target&&T.debug("Target set to element",h),k.on("resize"+P,T.event.resize)},popup:function(){T.verbose("Allowing hover events on popup to prevent closing"),g&&T.has.popup()&&g.on("mouseenter"+e,T.event.start).on("mouseleave"+e,T.event.end)},close:function(){(!0===p.hideOnScroll||"auto"===p.hideOnScroll&&"click"!==p.on)&&T.bind.closeOnScroll(),T.is.closable()?T.bind.clickaway():"hover"===p.on&&a&&T.bind.touchClose()},closeOnScroll:function(){T.verbose("Binding scroll close event to document"),n.one(T.get.scrollEvent()+P,T.event.hideGracefully)},touchClose:function(){T.verbose("Binding popup touchclose event to document"),E.on("touchstart"+P,function(t){T.verbose("Touched away from popup"),T.event.hideGracefully.call(b,t)})},clickaway:function(){T.verbose("Binding popup close event to document"),E.on(A+P,function(t){T.verbose("Clicked away from popup"),T.event.hideGracefully.call(b,t)})}},unbind:{events:function(){k.off(P),f.off(e)},close:function(){E.off(P),n.off(P)}},can:{useElement:function(t){return void 0!==V.fn[t]||(T.error(c.noElement.replace("{element}",t)),!1)}},has:{popup:function(){return g&&0<g.length}},should:{centerArrow:function(t){return!T.is.basic()&&t.target.width<=2*p.arrowPixelsFromEdge}},is:{closable:function(){return"auto"===p.closable?"hover"!==p.on:p.closable},offstage:function(t,o){let n=[];return V.each(t,function(t,e){e<-p.jitter&&(T.debug("Position exceeds allowable distance from edge",t,e,o),n.push(t))}),0<n.length},svg:function(t){return T.supports.svg()&&t instanceof SVGGraphicsElement},basic:function(){return f.hasClass(u.basic)},active:function(){return f.hasClass(u.active)},animating:function(){return void 0!==g&&g.hasClass(u.animating)},fluid:function(){return void 0!==g&&g.hasClass(u.fluid)},visible:function(){return void 0!==g&&g.hasClass(u.popupVisible)},dropdown:function(){return f.hasClass(u.dropdown)},hidden:function(){return!T.is.visible()},rtl:function(){return"rtl"===f.attr("dir")||"rtl"===f.css("direction")||"rtl"===S.attr("dir")||"rtl"===S.css("direction")||"rtl"===r.attr("dir")||"rtl"===r.css("direction")}},reset:function(){T.remove.visible(),p.preserve?void 0!==V.fn.transition&&g.transition("remove transition"):T.removePopup()},setting:function(t,e){if(V.isPlainObject(t))V.extend(!0,p,t);else{if(void 0===e)return p[t];p[t]=e}},internal:function(t,e){if(V.isPlainObject(t))V.extend(!0,T,t);else{if(void 0===e)return T[t];T[t]=e}},debug:function(){!p.silent&&p.debug&&(p.performance?T.performance.log(arguments):(T.debug=Function.prototype.bind.call(console.info,console,p.name+":"),T.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?T.performance.log(arguments):(T.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),T.verbose.apply(console,arguments)))},error:function(){p.silent||(T.error=Function.prototype.bind.call(console.error,console,p.name+":"),T.error.apply(console,arguments))},performance:{log:function(t){var e,o;p.performance&&(o=(e=Date.now())-(D||e),D=e,O.push({Name:t[0],Arguments:[].slice.call(t,1)||"",Element:b,"Execution Time":o})),clearTimeout(T.performance.timer),T.performance.timer=setTimeout(function(){T.performance.display()},500)},display:function(){var t=p.name+":";let o=0;D=!1,clearTimeout(T.performance.timer),V.each(O,function(t,e){o+=e["Execution Time"]}),t+=" "+o+"ms",0<O.length&&(console.groupCollapsed(t),console.table?console.table(O):V.each(O,function(t,e){console.log(e.Name+": "+e["Execution Time"]+"ms")}),console.groupEnd()),O=[]}},invoke:function(n,t,e){let i=w,r,a,o;return t=t||R,e=e||b,"string"==typeof n&&void 0!==i&&(n=n.split(/[ .]/),r=n.length-1,V.each(n,function(t,e){var o=t!==r?e+n[t+1].charAt(0).toUpperCase()+n[t+1].slice(1):n;if(V.isPlainObject(i[o])&&t!==r)i=i[o];else{if(void 0!==i[o])return a=i[o],!1;{if(!V.isPlainObject(i[e])||t===r)return void 0!==i[e]?a=i[e]:T.error(c.method,n),!1;i=i[e]}}})),M(a)?o=a.apply(e,t):void 0!==a&&(o=a),Array.isArray(N)?N.push(o):void 0!==N?N=[N,o]:void 0!==o&&(N=o),a}},F?(void 0===w&&T.initialize(),T.invoke(j)):(void 0!==w&&w.invoke("destroy"),T.initialize())}),void 0!==N?N:this},V.fn.popup.settings={name:"Popup",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"popup",observeChanges:!0,onCreate:function(){},onRemove:function(){},onShow:function(){},onVisible:function(){},onHide:function(){},onUnplaceable:function(){},onHidden:function(){},on:"hover",boundary:W,addTouchEvents:!0,position:"top left",forcePosition:!1,variation:"",movePopup:!0,target:!1,popup:!1,inline:!1,preserve:!1,hoverable:!1,content:!1,html:!1,title:!1,closable:!0,hideOnScroll:"auto",exclusive:!1,context:"body",scrollContext:W,prefer:"opposite",lastResort:!1,arrowPixelsFromEdge:20,delay:{show:50,hide:70},setFluidWidth:!0,duration:200,transition:"scale",distanceAway:0,jitter:2,offset:0,maxSearchDepth:15,error:{invalidPosition:"The position you specified is not a valid position",cannotPlace:"Popup does not fit within the boundaries of the viewport",method:"The method you called is not defined.",noElement:"This module requires ui {element}",notFound:"The target or popup you specified does not exist on the page"},metadata:{activator:"activator",content:"content",html:"html",offset:"offset",position:"position",title:"title",variation:"variation"},className:{active:"active",basic:"basic",animating:"animating",dropdown:"dropdown",invisible:"invisible",fluid:"fluid",loading:"loading",popup:"ui popup",position:"top left center bottom right",visible:"visible",popupVisible:"visible"},selector:{popup:".ui.popup"},templates:{escape:function(t){const e={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(t).replace(/["&'<>]/g,t=>e[t])},popup:function(t){let e="",o=V.fn.popup.settings.templates.escape;return void 0!==t&&(t.title&&(t.title=o(t.title),e+='<div class="header">'+t.title+"</div>"),t.content&&(t.content=o(t.content),e+='<div class="content">'+t.content+"</div>")),e}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Progress
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Progress
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Progress
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Progress
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Progress
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Progress
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Rail
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Rail
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Rail
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Rail
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Rating
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Rating
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Rating
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Rating
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -480,8 +480,7 @@
480
480
 
481
481
  templates: {
482
482
  escape: function (string) {
483
- const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
484
- const escape = {
483
+ const escapeMap = {
485
484
  '"': '&quot;',
486
485
  '&': '&amp;',
487
486
  "'": '&apos;',
@@ -489,7 +488,7 @@
489
488
  '>': '&gt;',
490
489
  };
491
490
 
492
- return String(string).replace(badChars, (chr) => escape[chr]);
491
+ return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
493
492
  },
494
493
  icon: function (maxRating, iconClass) {
495
494
  let icon = 1;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Rating
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Rating
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(A,e){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,A.fn.rating=function(f){let p=A(this),b=Date.now(),h=[],y=f,C="string"==typeof y,x=[].slice.call(arguments,1),R;return p.each(function(){let a=A.isPlainObject(f)?A.extend(!0,{},A.fn.rating.settings,f):A.extend({},A.fn.rating.settings);var e=a.namespace;let o=a.className,l=a.error,n=a.metadata,t=a.selector,r=a.cssVars,i="."+e,s="module-"+e,c=this,d=A(this).data(s),u=A(this),g=u.find(t.icon),m,v;v={initialize:function(){v.verbose("Initializing rating module",a),0===g.length&&v.setup.layout(),a.interactive&&!v.is.disabled()?v.enable():v.disable(),v.set.initialLoad(),v.set.rating(v.get.initialRating()),v.remove.initialLoad(),v.instantiate()},instantiate:function(){v.verbose("Instantiating module",a),d=v,u.data(s,v)},destroy:function(){v.verbose("Destroying previous instance",d),v.remove.events(),u.removeData(s)},refresh:function(){g=u.find(t.icon)},setup:{layout:function(){var e=v.get.maxRating(),n=v.get.icon(),e=A.fn.rating.settings.templates.icon(e,n);v.debug("Generating icon html dynamically"),u.html(e),v.refresh()}},event:{mouseenter:function(){let e=A(this);e.nextAll().removeClass(o.selected),u.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){u.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=A(this),n=v.get.rating(),e=g.index(e)+1;("auto"===a.clearable?1===g.length:a.clearable)&&n===e?v.clearRating():v.set.rating(e)}},clearRating:function(){v.debug("Clearing current rating"),v.set.rating(0)},bind:{events:function(){v.verbose("Binding events"),u.on("mouseenter"+i,t.icon,v.event.mouseenter).on("mouseleave"+i,t.icon,v.event.mouseleave).on("click"+i,t.icon,v.event.click)}},remove:{events:function(){v.verbose("Removing events"),u.off(i)},initialLoad:function(){m=!1}},enable:function(){v.debug("Setting rating to interactive mode"),v.bind.events(),u.removeClass(o.disabled)},disable:function(){v.debug("Setting rating to read-only mode"),v.remove.events(),u.addClass(o.disabled)},is:{initialLoad:function(){return m},disabled:function(){return u.hasClass(o.disabled)}},get:{icon:function(){var e=u.data(n.icon);return e&&u.removeData(n.icon),e||a.icon},initialRating:function(){return void 0!==u.data(n.rating)?(u.removeData(n.rating),u.data(n.rating)):a.initialRating},maxRating:function(){return void 0!==u.data(n.maxRating)?(u.removeData(n.maxRating),u.data(n.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return v.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var n=Math.floor(0<=e-1?e-1:0);let t=g.eq(n),i=e<=1?t:t.next();n=e%1*100;u.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(v.verbose("Setting current rating to",e),t.prevAll().addBack().addClass(o.active),t.next()&&e%1!=0&&(i.addClass(o.partiallyActive).addClass(o.active),i.css(r.filledCustomPropName,n+"%"),"transparent"===i.css("backgroundColor")&&i.removeClass(o.partiallyActive).removeClass(o.active))),v.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){m=!0}},setting:function(e,n){if(v.debug("Changing setting",e,n),A.isPlainObject(e))A.extend(!0,a,e);else{if(void 0===n)return a[e];A.isPlainObject(a[e])?A.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(A.isPlainObject(e))A.extend(!0,v,e);else{if(void 0===n)return v[e];v[e]=n}},debug:function(){!a.silent&&a.debug&&(a.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,a.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),v.verbose.apply(console,arguments)))},error:function(){a.silent||(v.error=Function.prototype.bind.call(console.error,console,a.name+":"),v.error.apply(console,arguments))},performance:{log:function(e){var n,t;a.performance&&(t=(n=Date.now())-(b||n),b=n,h.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":t})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){let e=a.name+":",t=0;b=!1,clearTimeout(v.performance.timer),A.each(h,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",1<p.length&&(e+=" ("+p.length+")"),0<h.length&&(console.groupCollapsed(e),console.table?console.table(h):A.each(h,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),h=[]}},invoke:function(i,e,n){let a=d,o,r,t;var s;return e=e||x,n=n||c,"string"==typeof i&&void 0!==a&&(i=i.split(/[ .]/),o=i.length-1,A.each(i,function(e,n){var t=e!==o?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(A.isPlainObject(a[t])&&e!==o)a=a[t];else{if(void 0!==a[t])return r=a[t],!1;{if(!A.isPlainObject(a[n])||e===o)return void 0!==a[n]?r=a[n]:v.error(l.method,i),!1;a=a[n]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?t=r.apply(n,e):void 0!==r&&(t=r),Array.isArray(R)?R.push(t):void 0!==R?R=[R,t]:void 0!==t&&(R=t),r}},C?(void 0===d&&v.initialize(),v.invoke(y)):(void 0!==d&&d.invoke("destroy"),v.initialize())}),void 0!==R?R:this},A.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{escape:function(e){const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])},icon:function(e,n){let t=1,i="",a=A.fn.rating.settings.templates.escape;for(;t<=e;)i+='<i class="'+a(n)+' icon"></i>',t++;return i}}}}(jQuery,window,document);
11
+ !function(A,e){"use strict";e=void 0!==e&&e.Math===Math?e:globalThis,A.fn.rating=function(f){let p=A(this),b=Date.now(),h=[],y=f,C="string"==typeof y,x=[].slice.call(arguments,1),R;return p.each(function(){let a=A.isPlainObject(f)?A.extend(!0,{},A.fn.rating.settings,f):A.extend({},A.fn.rating.settings);var e=a.namespace;let o=a.className,l=a.error,n=a.metadata,t=a.selector,r=a.cssVars,i="."+e,s="module-"+e,c=this,d=A(this).data(s),u=A(this),g=u.find(t.icon),m,v;v={initialize:function(){v.verbose("Initializing rating module",a),0===g.length&&v.setup.layout(),a.interactive&&!v.is.disabled()?v.enable():v.disable(),v.set.initialLoad(),v.set.rating(v.get.initialRating()),v.remove.initialLoad(),v.instantiate()},instantiate:function(){v.verbose("Instantiating module",a),d=v,u.data(s,v)},destroy:function(){v.verbose("Destroying previous instance",d),v.remove.events(),u.removeData(s)},refresh:function(){g=u.find(t.icon)},setup:{layout:function(){var e=v.get.maxRating(),n=v.get.icon(),e=A.fn.rating.settings.templates.icon(e,n);v.debug("Generating icon html dynamically"),u.html(e),v.refresh()}},event:{mouseenter:function(){let e=A(this);e.nextAll().removeClass(o.selected),u.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){u.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=A(this),n=v.get.rating(),e=g.index(e)+1;("auto"===a.clearable?1===g.length:a.clearable)&&n===e?v.clearRating():v.set.rating(e)}},clearRating:function(){v.debug("Clearing current rating"),v.set.rating(0)},bind:{events:function(){v.verbose("Binding events"),u.on("mouseenter"+i,t.icon,v.event.mouseenter).on("mouseleave"+i,t.icon,v.event.mouseleave).on("click"+i,t.icon,v.event.click)}},remove:{events:function(){v.verbose("Removing events"),u.off(i)},initialLoad:function(){m=!1}},enable:function(){v.debug("Setting rating to interactive mode"),v.bind.events(),u.removeClass(o.disabled)},disable:function(){v.debug("Setting rating to read-only mode"),v.remove.events(),u.addClass(o.disabled)},is:{initialLoad:function(){return m},disabled:function(){return u.hasClass(o.disabled)}},get:{icon:function(){var e=u.data(n.icon);return e&&u.removeData(n.icon),e||a.icon},initialRating:function(){return void 0!==u.data(n.rating)?(u.removeData(n.rating),u.data(n.rating)):a.initialRating},maxRating:function(){return void 0!==u.data(n.maxRating)?(u.removeData(n.maxRating),u.data(n.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return v.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var n=Math.floor(0<=e-1?e-1:0);let t=g.eq(n),i=e<=1?t:t.next();n=e%1*100;u.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(v.verbose("Setting current rating to",e),t.prevAll().addBack().addClass(o.active),t.next()&&e%1!=0&&(i.addClass(o.partiallyActive).addClass(o.active),i.css(r.filledCustomPropName,n+"%"),"transparent"===i.css("backgroundColor")&&i.removeClass(o.partiallyActive).removeClass(o.active))),v.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){m=!0}},setting:function(e,n){if(v.debug("Changing setting",e,n),A.isPlainObject(e))A.extend(!0,a,e);else{if(void 0===n)return a[e];A.isPlainObject(a[e])?A.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(A.isPlainObject(e))A.extend(!0,v,e);else{if(void 0===n)return v[e];v[e]=n}},debug:function(){!a.silent&&a.debug&&(a.performance?v.performance.log(arguments):(v.debug=Function.prototype.bind.call(console.info,console,a.name+":"),v.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?v.performance.log(arguments):(v.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),v.verbose.apply(console,arguments)))},error:function(){a.silent||(v.error=Function.prototype.bind.call(console.error,console,a.name+":"),v.error.apply(console,arguments))},performance:{log:function(e){var n,t;a.performance&&(t=(n=Date.now())-(b||n),b=n,h.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":t})),clearTimeout(v.performance.timer),v.performance.timer=setTimeout(function(){v.performance.display()},500)},display:function(){let e=a.name+":",t=0;b=!1,clearTimeout(v.performance.timer),A.each(h,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",1<p.length&&(e+=" ("+p.length+")"),0<h.length&&(console.groupCollapsed(e),console.table?console.table(h):A.each(h,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),h=[]}},invoke:function(i,e,n){let a=d,o,r,t;var s;return e=e||x,n=n||c,"string"==typeof i&&void 0!==a&&(i=i.split(/[ .]/),o=i.length-1,A.each(i,function(e,n){var t=e!==o?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(A.isPlainObject(a[t])&&e!==o)a=a[t];else{if(void 0!==a[t])return r=a[t],!1;{if(!A.isPlainObject(a[n])||e===o)return void 0!==a[n]?r=a[n]:v.error(l.method,i),!1;a=a[n]}}})),"function"==typeof(s=r)&&"number"!=typeof s.nodeType?t=r.apply(n,e):void 0!==r&&(t=r),Array.isArray(R)?R.push(t):void 0!==R?R=[R,t]:void 0!==t&&(R=t),r}},C?(void 0===d&&v.initialize(),v.invoke(y)):(void 0!==d&&d.invoke("destroy"),v.initialize())}),void 0!==R?R:this},A.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{escape:function(e){const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>n[e])},icon:function(e,n){let t=1,i="",a=A.fn.rating.settings.templates.escape;for(;t<=e;)i+='<i class="'+a(n)+' icon"></i>',t++;return i}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Reset
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Reset
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Reset
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Reset
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Reveal
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Reveal
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Reveal
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Reveal
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Search
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Search
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Search
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Search
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1388,8 +1388,7 @@
1388
1388
  return string;
1389
1389
  }
1390
1390
 
1391
- const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
1392
- const escape = {
1391
+ const escapeMap = {
1393
1392
  '"': '&quot;',
1394
1393
  '&': '&amp;',
1395
1394
  "'": '&apos;',
@@ -1397,7 +1396,7 @@
1397
1396
  '>': '&gt;',
1398
1397
  };
1399
1398
 
1400
- string = String(string).replace(badChars, (chr) => escape[chr]);
1399
+ string = String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
1401
1400
 
1402
1401
  // FUI controlled HTML is still allowed
1403
1402
  string = string.replace(/&lt;(\/)*mark&gt;/g, '<$1mark>');
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Search
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Search
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(F,q,D){"use strict";function E(e){return"function"==typeof e&&"number"!=typeof e.nodeType}q=void 0!==q&&q.Math===Math?q:globalThis,F.fn.search=function(S){let x=F(this),C=Date.now(),w=[],T=S,A="string"==typeof T,k=[].slice.call(arguments,1),j;return x.each(function(){let f=F.isPlainObject(S)?F.extend(!0,{},F.fn.search.settings,S):F.extend({},F.fn.search.settings),g=f.className,u=f.metadata,n=f.regExp,l=f.fields,h=f.selector,p=f.error;var e=f.namespace;let i="."+e,t=e+"-module",v=F(this),m=v.find(h.prompt),s=v.find(h.searchButton),r=v.find(h.results),a=v.find(h.result),o=void v.find(h.category),d=this,c=v.data(t),y=!1,b=!1,R;R={initialize:function(){R.verbose("Initializing module"),R.get.settings(),R.determine.searchFields(),R.bind.events(),R.set.type(),R.create.results(),R.instantiate()},instantiate:function(){R.verbose("Storing instance of module",R),c=R,v.data(t,R)},destroy:function(){R.verbose("Destroying instance"),v.off(i).removeData(t)},refresh:function(){R.debug("Refreshing selector cache"),m=v.find(h.prompt),s=v.find(h.searchButton),o=v.find(h.category),r=v.find(h.results),a=v.find(h.result)},refreshResults:function(){r=v.find(h.results),a=v.find(h.result)},bind:{events:function(){R.verbose("Binding events to search"),f.automatic&&(v.on(R.get.inputEvent()+i,h.prompt,R.event.input),m.attr("autocomplete",R.is.chrome()?"fomantic-search":"off")),v.on("focus"+i,h.prompt,R.event.focus).on("blur"+i,h.prompt,R.event.blur).on("keydown"+i,h.prompt,R.handleKeyboard).on("click"+i,h.searchButton,R.query).on("mousedown"+i,h.results,R.event.result.mousedown).on("mouseup"+i,h.results,R.event.result.mouseup).on("click"+i,h.result,R.event.result.click).on("click"+i,h.remove,R.event.remove.click)}},determine:{searchFields:function(){S&&void 0!==S.searchFields&&(f.searchFields=Array.isArray(S.searchFields)?S.searchFields:[S.searchFields])}},event:{input:function(){f.searchDelay?(clearTimeout(R.timer),R.timer=setTimeout(function(){R.is.focused()&&R.query()},f.searchDelay)):R.query()},focus:function(){R.set.focus(),f.searchOnFocus&&R.has.minimumCharacters()&&R.query(function(){R.can.show()&&R.showResults()})},blur:function(e){var t=D.activeElement===this;function s(){R.cancel.query(),R.remove.focus(),R.timer=setTimeout(function(){R.hideResults()},f.hideDelay)}t||(b=!1,R.resultsClicked?(R.debug("Determining if user action caused search to close"),v.one("click.close"+i,h.results,function(e){R.is.inMessage(e)||y?m.trigger("focus"):(y=!1,R.is.animating()||R.is.hidden()||s())})):(R.debug("Input blurred without user action, closing results"),s()))},remove:{click:function(){R.clear.value(),m.trigger("focus")}},result:{mousedown:function(){R.resultsClicked=!0},mouseup:function(){R.resultsClicked=!1},click:function(e){R.debug("Search result selected");let t=F(this),s=t.find(h.title).eq(0),n=t.is("a[href]")?t:t.find("a[href]").eq(0);var i=n.attr("href")||!1,r=n.attr("target")||!1,a=0<s.length&&s.text(),o=R.get.results(),c=t.data(u.result)||R.get.result(a,o),l=R.get.value();if(E(f.onSelect)&&!1===f.onSelect.call(d,c,o))return R.debug("Custom onSelect callback cancelled default select action"),void(y=!0);R.hideResults(),a&&R.get.value()===l&&R.set.value(a),i&&(e.preventDefault(),R.verbose("Opening search link found in result",n),"_blank"===r||e.ctrlKey?q.open(i):q.location.href=i)}}},ensureVisible:function(e){var t,s,n;0!==e.length&&(e=(t=e.position().top)+e.outerHeight(!0),s=r.scrollTop(),n=r.height(),t<0?r.scrollTop(s+t):n<e&&r.scrollTop(s+(e-n)))},handleKeyboard:function(e){let t=v.find(h.result),s=v.find(h.category);var n=t.filter("."+g.active),i=t.index(n),r=t.length,n=0<n.length,a=e.which;let o=13,c=27,l=38,u=40,d;if(a===c&&(R.is.visible()?R.hideResults():(R.verbose("Escape key pressed, blurring search field"),m.trigger("blur")),e.stopPropagation(),b=!0),R.is.visible())if(a===o){if(R.verbose("Enter key pressed, selecting active result"),0<t.filter("."+g.active).length)return R.event.result.click.call(t.filter("."+g.active),e),e.preventDefault(),!1}else a===l&&n?(R.verbose("Up key pressed, changing active result"),d=i-1<0?i:i-1,s.removeClass(g.active),t.removeClass(g.active).eq(d).addClass(g.active).closest(s).addClass(g.active),R.ensureVisible(t.eq(d)),e.preventDefault()):a===u&&(R.verbose("Down key pressed, changing active result"),d=r<=i+1?i:i+1,s.removeClass(g.active),t.removeClass(g.active).eq(d).addClass(g.active).closest(s).addClass(g.active),R.ensureVisible(t.eq(d)),e.preventDefault());else a===o&&(R.verbose("Enter key pressed, executing query"),R.query(),R.set.buttonPressed(),m.one("keyup",R.remove.buttonFocus))},setup:{api:function(n,i){var e={debug:f.debug,on:!1,cache:f.cache,action:"search",urlData:{query:n}},t={onSuccess:function(e,t,s){R.parse.response.call(d,e,n),i(),f.apiSettings&&"function"==typeof f.apiSettings.onSuccess&&f.apiSettings.onSuccess.call(this,e,t,s)},onFailure:function(e,t,s){R.displayMessage(p.serverError),i(),f.apiSettings&&"function"==typeof f.apiSettings.onFailure&&f.apiSettings.onFailure.call(this,e,t,s)},onAbort:function(e,t,s){f.apiSettings&&"function"==typeof f.apiSettings.onAbort&&f.apiSettings.onAbort.call(this,e,t,s)},onError:function(e,t,s){R.error(),f.apiSettings&&"function"==typeof f.apiSettings.onError&&f.apiSettings.onError.call(this,e,t,s)}};F.extend(!0,e,f.apiSettings,t),R.verbose("Setting up API request",e),v.api(e)}},can:{useAPI:function(){return void 0!==F.fn.api},show:function(){return R.is.focused()&&!R.is.visible()&&!R.is.empty()},transition:function(){return f.transition&&void 0!==F.fn.transition}},is:{animating:function(){return r.hasClass(g.animating)},chrome:function(){return!!q.chrome&&!q.StyleMedia},hidden:function(){return r.hasClass(g.hidden)},inMessage:function(t){if(t.target){let e=F(t.target);return F.contains(D.documentElement,t.target)&&0<e.closest(h.message).length}},empty:function(){return""===r.html()},visible:function(){return 0<r.filter(":visible").length},focused:function(){return 0<m.filter(":focus").length}},get:{settings:function(){F.isPlainObject(S)&&S.searchFullText&&(f.fullTextSearch=S.searchFullText,R.error(f.error.oldSearchSyntax,d))},inputEvent:function(){var e=m[0];return void 0!==e&&void 0!==e.oninput?"input":void 0!==e&&void 0!==e.onpropertychange?"propertychange":"keyup"},value:function(){return m.val()},results:function(){return v.data(u.results)},result:function(s,e){let n=!1;return s=void 0!==s?s:R.get.value(),e=void 0!==e?e:R.get.results(),"category"===f.type?(R.debug("Finding result that matches",s),F.each(e,function(e,t){if(Array.isArray(t.results)&&(n=R.search.object(s,t.results)[0]))return!1})):(R.debug("Finding result in results object",s),n=R.search.object(s,e)[0]),n||!1}},select:{firstResult:function(){R.verbose("Selecting first result"),a.first().addClass(g.active)}},set:{focus:function(){v.addClass(g.focus)},loading:function(){v.addClass(g.loading)},value:function(e){R.verbose("Setting search input value",e),m.val(e)},type:function(e){e=e||f.type,g[e]&&v.addClass(g[e])},buttonPressed:function(){s.addClass(g.pressed)}},remove:{loading:function(){v.removeClass(g.loading)},focus:function(){v.removeClass(g.focus)},buttonPressed:function(){s.removeClass(g.pressed)},diacritics:function(e){return f.ignoreDiacritics?e.normalize("NFD").replace(/[\u0300-\u036F]/g,""):e}},query:function(e){e=E(e)?e:function(){};var t=R.get.value(),s=R.read.cache(t);e=e||function(){},R.has.minimumCharacters()?(s?(R.debug("Reading result from cache",t),R.save.results(s.results),f.onResults.call(d,s.results,!0),R.addResults(s.html),R.inject.id(s.results),e()):(R.debug("Querying for",t),F.isPlainObject(f.source)||Array.isArray(f.source)?(R.search.local(t),e()):R.can.useAPI()?R.search.remote(t,e):(R.error(p.source),e())),f.onSearchQuery.call(d,t)):R.hideResults()},search:{local:function(e){let t=R.search.object(e,f.source);var s;R.set.loading(),R.save.results(t),R.debug("Returned full local search results",t),0<f.maxResults&&(R.debug("Using specified max results",t),t=t.slice(0,f.maxResults)),"category"===f.type&&(t=R.create.categoryResults(t)),s=R.generateResults({results:t}),R.remove.loading(),R.addResults(s),R.inject.id(t),R.write.cache(e,{html:s,results:t})},remote:function(e,t){t=E(t)?t:function(){},v.api("is loading")&&v.api("abort"),R.setup.api(e,t),v.api("query")},object:function(r,e,t){r=R.remove.diacritics(String(r));let a=[],o=[],c=[];var s=r.replace(n.escape,"\\$&");function l(e,t){var s=-1===F.inArray(t,a),n=-1===F.inArray(t,c),i=-1===F.inArray(t,o);s&&n&&i&&e.push(t)}let u=new RegExp(n.beginsWith+s,f.ignoreSearchCase?"i":"");if(e=e||f.source,t=void 0!==t?t:f.searchFields,Array.isArray(t)||(t=[t]),void 0===e||!1===e)return R.error(p.source),[];let d=t.length-1;return F.each(e,function(e,n){let i=[];F.each(t,function(t,s){if("string"==typeof n[s]||"number"==typeof n[s]){let e;if(e="string"==typeof n[s]?R.remove.diacritics(n[s]):n[s].toString(),e=F("<div/>",{html:e}).text().trim(),"all"===f.fullTextSearch){if(i.push(e),t<d)return!0;e=i.join(" ")}"all"!==f.fullTextSearch&&-1!==e.search(u)?l(a,n):"exact"===f.fullTextSearch&&R.exactSearch(r,e)||"some"===f.fullTextSearch&&R.wordSearch(r,e)||"all"===f.fullTextSearch&&R.wordSearch(r,e,!0)?l(o,n):!0===f.fullTextSearch&&R.fuzzySearch(r,e)&&l(c,n)}})}),F.merge(o,c),F.merge(a,o),a}},exactSearch:function(e,t){return f.ignoreSearchCase&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<t.indexOf(e)},wordSearch:function(e,t,s){var n=e.split(/\s+/);let i;var r=n.length;let a=!1;for(i=0;i<r&&!(!(a=R.exactSearch(n[i],t))&&s||a&&!s);i++);return a},fuzzySearch:function(n,i){var r=i.length,e=n.length;if("string"!=typeof n)return!1;if(f.ignoreSearchCase&&(n=n.toLowerCase(),i=i.toLowerCase()),r<e)return!1;if(e===r)return n===i;for(let t=0,s=0;t<e;t++){let e=!1;for(var a=n.charCodeAt(t);s<r;)if(i.charCodeAt(s++)===a){e=!0;break}if(!e)return!1}return!0},parse:{response:function(t,e){if(Array.isArray(t)){let e={};e[l.results]=t,t=e}var s=R.generateResults(t);R.verbose("Parsing server response",t),void 0!==t&&void 0!==e&&void 0!==t[l.results]&&(R.addResults(s),R.inject.id(t[l.results]),R.write.cache(e,{html:s,results:t[l.results]}),R.save.results(t[l.results]))}},cancel:{query:function(){R.can.useAPI()&&v.api("abort")}},has:{minimumCharacters:function(){return R.get.value().length>=f.minCharacters},results:function(){return 0!==r.length&&""!==r.html()}},clear:{cache:function(e){let t=v.data(u.cache);e?t&&t[e]&&(R.debug("Removing value from cache",e),delete t[e],v.data(u.cache,t)):(R.debug("Clearing cache",e),v.removeData(u.cache))},value:function(){R.set.value("")}},read:{cache:function(e){var t=v.data(u.cache);return!!f.cache&&(R.verbose("Checking cache for generated html for query",e),"object"==typeof t&&void 0!==t[e]&&t[e])}},create:{categoryResults:function(e){let s={};return F.each(e,function(e,t){t.category&&(void 0===s[t.category]?(R.verbose("Creating new category of results",t.category),s[t.category]={name:t.category,results:[t]}):s[t.category].results.push(t))}),s},id:function(e,t){e+=1;let s;return void 0!==t?(t=String.fromCharCode(97+t),s=t+e,R.verbose("Creating category result id",s)):(s=e,R.verbose("Creating result id",s)),s},results:function(){0===r.length&&(r=F("<div />").addClass(g.results).appendTo(v))}},inject:{result:function(e,t,s){R.verbose("Injecting result into results");let n=(void 0!==s?r.children().eq(s).children(h.results).first():r).children(h.result).eq(t);R.verbose("Injecting results metadata",n),n.data(u.result,e)},id:function(e){R.debug("Injecting unique ids into results");let s=0,n=0;return"category"===f.type?F.each(e,function(e,t){0<t.results.length&&(n=0,F.each(t.results,function(e,t){void 0===t.id&&(t.id=R.create.id(n,s)),R.inject.result(t,n,s),n++}),s++)}):F.each(e,function(e,t){void 0===t.id&&(t.id=R.create.id(n)),R.inject.result(t,n),n++}),e}},save:{results:function(e){R.verbose("Saving current search results to metadata",e),v.data(u.results,e)}},write:{cache:function(e,t){let s=void 0!==v.data(u.cache)?v.data(u.cache):{};f.cache&&(R.verbose("Writing generated html to cache",e,t),s[e]=t,v.data(u.cache,s))}},addResults:function(e){if(E(f.onResultsAdd)&&!1===f.onResultsAdd.call(r,e))return R.debug("onResultsAdd callback cancelled default action"),!1;e?(r.html(e),R.refreshResults(),f.selectFirstResult&&R.select.firstResult(),R.showResults()):R.hideResults(function(){r.empty()})},showResults:function(e){e=E(e)?e:function(){},b||!R.is.visible()&&R.has.results()&&(R.can.transition()?(R.debug("Showing results with css animations"),r.transition({animation:f.transition+" in",debug:f.debug,verbose:f.verbose,silent:f.silent,duration:f.duration,onShow:function(){var e=v.find(h.result).eq(0);R.ensureVisible(e)},onComplete:function(){e()},queue:!0})):(R.debug("Showing results with javascript"),r.stop().fadeIn(f.duration,f.easing)),f.onResultsOpen.call(r))},hideResults:function(e){e=E(e)?e:function(){},R.is.visible()&&(R.can.transition()?(R.debug("Hiding results with css animations"),r.transition({animation:f.transition+" out",debug:f.debug,verbose:f.verbose,silent:f.silent,duration:f.duration,onComplete:function(){e()},queue:!0})):(R.debug("Hiding results with javascript"),r.stop().fadeOut(f.duration,f.easing)),f.onResultsClose.call(r))},generateResults:function(a){R.debug("Generating html from response",a);let e=f.templates[f.type];var s=F.isPlainObject(a[l.results])&&!F.isEmptyObject(a[l.results]),n=Array.isArray(a[l.results])&&0<a[l.results].length;let t="";if(s||n){if(0<f.maxResults&&(s?"standard"===f.type&&R.error(p.maxResults):a[l.results]=a[l.results].slice(0,f.maxResults)),f.highlightMatches){n=a[l.results],s=f.ignoreSearchCase?"i":"";let t=R.get.value().split("");var o=f.ignoreDiacritics?"[̀-ͯ]?":"",c="(?![^<]*>)";let i=new RegExp(c+"("+t.join(o+")(.*?)"+c+"(")+o+")",s),r=function(){let e=[].slice.call(arguments,1,2*t.length).map(function(e,t){return 1&t?e:"<mark>"+e+"</mark>"});return e.join("")};F.each(n,function(s,n){F.each(f.searchFields,function(e,t){if("string"==typeof n[t]||"number"==typeof n[t]){let e="string"==typeof n[t]?n[t]:n[t].toString();e=(e=f.ignoreDiacritics?e.normalize("NFD"):e).replace(/<\/?mark>/g,""),a[l.results][s][t]=e.replace(i,r)}})})}E(e)?t=e(a,f):R.error(p.noTemplate,!1)}else f.showNoResults&&(t=R.displayMessage(p.noResults,"empty",p.noResultsHeader));return f.onResults.call(d,a),t},displayMessage:function(e,t,s){return t=t||"standard",R.debug("Displaying message",e,t,s),R.addResults(f.templates.message(e,t,s)),f.templates.message(e,t,s)},setting:function(e,t){if(F.isPlainObject(e))F.extend(!0,f,e);else{if(void 0===t)return f[e];f[e]=t}},internal:function(e,t){if(F.isPlainObject(e))F.extend(!0,R,e);else{if(void 0===t)return R[e];R[e]=t}},debug:function(){!f.silent&&f.debug&&(f.performance?R.performance.log(arguments):(R.debug=Function.prototype.bind.call(console.info,console,f.name+":"),R.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?R.performance.log(arguments):(R.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),R.verbose.apply(console,arguments)))},error:function(){f.silent||(R.error=Function.prototype.bind.call(console.error,console,f.name+":"),R.error.apply(console,arguments))},performance:{log:function(e){var t,s;f.performance&&(s=(t=Date.now())-(C||t),C=t,w.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:d,"Execution Time":s})),clearTimeout(R.performance.timer),R.performance.timer=setTimeout(function(){R.performance.display()},500)},display:function(){let e=f.name+":",s=0;C=!1,clearTimeout(R.performance.timer),F.each(w,function(e,t){s+=t["Execution Time"]}),e+=" "+s+"ms",1<x.length&&(e+=" ("+x.length+")"),0<w.length&&(console.groupCollapsed(e),console.table?console.table(w):F.each(w,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),w=[]}},invoke:function(n,e,t){let i=c,r,a,s;return e=e||k,t=t||d,"string"==typeof n&&void 0!==i&&(n=n.split(/[ .]/),r=n.length-1,F.each(n,function(e,t){var s=e!==r?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(F.isPlainObject(i[s])&&e!==r)i=i[s];else{if(void 0!==i[s])return a=i[s],!1;{if(!F.isPlainObject(i[t])||e===r)return void 0!==i[t]?a=i[t]:R.error(p.method,n),!1;i=i[t]}}})),E(a)?s=a.apply(t,e):void 0!==a&&(s=a),Array.isArray(j)?j.push(s):void 0!==j?j=[j,s]:void 0!==s&&(j=s),a}},A?(void 0===c&&R.initialize(),R.invoke(T)):(void 0!==c&&c.invoke("destroy"),R.initialize())}),void 0!==j?j:this},F.fn.search.settings={name:"Search",namespace:"search",silent:!1,debug:!1,verbose:!1,performance:!0,type:"standard",minCharacters:1,selectFirstResult:!1,apiSettings:!1,source:!1,searchOnFocus:!0,searchFields:["id","title","description"],displayField:"",fullTextSearch:"exact",highlightMatches:!1,ignoreDiacritics:!1,ignoreSearchCase:!0,automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,preserveHTML:!1,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(e){},onResults:function(e,t){},onResultsOpen:function(){},onResultsClose:function(){},className:{animating:"animating",active:"active",category:"category",empty:"empty",focus:"focus",hidden:"hidden",loading:"loading",results:"results",pressed:"down"},error:{source:"Cannot search. No source used, and Fomantic API module was not included",noResultsHeader:"No Results",noResults:"Your search returned no results",noTemplate:"A valid template name was not specified.",oldSearchSyntax:"searchFullText setting has been renamed fullTextSearch for consistency, please adjust your settings.",serverError:"There was an issue querying the server.",maxResults:"Results must be an array to use maxResults setting",method:"The method you called is not defined."},metadata:{cache:"cache",results:"results",result:"result"},regExp:{escape:/[$()*+./?[\\\]^{|}-]/g,beginsWith:"(?:\\s|^)"},fields:{categories:"results",categoryName:"name",categoryResults:"results",description:"description",image:"image",alt:"alt",price:"price",results:"results",title:"title",url:"url",action:"action",actionText:"text",actionURL:"url"},selector:{prompt:".prompt",remove:"> .icon.input > .remove.icon",searchButton:".search.button",results:".results",message:".results > .message",category:".category",result:".result",title:".title, .name"},templates:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const s={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return e=(e=String(e).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>s[e])).replace(/&lt;(\/)*mark&gt;/g,"<$1mark>")},message:function(e,t,s){let n="";return void 0!==e&&void 0!==t&&(n+='<div class="message '+t+'">',s&&(n+='<div class="header">'+s+"</div>"),n=n+' <div class="description">'+e+"</div></div>"),n},category:function(e,s){let n="",i=s.fields,r=s.templates.escape;return void 0!==e[i.categoryResults]&&(F.each(e[i.categoryResults],function(e,t){void 0!==t[i.results]&&0<t.results.length&&(n+='<div class="category">',void 0!==t[i.categoryName]&&(n+='<div class="name">'+r(t[i.categoryName],s)+"</div>"),n+='<div class="results">',F.each(t.results,function(e,t){n+=t[i.url]?'<a class="result" href="'+t[i.url].replace(/"/g,"")+'">':'<a class="result">',void 0!==t[i.image]&&(n+='<div class="image"> <img src="'+t[i.image].replace(/"/g,"")+'"'+(t[i.alt]?' alt="'+t[i.alt].replace(/"/g,"")+'"':"")+"></div>"),n+='<div class="content">',void 0!==t[i.price]&&(n+='<div class="price">'+r(t[i.price],s)+"</div>"),void 0!==t[i.title]&&(n+='<div class="title">'+r(t[i.title],s)+"</div>"),void 0!==t[i.description]&&(n+='<div class="description">'+r(t[i.description],s)+"</div>"),n+="</div></a>"}),n+="</div></div>")}),e[i.action]&&(n+=!1===i.actionURL?'<div class="action">'+r(e[i.action][i.actionText],s)+"</div>":'<a href="'+e[i.action][i.actionURL].replace(/"/g,"")+'" class="action">'+r(e[i.action][i.actionText],s)+"</a>"),n)},standard:function(e,s){let n="",i=s.fields,r=s.templates.escape;return void 0!==e[i.results]&&(F.each(e[i.results],function(e,t){n+=t[i.url]?'<a class="result" href="'+t[i.url].replace(/"/g,"")+'">':'<a class="result">',void 0!==t[i.image]&&(n+='<div class="image"> <img src="'+t[i.image].replace(/"/g,"")+'"'+(t[i.alt]?' alt="'+t[i.alt].replace(/"/g,"")+'"':"")+"></div>"),n+='<div class="content">',void 0!==t[i.price]&&(n+='<div class="price">'+r(t[i.price],s)+"</div>"),void 0!==t[i.title]&&(n+='<div class="title">'+r(t[i.title],s)+"</div>"),void 0!==t[i.description]&&(n+='<div class="description">'+r(t[i.description],s)+"</div>"),n+="</div></a>"}),e[i.action]&&(n+=!1===i.actionURL?'<div class="action">'+r(e[i.action][i.actionText],s)+"</div>":'<a href="'+e[i.action][i.actionURL].replace(/"/g,"")+'" class="action">'+r(e[i.action][i.actionText],s)+"</a>"),n)}}},F.extend(F.easing,{easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)}})}(jQuery,window,document);
11
+ !function(F,q,D){"use strict";function E(e){return"function"==typeof e&&"number"!=typeof e.nodeType}q=void 0!==q&&q.Math===Math?q:globalThis,F.fn.search=function(S){let x=F(this),C=Date.now(),w=[],T=S,k="string"==typeof T,A=[].slice.call(arguments,1),j;return x.each(function(){let f=F.isPlainObject(S)?F.extend(!0,{},F.fn.search.settings,S):F.extend({},F.fn.search.settings),g=f.className,u=f.metadata,n=f.regExp,l=f.fields,h=f.selector,p=f.error;var e=f.namespace;let i="."+e,t=e+"-module",v=F(this),m=v.find(h.prompt),s=v.find(h.searchButton),r=v.find(h.results),a=v.find(h.result),o=void v.find(h.category),d=this,c=v.data(t),y=!1,b=!1,R;R={initialize:function(){R.verbose("Initializing module"),R.get.settings(),R.determine.searchFields(),R.bind.events(),R.set.type(),R.create.results(),R.instantiate()},instantiate:function(){R.verbose("Storing instance of module",R),c=R,v.data(t,R)},destroy:function(){R.verbose("Destroying instance"),v.off(i).removeData(t)},refresh:function(){R.debug("Refreshing selector cache"),m=v.find(h.prompt),s=v.find(h.searchButton),o=v.find(h.category),r=v.find(h.results),a=v.find(h.result)},refreshResults:function(){r=v.find(h.results),a=v.find(h.result)},bind:{events:function(){R.verbose("Binding events to search"),f.automatic&&(v.on(R.get.inputEvent()+i,h.prompt,R.event.input),m.attr("autocomplete",R.is.chrome()?"fomantic-search":"off")),v.on("focus"+i,h.prompt,R.event.focus).on("blur"+i,h.prompt,R.event.blur).on("keydown"+i,h.prompt,R.handleKeyboard).on("click"+i,h.searchButton,R.query).on("mousedown"+i,h.results,R.event.result.mousedown).on("mouseup"+i,h.results,R.event.result.mouseup).on("click"+i,h.result,R.event.result.click).on("click"+i,h.remove,R.event.remove.click)}},determine:{searchFields:function(){S&&void 0!==S.searchFields&&(f.searchFields=Array.isArray(S.searchFields)?S.searchFields:[S.searchFields])}},event:{input:function(){f.searchDelay?(clearTimeout(R.timer),R.timer=setTimeout(function(){R.is.focused()&&R.query()},f.searchDelay)):R.query()},focus:function(){R.set.focus(),f.searchOnFocus&&R.has.minimumCharacters()&&R.query(function(){R.can.show()&&R.showResults()})},blur:function(e){var t=D.activeElement===this;function s(){R.cancel.query(),R.remove.focus(),R.timer=setTimeout(function(){R.hideResults()},f.hideDelay)}t||(b=!1,R.resultsClicked?(R.debug("Determining if user action caused search to close"),v.one("click.close"+i,h.results,function(e){R.is.inMessage(e)||y?m.trigger("focus"):(y=!1,R.is.animating()||R.is.hidden()||s())})):(R.debug("Input blurred without user action, closing results"),s()))},remove:{click:function(){R.clear.value(),m.trigger("focus")}},result:{mousedown:function(){R.resultsClicked=!0},mouseup:function(){R.resultsClicked=!1},click:function(e){R.debug("Search result selected");let t=F(this),s=t.find(h.title).eq(0),n=t.is("a[href]")?t:t.find("a[href]").eq(0);var i=n.attr("href")||!1,r=n.attr("target")||!1,a=0<s.length&&s.text(),o=R.get.results(),c=t.data(u.result)||R.get.result(a,o),l=R.get.value();if(E(f.onSelect)&&!1===f.onSelect.call(d,c,o))return R.debug("Custom onSelect callback cancelled default select action"),void(y=!0);R.hideResults(),a&&R.get.value()===l&&R.set.value(a),i&&(e.preventDefault(),R.verbose("Opening search link found in result",n),"_blank"===r||e.ctrlKey?q.open(i):q.location.href=i)}}},ensureVisible:function(e){var t,s,n;0!==e.length&&(e=(t=e.position().top)+e.outerHeight(!0),s=r.scrollTop(),n=r.height(),t<0?r.scrollTop(s+t):n<e&&r.scrollTop(s+(e-n)))},handleKeyboard:function(e){let t=v.find(h.result),s=v.find(h.category);var n=t.filter("."+g.active),i=t.index(n),r=t.length,n=0<n.length,a=e.which;let o=13,c=27,l=38,u=40,d;if(a===c&&(R.is.visible()?R.hideResults():(R.verbose("Escape key pressed, blurring search field"),m.trigger("blur")),e.stopPropagation(),b=!0),R.is.visible())if(a===o){if(R.verbose("Enter key pressed, selecting active result"),0<t.filter("."+g.active).length)return R.event.result.click.call(t.filter("."+g.active),e),e.preventDefault(),!1}else a===l&&n?(R.verbose("Up key pressed, changing active result"),d=i-1<0?i:i-1,s.removeClass(g.active),t.removeClass(g.active).eq(d).addClass(g.active).closest(s).addClass(g.active),R.ensureVisible(t.eq(d)),e.preventDefault()):a===u&&(R.verbose("Down key pressed, changing active result"),d=r<=i+1?i:i+1,s.removeClass(g.active),t.removeClass(g.active).eq(d).addClass(g.active).closest(s).addClass(g.active),R.ensureVisible(t.eq(d)),e.preventDefault());else a===o&&(R.verbose("Enter key pressed, executing query"),R.query(),R.set.buttonPressed(),m.one("keyup",R.remove.buttonFocus))},setup:{api:function(n,i){var e={debug:f.debug,on:!1,cache:f.cache,action:"search",urlData:{query:n}},t={onSuccess:function(e,t,s){R.parse.response.call(d,e,n),i(),f.apiSettings&&"function"==typeof f.apiSettings.onSuccess&&f.apiSettings.onSuccess.call(this,e,t,s)},onFailure:function(e,t,s){R.displayMessage(p.serverError),i(),f.apiSettings&&"function"==typeof f.apiSettings.onFailure&&f.apiSettings.onFailure.call(this,e,t,s)},onAbort:function(e,t,s){f.apiSettings&&"function"==typeof f.apiSettings.onAbort&&f.apiSettings.onAbort.call(this,e,t,s)},onError:function(e,t,s){R.error(),f.apiSettings&&"function"==typeof f.apiSettings.onError&&f.apiSettings.onError.call(this,e,t,s)}};F.extend(!0,e,f.apiSettings,t),R.verbose("Setting up API request",e),v.api(e)}},can:{useAPI:function(){return void 0!==F.fn.api},show:function(){return R.is.focused()&&!R.is.visible()&&!R.is.empty()},transition:function(){return f.transition&&void 0!==F.fn.transition}},is:{animating:function(){return r.hasClass(g.animating)},chrome:function(){return!!q.chrome&&!q.StyleMedia},hidden:function(){return r.hasClass(g.hidden)},inMessage:function(t){if(t.target){let e=F(t.target);return F.contains(D.documentElement,t.target)&&0<e.closest(h.message).length}},empty:function(){return""===r.html()},visible:function(){return 0<r.filter(":visible").length},focused:function(){return 0<m.filter(":focus").length}},get:{settings:function(){F.isPlainObject(S)&&S.searchFullText&&(f.fullTextSearch=S.searchFullText,R.error(f.error.oldSearchSyntax,d))},inputEvent:function(){var e=m[0];return void 0!==e&&void 0!==e.oninput?"input":void 0!==e&&void 0!==e.onpropertychange?"propertychange":"keyup"},value:function(){return m.val()},results:function(){return v.data(u.results)},result:function(s,e){let n=!1;return s=void 0!==s?s:R.get.value(),e=void 0!==e?e:R.get.results(),"category"===f.type?(R.debug("Finding result that matches",s),F.each(e,function(e,t){if(Array.isArray(t.results)&&(n=R.search.object(s,t.results)[0]))return!1})):(R.debug("Finding result in results object",s),n=R.search.object(s,e)[0]),n||!1}},select:{firstResult:function(){R.verbose("Selecting first result"),a.first().addClass(g.active)}},set:{focus:function(){v.addClass(g.focus)},loading:function(){v.addClass(g.loading)},value:function(e){R.verbose("Setting search input value",e),m.val(e)},type:function(e){e=e||f.type,g[e]&&v.addClass(g[e])},buttonPressed:function(){s.addClass(g.pressed)}},remove:{loading:function(){v.removeClass(g.loading)},focus:function(){v.removeClass(g.focus)},buttonPressed:function(){s.removeClass(g.pressed)},diacritics:function(e){return f.ignoreDiacritics?e.normalize("NFD").replace(/[\u0300-\u036F]/g,""):e}},query:function(e){e=E(e)?e:function(){};var t=R.get.value(),s=R.read.cache(t);e=e||function(){},R.has.minimumCharacters()?(s?(R.debug("Reading result from cache",t),R.save.results(s.results),f.onResults.call(d,s.results,!0),R.addResults(s.html),R.inject.id(s.results),e()):(R.debug("Querying for",t),F.isPlainObject(f.source)||Array.isArray(f.source)?(R.search.local(t),e()):R.can.useAPI()?R.search.remote(t,e):(R.error(p.source),e())),f.onSearchQuery.call(d,t)):R.hideResults()},search:{local:function(e){let t=R.search.object(e,f.source);var s;R.set.loading(),R.save.results(t),R.debug("Returned full local search results",t),0<f.maxResults&&(R.debug("Using specified max results",t),t=t.slice(0,f.maxResults)),"category"===f.type&&(t=R.create.categoryResults(t)),s=R.generateResults({results:t}),R.remove.loading(),R.addResults(s),R.inject.id(t),R.write.cache(e,{html:s,results:t})},remote:function(e,t){t=E(t)?t:function(){},v.api("is loading")&&v.api("abort"),R.setup.api(e,t),v.api("query")},object:function(r,e,t){r=R.remove.diacritics(String(r));let a=[],o=[],c=[];var s=r.replace(n.escape,"\\$&");function l(e,t){var s=-1===F.inArray(t,a),n=-1===F.inArray(t,c),i=-1===F.inArray(t,o);s&&n&&i&&e.push(t)}let u=new RegExp(n.beginsWith+s,f.ignoreSearchCase?"i":"");if(e=e||f.source,t=void 0!==t?t:f.searchFields,Array.isArray(t)||(t=[t]),void 0===e||!1===e)return R.error(p.source),[];let d=t.length-1;return F.each(e,function(e,n){let i=[];F.each(t,function(t,s){if("string"==typeof n[s]||"number"==typeof n[s]){let e;if(e="string"==typeof n[s]?R.remove.diacritics(n[s]):n[s].toString(),e=F("<div/>",{html:e}).text().trim(),"all"===f.fullTextSearch){if(i.push(e),t<d)return!0;e=i.join(" ")}"all"!==f.fullTextSearch&&-1!==e.search(u)?l(a,n):"exact"===f.fullTextSearch&&R.exactSearch(r,e)||"some"===f.fullTextSearch&&R.wordSearch(r,e)||"all"===f.fullTextSearch&&R.wordSearch(r,e,!0)?l(o,n):!0===f.fullTextSearch&&R.fuzzySearch(r,e)&&l(c,n)}})}),F.merge(o,c),F.merge(a,o),a}},exactSearch:function(e,t){return f.ignoreSearchCase&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<t.indexOf(e)},wordSearch:function(e,t,s){var n=e.split(/\s+/);let i;var r=n.length;let a=!1;for(i=0;i<r&&!(!(a=R.exactSearch(n[i],t))&&s||a&&!s);i++);return a},fuzzySearch:function(n,i){var r=i.length,e=n.length;if("string"!=typeof n)return!1;if(f.ignoreSearchCase&&(n=n.toLowerCase(),i=i.toLowerCase()),r<e)return!1;if(e===r)return n===i;for(let t=0,s=0;t<e;t++){let e=!1;for(var a=n.charCodeAt(t);s<r;)if(i.charCodeAt(s++)===a){e=!0;break}if(!e)return!1}return!0},parse:{response:function(t,e){if(Array.isArray(t)){let e={};e[l.results]=t,t=e}var s=R.generateResults(t);R.verbose("Parsing server response",t),void 0!==t&&void 0!==e&&void 0!==t[l.results]&&(R.addResults(s),R.inject.id(t[l.results]),R.write.cache(e,{html:s,results:t[l.results]}),R.save.results(t[l.results]))}},cancel:{query:function(){R.can.useAPI()&&v.api("abort")}},has:{minimumCharacters:function(){return R.get.value().length>=f.minCharacters},results:function(){return 0!==r.length&&""!==r.html()}},clear:{cache:function(e){let t=v.data(u.cache);e?t&&t[e]&&(R.debug("Removing value from cache",e),delete t[e],v.data(u.cache,t)):(R.debug("Clearing cache",e),v.removeData(u.cache))},value:function(){R.set.value("")}},read:{cache:function(e){var t=v.data(u.cache);return!!f.cache&&(R.verbose("Checking cache for generated html for query",e),"object"==typeof t&&void 0!==t[e]&&t[e])}},create:{categoryResults:function(e){let s={};return F.each(e,function(e,t){t.category&&(void 0===s[t.category]?(R.verbose("Creating new category of results",t.category),s[t.category]={name:t.category,results:[t]}):s[t.category].results.push(t))}),s},id:function(e,t){e+=1;let s;return void 0!==t?(t=String.fromCharCode(97+t),s=t+e,R.verbose("Creating category result id",s)):(s=e,R.verbose("Creating result id",s)),s},results:function(){0===r.length&&(r=F("<div />").addClass(g.results).appendTo(v))}},inject:{result:function(e,t,s){R.verbose("Injecting result into results");let n=(void 0!==s?r.children().eq(s).children(h.results).first():r).children(h.result).eq(t);R.verbose("Injecting results metadata",n),n.data(u.result,e)},id:function(e){R.debug("Injecting unique ids into results");let s=0,n=0;return"category"===f.type?F.each(e,function(e,t){0<t.results.length&&(n=0,F.each(t.results,function(e,t){void 0===t.id&&(t.id=R.create.id(n,s)),R.inject.result(t,n,s),n++}),s++)}):F.each(e,function(e,t){void 0===t.id&&(t.id=R.create.id(n)),R.inject.result(t,n),n++}),e}},save:{results:function(e){R.verbose("Saving current search results to metadata",e),v.data(u.results,e)}},write:{cache:function(e,t){let s=void 0!==v.data(u.cache)?v.data(u.cache):{};f.cache&&(R.verbose("Writing generated html to cache",e,t),s[e]=t,v.data(u.cache,s))}},addResults:function(e){if(E(f.onResultsAdd)&&!1===f.onResultsAdd.call(r,e))return R.debug("onResultsAdd callback cancelled default action"),!1;e?(r.html(e),R.refreshResults(),f.selectFirstResult&&R.select.firstResult(),R.showResults()):R.hideResults(function(){r.empty()})},showResults:function(e){e=E(e)?e:function(){},b||!R.is.visible()&&R.has.results()&&(R.can.transition()?(R.debug("Showing results with css animations"),r.transition({animation:f.transition+" in",debug:f.debug,verbose:f.verbose,silent:f.silent,duration:f.duration,onShow:function(){var e=v.find(h.result).eq(0);R.ensureVisible(e)},onComplete:function(){e()},queue:!0})):(R.debug("Showing results with javascript"),r.stop().fadeIn(f.duration,f.easing)),f.onResultsOpen.call(r))},hideResults:function(e){e=E(e)?e:function(){},R.is.visible()&&(R.can.transition()?(R.debug("Hiding results with css animations"),r.transition({animation:f.transition+" out",debug:f.debug,verbose:f.verbose,silent:f.silent,duration:f.duration,onComplete:function(){e()},queue:!0})):(R.debug("Hiding results with javascript"),r.stop().fadeOut(f.duration,f.easing)),f.onResultsClose.call(r))},generateResults:function(a){R.debug("Generating html from response",a);let e=f.templates[f.type];var s=F.isPlainObject(a[l.results])&&!F.isEmptyObject(a[l.results]),n=Array.isArray(a[l.results])&&0<a[l.results].length;let t="";if(s||n){if(0<f.maxResults&&(s?"standard"===f.type&&R.error(p.maxResults):a[l.results]=a[l.results].slice(0,f.maxResults)),f.highlightMatches){n=a[l.results],s=f.ignoreSearchCase?"i":"";let t=R.get.value().split("");var o=f.ignoreDiacritics?"[̀-ͯ]?":"",c="(?![^<]*>)";let i=new RegExp(c+"("+t.join(o+")(.*?)"+c+"(")+o+")",s),r=function(){let e=[].slice.call(arguments,1,2*t.length).map(function(e,t){return 1&t?e:"<mark>"+e+"</mark>"});return e.join("")};F.each(n,function(s,n){F.each(f.searchFields,function(e,t){if("string"==typeof n[t]||"number"==typeof n[t]){let e="string"==typeof n[t]?n[t]:n[t].toString();e=(e=f.ignoreDiacritics?e.normalize("NFD"):e).replace(/<\/?mark>/g,""),a[l.results][s][t]=e.replace(i,r)}})})}E(e)?t=e(a,f):R.error(p.noTemplate,!1)}else f.showNoResults&&(t=R.displayMessage(p.noResults,"empty",p.noResultsHeader));return f.onResults.call(d,a),t},displayMessage:function(e,t,s){return t=t||"standard",R.debug("Displaying message",e,t,s),R.addResults(f.templates.message(e,t,s)),f.templates.message(e,t,s)},setting:function(e,t){if(F.isPlainObject(e))F.extend(!0,f,e);else{if(void 0===t)return f[e];f[e]=t}},internal:function(e,t){if(F.isPlainObject(e))F.extend(!0,R,e);else{if(void 0===t)return R[e];R[e]=t}},debug:function(){!f.silent&&f.debug&&(f.performance?R.performance.log(arguments):(R.debug=Function.prototype.bind.call(console.info,console,f.name+":"),R.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?R.performance.log(arguments):(R.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),R.verbose.apply(console,arguments)))},error:function(){f.silent||(R.error=Function.prototype.bind.call(console.error,console,f.name+":"),R.error.apply(console,arguments))},performance:{log:function(e){var t,s;f.performance&&(s=(t=Date.now())-(C||t),C=t,w.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:d,"Execution Time":s})),clearTimeout(R.performance.timer),R.performance.timer=setTimeout(function(){R.performance.display()},500)},display:function(){let e=f.name+":",s=0;C=!1,clearTimeout(R.performance.timer),F.each(w,function(e,t){s+=t["Execution Time"]}),e+=" "+s+"ms",1<x.length&&(e+=" ("+x.length+")"),0<w.length&&(console.groupCollapsed(e),console.table?console.table(w):F.each(w,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),w=[]}},invoke:function(n,e,t){let i=c,r,a,s;return e=e||A,t=t||d,"string"==typeof n&&void 0!==i&&(n=n.split(/[ .]/),r=n.length-1,F.each(n,function(e,t){var s=e!==r?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(F.isPlainObject(i[s])&&e!==r)i=i[s];else{if(void 0!==i[s])return a=i[s],!1;{if(!F.isPlainObject(i[t])||e===r)return void 0!==i[t]?a=i[t]:R.error(p.method,n),!1;i=i[t]}}})),E(a)?s=a.apply(t,e):void 0!==a&&(s=a),Array.isArray(j)?j.push(s):void 0!==j?j=[j,s]:void 0!==s&&(j=s),a}},k?(void 0===c&&R.initialize(),R.invoke(T)):(void 0!==c&&c.invoke("destroy"),R.initialize())}),void 0!==j?j:this},F.fn.search.settings={name:"Search",namespace:"search",silent:!1,debug:!1,verbose:!1,performance:!0,type:"standard",minCharacters:1,selectFirstResult:!1,apiSettings:!1,source:!1,searchOnFocus:!0,searchFields:["id","title","description"],displayField:"",fullTextSearch:"exact",highlightMatches:!1,ignoreDiacritics:!1,ignoreSearchCase:!0,automatic:!0,hideDelay:0,searchDelay:200,maxResults:7,cache:!0,showNoResults:!0,preserveHTML:!1,transition:"scale",duration:200,easing:"easeOutExpo",onSelect:!1,onResultsAdd:!1,onSearchQuery:function(e){},onResults:function(e,t){},onResultsOpen:function(){},onResultsClose:function(){},className:{animating:"animating",active:"active",category:"category",empty:"empty",focus:"focus",hidden:"hidden",loading:"loading",results:"results",pressed:"down"},error:{source:"Cannot search. No source used, and Fomantic API module was not included",noResultsHeader:"No Results",noResults:"Your search returned no results",noTemplate:"A valid template name was not specified.",oldSearchSyntax:"searchFullText setting has been renamed fullTextSearch for consistency, please adjust your settings.",serverError:"There was an issue querying the server.",maxResults:"Results must be an array to use maxResults setting",method:"The method you called is not defined."},metadata:{cache:"cache",results:"results",result:"result"},regExp:{escape:/[$()*+./?[\\\]^{|}-]/g,beginsWith:"(?:\\s|^)"},fields:{categories:"results",categoryName:"name",categoryResults:"results",description:"description",image:"image",alt:"alt",price:"price",results:"results",title:"title",url:"url",action:"action",actionText:"text",actionURL:"url"},selector:{prompt:".prompt",remove:"> .icon.input > .remove.icon",searchButton:".search.button",results:".results",message:".results > .message",category:".category",result:".result",title:".title, .name"},templates:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const s={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return e=(e=String(e).replace(/["&'<>]/g,e=>s[e])).replace(/&lt;(\/)*mark&gt;/g,"<$1mark>")},message:function(e,t,s){let n="";return void 0!==e&&void 0!==t&&(n+='<div class="message '+t+'">',s&&(n+='<div class="header">'+s+"</div>"),n=n+' <div class="description">'+e+"</div></div>"),n},category:function(e,s){let n="",i=s.fields,r=s.templates.escape;return void 0!==e[i.categoryResults]&&(F.each(e[i.categoryResults],function(e,t){void 0!==t[i.results]&&0<t.results.length&&(n+='<div class="category">',void 0!==t[i.categoryName]&&(n+='<div class="name">'+r(t[i.categoryName],s)+"</div>"),n+='<div class="results">',F.each(t.results,function(e,t){n+=t[i.url]?'<a class="result" href="'+t[i.url].replace(/"/g,"")+'">':'<a class="result">',void 0!==t[i.image]&&(n+='<div class="image"> <img src="'+t[i.image].replace(/"/g,"")+'"'+(t[i.alt]?' alt="'+t[i.alt].replace(/"/g,"")+'"':"")+"></div>"),n+='<div class="content">',void 0!==t[i.price]&&(n+='<div class="price">'+r(t[i.price],s)+"</div>"),void 0!==t[i.title]&&(n+='<div class="title">'+r(t[i.title],s)+"</div>"),void 0!==t[i.description]&&(n+='<div class="description">'+r(t[i.description],s)+"</div>"),n+="</div></a>"}),n+="</div></div>")}),e[i.action]&&(n+=!1===i.actionURL?'<div class="action">'+r(e[i.action][i.actionText],s)+"</div>":'<a href="'+e[i.action][i.actionURL].replace(/"/g,"")+'" class="action">'+r(e[i.action][i.actionText],s)+"</a>"),n)},standard:function(e,s){let n="",i=s.fields,r=s.templates.escape;return void 0!==e[i.results]&&(F.each(e[i.results],function(e,t){n+=t[i.url]?'<a class="result" href="'+t[i.url].replace(/"/g,"")+'">':'<a class="result">',void 0!==t[i.image]&&(n+='<div class="image"> <img src="'+t[i.image].replace(/"/g,"")+'"'+(t[i.alt]?' alt="'+t[i.alt].replace(/"/g,"")+'"':"")+"></div>"),n+='<div class="content">',void 0!==t[i.price]&&(n+='<div class="price">'+r(t[i.price],s)+"</div>"),void 0!==t[i.title]&&(n+='<div class="title">'+r(t[i.title],s)+"</div>"),void 0!==t[i.description]&&(n+='<div class="description">'+r(t[i.description],s)+"</div>"),n+="</div></a>"}),e[i.action]&&(n+=!1===i.actionURL?'<div class="action">'+r(e[i.action][i.actionText],s)+"</div>":'<a href="'+e[i.action][i.actionURL].replace(/"/g,"")+'" class="action">'+r(e[i.action][i.actionText],s)+"</a>"),n)}}},F.extend(F.easing,{easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)}})}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Segment
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Segment
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Segment
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Segment
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Shape
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Shape
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Shape
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Shape
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Shape
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Shape
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Sidebar
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Sidebar
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Sidebar
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Sidebar
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Site
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Site
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Site
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Site
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Slider
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Slider
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Slider
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Slider
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.13+40d7f14
2
+ * # Fomantic UI - 2.10.0-beta.14+ea33639
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - State
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - State
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *