+ Searcher for Discogs - Settings
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/images/add.png b/src/images/add.png
new file mode 100644
index 0000000..266d17f
Binary files /dev/null and b/src/images/add.png differ
diff --git a/src/images/deezer.png b/src/images/deezer.png
new file mode 100644
index 0000000..13d716d
Binary files /dev/null and b/src/images/deezer.png differ
diff --git a/src/images/ebay.png b/src/images/ebay.png
new file mode 100644
index 0000000..266e98f
Binary files /dev/null and b/src/images/ebay.png differ
diff --git a/src/images/eye.png b/src/images/eye.png
new file mode 100644
index 0000000..6a5726a
Binary files /dev/null and b/src/images/eye.png differ
diff --git a/src/images/icon.png b/src/images/icon.png
new file mode 100644
index 0000000..cef6dab
Binary files /dev/null and b/src/images/icon.png differ
diff --git a/src/images/icon16.png b/src/images/icon16.png
new file mode 100644
index 0000000..64b7768
Binary files /dev/null and b/src/images/icon16.png differ
diff --git a/src/images/icon48.png b/src/images/icon48.png
new file mode 100644
index 0000000..3da7238
Binary files /dev/null and b/src/images/icon48.png differ
diff --git a/src/images/info.png b/src/images/info.png
new file mode 100644
index 0000000..3294327
Binary files /dev/null and b/src/images/info.png differ
diff --git a/src/images/next.png b/src/images/next.png
new file mode 100644
index 0000000..4b6c0cd
Binary files /dev/null and b/src/images/next.png differ
diff --git a/src/images/prev.png b/src/images/prev.png
new file mode 100644
index 0000000..5c2b961
Binary files /dev/null and b/src/images/prev.png differ
diff --git a/src/images/settings.png b/src/images/settings.png
new file mode 100644
index 0000000..ce58832
Binary files /dev/null and b/src/images/settings.png differ
diff --git a/src/images/signin-light.png b/src/images/signin-light.png
new file mode 100644
index 0000000..29ab511
Binary files /dev/null and b/src/images/signin-light.png differ
diff --git a/src/images/spotify.png b/src/images/spotify.png
new file mode 100644
index 0000000..04d12a4
Binary files /dev/null and b/src/images/spotify.png differ
diff --git a/src/images/youtube.png b/src/images/youtube.png
new file mode 100644
index 0000000..ec529a3
Binary files /dev/null and b/src/images/youtube.png differ
diff --git a/src/js/libs/bootstrap.js b/src/js/libs/bootstrap.js
new file mode 100644
index 0000000..9d4c2e2
--- /dev/null
+++ b/src/js/libs/bootstrap.js
@@ -0,0 +1,816 @@
+/*!
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
+ * Copyright 2011-2018 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ */
+
+/*!
+ * Generated using the Bootstrap Customizer (https://getbootstrap.com/docs/3.3/customize/?id=96f4d2777004b50417b75efcad08820b)
+ * Config saved to config.json and https://gist.github.com/96f4d2777004b50417b75efcad08820b
+ */
+if (typeof jQuery === 'undefined') {
+ throw new Error('Bootstrap\'s JavaScript requires jQuery')
+}
++function ($) {
+ 'use strict';
+ var version = $.fn.jquery.split(' ')[0].split('.')
+ if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {
+ throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
+ }
+}(jQuery);
+
+/* ========================================================================
+ * Bootstrap: dropdown.js v3.3.7
+ * http://getbootstrap.com/javascript/#dropdowns
+ * ========================================================================
+ * Copyright 2011-2016 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ * ======================================================================== */
+
+
++function ($) {
+ 'use strict';
+
+ // DROPDOWN CLASS DEFINITION
+ // =========================
+
+ var backdrop = '.dropdown-backdrop'
+ var toggle = '[data-toggle="dropdown"]'
+ var Dropdown = function (element) {
+ $(element).on('click.bs.dropdown', this.toggle)
+ }
+
+ Dropdown.VERSION = '3.3.7'
+
+ function getParent($this) {
+ var selector = $this.attr('data-target')
+
+ if (!selector) {
+ selector = $this.attr('href')
+ selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
+ }
+
+ var $parent = selector && $(selector)
+
+ return $parent && $parent.length ? $parent : $this.parent()
+ }
+
+ function clearMenus(e) {
+ if (e && e.which === 3) return
+ $(backdrop).remove()
+ $(toggle).each(function () {
+ var $this = $(this)
+ var $parent = getParent($this)
+ var relatedTarget = { relatedTarget: this }
+
+ if (!$parent.hasClass('open')) return
+
+ if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
+
+ $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
+
+ if (e.isDefaultPrevented()) return
+
+ $this.attr('aria-expanded', 'false')
+ $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget))
+ })
+ }
+
+ Dropdown.prototype.toggle = function (e) {
+ var $this = $(this)
+
+ if ($this.is('.disabled, :disabled')) return
+
+ var $parent = getParent($this)
+ var isActive = $parent.hasClass('open')
+
+ clearMenus()
+
+ if (!isActive) {
+ if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
+ // if mobile we use a backdrop because click events don't delegate
+ $(document.createElement('div'))
+ .addClass('dropdown-backdrop')
+ .insertAfter($(this))
+ .on('click', clearMenus)
+ }
+
+ var relatedTarget = { relatedTarget: this }
+ $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
+
+ if (e.isDefaultPrevented()) return
+
+ $this
+ .trigger('focus')
+ .attr('aria-expanded', 'true')
+
+ $parent
+ .toggleClass('open')
+ .trigger($.Event('shown.bs.dropdown', relatedTarget))
+ }
+
+ return false
+ }
+
+ Dropdown.prototype.keydown = function (e) {
+ if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
+
+ var $this = $(this)
+
+ e.preventDefault()
+ e.stopPropagation()
+
+ if ($this.is('.disabled, :disabled')) return
+
+ var $parent = getParent($this)
+ var isActive = $parent.hasClass('open')
+
+ if (!isActive && e.which != 27 || isActive && e.which == 27) {
+ if (e.which == 27) $parent.find(toggle).trigger('focus')
+ return $this.trigger('click')
+ }
+
+ var desc = ' li:not(.disabled):visible a'
+ var $items = $parent.find('.dropdown-menu' + desc)
+
+ if (!$items.length) return
+
+ var index = $items.index(e.target)
+
+ if (e.which == 38 && index > 0) index-- // up
+ if (e.which == 40 && index < $items.length - 1) index++ // down
+ if (!~index) index = 0
+
+ $items.eq(index).trigger('focus')
+ }
+
+
+ // DROPDOWN PLUGIN DEFINITION
+ // ==========================
+
+ function Plugin(option) {
+ return this.each(function () {
+ var $this = $(this)
+ var data = $this.data('bs.dropdown')
+
+ if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
+ if (typeof option == 'string') data[option].call($this)
+ })
+ }
+
+ var old = $.fn.dropdown
+
+ $.fn.dropdown = Plugin
+ $.fn.dropdown.Constructor = Dropdown
+
+
+ // DROPDOWN NO CONFLICT
+ // ====================
+
+ $.fn.dropdown.noConflict = function () {
+ $.fn.dropdown = old
+ return this
+ }
+
+
+ // APPLY TO STANDARD DROPDOWN ELEMENTS
+ // ===================================
+
+ $(document)
+ .on('click.bs.dropdown.data-api', clearMenus)
+ .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
+ .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
+ .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
+ .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)
+
+}(jQuery);
+
+/* ========================================================================
+ * Bootstrap: tooltip.js v3.3.7
+ * http://getbootstrap.com/javascript/#tooltip
+ * Inspired by the original jQuery.tipsy by Jason Frame
+ * ========================================================================
+ * Copyright 2011-2016 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ * ======================================================================== */
+
+
++function ($) {
+ 'use strict';
+
+ // TOOLTIP PUBLIC CLASS DEFINITION
+ // ===============================
+
+ var Tooltip = function (element, options) {
+ this.type = null
+ this.options = null
+ this.enabled = null
+ this.timeout = null
+ this.hoverState = null
+ this.$element = null
+ this.inState = null
+
+ this.init('tooltip', element, options)
+ }
+
+ Tooltip.VERSION = '3.3.7'
+
+ Tooltip.TRANSITION_DURATION = 150
+
+ Tooltip.DEFAULTS = {
+ animation: true,
+ placement: 'top',
+ selector: false,
+ template: '
',
+ trigger: 'hover focus',
+ title: '',
+ delay: 0,
+ html: false,
+ container: false,
+ viewport: {
+ selector: 'body',
+ padding: 0
+ }
+ }
+
+ Tooltip.prototype.init = function (type, element, options) {
+ this.enabled = true
+ this.type = type
+ this.$element = $(element)
+ this.options = this.getOptions(options)
+ this.$viewport = this.options.viewport && $($.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : (this.options.viewport.selector || this.options.viewport))
+ this.inState = { click: false, hover: false, focus: false }
+
+ if (this.$element[0] instanceof document.constructor && !this.options.selector) {
+ throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!')
+ }
+
+ var triggers = this.options.trigger.split(' ')
+
+ for (var i = triggers.length; i--;) {
+ var trigger = triggers[i]
+
+ if (trigger == 'click') {
+ this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this))
+ } else if (trigger != 'manual') {
+ var eventIn = trigger == 'hover' ? 'mouseenter' : 'focusin'
+ var eventOut = trigger == 'hover' ? 'mouseleave' : 'focusout'
+
+ this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this))
+ this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this))
+ }
+ }
+
+ this.options.selector ?
+ (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
+ this.fixTitle()
+ }
+
+ Tooltip.prototype.getDefaults = function () {
+ return Tooltip.DEFAULTS
+ }
+
+ Tooltip.prototype.getOptions = function (options) {
+ options = $.extend({}, this.getDefaults(), this.$element.data(), options)
+
+ if (options.delay && typeof options.delay == 'number') {
+ options.delay = {
+ show: options.delay,
+ hide: options.delay
+ }
+ }
+
+ return options
+ }
+
+ Tooltip.prototype.getDelegateOptions = function () {
+ var options = {}
+ var defaults = this.getDefaults()
+
+ this._options && $.each(this._options, function (key, value) {
+ if (defaults[key] != value) options[key] = value
+ })
+
+ return options
+ }
+
+ Tooltip.prototype.enter = function (obj) {
+ var self = obj instanceof this.constructor ?
+ obj : $(obj.currentTarget).data('bs.' + this.type)
+
+ if (!self) {
+ self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
+ $(obj.currentTarget).data('bs.' + this.type, self)
+ }
+
+ if (obj instanceof $.Event) {
+ self.inState[obj.type == 'focusin' ? 'focus' : 'hover'] = true
+ }
+
+ if (self.tip().hasClass('in') || self.hoverState == 'in') {
+ self.hoverState = 'in'
+ return
+ }
+
+ clearTimeout(self.timeout)
+
+ self.hoverState = 'in'
+
+ if (!self.options.delay || !self.options.delay.show) return self.show()
+
+ self.timeout = setTimeout(function () {
+ if (self.hoverState == 'in') self.show()
+ }, self.options.delay.show)
+ }
+
+ Tooltip.prototype.isInStateTrue = function () {
+ for (var key in this.inState) {
+ if (this.inState[key]) return true
+ }
+
+ return false
+ }
+
+ Tooltip.prototype.leave = function (obj) {
+ var self = obj instanceof this.constructor ?
+ obj : $(obj.currentTarget).data('bs.' + this.type)
+
+ if (!self) {
+ self = new this.constructor(obj.currentTarget, this.getDelegateOptions())
+ $(obj.currentTarget).data('bs.' + this.type, self)
+ }
+
+ if (obj instanceof $.Event) {
+ self.inState[obj.type == 'focusout' ? 'focus' : 'hover'] = false
+ }
+
+ if (self.isInStateTrue()) return
+
+ clearTimeout(self.timeout)
+
+ self.hoverState = 'out'
+
+ if (!self.options.delay || !self.options.delay.hide) return self.hide()
+
+ self.timeout = setTimeout(function () {
+ if (self.hoverState == 'out') self.hide()
+ }, self.options.delay.hide)
+ }
+
+ Tooltip.prototype.show = function () {
+ var e = $.Event('show.bs.' + this.type)
+
+ if (this.hasContent() && this.enabled) {
+ this.$element.trigger(e)
+
+ var inDom = $.contains(this.$element[0].ownerDocument.documentElement, this.$element[0])
+ if (e.isDefaultPrevented() || !inDom) return
+ var that = this
+
+ var $tip = this.tip()
+
+ var tipId = this.getUID(this.type)
+
+ this.setContent()
+ $tip.attr('id', tipId)
+ this.$element.attr('aria-describedby', tipId)
+
+ if (this.options.animation) $tip.addClass('fade')
+
+ var placement = typeof this.options.placement == 'function' ?
+ this.options.placement.call(this, $tip[0], this.$element[0]) :
+ this.options.placement
+
+ var autoToken = /\s?auto?\s?/i
+ var autoPlace = autoToken.test(placement)
+ if (autoPlace) placement = placement.replace(autoToken, '') || 'top'
+
+ $tip
+ .detach()
+ .css({ top: 0, left: 0, display: 'block' })
+ .addClass(placement)
+ .data('bs.' + this.type, this)
+
+ this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
+ this.$element.trigger('inserted.bs.' + this.type)
+
+ var pos = this.getPosition()
+ var actualWidth = $tip[0].offsetWidth
+ var actualHeight = $tip[0].offsetHeight
+
+ if (autoPlace) {
+ var orgPlacement = placement
+ var viewportDim = this.getPosition(this.$viewport)
+
+ placement = placement == 'bottom' && pos.bottom + actualHeight > viewportDim.bottom ? 'top' :
+ placement == 'top' && pos.top - actualHeight < viewportDim.top ? 'bottom' :
+ placement == 'right' && pos.right + actualWidth > viewportDim.width ? 'left' :
+ placement == 'left' && pos.left - actualWidth < viewportDim.left ? 'right' :
+ placement
+
+ $tip
+ .removeClass(orgPlacement)
+ .addClass(placement)
+ }
+
+ var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight)
+
+ this.applyPlacement(calculatedOffset, placement)
+
+ var complete = function () {
+ var prevHoverState = that.hoverState
+ that.$element.trigger('shown.bs.' + that.type)
+ that.hoverState = null
+
+ if (prevHoverState == 'out') that.leave(that)
+ }
+
+ $.support.transition && this.$tip.hasClass('fade') ?
+ $tip
+ .one('bsTransitionEnd', complete)
+ .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
+ complete()
+ }
+ }
+
+ Tooltip.prototype.applyPlacement = function (offset, placement) {
+ var $tip = this.tip()
+ var width = $tip[0].offsetWidth
+ var height = $tip[0].offsetHeight
+
+ // manually read margins because getBoundingClientRect includes difference
+ var marginTop = parseInt($tip.css('margin-top'), 10)
+ var marginLeft = parseInt($tip.css('margin-left'), 10)
+
+ // we must check for NaN for ie 8/9
+ if (isNaN(marginTop)) marginTop = 0
+ if (isNaN(marginLeft)) marginLeft = 0
+
+ offset.top += marginTop
+ offset.left += marginLeft
+
+ // $.fn.offset doesn't round pixel values
+ // so we use setOffset directly with our own function B-0
+ $.offset.setOffset($tip[0], $.extend({
+ using: function (props) {
+ $tip.css({
+ top: Math.round(props.top),
+ left: Math.round(props.left)
+ })
+ }
+ }, offset), 0)
+
+ $tip.addClass('in')
+
+ // check to see if placing tip in new offset caused the tip to resize itself
+ var actualWidth = $tip[0].offsetWidth
+ var actualHeight = $tip[0].offsetHeight
+
+ if (placement == 'top' && actualHeight != height) {
+ offset.top = offset.top + height - actualHeight
+ }
+
+ var delta = this.getViewportAdjustedDelta(placement, offset, actualWidth, actualHeight)
+
+ if (delta.left) offset.left += delta.left
+ else offset.top += delta.top
+
+ var isVertical = /top|bottom/.test(placement)
+ var arrowDelta = isVertical ? delta.left * 2 - width + actualWidth : delta.top * 2 - height + actualHeight
+ var arrowOffsetPosition = isVertical ? 'offsetWidth' : 'offsetHeight'
+
+ $tip.offset(offset)
+ this.replaceArrow(arrowDelta, $tip[0][arrowOffsetPosition], isVertical)
+ }
+
+ Tooltip.prototype.replaceArrow = function (delta, dimension, isVertical) {
+ this.arrow()
+ .css(isVertical ? 'left' : 'top', 50 * (1 - delta / dimension) + '%')
+ .css(isVertical ? 'top' : 'left', '')
+ }
+
+ Tooltip.prototype.setContent = function () {
+ var $tip = this.tip()
+ var title = this.getTitle()
+
+ $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title)
+ $tip.removeClass('fade in top bottom left right')
+ }
+
+ Tooltip.prototype.hide = function (callback) {
+ var that = this
+ var $tip = $(this.$tip)
+ var e = $.Event('hide.bs.' + this.type)
+
+ function complete() {
+ if (that.hoverState != 'in') $tip.detach()
+ if (that.$element) { // TODO: Check whether guarding this code with this `if` is really necessary.
+ that.$element
+ .removeAttr('aria-describedby')
+ .trigger('hidden.bs.' + that.type)
+ }
+ callback && callback()
+ }
+
+ this.$element.trigger(e)
+
+ if (e.isDefaultPrevented()) return
+
+ $tip.removeClass('in')
+
+ $.support.transition && $tip.hasClass('fade') ?
+ $tip
+ .one('bsTransitionEnd', complete)
+ .emulateTransitionEnd(Tooltip.TRANSITION_DURATION) :
+ complete()
+
+ this.hoverState = null
+
+ return this
+ }
+
+ Tooltip.prototype.fixTitle = function () {
+ var $e = this.$element
+ if ($e.attr('title') || typeof $e.attr('data-original-title') != 'string') {
+ $e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
+ }
+ }
+
+ Tooltip.prototype.hasContent = function () {
+ return this.getTitle()
+ }
+
+ Tooltip.prototype.getPosition = function ($element) {
+ $element = $element || this.$element
+
+ var el = $element[0]
+ var isBody = el.tagName == 'BODY'
+
+ var elRect = el.getBoundingClientRect()
+ if (elRect.width == null) {
+ // width and height are missing in IE8, so compute them manually; see https://github.com/twbs/bootstrap/issues/14093
+ elRect = $.extend({}, elRect, { width: elRect.right - elRect.left, height: elRect.bottom - elRect.top })
+ }
+ var isSvg = window.SVGElement && el instanceof window.SVGElement
+ // Avoid using $.offset() on SVGs since it gives incorrect results in jQuery 3.
+ // See https://github.com/twbs/bootstrap/issues/20280
+ var elOffset = isBody ? { top: 0, left: 0 } : (isSvg ? null : $element.offset())
+ var scroll = { scroll: isBody ? document.documentElement.scrollTop || document.body.scrollTop : $element.scrollTop() }
+ var outerDims = isBody ? { width: $(window).width(), height: $(window).height() } : null
+
+ return $.extend({}, elRect, scroll, outerDims, elOffset)
+ }
+
+ Tooltip.prototype.getCalculatedOffset = function (placement, pos, actualWidth, actualHeight) {
+ return placement == 'bottom' ? { top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ placement == 'top' ? { top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2 } :
+ placement == 'left' ? { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth } :
+ /* placement == 'right' */ { top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width }
+
+ }
+
+ Tooltip.prototype.getViewportAdjustedDelta = function (placement, pos, actualWidth, actualHeight) {
+ var delta = { top: 0, left: 0 }
+ if (!this.$viewport) return delta
+
+ var viewportPadding = this.options.viewport && this.options.viewport.padding || 0
+ var viewportDimensions = this.getPosition(this.$viewport)
+
+ if (/right|left/.test(placement)) {
+ var topEdgeOffset = pos.top - viewportPadding - viewportDimensions.scroll
+ var bottomEdgeOffset = pos.top + viewportPadding - viewportDimensions.scroll + actualHeight
+ if (topEdgeOffset < viewportDimensions.top) { // top overflow
+ delta.top = viewportDimensions.top - topEdgeOffset
+ } else if (bottomEdgeOffset > viewportDimensions.top + viewportDimensions.height) { // bottom overflow
+ delta.top = viewportDimensions.top + viewportDimensions.height - bottomEdgeOffset
+ }
+ } else {
+ var leftEdgeOffset = pos.left - viewportPadding
+ var rightEdgeOffset = pos.left + viewportPadding + actualWidth
+ if (leftEdgeOffset < viewportDimensions.left) { // left overflow
+ delta.left = viewportDimensions.left - leftEdgeOffset
+ } else if (rightEdgeOffset > viewportDimensions.right) { // right overflow
+ delta.left = viewportDimensions.left + viewportDimensions.width - rightEdgeOffset
+ }
+ }
+
+ return delta
+ }
+
+ Tooltip.prototype.getTitle = function () {
+ var title
+ var $e = this.$element
+ var o = this.options
+
+ title = $e.attr('data-original-title')
+ || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
+
+ return title
+ }
+
+ Tooltip.prototype.getUID = function (prefix) {
+ do prefix += ~~(Math.random() * 1000000)
+ while (document.getElementById(prefix))
+ return prefix
+ }
+
+ Tooltip.prototype.tip = function () {
+ if (!this.$tip) {
+ this.$tip = $(this.options.template)
+ if (this.$tip.length != 1) {
+ throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!')
+ }
+ }
+ return this.$tip
+ }
+
+ Tooltip.prototype.arrow = function () {
+ return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'))
+ }
+
+ Tooltip.prototype.enable = function () {
+ this.enabled = true
+ }
+
+ Tooltip.prototype.disable = function () {
+ this.enabled = false
+ }
+
+ Tooltip.prototype.toggleEnabled = function () {
+ this.enabled = !this.enabled
+ }
+
+ Tooltip.prototype.toggle = function (e) {
+ var self = this
+ if (e) {
+ self = $(e.currentTarget).data('bs.' + this.type)
+ if (!self) {
+ self = new this.constructor(e.currentTarget, this.getDelegateOptions())
+ $(e.currentTarget).data('bs.' + this.type, self)
+ }
+ }
+
+ if (e) {
+ self.inState.click = !self.inState.click
+ if (self.isInStateTrue()) self.enter(self)
+ else self.leave(self)
+ } else {
+ self.tip().hasClass('in') ? self.leave(self) : self.enter(self)
+ }
+ }
+
+ Tooltip.prototype.destroy = function () {
+ var that = this
+ clearTimeout(this.timeout)
+ this.hide(function () {
+ that.$element.off('.' + that.type).removeData('bs.' + that.type)
+ if (that.$tip) {
+ that.$tip.detach()
+ }
+ that.$tip = null
+ that.$arrow = null
+ that.$viewport = null
+ that.$element = null
+ })
+ }
+
+
+ // TOOLTIP PLUGIN DEFINITION
+ // =========================
+
+ function Plugin(option) {
+ return this.each(function () {
+ var $this = $(this)
+ var data = $this.data('bs.tooltip')
+ var options = typeof option == 'object' && option
+
+ if (!data && /destroy|hide/.test(option)) return
+ if (!data) $this.data('bs.tooltip', (data = new Tooltip(this, options)))
+ if (typeof option == 'string') data[option]()
+ })
+ }
+
+ var old = $.fn.tooltip
+
+ $.fn.tooltip = Plugin
+ $.fn.tooltip.Constructor = Tooltip
+
+
+ // TOOLTIP NO CONFLICT
+ // ===================
+
+ $.fn.tooltip.noConflict = function () {
+ $.fn.tooltip = old
+ return this
+ }
+
+}(jQuery);
+
+/* ========================================================================
+ * Bootstrap: popover.js v3.3.7
+ * http://getbootstrap.com/javascript/#popovers
+ * ========================================================================
+ * Copyright 2011-2016 Twitter, Inc.
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
+ * ======================================================================== */
+
+
++function ($) {
+ 'use strict';
+
+ // POPOVER PUBLIC CLASS DEFINITION
+ // ===============================
+
+ var Popover = function (element, options) {
+ this.init('popover', element, options)
+ }
+
+ if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
+
+ Popover.VERSION = '3.3.7'
+
+ Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
+ placement: 'right',
+ trigger: 'click',
+ content: '',
+ template: '
'
+ })
+
+
+ // NOTE: POPOVER EXTENDS tooltip.js
+ // ================================
+
+ Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
+
+ Popover.prototype.constructor = Popover
+
+ Popover.prototype.getDefaults = function () {
+ return Popover.DEFAULTS
+ }
+
+ Popover.prototype.setContent = function () {
+ var $tip = this.tip()
+ var title = this.getTitle()
+ var content = this.getContent()
+
+ $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
+ $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
+ this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
+ ](content)
+
+ $tip.removeClass('fade top bottom left right in')
+
+ // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
+ // this manually by checking the contents.
+ if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
+ }
+
+ Popover.prototype.hasContent = function () {
+ return this.getTitle() || this.getContent()
+ }
+
+ Popover.prototype.getContent = function () {
+ var $e = this.$element
+ var o = this.options
+
+ return $e.attr('data-content')
+ || (typeof o.content == 'function' ?
+ o.content.call($e[0]) :
+ o.content)
+ }
+
+ Popover.prototype.arrow = function () {
+ return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
+ }
+
+
+ // POPOVER PLUGIN DEFINITION
+ // =========================
+
+ function Plugin(option) {
+ return this.each(function () {
+ var $this = $(this)
+ var data = $this.data('bs.popover')
+ var options = typeof option == 'object' && option
+
+ if (!data && /destroy|hide/.test(option)) return
+ if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
+ if (typeof option == 'string') data[option]()
+ })
+ }
+
+ var old = $.fn.popover
+
+ $.fn.popover = Plugin
+ $.fn.popover.Constructor = Popover
+
+
+ // POPOVER NO CONFLICT
+ // ===================
+
+ $.fn.popover.noConflict = function () {
+ $.fn.popover = old
+ return this
+ }
+
+}(jQuery);
diff --git a/src/js/libs/ga.js b/src/js/libs/ga.js
new file mode 100644
index 0000000..740e773
--- /dev/null
+++ b/src/js/libs/ga.js
@@ -0,0 +1,230 @@
+(function () {
+ var k = this, l = function (a, b) { a = a.split("."); var c = k; a[0] in c || "undefined" == typeof c.execScript || c.execScript("var " + a[0]); for (var d; a.length && (d = a.shift());)a.length || void 0 === b ? c = c[d] && c[d] !== Object.prototype[d] ? c[d] : c[d] = {} : c[d] = b }; var m = function (a, b) { for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]) }, n = function (a) { for (var b in a) if (a.hasOwnProperty(b)) return !0; return !1 }; var q = /^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i; var r = window, t = document, u = function (a, b) { t.addEventListener ? t.addEventListener(a, b, !1) : t.attachEvent && t.attachEvent("on" + a, b) }; var v = /:[0-9]+$/, x = function (a, b) {
+ b && (b = String(b).toLowerCase()); if ("protocol" === b || "port" === b) a.protocol = w(a.protocol) || w(r.location.protocol); "port" === b ? a.port = String(Number(a.hostname ? a.port : r.location.port) || ("http" == a.protocol ? 80 : "https" == a.protocol ? 443 : "")) : "host" === b && (a.hostname = (a.hostname || r.location.hostname).replace(v, "").toLowerCase()); var c = w(a.protocol); b && (b = String(b).toLowerCase()); switch (b) {
+ case "url_no_fragment": b = ""; a && a.href && (b = a.href.indexOf("#"), b = 0 > b ? a.href : a.href.substr(0,
+ b)); a = b; break; case "protocol": a = c; break; case "host": a = a.hostname.replace(v, "").toLowerCase(); break; case "port": a = String(Number(a.port) || ("http" == c ? 80 : "https" == c ? 443 : "")); break; case "path": a = "/" == a.pathname.substr(0, 1) ? a.pathname : "/" + a.pathname; a = a.split("/"); a: if (b = a[a.length - 1], c = [], Array.prototype.indexOf) b = c.indexOf(b), b = "number" == typeof b ? b : -1; else { for (var d = 0; d < c.length; d++)if (c[d] === b) { b = d; break a } b = -1 } 0 <= b && (a[a.length - 1] = ""); a = a.join("/"); break; case "query": a = a.search.replace("?", ""); break;
+ case "extension": a = a.pathname.split("."); a = 1 < a.length ? a[a.length - 1] : ""; a = a.split("/")[0]; break; case "fragment": a = a.hash.replace("#", ""); break; default: a = a && a.href
+ }return a
+ }, w = function (a) { return a ? a.replace(":", "").toLowerCase() : "" }, y = function (a) { var b = t.createElement("a"); a && (b.href = a); a = b.pathname; "/" !== a[0] && (a = "/" + a); var c = b.hostname.replace(v, ""); return { href: b.href, protocol: b.protocol, host: b.host, hostname: c, pathname: a, search: b.search, hash: b.hash, port: b.port } }; function z() { for (var a = A, b = {}, c = 0; c < a.length; ++c)b[a[c]] = c; return b } function B() { var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; a += a.toLowerCase() + "0123456789-_"; return a + "." }
+ var A, C, D = function (a) { A = A || B(); C = C || z(); for (var b = [], c = 0; c < a.length; c += 3) { var d = c + 1 < a.length, e = c + 2 < a.length, g = a.charCodeAt(c), f = d ? a.charCodeAt(c + 1) : 0, h = e ? a.charCodeAt(c + 2) : 0, p = g >> 2; g = (g & 3) << 4 | f >> 4; f = (f & 15) << 2 | h >> 6; h &= 63; e || (h = 64, d || (f = 64)); b.push(A[p], A[g], A[f], A[h]) } return b.join("") }, E = function (a) {
+ function b(b) { for (; d < a.length;) { var c = a.charAt(d++), e = C[c]; if (null != e) return e; if (!/^[\s\xa0]*$/.test(c)) throw Error("Unknown base64 encoding at char: " + c); } return b } A = A || B(); C = C || z(); for (var c = "", d = 0; ;) {
+ var e =
+ b(-1), g = b(0), f = b(64), h = b(64); if (64 === h && -1 === e) return c; c += String.fromCharCode(e << 2 | g >> 4); 64 != f && (c += String.fromCharCode(g << 4 & 240 | f >> 2), 64 != h && (c += String.fromCharCode(f << 6 & 192 | h)))
+ }
+ }; var F; function G(a, b) { if (!a || b === t.location.hostname) return !1; for (var c = 0; c < a.length; c++)if (a[c] instanceof RegExp) { if (a[c].test(b)) return !0 } else if (0 <= b.indexOf(a[c])) return !0; return !1 } var H = function () { var a = {}; var b = r.google_tag_data; r.google_tag_data = void 0 === b ? a : b; a = r.google_tag_data; b = a.gl; b && b.decorators || (b = { decorators: [] }, a.gl = b); return b }; var I = /(.*?)\*(.*?)\*(.*)/, J = /([^?#]+)(\?[^#]*)?(#.*)?/, K = /(.*?)(^|&)_gl=([^&]*)&?(.*)/, M = function (a) { var b = [], c; for (c in a) if (a.hasOwnProperty(c)) { var d = a[c]; void 0 !== d && d === d && null !== d && "[object Object]" !== d.toString() && (b.push(c), b.push(D(String(d)))) } a = b.join("*"); return ["1", L(a), a].join("*") }, L = function (a, b) {
+ a = [window.navigator.userAgent, (new Date).getTimezoneOffset(), window.navigator.userLanguage || window.navigator.language, Math.floor((new Date).getTime() / 60 / 1E3) - (void 0 === b ? 0 : b), a].join("*");
+ if (!(b = F)) { b = Array(256); for (var c = 0; 256 > c; c++) { for (var d = c, e = 0; 8 > e; e++)d = d & 1 ? d >>> 1 ^ 3988292384 : d >>> 1; b[c] = d } } F = b; b = 4294967295; for (c = 0; c < a.length; c++)b = b >>> 8 ^ F[(b ^ a.charCodeAt(c)) & 255]; return ((b ^ -1) >>> 0).toString(36)
+ }, P = function (a) {
+ return function (b) {
+ var c = y(r.location.href), d = c.search.replace("?", ""); a: { var e = d.split("&"); for (var g = 0; g < e.length; g++) { var f = e[g].split("="); if ("_gl" === decodeURIComponent(f[0]).replace(/\+/g, " ")) { e = f.slice(1).join("="); break a } } e = void 0 } b.query = N(e || "") || {}; e = x(c, "fragment");
+ g = e.match(K); b.fragment = N(g && g[3] || "") || {}; a && O(c, d, e)
+ }
+ }; function Q(a) { var b = K.exec(a); if (b) { var c = b[2], d = b[4]; a = b[1]; d && (a = a + c + d) } return a }
+ var O = function (a, b, c) { function d(a, b) { a = Q(a); a.length && (a = b + a); return a } r.history && r.history.replaceState && (K.test(b) || K.test(c)) && (a = x(a, "path"), b = d(b, "?"), c = d(c, "#"), r.history.replaceState({}, void 0, "" + a + b + c)) }, N = function (a) {
+ var b = void 0 === b ? 3 : b; try {
+ if (a) {
+ a: { for (var c = 0; 3 > c; ++c) { var d = I.exec(a); if (d) { var e = d; break a } a = decodeURIComponent(a) } e = void 0 } if (e && "1" === e[1]) {
+ var g = e[2], f = e[3]; a: { for (e = 0; e < b; ++e)if (g === L(f, e)) { var h = !0; break a } h = !1 } if (h) {
+ b = {}; var p = f ? f.split("*") : []; for (f = 0; f < p.length; f +=
+ 2)b[p[f]] = E(p[f + 1]); return b
+ }
+ }
+ }
+ } catch (X) { }
+ }; function R(a, b, c) { function d(a) { a = Q(a); var b = a.charAt(a.length - 1); a && "&" !== b && (a += "&"); return a + f } c = void 0 === c ? !1 : c; var e = J.exec(b); if (!e) return ""; b = e[1]; var g = e[2] || ""; e = e[3] || ""; var f = "_gl=" + a; c ? e = "#" + d(e.substring(1)) : g = "?" + d(g.substring(1)); return "" + b + g + e }
+ function S(a, b, c) { for (var d = {}, e = {}, g = H().decorators, f = 0; f < g.length; ++f) { var h = g[f]; (!c || h.forms) && G(h.domains, b) && (h.fragment ? m(e, h.callback()) : m(d, h.callback())) } n(d) && (b = M(d), c ? T(b, a) : U(b, a, !1)); !c && n(e) && (c = M(e), U(c, a, !0)) } function U(a, b, c) { b.href && (a = R(a, b.href, void 0 === c ? !1 : c), q.test(a) && (b.href = a)) }
+ function T(a, b) { if (b && b.action) { var c = (b.method || "").toLowerCase(); if ("get" === c) { c = b.childNodes || []; for (var d = !1, e = 0; e < c.length; e++) { var g = c[e]; if ("_gl" === g.name) { g.setAttribute("value", a); d = !0; break } } d || (c = t.createElement("input"), c.setAttribute("type", "hidden"), c.setAttribute("name", "_gl"), c.setAttribute("value", a), b.appendChild(c)) } else "post" === c && (a = R(a, b.action), q.test(a) && (b.action = a)) } }
+ var V = function (a) { try { a: { var b = a.target || a.srcElement || {}; for (a = 100; b && 0 < a;) { if (b.href && b.nodeName.match(/^a(?:rea)?$/i)) { var c = b; break a } b = b.parentNode; a-- } c = null } if (c) { var d = c.protocol; "http:" !== d && "https:" !== d || S(c, c.hostname, !1) } } catch (e) { } }, W = function (a) { try { var b = a.target || a.srcElement || {}; if (b.action) { var c = x(y(b.action), "host"); S(b, c, !0) } } catch (d) { } }; l("google_tag_data.glBridge.auto", function (a, b, c, d) { var e = H(); e.init || (u("mousedown", V), u("keyup", V), u("submit", W), e.init = !0); a = { callback: a, domains: b, fragment: "fragment" === c, forms: !!d }; H().decorators.push(a) }); l("google_tag_data.glBridge.decorate", function (a, b, c) { c = !!c; a = M(a); if (b.tagName) { if ("a" == b.tagName.toLowerCase()) return U(a, b, c); if ("form" == b.tagName.toLowerCase()) return T(a, b) } if ("string" == typeof b) return R(a, b, c) }); l("google_tag_data.glBridge.generate", M);
+ l("google_tag_data.glBridge.get", function (a, b) { var c = P(!!b); b = H(); b.data || (b.data = { query: {}, fragment: {} }, c(b.data)); c = {}; if (b = b.data) m(c, b.query), a && m(c, b.fragment); return c });
+})(window);
+(function () {
+ function La(a) { var b = 1, c; if (a) for (b = 0, c = a.length - 1; 0 <= c; c--) { var d = a.charCodeAt(c); b = (b << 6 & 268435455) + d + (d << 14); d = b & 266338304; b = 0 != d ? b ^ d >> 21 : b } return b }; var $c = function (a) { this.w = a || [] }; $c.prototype.set = function (a) { this.w[a] = !0 }; $c.prototype.encode = function () { for (var a = [], b = 0; b < this.w.length; b++)this.w[b] && (a[Math.floor(b / 6)] ^= 1 << b % 6); for (b = 0; b < a.length; b++)a[b] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b] || 0); return a.join("") + "~" }; var vd = new $c; function J(a) { vd.set(a) } var Td = function (a) { a = Dd(a); a = new $c(a); for (var b = vd.w.slice(), c = 0; c < a.w.length; c++)b[c] = b[c] || a.w[c]; return (new $c(b)).encode() }, Dd = function (a) { a = a.get(Gd); ka(a) || (a = []); return a }; var ea = function (a) { return "function" == typeof a }, ka = function (a) { return "[object Array]" == Object.prototype.toString.call(Object(a)) }, qa = function (a) { return void 0 != a && -1 < (a.constructor + "").indexOf("String") }, D = function (a, b) { return 0 == a.indexOf(b) }, sa = function (a) { return a ? a.replace(/^[\s\xa0]+|[\s\xa0]+$/g, "") : "" }, ra = function () {
+ for (var a = O.navigator.userAgent + (M.cookie ? M.cookie : "") + (M.referrer ? M.referrer : ""), b = a.length, c = O.history.length; 0 < c;)a += c-- ^ b++; return [hd() ^ La(a) & 2147483647, Math.round((new Date).getTime() /
+ 1E3)].join(".")
+ }, ta = function (a) { var b = M.createElement("img"); b.width = 1; b.height = 1; b.src = a; return b }, ua = function () { }, K = function (a) { if (encodeURIComponent instanceof Function) return encodeURIComponent(a); J(28); return a }, L = function (a, b, c, d) { try { a.addEventListener ? a.addEventListener(b, c, !!d) : a.attachEvent && a.attachEvent("on" + b, c) } catch (e) { J(27) } }, f = /^[\w\-:/.?=&%!\[\]]+$/, Nd = /^[\w+/_-]+[=]{0,2}$/, wa = function (a, b, c) {
+ if (a) {
+ var d = M.querySelector && M.querySelector("script[nonce]") || null; d = d ? d.nonce || d.getAttribute &&
+ d.getAttribute("nonce") || "" : ""; if (c) { var e = c = ""; b && f.test(b) && (c = ' id="' + b + '"'); d && Nd.test(d) && (e = ' nonce="' + d + '"'); f.test(a) && M.write("