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(W,U,Z){"use strict";function _(e){return"function"==typeof e&&"number"!=typeof e.nodeType}U=void 0!==U&&U.Math===Math?U:globalThis,W.fn.flyout=function(D){let e=W(this),N=W(U),B=W(Z);W("html");let L=W("head"),O=W("body"),z=Date.now(),R=[],q=D,I="string"==typeof q,j=[].slice.call(arguments,1),K=function(e,t){let n;return 0<=[U,Z].indexOf(e)?n=O:0===(n=W(t.document).find(e)).length&&(n=t.frameElement?K(e,t.parent):O),n},V;return e.each(function(){let l=W.isPlainObject(D)?W.extend(!0,{},W.fn.flyout.settings,D):W.extend({},W.fn.flyout.settings),o=l.selector,r=l.className;var e=l.namespace;let c=l.fields,t=l.regExp,a=l.error,i="."+e,n="module-"+e,u=W(this),s=K(l.context,U),d=u.find(o.close),f,h,g=u.children(o.flyout),p=s.children(o.pusher),m,b=u.hasClass("flyout"),v=this,y=b?u.data(n):void 0,k=!1,x=s[0]===O[0],S="",A="",w=!1,C=!1,T,F,H,P=!1,E,M;M={initialize:function(){if(M.debug("Initializing flyout",D),M.create.id(),b||(M.create.flyout(),_(l.onHidden)||(l.onHidden=function(){M.destroy(),u.remove()}),l.autoShow||(l.autoShow=!0)),u.addClass(l.class),""!==l.title&&u.find(o.header).html(M.helpers.escape(l.title,l)).addClass(l.classTitle),""!==l.content&&u.find(o.content).html(M.helpers.escape(l.content,l)).addClass(l.classContent),M.has.configActions()){let s=u.find(o.actions).addClass(l.classActions);0===s.length?s=W("<div/>",{class:r.actions+" "+(l.classActions||"")}).appendTo(u):s.empty(),l.actions.forEach(function(e){var t=e[c.icon]?"<i "+(e[c.text]?'aria-hidden="true"':"")+' class="'+M.helpers.escape(e[c.icon])+' icon"></i>':"",n=M.helpers.escape(e[c.text]||"",l),i=M.helpers.escape(e[c.class]||"");let o=e[c.click]&&_(e[c.click])?e[c.click]:function(){};s.append(W("<button/>",{html:t+n,"aria-label":(e[c.text]||e[c.icon]||"").replace(/<[^>]+(>|$)/g,""),class:r.button+" "+i,on:{click:function(){!1!==o.call(v,u)&&M.hide()}}}))})}l.delaySetup?requestAnimationFrame(M.setup.layout):M.setup.layout(),requestAnimationFrame(function(){M.setup.cache()}),"left"!==M.get.direction()&&"right"!==M.get.direction()||(M.setup.heights(),M.bind.resize()),M.bind.events(),M.observeChanges(),M.instantiate(),l.autoShow&&M.show()},instantiate:function(){M.verbose("Storing instance of module",M),y=M,u.data(n,y)},create:{flyout:function(){var e;M.verbose("Programmatically create flyout",s),u=W("<div/>",{class:r.flyout,role:"dialog","aria-modal":l.dimPage}),l.closeIcon&&(d=W("<i/>",{class:r.close,role:"button",tabindex:0,"aria-label":l.text.close}),u.append(d)),""!==l.title&&(e="_"+M.get.id()+"title",u.attr("aria-labelledby",e),W("<div/>",{class:r.header,id:e}).appendTo(u)),""!==l.content&&(e="_"+M.get.id()+"desc",u.attr("aria-describedby",e),W("<div/>",{class:r.content,id:e}).appendTo(u)),M.has.configActions()&&W("<div/>",{class:r.actions}).appendTo(u),u.prependTo(s),v=u[0]},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),T="."+F,M.verbose("Creating unique id for element",F)}},destroy:function(){H&&H.disconnect(),M.verbose("Destroying previous module for",u),u.off(i).removeData(n),d.off(T),f&&f.off(T),s.off(T),N.off(T),B.off(T)},event:{keyboard:function(e){e.which===l.keys.escape&&(l.closable?(M.debug("Escape key pressed hiding flyout"),M.hide()):M.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){M.setup.heights()},focus:function(){C=!0},click:function(e){C&&Z.activeElement!==e.target&&M.is.visible()&&l.autofocus&&l.dimPage&&0===W(Z.activeElement).closest(o.flyout).length&&requestAnimationFrame(M.set.autofocus),C=!1},clickaway:function(e){var t;l.closable&&(t=0<p.find(e.target).length||p.is(e.target),e=s.is(e.target),t&&(M.verbose("User clicked on dimmed page"),M.hide()),e&&(M.verbose("User clicked on dimmable context (scaled out page)"),M.hide()))},close:function(e){M.hide()},closeKeyUp:function(e){e=e.which;e!==l.keys.enter&&e!==l.keys.space||M.hide()},inputKeyDown:{first:function(e){e.which===l.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==l.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},approve:function(e){k||!1===l.onApprove.call(M.element,W(this))?M.verbose("Approve callback returned false cancelling close"):(k=!0,M.hide(function(){k=!1}))},deny:function(e){k||!1===l.onDeny.call(M.element,W(this))?M.verbose("Deny callback returned false cancelling close"):(k=!0,M.hide(function(){k=!1}))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===W(e.target).closest(o.flyout).length&&e.preventDefault()}},bind:{resize:function(){M.verbose("Adding resize event to window",N),N.on("resize"+T,M.event.resize)},events:function(){M.verbose("Attaching events"),u.on("click"+i,o.close,M.event.close).on("click"+i,o.approve,M.event.approve).on("click"+i,o.deny,M.event.deny),d.on("keyup"+T,M.event.closeKeyUp),N.on("focus"+T,M.event.focus),s.on("click"+T,M.event.click)},clickaway:function(){M.verbose("Adding clickaway events to context",s),s.on("click"+T,M.event.clickaway).on("touchend"+T,M.event.clickaway)},scrollLock:function(){l.scrollLock&&(M.debug("Disabling page scroll"),(w=M.has.scrollbar())&&(M.save.bodyMargin(),M.set.bodyMargin()),s.addClass(r.locked)),M.verbose("Adding events to contain flyout scroll"),B.on("touchmove"+T,M.event.touch),u.on("scroll"+i,M.event.containScroll)}},unbind:{clickaway:function(){M.verbose("Removing clickaway events from context",s),s.off(T)},scrollLock:function(){M.verbose("Removing scroll lock from page"),w&&M.restore.bodyMargin(),s.removeClass(r.locked),B.off(T),u.off("scroll"+i)}},add:{inlineCSS:function(){var e=M.cache.width||u.outerWidth(),t=M.cache.height||u.outerHeight(),n=M.is.rtl(),i=M.get.direction();let o={left:e,right:-e,top:t,bottom:-t},s;n&&(M.verbose("RTL detected, flipping widths"),o.left=-e,o.right=e),s="<style>","left"===i||"right"===i?(M.debug("Adding CSS rules for animation distance",e),s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d("+o[i]+"px, 0, 0); }"):"top"!==i&&"bottom"!==i||(s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d(0, "+o[i]+"px, 0); }"),s+="</style>",m=W(s).appendTo(L),M.debug("Adding sizing css to head",m)},keyboardShortcuts:function(){M.verbose("Adding keyboard shortcuts"),B.on("keydown"+i,M.event.keyboard)}},observeChanges:function(){(H=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!0;e.every(function(n){if("attributes"===n.type)P&&("disabled"===n.attributeName||0<W(n.target).find(":input").addBack(":input").filter(":visible").length)&&(i=!0);else{let e=W(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=W(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(i=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(s=!1))}return!i}),i&&M.refreshInputs(s)})).observe(v,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),M.debug("Setting up mutation observer",H)},refresh:function(){M.verbose("Refreshing selector cache"),s=K(l.context,U),M.refreshFlyouts(),p=s.children(o.pusher),M.clear.cache()},refreshFlyouts:function(){M.verbose("Refreshing other flyouts"),g=s.children(o.flyout)},refreshInputs:function(e){f&&f.off("keydown"+T),l.dimPage&&(0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===W(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+T,M.event.inputKeyDown.first),f.last().on("keydown"+T,M.event.inputKeyDown.last),!e&&l.autofocus&&0===f.filter(":focus").length&&M.set.autofocus())},setup:{cache:function(){M.cache={width:u.outerWidth(),height:u.outerHeight()}},layout:function(){0===s.children(o.pusher).length&&(M.debug("Adding wrapper element for flyout"),M.error(a.pusher),p=W('<div class="pusher" />'),s.children().not(o.omitted).not(g).wrapAll(p),M.refresh()),0!==u.nextAll(o.pusher).length&&u.nextAll(o.pusher)[0]===p[0]||(M.debug("Moved flyout to correct parent element"),M.error(a.movedFlyout,v),u.detach().prependTo(s),M.refresh()),M.is.mobile()&&u.addClass(r.fullscreen),M.clear.cache(),M.set.pushable(),M.set.direction()},heights:function(){M.debug("Setting up heights",u);let e=u.children(o.header),t=u.children(o.content),n=u.children(o.actions);var i=(s.height()||0)-(e.outerHeight()||0)-(n.outerHeight()||0);0<i&&t.css("min-height",String(i)+"px")}},attachEvents:function(e,t){let n=W(e);t=_(M[t])?M[t]:M.toggle,0<n.length?(M.debug("Attaching flyout events to element",e,t),n.on("click"+i,t)):M.error(a.notFound,e)},show:function(e){e=_(e)?e:function(){},M.is.hidden()?!1===l.onShow.call(v)?M.verbose("Show callback returned false cancelling show"):(M.refresh(),M.othersActive()&&(M.debug("Other flyouts currently visible"),l.exclusive?M.hideOthers():k=!1),M.set.dimmerStyles(),M.set.observeAttributes(!1),M.pushPage(function(){e.call(v),l.onVisible.call(v),l.keyboardShortcuts&&M.add.keyboardShortcuts(),M.save.focus(),M.refreshInputs(),requestAnimationFrame(M.set.observeAttributes)}),l.onChange.call(v)):M.debug("Flyout is already visible")},hide:function(e){if(e=_(e)?e:function(){},!1===l.onHide.call(v,W(this)))return M.verbose("Hide callback returned false cancelling hide"),k=!1;(M.is.visible()||M.is.animating())&&(M.debug("Hiding flyout",e),M.refreshFlyouts(),M.set.observeAttributes(!1),M.pullPage(function(){e.call(v),_(l.onHidden)&&l.onHidden.call(v),M.restore.focus()}),l.onChange.call(v))},othersAnimating:function(){return 0<g.not(u).filter("."+r.animating).length},othersVisible:function(){return 0<g.not(u).filter("."+r.visible).length},othersActive:function(){return M.othersVisible()||M.othersAnimating()},hideOthers:function(e){let t=g.not(u).filter("."+r.visible),n=t.length,i=0;e=e||function(){},t.flyout("hide",function(){++i===n&&e()})},toggle:function(){M.verbose("Determining toggled direction"),M.is.hidden()?M.show():M.hide()},pushPage:function(t){var e,n;let i;t=_(t)?t:function(){},M.set.overlay(),l.returnScroll&&(E=(x?N:s).scrollTop()),M.bind.scrollLock(),e=function(){M.bind.clickaway(),M.add.inlineCSS(),M.set.animating(),M.set.visible()},n=function(){M.set.dimmed()},i=function(e){e.target===u[0]&&(u.off("transitionend"+T,i),M.remove.animating(),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,i),requestAnimationFrame(e),l.dimPage&&!M.othersVisible()&&requestAnimationFrame(n)},pullPage:function(t){var e;let n;t=_(t)?t:function(){},M.verbose("Removing context push state",M.get.direction()),M.unbind.clickaway(),M.othersActive()||(M.unbind.scrollLock(),l.keyboardShortcuts&&M.remove.keyboardShortcuts()),e=function(){M.set.overlay(),M.set.animating(),l.dimPage&&!M.othersVisible()&&M.set.closing(),M.remove.visible()},n=function(e){e.target===u[0]&&(u.off("transitionend"+T,n),M.remove.animating(),M.remove.closing(),M.remove.overlay(),M.remove.inlineCSS(),l.returnScroll&&M.scrollBack(),l.dimPage&&!M.othersVisible()&&p.removeClass(r.dimmed),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,n),requestAnimationFrame(e)},scrollToTop:function(){M.verbose("Scrolling to top of page to avoid animation issues"),u.scrollTop(0),(x?N:s)[0].scrollTo(0,0)},scrollBack:function(){M.verbose("Scrolling back to original page position"),(x?N:s)[0].scrollTo(0,E)},clear:{cache:function(){M.verbose("Clearing cached dimensions"),M.cache={}}},set:{observeAttributes:function(e){P=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},dimmerStyles:function(){l.blurring?p.addClass(r.blurring):p.removeClass(r.blurring)},bodyMargin:function(){let n=M.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,A+"px"),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+A+"px)")})},pushed:function(){s.addClass(r.pushed)},pushable:function(){s.addClass(r.pushable)},dimmed:function(){p.addClass(r.dimmed)},active:function(){u.addClass(r.active)},animating:function(){u.addClass(r.animating)},closing:function(){p.addClass(r.closing)},direction:function(e){e=e||M.get.direction(),u.addClass(r[e])},visible:function(){u.addClass(r.visible)},overlay:function(){u.addClass(r.overlay)}},remove:{inlineCSS:function(){M.debug("Removing inline css styles",m),m&&0<m.length&&m.remove()},keyboardShortcuts:function(){M.verbose("Removing keyboard shortcuts"),B.off("keydown"+i)},pushed:function(){s.removeClass(r.pushed)},pushable:function(){s.removeClass(r.pushable)},active:function(){u.removeClass(r.active)},animating:function(){u.removeClass(r.animating)},closing:function(){p.removeClass(r.closing)},direction:function(e){e=e||M.get.direction(),u.removeClass(r[e])},visible:function(){u.removeClass(r.visible)},overlay:function(){u.removeClass(r.overlay)}},get:{direction:function(){return u.hasClass(r.top)?r.top:u.hasClass(r.right)?r.right:u.hasClass(r.bottom)?r.bottom:r.left},id:function(){return F},element:function(){return u},settings:function(){return l}},can:{leftBodyScrollbar:function(){return void 0===M.cache.leftBodyScrollbar&&(M.cache.leftBodyScrollbar=M.is.rtl()&&(M.is.iframe&&!M.is.firefox()||M.is.safari())),M.cache.leftBodyScrollbar}},save:{focus:function(){let e=W(Z.activeElement);0<e.closest(u).length||(h=W(Z.activeElement).trigger("blur"))},bodyMargin:function(){S=s.css((x?"margin-":"padding-")+(M.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=x?U.innerWidth-Z.documentElement.clientWidth:s[0].offsetWidth-s[0].clientWidth;A=e+t}},is:{safari:function(){return void 0===M.cache.isSafari&&(M.cache.isSafari=/constructor/i.test(U.HTMLElement)||!!U.ApplePaySession),M.cache.isSafari},firefox:function(){return void 0===M.cache.isFirefox&&(M.cache.isFirefox=!!U.InstallTrigger),M.cache.isFirefox},iframe:function(){return!(self===top)},mobile:function(){let e=navigator.userAgent;return e.match(t.mobile)?(M.verbose("Browser was found to be mobile",e),!0):(M.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!M.is.visible()},visible:function(){return u.hasClass(r.visible)},animating:function(){return s.hasClass(r.animating)},rtl:function(){return void 0===M.cache.isRTL&&(M.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===O.attr("dir")||"rtl"===O.css("direction")||"rtl"===s.attr("dir")||"rtl"===s.css("direction")),M.cache.isRTL}},has:{configActions:function(){return Array.isArray(l.actions)&&0<l.actions.length},scrollbar:function(){return x||"hidden"!==s.css("overflow-y")}},restore:{focus:function(){h&&0<h.length&&l.restoreFocus&&h.trigger("focus")},bodyMargin:function(){let n=M.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,S),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])}},setting:function(e,t){if(M.debug("Changing setting",e,t),W.isPlainObject(e))W.extend(!0,l,e);else{if(void 0===t)return l[e];W.isPlainObject(l[e])?W.extend(!0,l[e],t):l[e]=t}},internal:function(e,t){if(W.isPlainObject(e))W.extend(!0,M,e);else{if(void 0===t)return M[e];M[e]=t}},debug:function(){!l.silent&&l.debug&&(l.performance?M.performance.log(arguments):(M.debug=Function.prototype.bind.call(console.info,console,l.name+":"),M.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?M.performance.log(arguments):(M.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),M.verbose.apply(console,arguments)))},error:function(){l.silent||(M.error=Function.prototype.bind.call(console.error,console,l.name+":"),M.error.apply(console,arguments))},performance:{log:function(e){var t,n;l.performance&&(n=(t=Date.now())-(z||t),z=t,R.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(M.performance.timer),M.performance.timer=setTimeout(function(){M.performance.display()},500)},display:function(){var e=l.name+":";let n=0;z=!1,clearTimeout(M.performance.timer),W.each(R,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<R.length&&(console.groupCollapsed(e),console.table?console.table(R):W.each(R,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),R=[]}},invoke:function(i,e,t){let o=y,s,l,n;return e=e||j,t=v||t,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,W.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(W.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return l=o[n],!1;{if(!W.isPlainObject(o[t])||e===s)return void 0!==o[t]?l=o[t]:M.error(a.method,i),!1;o=o[t]}}})),_(l)?n=l.apply(t,e):void 0!==l&&(n=l),Array.isArray(V)?V.push(n):void 0!==V?V=[V,n]:void 0!==n&&(V=n),l}},I?(void 0===y&&(_(l.templates[q])&&(l.autoShow=!0,l.className.flyout=l.className.template,l=W.extend(!0,{},l,l.templates[q].apply(M,j)),r=l.className,l.namespace,c=l.fields,a=l.error),M.initialize()),_(l.templates[q])||M.invoke(q)):(void 0!==y&&y.invoke("destroy"),M.initialize(),V=u)}),void 0!==V?V:this},W.flyout=W.fn.flyout,W.fn.flyout.settings={name:"Flyout",namespace:"flyout",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",exclusive:!1,closable:!0,autofocus:!0,restoreFocus:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,autoShow:!1,keyboardShortcuts:!0,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onChange:function(){},onShow:function(){},onHide:function(){return!0},onHidden:!1,onVisible:function(){},onApprove:function(){},onDeny:function(){},keys:{space:32,enter:13,escape:27,tab:9},className:{flyout:"ui flyout",close:"close icon",header:"ui header",content:"content",actions:"actions",active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible",overlay:"overlay",fullscreen:"fullscreen",template:"ui flyout",button:"ui button",ok:"positive",cancel:"negative",prompt:"ui fluid input"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.right.flyout, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",flyout:".ui.flyout",header:".ui.header",content:".content",actions:".actions",close:".close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedFlyout:"Had to move flyout. For optimal performance make sure flyout and pusher are direct children of your body tag",notFound:"There were no elements that matched the specified selector"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},W.fn.flyout.settings.templates={getArguments:function(e){let t=[].slice.call(e);return W.isPlainObject(t[0])?W.extend({handler:function(){},content:"",title:""},t[0]):(_(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===W(W.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(W(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document);
11
+ !function(W,U,_){"use strict";function Q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}U=void 0!==U&&U.Math===Math?U:globalThis,W.fn.flyout=function(D){let e=W(this),N=W(U),B=W(_);W("html");let L=W("head"),O=W("body"),z=Date.now(),R=[],q=D,I="string"==typeof q,j=[].slice.call(arguments,1),K=function(e,t){let n;return 0<=[U,_].indexOf(e)?n=O:0===(n=W(t.document).find(e)).length&&(n=t.frameElement?K(e,t.parent):O),n},V;return e.each(function(){let l=W.isPlainObject(D)?W.extend(!0,{},W.fn.flyout.settings,D):W.extend({},W.fn.flyout.settings),o=l.selector,r=l.className;var e=l.namespace;let c=l.fields,t=l.regExp,a=l.error,i="."+e,n="module-"+e,u=W(this),s=K(l.context,U),d=u.find(o.close),f,h,g=u.children(o.flyout),p=s.children(o.pusher),m,b=u.hasClass("flyout"),v=this,y=b?u.data(n):void 0,k=!1,x=s[0]===O[0],S="",A="",w=!1,C=!1,T,F,H,P=!1,E,M;M={initialize:function(){if(M.debug("Initializing flyout",D),M.create.id(),b||(M.create.flyout(),Q(l.onHidden)||(l.onHidden=function(){M.destroy(),u.remove()}),l.autoShow||(l.autoShow=!0)),u.addClass(l.class),""!==l.title&&u.find(o.header).html(M.helpers.escape(l.title,l)).addClass(l.classTitle),""!==l.content&&u.find(o.content).html(M.helpers.escape(l.content,l)).addClass(l.classContent),M.has.configActions()){let s=u.find(o.actions).addClass(l.classActions);0===s.length?s=W("<div/>",{class:r.actions+" "+(l.classActions||"")}).appendTo(u):s.empty(),l.actions.forEach(function(e){var t=e[c.icon]?"<i "+(e[c.text]?'aria-hidden="true"':"")+' class="'+M.helpers.escape(e[c.icon])+' icon"></i>':"",n=M.helpers.escape(e[c.text]||"",l),i=M.helpers.escape(e[c.class]||"");let o=e[c.click]&&Q(e[c.click])?e[c.click]:function(){};s.append(W("<button/>",{html:t+n,"aria-label":(e[c.text]||e[c.icon]||"").replace(/<[^>]+(>|$)/g,""),class:r.button+" "+i,on:{click:function(){!1!==o.call(v,u)&&M.hide()}}}))})}l.delaySetup?requestAnimationFrame(M.setup.layout):M.setup.layout(),requestAnimationFrame(function(){M.setup.cache()}),"left"!==M.get.direction()&&"right"!==M.get.direction()||(M.setup.heights(),M.bind.resize()),M.bind.events(),M.observeChanges(),M.instantiate(),l.autoShow&&M.show()},instantiate:function(){M.verbose("Storing instance of module",M),y=M,u.data(n,y)},create:{flyout:function(){var e;M.verbose("Programmatically create flyout",s),u=W("<div/>",{class:r.flyout,role:"dialog","aria-modal":l.dimPage}),l.closeIcon&&(d=W("<i/>",{class:r.close,role:"button",tabindex:0,"aria-label":l.text.close}),u.append(d)),""!==l.title&&(e="_"+M.get.id()+"title",u.attr("aria-labelledby",e),W("<div/>",{class:r.header,id:e}).appendTo(u)),""!==l.content&&(e="_"+M.get.id()+"desc",u.attr("aria-describedby",e),W("<div/>",{class:r.content,id:e}).appendTo(u)),M.has.configActions()&&W("<div/>",{class:r.actions}).appendTo(u),u.prependTo(s),v=u[0]},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),T="."+F,M.verbose("Creating unique id for element",F)}},destroy:function(){H&&H.disconnect(),M.verbose("Destroying previous module for",u),u.off(i).removeData(n),d.off(T),f&&f.off(T),s.off(T),N.off(T),B.off(T)},event:{keyboard:function(e){e.which===l.keys.escape&&(l.closable?(M.debug("Escape key pressed hiding flyout"),M.hide()):M.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){M.setup.heights()},focus:function(){C=!0},click:function(e){C&&_.activeElement!==e.target&&M.is.visible()&&l.autofocus&&l.dimPage&&0===W(_.activeElement).closest(o.flyout).length&&requestAnimationFrame(M.set.autofocus),C=!1},clickaway:function(e){var t;l.closable&&(t=0<p.find(e.target).length||p.is(e.target),e=s.is(e.target),t&&(M.verbose("User clicked on dimmed page"),M.hide()),e&&(M.verbose("User clicked on dimmable context (scaled out page)"),M.hide()))},close:function(e){M.hide()},closeKeyUp:function(e){e=e.which;e!==l.keys.enter&&e!==l.keys.space||M.hide()},inputKeyDown:{first:function(e){e.which===l.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==l.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},approve:function(e){k||!1===l.onApprove.call(M.element,W(this))?M.verbose("Approve callback returned false cancelling close"):(k=!0,M.hide(function(){k=!1}))},deny:function(e){k||!1===l.onDeny.call(M.element,W(this))?M.verbose("Deny callback returned false cancelling close"):(k=!0,M.hide(function(){k=!1}))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===W(e.target).closest(o.flyout).length&&e.preventDefault()}},bind:{resize:function(){M.verbose("Adding resize event to window",N),N.on("resize"+T,M.event.resize)},events:function(){M.verbose("Attaching events"),u.on("click"+i,o.close,M.event.close).on("click"+i,o.approve,M.event.approve).on("click"+i,o.deny,M.event.deny),d.on("keyup"+T,M.event.closeKeyUp),N.on("focus"+T,M.event.focus),s.on("click"+T,M.event.click)},clickaway:function(){M.verbose("Adding clickaway events to context",s),s.on("click"+T,M.event.clickaway).on("touchend"+T,M.event.clickaway)},scrollLock:function(){l.scrollLock&&(M.debug("Disabling page scroll"),(w=M.has.scrollbar())&&(M.save.bodyMargin(),M.set.bodyMargin()),s.addClass(r.locked)),M.verbose("Adding events to contain flyout scroll"),B.on("touchmove"+T,M.event.touch),u.on("scroll"+i,M.event.containScroll)}},unbind:{clickaway:function(){M.verbose("Removing clickaway events from context",s),s.off(T)},scrollLock:function(){M.verbose("Removing scroll lock from page"),w&&M.restore.bodyMargin(),s.removeClass(r.locked),B.off(T),u.off("scroll"+i)}},add:{inlineCSS:function(){var e=M.cache.width||u.outerWidth(),t=M.cache.height||u.outerHeight(),n=M.is.rtl(),i=M.get.direction();let o={left:e,right:-e,top:t,bottom:-t},s;n&&(M.verbose("RTL detected, flipping widths"),o.left=-e,o.right=e),s="<style>","left"===i||"right"===i?(M.debug("Adding CSS rules for animation distance",e),s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d("+o[i]+"px, 0, 0); }"):"top"!==i&&"bottom"!==i||(s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d(0, "+o[i]+"px, 0); }"),s+="</style>",m=W(s).appendTo(L),M.debug("Adding sizing css to head",m)},keyboardShortcuts:function(){M.verbose("Adding keyboard shortcuts"),B.on("keydown"+i,M.event.keyboard)}},observeChanges:function(){(H=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!0;e.every(function(n){if("attributes"===n.type)P&&("disabled"===n.attributeName||0<W(n.target).find(":input").addBack(":input").filter(":visible").length)&&(i=!0);else{let e=W(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=W(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(i=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(s=!1))}return!i}),i&&M.refreshInputs(s)})).observe(v,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),M.debug("Setting up mutation observer",H)},refresh:function(){M.verbose("Refreshing selector cache"),s=K(l.context,U),M.refreshFlyouts(),p=s.children(o.pusher),M.clear.cache()},refreshFlyouts:function(){M.verbose("Refreshing other flyouts"),g=s.children(o.flyout)},refreshInputs:function(e){f&&f.off("keydown"+T),l.dimPage&&(0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===W(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+T,M.event.inputKeyDown.first),f.last().on("keydown"+T,M.event.inputKeyDown.last),!e&&l.autofocus&&0===f.filter(":focus").length&&M.set.autofocus())},setup:{cache:function(){M.cache={width:u.outerWidth(),height:u.outerHeight()}},layout:function(){0===s.children(o.pusher).length&&(M.debug("Adding wrapper element for flyout"),M.error(a.pusher),p=W('<div class="pusher" />'),s.children().not(o.omitted).not(g).wrapAll(p),M.refresh()),0!==u.nextAll(o.pusher).length&&u.nextAll(o.pusher)[0]===p[0]||(M.debug("Moved flyout to correct parent element"),M.error(a.movedFlyout,v),u.detach().prependTo(s),M.refresh()),M.is.mobile()&&u.addClass(r.fullscreen),M.clear.cache(),M.set.pushable(),M.set.direction()},heights:function(){M.debug("Setting up heights",u);let e=u.children(o.header),t=u.children(o.content),n=u.children(o.actions);var i=(s.height()||0)-(e.outerHeight()||0)-(n.outerHeight()||0);0<i&&t.css("min-height",String(i)+"px")}},attachEvents:function(e,t){let n=W(e);t=Q(M[t])?M[t]:M.toggle,0<n.length?(M.debug("Attaching flyout events to element",e,t),n.on("click"+i,t)):M.error(a.notFound,e)},show:function(e){e=Q(e)?e:function(){},M.is.hidden()?!1===l.onShow.call(v)?M.verbose("Show callback returned false cancelling show"):(M.refresh(),M.othersActive()&&(M.debug("Other flyouts currently visible"),l.exclusive?M.hideOthers():k=!1),M.set.dimmerStyles(),M.set.observeAttributes(!1),M.pushPage(function(){e.call(v),l.onVisible.call(v),l.keyboardShortcuts&&M.add.keyboardShortcuts(),M.save.focus(),M.refreshInputs(),requestAnimationFrame(M.set.observeAttributes)}),l.onChange.call(v)):M.debug("Flyout is already visible")},hide:function(e){if(e=Q(e)?e:function(){},!1===l.onHide.call(v,W(this)))return M.verbose("Hide callback returned false cancelling hide"),k=!1;(M.is.visible()||M.is.animating())&&(M.debug("Hiding flyout",e),M.refreshFlyouts(),M.set.observeAttributes(!1),M.pullPage(function(){e.call(v),Q(l.onHidden)&&l.onHidden.call(v),M.restore.focus()}),l.onChange.call(v))},othersAnimating:function(){return 0<g.not(u).filter("."+r.animating).length},othersVisible:function(){return 0<g.not(u).filter("."+r.visible).length},othersActive:function(){return M.othersVisible()||M.othersAnimating()},hideOthers:function(e){let t=g.not(u).filter("."+r.visible),n=t.length,i=0;e=e||function(){},t.flyout("hide",function(){++i===n&&e()})},toggle:function(){M.verbose("Determining toggled direction"),M.is.hidden()?M.show():M.hide()},pushPage:function(t){var e,n;let i;t=Q(t)?t:function(){},M.set.overlay(),l.returnScroll&&(E=(x?N:s).scrollTop()),M.bind.scrollLock(),e=function(){M.bind.clickaway(),M.add.inlineCSS(),M.set.animating(),M.set.visible()},n=function(){M.set.dimmed()},i=function(e){e.target===u[0]&&(u.off("transitionend"+T,i),M.remove.animating(),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,i),requestAnimationFrame(e),l.dimPage&&!M.othersVisible()&&requestAnimationFrame(n)},pullPage:function(t){var e;let n;t=Q(t)?t:function(){},M.verbose("Removing context push state",M.get.direction()),M.unbind.clickaway(),M.othersActive()||(M.unbind.scrollLock(),l.keyboardShortcuts&&M.remove.keyboardShortcuts()),e=function(){M.set.overlay(),M.set.animating(),l.dimPage&&!M.othersVisible()&&M.set.closing(),M.remove.visible()},n=function(e){e.target===u[0]&&(u.off("transitionend"+T,n),M.remove.animating(),M.remove.closing(),M.remove.overlay(),M.remove.inlineCSS(),l.returnScroll&&M.scrollBack(),l.dimPage&&!M.othersVisible()&&p.removeClass(r.dimmed),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,n),requestAnimationFrame(e)},scrollToTop:function(){M.verbose("Scrolling to top of page to avoid animation issues"),u.scrollTop(0),(x?N:s)[0].scrollTo(0,0)},scrollBack:function(){M.verbose("Scrolling back to original page position"),(x?N:s)[0].scrollTo(0,E)},clear:{cache:function(){M.verbose("Clearing cached dimensions"),M.cache={}}},set:{observeAttributes:function(e){P=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},dimmerStyles:function(){l.blurring?p.addClass(r.blurring):p.removeClass(r.blurring)},bodyMargin:function(){let n=M.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,A+"px"),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+A+"px)")})},pushed:function(){s.addClass(r.pushed)},pushable:function(){s.addClass(r.pushable)},dimmed:function(){p.addClass(r.dimmed)},active:function(){u.addClass(r.active)},animating:function(){u.addClass(r.animating)},closing:function(){p.addClass(r.closing)},direction:function(e){e=e||M.get.direction(),u.addClass(r[e])},visible:function(){u.addClass(r.visible)},overlay:function(){u.addClass(r.overlay)}},remove:{inlineCSS:function(){M.debug("Removing inline css styles",m),m&&0<m.length&&m.remove()},keyboardShortcuts:function(){M.verbose("Removing keyboard shortcuts"),B.off("keydown"+i)},pushed:function(){s.removeClass(r.pushed)},pushable:function(){s.removeClass(r.pushable)},active:function(){u.removeClass(r.active)},animating:function(){u.removeClass(r.animating)},closing:function(){p.removeClass(r.closing)},direction:function(e){e=e||M.get.direction(),u.removeClass(r[e])},visible:function(){u.removeClass(r.visible)},overlay:function(){u.removeClass(r.overlay)}},get:{direction:function(){return u.hasClass(r.top)?r.top:u.hasClass(r.right)?r.right:u.hasClass(r.bottom)?r.bottom:r.left},id:function(){return F},element:function(){return u},settings:function(){return l}},can:{leftBodyScrollbar:function(){return void 0===M.cache.leftBodyScrollbar&&(M.cache.leftBodyScrollbar=M.is.rtl()&&(M.is.iframe&&!M.is.firefox()||M.is.safari())),M.cache.leftBodyScrollbar}},save:{focus:function(){let e=W(_.activeElement);0<e.closest(u).length||(h=W(_.activeElement).trigger("blur"))},bodyMargin:function(){S=s.css((x?"margin-":"padding-")+(M.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=x?U.innerWidth-_.documentElement.clientWidth:s[0].offsetWidth-s[0].clientWidth;A=e+t}},is:{safari:function(){return void 0===M.cache.isSafari&&(M.cache.isSafari=/constructor/i.test(U.HTMLElement)||!!U.ApplePaySession),M.cache.isSafari},firefox:function(){return void 0===M.cache.isFirefox&&(M.cache.isFirefox=!!U.InstallTrigger),M.cache.isFirefox},iframe:function(){return!(self===top)},mobile:function(){let e=navigator.userAgent;return e.match(t.mobile)?(M.verbose("Browser was found to be mobile",e),!0):(M.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!M.is.visible()},visible:function(){return u.hasClass(r.visible)},animating:function(){return s.hasClass(r.animating)},rtl:function(){return void 0===M.cache.isRTL&&(M.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===O.attr("dir")||"rtl"===O.css("direction")||"rtl"===s.attr("dir")||"rtl"===s.css("direction")),M.cache.isRTL}},has:{configActions:function(){return Array.isArray(l.actions)&&0<l.actions.length},scrollbar:function(){return x||"hidden"!==s.css("overflow-y")}},restore:{focus:function(){h&&0<h.length&&l.restoreFocus&&h.trigger("focus")},bodyMargin:function(){let n=M.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,S),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>n[e])}},setting:function(e,t){if(M.debug("Changing setting",e,t),W.isPlainObject(e))W.extend(!0,l,e);else{if(void 0===t)return l[e];W.isPlainObject(l[e])?W.extend(!0,l[e],t):l[e]=t}},internal:function(e,t){if(W.isPlainObject(e))W.extend(!0,M,e);else{if(void 0===t)return M[e];M[e]=t}},debug:function(){!l.silent&&l.debug&&(l.performance?M.performance.log(arguments):(M.debug=Function.prototype.bind.call(console.info,console,l.name+":"),M.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?M.performance.log(arguments):(M.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),M.verbose.apply(console,arguments)))},error:function(){l.silent||(M.error=Function.prototype.bind.call(console.error,console,l.name+":"),M.error.apply(console,arguments))},performance:{log:function(e){var t,n;l.performance&&(n=(t=Date.now())-(z||t),z=t,R.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(M.performance.timer),M.performance.timer=setTimeout(function(){M.performance.display()},500)},display:function(){var e=l.name+":";let n=0;z=!1,clearTimeout(M.performance.timer),W.each(R,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<R.length&&(console.groupCollapsed(e),console.table?console.table(R):W.each(R,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),R=[]}},invoke:function(i,e,t){let o=y,s,l,n;return e=e||j,t=v||t,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,W.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(W.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return l=o[n],!1;{if(!W.isPlainObject(o[t])||e===s)return void 0!==o[t]?l=o[t]:M.error(a.method,i),!1;o=o[t]}}})),Q(l)?n=l.apply(t,e):void 0!==l&&(n=l),Array.isArray(V)?V.push(n):void 0!==V?V=[V,n]:void 0!==n&&(V=n),l}},I?(void 0===y&&(Q(l.templates[q])&&(l.autoShow=!0,l.className.flyout=l.className.template,l=W.extend(!0,{},l,l.templates[q].apply(M,j)),r=l.className,l.namespace,c=l.fields,a=l.error),M.initialize()),Q(l.templates[q])||M.invoke(q)):(void 0!==y&&y.invoke("destroy"),M.initialize(),V=u)}),void 0!==V?V:this},W.flyout=W.fn.flyout,W.fn.flyout.settings={name:"Flyout",namespace:"flyout",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",exclusive:!1,closable:!0,autofocus:!0,restoreFocus:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,autoShow:!1,keyboardShortcuts:!0,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onChange:function(){},onShow:function(){},onHide:function(){return!0},onHidden:!1,onVisible:function(){},onApprove:function(){},onDeny:function(){},keys:{space:32,enter:13,escape:27,tab:9},className:{flyout:"ui flyout",close:"close icon",header:"ui header",content:"content",actions:"actions",active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible",overlay:"overlay",fullscreen:"fullscreen",template:"ui flyout",button:"ui button",ok:"positive",cancel:"negative",prompt:"ui fluid input"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.right.flyout, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",flyout:".ui.flyout",header:".ui.header",content:".content",actions:".actions",close:".close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedFlyout:"Had to move flyout. For optimal performance make sure flyout and pusher are direct children of your body tag",notFound:"There were no elements that matched the specified selector"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},W.fn.flyout.settings.templates={getArguments:function(e){let t=[].slice.call(e);return W.isPlainObject(t[0])?W.extend({handler:function(){},content:"",title:""},t[0]):(Q(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===W(W.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(W(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Form
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Form
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 - Form Validation
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Form Validation
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 - Form
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Form
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 - Grid
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Grid
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 - Grid
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Grid
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 - Header
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Header
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 - Header
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Header
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 - Icon
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Icon
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 - Icon
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Icon
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 - Image
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Image
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 - Image
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Image
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 - Input
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Input
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 - Input
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Input
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 - Item
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Item
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 - Item
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Item
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 - Label
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Label
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 - Label
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Label
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 - List
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - List
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 - List
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - List
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 - Loader
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Loader
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 - Loader
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Loader
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 - Menu
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Menu
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 - Menu
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Menu
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 - Message
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Message
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 - Message
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Message
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 - Modal
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Modal
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 - Modal
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Modal
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -874,8 +874,7 @@
874
874
  return string;
875
875
  }
876
876
 
877
- const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
878
- const escape = {
877
+ const escapeMap = {
879
878
  '"': '&quot;',
880
879
  '&': '&amp;',
881
880
  "'": '&apos;',
@@ -883,7 +882,7 @@
883
882
  '>': '&gt;',
884
883
  };
885
884
 
886
- return String(string).replace(badChars, (chr) => escape[chr]);
885
+ return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
887
886
  },
888
887
  },
889
888
  can: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Modal
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Modal
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(V,X,_){"use strict";function Q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}X=void 0!==X&&X.Math===Math?X:globalThis,V.fn.modal=function(L){let e=V(this),z=V(X),q=V(_),I=V("body"),B=Date.now(),W=[],j=L,P="string"==typeof j,K=[].slice.call(arguments,1),R=function(e,t){let n;return 0<=[X,_].indexOf(e)?n=I:0===(n=V(t.document).find(e)).length&&(n=t.frameElement?R(e,t.parent):I),n},U;return e.each(function(){let r=V.isPlainObject(L)?V.extend(!0,{},V.fn.modal.settings,L):V.extend({},V.fn.modal.settings),a=r.selector,c=r.className;var e=r.namespace;let l=r.fields,d=r.error,i="."+e,t="module-"+e,u=V(this),o=R(r.context,X),s=o[0]===I[0],n=u.find(a.closeIcon),f,m,h,g,p,v,b=u.hasClass("modal"),y=this,k=b?u.data(t):void 0,x=!1,w,C,S="",M="",A=!1,D=!1,T=!1,H,F,N,E=!1,O;O={initialize:function(){if(O.create.id(),b||(O.create.modal(),Q(r.onHidden)||(r.onHidden=function(){O.destroy(),u.remove()})),u.addClass(r.class),""!==r.title&&u.find(a.title).html(O.helpers.escape(r.title,r)).addClass(r.classTitle),""!==r.content&&u.find(a.content).html(O.helpers.escape(r.content,r)).addClass(r.classContent),O.has.configActions()){let s=u.find(a.actions).addClass(r.classActions);0===s.length?s=V("<div/>",{class:c.actions+" "+(r.classActions||"")}).appendTo(u):s.empty(),r.actions.forEach(function(e){var t=e[l.icon]?"<i "+(e[l.text]?'aria-hidden="true"':"")+' class="'+O.helpers.escape(e[l.icon])+' icon"></i>':"",n=O.helpers.escape(e[l.text]||"",r),i=O.helpers.escape(e[l.class]||"");let o=e[l.click]&&Q(e[l.click])?e[l.click]:function(){};s.append(V("<button/>",{html:t+n,"aria-label":(e[l.text]||e[l.icon]||"").replace(/<[^>]+(>|$)/g,""),class:c.button+" "+i,on:{click:function(){let e=V(this);e.is(a.approve)||e.is(a.deny)||!1===o.call(y,u)||O.hide()}}}))})}O.cache={},O.verbose("Initializing dimmer",o),O.create.dimmer(),r.allowMultiple&&O.create.innerDimmer(),r.centered||u.addClass("top aligned"),O.refreshModals(),O.bind.events(),O.observeChanges(),O.instantiate(),r.autoShow&&O.show()},instantiate:function(){O.verbose("Storing instance of modal"),k=O,u.data(t,k)},create:{modal:function(){var e;u=V("<div/>",{class:c.modal,role:"dialog","aria-modal":!0}),r.closeIcon&&(n=V("<i/>",{class:c.close,role:"button",tabindex:0,"aria-label":r.text.close}),u.append(n)),""!==r.title&&(e="_"+O.get.id()+"title",u.attr("aria-labelledby",e),V("<div/>",{class:c.title,id:e}).appendTo(u)),""!==r.content&&(e="_"+O.get.id()+"desc",u.attr("aria-describedby",e),V("<div/>",{class:c.content,id:e}).appendTo(u)),O.has.configActions()&&V("<div/>",{class:c.actions}).appendTo(u),o.append(u),y=u[0]},dimmer:function(){var e={debug:r.debug,dimmerName:"modals"},e=V.extend(!0,e,r.dimmerSettings);void 0===V.fn.dimmer?O.error(d.dimmer):(O.debug("Creating dimmer"),p=o.dimmer(e),A=O.is.scrolling(),r.detachable?(O.verbose("Modal is detachable, moving content into dimmer"),p.dimmer("add content",u)):O.set.undetached(),v=p.dimmer("get dimmer"))},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),H="."+F,O.verbose("Creating unique id for element",F)},innerDimmer:function(){0===u.find(a.dimmer).length&&V("<div/>",{class:c.innerDimmer}).prependTo(u)}},destroy:function(){N&&N.disconnect(),O.verbose("Destroying previous modal"),u.removeData(t).off(i),z.off(H),o.off(H),v.off(H),n.off(H),f&&f.off(H),o.dimmer("destroy")},observeChanges:function(){(N=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!1,a=!0;e.every(function(n){if("attributes"===n.type)E&&("disabled"===n.attributeName||0<V(n.target).find(":input").addBack(":input").filter(":visible").length)&&(s=!0);else{i=!0;let e=V(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=V(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(s=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(a=!1))}return!s}),i&&r.observeChanges&&(O.debug("DOM tree modified, refreshing"),O.refresh()),s&&O.refreshInputs(a)})).observe(y,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),O.debug("Setting up mutation observer",N)},refresh:function(){O.remove.scrolling(),O.cacheSizes(),O.can.useFlex()||O.set.modalOffset(),O.set.screenHeight(),O.set.type()},refreshModals:function(){h=u.siblings(a.modal),m=h.add(u)},refreshInputs:function(e){f&&f.off("keydown"+H),0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===V(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+H,O.event.inputKeyDown.first),f.last().on("keydown"+H,O.event.inputKeyDown.last),!e&&r.autofocus&&0===f.filter(":focus").length&&O.set.autofocus()},attachEvents:function(e,t){let n=V(e);t=Q(O[t])?O[t]:O.toggle,0<n.length?(O.debug("Attaching modal events to element",e,t),n.off(i).on("click"+i,t)):O.error(d.notFound,e)},bind:{events:function(){O.verbose("Attaching events"),u.on("click"+i,a.close,O.event.close).on("click"+i,a.approve,O.event.approve).on("click"+i,a.deny,O.event.deny),n.on("keyup"+H,O.event.closeKeyUp),z.on("resize"+H,O.event.resize).on("focus"+H,O.event.focus),o.on("click"+H,O.event.click)},scrollLock:function(){p[0].addEventListener("touchmove",O.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){p[0].removeEventListener("touchmove",O.event.preventScroll,{passive:!1})}},get:{id:function(){return F},element:function(){return u},settings:function(){return r}},event:{approve:function(){x||!1===r.onApprove.call(y,V(this))?O.verbose("Approve callback returned false cancelling hide"):(x=!0,O.hide(function(){x=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){x||!1===r.onDeny.call(y,V(this))?O.verbose("Deny callback returned false cancelling hide"):(x=!0,O.hide(function(){x=!1}))},close:function(){O.hide()},closeKeyUp:function(e){e=e.which;e!==r.keys.enter&&e!==r.keys.space||!u.hasClass(c.front)||O.hide()},inputKeyDown:{first:function(e){e.which===r.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==r.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},mousedown:function(e){let t=V(e.target);var n=O.is.rtl();(w=0<t.closest(a.modal).length)&&O.verbose("Mouse down event registered inside the modal"),(C=O.is.scrolling()&&(!n&&z.outerWidth()-r.scrollbarWidth<=e.clientX||n&&r.scrollbarWidth>=e.clientX))&&O.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(t){if(r.closable)if(w)O.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(C)O.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{let e=V(t.target);var n=0<e.closest(a.modal).length,t=V.contains(_.documentElement,t.target);if(!n&&t&&O.is.active()&&u.hasClass(c.front)){if(O.debug("Dimmer clicked, hiding all modals"),r.allowMultiple){if(!O.hideAll())return}else if(!O.hide())return;O.remove.clickaway()}}else O.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(O.timer),O.timer=setTimeout(function(){e()},t)},keyboard:function(e){e.which===r.keys.escape&&(r.closable?(O.debug("Escape key pressed hiding modal"),u.hasClass(c.front)&&O.hide()):O.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){p.dimmer("is active")&&(O.is.animating()||O.is.active())&&requestAnimationFrame(O.refresh)},focus:function(){T=!0},click:function(e){T&&_.activeElement!==e.target&&p.dimmer("is active")&&O.is.active()&&r.autofocus&&0===V(_.activeElement).closest(a.modal).length&&requestAnimationFrame(O.set.autofocus),T=!1}},toggle:function(){O.is.active()||O.is.animating()?O.hide():O.show()},show:function(e){e=Q(e)?e:function(){},O.refreshModals(),O.set.dimmerSettings(),O.set.dimmerStyles(),O.showModal(e)},hide:function(e){return e=Q(e)?e:function(){},O.refreshModals(),O.hideModal(e)},showModal:function(e){e=Q(e)?e:function(){},O.is.animating()||!O.is.active()?!1===r.onShow.call(y)?O.verbose("Show callback returned false cancelling show"):(D=O.has.scrollbar(),O.showDimmer(),O.cacheSizes(),D&&O.set.bodyMargin(),O.can.useFlex()?O.remove.legacy():(O.set.legacy(),O.set.modalOffset(),O.debug("Using non-flex legacy modal positioning.")),O.set.screenHeight(),O.set.type(),O.set.clickaway(),!r.allowMultiple&&O.others.active()?O.hideOthers(O.showModal):(x=!1,r.allowMultiple&&(O.others.active()&&h.filter("."+c.active).find(a.dimmer).removeClass("out").addClass("transition fade in active"),r.detachable&&u.detach().appendTo(v)),r.transition&&void 0!==V.fn.transition?(O.debug("Showing modal with css animations"),O.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.showMethod||r.transition)+" in",queue:r.queue,duration:r.transition.showDuration||r.duration,useFailSafe:!0,onComplete:function(){r.onVisible.apply(y),r.keyboardShortcuts&&O.add.keyboardShortcuts(),O.save.focus(),O.set.active(),O.refreshInputs(),requestAnimationFrame(O.set.observeAttributes),e()}})):O.error(d.noTransition))):O.debug("Modal is already visible")},hideModal:function(e,t,n){let i=h.filter("."+c.active).last();if(e=Q(e)?e:function(){},!1===r.onHide.call(y,V(this)))return O.verbose("Hide callback returned false cancelling hide"),x=!1;(O.is.animating()||O.is.active())&&(O.debug("Hiding modal"),r.transition&&void 0!==V.fn.transition?(O.remove.active(),O.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.hideMethod||r.transition)+" out",queue:r.queue,duration:r.transition.hideDuration||r.duration,useFailSafe:!0,onStart:function(){O.others.active()||O.others.animating()||t?r.allowMultiple&&(n?m:i).find(a.dimmer).removeClass("in").addClass("out"):O.hideDimmer(),r.keyboardShortcuts&&!O.others.active()&&O.remove.keyboardShortcuts()},onComplete:function(){O.unbind.scrollLock(),O.remove.active(),r.allowMultiple&&(i.addClass(c.front),u.removeClass(c.front),(n?m:i).find(a.dimmer).removeClass("active")),Q(r.onHidden)&&r.onHidden.call(y),O.remove.dimmerStyles(),O.restore.focus(),e()}})):O.error(d.noTransition))},showDimmer:function(){p.dimmer("is animating")||!p.dimmer("is active")?(D&&(s||v.css("top",p.scrollTop()),O.save.bodyMargin()),O.debug("Showing dimmer"),p.dimmer("show")):O.debug("Dimmer already visible")},hideDimmer:function(){p.dimmer("is animating")||p.dimmer("is active")?(O.unbind.scrollLock(),p.dimmer("hide",function(){D&&O.restore.bodyMargin(),O.remove.clickaway(),O.remove.screenHeight()})):O.debug("Dimmer is not visible cannot hide")},hideAll:function(i){let e=m.filter("."+c.active+", ."+c.animating);if(i=Q(i)?i:function(){},0<e.length){O.debug("Hiding all visible modals");let n=!0;return V(e.get().reverse()).each(function(e,t){n=n&&V(t).modal("hide modal",i,!1,!0)}),n&&O.hideDimmer(),n}},hideOthers:function(e){let t=h.filter("."+c.active+", ."+c.animating);e=Q(e)?e:function(){},0<t.length&&(O.debug("Hiding other modals",h),t.modal("hide modal",e,!0))},others:{active:function(){return 0<h.filter("."+c.active).length},animating:function(){return 0<h.filter("."+c.animating).length}},add:{keyboardShortcuts:function(){O.verbose("Adding keyboard shortcuts"),q.on("keydown"+i,O.event.keyboard)}},save:{focus:function(){let e=V(_.activeElement);0<e.closest(u).length||(g=V(_.activeElement).trigger("blur"))},bodyMargin:function(){S=o.css((s?"margin-":"padding-")+(O.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=s?X.innerWidth-_.documentElement.clientWidth:o[0].offsetWidth-o[0].clientWidth;M=e+t}},restore:{focus:function(){g&&0<g.length&&r.restoreFocus&&g.trigger("focus")},bodyMargin:function(){let n=O.can.leftBodyScrollbar()?"left":"right";o.css((s?"margin-":"padding-")+n,S),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){u.removeClass(c.active)},legacy:function(){u.removeClass(c.legacy)},clickaway:function(){r.detachable||u.off("mousedown"+H),v.off("mousedown"+H),v.off("mouseup"+H)},dimmerStyles:function(){v.removeClass(c.inverted),p.removeClass(c.blurring)},bodyStyle:function(){""===o.attr("style")&&(O.verbose("Removing style attribute"),o.removeAttr("style"))},screenHeight:function(){O.debug("Removing page height"),o.css("height",""),O.remove.bodyStyle()},keyboardShortcuts:function(){O.verbose("Removing keyboard shortcuts"),q.off("keydown"+i)},scrolling:function(){A||p.removeClass(c.scrolling),u.removeClass(c.scrolling)}},cacheSizes:function(){u.addClass(c.loading);var e=u.prop("scrollHeight"),t=u.outerWidth(),n=u.outerHeight();void 0!==O.cache.pageHeight&&0===n||(V.extend(O.cache,{pageHeight:q.outerHeight(),width:t,height:n+r.offset,scrollHeight:e+r.offset,contextHeight:(s?z:p).height()}),O.cache.topOffset=-O.cache.height/2),u.removeClass(c.loading),O.debug("Caching modal and container sizes",O.cache)},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])}},can:{leftBodyScrollbar:function(){return void 0===O.cache.leftBodyScrollbar&&(O.cache.leftBodyScrollbar=O.is.rtl()&&(O.is.iframe&&!O.is.firefox()||O.is.safari())),O.cache.leftBodyScrollbar},useFlex:function(){return"auto"===r.useFlex?r.detachable:(r.useFlex&&!r.detachable&&O.debug("useFlex true in combination with detachable false is not supported"),r.useFlex)},fit:function(){var e=O.cache.contextHeight,t=O.cache.contextHeight/2,n=O.cache.topOffset,i=O.cache.scrollHeight,o=O.cache.height,s=r.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(r.actions)&&0<r.actions.length},scrollbar:function(){return s||"hidden"!==o.css("overflow-y")}},is:{active:function(){return u.hasClass(c.active)},animating:function(){return u.transition("is animating")},scrolling:function(){return p.hasClass(c.scrolling)},rtl:function(){return void 0===O.cache.isRTL&&(O.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===I.attr("dir")||"rtl"===I.css("direction")||"rtl"===o.attr("dir")||"rtl"===o.css("direction")),O.cache.isRTL},safari:function(){return void 0===O.cache.isSafari&&(O.cache.isSafari=/constructor/i.test(X.HTMLElement)||!!X.ApplePaySession),O.cache.isSafari},firefox:function(){return void 0===O.cache.isFirefox&&(O.cache.isFirefox=!!X.InstallTrigger),O.cache.isFirefox},iframe:function(){return!(self===top)}},set:{observeAttributes:function(e){E=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},bodyMargin:function(){let n=O.can.leftBodyScrollbar()?"left":"right";(r.detachable||O.can.fit())&&o.css((s?"margin-":"padding-")+n,M+"px"),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+M+"px)")})},clickaway:function(){r.detachable||u.on("mousedown"+H,O.event.mousedown),v.on("mousedown"+H,O.event.mousedown),v.on("mouseup"+H,O.event.mouseup)},dimmerSettings:function(){if(void 0===V.fn.dimmer)O.error(d.dimmer);else{var t={debug:r.debug,dimmerName:"modals",closable:"auto",useFlex:O.can.useFlex(),duration:{show:r.transition.showDuration||r.duration,hide:r.transition.hideDuration||r.duration}};let e=V.extend(!0,t,r.dimmerSettings);r.inverted&&(e.variation=void 0!==e.variation?e.variation+" inverted":"inverted"),o.dimmer("setting",e)}},dimmerStyles:function(){r.inverted?v.addClass(c.inverted):v.removeClass(c.inverted),r.blurring?p.addClass(c.blurring):p.removeClass(c.blurring)},modalOffset:function(){var e;r.detachable?u.css({marginTop:!u.hasClass("aligned")&&O.can.fit()?-O.cache.height/2:r.padding/2,marginLeft:-O.cache.width/2}):(e=O.can.fit(),u.css({top:!u.hasClass("aligned")&&e?q.scrollTop()+(O.cache.contextHeight-O.cache.height)/2:!e||u.hasClass("top")?q.scrollTop()+r.padding:q.scrollTop()+(O.cache.contextHeight-O.cache.height-r.padding),marginLeft:-O.cache.width/2})),O.verbose("Setting modal offset for legacy mode")},screenHeight:function(){O.can.fit()?o.css("height",""):u.hasClass("bottom")||(O.debug("Modal is taller than page content, resizing page height"),o.css("height",O.cache.height+2*r.padding+"px"))},active:function(){u.addClass(c.active+" "+c.front),h.filter("."+c.active).removeClass(c.front)},scrolling:function(){p.addClass(c.scrolling),u.addClass(c.scrolling),O.unbind.scrollLock()},legacy:function(){u.addClass(c.legacy)},type:function(){O.can.fit()?(O.verbose("Modal fits on screen"),O.others.active()||O.others.animating()||(O.remove.scrolling(),O.bind.scrollLock())):u.hasClass("bottom")?O.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(O.verbose("Modal cannot fit on screen setting to scrolling"),O.set.scrolling())},undetached:function(){p.addClass(c.undetached)}},setting:function(e,t){if(O.debug("Changing setting",e,t),V.isPlainObject(e))V.extend(!0,r,e);else{if(void 0===t)return r[e];V.isPlainObject(r[e])?V.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(V.isPlainObject(e))V.extend(!0,O,e);else{if(void 0===t)return O[e];O[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?O.performance.log(arguments):(O.debug=Function.prototype.bind.call(console.info,console,r.name+":"),O.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?O.performance.log(arguments):(O.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),O.verbose.apply(console,arguments)))},error:function(){r.silent||(O.error=Function.prototype.bind.call(console.error,console,r.name+":"),O.error.apply(console,arguments))},performance:{log:function(e){var t,n;r.performance&&(n=(t=Date.now())-(B||t),B=t,W.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:y,"Execution Time":n})),clearTimeout(O.performance.timer),O.performance.timer=setTimeout(function(){O.performance.display()},500)},display:function(){var e=r.name+":";let n=0;B=!1,clearTimeout(O.performance.timer),V.each(W,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<W.length&&(console.groupCollapsed(e),console.table?console.table(W):V.each(W,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),W=[]}},invoke:function(i,e,t){let o=k,s,a,n;return e=e||K,t=t||y,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,V.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(V.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return a=o[n],!1;{if(!V.isPlainObject(o[t])||e===s)return void 0!==o[t]?a=o[t]:O.error(d.method,i),!1;o=o[t]}}})),Q(a)?n=a.apply(t,e):void 0!==a&&(n=a),Array.isArray(U)?U.push(n):void 0!==U?U=[U,n]:void 0!==n&&(U=n),a}},P?(void 0===k&&(Q(r.templates[j])&&(r.autoShow=!0,r.className.modal=r.className.template,r=V.extend(!0,{},r,r.templates[j].apply(O,K)),c=r.className,r.namespace,l=r.fields,d=r.error),O.initialize()),Q(r.templates[j])||O.invoke(j)):(void 0!==k&&k.invoke("destroy"),O.initialize(),U=u)}),void 0!==U?U:this},V.modal=V.fn.modal,V.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},keys:{space:32,enter:13,escape:27,tab:9},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",closeIcon:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input",innerDimmer:"ui inverted dimmer"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},V.fn.modal.settings.templates={getArguments:function(e){let t=[].slice.call(e);return V.isPlainObject(t[0])?V.extend({handler:function(){},content:"",title:""},t[0]):(Q(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments),n=t.handler;return{title:t.title,content:t.content,onApprove:n,actions:[{text:e.text.ok,class:e.className.ok,click:n}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);function n(){t.handler(!0)}function i(){t.handler(!1)}return{title:t.title,content:t.content,onApprove:n,onDeny:i,actions:[{text:e.text.ok,class:e.className.ok,click:n},{text:e.text.cancel,class:e.className.cancel,click:i}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);function i(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(V(e).val())}function o(){n.handler(null)}return 0===V(V.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+this.helpers.escape(e.className.prompt)+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,onApprove:i,onDeny:o,actions:[{text:e.text.ok,class:e.className.ok,click:i},{text:e.text.cancel,class:e.className.cancel,click:o}]}}}}(jQuery,window,document);
11
+ !function(V,X,_){"use strict";function Q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}X=void 0!==X&&X.Math===Math?X:globalThis,V.fn.modal=function(L){let e=V(this),z=V(X),q=V(_),I=V("body"),B=Date.now(),W=[],j=L,P="string"==typeof j,K=[].slice.call(arguments,1),R=function(e,t){let n;return 0<=[X,_].indexOf(e)?n=I:0===(n=V(t.document).find(e)).length&&(n=t.frameElement?R(e,t.parent):I),n},U;return e.each(function(){let r=V.isPlainObject(L)?V.extend(!0,{},V.fn.modal.settings,L):V.extend({},V.fn.modal.settings),a=r.selector,c=r.className;var e=r.namespace;let l=r.fields,d=r.error,i="."+e,t="module-"+e,u=V(this),o=R(r.context,X),s=o[0]===I[0],n=u.find(a.closeIcon),f,m,h,g,p,v,b=u.hasClass("modal"),y=this,k=b?u.data(t):void 0,x=!1,w,C,S="",M="",A=!1,D=!1,T=!1,H,F,N,E=!1,O;O={initialize:function(){if(O.create.id(),b||(O.create.modal(),Q(r.onHidden)||(r.onHidden=function(){O.destroy(),u.remove()})),u.addClass(r.class),""!==r.title&&u.find(a.title).html(O.helpers.escape(r.title,r)).addClass(r.classTitle),""!==r.content&&u.find(a.content).html(O.helpers.escape(r.content,r)).addClass(r.classContent),O.has.configActions()){let s=u.find(a.actions).addClass(r.classActions);0===s.length?s=V("<div/>",{class:c.actions+" "+(r.classActions||"")}).appendTo(u):s.empty(),r.actions.forEach(function(e){var t=e[l.icon]?"<i "+(e[l.text]?'aria-hidden="true"':"")+' class="'+O.helpers.escape(e[l.icon])+' icon"></i>':"",n=O.helpers.escape(e[l.text]||"",r),i=O.helpers.escape(e[l.class]||"");let o=e[l.click]&&Q(e[l.click])?e[l.click]:function(){};s.append(V("<button/>",{html:t+n,"aria-label":(e[l.text]||e[l.icon]||"").replace(/<[^>]+(>|$)/g,""),class:c.button+" "+i,on:{click:function(){let e=V(this);e.is(a.approve)||e.is(a.deny)||!1===o.call(y,u)||O.hide()}}}))})}O.cache={},O.verbose("Initializing dimmer",o),O.create.dimmer(),r.allowMultiple&&O.create.innerDimmer(),r.centered||u.addClass("top aligned"),O.refreshModals(),O.bind.events(),O.observeChanges(),O.instantiate(),r.autoShow&&O.show()},instantiate:function(){O.verbose("Storing instance of modal"),k=O,u.data(t,k)},create:{modal:function(){var e;u=V("<div/>",{class:c.modal,role:"dialog","aria-modal":!0}),r.closeIcon&&(n=V("<i/>",{class:c.close,role:"button",tabindex:0,"aria-label":r.text.close}),u.append(n)),""!==r.title&&(e="_"+O.get.id()+"title",u.attr("aria-labelledby",e),V("<div/>",{class:c.title,id:e}).appendTo(u)),""!==r.content&&(e="_"+O.get.id()+"desc",u.attr("aria-describedby",e),V("<div/>",{class:c.content,id:e}).appendTo(u)),O.has.configActions()&&V("<div/>",{class:c.actions}).appendTo(u),o.append(u),y=u[0]},dimmer:function(){var e={debug:r.debug,dimmerName:"modals"},e=V.extend(!0,e,r.dimmerSettings);void 0===V.fn.dimmer?O.error(d.dimmer):(O.debug("Creating dimmer"),p=o.dimmer(e),A=O.is.scrolling(),r.detachable?(O.verbose("Modal is detachable, moving content into dimmer"),p.dimmer("add content",u)):O.set.undetached(),v=p.dimmer("get dimmer"))},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),H="."+F,O.verbose("Creating unique id for element",F)},innerDimmer:function(){0===u.find(a.dimmer).length&&V("<div/>",{class:c.innerDimmer}).prependTo(u)}},destroy:function(){N&&N.disconnect(),O.verbose("Destroying previous modal"),u.removeData(t).off(i),z.off(H),o.off(H),v.off(H),n.off(H),f&&f.off(H),o.dimmer("destroy")},observeChanges:function(){(N=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!1,a=!0;e.every(function(n){if("attributes"===n.type)E&&("disabled"===n.attributeName||0<V(n.target).find(":input").addBack(":input").filter(":visible").length)&&(s=!0);else{i=!0;let e=V(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=V(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(s=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(a=!1))}return!s}),i&&r.observeChanges&&(O.debug("DOM tree modified, refreshing"),O.refresh()),s&&O.refreshInputs(a)})).observe(y,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),O.debug("Setting up mutation observer",N)},refresh:function(){O.remove.scrolling(),O.cacheSizes(),O.can.useFlex()||O.set.modalOffset(),O.set.screenHeight(),O.set.type()},refreshModals:function(){h=u.siblings(a.modal),m=h.add(u)},refreshInputs:function(e){f&&f.off("keydown"+H),0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===V(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+H,O.event.inputKeyDown.first),f.last().on("keydown"+H,O.event.inputKeyDown.last),!e&&r.autofocus&&0===f.filter(":focus").length&&O.set.autofocus()},attachEvents:function(e,t){let n=V(e);t=Q(O[t])?O[t]:O.toggle,0<n.length?(O.debug("Attaching modal events to element",e,t),n.off(i).on("click"+i,t)):O.error(d.notFound,e)},bind:{events:function(){O.verbose("Attaching events"),u.on("click"+i,a.close,O.event.close).on("click"+i,a.approve,O.event.approve).on("click"+i,a.deny,O.event.deny),n.on("keyup"+H,O.event.closeKeyUp),z.on("resize"+H,O.event.resize).on("focus"+H,O.event.focus),o.on("click"+H,O.event.click)},scrollLock:function(){p[0].addEventListener("touchmove",O.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){p[0].removeEventListener("touchmove",O.event.preventScroll,{passive:!1})}},get:{id:function(){return F},element:function(){return u},settings:function(){return r}},event:{approve:function(){x||!1===r.onApprove.call(y,V(this))?O.verbose("Approve callback returned false cancelling hide"):(x=!0,O.hide(function(){x=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){x||!1===r.onDeny.call(y,V(this))?O.verbose("Deny callback returned false cancelling hide"):(x=!0,O.hide(function(){x=!1}))},close:function(){O.hide()},closeKeyUp:function(e){e=e.which;e!==r.keys.enter&&e!==r.keys.space||!u.hasClass(c.front)||O.hide()},inputKeyDown:{first:function(e){e.which===r.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==r.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},mousedown:function(e){let t=V(e.target);var n=O.is.rtl();(w=0<t.closest(a.modal).length)&&O.verbose("Mouse down event registered inside the modal"),(C=O.is.scrolling()&&(!n&&z.outerWidth()-r.scrollbarWidth<=e.clientX||n&&r.scrollbarWidth>=e.clientX))&&O.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(t){if(r.closable)if(w)O.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(C)O.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{let e=V(t.target);var n=0<e.closest(a.modal).length,t=V.contains(_.documentElement,t.target);if(!n&&t&&O.is.active()&&u.hasClass(c.front)){if(O.debug("Dimmer clicked, hiding all modals"),r.allowMultiple){if(!O.hideAll())return}else if(!O.hide())return;O.remove.clickaway()}}else O.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(O.timer),O.timer=setTimeout(function(){e()},t)},keyboard:function(e){e.which===r.keys.escape&&(r.closable?(O.debug("Escape key pressed hiding modal"),u.hasClass(c.front)&&O.hide()):O.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){p.dimmer("is active")&&(O.is.animating()||O.is.active())&&requestAnimationFrame(O.refresh)},focus:function(){T=!0},click:function(e){T&&_.activeElement!==e.target&&p.dimmer("is active")&&O.is.active()&&r.autofocus&&0===V(_.activeElement).closest(a.modal).length&&requestAnimationFrame(O.set.autofocus),T=!1}},toggle:function(){O.is.active()||O.is.animating()?O.hide():O.show()},show:function(e){e=Q(e)?e:function(){},O.refreshModals(),O.set.dimmerSettings(),O.set.dimmerStyles(),O.showModal(e)},hide:function(e){return e=Q(e)?e:function(){},O.refreshModals(),O.hideModal(e)},showModal:function(e){e=Q(e)?e:function(){},O.is.animating()||!O.is.active()?!1===r.onShow.call(y)?O.verbose("Show callback returned false cancelling show"):(D=O.has.scrollbar(),O.showDimmer(),O.cacheSizes(),D&&O.set.bodyMargin(),O.can.useFlex()?O.remove.legacy():(O.set.legacy(),O.set.modalOffset(),O.debug("Using non-flex legacy modal positioning.")),O.set.screenHeight(),O.set.type(),O.set.clickaway(),!r.allowMultiple&&O.others.active()?O.hideOthers(O.showModal):(x=!1,r.allowMultiple&&(O.others.active()&&h.filter("."+c.active).find(a.dimmer).removeClass("out").addClass("transition fade in active"),r.detachable&&u.detach().appendTo(v)),r.transition&&void 0!==V.fn.transition?(O.debug("Showing modal with css animations"),O.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.showMethod||r.transition)+" in",queue:r.queue,duration:r.transition.showDuration||r.duration,useFailSafe:!0,onComplete:function(){r.onVisible.apply(y),r.keyboardShortcuts&&O.add.keyboardShortcuts(),O.save.focus(),O.set.active(),O.refreshInputs(),requestAnimationFrame(O.set.observeAttributes),e()}})):O.error(d.noTransition))):O.debug("Modal is already visible")},hideModal:function(e,t,n){let i=h.filter("."+c.active).last();if(e=Q(e)?e:function(){},!1===r.onHide.call(y,V(this)))return O.verbose("Hide callback returned false cancelling hide"),x=!1;(O.is.animating()||O.is.active())&&(O.debug("Hiding modal"),r.transition&&void 0!==V.fn.transition?(O.remove.active(),O.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.hideMethod||r.transition)+" out",queue:r.queue,duration:r.transition.hideDuration||r.duration,useFailSafe:!0,onStart:function(){O.others.active()||O.others.animating()||t?r.allowMultiple&&(n?m:i).find(a.dimmer).removeClass("in").addClass("out"):O.hideDimmer(),r.keyboardShortcuts&&!O.others.active()&&O.remove.keyboardShortcuts()},onComplete:function(){O.unbind.scrollLock(),O.remove.active(),r.allowMultiple&&(i.addClass(c.front),u.removeClass(c.front),(n?m:i).find(a.dimmer).removeClass("active")),Q(r.onHidden)&&r.onHidden.call(y),O.remove.dimmerStyles(),O.restore.focus(),e()}})):O.error(d.noTransition))},showDimmer:function(){p.dimmer("is animating")||!p.dimmer("is active")?(D&&(s||v.css("top",p.scrollTop()),O.save.bodyMargin()),O.debug("Showing dimmer"),p.dimmer("show")):O.debug("Dimmer already visible")},hideDimmer:function(){p.dimmer("is animating")||p.dimmer("is active")?(O.unbind.scrollLock(),p.dimmer("hide",function(){D&&O.restore.bodyMargin(),O.remove.clickaway(),O.remove.screenHeight()})):O.debug("Dimmer is not visible cannot hide")},hideAll:function(i){let e=m.filter("."+c.active+", ."+c.animating);if(i=Q(i)?i:function(){},0<e.length){O.debug("Hiding all visible modals");let n=!0;return V(e.get().reverse()).each(function(e,t){n=n&&V(t).modal("hide modal",i,!1,!0)}),n&&O.hideDimmer(),n}},hideOthers:function(e){let t=h.filter("."+c.active+", ."+c.animating);e=Q(e)?e:function(){},0<t.length&&(O.debug("Hiding other modals",h),t.modal("hide modal",e,!0))},others:{active:function(){return 0<h.filter("."+c.active).length},animating:function(){return 0<h.filter("."+c.animating).length}},add:{keyboardShortcuts:function(){O.verbose("Adding keyboard shortcuts"),q.on("keydown"+i,O.event.keyboard)}},save:{focus:function(){let e=V(_.activeElement);0<e.closest(u).length||(g=V(_.activeElement).trigger("blur"))},bodyMargin:function(){S=o.css((s?"margin-":"padding-")+(O.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=s?X.innerWidth-_.documentElement.clientWidth:o[0].offsetWidth-o[0].clientWidth;M=e+t}},restore:{focus:function(){g&&0<g.length&&r.restoreFocus&&g.trigger("focus")},bodyMargin:function(){let n=O.can.leftBodyScrollbar()?"left":"right";o.css((s?"margin-":"padding-")+n,S),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){u.removeClass(c.active)},legacy:function(){u.removeClass(c.legacy)},clickaway:function(){r.detachable||u.off("mousedown"+H),v.off("mousedown"+H),v.off("mouseup"+H)},dimmerStyles:function(){v.removeClass(c.inverted),p.removeClass(c.blurring)},bodyStyle:function(){""===o.attr("style")&&(O.verbose("Removing style attribute"),o.removeAttr("style"))},screenHeight:function(){O.debug("Removing page height"),o.css("height",""),O.remove.bodyStyle()},keyboardShortcuts:function(){O.verbose("Removing keyboard shortcuts"),q.off("keydown"+i)},scrolling:function(){A||p.removeClass(c.scrolling),u.removeClass(c.scrolling)}},cacheSizes:function(){u.addClass(c.loading);var e=u.prop("scrollHeight"),t=u.outerWidth(),n=u.outerHeight();void 0!==O.cache.pageHeight&&0===n||(V.extend(O.cache,{pageHeight:q.outerHeight(),width:t,height:n+r.offset,scrollHeight:e+r.offset,contextHeight:(s?z:p).height()}),O.cache.topOffset=-O.cache.height/2),u.removeClass(c.loading),O.debug("Caching modal and container sizes",O.cache)},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["&'<>]/g,e=>n[e])}},can:{leftBodyScrollbar:function(){return void 0===O.cache.leftBodyScrollbar&&(O.cache.leftBodyScrollbar=O.is.rtl()&&(O.is.iframe&&!O.is.firefox()||O.is.safari())),O.cache.leftBodyScrollbar},useFlex:function(){return"auto"===r.useFlex?r.detachable:(r.useFlex&&!r.detachable&&O.debug("useFlex true in combination with detachable false is not supported"),r.useFlex)},fit:function(){var e=O.cache.contextHeight,t=O.cache.contextHeight/2,n=O.cache.topOffset,i=O.cache.scrollHeight,o=O.cache.height,s=r.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(r.actions)&&0<r.actions.length},scrollbar:function(){return s||"hidden"!==o.css("overflow-y")}},is:{active:function(){return u.hasClass(c.active)},animating:function(){return u.transition("is animating")},scrolling:function(){return p.hasClass(c.scrolling)},rtl:function(){return void 0===O.cache.isRTL&&(O.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===I.attr("dir")||"rtl"===I.css("direction")||"rtl"===o.attr("dir")||"rtl"===o.css("direction")),O.cache.isRTL},safari:function(){return void 0===O.cache.isSafari&&(O.cache.isSafari=/constructor/i.test(X.HTMLElement)||!!X.ApplePaySession),O.cache.isSafari},firefox:function(){return void 0===O.cache.isFirefox&&(O.cache.isFirefox=!!X.InstallTrigger),O.cache.isFirefox},iframe:function(){return!(self===top)}},set:{observeAttributes:function(e){E=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},bodyMargin:function(){let n=O.can.leftBodyScrollbar()?"left":"right";(r.detachable||O.can.fit())&&o.css((s?"margin-":"padding-")+n,M+"px"),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+M+"px)")})},clickaway:function(){r.detachable||u.on("mousedown"+H,O.event.mousedown),v.on("mousedown"+H,O.event.mousedown),v.on("mouseup"+H,O.event.mouseup)},dimmerSettings:function(){if(void 0===V.fn.dimmer)O.error(d.dimmer);else{var t={debug:r.debug,dimmerName:"modals",closable:"auto",useFlex:O.can.useFlex(),duration:{show:r.transition.showDuration||r.duration,hide:r.transition.hideDuration||r.duration}};let e=V.extend(!0,t,r.dimmerSettings);r.inverted&&(e.variation=void 0!==e.variation?e.variation+" inverted":"inverted"),o.dimmer("setting",e)}},dimmerStyles:function(){r.inverted?v.addClass(c.inverted):v.removeClass(c.inverted),r.blurring?p.addClass(c.blurring):p.removeClass(c.blurring)},modalOffset:function(){var e;r.detachable?u.css({marginTop:!u.hasClass("aligned")&&O.can.fit()?-O.cache.height/2:r.padding/2,marginLeft:-O.cache.width/2}):(e=O.can.fit(),u.css({top:!u.hasClass("aligned")&&e?q.scrollTop()+(O.cache.contextHeight-O.cache.height)/2:!e||u.hasClass("top")?q.scrollTop()+r.padding:q.scrollTop()+(O.cache.contextHeight-O.cache.height-r.padding),marginLeft:-O.cache.width/2})),O.verbose("Setting modal offset for legacy mode")},screenHeight:function(){O.can.fit()?o.css("height",""):u.hasClass("bottom")||(O.debug("Modal is taller than page content, resizing page height"),o.css("height",O.cache.height+2*r.padding+"px"))},active:function(){u.addClass(c.active+" "+c.front),h.filter("."+c.active).removeClass(c.front)},scrolling:function(){p.addClass(c.scrolling),u.addClass(c.scrolling),O.unbind.scrollLock()},legacy:function(){u.addClass(c.legacy)},type:function(){O.can.fit()?(O.verbose("Modal fits on screen"),O.others.active()||O.others.animating()||(O.remove.scrolling(),O.bind.scrollLock())):u.hasClass("bottom")?O.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(O.verbose("Modal cannot fit on screen setting to scrolling"),O.set.scrolling())},undetached:function(){p.addClass(c.undetached)}},setting:function(e,t){if(O.debug("Changing setting",e,t),V.isPlainObject(e))V.extend(!0,r,e);else{if(void 0===t)return r[e];V.isPlainObject(r[e])?V.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(V.isPlainObject(e))V.extend(!0,O,e);else{if(void 0===t)return O[e];O[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?O.performance.log(arguments):(O.debug=Function.prototype.bind.call(console.info,console,r.name+":"),O.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?O.performance.log(arguments):(O.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),O.verbose.apply(console,arguments)))},error:function(){r.silent||(O.error=Function.prototype.bind.call(console.error,console,r.name+":"),O.error.apply(console,arguments))},performance:{log:function(e){var t,n;r.performance&&(n=(t=Date.now())-(B||t),B=t,W.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:y,"Execution Time":n})),clearTimeout(O.performance.timer),O.performance.timer=setTimeout(function(){O.performance.display()},500)},display:function(){var e=r.name+":";let n=0;B=!1,clearTimeout(O.performance.timer),V.each(W,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<W.length&&(console.groupCollapsed(e),console.table?console.table(W):V.each(W,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),W=[]}},invoke:function(i,e,t){let o=k,s,a,n;return e=e||K,t=t||y,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,V.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(V.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return a=o[n],!1;{if(!V.isPlainObject(o[t])||e===s)return void 0!==o[t]?a=o[t]:O.error(d.method,i),!1;o=o[t]}}})),Q(a)?n=a.apply(t,e):void 0!==a&&(n=a),Array.isArray(U)?U.push(n):void 0!==U?U=[U,n]:void 0!==n&&(U=n),a}},P?(void 0===k&&(Q(r.templates[j])&&(r.autoShow=!0,r.className.modal=r.className.template,r=V.extend(!0,{},r,r.templates[j].apply(O,K)),c=r.className,r.namespace,l=r.fields,d=r.error),O.initialize()),Q(r.templates[j])||O.invoke(j)):(void 0!==k&&k.invoke("destroy"),O.initialize(),U=u)}),void 0!==U?U:this},V.modal=V.fn.modal,V.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},keys:{space:32,enter:13,escape:27,tab:9},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",closeIcon:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input",innerDimmer:"ui inverted dimmer"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},V.fn.modal.settings.templates={getArguments:function(e){let t=[].slice.call(e);return V.isPlainObject(t[0])?V.extend({handler:function(){},content:"",title:""},t[0]):(Q(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments),n=t.handler;return{title:t.title,content:t.content,onApprove:n,actions:[{text:e.text.ok,class:e.className.ok,click:n}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);function n(){t.handler(!0)}function i(){t.handler(!1)}return{title:t.title,content:t.content,onApprove:n,onDeny:i,actions:[{text:e.text.ok,class:e.className.ok,click:n},{text:e.text.cancel,class:e.className.cancel,click:i}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);function i(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(V(e).val())}function o(){n.handler(null)}return 0===V(V.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+this.helpers.escape(e.className.prompt)+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,onApprove:i,onDeny:o,actions:[{text:e.text.ok,class:e.className.ok,click:i},{text:e.text.cancel,class:e.className.cancel,click:o}]}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Nag
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Nag
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 - Nag
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Nag
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 - Nag
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Nag
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 - Placeholder
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Placeholder
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 - Placeholder
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Placeholder
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 - Popup
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Popup
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 - Popup
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Popup
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1455,8 +1455,7 @@
1455
1455
 
1456
1456
  templates: {
1457
1457
  escape: function (string) {
1458
- const badChars = /["'<>]|&(?![\d#A-Za-z]{1,12};)/g;
1459
- const escape = {
1458
+ const escapeMap = {
1460
1459
  '"': '&quot;',
1461
1460
  '&': '&amp;',
1462
1461
  "'": '&apos;',
@@ -1464,7 +1463,7 @@
1464
1463
  '>': '&gt;',
1465
1464
  };
1466
1465
 
1467
- return String(string).replace(badChars, (chr) => escape[chr]);
1466
+ return String(string).replace(/["&'<>]/g, (chr) => escapeMap[chr]);
1468
1467
  },
1469
1468
  popup: function (text) {
1470
1469
  let html = '';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.13+40d7f14 - Popup
2
+ * # Fomantic-UI 2.10.0-beta.14+ea33639 - Popup
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *