/* ======================================================================== * Bootstrap: dropdown.js v3.4.1 * https://getbootstrap.com/docs/3.4/javascript/#dropdowns * ======================================================================== * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * ======================================================================== */ !function(i){"use strict";function a(t){i(t).on("click.bs.dropdown",this.toggle)}var o='[data-toggle="dropdown"]';function s(t){var e=t.attr("data-target"),e="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?i(document).find(e):null;return e&&e.length?e:t.parent()}function r(a){a&&3===a.which||(i(".dropdown-backdrop").remove(),i(o).each(function(){var t=i(this),e=s(t),n={relatedTarget:this};e.hasClass("open")&&(a&&"click"==a.type&&/input|textarea/i.test(a.target.tagName)&&i.contains(e[0],a.target)||(e.trigger(a=i.Event("hide.bs.dropdown",n)),a.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(i.Event("hidden.bs.dropdown",n)))))}))}a.VERSION="3.4.1",a.prototype.toggle=function(t){var e=i(this);if(!e.is(".disabled, :disabled")){var n=s(e),a=n.hasClass("open");if(r(),!a){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&i(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(i(this)).on("click",r);a={relatedTarget:this};if(n.trigger(t=i.Event("show.bs.dropdown",a)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(i.Event("shown.bs.dropdown",a))}return!1}},a.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=i(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=s(e),a=n.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&n.find(o).trigger("focus"),e.trigger("click");e=n.find(".dropdown-menu li:not(.disabled):visible a");e.length&&(n=e.index(t.target),38==t.which&&0